sctj-components 1.0.10 → 1.0.12

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.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@vue-office/pdf"),require("@vue-office/docx"),require("@vue-office/excel"),require("@element-plus/icons-vue"),require("element-plus"),require("echarts"),require("lodash"),require("flv.js"),require("dayjs"),require("ezuikit-js"),require("axios"),require("@amap/amap-jsapi-loader")):"function"==typeof define&&define.amd?define(["exports","vue","@vue-office/pdf","@vue-office/docx","@vue-office/excel","@element-plus/icons-vue","element-plus","echarts","lodash","flv.js","dayjs","ezuikit-js","axios","@amap/amap-jsapi-loader"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).SctjComponents={},e.Vue,e.VueOfficePdf,e.VueOfficeDocx,e.VueOfficeExcel,e.ElementPlusIconsVue,e.ElementPlus,e.echarts,e._,e.flvjs,e.dayjs,e.EZUIKit,e.axios,e.AMapLoader)}(this,function(e,t,r,n,o,i,a,s,l,c,u,d,p,h){"use strict";const f=e=>e&&"object"==typeof e&&"default"in e?e:{default:e};function v(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const m=f(r),g=f(n),y=f(o),C=v(s),S=f(c),T=f(u),b=f(d),w=f(p),E=f(h);if("undefined"!=typeof window){let e=function(){var e=document.body,t=document.getElementById("__svg__icons__dom__");t||((t=document.createElementNS("http://www.w3.org/2000/svg","svg")).style.position="absolute",t.style.width="0",t.style.height="0",t.id="__svg__icons__dom__",t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),t.innerHTML='<symbol viewBox="0 0 128 128" id="icon-404"><path d="M121.718 73.272v9.953c3.957-7.584 6.199-16.05 6.199-24.995C127.917 26.079 99.273 0 63.958 0 28.644 0 0 26.079 0 58.23c0 .403.028.806.028 1.21l22.97-25.953h13.34l-19.76 27.187h6.42V53.77l13.728-19.477v49.361H22.998V73.272H2.158c5.951 20.284 23.608 36.208 45.998 41.399-1.44 3.3-5.618 11.263-12.565 12.674-8.607 1.764 23.358.428 46.163-13.178 17.519-4.611 31.938-15.849 39.77-30.513h-13.506V73.272H85.02V59.464l22.998-25.977h13.008l-19.429 27.187h6.421v-7.433l13.727-19.402v39.433h-.027zm-78.24 2.822a10.516 10.516 0 0 1-.996-4.535V44.548c0-1.613.332-3.124.996-4.535a11.66 11.66 0 0 1 2.713-3.68c1.134-1.032 2.49-1.864 4.04-2.468 1.55-.605 3.21-.908 4.982-.908h11.292c1.77 0 3.431.303 4.981.908 1.522.604 2.85 1.41 3.986 2.418l-12.26 16.303v-2.898a1.96 1.96 0 0 0-.665-1.512c-.443-.403-.996-.604-1.66-.604-.665 0-1.218.201-1.661.604a1.96 1.96 0 0 0-.664 1.512v9.071L44.364 77.606a10.556 10.556 0 0 1-.886-1.512zm35.73-4.535c0 1.613-.332 3.124-.997 4.535a11.66 11.66 0 0 1-2.712 3.68c-1.134 1.032-2.49 1.864-4.04 2.469-1.55.604-3.21.907-4.982.907H55.185c-1.77 0-3.431-.303-4.981-.907-1.55-.605-2.906-1.437-4.041-2.47a12.49 12.49 0 0 1-1.384-1.512l13.727-18.217v6.375c0 .605.222 1.109.665 1.512.442.403.996.604 1.66.604.664 0 1.218-.201 1.66-.604a1.96 1.96 0 0 0 .665-1.512V53.87L75.97 36.838c.913.932 1.66 1.99 2.214 3.175.664 1.41.996 2.922.996 4.535v27.011h.028z" /></symbol><symbol viewBox="0 0 128 128" id="icon-bug"><path d="M127.88 73.143c0 1.412-.506 2.635-1.518 3.669-1.011 1.033-2.209 1.55-3.592 1.55h-17.887c0 9.296-1.783 17.178-5.35 23.645l16.609 17.044c1.011 1.034 1.517 2.257 1.517 3.67 0 1.412-.506 2.635-1.517 3.668-.958 1.033-2.155 1.55-3.593 1.55-1.438 0-2.635-.517-3.593-1.55l-15.811-16.063a15.49 15.49 0 0 1-1.196 1.06c-.532.434-1.65 1.208-3.353 2.322a50.104 50.104 0 0 1-5.192 2.974c-1.758.87-3.94 1.658-6.546 2.364-2.607.706-5.189 1.06-7.748 1.06V47.044H58.89v73.062c-2.716 0-5.417-.367-8.106-1.102-2.688-.734-5.003-1.631-6.945-2.692a66.769 66.769 0 0 1-5.268-3.179c-1.571-1.057-2.73-1.94-3.476-2.65L33.9 109.34l-14.611 16.877c-1.066 1.14-2.344 1.711-3.833 1.711-1.277 0-2.422-.434-3.434-1.304-1.012-.978-1.557-2.187-1.635-3.627-.079-1.44.333-2.705 1.236-3.794l16.129-18.51c-3.087-6.197-4.63-13.644-4.63-22.342H5.235c-1.383 0-2.58-.517-3.592-1.55S.125 74.545.125 73.132c0-1.412.506-2.635 1.518-3.668 1.012-1.034 2.21-1.55 3.592-1.55h17.887V43.939L9.308 29.833c-1.012-1.033-1.517-2.256-1.517-3.669 0-1.412.505-2.635 1.517-3.668 1.012-1.034 2.21-1.55 3.593-1.55s2.58.516 3.593 1.55l13.813 14.106h67.396l13.814-14.106c1.012-1.034 2.21-1.55 3.592-1.55 1.384 0 2.581.516 3.593 1.55 1.012 1.033 1.518 2.256 1.518 3.668 0 1.413-.506 2.636-1.518 3.67l-13.814 14.105v23.975h17.887c1.383 0 2.58.516 3.593 1.55 1.011 1.033 1.517 2.256 1.517 3.668l-.005.01zM89.552 26.175H38.448c0-7.23 2.489-13.386 7.466-18.469C50.892 2.623 56.92.082 64 .082c7.08 0 13.108 2.541 18.086 7.624 4.977 5.083 7.466 11.24 7.466 18.469z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-build"><path d="M960 591.424V368.96c0-.288.16-.512.16-.768s-.16-.512-.16-.768V192a32 32 0 0 0-32-32H96a32 32 0 0 0-32 32v175.424c0 .288-.16.512-.16.768s.16.48.16.768v222.464c0 .288-.16.512-.16.768s.16.48.16.768V864a32 32 0 0 0 32 32h832a32 32 0 0 0 32-32V592.96c0-.288.16-.512.16-.768s-.16-.512-.16-.768zm-560-31.232v-160h208v160H400zm208 64V832H400V624.192h208zm-480-224h208v160H128v-160zm544 0h224v160H672v-160zM896 224v112.192H128V224h768zM128 624.192h208V832H128V624.192zM672 832V624.192h224V832H672z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-button"><defs><style type="text/css"></style></defs><path d="M230.4 307.712c13.824 0 25.088-11.264 25.088-25.088 0-100.352 81.92-182.272 182.272-182.272s182.272 81.408 182.272 182.272c0 13.824 11.264 25.088 25.088 25.088s25.088-11.264 24.576-25.088c0-127.488-103.936-231.936-231.936-231.936S205.824 154.624 205.824 282.624c-0.512 14.336 10.752 25.088 24.576 25.088z m564.736 234.496c-11.264 0-21.504 2.048-31.232 6.144 0-44.544-40.448-81.92-88.064-81.92-14.848 0-28.16 3.584-39.936 10.24-13.824-28.16-44.544-48.128-78.848-48.128-12.288 0-24.576 2.56-35.328 7.68V284.16c0-45.568-37.888-81.92-84.48-81.92s-84.48 36.864-84.48 81.92v348.672l-69.12-112.64c-18.432-28.16-58.368-36.864-91.136-19.968-26.624 14.336-46.592 47.104-30.208 88.064 3.072 8.192 76.8 205.312 171.52 311.296 0 0 28.16 24.576 43.008 58.88 4.096 9.728 13.312 15.36 22.528 15.36 3.072 0 6.656-0.512 9.728-2.048 12.288-5.12 18.432-19.968 12.8-32.256-19.456-44.544-53.76-74.752-53.76-74.752C281.6 768 209.408 573.44 208.384 570.88c-5.12-12.8-2.56-20.992 7.168-26.112 9.216-4.608 21.504-4.608 26.112 2.56l113.152 184.32c4.096 8.704 12.8 14.336 22.528 14.336 13.824 0 25.088-10.752 25.088-25.088V284.16c0-17.92 15.36-32.256 34.816-32.256s34.816 14.336 34.816 32.256v284.16c0 13.824 10.24 25.088 24.576 25.088 13.824 0 25.088-11.264 25.088-25.088v-57.344c0-17.92 15.36-32.768 34.816-32.768 19.968 0 37.376 15.36 37.376 32.768v95.232c0 7.168 3.072 13.312 7.68 17.92 4.608 4.608 10.752 7.168 17.92 7.168 13.824 0 24.576-11.264 24.576-25.088V547.84c0-18.432 13.824-32.256 32.256-32.256 20.48 0 38.912 15.36 38.912 32.256v95.232c0 13.824 11.264 25.088 25.088 25.088s24.576-11.264 25.088-25.088v-18.944c0-18.944 12.8-32.256 30.72-32.256 18.432 0 22.528 18.944 22.528 31.744 0 1.024-11.776 99.84-50.688 173.056-30.72 58.368-45.056 112.128-51.2 146.944-2.56 13.312 6.656 26.112 19.968 28.672 1.536 0 3.072 0.512 4.608 0.512 11.776 0 22.016-8.192 24.064-20.48 5.632-31.232 18.432-79.36 46.08-132.608 43.52-81.92 55.808-186.88 56.32-193.536-0.512-50.688-29.696-83.968-72.704-83.968z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-cascader"><path d="M772.87 734.061c-43.34 0-80.008 27.933-93.768 66.577H475.91c-56.607 0-102.667-46.06-102.667-102.667v-97.147h305.86c13.76 38.645 50.426 66.578 93.767 66.578 55.124 0 99.948-44.825 99.948-99.949s-44.824-99.948-99.948-99.948c-43.34 0-80.008 27.933-93.768 66.578h-305.86V401.01H695.17c55.123 0 99.948-44.825 99.948-99.949V190.073c0-55.124-44.825-99.948-99.948-99.948H251.13c-55.124 0-99.948 44.824-99.948 99.948v110.99c0 55.123 44.824 99.948 99.948 99.948h55.536v296.96c0 93.356 75.97 169.327 169.326 169.327h203.192c13.76 38.644 50.428 66.577 93.769 66.577 55.124 0 99.948-44.824 99.948-99.948s-44.907-99.866-100.03-99.866zm0-199.896c18.375 0 33.289 14.914 33.289 33.288s-14.914 33.29-33.289 33.29-33.288-14.915-33.288-33.29 14.914-33.288 33.288-33.288zM217.76 301.063v-110.99c0-18.375 14.914-33.288 33.288-33.288h444.04c18.375 0 33.289 14.913 33.289 33.288v110.99c0 18.374-14.914 33.288-33.289 33.288H251.13c-18.375 0-33.371-14.914-33.371-33.289zM772.87 867.298c-18.374 0-33.288-14.914-33.288-33.289 0-18.374 14.914-33.288 33.288-33.288s33.289 14.914 33.289 33.288c.082 18.293-14.914 33.289-33.289 33.289z" /></symbol><symbol viewBox="0 0 128 128" id="icon-chart"><path d="M0 54.857h36.571V128H0V54.857zM91.429 27.43H128V128H91.429V27.429zM45.714 0h36.572v128H45.714V0z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-checkbox"><path d="M828.406 90.125H195.594c-58.219 0-105.469 47.25-105.469 105.469v632.812c0 58.219 47.25 105.469 105.469 105.469h632.812c58.219 0 105.469-47.25 105.469-105.469V195.594c0-58.219-47.25-105.469-105.469-105.469zm52.735 738.281c0 29.16-23.57 52.735-52.735 52.735H195.594c-29.11 0-52.735-23.575-52.735-52.735V195.594c0-29.11 23.625-52.735 52.735-52.735h632.812c29.16 0 52.735 23.625 52.735 52.735v632.812z" /><path d="M421.529 709.56a36.281 36.281 0 0 1-27.553-12.67L205.175 476.614a36.285 36.285 0 0 1 55.1-47.229L425.264 621.87l342.161-298.48a36.29 36.29 0 0 1 47.71 54.687L445.386 700.62a36.323 36.323 0 0 1-23.857 8.94z" /></symbol><symbol viewBox="0 0 128 128" id="icon-clipboard"><path d="M54.857 118.857h64V73.143H89.143c-1.902 0-3.52-.668-4.855-2.002-1.335-1.335-2.002-2.954-2.002-4.855V36.57H54.857v82.286zM73.143 16v-4.571a2.2 2.2 0 0 0-.677-1.61 2.198 2.198 0 0 0-1.609-.676H20.571c-.621 0-1.158.225-1.609.676a2.198 2.198 0 0 0-.676 1.61V16a2.2 2.2 0 0 0 .676 1.61c.451.45.988.676 1.61.676h50.285c.622 0 1.158-.226 1.61-.677.45-.45.676-.987.676-1.609zm18.286 48h21.357L91.43 42.642V64zM128 73.143v48c0 1.902-.667 3.52-2.002 4.855-1.335 1.335-2.953 2.002-4.855 2.002H52.57c-1.901 0-3.52-.667-4.854-2.002-1.335-1.335-2.003-2.953-2.003-4.855v-11.429H6.857c-1.902 0-3.52-.667-4.855-2.002C.667 106.377 0 104.759 0 102.857v-96c0-1.902.667-3.52 2.002-4.855C3.337.667 4.955 0 6.857 0h77.714c1.902 0 3.52.667 4.855 2.002 1.335 1.335 2.003 2.953 2.003 4.855V30.29c1 .622 1.856 1.29 2.569 2.003l29.147 29.147c1.335 1.335 2.478 3.145 3.429 5.43.95 2.287 1.426 4.383 1.426 6.291v-.018z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-code"><path d="M318.578 819.2 17.067 512l301.51-307.2 45.512 45.511L96.71 512 364.09 773.689zm386.844 0-45.51-45.511L927.288 512 659.91 250.311l45.511-45.511L1006.933 512zM540.786 221.867l55.75 11.15-113.379 569.116-55.75-11.093z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-color"><path d="M747.593 691.129c11.514.253 22.438-.211 40.742-1.519 29.354-2.109 35.85-2.362 46.478-.885 24.715 3.374 41.121 21.762 32.475 47.953-85.574 258.2-442.001 249.765-628.67 50.738-153.478-159.34-153.099-414.419.927-573.421 159.72-162.672 424.034-166.594 565.787.633 80.387 94.81 108.35 169.166 89.117 230.574-15.014 47.996-50.61 77.688-119.779 114.634-4.892 2.657-29.354 15.52-35.85 19.02-46.94 25.306-63.516 41.207-62.208 58.456 2.952 39.14 24.166 52.72 70.981 53.817zm44.411 50.104c-19.822 1.434-32.053 1.94-45.634 1.645-70.349-1.603-115.983-30.915-121.381-101.643-3.459-46.056 24.757-73.133 89.243-107.97 6.79-3.67 31.38-16.575 36.06-19.063 57.697-30.83 85.153-53.732 94.77-84.478 12.779-40.784-9.11-98.945-79.249-181.651-121.17-142.976-350.142-139.602-489.238 2.067-134.498 138.842-134.793 362.12-.421 501.637C434.692 920.775 728.15 932.964 810.73 739.968c-4.681.295-10.712.675-18.726 1.265z" /><path d="M346.039 637.186a78.826 78.826 0 0 0 78.32-79.29c0-43.694-35.006-79.29-78.32-79.29a78.826 78.826 0 0 0-78.363 79.29c0 43.694 35.006 79.29 78.363 79.29zm0-51.75a27.077 27.077 0 0 1-26.571-27.54c0-15.31 11.978-27.541 26.57-27.541 14.551 0 26.571 12.23 26.571 27.54a27.077 27.077 0 0 1-26.57 27.541zm129.69 221.676a78.826 78.826 0 0 0 78.362-79.29c0-43.695-34.963-79.29-78.32-79.29a78.826 78.826 0 0 0-78.32 79.29c0 43.693 34.963 79.29 78.32 79.29zm0-51.75a27.077 27.077 0 0 1-26.57-27.54c0-15.31 12.061-27.541 26.57-27.541 14.593 0 26.57 12.23 26.57 27.54a27.077 27.077 0 0 1-26.57 27.541zm125.515-378.147a78.826 78.826 0 0 0 78.32-79.29c0-43.694-34.964-79.29-78.32-79.29a78.826 78.826 0 0 0-78.32 79.29c0 43.694 34.963 79.29 78.32 79.29zm0-51.75a27.077 27.077 0 0 1-26.57-27.54c0-15.31 11.977-27.541 26.57-27.541 14.55 0 26.57 12.23 26.57 27.54a27.077 27.077 0 0 1-26.57 27.541zM378.809 433.857a78.826 78.826 0 0 0 78.32-79.29c0-43.694-34.963-79.29-78.32-79.29a78.826 78.826 0 0 0-78.32 79.29c0 43.694 34.964 79.29 78.32 79.29zm0-51.75a27.077 27.077 0 0 1-26.57-27.54c0-15.31 11.977-27.541 26.57-27.541 14.55 0 26.57 12.23 26.57 27.54a27.077 27.077 0 0 1-26.57 27.541z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-component"><path d="M826.56 470.016c-32.896 0-64.384 12.288-89.984 35.52v-104.96c0-62.208-50.496-112.832-112.64-113.088v-.448l-104.384.064c22.272-24.384 35.008-56.384 35.008-89.984 0-73.536-59.904-133.44-133.504-133.44-73.472 0-133.376 59.904-133.376 133.44 0 32.896 12.224 64.256 35.52 89.984H175.232v.576C113.728 288.704 64 338.88 64 400.576h.32l.32 116.48c-3.776 27.84 5.952 60.672 36.16 71.424 12.736 4.608 37.632 7.488 60.864-25.28 12.992-18.368 34.24-29.248 56.64-29.248 38.336 0 69.504 31.104 69.504 69.312 0 38.4-31.168 69.504-69.504 69.504-22.656 0-44.032-11.264-57.344-30.4-22.272-32.256-48.384-27.008-58.496-23.232-29.824 10.752-39.104 43.776-38.144 67.392v160.384H64C64 909.248 114.752 960 177.216 960h446.272c62.4 0 113.152-50.752 113.152-113.152V701.824c24.384 22.272 56.384 35.008 89.984 35.008 73.536 0 133.44-59.904 133.44-133.504C960 529.92 900.096 470.016 826.56 470.016zm0 202.88c-22.72 0-44.032-11.264-57.344-30.4-22.272-32.384-48.448-27.136-58.56-23.36-29.824 10.752-39.04 43.776-38.08 67.392v160.384c0 27.136-22.016 49.152-49.152 49.152H177.216C150.08 896 128 873.984 128 846.848h.32V701.824c24.384 22.272 56.384 35.008 89.984 35.008 73.6 0 133.504-59.904 133.504-133.504 0-73.472-59.904-133.376-133.504-133.376-32.896 0-64.32 12.288-89.984 35.52v-104.96H128c0-27.072 22.08-49.152 49.216-49.152v-.32l157.44-.32c3.776.512 7.616.832 11.52.832 24.896 0 50.752-10.816 60.032-37.056 4.544-12.736 7.424-37.568-25.344-60.736-18.24-12.992-29.184-34.24-29.184-56.64 0-38.272 31.104-69.44 69.376-69.44 38.336 0 69.504 31.168 69.504 69.44 0 22.72-11.264 44.032-30.528 57.472-32.064 22.144-26.944 48.192-23.232 58.432 10.752 29.888 43.072 39.232 67.392 38.08h119.232v.384c27.136 0 49.152 22.08 49.152 49.152l.256 116.48c-3.776 27.84 6.016 60.736 36.224 71.488 12.736 4.608 37.632 7.488 60.8-25.28 13.056-18.368 34.24-29.248 56.704-29.248 38.272-.064 69.44 31.04 69.44 69.312 0 38.336-31.168 69.504-69.44 69.504z" /></symbol><symbol viewBox="0 0 128 100" id="icon-dashboard"><path d="M27.429 63.638c0-2.508-.893-4.65-2.679-6.424-1.786-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.465 2.662-1.785 1.774-2.678 3.916-2.678 6.424 0 2.508.893 4.65 2.678 6.424 1.786 1.775 3.94 2.662 6.465 2.662 2.524 0 4.678-.887 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zm13.714-31.801c0-2.508-.893-4.65-2.679-6.424-1.785-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zM71.714 65.98l7.215-27.116c.285-1.23.107-2.378-.536-3.443-.643-1.064-1.56-1.762-2.75-2.094-1.19-.33-2.333-.177-3.429.462-1.095.639-1.81 1.573-2.143 2.804l-7.214 27.116c-2.857.237-5.405 1.266-7.643 3.088-2.238 1.822-3.738 4.152-4.5 6.992-.952 3.644-.476 7.098 1.429 10.364 1.905 3.265 4.69 5.37 8.357 6.317 3.667.947 7.143.474 10.429-1.42 3.285-1.892 5.404-4.66 6.357-8.305.762-2.84.619-5.607-.429-8.305-1.047-2.697-2.762-4.85-5.143-6.46zm47.143-2.342c0-2.508-.893-4.65-2.678-6.424-1.786-1.775-3.94-2.662-6.465-2.662-2.524 0-4.678.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.786 1.775 3.94 2.662 6.464 2.662 2.524 0 4.679-.887 6.465-2.662 1.785-1.775 2.678-3.916 2.678-6.424zm-45.714-45.43c0-2.509-.893-4.65-2.679-6.425C68.68 10.01 66.524 9.122 64 9.122c-2.524 0-4.679.887-6.464 2.661-1.786 1.775-2.679 3.916-2.679 6.425 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zm32 13.629c0-2.508-.893-4.65-2.679-6.424-1.785-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zM128 63.638c0 12.351-3.357 23.78-10.071 34.286-.905 1.372-2.19 2.058-3.858 2.058H13.93c-1.667 0-2.953-.686-3.858-2.058C3.357 87.465 0 76.037 0 63.638c0-8.613 1.69-16.847 5.071-24.703C8.452 31.08 13 24.312 18.714 18.634c5.715-5.68 12.524-10.199 20.429-13.559C47.048 1.715 55.333.035 64 .035c8.667 0 16.952 1.68 24.857 5.04 7.905 3.36 14.714 7.88 20.429 13.559 5.714 5.678 10.262 12.446 13.643 20.301 3.38 7.856 5.071 16.09 5.071 24.703z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-date-range"><path d="M887.467 192.853H786.773v-73.386c0-10.24-6.826-17.067-17.066-17.067s-17.067 6.827-17.067 17.067v73.386H303.787v-73.386c0-10.24-6.827-17.067-17.067-17.067s-17.067 6.827-17.067 17.067v73.386H168.96c-46.08 0-85.333 37.547-85.333 85.334v558.08c0 46.08 37.546 85.333 85.333 85.333h718.507c46.08 0 85.333-37.547 85.333-85.333v-558.08c0-47.787-37.547-85.334-85.333-85.334zM168.96 226.987h100.693v66.56c0 10.24 6.827 17.066 17.067 17.066s17.067-6.826 17.067-17.066v-66.56h450.56v66.56c0 10.24 6.826 17.066 17.066 17.066s17.067-6.826 17.067-17.066v-66.56h98.987c27.306 0 51.2 22.186 51.2 51.2v88.746H117.76v-88.746c0-29.014 22.187-51.2 51.2-51.2zm718.507 660.48H168.96c-27.307 0-51.2-22.187-51.2-51.2v-435.2h820.907v435.2c0 27.306-22.187 51.2-51.2 51.2z" /><path d="M858.453 493.227H327.68c-10.24 0-17.067 6.826-17.067 17.066V624.64H194.56c-10.24 0-17.067 6.827-17.067 17.067v133.12c0 10.24 6.827 17.066 17.067 17.066H460.8c10.24 0 17.067-6.826 17.067-17.066V660.48h380.586c10.24 0 17.067-6.827 17.067-17.067v-133.12c0-10.24-6.827-17.066-17.067-17.066zM445.44 527.36v97.28h-98.987v-97.28h98.987zm-230.4 131.413h98.987v98.987H215.04v-98.987zm131.413 97.28v-97.28h98.987v97.28h-98.987zm133.12-228.693h97.28v98.987h-97.28V527.36zm131.414 0h98.986v98.987h-98.986V527.36zm230.4 97.28H742.4v-98.987h98.987v98.987z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-date"><path d="M479.857 608.429h64.286c19.286 0 32.143-12.858 32.143-32.143s-12.857-32.143-32.143-32.143h-64.286c-19.286 0-32.143 12.857-32.143 32.143s12.857 32.143 32.143 32.143zm0 122.142h64.286c19.286 0 32.143-12.857 32.143-32.142s-12.857-32.143-32.143-32.143h-64.286c-19.286 0-32.143 12.857-32.143 32.143s12.857 32.142 32.143 32.142zM833.43 171.286H704.857v-32.143C704.857 119.857 692 107 672.714 107s-32.143 12.857-32.143 32.143v32.143H383.43v-32.143c0-19.286-12.858-32.143-32.143-32.143s-32.143 12.857-32.143 32.143v32.143H190.57C119.857 171.286 62 229.143 62 293.429v501.428C62 865.571 119.857 923.43 190.571 917H833.43C904.143 917 962 859.143 962 794.857V293.43c0-70.715-57.857-122.143-128.571-122.143zm64.285 623.571c0 32.143-32.143 64.286-64.285 64.286H190.57c-32.142 0-64.285-25.714-64.285-64.286V422h771.428v372.857zm0-437.143H126.286V293.43c0-32.143 32.143-64.286 64.285-64.286h128.572v32.143c0 19.285 12.857 32.143 32.143 32.143s32.143-12.858 32.143-32.143v-32.143H640.57v32.143c0 19.285 12.858 32.143 32.143 32.143s32.143-12.858 32.143-32.143v-32.143H833.43c32.142 0 64.285 25.714 64.285 64.286v64.285zM287 730.571h64.286c19.285 0 32.143-12.857 32.143-32.142s-12.858-32.143-32.143-32.143H287c-19.286 0-32.143 12.857-32.143 32.143S267.714 730.57 287 730.57zM672.714 608.43H737c19.286 0 32.143-12.858 32.143-32.143S756.286 544.143 737 544.143h-64.286c-19.285 0-32.143 12.857-32.143 32.143s12.858 32.143 32.143 32.143zm-385.714 0h64.286c19.285 0 32.143-12.858 32.143-32.143s-12.858-32.143-32.143-32.143H287c-19.286 0-32.143 12.857-32.143 32.143s12.857 32.143 32.143 32.143zM672.714 730.57H737c19.286 0 32.143-12.857 32.143-32.142S756.286 666.286 737 666.286h-64.286c-19.285 0-32.143 12.857-32.143 32.143s12.858 32.142 32.143 32.142z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-dict"><path d="m1002.085 744.672-33.568 10.368c.96 7.264 2.144 14.304 2.144 21.76 0 7.328-1.184 14.432-2.368 21.568l33.792 10.56c7.936 2.24 14.496 7.616 18.336 14.752 3.84 7.328 4.672 15.808 1.952 23.552-5.376 16-23.168 24.672-39.936 19.68l-34.176-10.624c-7.136 12.8-15.776 24.672-26.208 35.2l20.8 27.488a28.96 28.96 0 0 1 5.824 22.816 29.696 29.696 0 0 1-12.704 19.616 32.544 32.544 0 0 1-44.416-6.752l-20.8-27.552c-13.696 6.56-28.192 11.2-43.008 13.888v33.632c0 16.736-14.112 30.432-31.648 30.432-17.6 0-31.872-13.696-31.872-30.432v-33.632a167.616 167.616 0 0 1-42.88-13.888l-20.928 27.552c-10.72 13.76-30.08 16.64-44.288 6.752a29.632 29.632 0 0 1-12.704-19.616 29.28 29.28 0 0 1 5.696-22.816l20.896-27.808a166.72 166.72 0 0 1-27.008-34.688l-33.376 10.432c-16.8 5.184-34.56-3.552-39.936-19.616a29.824 29.824 0 0 1 20.224-38.24l33.472-10.432c-.8-7.264-2.016-14.304-2.016-21.824 0-7.36 1.184-14.496 2.304-21.632L589.893 744.8c-16.672-5.376-25.632-22.496-20.224-38.432 5.376-16 23.136-24.672 39.936-19.68l34.016 10.752c7.328-12.672 15.84-24.8 26.336-35.328l-20.8-27.552a29.44 29.44 0 0 1 6.944-42.432 32.704 32.704 0 0 1 44.384 6.752l20.832 27.616c13.696-6.432 28.224-11.2 43.104-13.952v-33.568c0-16.736 14.048-30.432 31.648-30.432 17.536 0 31.808 13.568 31.808 30.432v33.504c15.072 2.688 29.344 7.808 42.848 14.016l20.992-27.616a32.48 32.48 0 0 1 44.224-6.752 29.568 29.568 0 0 1 7.136 42.432l-21.024 27.808c10.432 10.432 19.872 21.888 27.04 34.752l33.376-10.432c16.768-5.12 34.56 3.68 39.936 19.68 5.536 15.936-3.712 33.056-20.32 38.304zM796.069 670.24c-61.344 0-111.136 47.808-111.136 106.56 0 58.88 49.792 106.496 111.136 106.496 61.312 0 111.104-47.616 111.104-106.496 0-58.752-49.792-106.56-111.104-106.56z" /><path d="M802.789 57.152H726.34c0-22.08-21.024-38.24-42.848-38.24H39.397A39.68 39.68 0 0 0 .037 58.944V854.56s41.888 120.192 110.752 120.192h562.496a227.488 227.488 0 0 1-107.04-97.44H117.637s-40.608-13.696-40.608-41.248l470.304-.256 1.664 3.36a227.68 227.68 0 0 1-12.64-73.632c0-60.576 24-118.624 66.88-161.44a228.352 228.352 0 0 1 123.552-63.392l-3.2.288 2.144-424.672h38.208l.576 421.024c27.04 0 52.672 4.8 76.64 13.344V101.536c.032 0-6.304-44.384-38.368-44.384zM149.765 514.336H72.389v-77.408h77.376v77.408zm0-144.32H72.389v-77.44h77.376v77.44zm0-137.248H72.389v-77.44h77.376v77.44zM651.62 514.336H206.085v-77.408H651.62v77.408zm0-144.32H206.085v-77.44H651.62v77.44zm0-137.248H206.085v-77.44H651.62v77.44z" /></symbol><symbol viewBox="0 0 128 128" id="icon-documentation"><path d="M71.984 44.815H115.9L71.984 9.642v35.173zM16.094.05h63.875l47.906 38.37v76.74c0 3.392-1.682 6.645-4.677 9.044-2.995 2.399-7.056 3.746-11.292 3.746H16.094c-4.236 0-8.297-1.347-11.292-3.746-2.995-2.399-4.677-5.652-4.677-9.044V12.84C.125 5.742 7.23.05 16.094.05zm71.86 102.32V89.58h-71.86v12.79h71.86zm23.952-25.58V64H16.094v12.79h95.812z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-download"><path d="M768.355 416a256 256 0 1 0-512 0 192 192 0 1 0 0 384v64a256 256 0 0 1-58.88-505.216 320.128 320.128 0 0 1 629.76 0A256.128 256.128 0 0 1 768.355 864v-64a192 192 0 0 0 0-384zm-512 384h64v64h-64v-64zm448 0h64v64h-64v-64z" fill="#333" /><path d="M539.043 845.248V512.192a32.448 32.448 0 0 0-32-32.192c-17.664 0-32 14.912-32 32.192v333.056l-36.096-36.096a32.192 32.192 0 0 0-45.056.192 31.616 31.616 0 0 0-.192 45.056l90.88 90.944a31.36 31.36 0 0 0 22.528 9.088 30.08 30.08 0 0 0 22.4-9.088l90.88-90.88a32.192 32.192 0 0 0-.192-45.12 31.616 31.616 0 0 0-45.056-.192l-36.096 36.096z" fill="#333" /></symbol><symbol viewBox="0 0 128 128" id="icon-drag"><path d="M73.137 29.08h-9.209 29.7L63.886.093 34.373 29.08h20.49v27.035H27.238v17.948h27.625v27.133h18.274V74.063h27.41V56.115h-27.41V29.08zm-9.245 98.827 27.518-26.711H36.59l27.302 26.71zM.042 64.982l27.196 27.029V38.167L.042 64.982zm100.505-26.815V92.01l27.41-27.029-27.41-26.815z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-druid"><path d="M832 128H192a64.19 64.19 0 0 0-64 64v640a64.19 64.19 0 0 0 64 64h640a64.19 64.19 0 0 0 64-64V192a64.19 64.19 0 0 0-64-64zm0 703.89-.11.11H192.11l-.11-.11V768h640zM832 544H720L605.6 696.54 442.18 435.07 333.25 544H192v-64h114.75l147.07-147.07L610.4 583.46 688 480h144zm0-288H192v-63.89l.11-.11h639.78l.11.11z" /></symbol><symbol viewBox="0 0 128 128" id="icon-edit"><path d="M106.133 67.2a4.797 4.797 0 0 0-4.8 4.8c0 .187.014.36.027.533h-.027V118.4H9.6V26.667h50.133c2.654 0 4.8-2.147 4.8-4.8 0-2.654-2.146-4.8-4.8-4.8H9.6a9.594 9.594 0 0 0-9.6 9.6V118.4c0 5.307 4.293 9.6 9.6 9.6h91.733c5.307 0 9.6-4.293 9.6-9.6V72.533h-.026c.013-.173.026-.346.026-.533 0-2.653-2.146-4.8-4.8-4.8z" /><path d="M125.16 13.373 114.587 2.8c-3.747-3.747-9.854-3.72-13.6.027l-52.96 52.96a4.264 4.264 0 0 0-.907 1.36L33.813 88.533c-.746 1.76-.226 3.534.907 4.68 1.133 1.147 2.92 1.667 4.693.92l31.4-13.293c.507-.213.96-.52 1.36-.907l52.96-52.96c3.747-3.746 3.774-9.853.027-13.6zM66.107 72.4l-18.32 7.76 7.76-18.32L92.72 24.667l10.56 10.56L66.107 72.4zm52.226-52.227-8.266 8.267-10.56-10.56 8.266-8.267.027-.026 10.56 10.56-.027.026z" /></symbol><symbol viewBox="0 0 128 128" id="icon-education"><path d="M88.883 119.565c-7.284 0-19.434 2.495-21.333 8.25v.127c-4.232.13-5.222 0-7.108 0-1.895-5.76-14.045-8.256-21.333-8.256H0V0h42.523c9.179 0 17.109 5.47 21.47 13.551C68.352 5.475 76.295 0 85.478 0H128v119.57l-39.113-.005h-.004zM60.442 24.763c0-9.651-8.978-16.507-17.777-16.507H7.108V111.43H39.11c7.054-.14 18.177.082 21.333 6.12v-4.628c-.134-5.722-.004-13.522 0-13.832V27.413l.004-2.655-.004.005zm60.442-16.517h-35.55c-8.802 0-17.78 6.856-17.78 16.493v74.259c.004.32.138 8.115 0 13.813v4.627c3.155-6.022 14.279-6.26 21.333-6.114h32V8.25l-.003-.005z" /></symbol><symbol viewBox="0 0 128 96" id="icon-email"><path d="M64.125 56.975 120.188.912A12.476 12.476 0 0 0 115.5 0h-103c-1.588 0-3.113.3-4.513.838l56.138 56.137z" /><path d="m64.125 68.287-62.3-62.3A12.42 12.42 0 0 0 0 12.5v71C0 90.4 5.6 96 12.5 96h103c6.9 0 12.5-5.6 12.5-12.5v-71a12.47 12.47 0 0 0-1.737-6.35L64.125 68.287z" /></symbol><symbol viewBox="0 0 128 128" id="icon-example"><path d="M96.258 57.462h31.421C124.794 27.323 100.426 2.956 70.287.07v31.422a32.856 32.856 0 0 1 25.971 25.97zm-38.796-25.97V.07C27.323 2.956 2.956 27.323.07 57.462h31.422a32.856 32.856 0 0 1 25.97-25.97zm12.825 64.766v31.421c30.46-2.885 54.507-27.253 57.713-57.712H96.579c-2.886 13.466-13.146 23.726-26.292 26.291zM31.492 70.287H.07c2.886 30.46 27.253 54.507 57.713 57.713V96.579c-13.466-2.886-23.726-13.146-26.291-26.292z" /></symbol><symbol viewBox="0 0 128 128" id="icon-excel"><path d="M78.208 16.576v8.384h38.72v5.376h-38.72v8.704h38.72v5.376h-38.72v8.576h38.72v5.376h-38.72v8.576h38.72v5.376h-38.72v8.576h38.72v5.376h-38.72v8.512h38.72v5.376h-38.72v11.136H128v-94.72H78.208zM0 114.368 72.128 128V0L0 13.632v100.736z" /><path d="M28.672 82.56h-11.2l14.784-23.488-14.08-22.592h11.52l8.192 14.976 8.448-14.976h11.136l-14.08 22.208L58.368 82.56H46.656l-8.768-15.68z" /></symbol><symbol viewBox="0 0 128 128" id="icon-exit-fullscreen"><path d="m49.217 41.329-.136-35.24c-.06-2.715-2.302-4.345-5.022-4.405h-3.65c-2.712-.06-4.866 2.303-4.806 5.016l.152 19.164-24.151-23.79a6.698 6.698 0 0 0-9.499 0 6.76 6.76 0 0 0 0 9.526l23.93 23.713-18.345.074c-2.712-.069-5.228 1.813-5.64 5.02v3.462c.069 2.721 2.31 4.97 5.022 5.03l35.028-.207c.052.005.087.025.133.025l2.457.054a4.626 4.626 0 0 0 3.436-1.38c.88-.874 1.205-2.096 1.169-3.462l-.262-2.465c0-.048.182-.081.182-.136h.002zm52.523 51.212 18.32-.073c2.713.06 5.224-1.609 5.64-4.815v-3.462c-.068-2.722-2.317-4.97-5.021-5.04l-34.58.21c-.053 0-.086-.021-.138-.021l-2.451-.06a4.64 4.64 0 0 0-3.445 1.381c-.885.868-1.201 2.094-1.174 3.46l.27 2.46c.005.06-.177.095-.177.141l.141 34.697c.069 2.713 2.31 4.338 5.022 4.397l3.45.006c2.705.062 4.867-2.31 4.8-5.026l-.153-18.752 24.151 23.946a6.69 6.69 0 0 0 9.494 0 6.747 6.747 0 0 0 0-9.523L101.74 92.54v.001zM48.125 80.662a4.636 4.636 0 0 0-3.437-1.382l-2.457.06c-.05 0-.082.022-.137.022l-35.025-.21c-2.712.07-4.957 2.318-5.022 5.04v3.462c.409 3.206 2.925 4.874 5.633 4.814l18.554.06-24.132 23.928c-2.62 2.626-2.62 6.89 0 9.524a6.694 6.694 0 0 0 9.496 0l24.155-23.79-.155 18.866c-.06 2.722 2.094 5.093 4.801 5.025h3.65c2.72-.069 4.962-1.685 5.022-4.406l.141-34.956c0-.05-.182-.082-.182-.136l.262-2.46c.03-1.366-.286-2.592-1.166-3.46h-.001zM80.08 47.397a4.62 4.62 0 0 0 3.443 1.374l2.45-.054c.055 0 .088-.02.143-.028l35.08.21c2.712-.062 4.953-2.312 5.021-5.033l.009-3.463c-.417-3.211-2.937-5.084-5.64-5.025l-18.615-.073 23.917-23.715c2.63-2.623 2.63-6.879.008-9.513a6.691 6.691 0 0 0-9.494 0L92.251 26.016l.155-19.312c.065-2.713-2.097-5.085-4.802-5.025h-3.45c-2.713.069-4.954 1.693-5.022 4.406l-.139 35.247c0 .054.18.088.18.136l-.267 2.465c-.028 1.366.288 2.588 1.174 3.463v.001z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-eye-open"><path d="M512 128q69.675 0 135.51 21.163t115.498 54.997 93.483 74.837 73.685 82.006 51.67 74.837 32.17 54.827L1024 512q-2.347 4.992-6.315 13.483T998.87 560.17t-31.658 51.669-44.331 59.99-56.832 64.34-69.504 60.16-82.347 51.5-94.848 34.687T512 896q-69.675 0-135.51-21.163t-115.498-54.826-93.483-74.326-73.685-81.493-51.67-74.496-32.17-54.997L0 513.707q2.347-4.992 6.315-13.483t18.816-34.816 31.658-51.84 44.331-60.33 56.832-64.683 69.504-60.331 82.347-51.84 94.848-34.816T512 128.085zm0 85.333q-46.677 0-91.648 12.331t-81.152 31.83-70.656 47.146-59.648 54.485-48.853 57.686-37.675 52.821-26.325 43.99q12.33 21.674 26.325 43.52t37.675 52.351 48.853 57.003 59.648 53.845T339.2 767.02t81.152 31.488T512 810.667t91.648-12.331 81.152-31.659 70.656-46.848 59.648-54.186 48.853-57.344 37.675-52.651T927.957 512q-12.33-21.675-26.325-43.648t-37.675-52.65-48.853-57.345-59.648-54.186-70.656-46.848-81.152-31.659T512 213.334zm0 128q70.656 0 120.661 50.006T682.667 512 632.66 632.661 512 682.667 391.339 632.66 341.333 512t50.006-120.661T512 341.333zm0 85.334q-35.328 0-60.33 25.002T426.666 512t25.002 60.33T512 597.334t60.33-25.002T597.334 512t-25.002-60.33T512 426.666z" /></symbol><symbol viewBox="0 0 128 64" id="icon-eye"><path d="M127.072 7.994c1.37-2.208.914-5.152-.914-6.87-2.056-1.717-4.797-1.226-6.396.982-.229.245-25.586 32.382-55.74 32.382-29.24 0-55.74-32.382-55.968-32.627-1.6-1.963-4.57-2.208-6.397-.49C-.17 3.086-.399 6.275 1.2 8.238c.457.736 5.94 7.36 14.62 14.72L4.17 35.96c-1.828 1.963-1.6 5.152.228 6.87.457.98 1.6 1.471 2.742 1.471s2.284-.49 3.198-1.472l12.564-13.983c5.94 4.416 13.021 8.587 20.788 11.53l-4.797 17.418c-.685 2.699.686 5.397 3.198 6.133h1.37c2.057 0 3.884-1.472 4.341-3.68L52.6 42.83c3.655.736 7.538 1.227 11.422 1.227 3.883 0 7.767-.49 11.422-1.227l4.797 17.173c.457 2.208 2.513 3.68 4.34 3.68.457 0 .914 0 1.143-.246 2.513-.736 3.883-3.434 3.198-6.133l-4.797-17.172c7.767-2.944 14.848-7.114 20.788-11.53l12.336 13.738c.913.981 2.056 1.472 3.198 1.472s2.284-.49 3.198-1.472c1.828-1.963 1.828-4.906.228-6.87l-11.65-13.001c9.366-7.36 14.849-14.474 14.849-14.474z" /></symbol><symbol viewBox="0 0 128 128" id="icon-form"><path d="M84.068 23.784c-1.02 0-1.877-.32-2.572-.96a8.588 8.588 0 0 1-1.738-2.237 11.524 11.524 0 0 1-1.042-2.621c-.232-.895-.348-1.641-.348-2.238V0h.278c.834 0 1.622.085 2.363.256.742.17 1.645.575 2.711 1.214 1.066.64 2.363 1.535 3.892 2.686 1.53 1.15 3.453 2.664 5.77 4.54 2.502 2.045 4.494 3.771 5.977 5.178 1.483 1.406 2.618 2.6 3.406 3.58.787.98 1.274 1.812 1.46 2.494.185.682.277 1.278.277 1.79v2.046H84.068zM127.3 84.01c.278.682.464 1.535.556 2.558.093 1.023-.37 2.003-1.39 2.94-.463.427-.88.832-1.25 1.215-.372.384-.696.704-.974.96a6.69 6.69 0 0 1-.973.767l-11.816-10.741a44.331 44.331 0 0 0 1.877-1.535 31.028 31.028 0 0 1 1.737-1.406c1.112-.938 2.317-1.343 3.615-1.215 1.297.128 2.363.405 3.197.83.927.427 1.923 1.173 2.989 2.239 1.065 1.065 1.876 2.195 2.432 3.388zM78.23 95.902c2.038 0 3.752-.511 5.143-1.534l-26.969 25.83H18.037c-1.761 0-3.684-.47-5.77-1.407a24.549 24.549 0 0 1-5.838-3.709 21.373 21.373 0 0 1-4.518-5.306c-1.204-2.003-1.807-4.07-1.807-6.202V16.495c0-1.79.44-3.665 1.32-5.626A18.41 18.41 0 0 1 5.04 5.562a21.798 21.798 0 0 1 5.213-3.964C12.198.533 14.237 0 16.37 0h53.24v15.984c0 1.62.278 3.367.834 5.242a16.704 16.704 0 0 0 2.572 5.179c1.159 1.577 2.665 2.898 4.518 3.964 1.853 1.066 4.078 1.598 6.673 1.598h20.295v42.325L85.458 92.45c1.02-1.364 1.529-2.856 1.529-4.476 0-2.216-.857-4.113-2.572-5.69-1.714-1.577-3.776-2.366-6.186-2.366H26.1c-2.409 0-4.448.789-6.116 2.366-1.668 1.577-2.502 3.474-2.502 5.69 0 2.217.834 4.092 2.502 5.626 1.668 1.535 3.707 2.302 6.117 2.302h52.13zM26.1 47.951c-2.41 0-4.449.789-6.117 2.366-1.668 1.577-2.502 3.473-2.502 5.69 0 2.216.834 4.092 2.502 5.626 1.668 1.534 3.707 2.302 6.117 2.302h52.13c2.409 0 4.47-.768 6.185-2.302 1.715-1.534 2.572-3.41 2.572-5.626 0-2.217-.857-4.113-2.572-5.69-1.714-1.577-3.776-2.366-6.186-2.366H26.1zm52.407 64.063 1.807-1.663 3.476-3.196a479.75 479.75 0 0 0 4.587-4.284 500.757 500.757 0 0 1 5.004-4.667c3.985-3.666 8.48-7.758 13.485-12.276l11.677 10.741-13.485 12.404-5.004 4.603-4.587 4.22a179.46 179.46 0 0 0-3.267 3.068c-.88.853-1.367 1.322-1.46 1.407-.463.341-.973.703-1.529 1.087-.556.383-1.112.703-1.668.959-.556.256-1.413.575-2.572.959a83.5 83.5 0 0 1-3.545 1.087 72.2 72.2 0 0 1-3.475.895c-1.112.256-1.946.426-2.502.511-1.112.17-1.854.043-2.224-.383-.371-.426-.464-1.151-.278-2.174.092-.511.278-1.279.556-2.302.278-1.023.602-2.067.973-3.132l1.042-3.005c.325-.938.58-1.577.765-1.918a10.157 10.157 0 0 1 2.224-2.941z" /></symbol><symbol viewBox="0 0 128 128" id="icon-fullscreen"><path d="M38.47 52 52 38.462l-23.648-23.67L43.209 0H.035L0 43.137l14.757-14.865L38.47 52zm74.773 47.726L89.526 76 76 89.536l23.648 23.672L84.795 128h43.174L128 84.863l-14.757 14.863zM89.538 52l23.668-23.648L128 43.207V.038L84.866 0 99.73 14.76 76 38.472 89.538 52zM38.46 76 14.792 99.651 0 84.794v43.173l43.137.033-14.865-14.757L52 89.53 38.46 76z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-github"><path d="M511.543 14.057C228.914 13.943 0 242.743 0 525.143 0 748.457 143.2 938.286 342.629 1008c26.857 6.743 22.742-12.343 22.742-25.371v-88.572C210.286 912.23 204 809.6 193.6 792.457c-21.029-35.886-70.743-45.028-55.886-62.171 35.315-18.172 71.315 4.571 113.029 66.171 30.171 44.686 89.028 37.143 118.857 29.714 6.514-26.857 20.457-50.857 39.657-69.485C248.571 727.886 181.6 629.829 181.6 513.257c0-56.571 18.629-108.571 55.2-150.514-23.314-69.143 2.171-128.343 5.6-137.143 66.4-5.943 135.429 47.543 140.8 51.771C420.914 267.2 464 261.83 512.229 261.83c48.457 0 91.657 5.6 129.714 15.885 12.914-9.828 76.914-55.771 138.628-50.171 3.315 8.8 28.229 66.628 6.286 134.857 37.029 42.057 55.886 94.514 55.886 151.2 0 116.8-67.429 214.971-228.572 243.314a145.714 145.714 0 0 1 43.543 104v128.572c.915 10.285 0 20.457 17.143 20.457 202.4-68.229 348.114-259.429 348.114-484.686 0-282.514-229.028-511.2-511.428-511.2z" /></symbol><symbol viewBox="0 0 128 128" id="icon-guide"><path d="m1.482 70.131 36.204 16.18 69.932-65.485-61.38 70.594 46.435 18.735c1.119.425 2.397-.17 2.797-1.363v-.085L127.998.047 1.322 65.874c-1.12.597-1.519 1.959-1.04 3.151.32.511.72.937 1.2 1.107zm44.676 57.821L64.22 107.26l-18.062-7.834v28.527z" /></symbol><symbol viewBox="0 0 128 128" id="icon-icon"><path d="M115.147.062a13 13 0 0 1 4.94.945c1.55.63 2.907 1.526 4.069 2.688a13.148 13.148 0 0 1 2.761 4.069c.678 1.55 1.017 3.245 1.017 5.086v102.3c0 3.681-1.187 6.733-3.56 9.155-2.373 2.422-5.352 3.633-8.937 3.633H12.992c-3.875 0-7-1.26-9.373-3.779-2.373-2.518-3.56-5.667-3.56-9.445V12.704c0-3.39 1.163-6.345 3.488-8.863C5.872 1.32 8.972.062 12.847.062h102.3zM81.434 109.047c1.744 0 3.003-.412 3.778-1.235.775-.824 1.163-1.914 1.163-3.27 0-1.26-.388-2.325-1.163-3.197-.775-.872-2.034-1.307-3.778-1.307H72.57c.097-.194.145-.485.145-.872V27.09h9.01c1.743 0 2.954-.436 3.633-1.308.678-.872 1.017-1.938 1.017-3.197 0-1.26-.34-2.325-1.017-3.197-.679-.872-1.89-1.308-3.633-1.308H46.268c-1.743 0-2.954.436-3.632 1.308-.678.872-1.018 1.938-1.018 3.197 0 1.26.34 2.325 1.018 3.197.678.872 1.889 1.308 3.632 1.308h8.138v72.075c0 .193.024.339.073.436.048.096.072.242.072.436H46.56c-1.744 0-3.003.435-3.778 1.307-.775.872-1.163 1.938-1.163 3.197 0 1.356.388 2.446 1.163 3.27.775.823 2.034 1.235 3.778 1.235h34.875z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-input"><path d="M896 224H128c-35.2 0-64 28.8-64 64v448c0 35.2 28.8 64 64 64h768c35.2 0 64-28.8 64-64V288c0-35.2-28.8-64-64-64zm0 480c0 19.2-12.8 32-32 32H160c-19.2 0-32-12.8-32-32V320c0-19.2 12.8-32 32-32h704c19.2 0 32 12.8 32 32v384z" /><path d="M224 352c-19.2 0-32 12.8-32 32v256c0 16 12.8 32 32 32s32-12.8 32-32V384c0-16-12.8-32-32-32z" /></symbol><symbol viewBox="0 0 128 128" id="icon-international"><path d="M83.287 103.01c-1.57-3.84-6.778-10.414-15.447-19.548-2.327-2.444-2.182-4.306-1.338-9.862v-.64c.553-3.81 1.513-6.05 14.313-8.087 6.516-1.018 8.203 1.57 10.589 5.178l.785 1.193a12.625 12.625 0 0 0 6.43 5.207c1.134.524 2.53 1.164 4.421 2.24 4.596 2.53 4.596 5.41 4.596 11.753v.727a26.91 26.91 0 0 1-5.178 17.454 59.055 59.055 0 0 1-19.025 11.026c3.49-6.546.814-14.313 0-16.553l-.146-.087zM64 5.12a58.502 58.502 0 0 1 25.484 5.818 54.313 54.313 0 0 0-12.859 10.327c-.93 1.28-1.716 2.473-2.472 3.579-2.444 3.694-3.637 5.352-5.818 5.614a25.105 25.105 0 0 1-4.219 0c-4.276-.29-10.094-.64-11.956 4.422-1.193 3.23-1.396 11.956 2.444 16.495.66 1.077.778 2.4.32 3.578a7.01 7.01 0 0 1-2.066 3.229 18.938 18.938 0 0 1-2.909-2.91 18.91 18.91 0 0 0-8.32-6.603c-1.25-.349-2.647-.64-3.985-.93-3.782-.786-8.03-1.688-9.019-3.812a14.895 14.895 0 0 1-.727-5.818 21.935 21.935 0 0 0-1.396-9.25 8.873 8.873 0 0 0-5.557-4.946A58.705 58.705 0 0 1 64 5.12zM0 64c0 35.346 28.654 64 64 64 35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-job"><path d="M934.912 1016.832H192c-14.336 0-25.6-11.264-25.6-25.6v-189.44c0-14.336 11.264-25.6 25.6-25.6s25.6 11.264 25.6 25.6v163.84h691.712V64H217.6v148.48c0 14.336-11.264 25.6-25.6 25.6s-25.6-11.264-25.6-25.6V38.4c0-14.336 11.264-25.6 25.6-25.6h742.912c14.336 0 25.6 11.264 25.6 25.6v952.832c0 14.336-11.264 25.6-25.6 25.6z" /><path d="M232.96 371.2H115.2c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h117.76c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6zm0 168.96H115.2c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h117.76c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6zm0 158.72H115.2c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h117.76c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6zm341.504 64c-134.144 0-243.2-109.056-243.2-243.2s109.056-243.2 243.2-243.2 243.2 109.056 243.2 243.2-109.056 243.2-243.2 243.2zm0-435.2c-105.984 0-192 86.016-192 192s86.016 192 192 192 192-86.016 192-192-86.016-192-192-192z" /><path d="M663.04 545.28H576c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h87.04c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6z" /><path d="M576 545.28c-14.336 0-25.6-11.264-25.6-25.6v-87.04c0-14.336 11.264-25.6 25.6-25.6s25.6 11.264 25.6 25.6v87.04c0 14.336-11.264 25.6-25.6 25.6z" /></symbol><symbol viewBox="0 0 128 128" id="icon-language"><path d="M84.742 36.8c2.398 7.2 5.595 12.8 11.19 18.4 4.795-4.8 7.992-11.2 10.39-18.4h-21.58zm-52.748 40h20.78l-10.39-28-10.39 28z" /><path d="M111.916 0H16.009C7.218 0 .025 7.2.025 16v96c0 8.8 7.193 16 15.984 16h95.907c8.791 0 15.984-7.2 15.984-16V16c0-8.8-6.394-16-15.984-16zM72.754 103.2c-1.598 1.6-3.197 1.6-4.795 1.6-.8 0-2.398 0-3.197-.8-.8-.8-1.599 0-1.599-.8s-.799-1.6-1.598-3.2c-.8-1.6-.8-2.4-1.599-4l-3.196-8.8H28.797L25.6 96c-1.598 3.2-2.398 5.6-3.197 7.2-.8 1.6-2.398 1.6-4.795 1.6-1.599 0-3.197-.8-4.796-1.6-1.598-1.6-2.397-2.4-2.397-4 0-.8 0-1.6.799-3.2.8-1.6.8-2.4 1.598-4l17.583-44.8c.8-1.6.8-3.2 1.599-4.8.799-1.6 1.598-3.2 2.397-4 .8-.8 1.599-2.4 3.197-3.2 1.599-.8 3.197-.8 4.796-.8 1.598 0 3.196 0 4.795.8 1.598.8 2.398 1.6 3.197 3.2.799.8 1.598 2.4 2.397 4 .8 1.6 1.599 3.2 2.398 5.6l17.583 44c1.598 3.2 2.398 5.6 2.398 7.2-.8.8-1.599 2.4-2.398 4zM116.711 72c-8.791-3.2-15.185-7.2-20.78-12-5.594 5.6-12.787 9.6-21.579 12l-2.397-4c8.791-2.4 15.984-5.6 21.579-11.2C87.939 51.2 83.144 44 81.545 36h-7.992v-3.2h21.58c-1.6-2.4-3.198-5.6-4.796-8l2.397-.8c1.599 2.4 3.997 5.6 5.595 8.8h19.98v4h-7.992c-2.397 8-6.393 15.2-11.189 20 5.595 4.8 11.988 8.8 20.78 11.2l-3.197 4z" /></symbol><symbol viewBox="0 0 128 128" id="icon-link"><path d="M115.625 127.937H.063V12.375h57.781v12.374H12.438v90.813h90.813V70.156h12.374z" /><path d="m116.426 2.821 8.753 8.753-56.734 56.734-8.753-8.745z" /><path d="M127.893 37.982h-12.375V12.375H88.706V0h39.187z" /></symbol><symbol viewBox="0 0 128 128" id="icon-list"><path d="M1.585 12.087c0 6.616 3.974 11.98 8.877 11.98 4.902 0 8.877-5.364 8.877-11.98 0-6.616-3.975-11.98-8.877-11.98-4.903 0-8.877 5.364-8.877 11.98zM125.86.107H35.613c-1.268 0-2.114 1.426-2.114 2.852v18.255c0 1.712 1.057 2.853 2.114 2.853h90.247c1.268 0 2.114-1.426 2.114-2.853V2.96c0-1.711-1.057-2.852-2.114-2.852zM.106 62.86c0 6.615 3.974 11.979 8.876 11.979 4.903 0 8.877-5.364 8.877-11.98 0-6.616-3.974-11.98-8.877-11.98-4.902 0-8.876 5.364-8.876 11.98zM124.17 50.88H33.921c-1.268 0-2.114 1.425-2.114 2.851v18.256c0 1.711 1.057 2.852 2.114 2.852h90.247c1.268 0 2.114-1.426 2.114-2.852V53.73c0-1.426-.846-2.852-2.114-2.852zM.106 115.913c0 6.616 3.974 11.98 8.876 11.98 4.903 0 8.877-5.364 8.877-11.98 0-6.616-3.974-11.98-8.877-11.98-4.902 0-8.876 5.364-8.876 11.98zm124.064-11.98H33.921c-1.268 0-2.114 1.426-2.114 2.853v18.255c0 1.711 1.057 2.852 2.114 2.852h90.247c1.268 0 2.114-1.426 2.114-2.852v-18.255c0-1.427-.846-2.853-2.114-2.853z" /></symbol><symbol viewBox="0 0 128 128" id="icon-lock"><path d="M119.88 49.674h-7.987V39.52C111.893 17.738 90.45.08 63.996.08 37.543.08 16.1 17.738 16.1 39.52v10.154H8.113c-4.408 0-7.987 2.94-7.987 6.577v65.13c0 3.637 3.57 6.577 7.987 6.577H119.88c4.407 0 7.987-2.94 7.987-6.577v-65.13c-.008-3.636-3.58-6.577-7.987-6.577zm-23.953 0H32.065V39.52c0-14.524 14.301-26.295 31.931-26.295 17.63 0 31.932 11.777 31.932 26.295v10.153z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-log"><path d="M208.736 566.336H64.384v59.328h144.352v-59.328zm0-336.096H165.44V74.592c0-7.968 4.896-14.848 10.464-14.848H677.92V.448H175.936c-38.72 1.248-69.248 34.368-68.192 74.144V230.24h-43.36v59.36h144.352v-59.36zm0 168.096H64.384v59.328h144.352v-59.328zm714.656 76.576h-57.76v474.496c0 7.936-4.896 14.848-10.464 14.848H175.936c-5.568 0-10.464-6.912-10.464-14.848v-155.68h43.296v-59.296H64.384v59.296h43.328v155.68c-1.024 39.776 29.472 72.896 68.192 74.144h679.232c38.72-1.184 69.248-34.368 68.256-74.144V474.912zm14.944-290.336-83.072-85.312a71.264 71.264 0 0 0-52.544-21.728 71.52 71.52 0 0 0-51.616 23.872L386.528 507.264a30.496 30.496 0 0 0-6.176 10.72L308.16 740.512a30.016 30.016 0 0 0 6.976 30.24c7.712 7.968 19.2 10.752 29.568 7.2l216.544-74.112a28.736 28.736 0 0 0 12.128-7.936l367.072-408.448a75.552 75.552 0 0 0-2.112-102.88zm-557.12 518.272 39.104-120.64 78.336 80.416-117.44 40.224zm170.048-70.016L447.712 526.816l200.16-222.4 103.52 106.304-200.128 222.112zm346.688-385.76-.256.224L790.56 366.464 687.04 259.936l106.432-118.624a14.144 14.144 0 0 1 10.304-4.736 13.44 13.44 0 0 1 10.464 4.288l83.264 85.696c5.472 5.6 5.664 14.72.448 20.512z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-logininfor"><path d="M896 128h-85.333a42.667 42.667 0 0 0 0 85.333h42.666v640H170.667v-640h42.666a42.667 42.667 0 0 0 0-85.333H128a42.667 42.667 0 0 0-42.667 42.667V896A42.667 42.667 0 0 0 128 938.667h768A42.667 42.667 0 0 0 938.667 896V170.667A42.667 42.667 0 0 0 896 128z" /><path d="M341.333 298.667A42.667 42.667 0 0 0 384 256V128a42.667 42.667 0 0 0-85.333 0v128a42.667 42.667 0 0 0 42.666 42.667zm170.667 0A42.667 42.667 0 0 0 554.667 256V128a42.667 42.667 0 0 0-85.334 0v128A42.667 42.667 0 0 0 512 298.667zm170.667 0A42.667 42.667 0 0 0 725.333 256V128A42.667 42.667 0 0 0 640 128v128a42.667 42.667 0 0 0 42.667 42.667zM341.333 768A42.667 42.667 0 0 0 384 725.333a128 128 0 0 1 256 0 42.667 42.667 0 0 0 85.333 0 213.333 213.333 0 0 0-107.52-184.32A128 128 0 0 0 640 469.333a128 128 0 0 0-256 0 128 128 0 0 0 22.187 71.68 213.333 213.333 0 0 0-107.52 184.32A42.667 42.667 0 0 0 341.333 768zm128-298.667A42.667 42.667 0 1 1 512 512a42.667 42.667 0 0 1-42.667-42.667z" /></symbol><symbol viewBox="0 0 128 128" id="icon-message"><path d="M0 20.967v59.59c0 11.59 8.537 20.966 19.075 20.966h28.613l1 26.477L76.8 101.523h32.125c10.538 0 19.075-9.377 19.075-20.966v-59.59C128 9.377 119.463 0 108.925 0h-89.85C8.538 0 0 9.377 0 20.967zm82.325 33.1c0-5.524 4.013-9.935 9.037-9.935 5.026 0 9.038 4.41 9.038 9.934 0 5.524-4.025 9.934-9.038 9.934-5.024 0-9.037-4.41-9.037-9.934zm-27.613 0c0-5.524 4.013-9.935 9.038-9.935s9.037 4.41 9.037 9.934c0 5.524-4.025 9.934-9.037 9.934-5.025 0-9.038-4.41-9.038-9.934zm-27.1 0c0-5.524 4.013-9.935 9.038-9.935s9.038 4.41 9.038 9.934c0 5.524-4.026 9.934-9.05 9.934-5.013 0-9.025-4.41-9.025-9.934z" /></symbol><symbol viewBox="0 0 128 128" id="icon-money"><path d="M54.122 127.892v-28.68H7.513V87.274h46.609v-12.4H7.513v-12.86h38.003L.099 0h22.6l32.556 45.07c3.617 5.144 6.44 9.611 8.487 13.385 1.788-3.05 4.89-7.779 9.301-14.186L103.93 0h24.01L82.385 62.013h38.34v12.862h-46.41v12.4h46.41v11.937h-46.41v28.68H54.123z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-monitor"><defs><style>@font-face{font-family:rbicon;src:url(chrome-extension://dipiagiiohfljcicegpgffpbnjmgjcnf/fonts/rbicon.woff2) format("woff2");font-weight:400;font-style:normal}</style></defs><path d="M64 64v576h832V64H64zM0 0h960v704H0V0z" /><path d="M192 896h576v64H192zm256-256h64v256h-64zM479.232 561.604l309.99-348.33-47.803-42.548-259.567 291.67-177.895-222.387L163.21 438.605l52.224 37.009 91.622-129.28z" /></symbol><symbol viewBox="0 0 128 128" id="icon-nested"><path d="M.002 9.2c0 5.044 3.58 9.133 7.998 9.133 4.417 0 7.997-4.089 7.997-9.133 0-5.043-3.58-9.132-7.997-9.132S.002 4.157.002 9.2zM31.997.066h95.981V18.33H31.997V.066zm0 45.669c0 5.044 3.58 9.132 7.998 9.132 4.417 0 7.997-4.088 7.997-9.132 0-3.263-1.524-6.278-3.998-7.91-2.475-1.63-5.524-1.63-7.998 0-2.475 1.632-4 4.647-4 7.91zM63.992 36.6h63.986v18.265H63.992V36.6zm-31.995 82.2c0 5.043 3.58 9.132 7.998 9.132 4.417 0 7.997-4.089 7.997-9.132 0-5.044-3.58-9.133-7.997-9.133s-7.998 4.089-7.998 9.133zm31.995-9.131h63.986v18.265H63.992V109.67zm0-27.404c0 5.044 3.58 9.133 7.998 9.133 4.417 0 7.997-4.089 7.997-9.133 0-3.263-1.524-6.277-3.998-7.909-2.475-1.631-5.524-1.631-7.998 0-2.475 1.632-4 4.646-4 7.91zm31.995-9.13h31.991V91.4H95.987V73.135z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-number"><path d="M279.273 791.273h512a46.545 46.545 0 0 1 0 93.09h-512a46.545 46.545 0 0 1 0-93.09zm33.838-617.984v478.347H193.722V395.171c0-37.004-.884-59.299-2.653-66.746a24.948 24.948 0 0 0-14.615-16.99c-8.006-3.863-25.786-5.771-53.341-5.771H111.29v-55.855c57.717-12.38 101.562-37.888 131.491-76.52h70.284zm303.71 396.8v81.547H354.163v-68.235c77.778-127.256 124.044-206.01 138.706-236.218 14.662-30.255 22.016-53.854 22.016-70.75 0-13.032-2.234-22.714-6.656-29.137-4.422-6.377-11.171-9.588-20.247-9.588a22.249 22.249 0 0 0-20.201 10.612c-4.469 7.121-6.656 21.178-6.656 42.263v45.522H354.164V318.65c0-26.763 1.397-47.942 4.143-63.348 2.746-15.5 9.542-30.72 20.387-45.661 10.798-14.988 24.902-26.298 42.217-33.978 17.361-7.68 38.167-11.544 62.37-11.544 47.477 0 83.317 11.776 107.707 35.328 24.296 23.552 36.445 53.341 36.445 89.368 0 27.368-6.842 56.32-20.48 86.853-13.731 30.534-54.04 95.325-121.018 194.42H616.82zm270.615-189.394c18.152 6.098 31.65 16.105 40.494 29.976 8.844 13.917 13.312 46.452 13.312 97.652 0 38.028-4.329 67.49-13.033 88.53-8.657 20.945-23.598 36.91-44.87 47.848-21.27 10.938-48.593 16.384-81.873 16.384-37.795 0-67.49-6.33-89.088-19.084-21.55-12.66-35.747-28.253-42.542-46.638-6.796-18.432-10.194-50.362-10.194-95.884v-37.841h119.39v77.73c0 20.667 1.21 33.84 3.723 39.425 2.42 5.585 7.913 8.424 16.337 8.424 9.31 0 15.36-3.537 18.34-10.612 2.932-7.121 4.421-25.6 4.421-55.575v-33.047c0-18.34-2.048-31.744-6.19-40.216a30.72 30.72 0 0 0-18.34-16.71c-8.052-2.653-23.738-4.189-46.964-4.561V357.05c28.393 0 45.894-1.07 52.597-3.258a22.947 22.947 0 0 0 14.475-14.15c2.933-7.307 4.422-18.711 4.422-34.257V278.76c0-16.757-1.722-27.741-5.12-33.048-3.49-5.352-8.844-8.005-16.151-8.005-8.285 0-13.964 2.792-16.99 8.378-3.025 5.632-4.56 17.64-4.56 35.933v39.284h-119.39V280.53c0-45.66 10.473-76.567 31.325-92.625 20.9-16.058 54.086-24.064 99.608-24.064 56.878 0 95.51 11.17 115.805 33.373 20.293 22.249 30.394 53.202 30.394 92.765 0 26.81-3.63 46.173-10.892 58.089-7.307 11.916-20.107 22.807-38.446 32.628z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-online"><path d="M356.246 681.563C288.09 639.613 249 577.722 249 511.757c0-65.966 39.09-127.86 107.246-169.809 12.047-7.415 15.801-23.19 8.386-35.237-7.414-12.046-23.191-15.801-35.236-8.387-39.641 24.4-72.54 56.045-95.138 91.516-23.867 37.46-36.482 79.62-36.482 121.917 0 42.298 12.615 84.455 36.482 121.915 22.599 35.47 55.497 67.115 95.138 91.513a25.489 25.489 0 0 0 13.4 3.805c8.599 0 16.998-4.33 21.836-12.19 7.415-12.048 3.66-27.823-8.386-35.237zm-92.302 73.018C171.34 693.469 118.23 604.957 118.23 511.74c0-93.196 53.094-181.684 145.668-242.775 11.806-7.79 15.06-23.677 7.27-35.483-7.791-11.806-23.678-15.062-35.484-7.27C128.488 296.954 67.007 401.024 67.007 511.74c0 110.737 61.496 214.83 168.721 285.594a25.487 25.487 0 0 0 14.083 4.238c8.317 0 16.476-4.046 21.4-11.507 7.793-11.807 4.538-27.693-7.267-35.484zM788.66 226.213c-11.805-7.791-27.693-4.536-35.484 7.27-7.79 11.806-4.536 27.692 7.27 35.483 92.575 61.092 145.67 149.58 145.67 242.774 0 93.216-53.111 181.728-145.715 242.84-11.806 7.791-15.06 23.68-7.27 35.485 4.926 7.462 13.082 11.507 21.4 11.507 4.842 0 9.74-1.371 14.085-4.238C895.844 726.572 957.34 622.476 957.34 511.74c0-110.714-61.48-214.785-168.68-285.527zm1.43 407.46c23.865-37.46 36.48-79.618 36.48-121.916s-12.615-84.456-36.48-121.917c-22.6-35.471-55.498-67.116-95.14-91.516-12.048-7.413-27.822-3.659-35.237 8.387-7.415 12.046-3.66 27.822 8.386 35.237 68.156 41.95 107.247 103.842 107.247 169.81 0 65.964-39.09 127.855-107.247 169.804-12.046 7.415-15.801 23.19-8.386 35.237 4.838 7.861 13.236 12.191 21.835 12.191 4.58 0 9.216-1.228 13.4-3.805 39.642-24.398 72.541-56.042 95.141-91.513zM567.128 518.274c24.124-17.15 39.888-45.306 39.888-77.071 0-52.129-42.453-94.539-94.635-94.539-52.18 0-94.633 42.41-94.633 94.539 0 31.695 15.696 59.798 39.73 76.958-49.875 21.129-84.916 70.235-84.916 127.302 0 2.367.061 4.762.182 7.119l1.25 24.296h276.373l1.238-24.308c.12-2.36.181-4.75.181-7.107 0-56.967-34.921-105.998-84.658-127.19zm-54.748-120.386c23.937 0 43.412 19.43 43.412 43.315 0 23.883-19.475 43.313-43.412 43.313-23.936 0-43.41-19.43-43.41-43.313 0-23.883 19.474-43.315 43.41-43.315zM426.09 625.657c9.12-38.543 44.255-67.338 86.085-67.338s76.967 28.795 86.086 67.338H426.09z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-password"><path d="M868.593 403.832c-30.081-28.845-70.037-44.753-112.624-44.753h-490.02c-42.554 0-82.51 15.908-112.469 44.691-30.237 28.783-46.857 67.222-46.857 108.198v294.08c0 40.977 16.62 79.415 46.703 108.137C183.285 943.03 223.396 959 265.95 959h490.019c42.586 0 82.696-15.97 112.624-44.815 30.082-28.845 46.58-67.222 46.58-108.137v-294.08c-.001-40.915-16.498-79.29-46.58-108.136zM841.821 806.05c0 22.098-8.882 42.772-25.1 58.307-16.154 15.662-37.819 24.203-60.752 24.203h-490.02c-22.934 0-44.566-8.542-60.877-24.264-16.187-15.475-25.068-36.149-25.068-58.247v-294.08c0-22.036 8.881-42.772 25.193-58.308 16.187-15.537 37.82-24.14 60.754-24.14H755.97c22.933 0 44.598 8.603 60.753 24.14 16.218 15.536 25.1 36.272 25.1 58.308V806.05zM510.974 135.441c114.914 0 208.319 89.752 208.319 200.055h73.35C792.643 186.383 666.277 65 510.974 65c-155.334 0-281.7 121.384-281.7 270.497h73.35c0-110.302 93.436-200.055 208.35-200.055zM474.3 747.245h73.35V629.577H474.3v117.668z" /></symbol><symbol viewBox="0 0 1024 1024" id="icon-pdf"><path d="M869.073 277.307H657.111V65.344l211.962 211.963zm-238.232 26.27V65.344l-476.498-.054v416.957h714.73v-178.67H630.841zm-335.836 360.57c-5.07-3.064-10.944-5.133-17.61-6.201-6.67-1.064-13.603-1.6-20.81-1.6h-48.821v85.641h48.822c7.206 0 14.14-.532 20.81-1.6 6.665-1.065 12.54-3.133 17.609-6.202 5.064-3.063 9.134-7.406 12.208-13.007 3.065-5.602 4.6-12.937 4.6-22.011 0-9.07-1.535-16.408-4.6-22.01-3.074-5.603-7.144-9.94-12.208-13.01zM35.82 541.805v416.904h952.358V541.805H35.821zm331.421 191.179c-3.6 11.071-9.343 20.879-17.209 29.413-7.874 8.542-18.078 15.408-30.617 20.61-12.544 5.206-27.747 7.807-45.621 7.807h-66.036v102.45h-62.831V607.517h128.867c17.874 0 33.077 2.6 45.62 7.802 12.541 5.207 22.745 12.076 30.618 20.615 7.866 8.538 13.604 18.277 17.21 29.212 3.6 10.943 5.401 22.278 5.401 34.018 0 11.477-1.8 22.752-5.402 33.819zM644.9 806.417c-5.343 17.61-13.408 32.818-24.212 45.627-10.807 12.803-24.283 22.879-40.423 30.213-16.146 7.343-35.155 11.007-57.03 11.007h-123.26V607.518h123.26c18.41 0 35.552 2.941 51.428 8.808 15.873 5.869 29.618 14.671 41.22 26.412 11.608 11.744 20.674 26.411 27.217 44.02 6.535 17.61 9.803 38.288 9.803 62.035 0 20.81-2.67 40.02-8.003 57.624zm245.362-146.07h-138.07v66.03h119.66v48.829h-119.66v118.058h-62.83V607.518h200.9v52.829h-.001zm-318.2 25.611c-6.402-8.266-14.877-14.604-25.412-19.01-10.544-4.402-23.551-6.602-39.019-6.602h-44.825v180.088h56.029c9.07 0 17.872-1.463 26.415-4.401 8.535-2.932 16.14-7.802 22.812-14.609 6.665-6.8 12.007-15.667 16.007-26.61 4.003-10.94 6.003-24.275 6.003-40.021 0-14.408-1.4-27.416-4.202-39.019-2.8-11.607-7.406-21.542-13.808-29.816zm0 0" /></symbol><symbol viewBox="0 0 128 128" id="icon-people"><path d="M104.185 95.254c8.161 7.574 13.145 17.441 13.145 28.28 0 1.508-.098 2.998-.285 4.466h-10.784c.238-1.465.403-2.948.403-4.465 0-8.983-4.36-17.115-11.419-23.216C86 104.66 75.355 107.162 64 107.162c-11.344 0-21.98-2.495-31.22-6.83-7.064 6.099-11.444 14.218-11.444 23.203 0 1.517.165 3 .403 4.465H10.955a35.444 35.444 0 0 1-.285-4.465c0-10.838 4.974-20.713 13.127-28.291C9.294 85.42.003 70.417.003 53.58.003 23.99 28.656.001 64 .001s63.997 23.988 63.997 53.58c0 16.842-9.299 31.85-23.812 41.673zM64 36.867c-29.454 0-53.33-10.077-53.33 15.342 0 25.418 23.876 46.023 53.33 46.023 29.454 0 53.33-20.605 53.33-46.023 0-25.419-23.876-15.342-53.33-15.342zm24.888 25.644c-3.927 0-7.111-2.665-7.111-5.953 0-3.288 3.184-5.954 7.11-5.954 3.928 0 7.111 2.666 7.111 5.954s-3.183 5.953-7.11 5.953zm-3.556 16.372c0 4.11-9.55 7.442-21.332 7.442-11.781 0-21.332-3.332-21.332-7.442 0-1.06.656-2.064 1.8-2.976 3.295 2.626 10.79 4.465 19.532 4.465 8.743 0 16.237-1.84 19.531-4.465 1.145.912 1.801 1.916 1.801 2.976zm-46.22-16.372c-3.927 0-7.11-2.665-7.11-5.953 0-3.288 3.183-5.954 7.11-5.954 3.927 0 7.111 2.666 7.111 5.954s-3.184 5.953-7.11 5.953z" /></symbol><symbol viewBox="0 0 128 128" id="icon-peoples"><path d="M95.648 118.762c0 5.035-3.563 9.121-7.979 9.121H7.98c-4.416 0-7.979-4.086-7.979-9.121C0 100.519 15.408 83.47 31.152 76.75c-9.099-6.43-15.216-17.863-15.216-30.987v-9.128c0-20.16 14.293-36.518 31.893-36.518s31.894 16.358 31.894 36.518v9.122c0 13.137-6.123 24.556-15.216 30.993 15.738 6.726 31.141 23.769 31.141 42.012z" /><path d="M106.032 118.252h15.867c3.376 0 6.101-3.125 6.101-6.972 0-13.957-11.787-26.984-23.819-32.123 6.955-4.919 11.638-13.66 11.638-23.704v-6.985c0-15.416-10.928-27.926-24.39-27.926-1.674 0-3.306.193-4.89.561 1.936 4.713 3.018 9.974 3.018 15.526v9.121c0 13.137-3.056 23.111-11.066 30.993 14.842 4.41 27.312 23.42 27.541 41.509z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-phone"><path d="M761.503 2.906H242.122c-32.405 0-58.932 26.06-58.932 58.528v902.302c0 32.157 26.217 58.217 58.932 58.217h519.381c32.345 0 58.591-26.06 58.591-58.217V61.123c0-32.156-26.246-58.217-58.591-58.217M452.879 61.123h98.147c6.78 0 12.316 5.536 12.316 12.253 0 6.749-5.535 12.253-12.316 12.253H452.88c-6.78 0-12.345-5.504-12.345-12.253-.001-6.717 5.566-12.253 12.345-12.253m48.763 919.47c-29.637 0-53.988-23.946-53.988-53.677 0-29.357 24.04-53.614 53.988-53.614 29.917 0 53.987 23.884 53.987 53.614 0 29.731-24.069 53.677-53.987 53.677m264.715-177.45c0 16.234-13.187 29.108-29.234 29.108H266.504c-16.357 0-29.326-13.186-29.326-29.108V163.5c0-16.233 13.28-29.139 29.326-29.139H736.75c16.421 0 29.358 13.185 29.358 29.139v639.642h.249zm0 0" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-post"><path d="M136.4 434.3h77.7c21.5 0 38.9-17.4 38.9-38.9s-17.4-38.9-38.9-38.9h-77.7c-21.5 0-38.9 17.4-38.9 38.9s17.4 38.9 38.9 38.9zm116.5 194.3c0-21.5-17.4-38.9-38.9-38.9h-77.7c-21.5 0-38.9 17.4-38.9 38.9s17.4 38.9 38.9 38.9H214c21.5-.1 38.9-17.5 38.9-38.9z" /><path d="M874.7 97.5H227c-28.6 0-51.8 23.2-51.8 51.8v194.3h38.9c28.6 0 51.8 23.2 51.8 51.8 0 28.6-23.2 51.8-51.8 51.8h-38.9v129.5h38.9c28.6 0 51.8 23.2 51.8 51.8 0 28.6-23.2 51.8-51.8 51.8h-38.9v194.3c0 28.6 23.2 51.8 51.8 51.8h647.7c28.6 0 51.8-23.2 51.8-51.8V149.3c0-28.6-23.2-51.8-51.8-51.8zm-311.3 723c-15.6 0-146.7-71.6-146.7-91 0-19.4 102-368.6 102-368.6l-83.6-104s-12.3-23.1 24.6-23.1h208.9c36.9 0 18.4 23.1 18.4 23.1l-79 104s102 351.3 102 368.6c.1 17.3-131 91-146.6 91zm169.2-253.6-27.9 40.2-74.5-240 103.4 171.7c4.6 7.9 4.2 20.6-1 28.1z" /></symbol><symbol viewBox="0 0 128 128" id="icon-qq"><path d="m18.448 57.545-.244-.744-.198-.968-.132-.53v-2.181l.236-.859.24-.908.317-.953.428-1.06.561-1.103.794-1.104v-.773l.077-.724.123-.984.34-1.106.313-1.194.25-.548.289-.511.371-.569.405-.423v-2.73l.234-1.407.236-1.633.42-1.955.577-2.035.43-1.118.426-1.217.468-1.135.559-1.216.57-1.332.655-1.247.737-1.331.929-1.33.43-.762.457-.624.995-1.406 1.025-1.403 1.163-1.444 1.246-1.405 1.352-1.384 1.41-1.423 1.708-1.536 1.083-.934 1.322-1.008 1.34-.89 1.448-.855 1.392-.76 1.57-.63 1.667-.775 1.657-.532 1.653-.552 1.787-.548 1.785-.417 1.876-.347L59.128.68l1.879-.245 1.876-.252 2.002-.106h5.912l1.97.243 1.981.231 2.019.207 1.874.441 1.979.413 1.857.475 2.035.53 1.862.646 1.782.738 1.904.78 1.736.853 1.689.95 1.655 1.044 1.425.971.662.548.693.401 1.323 1.1 1.115 1.064 1.112 1.1 1.083 1.214.894 1.178 1.064 1.217.74 1.306.752 1.162.798 1.352.661 1.175 1.113 2.489.546 1.286.428 1.192.428 1.294.384 1.217.267 1.047.347 1.231.607 2.198.388 1.924.253 1.861.217 1.497.342 2.28.077.362.274.41.737 1.18.473.8.42.832.534.892.472 1.07.307 1.093.334 1.2.252 1.232.115.605.106.746v.648l-.106.643v.8l-.192.774-.35 1.5-.403.76-.299.852v.213l.142.264.4.623 1.746 2.53 1.377 1.9.66 1.267.889 1.389.774 1.52.893 1.627.894 1.828 1.006 2.069.567 1.268.518 1.239.447 1.307.44 1.175.336 1.235.342 1.16.432 2.261.343 2.31.235 2.05v2.891l-.158 1.025-.226 1.768-.308 1.59-.48 1.44-.18.588-.336.707-.28.493-.375.607-.33.383-.42.494-.375.4-.401.34-.48.207-.432.207-.355.114h-.543l-.346-.114-.66-.32-.302-.212-.317-.223-.347-.304-.35-.342-.579-.63-.684-.89-.539-.917-.538-.734-.526-.855-.741-1.517-.833-1.579-.098-.055h-.138l-.338.247-.196.415-.326.516-.567 1.533-.856 2.182-1.096 2.626-.824 1.308-.864 1.366-1.027 1.536-1.09 1.503-.557.68-.676.743-1.555 1.497.136.135.21.214.777.446 3.235 1.524 1.41.779 1.347.756 1.332.953 1.187.982.574.443.432.511.445.593.367.643.198.533.242.64.105.554.115.647-.115.433v.44l-.105.454-.242.415-.092.325-.22.394-.587.784-.543.627-.42.47-.35.348-.893.638-1.01.556-1.077.532-1.155.511-1.287.495-.693.207-.608.167-1.496.342-1.545.325-1.552.323-1.689.27-1.74.072-1.785.21h-5.539l-1.998-.114-1.86-.168-2.005-.27-1.99-.209-2.095-.286-2.03-.495-1.981-.374-1.968-.552-2.019-.707-1.98-.585-1.044-.342-.927-.323-.586-.223-.582-.12h-1.647l-1.904-.131-.962-.096-1.24-.135-.795.705-1.085.665-1.471.701-1.628.875-.99.475-1.033.376-2.281.914-1.24.305-1.3.343-1.803.344-1.13.086-1.193.1-1.246.135-1.45.053h-5.926l-3.346-.053-3.25-.321-1.644-.23-1.589-.23-1.546-.227-1.547-.305-1.442-.456-1.434-.325-1.294-.51-1.223-.474-1.142-.533-.99-.583-.984-.71-.336-.343-.44-.415-.334-.362-.3-.417-.278-.415-.215-.42-.311-.89-.109-.46-.138-.51v-.473l.138-.533v-.53l.109-.53v-1.069l.052-.564.259-.647.215-.646.39-.779.286-.3.236-.348.615-.738.49-.38.464-.266.428-.338.676-.21.543-.324.676-.341.77-.227.775-.231.897-.192.85-.11 1.008-.13 1.093-.081.284-.092h.063l.137-.115v-.13l-.2-.266-.58-.27-1.45-1.231-.975-.761-1.127-.967-1.136-1.082-1.181-1.382-1.36-1.558-.508-.843-.672-.87-.58-1.007-.522-1.1-.704-1.047-.459-1.194-.547-1.192-.546-1.33-.397-1.273-.378-1.575-.112-.057h-.115l-.059-.113h-.14l-.23.113-.114.057-.158.264-.057.321-.119.286-.206.477-.664 1.157-.345.701-.546.612-.58.736-.641.816-.677.724-.795.701-.734.658-.814.524-.89.546-.855.325-1.008.247-.99.095h-.233l-.228-.095-.18-.384-.29-.188-.38-.912-.237-.493-.255-.707-.21-.734-.113-.724-.313-1.648-.12-.972v-3.185l.12-2.379.196-1.214.23-1.252.21-1.347.374-1.254.42-1.443.431-1.407.578-1.448.545-1.38.754-1.4.699-1.52.855-1.425 1.006-1.538 1.023-1.382 1.069-1.538.891-1.071 1.142-1.227 1.202-1.237.56-.59.678-.662.985-.836 1.012-.853 1.647-1.446 1.242-.889z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-question"><path d="M512 0C229.234 0 0 229.234 0 512s229.234 512 512 512 512-229.234 512-512A512 512 0 0 0 512 0zm0 938.667C276.366 938.667 85.333 747.634 85.333 512S276.366 85.333 512 85.333 938.667 276.366 938.667 512A426.667 426.667 0 0 1 512 938.667zm0-717.654A170.667 170.667 0 0 0 341.333 391.68a42.667 42.667 0 0 0 85.334 0A85.333 85.333 0 1 1 512 477.013a42.667 42.667 0 0 0-42.667 42.667v111.36a42.667 42.667 0 0 0 85.334 0V556.8A170.667 170.667 0 0 0 512 221.013zm-42.667 542.294a42.667 42.667 0 1 0 85.334 0 42.667 42.667 0 0 0-85.334 0z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-radio"><path d="M507.393 71.849c241.536 0 437.398 195.854 437.398 437.374 0 241.538-195.862 437.39-437.398 437.39-241.5 0-437.35-195.852-437.35-437.39 0-241.52 195.849-437.374 437.35-437.374zm0 210.97c-125.006 0-226.37 101.39-226.37 226.418 0 125.013 101.364 226.397 226.37 226.397 125.043 0 226.424-101.384 226.424-226.397 0-125.029-101.38-226.418-226.424-226.418zm0-162.037c-214.466 0-388.42 173.951-388.42 388.44 0 214.512 173.955 388.461 388.42 388.461 214.524 0 388.46-173.948 388.46-388.461 0-214.489-173.936-388.44-388.46-388.44z" /></symbol><symbol class="icon" viewBox="0 0 1069 1024" id="icon-rate"><path d="m633.73 378.02 9.498 18.688 20.78 2.798 206.616 27.332a11.465 11.465 0 0 1 6.61 19.473L729.966 593.665l-14.893 14.893 3.8 20.683 37.847 204.89a11.465 11.465 0 0 1-16.481 12.296l-185.55-94.58-18.687-9.493-18.487 9.992-183.24 99.35a11.465 11.465 0 0 1-16.784-11.867l32.543-205.796 3.297-20.786-15.192-14.492-151.033-143.484a11.465 11.465 0 0 1 6.1-19.64L399 402.998l20.786-3.296 9.092-18.98 89.713-188.078a11.465 11.465 0 0 1 20.569-.263l94.568 185.635zM496.647 85.52 374.89 340.501l-279.126 44.26a34.395 34.395 0 0 0-18.303 58.908l204.873 194.663-44.169 279.115a34.395 34.395 0 0 0 50.366 35.616l248.4-134.679L788.776 946.66a34.395 34.395 0 0 0 49.437-36.894l-51.306-277.854 199.731-199.909a34.395 34.395 0 0 0-19.828-58.408l-280.118-37.032L558.33 84.713a34.395 34.395 0 0 0-61.682.802z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-redis-list"><defs><style>@font-face{font-family:feedback-iconfont;src:url(//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944) format("woff2"),url(//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944) format("woff"),url(//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944) format("truetype")}</style></defs><path d="M958.88 730.06H65.12c-18.28 0-33.12-14.82-33.12-33.12V68.91c0-18.29 14.83-33.12 33.12-33.12h893.77c18.28 0 33.12 14.82 33.12 33.12v628.03c-.01 18.3-14.84 33.12-33.13 33.12zM98.23 663.83h827.53v-561.8H98.23v561.8z" /><path d="M512 954.55c-18.28 0-33.12-14.82-33.12-33.12V733.92c0-18.29 14.83-33.12 33.12-33.12s33.12 14.82 33.12 33.12v187.51c0 18.3-14.84 33.12-33.12 33.12z" /><path d="M762.01 988.21H261.99c-18.28 0-33.12-14.82-33.12-33.12 0-18.29 14.83-33.12 33.12-33.12h500.03c18.28 0 33.12 14.82 33.12 33.12-.01 18.29-14.84 33.12-33.13 33.12zM514.74 578.55c-21.63 0-43.31-3.87-64.21-11.65-45.95-17.13-82.49-51.13-102.86-95.74-5.07-11.08-.19-24.19 10.89-29.26 11.08-5.09 24.19-.18 29.26 10.91 15.5 33.88 43.25 59.7 78.14 72.71 34.93 12.99 72.79 11.64 106.66-3.85 33.22-15.17 58.8-42.26 72.03-76.3 4.42-11.37 17.21-17.01 28.57-12.58 11.36 4.42 16.99 17.22 12.57 28.58-17.42 44.82-51.1 80.5-94.82 100.47-24.34 11.12-50.25 16.71-76.23 16.71z" /><path d="M325.27 528.78c-1.66 0-3.34-.18-5.02-.57-11.88-2.77-19.28-14.63-16.49-26.51l18.84-81c1.34-5.82 5-10.84 10.13-13.92 5.09-3.09 11.3-3.96 17.03-2.41l80.51 21.43c11.79 3.14 18.8 15.23 15.67 27.02-3.15 11.79-15.42 18.75-27.02 15.65l-58.49-15.57-13.69 58.81c-2.37 10.2-11.45 17.07-21.47 17.07zm35.53-177.77c-2.65 0-5.37-.49-8-1.51-11.36-4.41-16.99-17.21-12.59-28.57 17.4-44.79 51.06-80.47 94.8-100.48 92.15-42.06 201.25-1.39 243.31 90.68 5.07 11.08.19 24.19-10.89 29.26-11.13 5.07-24.19.17-29.26-10.91-31.97-69.91-114.9-100.82-184.79-68.86-33.22 15.19-58.8 42.28-71.99 76.29-3.41 8.74-11.75 14.1-20.59 14.1z" /><path d="M684.68 376.74c-1.47 0-2.95-.15-4.42-.44l-81.61-16.68c-11.94-2.45-19.64-14.11-17.21-26.06 2.44-11.96 14.1-19.64 26.04-17.22l59.29 12.12 10.23-59.5c2.05-12 13.52-20.19 25.48-18.01 12.03 2.06 20.09 13.48 18.02 25.5l-14.08 81.96a22.089 22.089 0 0 1-9.29 14.49c-3.7 2.51-8.03 3.84-12.45 3.84z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-redis"><path d="M1023.787 611.84c-.427 9.77-13.355 20.693-39.894 34.56C929.28 674.859 646.144 791.296 585.9 822.699c-60.288 31.402-93.739 31.104-141.355 8.32-47.616-22.742-348.843-144.47-403.115-170.368C14.336 647.68.512 636.757.043 626.432v103.51c0 10.325 14.25 21.29 41.386 34.26 54.272 25.942 355.542 147.627 403.115 170.369 47.616 22.784 81.067 23.082 141.355-8.363 60.245-31.403 343.338-147.797 397.994-176.299 27.776-14.464 40.107-25.728 40.107-35.925V611.925l-.213-.085zm0-168.747c-.512 9.771-13.398 20.651-39.894 34.518C929.28 506.069 646.144 622.507 585.9 653.909c-60.288 31.403-93.739 31.104-141.355 8.363-47.616-22.741-348.843-144.47-403.115-170.41C14.336 478.932.512 467.967.043 457.684v103.51c0 10.325 14.25 21.248 41.386 34.218 54.272 25.942 355.499 147.627 403.115 170.368 47.616 22.784 81.067 23.083 141.355-8.32 60.245-31.402 343.338-147.84 397.994-176.298 27.776-14.507 40.107-25.771 40.107-35.968V443.136l-.256-.043zm0-175.018c.469-10.411-13.142-19.542-40.534-29.611-53.248-19.499-334.634-131.499-388.522-151.253-53.888-19.712-75.819-18.902-139.094 3.84C392.235 113.707 92.63 231.253 39.34 252.075 12.672 262.57-.341 272.256.085 282.58v103.552c0 10.326 14.251 21.248 41.387 34.219 54.272 25.941 355.499 147.67 403.115 170.41 47.616 22.742 81.066 23.04 141.354-8.362 60.246-31.403 343.339-147.84 397.995-176.299 27.776-14.506 40.107-25.77 40.107-35.968V268.075h-.342zm-657.11 98.005 237.27-36.437-71.68 105.088L366.72 366.08zm524.8-94.635-140.33 55.467-15.232 5.973-140.246-55.466 155.392-61.44 140.374 55.466zM479.488 169.771l-22.955-42.326 71.595 27.99 67.499-22.102-18.262 43.734 68.779 25.77-88.704 9.216-19.883 47.787-32.085-53.29-102.4-9.217 76.416-27.562zM302.72 229.504c70.059 0 126.805 21.973 126.805 49.11s-56.746 49.151-126.805 49.151-126.848-22.058-126.848-49.152c0-27.136 56.79-49.152 126.848-49.152z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-row"><path d="M152 854.857h325.715V237.716H134.857v600q0 6.993 5.075 12.068T152 854.857zm737.143-17.142v-600H546.284v617.142H872q6.994 0 12.068-5.074t5.075-12.068zm68.572-651.43v651.43q0 35.383-25.167 60.55T872 923.427H152q-35.383 0-60.548-25.165t-25.168-60.548v-651.43q0-35.383 25.167-60.55T152 100.573h720q35.383 0 60.548 25.165t25.167 60.548z" /></symbol><symbol viewBox="0 0 128 128" id="icon-search"><path d="M124.884 109.812 94.256 79.166c-.357-.357-.757-.629-1.129-.914a50.366 50.366 0 0 0 8.186-27.59C101.327 22.689 78.656 0 50.67 0 22.685 0 0 22.688 0 50.663c0 27.989 22.685 50.663 50.656 50.663 10.186 0 19.643-3.03 27.6-8.201.286.385.557.771.9 1.114l30.628 30.632a10.633 10.633 0 0 0 7.543 3.129c2.728 0 5.457-1.043 7.543-3.115 4.171-4.157 4.171-10.915.014-15.073M50.671 85.338C31.557 85.338 16 69.78 16 50.663c0-19.102 15.557-34.661 34.67-34.661 19.115 0 34.657 15.559 34.657 34.675 0 19.102-15.557 34.661-34.656 34.661" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-select"><path d="M62 511.98C62 263.866 263.907 62 511.98 62s449.98 201.825 449.98 449.98c0 248.195-201.908 449.98-449.98 449.98C263.907 962 62 760.174 62 511.98m839.986 0c0-215.244-175.009-390.416-390.006-390.416-215.04 0-389.966 175.172-389.966 390.416 0 215.284 175.009 390.456 389.966 390.456 215.038.041 390.006-175.131 390.006-390.456m-637.813-81.696c0-5.768 2.127-11.516 6.647-15.873 8.714-8.754 22.89-8.754 31.725 0L511.98 622.64l209.475-208.105c8.754-8.714 22.97-8.714 31.909 0 8.713 8.755 8.713 22.889 0 31.602L511.98 685.741 270.718 446.014c-4.438-4.234-6.545-9.962-6.545-15.73" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-server"><path d="M890 120H134a70 70 0 0 0-70 70v500a70 70 0 0 0 70 70h756a70 70 0 0 0 70-70V190a70 70 0 0 0-70-70zm-10 520a40 40 0 0 1-40 40H712V448a40 40 0 0 0-80 0v232h-80V368a40 40 0 0 0-80 0v312h-80V512a40 40 0 0 0-80 0v168H184a40 40 0 0 1-40-40V240a40 40 0 0 1 40-40h656a40 40 0 0 1 40 40zM696 824H328a40 40 0 0 0 0 80h368a40 40 0 0 0 0-80z" /></symbol><symbol viewBox="0 0 128 128" id="icon-shopping"><path d="M42.913 101.36c1.642 0 3.198.332 4.667.996a12.28 12.28 0 0 1 3.89 2.772c1.123 1.184 1.987 2.582 2.592 4.193.605 1.612.908 3.318.908 5.118 0 1.8-.303 3.507-.908 5.118-.605 1.611-1.469 3.01-2.593 4.194a13.3 13.3 0 0 1-3.889 2.843 10.582 10.582 0 0 1-4.667 1.066c-1.729 0-3.306-.355-4.732-1.066a13.604 13.604 0 0 1-3.825-2.843c-1.123-1.185-1.988-2.583-2.593-4.194a14.437 14.437 0 0 1-.907-5.118c0-1.8.302-3.506.907-5.118.605-1.61 1.47-3.009 2.593-4.193a12.515 12.515 0 0 1 3.825-2.772c1.426-.664 3.003-.996 4.732-.996zm53.932.285c1.643 0 3.22.331 4.733.995a11.386 11.386 0 0 1 3.889 2.772c1.08 1.185 1.945 2.583 2.593 4.194.648 1.61.972 3.317.972 5.118 0 1.8-.324 3.506-.972 5.117-.648 1.611-1.513 3.01-2.593 4.194a12.253 12.253 0 0 1-3.89 2.843 11 11 0 0 1-4.732 1.066 10.58 10.58 0 0 1-4.667-1.066 12.478 12.478 0 0 1-3.824-2.843c-1.08-1.185-1.945-2.583-2.593-4.194a13.581 13.581 0 0 1-.973-5.117c0-1.801.325-3.507.973-5.118.648-1.611 1.512-3.01 2.593-4.194a11.559 11.559 0 0 1 3.824-2.772 11.212 11.212 0 0 1 4.667-.995zm21.781-80.747c2.42 0 4.3.355 5.64 1.066 1.34.71 2.29 1.587 2.852 2.63a6.427 6.427 0 0 1 .778 3.34c-.044 1.185-.195 2.204-.454 3.057-.26.853-.8 2.606-1.62 5.26a589.268 589.268 0 0 1-2.788 8.743 1236.373 1236.373 0 0 0-3.047 9.453c-.994 3.128-1.75 5.592-2.269 7.393-1.123 3.79-2.55 6.42-4.278 7.89-1.728 1.469-3.846 2.203-6.352 2.203H39.023l1.945 12.795h65.342c4.148 0 6.223 1.943 6.223 5.828 0 1.896-.41 3.53-1.232 4.905-.821 1.374-2.442 2.061-4.862 2.061H38.505c-1.729 0-3.176-.426-4.343-1.28-1.167-.852-2.14-1.966-2.917-3.34a21.277 21.277 0 0 1-1.88-4.478 44.128 44.128 0 0 1-1.102-4.55c-.087-.568-.324-1.942-.713-4.122-.39-2.18-.865-4.904-1.426-8.174l-1.88-10.947c-.692-4.027-1.383-8.079-2.075-12.154-1.642-9.572-3.5-20.234-5.574-31.986H6.87c-1.296 0-2.377-.356-3.24-1.067a9.024 9.024 0 0 1-2.14-2.558 10.416 10.416 0 0 1-1.167-3.2C.108 8.53 0 7.488 0 6.54c0-1.896.583-3.46 1.75-4.69C2.917.615 4.494 0 6.482 0h13.095c1.728 0 3.111.284 4.148.853 1.037.569 1.858 1.28 2.463 2.132a8.548 8.548 0 0 1 1.297 2.701c.26.948.475 1.754.648 2.417.173.758.346 1.825.519 3.199.173 1.374.345 2.772.518 4.193.26 1.706.519 3.507.778 5.403h88.678z" /></symbol><symbol viewBox="0 0 128 128" id="icon-size"><path d="M0 54.857h54.796v18.286H36.531V128H18.265V73.143H0V54.857zm127.857-36.571H91.935V128H72.456V18.286H36.534V0h91.326l-.003 18.286z" /></symbol><symbol viewBox="0 0 128 128" id="icon-skill"><path d="M31.652 93.206h33.401c1.44 2.418 3.077 4.663 4.93 6.692h-38.33v-6.692zm0-10.586h28.914a44.8 44.8 0 0 1-1.264-6.688h-27.65v6.688zm0-17.27H59.39c.288-2.286.714-4.532 1.34-6.687H31.65v6.687h.003zm53.913 44.84v5.85c0 2.798-2.095 5.075-4.667 5.075h-70.07c-2.576 0-4.663-2.277-4.663-5.075V31.26l23.22-20.96v22.25H17.16v6.688h18.39V6.688h45.348c2.576 0 4.667 2.277 4.667 5.066v20.009c1.987-.675 4.053-1.128 6.17-1.445v-18.56C91.738 5.28 86.874 0 80.902 0H31.15L0 28.118v87.917c0 6.48 4.859 11.759 10.832 11.759h70.07c5.974 0 10.837-5.27 10.837-11.759v-4.41c-2.117-.312-4.183-.765-6.17-1.435h-.004zM23.279 58.667h-7.96v6.688h7.96v-6.688zm-7.956 41.23h7.96v-6.691h-7.96v6.692zm7.956-23.96h-7.96v6.687h7.96v-6.688zm89.718-15.042-4.896-4.07-12.447 17.613-11.19-9.305-3.762 5.311 16.091 13.38 16.204-22.929zM128 70.978c0-18.632-13.97-33.782-31.147-33.782-17.168 0-31.135 15.155-31.135 33.782 0 18.628 13.97 33.783 31.135 33.783 17.172 0 31.143-15.15 31.143-33.783H128zm-6.17 0c0 14.933-11.203 27.1-24.981 27.1-13.77 0-24.987-12.158-24.987-27.1 0-14.941 11.195-27.099 24.987-27.099 13.778 0 24.982 12.158 24.982 27.1z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-slider"><path d="M951.453 476.844H523.672a131.836 131.836 0 0 0-254.18 0H72.547v70.312h196.945a131.836 131.836 0 0 0 254.18 0h427.781z" /></symbol><symbol viewBox="0 0 128 128" id="icon-star"><path d="m70.66 4.328 14.01 29.693c1.088 2.29 3.177 3.882 5.603 4.25l31.347 4.76c6.087.926 8.528 8.756 4.117 13.247L103.05 79.395c-1.75 1.78-2.544 4.352-2.132 6.867l5.352 32.641c1.043 6.337-5.33 11.182-10.778 8.19l-28.039-15.409a7.13 7.13 0 0 0-6.91 0l-28.039 15.41c-5.448 2.99-11.821-1.854-10.777-8.19l5.352-32.642c.415-2.515-.387-5.088-2.136-6.867L2.264 56.278C-2.146 51.787.286 43.957 6.38 43.031l31.343-4.76c2.419-.368 4.51-1.96 5.595-4.25L57.334 4.328c2.728-5.77 10.605-5.77 13.325 0z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-swagger"><path d="M64 223.995h168.001v47.998c0 26.429 18.879 47.998 41.984 47.998h140.037c23.096 0 41.984-21.57 41.984-47.998v-47.998h504.003a32.005 32.005 0 0 0 0-64.009H455.997v-47.998c0-26.428-18.88-47.997-41.984-47.997H273.985c-23.096 0-41.984 21.569-41.984 47.997v47.998H64a32.005 32.005 0 0 0 0 64.01zM288.005 128h111.997v128H288.005V128zM960 479.995H791.999v-47.997c0-26.373-18.879-47.998-41.984-47.998H609.978c-23.096 0-41.984 21.634-41.984 47.998v47.997H64a32.005 32.005 0 0 0 0 64.01h504.003v47.997c0 26.364 18.88 47.998 41.984 47.998h140.037c23.096 0 41.984-21.634 41.984-47.998v-47.997H960.01a32.005 32.005 0 1 0-.009-64.01zM735.995 576H623.998V448h111.997v128zM960 800.293v-.288H455.997v-47.998c0-26.363-18.88-47.998-41.984-47.998H274.05c-23.105 0-41.984 21.635-41.984 47.998v47.998H64v.288a32.005 32.005 0 0 0 0 64.01c.987 0 1.918-.196 2.886-.289H232v47.998c0 26.363 18.879 47.997 41.984 47.997h140.037c23.096 0 41.984-21.634 41.984-47.997v-47.998h501.108c.968.093 1.9.289 2.895.289a32.005 32.005 0 1 0-.009-64.01zM400.002 896H288.005V768h111.997v128z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-switch"><path d="M692 792H332C182 792 62 672 62 522s120-270 270-270h360c150 0 270 120 270 270 0 147-120 270-270 270zM332 312c-117 0-210 93-210 210s93 210 210 210h360c117 0 210-93 210-210s-93-210-210-210H332z" /><path d="M191 522a150 150 0 1 0 300 0 150 150 0 1 0-300 0Z" /></symbol><symbol class="icon" viewBox="0 0 1084 1024" id="icon-system"><defs><style>@font-face{font-family:rbicon;src:url(chrome-extension://dipiagiiohfljcicegpgffpbnjmgjcnf/fonts/rbicon.woff2) format("woff2");font-weight:400;font-style:normal}</style></defs><path d="M1080.096 434.5c-4.216-23.731-26.924-47.945-50.596-53.185l-17.648-4.096a175.94 175.94 0 0 1-101.613-80.832 177.807 177.807 0 0 1-18.732-129.802l5.541-16.685c7.108-23.13-2.108-54.992-20.6-70.833 0 0-16.624-14.095-63.244-41.2-46.8-26.984-66.858-34.513-66.858-34.513-22.768-8.373-54.632-.362-71.256 17.407l-12.287 13.251a173.47 173.47 0 0 1-120.466 48.066 174.133 174.133 0 0 1-121.008-48.487l-11.745-12.83C393.14 2.992 361.096-4.899 338.268 3.354c0 0-20.359 7.529-67.1 34.513-46.8 27.346-63.244 41.44-63.244 41.44-18.431 15.661-27.647 47.223-20.54 70.593l5.06 16.866a178.048 178.048 0 0 1-18.672 129.62A174.916 174.916 0 0 1 71.496 377.46l-17.045 3.855c-23.31 5.421-46.26 29.334-50.596 53.186 0 0-3.855 21.382-3.855 75.712s3.855 75.713 3.855 75.713C8.07 609.9 30.779 633.872 54.45 639.112l16.624 3.855A174.254 174.254 0 0 1 173.47 724.28c23.31 40.838 28.911 87.338 18.732 129.802l-4.818 16.444c-7.108 23.129 2.108 54.992 20.6 70.833 0 0 16.623 14.095 63.244 41.2 46.8 27.105 66.918 34.513 66.918 34.513 22.708 8.373 54.632.362 71.256-17.407l11.625-12.589a175.097 175.097 0 0 1 242.257.12l11.624 12.65c16.384 17.708 48.428 25.599 71.256 17.347 0 0 20.359-7.53 67.16-34.514 46.74-27.105 63.124-41.2 63.124-41.2 18.491-15.6 27.707-47.463 20.6-70.833l-5.06-17.106A176.723 176.723 0 0 1 910.66 724.4a176.06 176.06 0 0 1 102.396-81.314l16.684-3.855c23.31-5.42 46.26-29.333 50.596-53.185 0 0 3.855-21.383 3.855-75.713-.241-54.33-4.096-75.833-4.096-75.833zm-537.82 293.335c-119.26 0-216.175-97.336-216.175-217.622a216.658 216.658 0 0 1 216.236-217.32c119.2 0 216.115 97.276 216.115 217.561-.24 120.045-96.974 217.32-216.175 217.32z" /></symbol><symbol viewBox="0 0 128 128" id="icon-tab"><path d="M78.921.052H49.08c-1.865 0-3.198 1.599-3.198 3.464v6.661c0 1.865 1.6 3.464 3.198 3.464h29.84c1.865 0 3.198-1.599 3.198-3.464V3.516C82.385 1.65 80.786.052 78.92.052zm45.563 0H94.642c-1.865 0-3.464 1.599-3.464 3.464v6.661c0 1.865 1.599 3.464 3.464 3.464h29.842c1.865-.266 3.464-1.599 3.464-3.464V3.516c0-1.865-1.599-3.464-3.464-3.464zm0 22.382H40.02c-1.866 0-3.464-1.599-3.464-3.464V3.516c0-1.865-1.599-3.464-3.464-3.464H3.516C1.65.052.052 1.651.052 3.516V124.75c0 1.598 1.599 3.197 3.464 3.197h120.968c1.865 0 3.464-1.599 3.464-3.464V25.898c0-1.865-1.599-3.464-3.464-3.464z" /></symbol><symbol viewBox="0 0 128 128" id="icon-table"><path d="M.006.064h127.988v31.104H.006V.064zm0 38.016h38.396v41.472H.006V38.08zm0 48.384h38.396v41.472H.006V86.464zM44.802 38.08h38.396v41.472H44.802V38.08zm0 48.384h38.396v41.472H44.802V86.464zM89.598 38.08h38.396v41.472H89.598zm0 48.384h38.396v41.472H89.598z" /><path d="M.006.064h127.988v31.104H.006V.064zm0 38.016h38.396v41.472H.006V38.08zm0 48.384h38.396v41.472H.006V86.464zM44.802 38.08h38.396v41.472H44.802V38.08zm0 48.384h38.396v41.472H44.802V86.464zM89.598 38.08h38.396v41.472H89.598zm0 48.384h38.396v41.472H89.598z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-textarea"><path d="M896 160H128c-35.2 0-64 28.8-64 64v576c0 35.2 28.8 64 64 64h768c35.2 0 64-28.8 64-64V224c0-35.2-28.8-64-64-64zm0 608c0 16-12.8 32-32 32H160c-19.2 0-32-12.8-32-32V256c0-16 12.8-32 32-32h704c19.2 0 32 12.8 32 32v512z" /><path d="M224 288c-19.2 0-32 12.8-32 32v256c0 16 12.8 32 32 32s32-12.8 32-32V320c0-16-12.8-32-32-32zm608 480c19.2 0 32-12.8 32-32V608L704 768h128z" /></symbol><symbol viewBox="0 0 128 128" id="icon-theme"><path d="M125.5 36.984 95.336 2.83C93.735 1.018 91.565 0 89.3 0c-2.263 0-4.433 1.018-6.033 2.83l-3.786 4.286c-1.6 1.812-3.77 2.83-6.032 2.831H54.553c-2.263 0-4.434-1.018-6.033-2.83L44.734 2.83C43.134 1.018 40.964 0 38.701 0c-2.263 0-4.434 1.018-6.034 2.83L2.5 36.984C.9 38.796 0 41.254 0 43.815c0 2.562.899 5.02 2.5 6.831L14.565 64.31c2.178 2.468 5.367 3.403 8.33 2.444 1.35-.435 2.709.592 2.709 2.18v49.407c0 5.313 3.84 9.66 8.532 9.66h59.726c4.693 0 8.532-4.347 8.532-9.66V68.934c0-1.59 1.36-2.616 2.71-2.181 2.962.96 6.15.024 8.329-2.444L125.5 50.646c1.6-1.811 2.499-4.269 2.499-6.83 0-2.563-.899-5.02-2.5-6.832z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-time-range"><path d="M498.596 482.29H345.42v57.308h210.478V274.197h-57.301V482.29zM577.685 644.985h379.88v57.302h-379.88v-57.302zM577.685 773.765h379.88v57.307h-379.88v-57.307zM577.685 902.55h379.88v57.307h-379.88V902.55zm0 0" /><path d="M102.523 382.29a28.668 28.668 0 0 0 23.367 2.56l190.81-61.886c15.053-4.883 23.298-21.04 18.415-36.09-4.882-15.052-21.04-23.297-36.093-18.415l-123.346 40c15.994-26.117 35.17-50.538 57.37-72.745 73.768-73.767 171.847-114.388 276.169-114.388 104.32 0 202.395 40.622 276.161 114.388S899.77 407.56 899.77 511.882c0 26.428-2.616 52.45-7.71 77.78h58.303c4.465-25.499 6.709-51.47 6.709-77.78 0-60.45-11.846-119.102-35.205-174.336-22.56-53.335-54.85-101.227-95.969-142.35-41.122-41.122-89.017-73.408-142.348-95.968-55.233-23.361-113.89-35.207-174.334-35.207-60.45 0-119.107 11.846-174.337 35.208-53.335 22.56-101.23 54.846-142.35 95.969-23.98 23.98-44.933 50.278-62.727 78.6l-20.738-105.654c-3.043-15.528-18.105-25.642-33.632-22.6-15.528 3.048-25.643 18.105-22.6 33.637l36.103 183.932a28.666 28.666 0 0 0 13.588 19.178zM126.02 587.942H67.768c5.76 33.679 15.368 66.544 28.79 98.278 22.56 53.334 54.85 101.225 95.972 142.348 41.123 41.123 89.014 73.409 142.349 95.969 54.112 22.888 111.518 34.711 170.668 35.182v-57.324c-102.95-.941-199.595-41.446-272.5-114.349-55.501-55.502-92.237-124.77-107.027-200.104zm0 0" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-time"><path d="M520 559h204c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32H488c-17.673 0-32-14.327-32-32 0-.167.001-.334.004-.5a32.65 32.65 0 0 1-.004-.5V277c0-17.673 14.327-32 32-32 17.673 0 32 14.327 32 32v282zm-8 401C264.576 960 64 759.424 64 512S264.576 64 512 64s448 200.576 448 448-200.576 448-448 448zm0-64c212.077 0 384-171.923 384-384S724.077 128 512 128 128 299.923 128 512s171.923 384 384 384z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-tool"><path d="M898.832 900.518H103.817c-36.003 0-65.364-29.286-65.364-65.314v-554.95c0-36.041 29.362-65.326 65.364-65.326h795.016c36.003 0 65.199 29.285 65.199 65.327v554.95c-.001 36.027-29.197 65.313-65.2 65.313zM103.817 255.593c-13.576 0-24.712 11.086-24.712 24.663v554.95c0 13.575 11.137 24.662 24.712 24.662h795.016c13.577 0 24.547-11.087 24.547-24.663v-554.95c0-13.576-10.971-24.662-24.547-24.662H103.817zm560.53-3.819c-11.162 0-20.333-9.08-20.333-20.332V130.164c0-13.577-11.047-24.624-24.7-24.624H383.183c-13.577 0-24.713 11.046-24.713 24.624v101.278a20.278 20.278 0 0 1-20.332 20.332c-11.201 0-20.32-9.08-20.32-20.332V130.164c0-35.99 29.324-65.276 65.365-65.276h236.133c36.067 0 65.402 29.285 65.402 65.276v101.278c0 11.252-9.08 20.332-20.37 20.332zM413.232 521.726H75.694c-11.163 0-20.333-9.118-20.333-20.357 0-11.252 9.17-20.332 20.333-20.332h337.539c11.278 0 20.32 9.08 20.32 20.332 0 11.239-9.042 20.357-20.32 20.357zm499.661 0H575.368c-11.214 0-20.332-9.118-20.332-20.357 0-11.252 9.118-20.332 20.332-20.332h337.526c11.29 0 20.332 9.08 20.332 20.332 0 11.239-9.042 20.357-20.332 20.357zm-355.33 112.492H445.084c-11.213 0-20.332-9.08-20.332-20.331V445.123c0-11.251 9.12-20.332 20.332-20.332h112.48c11.29 0 20.37 9.08 20.37 20.332v168.764c0 11.25-9.082 20.33-20.372 20.33zm-92.146-40.703h71.827v-128.06h-71.827v128.06z" /></symbol><symbol viewBox="0 0 128 128" id="icon-tree-table"><path d="M44.8 0h79.543C126.78 0 128 1.422 128 4.267v23.466c0 2.845-1.219 4.267-3.657 4.267H44.8c-2.438 0-3.657-1.422-3.657-4.267V4.267C41.143 1.422 42.362 0 44.8 0zm22.857 48h56.686c2.438 0 3.657 1.422 3.657 4.267v23.466c0 2.845-1.219 4.267-3.657 4.267H67.657C65.22 80 64 78.578 64 75.733V52.267C64 49.422 65.219 48 67.657 48zm0 48h56.686c2.438 0 3.657 1.422 3.657 4.267v23.466c0 2.845-1.219 4.267-3.657 4.267H67.657C65.22 128 64 126.578 64 123.733v-23.466C64 97.422 65.219 96 67.657 96zM50.286 68.267c2.02 0 3.657-1.91 3.657-4.267 0-2.356-1.638-4.267-3.657-4.267H17.37V32h6.4c2.02 0 3.658-1.91 3.658-4.267V4.267C27.429 1.91 25.79 0 23.77 0H3.657C1.637 0 0 1.91 0 4.267v23.466C0 30.09 1.637 32 3.657 32h6.4v80c0 2.356 1.638 4.267 3.657 4.267h36.572c2.02 0 3.657-1.91 3.657-4.267 0-2.356-1.638-4.267-3.657-4.267H17.37V68.267h32.915z" /></symbol><symbol viewBox="0 0 128 128" id="icon-tree"><path d="M126.713 90.023c.858.985 1.287 2.134 1.287 3.447v29.553c0 1.423-.429 2.6-1.287 3.53-.858.93-1.907 1.395-3.146 1.395H97.824c-1.145 0-2.146-.465-3.004-1.395-.858-.93-1.287-2.107-1.287-3.53V93.47c0-.875.19-1.696.572-2.462.382-.766.906-1.368 1.573-1.806a3.84 3.84 0 0 1 2.146-.657h9.725V69.007a3.84 3.84 0 0 0-.43-1.806 3.569 3.569 0 0 0-1.143-1.313 2.714 2.714 0 0 0-1.573-.492h-36.47v23.149h9.725c1.144 0 2.145.492 3.004 1.478.858.985 1.287 2.134 1.287 3.447v29.553c0 .876-.191 1.696-.573 2.463-.38.766-.905 1.368-1.573 1.806a3.84 3.84 0 0 1-2.145.656H51.915a3.84 3.84 0 0 1-2.145-.656c-.668-.438-1.216-1.04-1.645-1.806a4.96 4.96 0 0 1-.644-2.463V93.47c0-1.313.43-2.462 1.288-3.447.858-.986 1.907-1.478 3.146-1.478h9.582v-23.15h-37.9c-.953 0-1.74.356-2.359 1.068-.62.711-.93 1.56-.93 2.544v19.538h9.726c1.239 0 2.264.492 3.074 1.478.81.985 1.216 2.134 1.216 3.447v29.553c0 1.423-.405 2.6-1.216 3.53-.81.93-1.835 1.395-3.074 1.395H4.29c-.476 0-.93-.082-1.358-.246a4.1 4.1 0 0 1-1.144-.657 4.658 4.658 0 0 1-.93-1.067 5.186 5.186 0 0 1-.643-1.395 5.566 5.566 0 0 1-.215-1.56V93.47c0-.437.048-.875.143-1.313a3.95 3.95 0 0 1 .429-1.15c.19-.328.429-.656.715-.984.286-.329.572-.602.858-.821.286-.22.62-.383 1.001-.493.382-.11.763-.164 1.144-.164h9.726V61.619c0-.985.31-1.833.93-2.544.619-.712 1.358-1.068 2.216-1.068h44.335V39.62h-9.582c-1.24 0-2.288-.492-3.146-1.477a5.09 5.09 0 0 1-1.287-3.448V5.14c0-1.423.429-2.627 1.287-3.612.858-.985 1.907-1.477 3.146-1.477h25.743c.763 0 1.478.246 2.145.739a5.17 5.17 0 0 1 1.573 1.888c.382.766.573 1.587.573 2.462v29.553c0 1.313-.43 2.463-1.287 3.448-.859.985-1.86 1.477-3.004 1.477h-9.725v18.389h42.762c.954 0 1.74.355 2.36 1.067.62.711.93 1.56.93 2.545v26.925h9.582c1.239 0 2.288.492 3.146 1.478z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-upload"><path d="m530.944 458.24 4.8 3.456L657.92 568.512a32 32 0 0 1-37.44 51.584l-4.672-3.392-69.248-60.544v280.704a32 32 0 0 1-26.24 31.488l-5.76.512a32 32 0 0 1-31.424-26.24l-.512-5.76-.064-280.704-69.12 60.48a32 32 0 0 1-40.96.896l-4.16-3.968a32 32 0 0 1-.96-40.96l4.032-4.16 122.176-106.816a32 32 0 0 1 37.312-3.456zM497.92 128c128.128 0 239.168 82.304 275.52 199.04 123.968 11.264 221.312 113.088 221.312 237.44 0 128.128-103.68 232.96-234.88 238.272h-5.888l-35.52.192a32 32 0 0 1-.192-64l35.264-.128 4.672-.064c96.384-3.84 172.544-80.896 172.544-174.272 0-96.128-80.512-174.464-179.584-174.464h-1.984a32 32 0 0 1-32-25.28C695.872 264.96 604.736 192 497.92 192c-116.096 0-212.48 85.76-223.104 196.48a32 32 0 0 1-28.352 28.8c-83.968 9.152-147.84 78.208-147.84 159.552l.192 7.936c3.84 85.76 77.056 154.112 166.592 154.112h45.632a32 32 0 0 1 0 64h-45.632c-123.392.064-225.088-94.848-230.528-216l-.192-9.28c0-106.88 76.352-197.184 179.968-219.904C239.488 226.112 357.76 128 497.856 128z" /></symbol><symbol viewBox="0 0 130 130" id="icon-user"><path d="M63.444 64.996c20.633 0 37.359-14.308 37.359-31.953 0-17.649-16.726-31.952-37.359-31.952-20.631 0-37.36 14.303-37.358 31.952 0 17.645 16.727 31.953 37.359 31.953zM80.57 75.65H49.434c-26.652 0-48.26 18.477-48.26 41.27v2.664c0 9.316 21.608 9.325 48.26 9.325H80.57c26.649 0 48.256-.344 48.256-9.325v-2.663c0-22.794-21.605-41.271-48.256-41.271z" stroke="currentColor" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-validCode"><path d="M513.3 958.5c-142.2 0-397.9-222.1-401.6-440.5V268c1.7-39.6 31.7-72.3 71.1-77.3 49-4.6 97.1-16.5 142.7-35.3 47.8-14 91.9-38.3 129.4-71.1 30.3-24.4 72.9-26.3 105.3-4.6 39.9 30.7 83.8 55.9 130.5 74.6 48.6 14.7 98.2 25.9 148.4 33.7 38.5 7.6 67.1 40.3 69.5 79.5 3.3 84.9 2.5 169.9-2.6 254.7-33.7 281.6-253.7 436.4-392.7 436.3zm-.1-813.7c-7.2-.2-14.3 2-20 6.4-39.7 35.2-86.8 61.1-137.7 75.7-46.8 19.2-96.2 31-146.6 35.2-11 3.2-18.8 13-19.5 24.4v230.1c3.5 180.3 223.3 361 323.9 361s287.3-120.2 317.6-360.5c7.3-142.7 0-228.6 0-229.6-1.3-13.3-11-24.3-24-27.3-49.6-7.7-98.6-19-146.5-33.7-46.3-19.5-89.7-45.3-129-76.7-5.8-3.8-12.7-5.5-19.5-4.9l1.3-.1z" fill="#C6CCDA" /><path d="M750.1 428 490.7 673.2c-11.7 11.1-29.5 12.9-43.1 4.2l-6.8-5.8-141.2-149.4c-9.3-9.3-12.7-22.9-9-35.5 3.8-12.6 14.1-22.1 27-24.8 12.9-2.7 26.1 1.9 34.6 11.9L469 597.5l233.7-221c14.6-12.8 36.8-11.6 49.9 2.7 13.2 14.2 11.5 35.3-2.5 48.8" fill="#C6CCDA" /></symbol><symbol viewBox="0 0 128 110" id="icon-wechat"><path d="M86.635 33.334c1.467 0 2.917.113 4.358.283C87.078 14.392 67.58.111 45.321.111 20.44.111.055 17.987.055 40.687c0 13.104 6.781 23.863 18.115 32.209l-4.527 14.352 15.82-8.364c5.666 1.182 10.207 2.395 15.858 2.395 1.42 0 2.829-.073 4.227-.189-.886-3.19-1.398-6.53-1.398-9.996 0-20.845 16.98-37.76 38.485-37.76zm-24.34-12.936c3.407 0 5.665 2.363 5.665 5.954 0 3.576-2.258 5.97-5.666 5.97-3.392 0-6.795-2.395-6.795-5.97 0-3.591 3.403-5.954 6.795-5.954zM30.616 32.323c-3.393 0-6.818-2.395-6.818-5.971 0-3.591 3.425-5.954 6.818-5.954 3.392 0 5.65 2.363 5.65 5.954 0 3.576-2.258 5.97-5.65 5.97z" /><path d="M127.945 70.52c0-19.075-18.108-34.623-38.448-34.623-21.537 0-38.5 15.548-38.5 34.623 0 19.108 16.963 34.622 38.5 34.622 4.508 0 9.058-1.2 13.584-2.395l12.414 7.167-3.404-11.923c9.087-7.184 15.854-16.712 15.854-27.471zm-50.928-5.97c-2.254 0-4.53-2.362-4.53-4.773 0-2.378 2.276-4.771 4.53-4.771 3.422 0 5.665 2.393 5.665 4.771 0 2.41-2.243 4.773-5.665 4.773zm24.897 0c-2.24 0-4.498-2.362-4.498-4.773 0-2.378 2.258-4.771 4.498-4.771 3.392 0 5.665 2.393 5.665 4.771 0 2.41-2.273 4.773-5.665 4.773z" /></symbol><symbol viewBox="0 0 128 128" id="icon-zip"><path d="M78.527 116.793c.178.008.348.024.527.024h40.233c4.711-.005 8.53-3.677 8.534-8.21V18.895c-.004-4.532-3.823-8.204-8.534-8.209H79.054c-.179 0-.353.016-.527.024V0L0 10.082v107.406l78.527 10.342v-11.037zm0-101.362c.174-.024.348-.052.527-.052h40.233c2.018 0 3.659 1.578 3.659 3.52v89.713c-.003 1.942-1.64 3.517-3.659 3.519H79.054c-.179 0-.353-.028-.527-.052V15.431zM30.262 75.757l-18.721-.46V72.37l11.3-16.673v-.148l-10.266.164v-4.51l17.504-.44v3.264L18.696 70.76v.144l11.566.176v4.678zm9.419.231-5.823-.144V50.671l5.823-.144v25.461zm22.255-11.632c-2.168 1.922-5.353 2.76-9.02 2.736-.702.004-1.402-.04-2.097-.131v9.303l-5.997-.148V50.743c1.852-.352 4.473-.647 8.218-.743 3.838-.096 6.608.539 8.48 1.913 1.807 1.306 3.032 3.5 3.032 6.112s-.926 4.833-2.612 6.331h-.004zM53.36 54.45c-.856-.01-1.71.083-2.541.275v7.682c.523.116 1.167.152 2.06.152 3.301-.004 5.36-1.614 5.36-4.314 0-2.425-1.772-3.843-4.875-3.791l-.004-.004zm39.847-37.066h9.564v3.795h-9.564v-3.795zm-9.568 5.68h9.564v3.8h-9.564v-3.8zm9.568 6.216h9.564v3.799h-9.564V29.28zm0 12h9.564v3.794h-9.564V41.28zm-9.568-6.096h9.564v3.795h-9.564v-3.795zm9.472 47.064c2.512 0 4.921-.96 6.697-2.67 1.776-1.708 2.773-4.026 2.772-6.442l-1.748-15.263c0-5.033-2.492-9.112-7.725-9.112-5.232 0-7.72 4.079-7.72 9.112l-1.752 15.263c-.001 2.417.996 4.735 2.773 6.444 1.777 1.71 4.187 2.669 6.7 2.668h.003zm-3.135-16.75h6.27v12.743h-6.27V65.5z" /></symbol>',e.insertBefore(t,e.lastChild)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}const A=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},_={class:"dict-tag-container"},N=["index"],k=A({__name:"index",props:{options:{type:Array,default:null},value:[Number,String,Array]},setup(e){const r=e,n=t.computed(()=>null!==r.value&&void 0!==r.value?Array.isArray(r.value)?r.value:[String(r.value)]:[]);return(r,o)=>{const i=t.resolveComponent("el-tag");return t.openBlock(),t.createElementBlock("div",_,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(e,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.unref(n).includes(e.value)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["default"==e.elTagType||""==e.elTagType?(t.openBlock(),t.createElementBlock("span",{key:e.value,index:r,class:t.normalizeClass(e.elTagClass)},t.toDisplayString(e.label),11,N)):(t.openBlock(),t.createBlock(i,{"disable-transitions":!0,key:e.value+"",index:r,type:"primary"===e.elTagType?"":e.elTagType,class:t.normalizeClass(e.elTagClass)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:2},1032,["index","type","class"]))],64)):t.createCommentVNode("",!0)],64))),256))])}}},[["__scopeId","data-v-9371585e"]]),R={class:"el-tree-select"},x=A({__name:"index",props:{objMap:{type:Object,default:()=>({value:"id",label:"label",children:"children"})},accordion:{type:Boolean,default:()=>!1},value:{type:[String,Number],default:""},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""}},emits:["update:value"],setup(e,{emit:r}){const n=e,{proxy:o}=getCurrentInstance(),i=computed({get:()=>n.value,set:e=>{r("update:value",e)}}),a=ref(""),s=ref([]);function l(){nextTick(()=>{const e=i.value;if(null!=e){const t=o.$refs.selectTree.getNode(e);t&&(a.value=t.data[n.objMap.label],o.$refs.selectTree.setCurrentKey(e),s.value=[e])}else p()})}function c(e){a.value=e[n.objMap.label],i.value=e[n.objMap.value],s.value=[],o.$refs.treeSelect.blur(),u("")}function u(e){o.$refs.selectTree.filter(e)}function d(e,t){return!e||-1!==t[n.objMap.label].indexOf(e)}function p(){a.value="",i.value="",s.value=[],document.querySelectorAll("#tree-option .el-tree-node").forEach(e=>e.classList.remove("is-current"))}return onMounted(()=>{l()}),watch(i,()=>{l()}),(r,n)=>{const o=t.resolveComponent("el-tree"),l=t.resolveComponent("el-option"),h=t.resolveComponent("el-select");return t.openBlock(),t.createElementBlock("div",R,[t.createVNode(h,{style:{width:"100%"},modelValue:t.unref(i),"onUpdate:modelValue":n[0]||(n[0]=e=>t.isRef(i)?i.value=e:null),ref:"treeSelect",filterable:!0,clearable:!0,onClear:p,"filter-method":u,placeholder:e.placeholder},{default:t.withCtx(()=>[t.createVNode(l,{value:t.unref(i),label:t.unref(a)},{default:t.withCtx(()=>[t.createVNode(o,{id:"tree-option",ref:"selectTree",accordion:e.accordion,data:e.options,props:e.objMap,"node-key":e.objMap.value,"expand-on-click-node":!1,"default-expanded-keys":t.unref(s),"filter-node-method":d,onNodeClick:c},null,8,["accordion","data","props","node-key","default-expanded-keys"])]),_:1},8,["value","label"])]),_:1},8,["modelValue","placeholder"])])}}},[["__scopeId","data-v-03df4f36"]]),I=["xlink:href","fill"],D={__name:"index",props:{iconClass:{type:[String,null],required:!0},className:{type:String,default:""},color:{type:String,default:""}},setup(e){const r=e,n=t.computed(()=>`#icon-${r.iconClass}`),o=t.computed(()=>r.className?`svg-icon ${r.className}`:"svg-icon");return(r,i)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(t.unref(o)),"aria-hidden":"true"},[t.createElementVNode("use",{"xlink:href":t.unref(n),fill:e.color},null,8,I)],2))}},O={class:"upload-file"},M={class:"el-upload__tip"},U={style:{color:"#f56c6c"}},V={style:{color:"#f56c6c"}},H=["title"],P={class:"ele-upload-list__item-content-action"},z={style:{width:"100%",height:"100%",overflow:"auto"}},B=A({__name:"index",props:{modelValue:[String,Object,Array],limit:{type:Number,default:5},fileSize:{type:Number,default:10},fileType:{type:Array,default:()=>["docx","xlsx","doc","xls","ppt","txt","pdf","png","jpg","jpeg","pptx","zip"]},isShowTip:{type:Boolean,default:!0},showFiles:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},uploadFileUrl:{type:String,default:""},headers:{type:Object,default:()=>({})},httpRequest:{type:Function,default:void 0},baseUrl:{type:String,default:""},responseConfig:{type:Object,default:()=>({code:"code",fileName:"fileName",fileUrl:"url",msg:"msg"})},successCode:{type:Number,default:200}},emits:["update:modelValue","delete","success"],setup(e,{emit:r}){const n=e,o=(e,t="")=>e?/^(https?:|mailto:|tel:)/.test(e)?e:t?t+e:e:e,s=t.ref(0),l=t.ref([]),c=t.ref([]),u=t.ref(!1),d=t.ref(""),p=t.ref(""),h=t.ref(null),f=t.ref(null),v=t.computed(()=>n.isShowTip&&(n.fileType||n.fileSize));t.watch(()=>n.modelValue,e=>{if(e){let t=1;const r=Array.isArray(e)?e:n.modelValue.split(",");c.value=r.map(e=>("string"==typeof e&&(e={name:o(e,n.baseUrl),url:o(e,n.baseUrl)}),e.uid=e.uid||(new Date).getTime()+t++,e))}else c.value=[]},{deep:!0,immediate:!0});const C=async e=>{if(n.fileType&&n.fileType.length){const t=e.name.split("."),r=t[t.length-1];if(!(n.fileType.indexOf(r)>=0))return a.ElMessage.error(`文件格式不正确, 请上传${n.fileType.join("/")}格式文件!`),!1}if(n.fileSize){if(!(e.size/1024/1024<n.fileSize))return a.ElMessage.error(`上传文件大小不能超过 ${n.fileSize} MB!`),!1}return h.value=a.ElLoading.service({text:"正在上传文件,请稍候..."}),s.value++,!0},S=()=>{a.ElMessage.error(`上传文件数量不能超过 ${n.limit} 个!`)},T=e=>{a.ElMessage.error("上传文件失败,请重试"),h.value&&h.value.close()},b=(e,t)=>{e[n.responseConfig.code]===n.successCode?(r("success",e),l.value.push({name:e[n.responseConfig.fileName],url:e[n.responseConfig.fileUrl]}),w()):(s.value--,h.value&&h.value.close(),a.ElMessage.error(e[n.responseConfig.msg]),f.value.handleRemove(t),w())},w=()=>{s.value>0&&l.value.length===s.value&&(c.value=c.value.concat(l.value),l.value=[],s.value=0,r("update:modelValue",A(c.value)),h.value&&h.value.close())},E=e=>e.lastIndexOf("/")>-1?decodeURIComponent(e.slice(e.lastIndexOf("/")+1)):e,A=(e,t=",")=>e.length?e.map(e=>e.url).join(t):"",_=()=>{u.value=!1,d.value="",p.value=""};return(n,o)=>{const s=t.resolveComponent("el-button"),l=t.resolveComponent("el-upload"),h=t.resolveComponent("el-icon"),w=t.resolveComponent("el-image"),N=t.resolveComponent("el-dialog");return t.openBlock(),t.createElementBlock("div",O,[e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,t.mergeProps({key:0,multiple:"",action:e.uploadFileUrl,"http-request":e.httpRequest,"before-upload":C,"file-list":c.value,limit:e.limit,"on-error":T,"on-exceed":S,"on-success":b,"show-file-list":!1,headers:e.headers,class:"upload-file-uploader",ref_key:"fileUpload",ref:f},n.$attrs),t.createSlots({default:t.withCtx(()=>[t.renderSlot(n.$slots,"button",{},()=>[t.createVNode(s,{size:"small",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode("选取文件")]),_:1})],!0)]),_:2},[t.unref(v)?{name:"tip",fn:t.withCtx(()=>[t.createElementVNode("div",M,[t.createTextVNode(" 请上传 "),e.fileSize?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" 大小不超过 "),t.createElementVNode("b",U,t.toDisplayString(e.fileSize)+"MB",1)],64)):t.createCommentVNode("",!0),e.fileType?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" 格式为 "),t.createElementVNode("b",V,t.toDisplayString(e.fileType.join("/")),1)],64)):t.createCommentVNode("",!0),t.createTextVNode(" 的文件 ")])]),key:"0"}:void 0]),1040,["action","http-request","file-list","limit","headers"])),e.showFiles?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:1,class:"upload-file-list el-upload-list el-upload-list--text",name:"el-fade-in-linear",tag:"ul"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(n,o)=>(t.openBlock(),t.createElementBlock("li",{key:n.url,class:"el-upload-list__item ele-upload-list__item-content"},[t.createElementVNode("div",{title:E(n.name),class:"ele-upload-list__item-content-name"},t.toDisplayString(E(n.name)),9,H),t.createElementVNode("div",P,[t.createVNode(h,{title:"预览",class:"el-icon-view-icon",onClick:e=>(e=>{const t=E(e.name).split(".").pop().toLowerCase();switch(t){case"pdf":p.value="pdf";break;case"docx":p.value="docx";break;case"xlsx":p.value="xlsx";break;case"jpg":case"jpeg":case"png":case"gif":p.value="image";break;default:return void a.ElMessage.error(`暂不支持${t}文件类型的在线预览,请下载后查看!`)}d.value=e.url,u.value=!0})(n)},{default:t.withCtx(()=>[t.createVNode(t.unref(i.View))]),_:2},1032,["onClick"]),t.createVNode(h,{title:"下载",class:"el-icon-download-icon",onClick:e=>(e=>{try{const t=E(e.name),r=t.split(".").pop().toLowerCase(),n=document.createElement("a");n.style.display="none",n.target="pdf"===r?"_blank":"_self",n.href=e.url,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),a.ElMessage.success("文件下载成功")}catch(xr){a.ElMessage.error("文件下载失败,请重试")}})(n)},{default:t.withCtx(()=>[t.createVNode(t.unref(i.Download))]),_:2},1032,["onClick"]),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(h,{key:0,title:"删除",class:"el-icon-delete-icon",onClick:e=>(e=>{r("delete",c.value.find((t,r)=>r===e)),c.value.splice(e,1),r("update:modelValue",A(c.value))})(o)},{default:t.withCtx(()=>[t.createVNode(t.unref(i.Delete))]),_:2},1032,["onClick"]))])]))),128))]),_:1})):t.createCommentVNode("",!0),t.createVNode(N,{modelValue:u.value,"onUpdate:modelValue":o[0]||(o[0]=e=>u.value=e),"append-to-body":"",class:"previewDialog",title:"文件预览",fullscreen:"","before-close":_},{default:t.withCtx(()=>[t.createElementVNode("div",z,["pdf"===p.value?(t.openBlock(),t.createBlock(t.unref(m.default),{key:0,src:d.value},null,8,["src"])):t.createCommentVNode("",!0),"docx"===p.value?(t.openBlock(),t.createBlock(t.unref(g.default),{key:1,src:d.value},null,8,["src"])):t.createCommentVNode("",!0),"xlsx"===p.value?(t.openBlock(),t.createBlock(t.unref(y.default),{key:2,src:d.value},null,8,["src"])):t.createCommentVNode("",!0),"image"===p.value?(t.openBlock(),t.createBlock(w,{key:3,src:d.value,style:{width:"100%",height:"99%"},fit:"contain"},null,8,["src"])):t.createCommentVNode("",!0)])]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-f55d9716"]]),L={class:"component-upload-image"},q={key:0,class:"el-upload__tip"},j={style:{color:"#f56c6c"}},F={style:{color:"#f56c6c"}},G=["src"],K=A({__name:"index",props:{modelValue:{type:[String,Object,Array],default:()=>[]},limit:{type:Number,default:5},fileSize:{type:Number,default:5},fileType:{type:Array,default:()=>["png","jpg","jpeg"]},isShowTip:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},width:{type:[Number,String],default:100},height:{type:[Number,String],default:100},uploadImgUrl:{type:String,default:""},headers:{type:Object,default:()=>({})},httpRequest:{type:Function,default:void 0},responseConfig:{type:Object,default:()=>({code:"code",fileName:"fileName",fileUrl:"url",msg:"msg"})},baseUrl:{type:String,default:""},successCode:{type:Number,default:200}},emits:["update:modelValue","delete","success"],setup(e,{emit:r}){const n=e,o=(e,t="")=>e?/^(https?:|mailto:|tel:)/.test(e)?e:t?t+e:e:e,s=t.ref(0),l=t.ref([]),c=t.ref(""),u=t.ref(!1),d=t.ref([]),p=t.ref(null),h=t.ref(null),f=t.computed(()=>(null==n?void 0:n.isShowTip)&&((null==n?void 0:n.fileType)||(null==n?void 0:n.fileSize))),v=t.computed(()=>"number"==typeof(null==n?void 0:n.width)?`${n.width}px`:n.width),m=t.computed(()=>"number"==typeof(null==n?void 0:n.height)?`${n.height}px`:n.height),g=t.computed(()=>"number"==typeof(null==n?void 0:n.height)?`${n.height}px`:n.height);t.watch(()=>n.modelValue,e=>{if(e){const t=Array.isArray(e)?e:n.modelValue.split(",");d.value=t.map(e=>("string"==typeof e&&(e={name:o(e,n.baseUrl),url:o(e,n.baseUrl)}),e))}else d.value=[]},{deep:!0,immediate:!0});const y=()=>{t.nextTick(()=>{var e;const t=null==(e=p.value)?void 0:e.$el;if(!t)return;t.querySelectorAll(".el-upload--picture-card").forEach(e=>{e.style.width=v.value,e.style.height=m.value,e.style.lineHeight=g.value});t.querySelectorAll(".el-upload-list__item").forEach(e=>{e.style.width=v.value,e.style.height=m.value})})},C=async e=>{let t=!1;if(n.fileType&&n.fileType.length){let r="";e.name&&e.name.lastIndexOf(".")>-1&&(r=e.name.slice(e.name.lastIndexOf(".")+1)),t=n.fileType.some(t=>!!(e.type&&e.type.indexOf(t)>-1)||!!(r&&r.indexOf(t)>-1))}else t=e.type&&e.type.indexOf("image")>-1;if(!t)return a.ElMessage.error(`文件格式不正确, 请上传${n.fileType.join("/")}图片格式文件!`),!1;if(n.fileSize){if(!(e.size/1024/1024<n.fileSize))return a.ElMessage.error(`上传头像图片大小不能超过 ${n.fileSize} MB!`),!1}return h.value=a.ElLoading.service({text:"正在上传图片,请稍候..."}),s.value++,!0},S=()=>{a.ElMessage.error(`上传图片数量不能超过 ${n.limit} 个!`)},T=(e,t)=>{e[n.responseConfig.code]===n.successCode?(r("success",e),l.value.push({name:e[n.responseConfig.fileName],url:e[n.responseConfig.fileUrl]}),E()):(s.value--,h.value&&h.value.close(),a.ElMessage.error(e[n.responseConfig.msg]),fileUpload.value.handleRemove(t),E())},b=e=>{r("delete",e),r("update:modelValue",_(d.value))},w=()=>{a.ElMessage.error("上传图片失败,请重试"),h.value&&h.value.close()},E=()=>{s.value>0&&l.value.length===s.value&&(d.value=d.value.concat(l.value),l.value=[],s.value=0,r("update:modelValue",_(d.value)),h.value&&h.value.close())},A=e=>{c.value=e.url,u.value=!0},_=(e,t=",")=>e.length?e.map(e=>e.url).join(t):"";return t.onMounted(()=>{y()}),t.onUpdated(()=>{y()}),(r,o)=>{const a=t.resolveComponent("el-icon"),s=t.resolveComponent("el-upload"),l=t.resolveComponent("el-dialog");return t.openBlock(),t.createElementBlock("div",L,[t.createVNode(s,{disabled:n.disabled,multiple:"",action:e.uploadImgUrl,"list-type":"picture-card","on-success":T,"before-upload":C,limit:n.limit,"on-error":w,"on-exceed":S,ref_key:"imageUpload",ref:p,"http-request":e.httpRequest,"on-remove":b,"show-file-list":!0,headers:e.headers,"file-list":d.value,"on-preview":A,class:t.normalizeClass({hide:d.value.length>=n.limit})},{default:t.withCtx(()=>[t.createVNode(a,null,{default:t.withCtx(()=>[t.createVNode(t.unref(i.Plus))]),_:1})]),_:1},8,["disabled","action","limit","http-request","headers","file-list","class"]),t.unref(f)?(t.openBlock(),t.createElementBlock("div",q,[t.createTextVNode(" 请上传 "),n.fileSize?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" 大小不超过 "),t.createElementVNode("b",j,t.toDisplayString(n.fileSize)+"MB",1)],64)):t.createCommentVNode("",!0),n.fileType?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" 格式为 "),t.createElementVNode("b",F,t.toDisplayString(n.fileType.join("/")),1)],64)):t.createCommentVNode("",!0),t.createTextVNode(" 的文件 ")])):t.createCommentVNode("",!0),t.createVNode(l,{modelValue:u.value,"onUpdate:modelValue":o[0]||(o[0]=e=>u.value=e),title:"预览",width:"800","append-to-body":""},{default:t.withCtx(()=>[t.createElementVNode("img",{src:c.value,style:{display:"block","max-width":"100%",margin:"0 auto"}},null,8,G)]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-ddc0faf6"]]),$={class:"image-slot"},W=A({__name:"index",props:{enableDelete:{type:Boolean,default:!1},value:{type:String,default:""},src:{type:String,default:""},width:{type:[Number,String],default:"50px"},height:{type:[Number,String],default:"50px"},baseUrl:{type:String,default:""}},emits:["input","update:modelValue"],setup(e,{emit:r}){const n=e,o=(e,t="")=>e?/^(https?:|mailto:|tel:)/.test(e)?e:t?t+e:e:e,a=t.ref(null),s=t.computed(()=>{const e=n.value||n.src;if(!e)return;let t=e.split(",")[0];return o(t,n.baseUrl)}),l=t.computed(()=>{const e=n.value||n.src;if(!e)return[];let t=e.split(","),r=[];return t.forEach(e=>r.push(o(e,n.baseUrl))),r}),c=t.computed(()=>"string"==typeof n.width?n.width:`${n.width}px`),u=t.computed(()=>"string"==typeof n.height?n.height:`${n.height}px`),d=()=>{n.enableDelete&&t.nextTick(()=>{let e=document.getElementsByClassName("el-image-viewer__actions__inner"),t=document.createElement("i");t.setAttribute("class","el-icon-delete"),t.addEventListener("click",p),e[0].appendChild(t),e.length>0&&(a.value=e[0])})},p=()=>{const e=[...l.value];e.splice(l.value.indexOf(s.value),1),0===e.length&&document.querySelector(".el-image-viewer__close").click(),r("input",e.join(",")),r("update:modelValue",e.join(","))};return(e,r)=>{const n=t.resolveComponent("el-icon"),o=t.resolveComponent("el-image"),a=t.resolveComponent("el-badge");return t.openBlock(),t.createBlock(a,{hidden:t.unref(l).length<=1,value:t.unref(l).length,class:"item",type:"primary"},{default:t.withCtx(()=>[t.createVNode(o,{"preview-teleported":"",onClick:t.withModifiers(d,["stop","prevent"]),src:`${t.unref(s)}`,fit:"cover",style:t.normalizeStyle(`width:${t.unref(c)};height:${t.unref(u)};`),"preview-src-list":t.unref(l)},{error:t.withCtx(()=>[t.createElementVNode("div",$,[t.createVNode(n,{class:"el-icon-picture-outline"},{default:t.withCtx(()=>[t.createVNode(t.unref(i.Picture))]),_:1})])]),_:1},8,["onClick","src","style","preview-src-list"])]),_:1},8,["hidden","value"])}}},[["__scopeId","data-v-bebc33d5"]]),J=["404","bug","build","button","cascader","chart","checkbox","clipboard","code","color","component","dashboard","date","date-range","dict","documentation","download","drag","druid","edit","education","email","example","excel","exit-fullscreen","eye","eye-open","form","fullscreen","github","guide","icon","input","international","job","language","link","list","lock","log","logininfor","message","money","monitor","nested","number","online","password","pdf","people","peoples","phone","post","qq","question","radio","rate","redis","redis-list","row","search","select","server","shopping","size","skill","slider","star","swagger","switch","system","tab","table","textarea","theme","time","time-range","tool","tree","tree-table","upload","user","validCode","wechat","zip"],Y={class:"icon-body"},Q=(e=>(t.pushScopeId("data-v-7611a463"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("i",{class:"el-icon-search el-input__icon"},null,-1)),Z={class:"icon-list"},X=["onClick"],ee=A({__name:"index",emits:["selected"],setup(e,{expose:r,emit:n}){const o=t.ref(""),i=t.ref(J);function a(){i.value=J,o.value&&(i.value=J.filter(e=>-1!==e.indexOf(o.value)))}return r({reset:function(){o.value="",i.value=J}}),(e,r)=>{const s=t.resolveComponent("el-input");return t.openBlock(),t.createElementBlock("div",Y,[t.createVNode(s,{modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=e=>o.value=e),style:{position:"relative"},clearable:"",placeholder:"请输入图标名称",onClear:a,onInput:a},{suffix:t.withCtx(()=>[Q]),_:1},8,["modelValue"]),t.createElementVNode("div",Z,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(e,r)=>(t.openBlock(),t.createElementBlock("div",{key:r,onClick:t=>(n("selected",e),void document.body.click())},[t.createVNode(D,{"icon-class":e,style:{height:"30px",width:"16px"}},null,8,["icon-class"]),t.createElementVNode("span",null,t.toDisplayString(e),1)],8,X))),128))])])}}},[["__scopeId","data-v-7611a463"]]);function te(){const e=t.ref(!1),r=()=>{const e=navigator.userAgent.toLowerCase(),t=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(e),r=window.innerWidth<=768;return t||r},n=()=>{e.value=r()},o=()=>{n()};return t.onBeforeMount(()=>{n(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{isMobile:e,checkIsMobile:r}}const re={key:0,class:"search-container"},ne={key:1,class:"custom-drawer"},oe=A({__name:"index",props:{visible:{type:Boolean,default:!0}},emits:["update:visible"],setup(e,{emit:r}){const{isMobile:n}=te(),o=()=>{r("update:visible",!1)};return(r,i)=>{const a=t.resolveComponent("el-card"),s=t.resolveComponent("el-drawer");return t.unref(n)?(t.openBlock(),t.createElementBlock("div",ne,[t.createVNode(s,{"model-value":e.visible,title:"筛选条件",direction:"ttb",onClose:o},{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},void 0,!0)]),_:3},8,["model-value"])])):t.withDirectives((t.openBlock(),t.createElementBlock("div",re,[t.createVNode(a,null,{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},void 0,!0)]),_:3})],512)),[[t.vShow,e.visible]])}}},[["__scopeId","data-v-6e30b57f"]]),ie={__name:"index",props:{modelValue:{type:Array,default:()=>[]},disabledDate:{type:Function,default:null},valueFormat:{type:String,default:"YYYY-MM-DD"},clearable:{type:Boolean,default:!0}},emits:["update:modelValue","change"],setup(e,{emit:r}){const n=e,{isMobile:o}=te(),i=[{text:"过去7天",value:()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59);return[new Date(e.getFullYear(),e.getMonth(),e.getDate()-6,0,0,0),t]}},{text:"本周",value:()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59),r=e.getDay(),n=0===r?6:r-1;return[new Date(e.getFullYear(),e.getMonth(),e.getDate()-n,0,0,0),t]}},{text:"本月",value:()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59);return[new Date(e.getFullYear(),e.getMonth(),1,0,0,0),t]}},{text:"本年",value:()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59);return[new Date(e.getFullYear(),0,1,0,0,0),t]}},{text:"去年",value:()=>{const e=(new Date).getFullYear()-1;return[new Date(e,0,1,0,0,0),new Date(e,11,31,23,59,59)]}}],a=t.computed({get:()=>n.modelValue,set(e){r("update:modelValue",e)}}),s=e=>{r("change",e)};return(r,n)=>{const l=t.resolveComponent("el-date-picker");return t.openBlock(),t.createBlock(l,t.mergeProps({size:t.unref(o)?"small":"",clearable:e.clearable,modelValue:t.unref(a),"onUpdate:modelValue":n[0]||(n[0]=e=>t.isRef(a)?a.value=e:null),type:"daterange","value-format":e.valueFormat,"disabled-date":e.disabledDate,"range-separator":"到",shortcuts:i,"start-placeholder":"开始时间","end-placeholder":"结束时间",onChange:s},r.$attrs),null,16,["size","clearable","modelValue","value-format","disabled-date"])}}},ae={class:"table-container"},se={__name:"index",props:{request:{type:Function,default:()=>{}},rowKey:{type:String,default:""},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},responseConfig:{type:Object,default:()=>({total:"total",list:"rows"})},multiple:{type:Boolean,default:!0},showSummary:{type:Boolean,default:!1},summaryMethod:{type:Function},selectable:{type:Function},showSelect:{type:Boolean,default:!0},showIndex:{type:Boolean,default:!0},reserveSelection:{type:Boolean,default:!1},requestParams:{type:Object,default:()=>{}},customIndex:{type:Function},showPagination:{type:Boolean,default:!0},spanMethod:{type:[Function,null],default:null},handleList:{type:[Function,null],default:null},selected:{type:Array,default:()=>[]},isMountedRequest:{type:Boolean,default:!0},height:{type:String,default:"100%"}},emits:["selectionChange","sortChange","requestSuccess","cellEnter","cellLeave"],setup(e,{expose:r,emit:n}){const o=e,{isMobile:i}=te(),a=t.ref([]),s=t.ref([]),l=t.ref(!1),c={total:"total",list:"rows"},u=t.computed(()=>({...c,...o.responseConfig})),d=t.reactive({pageNum:1,pageSize:20}),p=t.ref(0),h=t.ref(null),f=t.ref([]),v=()=>{var e;const t=(null==(e=h.value)?void 0:e.selection)||[];t.forEach(e=>{var t;f.value.some(t=>t[o.rowKey]==e[o.rowKey])||null==(t=h.value)||t.toggleRowSelection(e,!1)}),f.value.forEach(e=>{var r,n;if(!t.some(t=>t[o.rowKey]==e[o.rowKey])){const t=a.value.find(t=>t[o.rowKey]==e[o.rowKey]);t?null==(r=h.value)||r.toggleRowSelection(t,!0):null==(n=h.value)||n.toggleRowSelection(e,!0)}})};t.watch(()=>a.value,()=>{v()}),t.watch(()=>o.selected,(e,t)=>{var r;if(e.length&&o.showSelect){const t=[];e.forEach(e=>{const r=e[o.rowKey];t.some(e=>e[o.rowKey]==r)||t.push(e)}),f.value=t,v()}else!e.length&&o.showSelect&&(null==(r=h.value)||r.clearSelection())},{immediate:!0});const m=e=>{if(o.spanMethod)return o.spanMethod(e,s.value,a.value)},g=(e,t,r,o)=>{n("cellEnter",{row:e,column:t,cell:r,event:o})},y=(e,t,r,o)=>{n("cellLeave",{row:e,column:t,cell:r,event:o})},C=e=>{if(0===e.columnIndex)return"disabledCheck"},S=e=>{var t;let r="";return(null==(t=f.value)?void 0:t.includes(e.row))&&(r="selected-color"),o.multiple||(r+=" selected-radio"),r},T=e=>{var t;if(o.multiple)f.value=e,n("selectionChange",e);else{if(e.length>1){let r=e.shift();null==(t=h.value)||t.toggleRowSelection(r,!1)}f.value=e,n("selectionChange",e)}},b=e=>{n("sortChange",e)},w=async()=>{var e;try{l.value=!0;const t=await o.request({...d,...o.requestParams});s.value=null==t?void 0:t[u.value.list],a.value=o.handleList?o.handleList(null==t?void 0:t[u.value.list]):null==t?void 0:t[u.value.list],n("requestSuccess",a.value,s.value),p.value=null!=(e=null==t?void 0:t[u.value.total])?e:0}catch(xr){}finally{l.value=!1}};return t.onMounted(()=>{o.isMountedRequest&&w()}),r({refresh:()=>{w()},doLayout:()=>{var e;null==(e=h.value)||e.doLayout()}}),(r,n)=>{const o=t.resolveComponent("el-table-column"),s=t.resolveComponent("el-table"),c=t.resolveComponent("el-pagination"),u=t.resolveDirective("loading");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:"TJ-table-container",style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",ae,[t.createVNode(s,t.mergeProps({ref_key:"tableRef",ref:h,size:t.unref(i)?"small":"default","row-key":e.rowKey,showSummary:e.showSummary,"summary-method":e.summaryMethod,"tree-props":e.treeProps,"span-method":m,onCellMouseEnter:g,onCellMouseLeave:y,data:a.value,border:"",height:"100%","row-class-name":S,"header-cell-class-name":e.multiple?"":C,onSortChange:b,onSelectionChange:T},r.$attrs),{default:t.withCtx(()=>[e.showSelect?(t.openBlock(),t.createBlock(o,{key:0,selectable:e.selectable,fixed:"left","reserve-selection":e.reserveSelection,type:"selection",align:"center",width:"40"},null,8,["selectable","reserve-selection"])):t.createCommentVNode("",!0),e.showIndex?(t.openBlock(),t.createBlock(o,{key:1,index:e.customIndex,fixed:!t.unref(i)&&"left",type:"index",label:"序号",width:"60",align:"center"},null,8,["index","fixed"])):t.createCommentVNode("",!0),t.renderSlot(r.$slots,"default",{},void 0,!0)]),_:3},16,["size","row-key","showSummary","summary-method","tree-props","data","header-cell-class-name"])]),e.showPagination?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.unref(i)?(t.openBlock(),t.createBlock(c,{key:1,class:"pagination mobile-pagination",background:"",onSizeChange:w,onCurrentChange:w,layout:"total, prev, pager, next",total:p.value,"page-size":d.pageSize,"onUpdate:page-size":n[2]||(n[2]=e=>d.pageSize=e),"current-page":d.pageNum,"onUpdate:current-page":n[3]||(n[3]=e=>d.pageNum=e),"pager-count":5,small:""},null,8,["total","page-size","current-page"])):(t.openBlock(),t.createBlock(c,{key:0,class:"pagination",background:"",onSizeChange:w,onCurrentChange:w,layout:"sizes, total, prev, pager, next, jumper",total:p.value,"page-size":d.pageSize,"onUpdate:page-size":n[0]||(n[0]=e=>d.pageSize=e),"page-sizes":[10,20,30,40,50],"current-page":d.pageNum,"onUpdate:current-page":n[1]||(n[1]=e=>d.pageNum=e)},null,8,["total","page-size","current-page"]))],64)):t.createCommentVNode("",!0)],4)),[[u,l.value]])}}},le=A(se,[["__scopeId","data-v-8906f38f"]]),ce={class:"table-container"};const ue=A({},[["render",function(e,r){return t.openBlock(),t.createElementBlock("div",ce,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-45fb95db"]]),de=A({__name:"index",props:{showSearch:{type:Boolean,default:!0},columns:{type:Array},search:{type:Boolean,default:!0},showRefresh:{type:Boolean,default:!0},gutter:{type:Number,default:10}},emits:["update:showSearch","queryTable"],setup(e,{emit:r}){const n=e,o=t.ref([]),i=t.ref("显示/隐藏"),a=t.ref(!1),s=t.computed(()=>{const e={};return n.gutter&&(e.marginRight=n.gutter/2+"px"),e});function l(e){for(let t in n.columns){const r=n.columns[t].key;n.columns[t].visible=!e.includes(r)}}for(let t in n.columns)!1===n.columns[t].visible&&o.value.push(parseInt(t));return(c,u)=>{const d=t.resolveComponent("el-button"),p=t.resolveComponent("el-tooltip"),h=t.resolveComponent("el-row"),f=t.resolveComponent("el-transfer"),v=t.resolveComponent("el-dialog");return t.openBlock(),t.createElementBlock("div",{class:"top-right-btn",style:t.normalizeStyle(t.unref(s))},[t.createVNode(h,null,{default:t.withCtx(()=>[e.search?(t.openBlock(),t.createBlock(p,{key:0,class:"item",effect:"dark",content:e.showSearch?"隐藏搜索":"打开搜索",placement:"top"},{default:t.withCtx(()=>[t.createVNode(d,{circle:"",icon:"Search",onClick:u[0]||(u[0]=e=>{r("update:showSearch",!n.showSearch)})})]),_:1},8,["content"])):t.createCommentVNode("",!0),e.showRefresh?(t.openBlock(),t.createBlock(p,{key:1,class:"item",effect:"dark",content:"刷新",placement:"top"},{default:t.withCtx(()=>[t.createVNode(d,{circle:"",icon:"Refresh",onClick:u[1]||(u[1]=e=>{r("queryTable")})})]),_:1})):t.createCommentVNode("",!0),e.columns?(t.openBlock(),t.createBlock(p,{key:2,class:"item",effect:"dark",content:"显隐列",placement:"top"},{default:t.withCtx(()=>[t.createVNode(d,{circle:"",icon:"Menu",onClick:u[2]||(u[2]=e=>{a.value=!0})})]),_:1})):t.createCommentVNode("",!0)]),_:1}),t.createVNode(v,{title:i.value,modelValue:a.value,"onUpdate:modelValue":u[4]||(u[4]=e=>a.value=e),"append-to-body":""},{default:t.withCtx(()=>[t.createVNode(f,{titles:["显示","隐藏"],modelValue:o.value,"onUpdate:modelValue":u[3]||(u[3]=e=>o.value=e),data:e.columns,onChange:l},null,8,["modelValue","data"])]),_:1},8,["title","modelValue"])],4)}}},[["__scopeId","data-v-0e82f8bf"]]),pe={class:"table-top-action-container"},he=A({__name:"index",props:{showSearch:{type:Boolean,default:!0},showRefresh:{type:Boolean,default:!0}},emits:["update:showSearch","refresh"],setup(e,{emit:r}){const n=e,o=t.computed({get:()=>n.showSearch,set(e){r("update:showSearch",e)}}),i=()=>{r("refresh")};return(r,n)=>(t.openBlock(),t.createElementBlock("div",pe,[t.renderSlot(r.$slots,"left",{},void 0,!0),t.renderSlot(r.$slots,"right",{},()=>[t.createVNode(de,{showSearch:t.unref(o),"onUpdate:showSearch":n[0]||(n[0]=e=>t.isRef(o)?o.value=e:null),showRefresh:e.showRefresh,onQueryTable:i},null,8,["showSearch","showRefresh"])],!0)]))}},[["__scopeId","data-v-056cfdde"]]),fe={class:"table-page-container"},ve={style:{flex:"1",height:"0"}},me=A({__name:"index",props:{showSearch:{type:Boolean,default:!0}},emits:["refresh","update:showSearch"],setup(e,{emit:r}){const n=e,{isMobile:o}=te(),i=()=>{r("refresh")},a=t.computed({get:()=>n.showSearch,set(e){r("update:showSearch",e)}});return t.watch(o,e=>{r("update:showSearch",!e)},{immediate:!0}),(e,r)=>(t.openBlock(),t.createElementBlock("div",fe,[t.renderSlot(e.$slots,"search",{},void 0,!0),t.createVNode(he,{showSearch:t.unref(a),"onUpdate:showSearch":r[0]||(r[0]=e=>t.isRef(a)?a.value=e:null),onRefresh:i},{left:t.withCtx(()=>[t.renderSlot(e.$slots,"btn",{},void 0,!0)]),_:3},8,["showSearch"]),t.createElementVNode("div",ve,[t.renderSlot(e.$slots,"table",{},void 0,!0)]),t.renderSlot(e.$slots,"default",{},void 0,!0)]))}},[["__scopeId","data-v-cd968be9"]]),ge={__name:"index",setup(e){const{isMobile:r}=te(),n=t.computed(()=>t.useSlots().default());return(e,o)=>{const i=t.resolveComponent("arrow-down"),a=t.resolveComponent("el-icon"),s=t.resolveComponent("el-dropdown-item"),l=t.resolveComponent("el-dropdown-menu"),c=t.resolveComponent("el-dropdown");return t.openBlock(),t.createElementBlock("div",null,[t.unref(r)?(t.openBlock(),t.createBlock(c,{key:0},{dropdown:t.withCtx(()=>[t.createVNode(l,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(n),e=>(t.openBlock(),t.createBlock(s,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e)))]),_:2},1024))),256))]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("span",null,[t.createTextVNode(" 操作 "),t.createVNode(a,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(i)]),_:1})])]),_:1})):t.renderSlot(e.$slots,"default",{key:1})])}}},ye={__name:"BaseChart",props:{option:{type:Object,required:!0},width:{type:String,default:"100%"},height:{type:String,default:"100%"}},emits:["chartClick","legendselectchanged"],setup(e,{expose:r,emit:n}){const o=e,i=t.ref(null),a=t.ref(null),s=e=>{n("chartClick",e)},c=e=>{n("legendselectchanged",e)},u=l.throttle(()=>{var e;try{null==(e=a.value)||e.resize()}catch(t){}},300,{leading:!0,trailing:!0});return t.watch(()=>o.option,e=>{if(a.value&&e)try{a.value.clear(),a.value.setOption(e)}catch(t){}},{deep:!0}),t.onMounted(async()=>{await(async()=>{try{if(await t.nextTick(),!i.value)return;a.value||(a.value=t.markRaw(C.init(i.value))),o.option&&a.value.setOption(o.option),a.value.on("click",s),a.value.on("legendselectchanged",c)}catch(e){}})(),u()}),t.onBeforeUnmount(()=>{if(a.value)try{a.value.off("click",s),a.value.off("legendselectchanged",c),a.value.dispose(),a.value=null}catch(e){}}),r({resize:u,setOption:e=>{if(a.value)try{a.value.setOption(e)}catch(t){}}}),(r,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"echartsRef",ref:i,style:t.normalizeStyle({width:e.width,height:e.height})},null,4))}},Ce=["element-loading-background"],Se={key:1,class:"empty-wrapper"},Te=["src"],be=(e=>(t.pushScopeId("data-v-ec2e25d8"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"empty-text"},"暂无数据",-1)),we=A({__name:"CommonChart",props:{height:{type:String,default:"300px"},loading:{type:Boolean,default:!1},title:{type:String,default:"chart图表"},unit:{type:[Array,String],default:()=>[]},showCardHeader:{type:Boolean,default:!0},data:{type:Array,default:()=>[],required:!0},categoryName:{type:String,default:"name"},seriesConfig:{type:Array,default:()=>[],required:!0},flipAxis:{type:Boolean,default:!1},backgroundColor:{type:[String,null],default:null},boundaryGap:{type:Boolean,default:!0},toolTipFormatter:{type:[Function,null],default:null},mode:{type:String,default:"light"},reservedDigits:{type:Number,default:0},legendSelected:{type:Object,default:()=>({})},showLegendCheckAll:{type:Boolean,default:!0}},emits:["chartClick","legendSelectChanged"],setup(e,{emit:r}){const n=e,{isMobile:o}=te(),i=t.ref(null),a=t.ref(null),s=t.ref(0),l=t.ref(0),c=t.ref(null),u=e=>{r("chartClick",e)},d=e=>{p(e),r("legendSelectChanged",e)},p=e=>{"全选"===e.name&&a.value.setOption({legend:{selected:Object.keys(e.selected).reduce((t,r)=>(t[r]=e.selected[e.name],t),{})}})},h=t.computed(()=>n.showLegendCheckAll?{"全选":!1,...n.legendSelected}:n.legendSelected),f=t.computed(()=>{let e=n.seriesConfig;return n.showLegendCheckAll&&e.unshift({name:"全选",isCheckAll:!0,icon:"circle"}),e}),v=t.computed(()=>{if(n.backgroundColor){return n.backgroundColor.includes("gradient")||n.backgroundColor.includes("linear-gradient")?{background:n.backgroundColor,borderColor:""}:{backgroundColor:n.backgroundColor,borderColor:n.backgroundColor}}return"dark"===n.mode?{backgroundColor:"rgba(8 ,40 ,93, 0.9)",borderColor:"rgba(8 ,40 ,93, 0.9)"}:{}}),m=t.computed(()=>{if(n.backgroundColor){return n.backgroundColor.includes("gradient")||n.backgroundColor.includes("linear-gradient")?{background:"transparent",borderColor:"transparent"}:{backgroundColor:n.backgroundColor,borderColor:n.backgroundColor}}return"dark"===n.mode?{backgroundColor:"transparent",borderColor:"rgba(8 ,40 ,93, 0.9)"}:{}}),g=t.computed(()=>"dark"===n.mode?{color:"#fff"}:{color:"#000"}),y=t.computed(()=>n.backgroundColor?n.backgroundColor:"dark"===n.mode?"rgba(51 ,78 ,122 ,0.6)":"rgba(255, 255, 255, .9)"),C=t.computed(()=>!n.data||!Array.isArray(n.data)||0===n.data.length),S=t.computed(()=>Array.isArray(n.unit)?n.unit:[n.unit]),T=t.computed(()=>{const e={};n.seriesConfig.filter(e=>"bar"===e.type).forEach(t=>{var r,n,o,i;t.stack?e[t.stack]?e[t.stack].push(null!=(r=t.barMaxWidth)?r:30):e[t.stack]=[null!=(n=t.barMaxWidth)?n:30]:e.other?e.other.push(null!=(o=t.barMaxWidth)?o:30):e.other=[null!=(i=t.barMaxWidth)?i:30]});return Object.keys(e).reduce((t,r)=>"other"!==r?t+e[r][0]:t+e[r].reduce((e,t)=>e+t,0),0)}),b=t.computed(()=>{const e=10*n.data.reduce((e,t)=>{const r=(e=>{let t=0;for(let r=0;r<e.length;r++){const n=e[r];/[\u4e00-\u9fa5\u3000-\u303f\uff00-\uffef]/.test(n)?t+=2:t+=1}return t})(String(t[n.categoryName]||""));return r>e?r:e},0),t=Math.max(T.value,e);return n.flipAxis?Math.floor((l.value-80)/t):Math.floor((s.value-90)/t)}),w=t.computed(()=>{if(!n.data||n.data.length<=b.value||0===s.value)return{show:!1,start:0,end:100};const e=Math.ceil((n.data.length-b.value)/n.data.length*100);return{show:!0,start:100===e?95:e,end:100}}),E=t.computed(()=>{if(!(n.data&&Array.isArray(n.data)&&n.seriesConfig&&Array.isArray(n.seriesConfig)))return{tooltip:{trigger:"axis"},xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};const e=n.seriesConfig.filter(e=>e.axisIndex).length,t=e?((e,t="max")=>{if(!e.length)return 0;const r=n.seriesConfig.filter(e=>!e.axisIndex),o=e.reduce((e,t)=>(r.forEach(r=>{e.push(Number(t[r.prop]))}),e),[]);return"max"===t?Math.max(...o):"min"===t?Math.min(...o):void 0})(n.data,"max"):null,r=e?((e,t="max")=>{if(!e.length)return 0;const r=n.seriesConfig.filter(e=>e.axisIndex);if(!r.length)return 1;const o=e.reduce((e,t)=>(r.forEach(r=>{e.push(Number(t[r.prop]))}),e),[]);return"max"===t?Math.max(...o):"min"===t?Math.min(...o):void 0})(n.data,"max"):null,[i,a]=e?((e,t)=>{let r=Math.min(e,t),n=Math.max(e,t);if(0===r&&(r=1),0===n)return[];const o=String(Math.round(r)).length,i=Math.ceil(n/r);let a;a=o<=3?Math.ceil(r/Math.pow(10,o-1))*Math.pow(10,o-1):Math.ceil(r/Math.pow(10,o-2))*Math.pow(10,o-2);let s=a*i;return e>t?[s,a]:[a,s]})(t,r):[null,null],[s,l]=e?(u=a,(c=i)&&u?[Math.ceil(c/5),Math.ceil(u/5)]:[]):[null,null];var c,u;return{tooltip:{appendToBody:!o.value,formatter:n.toolTipFormatter,trigger:"axis",position:o.value?function(e,t,r,n,o){const i=r.offsetWidth,a=r.offsetHeight;return[(o.contentSize[0]-i)/2,(o.contentSize[1]-a)/2]}:"top",axisPointer:{type:"cross",crossStyle:{color:"#999"}},textStyle:{fontSize:o.value?12:14,..."dark"===n.mode?{color:"#fff"}:{}},..."dark"===n.mode?{backgroundColor:"#194690",borderWidth:0}:{},...o.value?{padding:[8,12],extraCssText:"max-width: 80%; word-wrap: break-word;"}:{}},dataZoom:[{type:"slider",show:w.value.show,start:w.value.start,end:w.value.end,height:n.flipAxis?"auto":6,width:n.flipAxis?6:"auto",bottom:n.flipAxis?"35px":"2px",right:n.flipAxis?"2px":"40px",left:n.flipAxis?"auto":"40px",showDataShadow:!1,showDetail:!1,handleSize:"100%",handleStyle:{color:"dark"===n.mode?"#19437a":"#DEDEDE",borderRadius:4,opacity:1,borderColor:"transparent",borderWidth:0},backgroundColor:"transparent",fillerColor:"dark"===n.mode?"#19437a":"#DEDEDE",borderColor:"transparent",moveHandleStyle:{color:"#DEDEDE"},selectedDataBackground:{lineStyle:{opacity:0},areaStyle:{opacity:0}},emphasis:{handleStyle:{color:"#606266",borderColor:"transparent",borderWidth:0,opacity:1}},yAxisIndex:n.flipAxis?[0]:null,xAxisIndex:n.flipAxis?null:[0],filterMode:"filter",textStyle:{color:"transparent"},labelPrecision:0,brushSelect:!1,zoomLock:!0,throttle:100}],legend:{type:"scroll",selected:{...h.value},data:f.value,x:"right",y:"top",..."dark"===n.mode?{textStyle:{color:"#fff"}}:{}},grid:{containLabel:!0,top:50,left:40,right:n.flipAxis?80:40,bottom:n.flipAxis?30:40},[n.flipAxis?"yAxis":"xAxis"]:[{type:"category",boundaryGap:n.boundaryGap,data:n.data.map(e=>e[n.categoryName]||""),axisPointer:{type:"shadow"},axisLabel:{internal:0,rotate:n.flipAxis?90:0,..."dark"===n.mode?{color:"#fff"}:{}}}],[n.flipAxis?"xAxis":"yAxis"]:[{type:"value",name:S.value[0]?`单位:${S.value[0]}`:null,nameTextStyle:{..."dark"===n.mode?{color:"#fff"}:{}},...e?{min:0,max:null!=i?i:1500,interval:s}:{},axisLabel:{formatter:"{value}",..."dark"===n.mode?{color:"#fff"}:{}}},{type:"value",name:S.value[1]?`单位:${S.value[1]}`:null,nameTextStyle:{..."dark"===n.mode?{color:"#fff"}:{}},...e?{min:0,max:null!=a?a:150,interval:l}:{},axisLabel:{formatter:"{value}",..."dark"===n.mode?{color:"#fff"}:{}}}],series:f.value.map(e=>{var t;return{type:e.type||"line",barMaxWidth:null!=(t=e.barMaxWidth)?t:30,data:e.isCheckAll?[]:n.data.map(t=>Number(t[e.prop]||0).toFixed(n.reservedDigits)),...e,...n.flipAxis?{xAxisIndex:e.axisIndex||0}:{yAxisIndex:e.axisIndex||0}}})}});return t.onMounted(()=>{c.value=new ResizeObserver(e=>{var t;null==(t=a.value)||t.resize();for(const r of e)s.value=r.target.getBoundingClientRect().width,l.value=r.target.getBoundingClientRect().height}),i.value&&c.value.observe(i.value)}),t.onBeforeUnmount(()=>{c.value&&c.value.disconnect()}),(r,n)=>{const o=t.resolveComponent("el-card"),s=t.resolveDirective("loading");return t.openBlock(),t.createBlock(o,{class:"card-container",style:t.normalizeStyle(t.unref(v))},t.createSlots({default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref_key:"chartContainer",ref:i,"element-loading-background":t.unref(y),style:t.normalizeStyle({height:e.height}),class:"card-body"},[t.unref(C)?(t.openBlock(),t.createElementBlock("div",Se,[t.createElementVNode("img",{src:t.unref("data:image/png;base64,"),alt:"empty",class:"empty-image"},null,8,Te),be])):(t.openBlock(),t.createBlock(ye,{key:0,onChartClick:u,onLegendselectchanged:d,ref_key:"baseChartRef",ref:a,option:t.unref(E)},null,8,["option"]))],12,Ce)),[[s,e.loading]])]),_:2},[e.showCardHeader?{name:"header",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"header",{},()=>[t.createElementVNode("div",{class:"card-header",style:t.normalizeStyle(t.unref(m))},[t.createElementVNode("span",{class:"card-title",style:t.normalizeStyle(t.unref(g))},t.toDisplayString(e.title),5)],4)],!0)]),key:"0"}:void 0]),1032,["style"])}}},[["__scopeId","data-v-ec2e25d8"]]),Ee=["element-loading-background"],Ae=A({__name:"PieChart",props:{title:{type:String,required:!0},loading:{type:Boolean,default:!1},height:{type:String,default:"300px"},mode:{type:String,default:"light"},data:{type:Array,required:!0},center:{type:Array,default:()=>["50%","50%"]},radius:{type:Array,default:()=>["0%","70%"]},type:{type:String,default:"pie",validator:function(e){return-1!==["pie","doughnut","rose"].indexOf(e)}},showCenterText:{type:Boolean,default:!1},centerText:{type:String,default:""},labelPosition:{type:String,default:"inside",validator:function(e){return-1!==["inside","outside"].indexOf(e)}},roseType:{type:String,default:"radius",validator:function(e){return-1!==["radius","area"].indexOf(e)}},colors:{type:Array,default:()=>[]}},setup(e){const r=e,n=t.ref(null),o=t.ref(null),i=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],a=t.computed(()=>r.backgroundColor?{backgroundColor:r.backgroundColor,borderColor:r.backgroundColor}:"dark"===r.mode?{backgroundColor:"rgba(8 ,40 ,93, 0.9)",borderColor:"rgba(8 ,40 ,93, 0.9)"}:{}),s=t.computed(()=>r.backgroundColor?{backgroundColor:r.backgroundColor,borderColor:r.backgroundColor}:"dark"===r.mode?{backgroundColor:"transparent",borderColor:"rgba(8 ,40 ,93, 0.9)"}:{}),l=t.computed(()=>"dark"===r.mode?{color:"#fff"}:{color:"#000"}),c=t.computed(()=>"dark"===r.mode?"rgba(25, 70, 144, .9)":"rgba(255, 255, 255, .9)"),u=t.computed(()=>"doughnut"===r.type?2===r.radius.length&&"0%"!==r.radius[0]?r.radius:["50%","70%"]:r.radius),d=t.computed(()=>({color:r.colors.length>0?r.colors:i,tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)",..."dark"===r.mode?{backgroundColor:"#194690",textStyle:{color:"#fff"},borderWidth:0}:{}},legend:{orient:"horizontal",bottom:"0",..."dark"===r.mode?{textStyle:{color:"#fff"}}:{}},graphic:r.showCenterText?[{type:"text",left:"center",top:"middle",style:{text:r.centerText,fontSize:20,fontWeight:"bold",fill:"dark"===r.mode?"#fff":"#000"}}]:[],series:[{type:"pie",radius:u.value,center:r.center,data:r.data,..."rose"===r.type?{roseType:r.roseType}:{},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},label:{show:!0,position:r.labelPosition,formatter:"{b}: {d}%",..."dark"===r.mode?{color:"#fff"}:{}}}]}));return t.onMounted(()=>{(()=>{o.value=new ResizeObserver(e=>{var t;null==(t=n.value)||t.resize()});const e=document.querySelector(".card-body");e&&o.value.observe(e)})()}),t.onBeforeUnmount(()=>{o.value&&o.value.disconnect()}),(r,o)=>{const i=t.resolveComponent("el-card"),u=t.resolveDirective("loading");return t.openBlock(),t.createBlock(i,{class:"card-container",style:t.normalizeStyle(t.unref(a))},{header:t.withCtx(()=>[t.createElementVNode("div",{class:"card-header",style:t.normalizeStyle(t.unref(s))},[t.createElementVNode("span",{class:"card-title",style:t.normalizeStyle(t.unref(l))},t.toDisplayString(e.title),5)],4)]),default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-background":t.unref(c),style:t.normalizeStyle({height:e.height}),class:"card-body"},[t.createVNode(ye,{ref_key:"baseChart",ref:n,option:t.unref(d),height:"100%"},null,8,["option"])],12,Ee)),[[u,e.loading]])]),_:1},8,["style"])}}},[["__scopeId","data-v-747db0fa"]]),_e=()=>Math.random().toString(36).substring(2,8),Ne=e=>{try{return JSON.parse(e),!0}catch(xr){return!1}},ke=e=>Array.isArray(e)?Math.max(...e.map(ke))+1:0,Re=(e,t)=>!!/^[+-]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d{1,15})?)$/.test(e)&&!!/^[+-]?(90(\.0+)?|([1-8]?\d)(\.\d{1,15})?)$/.test(t),xe=e=>(t.pushScopeId("data-v-c613bad1"),e=e(),t.popScopeId(),e),Ie=["id"],De={key:0,class:"error-content"},Oe=xe(()=>t.createElementVNode("div",{class:"error-icon"},"!",-1)),Me={key:1,class:"loading-overlay"},Ue=xe(()=>t.createElementVNode("p",null,"正在加载播放器...",-1)),Ve=A({__name:"index",props:{playerId:{type:String,default:()=>`flv-player-${Date.now()}-${_e()}`},src:{type:String,required:!0},autoplay:{type:Boolean,default:!0},muted:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},isLive:{type:Boolean,default:!0},timeout:{type:Number,default:3e4},maxRetries:{type:Number,default:3},flvOptions:{type:Object,default:()=>({})}},emits:["error","can-play","play","pause","ended","time-update","player-ready","retry"],setup(e,{expose:r,emit:n}){const o=e,s=t.ref(null),l=t.ref(""),c=t.ref(0),u=t.ref(null),d=t.ref(null),p=t.ref(null),h=t.ref(null);t.onMounted(()=>{S.default.isSupported()?t.nextTick(()=>{f()}):(l.value="您的浏览器不支持FLV播放,请使用Chrome或Firefox等现代浏览器",n("error",{message:l.value}))}),t.onBeforeUnmount(()=>{g(),y()});const f=()=>{if(o.src){l.value="",g();try{const e=h.value;if(!e)throw new Error("找不到视频元素");e.autoplay=o.autoplay,e.muted=o.muted,e.loop=o.loop,e.controls=o.controls;const t={type:"flv",url:o.src,isLive:o.isLive,cors:!0,withCredentials:!1,hasAudio:!0,hasVideo:!0,enableStashBuffer:!0,stashInitialSize:3145728,enableWorker:!0,lazyLoad:!1,lazyLoadMaxDuration:180,seekType:"range",fixAudioTimestampGap:!0,accurateSeek:!0},r=Object.assign({},t,o.flvOptions);if(!S.default.isSupported())throw new Error("当前浏览器不支持FLV播放");s.value=S.default.createPlayer(r),s.value.attachMediaElement(e),s.value.load(),s.value.on(S.default.Events.ERROR,(e,t)=>{C(`播放错误: ${e} - ${t}`)}),s.value.on(S.default.Events.MEDIA_INFO,e=>{}),e.addEventListener("canplay",()=>{n("can-play")}),e.addEventListener("play",()=>{n("play")}),e.addEventListener("pause",()=>{n("pause")}),e.addEventListener("ended",()=>{n("ended")}),e.addEventListener("timeupdate",()=>{n("time-update",e.currentTime)}),e.addEventListener("error",e=>{const t=e.target.error;let r="未知错误";if(t)switch(t.code){case 1:r="视频加载中断";break;case 2:r="网络错误";break;case 3:r="视频解码错误";break;case 4:r="视频资源不可用"}C(`视频元素错误: ${r}`)}),o.autoplay&&b(),d.value=setInterval(()=>{v()},5e3),n("player-ready",s.value)}catch(e){C(`播放器初始化错误: ${e.message||"未知错误"}`)}}},v=()=>{const e=h.value;e&&s.value&&e.readyState<=2&&e.paused&&!l.value&&m()},m=()=>{g(),t.nextTick(()=>{f()})},g=()=>{if(s.value)try{s.value.pause(),s.value.unload(),s.value.detachMediaElement(),s.value.destroy(),s.value=null}catch(e){}},y=()=>{u.value&&(clearTimeout(u.value),u.value=null),d.value&&(clearInterval(d.value),d.value=null)},C=e=>{l.value=e,n("error",{message:e}),c.value<o.maxRetries&&(c.value++,u.value=setTimeout(()=>{T()},3e3))},T=()=>{f(),n("retry")},b=()=>{const e=h.value;e&&e.play().catch(t=>{"NotAllowedError"!==t.name||e.muted||(e.muted=!0,e.play().catch(e=>{}))})};return t.watch(()=>o.src,(e,r)=>{e!==r&&(c.value=0,y(),t.nextTick(()=>{f()}))}),t.watch(()=>o.muted,e=>{const t=h.value;t&&(t.muted=e)}),r({play:b,pause:()=>{const e=h.value;e&&e.pause()},toggleMute:()=>{const e=h.value;return!!e&&(e.muted=!e.muted,e.muted)},retry:T,destroyPlayer:g,refreshPlayer:m,handleError:C}),(r,n)=>(t.openBlock(),t.createElementBlock("div",{class:"flv-player-container",ref_key:"playerContainer",ref:p},[t.createElementVNode("div",{id:e.playerId,class:"player-box"},[t.createElementVNode("video",{ref_key:"videoElement",ref:h,class:"video-js",controls:""},null,512)],8,Ie),l.value?(t.openBlock(),t.createElementBlock("div",De,[Oe,t.createElementVNode("p",null,t.toDisplayString(l.value),1),t.createVNode(t.unref(a.ElButton),{type:"primary",size:"small",onClick:T,class:"retry-button"},{default:t.withCtx(()=>[t.createTextVNode(" 重试 ")]),_:1})])):t.createCommentVNode("",!0),l.value||s.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Me,[t.createVNode(t.unref(a.ElIcon),{class:"loading-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(i.Loading))]),_:1}),Ue]))],512))}},[["__scopeId","data-v-c613bad1"]]),He=e=>(t.pushScopeId("data-v-7d1d9d8a"),e=e(),t.popScopeId(),e),Pe={class:"control-panel"},ze={class:"form-item",style:{"flex-shrink":"0"}},Be=He(()=>t.createElementVNode("label",null,"模式:",-1)),Le={key:0,class:"form-item"},qe={class:"time-inputs"},je={class:"video-player-container","element-loading-text":"视频加载中...","element-loading-background":"rgba(0,0,0,.5)"},Fe={class:"video-player-title"},Ge={key:0,class:"title-text-bh"},Ke={class:"title-text-bh"},$e={class:"title-text-type"},We=["id"],Je={key:0,class:"err-box"},Ye={class:"error-message-text"},Qe=He(()=>t.createElementVNode("a",{href:"https://sctj-zcglxt.oss-cn-chengdu.aliyuncs.com/lifingBusiness/%E6%B5%B7%E5%BA%B7%E5%A8%81%E8%A7%86%E9%94%99%E8%AF%AF%E7%A0%81%E5%A4%A7%E5%85%A8.docx",download:"",style:{color:"#1A68DB","text-decoration":"underline"},target:"_self"}," 下载查看错误码详情 ",-1)),Ze={key:0},Xe=He(()=>t.createElementVNode("span",null," 证书未安装、证书不安全, ",-1)),et={class:"btn-box"},tt=A({__name:"index",props:{playerId:{type:String,default:function(){return`hkPlayer-${Date.now()}-${_e()}`}},preUrl:{type:String},deviceSerial:{type:String},deviceName:{type:String,default:""},cameraType:{type:String,default:"枪机"},channelName:{type:String,default:"默认通道"},channelNo:{type:String,default:"1"},whetherPanTilt:{type:[Boolean,String],default:"1"},width:{type:[Number,String],default:"100%"},height:{type:[String,null],default:null},defaultMode:{type:String,default:"live",validator:e=>["live","replay"].includes(e)},getLiveAddress:{type:Function,required:!0},getReplayAddress:{type:Function,required:!0},downloadCertificate:{type:Function,default:void 0}},setup(e,{expose:r}){const n=e,o=t.ref(""),i=t.ref(!0),a=t.ref(null),s=t.ref(n.defaultMode),l=t.ref([]),c=t.ref(""),u=t.ref(!1),d=t.computed(()=>n.height?{height:n.height}:{aspectRatio:2}),p=()=>{if(a.value){if(u.value)k(c.value);else{let e=a.value.currentWindowIndex;a.value.JS_Stop(e)}u.value=!u.value}};t.watch(()=>n.deviceSerial,e=>{e&&f()}),t.watch(()=>n.preUrl,e=>{e&&(c.value=e,k(e))});const h=t.ref(!1),f=async()=>{if(n.deviceSerial){i.value=!0;try{"live"===s.value?await v():C()}catch(e){o.value=`初始化播放失败:${e.message||e}`,i.value=!1}}},v=async()=>{try{o.value="",i.value=!0;const e=await n.getLiveAddress({deviceSerial:n.deviceSerial,channelNo:n.channelNo});if(!e||!e.data)throw new Error("获取直播地址失败");c.value=e.data,k(e.data)}catch(e){o.value=`获取直播地址失败:${e.message||e}`,i.value=!1}},m=async(e,t)=>{try{i.value=!0;const r={deviceSerial:n.deviceSerial,playbackBeginTime:e,playbackEndTime:t,channelNo:n.channelNo},o=await n.getReplayAddress(r);if(!o||!o.data)throw new Error("获取回放地址失败");c.value=o.data,k(o.data)}catch(r){o.value=`获取回放地址失败:${r.message||r}`,i.value=!1}},g=e=>{s.value=e,"live"===e&&n.deviceSerial&&v(),"replay"===e&&n.deviceSerial&&C()},y=e=>{l.value=e,C()},C=()=>{if(o.value="",!l.value||!l.value.length){const e=new Date,t=new Date(Date.now()-36e5),r=[T.default(t).format("YYYY-MM-DD HH:mm:ss"),T.default(e).format("YYYY-MM-DD HH:mm:ss")];l.value=r}const[e,t]=l.value;m(e,t)},S=()=>{h.value?b():w()},b=()=>{if(!a.value)return;let e=a.value.currentWindowIndex;a.value.JS_StopSave(e).then(()=>{h.value=!1},e=>{})},w=()=>{if(!a.value)return;let e=a.value.currentWindowIndex,t=`${(new Date).toLocaleDateString().replaceAll("/","-")}.mp4`;a.value.JS_StartSaveEx(e,t,5).then(()=>{h.value=!0},e=>{})},E=()=>{a.value&&a.value.JS_FullScreenDisplay(!1).then(()=>{},e=>{})},A=()=>{_()},_=()=>{try{a.value=new window.JSPlugin({szId:n.playerId,szBasePath:"/hkPlayerPlugin"}),a.value&&N()}catch(e){i.value=!1,o.value=`播放器初始化失败:${e}`}},N=()=>{a.value.JS_SetWindowControlCallback({windowEventSelect(e){},pluginErrorHandler(e,t,r){i.value=!1,o.value=`播放器插件发生错误:${t}`},windowEventOver(e){},windowEventOut(e){},windowFullCcreenChange(e){},firstFrameDisplay(e,t,r){},performanceLack(e){}}),n.deviceSerial?f():n.preUrl&&k()},k=e=>{if(!a.value)return;let t;if(t=null!=e?e:n.preUrl,!t)return;const r={playURL:t,mode:0};let[c,u]=l.value;"live"===s.value?(c=null,u=null):(c=new Date(c).toISOString(),u=new Date(u).toISOString()),a.value.JS_Play(t,r,0,c,u).then(()=>{i.value=!1},e=>{i.value=!1,o.value=`监控播放失败:${e}`})};return t.onMounted(()=>{t.nextTick(()=>{_()})}),t.onUnmounted(()=>{a.value.JS_StopRealPlayAll().then(()=>{},e=>{})}),r({play:k,getLiveAddress:v,getReplayAddress:m,startReplay:C}),(r,c)=>{var f;const v=t.resolveComponent("el-radio"),m=t.resolveComponent("el-radio-group"),C=t.resolveComponent("el-date-picker"),T=t.resolveComponent("WarningFilled"),b=t.resolveComponent("el-icon"),w=t.resolveComponent("el-button"),_=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",{class:"videoPlayer",style:t.normalizeStyle({width:e.width})},[t.createElementVNode("div",Pe,[t.createElementVNode("div",ze,[Be,t.createVNode(m,{size:"small",modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=e=>s.value=e),onChange:g},{default:t.withCtx(()=>[t.createVNode(v,{label:"live",border:""},{default:t.withCtx(()=>[t.createTextVNode("实时")]),_:1}),t.createVNode(v,{label:"replay",border:""},{default:t.withCtx(()=>[t.createTextVNode("回放")]),_:1})]),_:1},8,["modelValue"])]),"replay"===s.value?(t.openBlock(),t.createElementBlock("div",Le,[t.createElementVNode("div",qe,[t.createVNode(C,{size:"small",clearable:!1,modelValue:l.value,"onUpdate:modelValue":c[1]||(c[1]=e=>l.value=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",onChange:y},null,8,["modelValue"])])])):t.createCommentVNode("",!0)]),t.withDirectives((t.openBlock(),t.createElementBlock("div",je,[t.createElementVNode("div",Fe,[e.deviceName?(t.openBlock(),t.createElementBlock("div",Ge,t.toDisplayString(`${e.deviceName}(${null!=(f=e.channelName)?f:"默认通道"})`),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Ke,t.toDisplayString("序列号:"+e.deviceSerial),1),t.createElementVNode("div",$e,t.toDisplayString(e.cameraType),1)]),t.createElementVNode("div",{id:e.playerId,style:t.normalizeStyle(t.unref(d))},null,12,We),o.value?(t.openBlock(),t.createElementBlock("div",Je,[t.createVNode(b,{size:"40",color:"red"},{default:t.withCtx(()=>[t.createVNode(T)]),_:1}),t.createElementVNode("div",Ye,[t.createTextVNode(t.toDisplayString(o.value+":取流失败,")+" ",1),Qe,o.value.includes("0x12f910019")?(t.openBlock(),t.createElementBlock("div",Ze,[Xe,t.createElementVNode("span",{onClick:c[2]||(c[2]=t=>(async e=>{if(n.downloadCertificate)try{let t=await n.downloadCertificate(e);const r=URL.createObjectURL(t),o=document.createElement("a");o.href=r,o.download=`安全证书${(new Date).getTime()}.exe`,o.click(),URL.revokeObjectURL(r)}catch(t){}})(e.deviceSerial)),class:"install-certificate"}," 安装证书后重启浏览器解决 ")])):t.createCommentVNode("",!0)]),t.createElementVNode("button",{onClick:A,class:"retry-button"},"重试")])):t.createCommentVNode("",!0),e.deviceSerial?(t.openBlock(),t.createBlock(w,{key:1,class:"fullScreen-box",icon:"FullScreen",circle:"",plain:"",onClick:E})):t.createCommentVNode("",!0)])),[[_,i.value]]),t.createElementVNode("div",et,[t.createVNode(w,{type:"primary",onClick:p},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.value?"播放":"暂停"),1)]),_:1}),t.createVNode(w,{type:"primary",onClick:c[3]||(c[3]=e=>(e=>{if(!a.value)return;let t=a.value.currentWindowIndex;a.value.JS_CapturePicture(t,"img",e).then(()=>{},e=>{})})("JPEG"))},{default:t.withCtx(()=>[t.createTextVNode("抓图")]),_:1}),t.createVNode(w,{type:"primary",onClick:S},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(h.value?"停止录制":"录制"),1)]),_:1}),"live"===s.value&&"1"===e.whetherPanTilt?(t.openBlock(),t.createBlock(w,{key:0,type:"primary"},{default:t.withCtx(()=>[t.createTextVNode("云台控制")]),_:1})):t.createCommentVNode("",!0)])],4)}}},[["__scopeId","data-v-7d1d9d8a"]]),rt=e=>(t.pushScopeId("data-v-91800a3c"),e=e(),t.popScopeId(),e),nt={class:"helmet-player-container"},ot={class:"title-section"},it=rt(()=>t.createElementVNode("div",{class:"title-text"}," 视频监控 ",-1)),at={class:"voice-call-section"},st={class:"voice-call-controls"},lt=rt(()=>t.createElementVNode("span",{class:"voice-label"},"语音通话",-1)),ct={key:0,class:"loading-indicator"},ut={key:1,class:"status-indicator success"},dt=rt(()=>t.createElementVNode("span",null,"通话已连接",-1)),pt={class:"video-container"},ht={__name:"index",props:{deviceId:{type:String,default:"",required:!0},callApi:{type:Function,required:!0},handleStreamingApi:{type:Function,required:!0},queryAdminSipInfoApi:{type:Function,required:!0}},emits:["retry","error"],setup(e,{expose:r,emit:n}){const o=e,s=Promise.resolve().then(()=>Dr),l=t.ref("0"),c=t.ref(""),u=t.ref(!1),d=t.ref(null),p=t.ref(null),h=t.ref(null),f=t.ref(""),v=t.ref(""),m=t.ref(!1),g=t.ref(""),y=t.ref(null);t.onMounted(async()=>{await S()}),t.onBeforeUnmount(()=>{C()});const C=()=>{b(),I(),c.value="",d.value&&(d.value.unregister(),d.value=null)},S=async()=>{var e;try{u.value=!0;const{status:e,play_url:t,msg:r}=await x();if(!e)throw new Error(r);c.value=t[2]}catch(xr){null==(e=y.value)||e.handleError(xr)}finally{u.value=!1}},T=e=>{v.value=e,n("error",{message:e}),a.ElMessage({message:e,type:"error",duration:5e3,showClose:!0})},b=()=>{p.value&&(p.value.terminate(),p.value=null)},w=async()=>{if(!navigator.mediaDevices)throw new Error("您的浏览器不支持音频设备访问或处于不安全环境,无法使用语音通话功能");try{const e=await navigator.mediaDevices.enumerateDevices();if(!e.some(e=>"audioinput"===e.kind))throw new Error("未检测到麦克风设备,请检查设备连接");await navigator.mediaDevices.getUserMedia({video:!1,audio:!0})}catch(xr){throw"NotAllowedError"===xr.name?new Error("请允许访问麦克风权限"):"NotFoundError"===xr.name?new Error("未找到可用的音频设备"):new Error("音频设备访问失败: "+xr.message)}},E=async()=>{h.value||await _(),await N()},A=async()=>{const{status:e,sip_id:t,msg:r}=await o.callApi({deviceId:o.deviceId,v_type:0});if(!e)throw new Error(`呼叫失败:${r}`);t&&(f.value=t),await k()},_=async()=>{const{status:e,admin_info:{sip_info:t},msg:r}=await o.queryAdminSipInfoApi();if(!e)throw new Error(`获取管理员sip_info失败:${r}`);h.value=t},N=()=>new Promise((e,t)=>{const{sip_id:r,sip_host:n,sip_pwd:o,wss_url:i,stun_host:a,turn_host:l,turn_user:c,turn_pwd:u}=h.value,p={uri:`${r}@${n}`,transportOptions:{wsServers:[i],connectionTimeout:30},authorizationUser:r,password:o,sessionDescriptionHandlerFactoryOptions:{peerConnectionOptions:{rtcConfiguration:{iceServers:[{urls:`stun:${a}`},{urls:`turn:${l}`,username:c,credential:u}]}}}};d.value=new s.UA(p),d.value.on("registered",()=>{e()}),d.value.on("registrationFailed",(e,r)=>{t(new Error("SIP注册失败"))})}),k=async()=>{try{p.value=d.value.invite(`${f.value}@${h.value.sip_host}`,{sessionDescriptionHandlerOptions:{constraints:{audio:!0,video:!1}}}),R()}catch(xr){T(xr.message||"设备访问失败,请检查摄像头和麦克风权限")}},R=()=>{p.value.on("accepted",()=>{g.value="connected",a.ElMessage({message:"语音通话连接成功",type:"success",duration:3e3});const e=p.value.sessionDescriptionHandler.peerConnection,t=new MediaStream;e.getReceivers().forEach(e=>{t.addTrack(e.track)})}),p.value.on("failed",(e,t)=>{l.value="0";let r="通话失败";r="Request Timeout"===t?"连接超时,请检查网络连接":"Not Found"===t?"设备离线或不可用":"Busy Here"===t?"设备忙线中":`通话失败: ${t}`,T(r)}),p.value.on("terminated",()=>{g.value="","1"===l.value&&a.ElMessage({message:"通话已断开",type:"info",duration:2e3})})},x=async()=>await o.handleStreamingApi({deviceId:o.deviceId,isPush:1}),I=async()=>await o.handleStreamingApi({deviceId:o.deviceId,isPush:0}),D=()=>{switch(g.value){case"checking":return"正在检查设备权限...";case"initializing":return"正在初始化通话服务...";case"calling":return"正在建立连接...";case"connected":return"连接成功";default:return"正在处理..."}};return t.watch(l,async e=>{"0"===e?(v.value="",g.value="",b()):(async()=>{try{m.value=!0,v.value="",g.value="checking",await w(),g.value="initializing",await E(),g.value="calling",await A(),g.value="connected"}catch(xr){l.value="0",T(xr.message||"视频通话初始化失败")}finally{m.value=!1,g.value=""}})()}),r({retry:()=>{v.value="",g.value="",l.value="1",n("retry")},initVideoMonitor:S,cleanup:C}),(e,r)=>{const n=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",nt,[t.createElementVNode("div",ot,[it,t.createElementVNode("div",at,[t.createElementVNode("div",st,[t.createElementVNode("div",{class:"voice-call-header",onClick:r[0]||(r[0]=()=>{l.value="1"===l.value?"0":"1"})},[t.createVNode(t.unref(a.ElIcon),{class:"voice-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(i.Microphone))]),_:1}),lt]),m.value?(t.openBlock(),t.createElementBlock("div",ct,[t.createVNode(t.unref(a.ElIcon),{class:"loading-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(i.Loading))]),_:1}),t.createElementVNode("span",null,t.toDisplayString(D()),1)])):"1"!==l.value||v.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",ut,[t.createVNode(t.unref(a.ElIcon),{class:"success-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(i.SuccessFilled))]),_:1}),dt]))])])]),t.createElementVNode("div",pt,[t.withDirectives(t.createVNode(Ve,{maxRetries:0,"element-loading-background":"rgba(51, 78, 122, 0.6)","element-loading-text":"正在加载视频流...",ref_key:"flvPlayer",ref:y,src:c.value,autoplay:"",controls:"",onRetry:S},null,8,["src"]),[[n,u.value]])])])}}},ft=A(ht,[["__scopeId","data-v-91800a3c"]]),vt={playerDefaults:{videoQuality:2,videoFormat:"ezopen",template:"simple",autoplay:!0,cacheExpire:72e5,timeout:15e3,maxRetries:3},apiUrl:"https://open.ys7.com/api/lapp"},mt=vt.apiUrl;let gt={accessToken:"",expireTime:0};const yt=new Map,Ct=vt.playerDefaults&&vt.playerDefaults.cacheExpire||72e5;let St=null;const Tt={setGetTokenFunction(e){St=e},getAccessToken:()=>new Promise((e,t)=>{const r=Date.now();return gt.accessToken&&gt.expireTime>r?e(gt.accessToken):St?void St().then(r=>{var n;if(200===r.code&&r.data){const t=r.data;gt.accessToken=t.accessToken,gt.expireTime=Date.now()+1e3*t.expireTime-3e5,e(t.accessToken)}else t(new Error(r.msg||(null==(n=r.data)?void 0:n.msg)||"获取Token失败"))}).catch(e=>{t(e)}):t(new Error("未提供获取Token的函数,请通过 setGetTokenFunction 设置"))}),getLiveAddress(e,t,r=1,n=1,o=null){const i=`${e}_${t}_${r}_${n}`,a=Date.now(),s=yt.get(i);if(s&&s.expireTime>a)return Promise.resolve(s.url);return(o?Promise.resolve(o):this.getAccessToken()).then(o=>{const i=vt.playerDefaults&&vt.playerDefaults.timeout||15e3,a=new URLSearchParams({accessToken:o,deviceSerial:e,quality:r,channelNo:t,protocol:n});return w.default.post(`${mt}/v2/live/address/get?${a.toString()}`,{timeout:i})}).then(e=>{if("200"===e.data.code&&e.data.data){const t=e.data.data.url;return yt.set(i,{url:t,expireTime:a+Ct}),t}throw new Error(e.data.msg||"获取视频地址失败")})},getDeviceInfo(e){return this.getAccessToken().then(t=>{const r=vt.playerDefaults&&vt.playerDefaults.timeout||15e3;return w.default.post(`${mt}/device/info`,{accessToken:t,deviceSerial:e},{timeout:r})}).then(e=>{if("200"===e.data.code&&e.data.data)return e.data.data;throw new Error(e.data.msg||"获取设备信息失败")})},getDeviceList(e=0,t=50){return this.getAccessToken().then(r=>w.default.post(`${mt}/devices/list`,{accessToken:r,pageStart:e,pageSize:t})).then(e=>{if("200"===e.data.code&&e.data.data)return e.data.data;throw new Error(e.data.msg||"获取设备列表失败")})},isDeviceOnline(e){return this.getDeviceInfo(e).then(e=>1===e.status)},getPlaybackAddress(e,t,r,n,o=1,i=1,a=null){const s=`${e}_${t}_${r}_${n}_${i}`,l=Date.now(),c=yt.get(s);if(c&&c.expireTime>l)return Promise.resolve(c.url);return(a?Promise.resolve(a):this.getAccessToken()).then(a=>{const s=vt.playerDefaults&&vt.playerDefaults.timeout||15e3,l=new URLSearchParams({accessToken:a,deviceSerial:e,channelNo:t,startTime:r,endTime:n,protocol:i,quality:o,type:"2"});return w.default.post(`${mt}/v2/live/address/get?${l.toString()}`,{timeout:s})}).then(e=>{if("200"===e.data.code&&e.data.data){const t=e.data.data.url;return yt.set(s,{url:t,expireTime:l+Ct}),t}throw new Error(e.data.msg||"获取回放地址失败")})},generateEZOpenUrl:(e,t=1,r=0,n="",o="")=>0===r?`ezopen://open.ys7.com/${e}/${t}.live`:`ezopen://open.ys7.com/${e}/${t}.rec?begin=${n}&end=${o}`,controlPTZ(e,t=1,r,n=1){return this.getAccessToken().then(o=>{const i=vt.playerDefaults&&vt.playerDefaults.timeout||15e3,a=new URLSearchParams({accessToken:o,deviceSerial:e,channelNo:t,direction:r,speed:n});return w.default.post(`${mt}/device/ptz/start?${a.toString()}`,{timeout:i})}).then(e=>{if("200"===e.data.code)return e.data;throw new Error(e.data.msg||"云台控制失败")})},stopPTZ(e,t=1,r){return this.getAccessToken().then(n=>{const o=vt.playerDefaults&&vt.playerDefaults.timeout||15e3,i=new URLSearchParams({accessToken:n,deviceSerial:e,channelNo:t,direction:r});return w.default.post(`${mt}/device/ptz/stop?${i.toString()}`,{timeout:o})}).then(e=>{if("200"===e.data.code)return e.data;throw new Error(e.data.msg||"停止云台失败")})}};const bt=new class{constructor(){this.players={},this.defaultConfig={template:"simple",autoplay:!0,width:"100%",height:"100%",videoQuality:1,videoFormat:"ezopen"}}async createPlayerConfig(e,t={}){try{const r={...this.defaultConfig,deviceSerial:e,...t};if(!r.deviceSerial)throw new Error("设备序列号(deviceSerial)不能为空");if(1===r.playType){if(!r.startTime||!r.endTime){const e=this.generateDefaultTimeRange();r.startTime=r.startTime||e.startTime,r.endTime=r.endTime||e.endTime}r.videoUrl=await Tt.getPlaybackAddress(r.deviceSerial,r.channelNo||1,r.startTime,r.endTime,r.videoFormat)}else r.videoUrl=await Tt.getLiveAddress(r.deviceSerial,r.channelNo||1,r.videoQuality,r.videoFormat);return r}catch(r){throw r}}async destroyPlayer(e){this.players[e]&&delete this.players[e]}registerPlayer(e,t){this.players[e]=t}getPlayer(e){return this.players[e]||null}async isDeviceAvailable(e){try{return await Tt.isDeviceOnline(e)}catch(t){return!1}}generateDefaultTimeRange(){const e=new Date,t=e=>{const t=e=>String(e).padStart(2,"0");return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())} ${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`};return{startTime:t(new Date(e.getTime()-36e5)),endTime:t(e)}}destroyAllPlayers(){const e=Object.keys(this.players);for(const t of e)this.destroyPlayer(t)}},wt=["id"],Et={key:0,class:"error-message"},At={class:"error-message-text"},_t=A({__name:"index",props:{playerId:{type:String,default:function(){return`player-${Date.now()}-${_e()}`}},deviceSerial:{type:String,required:!0},channelNo:{type:[String,Number],default:1},accessToken:{type:String,default:""},playType:{type:Number,default:0},startTime:{type:String,default:""},endTime:{type:String,default:""},autoPlay:{type:Boolean,default:!0},template:{type:String,default:"simple"},videoQuality:{type:Number,default:2},videoProtocol:{type:[Number,String],default:2},maxRetries:{type:Number,default:0},getYsToken:{type:Function,required:!0}},emits:["play-success","play-error","play-stop","update:playType"],setup(e,{expose:r,emit:n}){const o=e,i=t.ref(null),a=t.ref(!0),s=t.ref(""),l=t.ref(0),c=t.ref(""),u=t.ref(null),d=t.ref(""),p=t.ref(""),h=t.ref(null),f=t.ref(null),v=t.ref(null),m=async()=>{if(s.value="",a.value=!0,o.deviceSerial)try{C();let t="";try{t=await Tt.getAccessToken()}catch(e){return void g(`获取AccessToken失败: ${e.message||"未知错误"}`)}if(0===o.playType)c.value=await Tt.getLiveAddress(o.deviceSerial,o.channelNo,o.videoQuality,o.videoProtocol,t);else{o.startTime&&o.endTime||u.value||(u.value=bt.generateDefaultTimeRange());const e=o.startTime||u.value.startTime,r=o.endTime||u.value.endTime;c.value=await Tt.getPlaybackAddress(o.deviceSerial,o.channelNo,e,r,o.videoQuality,o.videoProtocol,t)}const r={id:o.playerId,url:c.value,accessToken:t,template:o.template,autoplay:o.autoPlay,width:d.value,height:p.value,audio:!1,handleSuccess:()=>{a.value=!1,l.value=0,S(),bt.registerPlayer(o.playerId,{player:i.value,config:r}),n("play-success")},handleError:e=>{g(`播放错误: ${JSON.stringify(e)}`)}};i.value=new b.default.EZUIKitPlayer(r)}catch(e){g(`播放器初始化错误: ${e.message||"未知错误"}`)}else g("设备序列号不能为空")},g=e=>{a.value=!1,s.value=e,n("play-error",{message:e}),l.value<o.maxRetries&&(l.value++,h.value=setTimeout(()=>{y()},3e3))},y=()=>{m()},C=()=>{if(i.value)try{i.value.stopTalk(),i.value.stop(),i.value.destroy()}catch(e){}},S=()=>{i.value&&i.value.closeSound()};return t.watch(()=>o.deviceSerial,()=>{m()}),t.watch(()=>o.channelNo,()=>{m()}),t.watch(()=>o.playType,()=>{m()}),t.watch(()=>o.startTime,()=>{1===o.playType&&m()}),t.watch(()=>o.endTime,()=>{1===o.playType&&m()}),t.watch(()=>o.videoProtocol,()=>{m()}),t.onMounted(()=>{Tt.setGetTokenFunction(o.getYsToken);const e=f.value;e&&(d.value=e.clientWidth,p.value=e.clientHeight),m()}),t.onBeforeUnmount(()=>{h.value&&clearTimeout(h.value),C(),bt.destroyPlayer(o.playerId),n("play-stop")}),r({initPlayer:m,play:()=>{i.value&&i.value.play()},stop:()=>{i.value&&i.value.stop()},pause:()=>{i.value&&i.value.pause()},resume:()=>{i.value&&i.value.resume()},openSound:()=>{i.value&&i.value.openSound()},closeSound:S,startTalk:()=>{i.value&&i.value.startTalk()},stopTalk:()=>{i.value&&i.value.stopTalk()},capturePicture:()=>{i.value&&i.value.capturePicture()},startSave:()=>{i.value&&i.value.startSave()},stopSave:()=>{i.value&&i.value.stopSave()},setPlaybackTimeRange:(e,t)=>{e&&t&&(u.value={startTime:e,endTime:t},1===o.playType&&m())},switchToLive:()=>{0!==o.playType&&(n("update:playType",0),m())},switchToPlayback:(e="",t="")=>{e&&t?u.value={startTime:e,endTime:t}:u.value||(u.value=bt.generateDefaultTimeRange()),1!==o.playType&&(n("update:playType",1),m())},switchQuality:e=>{o.videoQuality!==e&&0===o.playType&&m()},fullScreen:()=>{i.value&&i.value.fullScreen()},controlPTZ:(e,t=1)=>{if(o.deviceSerial)try{Tt.controlPTZ(o.deviceSerial,o.channelNo,e,t).catch(e=>{n("play-error",{message:e})})}catch(r){n("play-error",{message:r})}else n("play-error",{message:"设备序列号不能为空"})},stopPTZ:e=>{if(o.deviceSerial)try{Tt.stopPTZ(o.deviceSerial,o.channelNo,e).catch(e=>{n("play-error",{message:e})})}catch(t){n("play-error",{message:t})}else n("play-error",{message:"设备序列号不能为空"})}}),(r,n)=>{const o=t.resolveComponent("WarningFilled"),i=t.resolveComponent("el-icon");return t.openBlock(),t.createElementBlock("div",{class:"ysy-player-container",ref_key:"playerContainer",ref:f},[t.createElementVNode("div",{ref_key:"playerBox",ref:v,id:e.playerId,class:"player-box"},null,8,wt),s.value?(t.openBlock(),t.createElementBlock("div",Et,[t.createVNode(i,{size:"40",color:"red"},{default:t.withCtx(()=>[t.createVNode(o)]),_:1}),t.createElementVNode("div",At,t.toDisplayString(s.value),1),t.createElementVNode("button",{onClick:y,class:"retry-button"},"重试")])):t.createCommentVNode("",!0)],512)}}},[["__scopeId","data-v-3f60f3e4"]]),Nt=["src"],kt={__name:"index",props:{src:{type:String,required:!0}},setup(e){const r=e,n=ref(document.documentElement.clientHeight-94.5+"px;"),o=ref(!0),i=computed(()=>r.src);return onMounted(()=>{setTimeout(()=>{o.value=!1},300),window.onresize=function(){n.value=document.documentElement.clientHeight-94.5+"px;"}}),(e,r)=>{const a=t.resolveDirective("loading");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle("height:"+t.unref(n))},[t.createElementVNode("iframe",{src:t.unref(i),frameborder:"no",style:{width:"100%",height:"100%"},scrolling:"auto"},null,8,Nt)],4)),[[a,t.unref(o)]])}}},Rt=t.createElementVNode("div",{class:"el-upload__text"},[t.createTextVNode("将文件拖到此处,或"),t.createElementVNode("em",null,"点击上传")],-1),xt={class:"el-upload__tip text-center"},It={key:0,class:"el-upload__tip"},Dt=t.createElementVNode("span",null,"仅允许导入xls、xlsx格式文件。",-1),Ot={class:"dialog-footer"},Mt={__name:"index",props:{title:{type:String,default:""},uploadUrl:{type:String,default:""},templateTitle:{type:String,default:""},templateUrl:{type:String,default:""},dataType:{type:String,default:""},showCheckBox:{type:Boolean,default:!0},headers:{type:Object,default:()=>({})}},emits:["loadSucccess"],setup(e,{expose:r,emit:n}){const o=e,s=t.ref(null),l=t.ref(""),c=t.reactive({open:!1,title:"",isUploading:!1,updateSupport:0,headers:o.headers}),u=t.reactive({}),d=()=>{(()=>{l.value=o.uploadUrl;const e=[`updateSupport=${c.updateSupport}`];o.dataType&&e.push(`dataType=${o.dataType}`),Object.keys(u).length&&Object.keys(u).forEach(t=>{e.push(`${t}=${u[t]}`)}),e.length>0&&(l.value+="?"+e.join("&"))})(),t.nextTick(()=>{s.value.submit()})},p=async()=>{if(o.templateUrl)try{const e=((e,t={})=>{if(!e)return"";try{const r=new URL(e,window.location.origin);return Object.keys(t).forEach(e=>{void 0!==t[e]&&null!==t[e]&&r.searchParams.append(e,t[e])}),r.toString()}catch(xr){const n=Object.keys(t).filter(e=>void 0!==t[e]&&null!==t[e]).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&");return n?e.includes("?")?`${e}&${n}`:`${e}?${n}`:e}})(o.templateUrl,{...u}),t=await fetch(e,{method:"POST",headers:o.headers||{}});if(!t.ok)throw new Error(`下载失败,状态码:${t.status}`);const r=await t.blob(),n=window.URL.createObjectURL(r),i=document.createElement("a");i.style.display="none",i.href=n;const a=`${o.templateTitle||""}导入模板.xlsx`;i.download=a,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(n)}catch(xr){a.ElMessage.error("模板下载失败,请稍后重试")}else a.ElMessage.error("未配置模板下载地址")},h=(e,t,r)=>{c.isUploading=!0},f=(e,t,r)=>{c.open=!1,c.isUploading=!1,s.value.handleRemove(t);let o=e.msg;500==e.code&&null==e.msg&&(o="文件导入失败,请检查导入文件是否正确"),a.ElMessageBox.alert('<div style="overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;">'+o+"</div>","导入结果",{dangerouslyUseHTMLString:!0,confirmButtonText:"确定"}),n("loadSucccess")},v=(e,t,r)=>{c.isUploading=!1,s.value.handleRemove(t),a.ElMessageBox.alert('<div style="overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;">文件导入失败,请重新导入</div>',"导入结果",{dangerouslyUseHTMLString:!0,confirmButtonText:"确定"})},m=()=>{c.open=!1,c.isUploading=!1,s.value.clearFiles()};return r({init:e=>{c.open=!0,e&&Object.assign(u,e)}}),(r,n)=>{const o=t.resolveComponent("el-icon"),a=t.resolveComponent("el-checkbox"),u=t.resolveComponent("el-link"),g=t.resolveComponent("el-upload"),y=t.resolveComponent("el-button"),C=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(C,{title:e.title+"导入",modelValue:c.open,"onUpdate:modelValue":n[2]||(n[2]=e=>c.open=e),width:"400px","append-to-body":"",onClose:m},{footer:t.withCtx(()=>[t.createElementVNode("div",Ot,[t.createVNode(y,{onClick:n[1]||(n[1]=e=>c.open=!1)},{default:t.withCtx(()=>[t.createTextVNode("取 消")]),_:1}),t.createVNode(y,{type:"primary",onClick:d},{default:t.withCtx(()=>[t.createTextVNode("确 定")]),_:1})])]),default:t.withCtx(()=>[t.createVNode(g,{ref_key:"uploadRef",ref:s,limit:1,accept:".xlsx, .xls",headers:c.headers,action:l.value,disabled:c.isUploading,"on-progress":h,"on-success":f,"on-error":v,"auto-upload":!1,drag:""},{tip:t.withCtx(()=>[t.createElementVNode("div",xt,[e.showCheckBox?(t.openBlock(),t.createElementBlock("div",It,[t.createVNode(a,{modelValue:c.updateSupport,"onUpdate:modelValue":n[0]||(n[0]=e=>c.updateSupport=e)},null,8,["modelValue"]),t.createTextVNode(" 是否更新已经存在的数据 ")])):t.createCommentVNode("",!0),Dt,t.createVNode(u,{type:"primary",underline:!1,style:{"font-size":"12px","vertical-align":"baseline"},onClick:p},{default:t.withCtx(()=>[t.createTextVNode(" 下载模板 ")]),_:1})])]),default:t.withCtx(()=>[t.createVNode(o,{class:"el-icon-upload"},{default:t.withCtx(()=>[t.createVNode(t.unref(i.UploadFilled))]),_:1}),Rt]),_:1},8,["headers","action","disabled"])]),_:1},8,["title","modelValue"])}}},Ut={key:0,class:"search-container"},Vt={class:"table-box"},Ht=["onClick"],Pt={slot:"header",class:"clearfix"},zt=(e=>(t.pushScopeId("data-v-42a8ab57"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("span",{style:{"font-weight":"bold"}},"已选列表",-1)),Bt={class:"tag-container"},Lt={class:"tag-name"},qt={class:"dialog-footer"},jt=A({__name:"index",props:{mode:{type:String,default:"ElDialog",validator:e=>["ElDialog","ElDrawer"].includes(e)},width:{type:String,default:"80vw"},height:{type:String,default:"45vh"},select:{type:[Array,Object,String],default:()=>[]},tableColumns:{type:Array,default:()=>[]},value:{type:String,default:""},names:{type:String,default:""},request:{type:Function,required:!0},selectOptions:{type:Object,default:()=>({show:!1,multiple:!0,valueKey:"id",nameKey:"name",reserveSelection:!0})},showPagination:{type:Boolean,default:!0}},emits:["change","update:names","input","update:value","action"],setup(e,{expose:r,emit:n}){const o=e,{isMobile:i}=te(),{proxy:s}=t.getCurrentInstance(),l=t.ref({open:!1,title:""}),c=t.computed(()=>o.tableColumns.filter(e=>e.query)),u=t.reactive({queryParams:{pageNum:1,pageSize:20}}),{queryParams:d}=t.toRefs(u),p=async()=>{var e;await a.ElMessage.warning("您确定要全部删除吗?"),S.value=[],null==(e=v.value)||e.clearSelection()},h=()=>{d.value.pageNum=1,E()},f=()=>{s.$refs.queryFormRef.resetFields(),d.value.pageNum=1,E()},v=t.ref(null),m=t.ref([]),g=t.ref(!1),y=t.ref(!1),C=e=>{if(0===e.columnIndex)return"disabledCheck"},S=t.ref([]),T=e=>{let t="";return o.selectOptions.multiple||(t+=" selected-radio"),t},b=e=>{var t;if(!y.value)if(o.selectOptions.multiple)S.value=e;else{if(e.length>1){let r=e.shift();null==(t=v.value)||t.toggleRowSelection(r,!1)}S.value=e}},w=t.ref(0),E=async()=>{var e,r;try{g.value=!0;let n=await o.request(d.value);if(200!==n.code)return;m.value=null!=(r=null!=(e=null==n?void 0:n.rows)?e:n.data)?r:[],w.value=(null==n?void 0:n.total)||0,await t.nextTick(),N()}catch(xr){m.value=[],w.value=0}finally{g.value=!1}},A=()=>{o.selectOptions.multiple?(n("update:value",S.value.map(e=>e[o.selectOptions.valueKey]).join(",")),n("update:names",S.value.map(e=>e[o.selectOptions.nameKey]).join(",")),n("update:select",S.value),n("change",S.value)):(n("update:value",S.value[0]?String(S.value[0][o.selectOptions.valueKey]):""),n("update:names",S.value[0]?String(S.value[0][o.selectOptions.nameKey]):""),n("update:select",S.value[0]||""),n("change",S.value[0]||"")),_()},_=()=>{l.value.open=!1,S.value=[],s.$refs.queryFormRef.resetFields(),d.value={pageNum:1,pageSize:20}};t.watch(()=>l.value.open,e=>{e?(o.value&&(S.value=String(o.value).split(",").filter(e=>e).map((e,t)=>({[o.selectOptions.valueKey]:e,[o.selectOptions.nameKey]:o.names.split(",")[t]}))),o.select&&(S.value=Array.isArray(o.select)?o.select:[o.select])):S.value=[]});const N=()=>{var e;y.value=!0,S.value.length?m.value.forEach(e=>{var t;const r=S.value.find(t=>String(t[o.selectOptions.valueKey])==String(e[o.selectOptions.valueKey]));null==(t=v.value)||t.toggleRowSelection(e,!!r)}):null==(e=v.value)||e.clearSelection(),y.value=!1};return r({open:({title:e,open:t},r={})=>{l.value.title=e,l.value.open=t,d.value={...d.value,...r},E()}}),(r,a)=>{const s=t.resolveComponent("el-input"),u=t.resolveComponent("el-option"),y=t.resolveComponent("el-select"),k=t.resolveComponent("el-form-item"),R=t.resolveComponent("el-button"),x=t.resolveComponent("el-form"),I=t.resolveComponent("el-card"),D=t.resolveComponent("el-table-column"),O=t.resolveComponent("dict-tag"),M=t.resolveComponent("el-table"),U=t.resolveComponent("el-pagination"),V=t.resolveComponent("el-tag"),H=t.resolveComponent("el-empty"),P=t.resolveDirective("loading");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mode),t.mergeProps({onClose:_,"destroy-on-close":"",modelValue:l.value.open,"onUpdate:modelValue":a[4]||(a[4]=e=>l.value.open=e),title:l.value.title,width:e.width,size:e.width,fullscreen:t.unref(i),"close-on-click-modal":!1,"append-to-body":""},{...r.$attrs}),{footer:t.withCtx(()=>[t.createElementVNode("div",qt,[t.createVNode(R,{size:t.unref(i)?"small":"",onClick:_},{default:t.withCtx(()=>[t.createTextVNode("关 闭")]),_:1},8,["size"]),e.selectOptions.show?(t.openBlock(),t.createBlock(R,{key:0,size:t.unref(i)?"small":"",onClick:A},{default:t.withCtx(()=>[t.createTextVNode("确 定")]),_:1},8,["size"])):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[t.unref(c).length?(t.openBlock(),t.createElementBlock("div",Ut,[t.createVNode(I,{shadow:"hover"},{default:t.withCtx(()=>[t.createVNode(x,{size:t.unref(i)?"small":"",ref:"queryFormRef",model:t.unref(d),inline:!0},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(c),e=>(t.openBlock(),t.createBlock(k,{label:e.label,prop:e.query.queryKey||e.prop,key:e.query.queryKey},{default:t.withCtx(()=>["input"===e.query.type?(t.openBlock(),t.createBlock(s,{key:0,modelValue:t.unref(d)[e.query.queryKey||e.prop],"onUpdate:modelValue":r=>t.unref(d)[e.query.queryKey||e.prop]=r,placeholder:e.query.placeholder||"请输入",clearable:!1!==e.query.clearable,onChange:h,onKeyup:t.withKeys(h,["enter"])},null,8,["modelValue","onUpdate:modelValue","placeholder","clearable","onKeyup"])):"select"===e.query.type?(t.openBlock(),t.createBlock(y,{key:1,onChange:h,clearable:!1!==e.query.clearable,filterable:!1!==e.query.clearable,modelValue:t.unref(d)[e.query.queryKey||e.prop],"onUpdate:modelValue":r=>t.unref(d)[e.query.queryKey||e.prop]=r,placeholder:e.query.placeholder||"请选择"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.query.data,r=>{var n,o,i;return t.openBlock(),t.createBlock(u,{key:r[(null==(n=e.query.optionProps)?void 0:n.value)||"value"],label:r[(null==(o=e.query.optionProps)?void 0:o.label)||"label"],value:r[(null==(i=e.query.optionProps)?void 0:i.value)||"value"]},null,8,["label","value"])}),128))]),_:2},1032,["clearable","filterable","modelValue","onUpdate:modelValue","placeholder"])):(t.openBlock(),t.createBlock(s,{key:2,modelValue:t.unref(d)[e.query.queryKey||e.prop],"onUpdate:modelValue":r=>t.unref(d)[e.query.queryKey||e.prop]=r,placeholder:e.query.placeholder||"请输入",clearable:!1!==e.query.clearable,onChange:h,onKeyup:t.withKeys(h,["enter"])},null,8,["modelValue","onUpdate:modelValue","placeholder","clearable","onKeyup"]))]),_:2},1032,["label","prop"]))),128)),t.createVNode(k,null,{default:t.withCtx(()=>[t.createVNode(R,{onClick:f},{default:t.withCtx(()=>[t.createTextVNode("重置")]),_:1}),t.createVNode(R,{type:"primary",onClick:h},{default:t.withCtx(()=>[t.createTextVNode("查询")]),_:1})]),_:1})]),_:1},8,["size","model"])]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",{style:t.normalizeStyle({height:t.unref(i)?"100%":e.height}),class:t.normalizeClass(["content-box",t.unref(i)&&"content-box-mobile"])},[t.createElementVNode("div",Vt,[t.withDirectives((t.openBlock(),t.createBlock(M,{size:t.unref(i)?"small":"",class:"table-content",ref_key:"tableRef",ref:v,data:m.value,border:"",height:"100%","header-cell-class-name":e.selectOptions.multiple?"":C,onSelectionChange:b,"row-class-name":T,"row-key":e.selectOptions.valueKey},{default:t.withCtx(()=>[e.selectOptions.show?(t.openBlock(),t.createBlock(D,{key:0,"reserve-selection":e.selectOptions.reserveSelection,type:"selection",width:"40",align:"center",fixed:"left"},null,8,["reserve-selection"])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tableColumns,e=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:e.prop},[e.dict?(t.openBlock(),t.createBlock(D,t.mergeProps({key:0},{...e},{align:"center","show-overflow-tooltip":""}),{default:t.withCtx(r=>[t.createVNode(O,{options:e.dict,value:r.row[e.prop]},null,8,["options","value"])]),_:2},1040)):(t.openBlock(),t.createBlock(D,t.mergeProps({key:1},{...e},{align:"center","show-overflow-tooltip":""}),{default:t.withCtx(r=>[t.createElementVNode("span",{onClick:t=>((e,t,r)=>{e&&n("action",t,r)})(e.action,e.prop,r),class:t.normalizeClass({linkStyle:e.action||!1})},t.toDisplayString(e.format?e.format(r.row,r.$index):r.row[e.prop]),11,Ht)]),_:2},1040))],64))),128))]),_:1},8,["size","data","header-cell-class-name","row-key"])),[[P,g.value]]),e.showPagination?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.unref(i)?(t.openBlock(),t.createBlock(U,{key:1,class:"pagination mobile-pagination",background:"",onSizeChange:E,onCurrentChange:E,layout:"total, prev, pager, next",total:w.value,"page-size":t.unref(d).pageSize,"onUpdate:page-size":a[2]||(a[2]=e=>t.unref(d).pageSize=e),"current-page":t.unref(d).pageNum,"onUpdate:current-page":a[3]||(a[3]=e=>t.unref(d).pageNum=e),"pager-count":5,small:""},null,8,["total","page-size","current-page"])):(t.openBlock(),t.createBlock(U,{key:0,class:"pagination",background:"",layout:"sizes, total, prev, pager, next, jumper",total:w.value,"page-size":t.unref(d).pageSize,"onUpdate:page-size":a[0]||(a[0]=e=>t.unref(d).pageSize=e),"current-page":t.unref(d).pageNum,"onUpdate:current-page":a[1]||(a[1]=e=>t.unref(d).pageNum=e),"page-sizes":[10,20,30,40,50],onSizeChange:E,onCurrentChange:E},null,8,["total","page-size","current-page"]))],64)):t.createCommentVNode("",!0)]),e.selectOptions.show?(t.openBlock(),t.createBlock(I,{key:0,class:"tag-card",shadow:"never"},{default:t.withCtx(()=>[t.createElementVNode("div",Pt,[zt,t.createVNode(R,{style:{float:"right",padding:"3px 0"},link:"",onClick:p},{default:t.withCtx(()=>[t.createTextVNode("全部删除")]),_:1})]),t.createElementVNode("div",Bt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(S.value,r=>(t.openBlock(),t.createElementBlock("div",{key:r[e.selectOptions.valueKey]},[t.createVNode(V,{class:"tag-item",onClose:e=>{return t=r,S.value=S.value.filter(e=>e[o.selectOptions.valueKey]!==t[o.selectOptions.valueKey]),void N();var t},closable:""},{default:t.withCtx(()=>[t.createElementVNode("span",Lt,t.toDisplayString(r[e.selectOptions.nameKey]||r[e.selectOptions.valueKey]),1)]),_:2},1032,["onClose"])]))),128)),S.value.length?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(H,{key:0,description:"暂未选择"}))])]),_:1})):t.createCommentVNode("",!0)],6)]),_:1},16,["modelValue","title","width","size","fullscreen"])}}},[["__scopeId","data-v-42a8ab57"]]),Ft={class:"action-container"},Gt={key:0,class:"layer-switch"},Kt={key:1,class:"legendContainer"},$t=A({__name:"index",props:{legendConfig:{type:Array,default:()=>[]},height:{type:String,default:"80vh"},width:{type:String,default:"100%"},staticMarkers:{type:Array,default:()=>[]},dynamicMarkers:{type:Array,default:()=>[]},polylines:{type:Array,default:()=>[]},polygons:{type:Array,default:()=>[]},bezierCurves:{type:Array,default:()=>[]},circles:{type:Array,default:()=>[]},center:{type:[String,Array],default:()=>[116.397428,39.90923]},mapStyle:{type:String,default:()=>"amap://styles/grey"},autoFitView:{type:Boolean,default:!0},changeMapType:{type:Boolean,default:!0},viewMode:{type:String,default:"2D"},amapKey:{type:String,default:"",required:!0}},emits:["loaded","overlay-click","overlay-mouseover","overlay-mouseout"],setup(e,{expose:r,emit:n}){const o=e;t.useCssVars(t=>({c5256a18:e.width,"1325cc8e":e.height}));const i=t.ref(null),a=t.shallowRef(null),s=t.ref([]),c=t.ref(!1),u=t.shallowRef(null);t.shallowRef(null);const d=t.shallowRef(null),p=t.shallowRef([]),h=t.shallowRef([]),f=t.shallowRef([]),v=t.shallowRef([]),m=t.shallowRef([]),g=t.shallowRef([]),y=t.shallowRef([]),C=t.shallowRef([]),S=t.shallowRef(new Map),T=t.shallowRef(new Map),b=t.reactive({currentZoom:10,baseZoom:10,minTextVisibleRadius:30,minTextVisibleArea:2e3,markerMinDistance:20,markerClusterDistance:40,circleDefaultConfig:{strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,fillColor:"#1890ff",fillOpacity:.1,draggable:!1},markerDefaultConfig:{icon:"https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",size:{width:26,height:32}},polylineDefaultConfig:{isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:8,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20},bezierCurveDefaultConfig:{isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:8,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20},polygonDefaultConfig:{fillColor:"#1890ff",strokeColor:"#1890ff",fillOpacity:.1,strokeOpacity:1,strokeWeight:3,strokeStyle:"dashed",strokeDasharray:[10,5],draggable:!1},textLabelDefaultStyle:{"background-color":"rgba(255, 255, 255, 0.8)","border-radius":"4px","box-shadow":"0 2px 6px rgba(0, 0, 0, 0.2)",padding:"4px 8px","text-align":"center","font-size":"12px","font-weight":"bold",color:"#333",border:"1px solid #1890ff"}});t.watch(()=>o.center,e=>{a.value&&e&&x(e)},{deep:!0}),t.watch(()=>o.circles,(e,t)=>{a.value&&(l.isEqual(e,t)||(L(),e&&e.length&&H(e),o.autoFitView&&I()))},{deep:!0}),t.watch(()=>o.staticMarkers,(e,t)=>{a.value&&(l.isEqual(e,t)||(q(),e&&e.length&&U(e),o.autoFitView&&I()))},{deep:!0}),t.watch(()=>o.dynamicMarkers,(e,t)=>{a.value&&(l.isEqual(e,t)||(j(),e&&e.length&&V(e),o.autoFitView&&I()))},{deep:!0}),t.watch(()=>o.polylines,(e,t)=>{a.value&&(l.isEqual(e,t)||(F(),e&&e.length&&P(e),o.autoFitView&&I()))},{deep:!0}),t.watch(()=>o.polygons,(e,t)=>{a.value&&(l.isEqual(e,t)||(G(),e&&e.length&&z(e),o.autoFitView&&I()))},{deep:!0}),t.watch(()=>o.bezierCurves,(e,t)=>{a.value&&(l.isEqual(e,t)||(K(),e&&e.length&&B(e),o.autoFitView&&I()))},{deep:!0});t.onMounted(async()=>{await w(),a.value&&(a.value.on("zoomend",()=>{$()}),a.value.on("moveend",()=>{$()})),U(o.staticMarkers),V(o.dynamicMarkers),P(o.polylines),z(o.polygons),B(o.bezierCurves),H(o.circles),o.legendConfig&&o.legendConfig.length&&D(),I(),n("loaded",a.value)}),t.onBeforeUnmount(()=>{a.value&&(a.value.off("zoomend"),a.value.off("moveend"),d.value&&(a.value.removeControl(d.value),d.value=null),q(),j(),F(),G(),K(),L(),T.value.forEach(e=>{e.clearOverlays()}),T.value.clear(),a.value.destroy(),a.value=null),p.value=[],h.value=[],f.value=[],v.value=[],m.value=[],g.value=[],y.value=[],C.value=[],S.value.clear()});const w=async()=>{try{const e=await E.default.load({key:o.amapKey,version:"2.0",plugins:["AMap.Marker","AMap.Polyline","AMap.Polygon","AMap.BezierCurve","AMap.Circle","AMap.Text","AMap.LabelMarker","AMap.BezierCurveEditor","AMap.TileLayer.Satellite","AMap.ControlBar","AMap.OverlayGroup"]}),t={viewMode:o.viewMode,zoom:15,mapStyle:o.mapStyle,center:A(o.center)||[116.397428,39.90923]};"3D"===o.viewMode&&(t.pitch=45),a.value=new e.Map(i.value,t),u.value=new e.TileLayer.Satellite({zIndex:1}),"3D"===o.viewMode&&(d.value||(d.value=new e.ControlBar({position:{bottom:"120px",zIndex:20}}),a.value.addControl(d.value))),b.currentZoom=a.value.getZoom()}catch(e){}},A=e=>"string"==typeof e&&e.includes(",")?e.split(",").map(Number):e,_=e=>e.map(e=>"string"==typeof e?e.split(",").map(Number):e),N=e=>Object.entries(e).map(([e,t])=>`${e}: ${t}`).join("; "),k=(e,t)=>{const r=(e=>{if(!T.value.has(e)){const t=new AMap.OverlayGroup;T.value.set(e,t)}return T.value.get(e)})(t);r.addOverlay(e)},R=e=>{const t=T.value.get(e);t&&(t.clearOverlays(),T.value.delete(e))},x=e=>{a.value&&a.value.setCenter(A(e))},I=(e=null)=>{if(a.value){const t=[...p.value,...h.value,...f.value,...v.value,...m.value,...g.value];t.length>0&&(e?a.value.setFitView(t,!1,e):a.value.setFitView(t))}},D=()=>{s.value=o.legendConfig.filter(e=>void 0===e.defaultVisible||!0===e.defaultVisible).map(e=>e.value),O(s.value)},O=e=>{S.value.clear(),e.forEach(e=>{S.value.set(e,!0)}),o.legendConfig.map(e=>e.value).forEach(t=>{((e,t)=>{const r=T.value.get(e);r&&(t?r.show():r.hide())})(t,e.includes(t))})},M=e=>{e?(a.value.setMapStyle(null),u.value.setMap(a.value),a.value.setFeatures(["bg"])):(a.value.setMapStyle(o.mapStyle),u.value.setMap(null),a.value.setFeatures(["bg","building","point","road","land","poi"]))},U=e=>{e.forEach(e=>{const{position:t,icon:r,size:o,blink:i,label:s,title:l,textLabelDefaultStyle:c,type:u}=e;if(t){const d=new AMap.Marker({position:A(t),icon:new AMap.Icon({image:r||b.markerDefaultConfig.icon,imageSize:o?new AMap.Size(o.width,o.height):new AMap.Size(b.markerDefaultConfig.size.width,b.markerDefaultConfig.size.height)}),size:o?new AMap.Size(o.width,o.height):new AMap.Size(b.markerDefaultConfig.size.width,b.markerDefaultConfig.size.height),offset:o?new AMap.Pixel(-o.width/2,-o.height):new AMap.Pixel(-b.markerDefaultConfig.size.width/2,-b.markerDefaultConfig.size.height),map:a.value,title:l});i&&d.dom&&d.dom.querySelector(".amap-icon").classList.add("blinking-marker"),s&&d.setLabel({direction:"top",offset:new AMap.Pixel(0,-5),content:`<div title="${s}" style="${N({...b.textLabelDefaultStyle,...c})}" class='info'>${s}</div>`}),d.on("click",()=>{n("overlay-click",{type:"staticMarker",data:e})}),d.originalData=e,p.value.push(d),u&&k(d,u)}})},V=e=>{e.forEach(e=>{const{position:t,icon:r,size:o,blink:i,label:s,title:l,textLabelDefaultStyle:c,type:u}=e;if(t){const d=new AMap.Marker({position:A(t),icon:new AMap.Icon({image:r||b.markerDefaultConfig.icon,imageSize:o?new AMap.Size(o.width,o.height):new AMap.Size(b.markerDefaultConfig.size.width,b.markerDefaultConfig.size.height)}),offset:o?new AMap.Pixel(-o.width/2,-o.height):new AMap.Pixel(-b.markerDefaultConfig.size.width/2,-b.markerDefaultConfig.size.height),size:o?new AMap.Size(o.width,o.height):new AMap.Size(b.markerDefaultConfig.size.width,b.markerDefaultConfig.size.height),map:a.value,title:l});i&&d.dom&&d.dom.querySelector(".amap-icon").classList.add("blinking-marker"),s&&d.setLabel({direction:"top",offset:new AMap.Pixel(0,-5),content:`<div title="${s}" style="${N({...b.textLabelDefaultStyle,...c})}" class='info'>${s}</div>`}),d.on("click",()=>{n("overlay-click",{type:"marker",data:e})}),d.originalData=e,h.value.push(d),u&&k(d,u)}})},H=e=>{e.forEach(e=>{if(e.radius&&e.center){const t=new AMap.Circle({...b.circleDefaultConfig,...e,center:A(e.center),radius:e.radius});a.value.add(t);let r=null;e.label&&(r=new AMap.Text({text:e.label,position:A(e.center),zIndex:1,style:{...b.textLabelDefaultStyle,...e.labelStyle||{}},offset:new AMap.Pixel(0,0),anchor:"center",zooms:[1,20]}),a.value.add(r),y.value.push({instance:r,circleId:`${A(e.center).join(",")}|${e.radius}`,circleInstance:t,radius:e.radius})),t.on("click",()=>{n("overlay-click",{type:"circle",data:e})}),t.on("mouseover",()=>{t.setOptions({strokeOpacity:1,strokeWeight:e.strokeWeight?2*e.strokeWeight:2*b.circleDefaultConfig.strokeWeight}),n("overlay-mouseover",{type:"circle",data:e})}),t.on("mouseout",()=>{t.setOptions({strokeOpacity:e.strokeOpacity||b.circleDefaultConfig.strokeOpacity,strokeWeight:e.strokeWeight||b.circleDefaultConfig.strokeWeight}),n("overlay-mouseout",{type:"circle",data:e})}),t.originalData=e,g.value.push(t),e.type&&(k(t,e.type),r&&k(r,e.type))}})},P=e=>{e.forEach(e=>{if(e.path&&e.path.length){const t=new AMap.Polyline({...b.polylineDefaultConfig,...e,path:_(e.path),map:a.value});t.on("click",()=>{n("overlay-click",{type:"polyline",data:e})}),t.on("mouseover",()=>{t.setOptions({strokeOpacity:1,borderWeight:e.borderWeight?2*e.borderWeight:2*b.polylineDefaultConfig.borderWeight}),n("overlay-mouseover",{type:"polyline",data:e})}),t.on("mouseout",()=>{t.setOptions({strokeOpacity:e.strokeOpacity?e.strokeOpacity:b.polylineDefaultConfig.strokeOpacity,borderWeight:e.borderWeight?e.borderWeight:b.polylineDefaultConfig.borderWeight}),n("overlay-mouseout",{type:"polyline",data:e})}),t.originalData=e,f.value.push(t),e.type&&k(t,e.type)}})},z=e=>{e.forEach(e=>{if(e.path&&e.path.length){const t=new AMap.Polygon({...b.polygonDefaultConfig,...e,path:_(e.path),map:a.value});let r=null;if(e.label){const n=(e=>{if(!e||0===e.length)return[0,0];let t=0,r=0;for(let n=0;n<e.length;n++)t+=e[n][0],r+=e[n][1];return[t/e.length,r/e.length]})(_(e.path));r=new AMap.Text({text:e.label,position:n,zIndex:1,style:{...b.textLabelDefaultStyle,...e.labelStyle||{}},offset:new AMap.Pixel(0,0),anchor:"center",zooms:[1,20]}),a.value.add(r),C.value.push({instance:r,polygonId:_(e.path).join("|"),polygonInstance:t,path:_(e.path)})}t.on("click",()=>{n("overlay-click",{type:"polygon",data:e})}),t.on("mouseover",()=>{t.setOptions({strokeOpacity:1,strokeWeight:e.strokeWeight?2*e.strokeWeight:2*b.polygonDefaultConfig.strokeWeight}),n("overlay-mouseover",{type:"polygon",data:e})}),t.on("mouseout",()=>{t.setOptions({strokeOpacity:e.strokeOpacity?e.strokeOpacity:b.polygonDefaultConfig.strokeOpacity,strokeWeight:e.strokeWeight?e.strokeWeight:b.polygonDefaultConfig.strokeWeight}),n("overlay-mouseout",{type:"polygon",data:e})}),t.originalData=e,v.value.push(t),e.type&&(k(t,e.type),r&&k(r,e.type))}})},B=e=>{e.forEach(e=>{if(e.path&&e.path.length){const r=new AMap.BezierCurve({...b.bezierCurveDefaultConfig,...e,path:(t=e.path,t.map(e=>e.map(e=>"string"==typeof e?Number(e):e))),map:a.value}),o=r.getPath();o&&o.length>0&&setTimeout(()=>{r.setPath(o)},1e3),r.on("click",()=>{n("overlay-click",{type:"bezierCurve",data:e})}),r.on("mouseover",()=>{r.setOptions({strokeOpacity:1,borderWeight:e.borderWeight?2*e.borderWeight:2*b.bezierCurveDefaultConfig.borderWeight}),n("overlay-mouseover",{type:"bezierCurve",data:e})}),r.on("mouseout",()=>{r.setOptions({strokeOpacity:e.strokeOpacity?e.strokeOpacity:b.bezierCurveDefaultConfig.strokeOpacity,borderWeight:e.borderWeight?e.borderWeight:b.bezierCurveDefaultConfig.borderWeight}),n("overlay-mouseout",{type:"bezierCurve",data:e})}),r.originalData=e,m.value.push(r),e.type&&k(r,e.type)}var t})},L=()=>{g.value.forEach(e=>{var t;e.off("click"),e.off("mouseover"),e.off("mouseout");const r=null==(t=e.originalData)?void 0:t.type;r&&R(r),e.setMap(null)}),g.value=[],y.value.forEach(e=>{e.instance.setMap(null)}),y.value=[]},q=()=>{p.value.forEach(e=>{var t;e.off("click"),e._clusterLabel&&(e._clusterLabel.off&&e._clusterLabel.off("click"),e._clusterLabel.setMap(null),e._clusterLabel=null);const r=null==(t=e.originalData)?void 0:t.type;r&&R(r),e.setMap(null)}),p.value=[]},j=()=>{h.value.forEach(e=>{var t;e.off("click"),e._clusterLabel&&(e._clusterLabel.off&&e._clusterLabel.off("click"),e._clusterLabel.setMap(null),e._clusterLabel=null);const r=null==(t=e.originalData)?void 0:t.type;r&&R(r),e.setMap(null)}),h.value=[]},F=()=>{f.value.forEach(e=>{var t;e.off("click"),e.off("mouseover"),e.off("mouseout");const r=null==(t=e.originalData)?void 0:t.type;r&&R(r),e.setMap(null)}),f.value=[]},G=()=>{v.value.forEach(e=>{var t;e.off("click"),e.off("mouseover"),e.off("mouseout");const r=null==(t=e.originalData)?void 0:t.type;r&&R(r),e.setMap(null)}),v.value=[],C.value.forEach(e=>{e.instance.setMap(null)}),C.value=[]},K=()=>{m.value.forEach(e=>{var t;e.off("click"),e.off("mouseover"),e.off("mouseout");const r=null==(t=e.originalData)?void 0:t.type;r&&R(r),e.setMap(null)}),m.value=[]},$=()=>{a.value&&(y.value.forEach(e=>{if(!e.circleInstance||!e.instance||!e.instance.dom)return;const t=e.circleInstance.getCenter(),r=e.radius,n=W(t,r),o=e.instance.dom.getBoundingClientRect().width;e.instance.dom.style.opacity=o>1.5*n?"0":"1"}),C.value.forEach(e=>{if(!e.polygonInstance||!e.instance||!e.instance.dom)return;const t=J(e.path),r=e.instance.dom.offsetWidth*e.instance.dom.offsetHeight;e.instance.dom.style.opacity=r>.3*t?"0":"1"}))},W=(e,t)=>{if(!a.value)return 0;const r=new AMap.LngLat(e.lng,e.lat).offset(t,90),n=a.value.lngLatToContainer(e),o=a.value.lngLatToContainer(r),i=o.x-n.x,s=o.y-n.y;return Math.sqrt(i*i+s*s)},J=e=>{if(!a.value||!e||e.length<3)return 0;const t=e.map(e=>{const t=new AMap.LngLat(e[0],e[1]),r=a.value.lngLatToContainer(t);return[r.x,r.y]});let r=0;for(let n=0,o=t.length-1;n<t.length;o=n++)r+=(t[o][0]+t[n][0])*(t[o][1]-t[n][1]);return Math.abs(r/2)};return r({fitView:I,updateCenter:x,handleLayerChange:M}),(r,n)=>{const o=t.resolveComponent("el-switch"),a=t.resolveComponent("el-checkbox"),l=t.resolveComponent("el-checkbox-group");return t.openBlock(),t.createElementBlock("div",{class:"mapViewContainer",id:"mapContainer",ref_key:"mapContainer",ref:i},[t.createElementVNode("div",Ft,[e.changeMapType?(t.openBlock(),t.createElementBlock("div",Gt,[t.createVNode(o,{modelValue:c.value,"onUpdate:modelValue":n[0]||(n[0]=e=>c.value=e),"active-text":"卫星图","inactive-text":"标准图",onChange:M},null,8,["modelValue"])])):t.createCommentVNode("",!0),e.legendConfig.length?(t.openBlock(),t.createElementBlock("div",Kt,[t.createVNode(l,{modelValue:s.value,"onUpdate:modelValue":n[1]||(n[1]=e=>s.value=e),onChange:O},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.legendConfig,e=>(t.openBlock(),t.createBlock(a,{key:e.value,label:e.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0)])],512)}}},[["__scopeId","data-v-24729613"]]),Wt={key:0,class:"btn-container"},Jt={class:"help-button-container"},Yt={key:0,class:"layer-switch"},Qt={class:"search-container"},Zt={class:"place-suggestion-item"},Xt={class:"name"},er={class:"address"},tr={class:"search-container"},rr={class:"delete-buttons"},nr={key:0},or={key:0},ir={class:"dialog-footer"},ar=(e=>(t.pushScopeId("data-v-d89fd5ba"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"operation-guide"},[t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"开始绘制:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,"在右侧选择绘制类型(多边形/圆形/折线等)"),t.createElementVNode("li",null,"选择后在地图上进行绘制操作"),t.createElementVNode("li",null,"点位:点击地图放置标记点"),t.createElementVNode("li",null,"折线/多边形:依次点击多个点完成绘制,鼠标右键结束"),t.createElementVNode("li",null,"圆形:长按鼠标左键拖动绘制圆形")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"编辑、拖拽覆盖物:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,[t.createElementVNode("strong",null,"左键双击"),t.createTextVNode("覆盖物(点除外)进入编辑模式")]),t.createElementVNode("li",null,"非圆形覆盖物支持直接拖拽移动"),t.createElementVNode("li",null,"进入编辑后拖拽控制点调整形状和位置"),t.createElementVNode("li",null,"编辑完成后右键地图空白处取消编辑")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"删除覆盖物:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,[t.createElementVNode("strong",null,"右键点击"),t.createTextVNode("覆盖物可删除单个图形")]),t.createElementVNode("li",null,"使用右侧批量操作按钮删除指定类型的所有图形"),t.createElementVNode("li",null,"使用清除所有按钮删除地图上的所有图形")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"其他功能:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,"使用地点搜索快速定位到指定位置"),t.createElementVNode("li",null,"切换卫星图/标准图查看不同地图样式"),t.createElementVNode("li",null,'绘制完成后点击"确认"保存,点击"取消"放弃修改')])])],-1)),sr={class:"dialog-footer"},lr={__name:"index",props:{title:{type:String,default:"地图绘制"},allowedTypes:{type:Array,default:()=>["point","polyline","polygon","circle","bezierCurve"],validator:e=>e.every(e=>["point","polyline","polygon","circle","bezierCurve"].includes(e))},width:{type:String,default:"80vw"},height:{type:String,default:"60vh"},mapStyle:{type:String,default:()=>"amap://styles/normal"},markers:{type:[Array,String],default:()=>[]},markerConfig:{type:Object,default:()=>({})},circles:{type:[Array,String],default:()=>[]},circleConfig:{type:Object,default:()=>({})},polylines:{type:[Array,String],default:()=>[]},polylineConfig:{type:Object,default:()=>({})},polygons:{type:[Array,String],default:()=>[]},polygonConfig:{type:Object,default:()=>({})},bezierCurves:{type:[Array,String],default:()=>[]},bezierCurveConfig:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},multiple:{type:[Boolean,Array],default:!0,validator:e=>"boolean"==typeof e||!!Array.isArray(e)&&e.every(e=>["point","polyline","polygon","circle","bezierCurve"].includes(e))},isShowDefaultTriggerBtn:{type:Boolean,default:!0},formatJson:{type:Boolean,default:!0},center:{type:[String,Array,null],default:null},mapZoom:{type:Number,default:13},changeMapType:{type:Boolean,default:!0},amapKey:{type:String,default:"",required:!0}},emits:["update:markers","update:polylines","update:polygons","update:bezierCurves","update:circles"],setup(e,{expose:r,emit:n}){const o=e,{isMobile:s}=te(),l=t.computed({get:()=>Array.isArray(o.markers)?o.markers:Ne(o.markers)?JSON.parse(o.markers):"string"==typeof o.markers&&o.markers?[o.markers]:[],set(e){n("update:markers",e)}}),c=t.computed({get(){if(o.polylines){let e=Ne(o.polylines)?JSON.parse(o.polylines):o.polylines;return Array.isArray(e)&&e.some(e=>Ne(e))&&(e=e.map(e=>Ne(e)?JSON.parse(e):e)),Array.isArray(e)&&1===ke(e)?e.length?[e]:[]:Array.isArray(e)&&ke(e)>1?e:[]}return[]},set(e){n("update:polylines",e)}}),u=t.computed({get(){if(o.polygons){let e=Ne(o.polygons)?JSON.parse(o.polygons):o.polygons;return Array.isArray(e)&&e.some(e=>Ne(e))&&(e=e.map(e=>Ne(e)?JSON.parse(e):e)),Array.isArray(e)&&1===ke(e)?e.length?[e]:[]:Array.isArray(e)&&ke(e)>1?e:[]}return[]},set(e){n("update:polygons",e)}}),d=t.computed({get(){if(o.bezierCurves){let e=Ne(o.bezierCurves)?JSON.parse(o.polbezierCurvesylines):o.bezierCurves;return Array.isArray(e)&&e.some(e=>Ne(e))&&(e=e.map(e=>Ne(e)?JSON.parse(e):e)),Array.isArray(e)&&1===ke(e)?e.length?[e]:[]:Array.isArray(e)&&ke(e)>1?e:[]}return[]},set(e){n("update:bezierCurves",e)}}),p=t.computed({get(){if(o.circles){let e=Ne(o.circles)?JSON.parse(o.circles):o.circles;return Array.isArray(e)&&e.some(e=>Ne(e))&&(e=e.map(e=>Ne(e)?JSON.parse(e):e)),Array.isArray(e)?e:"[object Object]"===Object.prototype.toString.call(e)?[e]:[]}return[]},set(e){n("update:circles",e)}}),h=t.ref(null),f=t.ref(!1),v=t.ref(!1),m=t.ref(!1),g=t.ref(""),y=t.ref(!1),C=t.ref(!1),S=t.shallowRef(null),T=t.shallowRef(null),b=t.ref([]),w=t.ref([]),A=t.ref([]),_=t.ref([]),N=t.ref([]),k=t.ref(null),R=t.ref(null),x=t.ref(null),I=t.ref(null),D=t.ref(null),O=t.ref(null),M=t.ref(""),U=t.ref(""),V=t.ref(null),H=t.reactive({icon:"https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",size:{width:26,height:32}}),P=t.reactive({isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:5,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20}),z=t.reactive({isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20}),B=t.reactive({fillColor:"#1890ff",strokeColor:"#1890ff",fillOpacity:.1,strokeOpacity:1,strokeWeight:3,strokeStyle:"dashed",strokeDasharray:[10,5],draggable:!1}),L=t.reactive({strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,fillColor:"#1890ff",fillOpacity:.1,zIndex:10,draggable:!1});t.onBeforeUnmount(()=>{S.value&&(S.value.destroy(),S.value=null)});const q=e=>"boolean"==typeof o.multiple?o.multiple:!Array.isArray(o.multiple)||o.multiple.includes(e),j=()=>{y.value=!0,t.nextTick(()=>{F()})},F=async()=>{try{v.value=!0;const t=await E.default.load({key:o.amapKey,version:"2.0",plugins:["AMap.MouseTool","AMap.PolyEditor","AMap.PolygonEditor","AMap.CircleEditor","AMap.BezierCurveEditor","AMap.Geolocation","AMap.PlaceSearch"]}),r={zoom:o.mapZoom,mapStyle:o.mapStyle};o.center&&(r.center="string"==typeof(e=o.center)?e.split(",").map(Number):e),S.value=new t.Map(V.value,r),h.value=new t.TileLayer.Satellite({zIndex:1});const n=new t.Geolocation({enableHighAccuracy:!0,timeout:1e4,zoomToAccuracy:!0,buttonPosition:"RB"});S.value.addControl(n),o.disabled||(T.value=new t.MouseTool(S.value),T.value.on("draw",W)),S.value.on("rightclick",Z),document.addEventListener("contextmenu",e=>{e.preventDefault()}),O.value=new t.PlaceSearch({pageSize:10,pageIndex:1,city:"",citylimit:!1,autoFitView:!0}),o.center?(K(),v.value=!1):n.getCurrentPosition((e,t)=>{"complete"===e?S.value&&S.value.setCenter([t.position.lng,t.position.lat]):S.value&&S.value.setCenter([116.397428,39.90923]),K(),v.value=!1})}catch(t){v.value=!1}var e},G=(e,t)=>{"circle"!==e&&(t.setDraggable(!0),t.on("mousedown",e=>{"circle"===g.value&&t.setDraggable(!1)}),t.on("mouseup",e=>{t.setDraggable(!0)}),t.on("dragend",r=>{"marker"===e&&Y(t),"polyline"===e&&se(t),"polygon"===e&&le(t),"bezierCurve"===e&&ce(t)})),t.on("rightclick",()=>{Z(t)}),"marker"!==e&&t.on("dblclick",e=>{setTimeout(()=>{T.value&&T.value.close()}),X(t)})},K=()=>{if(!S.value)return;const e=window.AMap;b.value=[],w.value=[],A.value=[],_.value=[],N.value=[],l.value.forEach(t=>{const[r,n]=t.split(",").map(Number),{size:i,icon:a}=o.markerConfig,s=new e.Marker({position:[r,n],icon:new e.Icon({image:a||H.icon,imageSize:i?new e.Size(i.width,i.height):new e.Size(H.size.width,H.size.height)}),offset:i?new e.Pixel(-i.width/2,-i.height):new e.Pixel(-H.size.width/2,-H.size.height),size:i?new e.Size(i.width,i.height):new e.Size(H.size.width,H.size.height),map:S.value});G("marker",s),b.value.push({obj:s,position:t,type:"marker"})}),c.value.forEach(t=>{const r=t.map(t=>{const[r,n]=t.split(",").map(Number);return new e.LngLat(r,n)}),n=new e.Polyline({path:r,map:S.value,...P,...o.polylineConfig});G("polyline",n),w.value.push({obj:n,path:t,type:"polyline"})}),u.value.forEach(t=>{const r=t.map(t=>{const[r,n]=t.split(",").map(Number);return new e.LngLat(r,n)}),n=new e.Polygon({path:r,map:S.value,...B,...o.polygonConfig});G("polygon",n),A.value.push({obj:n,path:t,type:"polygon"})}),d.value.forEach(t=>{const r=t.map(e=>e.map(e=>Number(e))),n=new e.BezierCurve({path:r,map:S.value,...z,...o.bezierCurveConfig});G("bezierCurve",n),_.value.push({obj:n,path:t,type:"bezierCurve"})}),p.value.forEach(t=>{const{center:r,radius:n}=t,[i,a]=r.split(",").map(Number),s=new e.Circle({center:[i,a],radius:n,...L,...o.circleConfig});S.value.add(s),G("circle",s),N.value.push({obj:s,center:r,radius:n,type:"circle"})});const t=[...b.value.map(e=>e.obj),...w.value.map(e=>e.obj),...A.value.map(e=>e.obj),..._.value.map(e=>e.obj),...N.value.map(e=>e.obj)];t.length>0&&S.value.setFitView(t)},$=e=>{if(T.value&&!o.disabled)switch(D.value&&ae(),e){case"point":const{size:e,icon:t}=o.markerConfig;T.value.marker({icon:new AMap.Icon({image:t||H.icon,imageSize:e?new AMap.Size(e.width,e.height):new AMap.Size(H.size.width,H.size.height)}),offset:e?new AMap.Pixel(-e.width/2,-e.height):new AMap.Pixel(-H.size.width/2,-H.size.height),size:e?new AMap.Size(e.width,e.height):new AMap.Size(H.size.width,H.size.height)});break;case"polyline":case"bezierCurve":T.value.polyline({...P,...o.polylineConfig});break;case"polygon":T.value.polygon({...B,...o.polygonConfig});break;case"circle":T.value.circle({...L,...o.circleConfig})}},W=e=>{if(m.value=!0,o.disabled)return;const{obj:t}=e;if(t instanceof AMap.Marker&&!q("point")?Ce():t instanceof AMap.Polyline&&"bezierCurve"!==g.value&&!q("polyline")?Se():t instanceof AMap.Polygon&&!q("polygon")?Te():(t instanceof AMap.BezierCurve||t instanceof AMap.Polyline&&"bezierCurve"===g.value)&&!q("bezierCurve")?be():t instanceof AMap.Circle&&!q("circle")&&t._opts.radius&&we(),t instanceof AMap.Marker){const e=t.getPosition(),r={obj:t,position:`${e.lng},${e.lat}`,type:"marker"};b.value.push(r),G("marker",t)}else if(t instanceof AMap.Polyline)if("bezierCurve"===g.value)J(t);else{const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>1?(w.value.push({obj:t,path:e,type:"polyline"}),G("polyline",t)):t.setMap(null)}else if(t instanceof AMap.Polygon){const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>2?(A.value.push({obj:t,path:e,type:"polygon"}),G("polygon",t)):t.setMap(null)}else if(t instanceof AMap.BezierCurve){const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>2?(_.value.push({obj:t,path:e,type:"bezierCurve"}),G("bezierCurve",t)):t.setMap(null)}else if(t instanceof AMap.Circle){const e=t.getCenter(),r=t.getRadius();e&&r>0?(N.value.push({obj:t,center:`${e.lng},${e.lat}`,radius:r,type:"circle"}),G("circle",t)):t.setMap(null)}setTimeout(()=>{m.value=!1},100)},J=e=>{const t=e.getPath();if(t.length<2)return void e.setMap(null);e.setMap(null);const r=[];r.push([t[0].lng,t[0].lat]);for(let o=1;o<t.length;o++){const e=t[o-1],n=t[o],i=e.lng+.3*(n.lng-e.lng),a=e.lat+.3*(n.lat-e.lat);r.push([i,a,n.lng,n.lat])}const n=new AMap.BezierCurve({path:r,...z,...o.bezierCurveConfig,map:S.value});Q(n),_.value.push({obj:n,path:r}),G("bezierCurve",n)},Y=e=>{if(o.disabled)return;const t=e.getPosition(),r=b.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==r&&(b.value[r].position=`${t.lng},${t.lat}`)},Q=e=>{o.disabled||(x.value&&x.value.close(),x.value=new AMap.BezierCurveEditor(S.value,e),x.value.open(),D.value=e)},Z=e=>{setTimeout(()=>{o.disabled||m.value||(e instanceof AMap.Marker?ee(e):e instanceof AMap.Polyline?re(e):e instanceof AMap.Polygon?ne(e):e instanceof AMap.BezierCurve?oe(e):e instanceof AMap.Circle?ie(e):(ae(),g.value&&$(g.value)))},50)},X=e=>{var t,r,n;o.disabled||D.value!==e&&(D.value&&ae(),e instanceof AMap.Polyline?(n=e,o.disabled||(k.value&&k.value.close(),k.value=new AMap.PolyEditor(S.value,n),k.value.open(),D.value=n)):e instanceof AMap.Polygon?(r=e,o.disabled||(R.value&&R.value.close(),R.value=new AMap.PolygonEditor(S.value,r),R.value.open(),D.value=r)):e instanceof AMap.BezierCurve?Q(e):e instanceof AMap.Circle&&(t=e,o.disabled||(I.value&&I.value.close(),I.value=new AMap.CircleEditor(S.value,t),I.value.open(),D.value=t)))},ee=e=>{o.disabled||me("single",{type:"marker",instance:e})},re=e=>{o.disabled||me("single",{type:"polyline",instance:e})},ne=e=>{o.disabled||me("single",{type:"polygon",instance:e})},oe=e=>{o.disabled||me("single",{type:"bezierCurve",instance:e})},ie=e=>{o.disabled||me("single",{type:"circle",instance:e})},ae=()=>{o.disabled||(k.value&&D.value instanceof AMap.Polyline&&(se(),k.value.close()),R.value&&D.value instanceof AMap.Polygon&&(le(),R.value.close()),x.value&&D.value instanceof AMap.BezierCurve&&(ce(),x.value.close()),I.value&&D.value instanceof AMap.Circle&&(ue(),I.value.close()),D.value=null)},se=(e=null)=>{const t=null!=e?e:k.value.getTarget();let r=t.getPath();ke(r)>1&&(r=r[0],t.setPath(r));const n=r.map(e=>`${e.lng},${e.lat}`),o=w.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==o&&(w.value[o].path=n)},le=(e=null)=>{const t=null!=e?e:R.value.getTarget(),r=t.getPath().map(e=>`${e.lng},${e.lat}`),n=A.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==n&&(A.value[n].path=r)},ce=(e=null)=>{const t=null!=e?e:x.value.getTarget(),r=t.getPath(),n=[];try{if(r&&r.length>0){r[0].getLng&&r[0].getLat?n.push([r[0].getLng(),r[0].getLat()]):Array.isArray(r[0])&&(Array.isArray(r[0][0])?n.push(r[0][0]):n.push(r[0]));for(let e=1;e<r.length;e++){const t=r[e];if(Array.isArray(t)&&t.length>=2){const e=[];for(let r=0;r<t.length;r++){const n=t[r];n&&n.getLng&&n.getLat?(e.push(n.getLng()),e.push(n.getLat())):Array.isArray(n)&&n.length>=2?(e.push(n[0]),e.push(n[1])):"number"==typeof n&&e.push(n)}e.length>0&&n.push(e)}}}const e=_.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==e&&(_.value[e].path=n)}catch(o){}},ue=(e=null)=>{const t=null!=e?e:I.value.getTarget(),r=t.getCenter(),n=t.getRadius(),o=N.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==o&&(N.value[o].center=`${r.lng},${r.lat}`,N.value[o].radius=n)},de=()=>{var e,t,r,n,i;o.disabled||(ae(),q("point")?l.value=b.value.map(e=>({path:"string"==typeof e.position?e.position:o.formatJson?JSON.stringify(e.position):e.position,type:e.type})):l.value=null!=(e=b.value.map(e=>({path:"string"==typeof e.position?e.position:o.formatJson?JSON.stringify(e.position):e.position,type:e.type}))[0])?e:"",q("polyline")?c.value=w.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type})):c.value=null!=(t=w.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type}))[0])?t:"",q("polygon")?u.value=A.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type})):u.value=null!=(r=A.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type}))[0])?r:"",q("bezierCurve")?d.value=_.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type})):d.value=null!=(n=_.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type}))[0])?n:"",q("circle")?p.value=N.value.map(e=>({path:o.formatJson?JSON.stringify({center:e.center,radius:e.radius}):{center:e.center,radius:e.radius},type:e.type})):p.value=null!=(i=N.value.map(e=>({path:o.formatJson?JSON.stringify({center:e.center,radius:e.radius}):{center:e.center,radius:e.radius},type:e.type}))[0])?i:"",pe())},pe=()=>{y.value=!1,f.value=!1,M.value="",U.value="",g.value="",b.value=[],w.value=[],A.value=[],_.value=[],N.value=[],T.value&&(T.value.off("draw",W),T.value.close()),k.value&&k.value.close(),R.value&&R.value.close(),x.value&&x.value.close(),I.value&&I.value.close(),S.value&&(S.value.off("rightclick",Z),S.value.destroy(),S.value=null)},he=e=>({point:"绘制点",polyline:"绘制折线",polygon:"绘制多边形",circle:"绘制圆",bezierCurve:"绘制曲线"}[e]||e),fe=e=>{switch(e){case"point":return b.value.length;case"polyline":return w.value.length;case"polygon":return A.value.length;case"bezierCurve":return _.value.length;case"circle":return N.value.length;default:return 0}},ve=()=>b.value.length+w.value.length+A.value.length+_.value.length+N.value.length,me=async(e,t)=>{try{let r="";if("all"===e)r=`确定要删除所有图形吗?这将清除地图上的所有 ${ve()} 个图形。`;else if("type"===e){const e=he(t).replace("绘制","");r=`确定要删除所有${e}吗?这将清除地图上的所有 ${fe(t)} 个${e}。`}else if("single"===e){let e="";switch(t.type){case"marker":e="点";break;case"polyline":e="折线";break;case"polygon":e="多边形";break;case"bezierCurve":e="曲线";break;case"circle":e="圆形"}r=`确定要删除这个${e}吗?`}if(await a.ElMessageBox.confirm(r,"删除确认"),"all"===e)ge();else if("type"===e)ye(t);else if("single"===e)switch(t.type){case"marker":(e=>{e.setMap(null);const t=b.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&b.value.splice(t,1)})(t.instance);break;case"polyline":(e=>{e.setMap(null);const t=w.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&w.value.splice(t,1)})(t.instance);break;case"polygon":(e=>{e.setMap(null);const t=A.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&A.value.splice(t,1)})(t.instance);break;case"bezierCurve":(e=>{e.setMap(null);const t=_.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&_.value.splice(t,1)})(t.instance);break;case"circle":(e=>{e.setMap(null);const t=N.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&N.value.splice(t,1)})(t.instance)}}catch(r){}},ge=()=>{o.disabled||(ae(),Ce(),Se(),Te(),be(),we(),$(g.value))},ye=e=>{if(!o.disabled){switch(ae(),e){case"point":Ce();break;case"polyline":Se();break;case"polygon":Te();break;case"bezierCurve":be();break;case"circle":we()}$(g.value)}},Ce=()=>{o.disabled||(b.value.forEach(e=>{e.obj.setMap(null)}),b.value=[])},Se=()=>{o.disabled||(w.value.forEach(e=>{e.obj.setMap(null)}),w.value=[])},Te=()=>{o.disabled||(A.value.forEach(e=>{e.obj.setMap(null)}),A.value=[])},be=()=>{o.disabled||(_.value.forEach(e=>{e.obj.setMap(null)}),_.value=[])},we=()=>{o.disabled||(N.value.forEach(e=>{e.obj.setMap(null)}),N.value=[])},Ee=(e,t)=>{0!==e.length?O.value.search(e,(e,r)=>{if("complete"===e&&"OK"===r.info){const e=r.poiList.pois.map(e=>({name:e.name,address:e.address,location:e.location}));t(e)}else t([])}):t([])},Ae=e=>{let t=(e=>{const t=e.split(",");return 2===t.length&&Re(t[0],t[1])})(e);if(!t)return void a.ElMessage.error("经纬度格式错误,请输入如:103.98673,30.584973 格式,小数位数不超过15位");const r=e.split(",");new AMap.InfoWindow({content:`<div><p>${e}</p></div>`,offset:new AMap.Pixel(0,-30),autoMove:!1,closeWhenClickMap:!0}).open(S.value,r),S.value.setZoomAndCenter(20,r),U.value=""},_e=e=>{if(e&&e.location){new AMap.InfoWindow({content:`<div><h4>${e.name}</h4><p>${e.address||"暂无地址信息"}</p></div>`,offset:new AMap.Pixel(0,-30),autoMove:!1,closeWhenClickMap:!0}).open(S.value,[e.location.lng,e.location.lat]),S.value.setZoomAndCenter(20,[e.location.lng,e.location.lat])}},xe=e=>{e?(S.value.setMapStyle(null),h.value.setMap(S.value),S.value.setFeatures(["bg"])):(S.value.setMapStyle(o.mapStyle),h.value.setMap(null),S.value.setFeatures(["bg","building","point","road","land","poi"]))};return r({openDialog:j}),(r,n)=>{const o=t.resolveComponent("el-button"),a=t.resolveComponent("el-switch"),l=t.resolveComponent("el-divider"),c=t.resolveComponent("el-autocomplete"),u=t.resolveComponent("el-input"),d=t.resolveComponent("el-radio"),p=t.resolveComponent("el-radio-group"),h=t.resolveComponent("el-card"),m=t.resolveComponent("el-dialog"),S=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",null,[t.renderSlot(r.$slots,"trigger",{openDialog:j},()=>[e.isShowDefaultTriggerBtn?(t.openBlock(),t.createBlock(o,{key:0,onClick:j},{default:t.withCtx(()=>[t.createTextVNode("打开绘制弹窗")]),_:1})):t.createCommentVNode("",!0)],!0),t.createVNode(m,{title:e.title,"append-to-body":"",modelValue:y.value,"onUpdate:modelValue":n[6]||(n[6]=e=>y.value=e),width:e.width,onClose:pe,class:"map-drawing-dialog"},{footer:t.withCtx(()=>[t.createElementVNode("span",ir,[t.createVNode(o,{onClick:pe},{default:t.withCtx(()=>[t.createTextVNode("取消")]),_:1}),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(o,{key:0,type:"primary",onClick:de},{default:t.withCtx(()=>[t.createTextVNode("确认")]),_:1}))])]),default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":"系统定位中,请稍后...",class:t.normalizeClass(["draw-container",t.unref(s)&&"draw-container-mobile"]),style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:"map-container",ref_key:"mapContainer",ref:V},null,512),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Wt,[t.createVNode(h,{shadow:"never"},{default:t.withCtx(()=>[t.createElementVNode("div",Jt,[t.createVNode(o,{type:"primary",icon:t.unref(i.QuestionFilled),onClick:n[0]||(n[0]=e=>C.value=!0),class:"help-button"},{default:t.withCtx(()=>[t.createTextVNode(" 操作说明 ")]),_:1},8,["icon"])]),e.changeMapType&&!t.unref(s)?(t.openBlock(),t.createElementBlock("div",Yt,[t.createVNode(a,{modelValue:f.value,"onUpdate:modelValue":n[1]||(n[1]=e=>f.value=e),"active-text":"卫星图","inactive-text":"标准图",onChange:xe},null,8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:1,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("地点搜索")]),_:1})),t.createElementVNode("div",Qt,[t.createVNode(c,{modelValue:M.value,"onUpdate:modelValue":n[2]||(n[2]=e=>M.value=e),"fetch-suggestions":Ee,placeholder:"搜索地点",onSelect:_e,"trigger-on-focus":!1,class:"place-search-input"},{default:t.withCtx(({item:e})=>[t.createElementVNode("div",Zt,[t.createElementVNode("div",Xt,t.toDisplayString(e.name),1),t.createElementVNode("div",er,t.toDisplayString(e.address),1)])]),_:1},8,["modelValue"])]),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:2,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("经纬度搜索")]),_:1})),t.createElementVNode("div",tr,[t.createVNode(u,{modelValue:U.value,"onUpdate:modelValue":n[3]||(n[3]=e=>U.value=e),onChange:Ae,style:{width:"100%"},placeholder:"请输入GCJ-02坐标系经纬度"},null,8,["modelValue"])]),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:3,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("绘制按钮")]),_:1})),t.createVNode(p,{onChange:$,modelValue:g.value,"onUpdate:modelValue":n[4]||(n[4]=e=>g.value=e)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allowedTypes,e=>(t.openBlock(),t.createBlock(d,{key:e,onClick:t.withModifiers(t=>(e=>{e===g.value?g.value="":g.value=e,g.value?$(g.value):T.value&&T.value.close()})(e),["prevent"]),label:e,border:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(he(e)),1)]),_:2},1032,["onClick","label"]))),128))]),_:1},8,["modelValue"]),t.createElementVNode("div",rr,[t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("批量操作")]),_:1})),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allowedTypes,e=>(t.openBlock(),t.createBlock(o,{key:`delete-${e}`,size:"small",type:"danger",onClick:t=>me("type",e),disabled:0===fe(e)},{default:t.withCtx(()=>[t.createTextVNode(" 删除所有"+t.toDisplayString(he(e))+" ",1),fe(e)>0?(t.openBlock(),t.createElementBlock("span",nr,"("+t.toDisplayString(fe(e))+")",1)):t.createCommentVNode("",!0)]),_:2},1032,["onClick","disabled"]))),128)),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:1,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("全局操作")]),_:1})),t.createVNode(o,{size:"small",type:"danger",onClick:n[5]||(n[5]=e=>me("all")),disabled:0===ve()},{default:t.withCtx(()=>[t.createTextVNode(" 清除所有图形 "),ve()>0?(t.openBlock(),t.createElementBlock("span",or,"("+t.toDisplayString(ve())+")",1)):t.createCommentVNode("",!0)]),_:1},8,["disabled"])])]),_:1})]))],6)),[[S,v.value]])]),_:1},8,["title","modelValue","width"]),t.createVNode(m,{title:"操作说明",modelValue:C.value,"onUpdate:modelValue":n[8]||(n[8]=e=>C.value=e),width:"600px","append-to-body":""},{footer:t.withCtx(()=>[t.createElementVNode("span",sr,[t.createVNode(o,{type:"primary",onClick:n[7]||(n[7]=e=>C.value=!1)},{default:t.withCtx(()=>[t.createTextVNode("我知道了")]),_:1})])]),default:t.withCtx(()=>[ar]),_:1},8,["modelValue"])])}}},cr=A(lr,[["__scopeId","data-v-d89fd5ba"]]),ur={key:0,class:"btn-container"},dr={class:"help-button-container"},pr={key:0,class:"layer-switch"},hr={class:"search-container"},fr={class:"place-suggestion-item"},vr={class:"name"},mr={class:"address"},gr={class:"search-container"},yr={class:"delete-buttons"},Cr={key:0},Sr={key:0},Tr={class:"dialog-footer"},br=(e=>(t.pushScopeId("data-v-6b8c3e46"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"operation-guide"},[t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"开始绘制:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,"先在右侧选择业务类型(如项目点位、项目工区等)"),t.createElementVNode("li",null,"根据业务提示选择可用的绘制方式"),t.createElementVNode("li",null,"点位:点击地图放置标记点"),t.createElementVNode("li",null,"折线/多边形:依次点击多个点完成绘制,鼠标右键结束"),t.createElementVNode("li",null,"圆形:长按鼠标左键拖动绘制圆形")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"编辑、拖拽覆盖物:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,[t.createElementVNode("strong",null,"左键双击"),t.createTextVNode("覆盖物(点除外)进入编辑模式")]),t.createElementVNode("li",null,"非圆形覆盖物支持直接拖拽移动"),t.createElementVNode("li",null,"进入编辑后拖拽控制点调整形状和位置"),t.createElementVNode("li",null,"编辑完成后右键地图空白处取消编辑")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"删除覆盖物:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,[t.createElementVNode("strong",null,"右键点击"),t.createTextVNode("覆盖物可删除单个图形")]),t.createElementVNode("li",null,"使用右侧批量操作按钮删除指定业务类型的所有图形"),t.createElementVNode("li",null,"使用清除所有按钮删除地图上的所有图形")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"其他功能:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,"使用地点搜索快速定位到指定位置"),t.createElementVNode("li",null,"切换卫星图/标准图查看不同地图样式"),t.createElementVNode("li",null,'绘制完成后点击"确认"保存,点击"取消"放弃修改')])])],-1)),wr={class:"dialog-footer"},Er={__name:"index",props:{title:{type:String,default:"地图绘制"},width:{type:String,default:"80vw"},height:{type:String,default:"60vh"},mapStyle:{type:String,default:()=>"amap://styles/normal"},markers:{type:[Array,String],default:()=>[]},markerConfig:{type:Object,default:()=>({})},circles:{type:[Array,String],default:()=>[]},circleConfig:{type:Object,default:()=>({})},polylines:{type:[Array,String],default:()=>[]},polylineConfig:{type:Object,default:()=>({})},polygons:{type:[Array,String],default:()=>[]},polygonConfig:{type:Object,default:()=>({})},bezierCurves:{type:[Array,String],default:()=>[]},bezierCurveConfig:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},businessConfigs:{type:Array,default:()=>[{key:"lngLat",label:"项目中心点",multiple:!1,drawTypes:["point"]},{key:"yyxLngLat",label:"项目营业线",multiple:!0,drawTypes:["polyline"]},{key:"projectWorkArea",label:"项目工区",multiple:!0,drawTypes:["polygon","circle"]},{key:"workDeviceArea",label:"作业设备限制区域",multiple:!0,drawTypes:["polygon","circle"]},{key:"workPersonnelArea",label:"作业人员区域",multiple:!0,drawTypes:["polygon","circle"]}],validator(e){const t=["point","polyline","polygon","circle","bezierCurve"];return Array.isArray(e)&&e.every(e=>{if(!e||"object"!=typeof e)return!1;const{key:r,label:n,drawTypes:o,multiple:i}=e;return!("string"!=typeof r||!r)&&(!("string"!=typeof n||!n)&&(!(!Array.isArray(o)||0===o.length)&&(!!o.every(e=>t.includes(e))&&(void 0===i||"boolean"==typeof i))))})}},isShowDefaultTriggerBtn:{type:Boolean,default:!0},formatJson:{type:Boolean,default:!0},center:{type:[String,Array,null],default:null},mapZoom:{type:Number,default:13},changeMapType:{type:Boolean,default:!0},amapKey:{type:String,default:"",required:!0}},emits:["update:markers","update:polylines","update:polygons","update:bezierCurves","update:circles"],setup(e,{expose:r,emit:n}){const o=e,{isMobile:s}=te(),l=t.ref(""),c=e=>o.businessConfigs.find(t=>t.key===e),u=t.computed(()=>c(l.value)||null),d=t.computed(()=>{var e,t;return null!=(t=null==(e=u.value)?void 0:e.drawTypes)?t:[]}),p=t.computed({get:()=>o.markers&&Array.isArray(o.markers)?o.markers.map(e=>({businessKey:e.businessKey||"",type:"marker",path:Ne(e.path)?JSON.parse(e.path):e.path})):[],set(e){n("update:markers",e)}}),h=t.computed({get:()=>o.polylines&&Array.isArray(o.polylines)?o.polylines.map(e=>({businessKey:e.businessKey||"",type:"polyline",path:Ne(e.path)?JSON.parse(e.path):e.path})):[],set(e){n("update:polylines",e)}}),f=t.computed({get:()=>o.polygons&&Array.isArray(o.polygons)?o.polygons.map(e=>({businessKey:e.businessKey||"",type:"polygon",path:Ne(e.path)?JSON.parse(e.path):e.path})):[],set(e){n("update:polygons",e)}}),v=t.computed({get:()=>o.bezierCurves&&Array.isArray(o.bezierCurves)?o.bezierCurves.map(e=>({businessKey:e.businessKey||"",type:"bezierCurve",path:Ne(e.path)?JSON.parse(e.path):e.path})):[],set(e){n("update:bezierCurves",e)}}),m=t.computed({get:()=>o.circles&&Array.isArray(o.circles)?o.circles.map(e=>({businessKey:e.businessKey||"",type:"circle",path:Ne(e.path)?JSON.parse(e.path):e.path})):[],set(e){n("update:circles",e)}}),g=t.ref(null),y=t.ref(!1),C=t.ref(!1),S=t.ref(!1),T=t.ref(""),b=t.ref(!1),w=t.ref(!1),A=t.shallowRef(null),_=t.shallowRef(null),N=t.ref([]),k=t.ref([]),R=t.ref([]),x=t.ref([]),I=t.ref([]),D=t.ref(null),O=t.ref(null),M=t.ref(null),U=t.ref(null),V=t.ref(null),H=t.ref(null),P=t.ref(""),z=t.ref(""),B=t.ref(null),L=t.reactive({icon:"https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",size:{width:26,height:32}}),q=t.reactive({isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:5,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20}),j=t.reactive({isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20}),F=t.reactive({fillColor:"#1890ff",strokeColor:"#1890ff",fillOpacity:.1,strokeOpacity:1,strokeWeight:3,strokeStyle:"dashed",strokeDasharray:[10,5],draggable:!1}),G=t.reactive({strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,fillColor:"#1890ff",fillOpacity:.1,zIndex:10,draggable:!1});t.onBeforeUnmount(()=>{A.value&&(A.value.destroy(),A.value=null)});const K=()=>{b.value=!0,t.nextTick(()=>{$()})},$=async()=>{try{C.value=!0;const t=await E.default.load({key:o.amapKey,version:"2.0",plugins:["AMap.MouseTool","AMap.PolyEditor","AMap.PolygonEditor","AMap.CircleEditor","AMap.BezierCurveEditor","AMap.Geolocation","AMap.PlaceSearch"]}),r={zoom:o.mapZoom,mapStyle:o.mapStyle};o.center&&(r.center="string"==typeof(e=o.center)?e.split(",").map(Number):e),A.value=new t.Map(B.value,r),g.value=new t.TileLayer.Satellite({zIndex:1});const n=new t.Geolocation({enableHighAccuracy:!0,timeout:1e4,zoomToAccuracy:!0,buttonPosition:"RB"});A.value.addControl(n),o.disabled||(_.value=new t.MouseTool(A.value),_.value.on("draw",re)),A.value.on("rightclick",ae),document.addEventListener("contextmenu",e=>{e.preventDefault()}),H.value=new t.PlaceSearch({pageSize:10,pageIndex:1,city:"",citylimit:!1,autoFitView:!0}),o.center?(Z(),C.value=!1):n.getCurrentPosition((e,t)=>{"complete"===e?A.value&&A.value.setCenter([t.position.lng,t.position.lat]):A.value&&A.value.setCenter([116.397428,39.90923]),Z(),C.value=!1})}catch(t){C.value=!1}var e},W=(e,t)=>{"circle"!==e&&(t.setDraggable(!0),t.on("mousedown",e=>{"circle"===T.value&&t.setDraggable(!1)}),t.on("mouseup",e=>{t.setDraggable(!0)}),t.on("dragend",r=>{"marker"===e&&oe(t),"polyline"===e&&fe(t),"polygon"===e&&ve(t),"bezierCurve"===e&&me(t)})),t.on("rightclick",()=>{ae(t)}),"marker"!==e&&t.on("dblclick",e=>{setTimeout(()=>{_.value&&_.value.close()}),se(t)})},J=e=>{if("string"==typeof e){if(Ne(e))try{return JSON.parse(e)}catch(t){return e}return e}return e},Y=e=>{let t="",r=e;return r&&"object"==typeof r&&!Array.isArray(r)&&(r.businessKey&&(t=r.businessKey),void 0!==r.path?r=r.path:void 0!==r.data&&(r=r.data)),r=J(r),r&&"object"==typeof r&&!Array.isArray(r)&&r.businessKey&&!t&&(t=r.businessKey),{payload:r,businessKey:t}},Q=e=>{var t;const{payload:r,businessKey:n}=Y(e);let o=[];if(!r)return{path:o,businessKey:n};if(Array.isArray(r))o=r;else if("string"==typeof r){const e=J(r);Array.isArray(e)?o=e:e&&"object"==typeof e&&Array.isArray(e.path)&&(o=e.path)}else r&&"object"==typeof r&&(Array.isArray(r.path)?o=r.path:Array.isArray(r)&&(o=r));return{path:o,businessKey:null!=(t=null==r?void 0:r.businessKey)?t:n}},Z=()=>{if(!A.value)return;const e=window.AMap;N.value=[],k.value=[],R.value=[],x.value=[],I.value=[],p.value.forEach(t=>{const r=(e=>{var t,r,n;const{payload:o,businessKey:i}=Y(e);if(!o)return null;if("string"==typeof o)return{position:o,businessKey:i};if(o&&"object"==typeof o){const e=null!=(r=null!=(t=o.position)?t:o.path)?r:"";if("string"==typeof e&&e)return{position:e,businessKey:null!=(n=o.businessKey)?n:i}}return null})(t);if(!r)return;const{position:n,businessKey:i}=r;if(!n)return;const[a,s]=n.split(",").map(Number);if(Number.isNaN(a)||Number.isNaN(s))return;const{size:l,icon:c}=o.markerConfig,u=new e.Marker({position:[a,s],icon:new e.Icon({image:c||L.icon,imageSize:l?new e.Size(l.width,l.height):new e.Size(L.size.width,L.size.height)}),offset:l?new e.Pixel(-l.width/2,-l.height):new e.Pixel(-L.size.width/2,-L.size.height),size:l?new e.Size(l.width,l.height):new e.Size(L.size.width,L.size.height),map:A.value});W("marker",u),N.value.push({obj:u,position:n,type:"marker",businessKey:i})}),h.value.forEach(t=>{const{path:r,businessKey:n}=Q(t);if(!Array.isArray(r)||!r.length)return;const i=r.map(t=>{if("string"==typeof t){const[r,n]=t.split(",").map(Number);return Number.isNaN(r)||Number.isNaN(n)?null:new e.LngLat(r,n)}if(Array.isArray(t)&&t.length>=2){const r=Number(t[0]),n=Number(t[1]);return Number.isNaN(r)||Number.isNaN(n)?null:new e.LngLat(r,n)}return null}).filter(Boolean);if(!i.length)return;const a=new e.Polyline({path:i,map:A.value,...q,...o.polylineConfig});W("polyline",a);const s=i.map(e=>`${e.getLng()},${e.getLat()}`);k.value.push({obj:a,path:s,type:"polyline",businessKey:n})}),f.value.forEach(t=>{const{path:r,businessKey:n}=Q(t);if(!Array.isArray(r)||!r.length)return;const i=r.map(t=>{if("string"==typeof t){const[r,n]=t.split(",").map(Number);return Number.isNaN(r)||Number.isNaN(n)?null:new e.LngLat(r,n)}if(Array.isArray(t)&&t.length>=2){const r=Number(t[0]),n=Number(t[1]);return Number.isNaN(r)||Number.isNaN(n)?null:new e.LngLat(r,n)}return null}).filter(Boolean);if(!i.length)return;const a=new e.Polygon({path:i,map:A.value,...F,...o.polygonConfig});W("polygon",a);const s=i.map(e=>`${e.getLng()},${e.getLat()}`);R.value.push({obj:a,path:s,type:"polygon",businessKey:n})}),v.value.forEach(t=>{const{path:r,businessKey:n}=Q(t);if(!Array.isArray(r)||!r.length)return;const i=r.map(e=>Array.isArray(e)?e.map(e=>Number(e)):Number(e)),a=new e.BezierCurve({path:i,map:A.value,...j,...o.bezierCurveConfig});W("bezierCurve",a),x.value.push({obj:a,path:i,type:"bezierCurve",businessKey:n})}),m.value.forEach(t=>{const r=(e=>{var t,r,n,o,i,a;const{payload:s,businessKey:l}=Y(e);if(!s)return null;let c="",u=0;if("string"==typeof s){const e=J(s);if(e&&"object"==typeof e)return c=null!=(t=e.center)?t:"",u=null!=(r=e.radius)?r:0,{center:c,radius:u,businessKey:null!=(n=e.businessKey)?n:l}}else if(s&&"object"==typeof s)return c=null!=(o=s.center)?o:"",u=null!=(i=s.radius)?i:0,{center:c,radius:u,businessKey:null!=(a=s.businessKey)?a:l};return null})(t);if(!r)return;const{center:n,radius:i,businessKey:a}=r;if(!n||!i)return;const[s,l]=n.split(",").map(Number);if(Number.isNaN(s)||Number.isNaN(l)||Number.isNaN(Number(i)))return;const c=new e.Circle({center:[s,l],radius:i,...G,...o.circleConfig});A.value.add(c),W("circle",c),I.value.push({obj:c,center:n,radius:i,type:"circle",businessKey:a})});const t=[...N.value.map(e=>e.obj),...k.value.map(e=>e.obj),...R.value.map(e=>e.obj),...x.value.map(e=>e.obj),...I.value.map(e=>e.obj)];t.length>0&&A.value.setFitView(t)},X=e=>{if(_.value&&!o.disabled)if(l.value)if(d.value.includes(e))switch(V.value&&he(),e){case"point":const{size:e,icon:t}=o.markerConfig;_.value.marker({icon:new AMap.Icon({image:t||L.icon,imageSize:e?new AMap.Size(e.width,e.height):new AMap.Size(L.size.width,L.size.height)}),offset:e?new AMap.Pixel(-e.width/2,-e.height):new AMap.Pixel(-L.size.width/2,-L.size.height),size:e?new AMap.Size(e.width,e.height):new AMap.Size(L.size.width,L.size.height)});break;case"polyline":case"bezierCurve":_.value.polyline({...q,...o.polylineConfig});break;case"polygon":_.value.polygon({...F,...o.polygonConfig});break;case"circle":_.value.circle({...G,...o.circleConfig,bubble:!0})}else a.ElMessage.warning("当前业务不支持该绘制方式");else a.ElMessage.warning("请先选择业务类型")},ee=()=>{if(!o.disabled&&(he(),T.value="",_.value&&_.value.close(),1===d.value.length)){const[e]=d.value;T.value=e,t.nextTick(()=>{X(e)})}},re=e=>{if(S.value=!0,o.disabled)return;const{obj:t}=e;if(!l.value)return t.setMap(null),void a.ElMessage.warning("请先选择业务类型");const r=l.value;if((e=>{if(!e)return!0;const t=c(e);return!t||!1!==t.multiple})(r)||(xe(r),Ie(r),De(r),Oe(r),Me(r)),t instanceof AMap.Marker){const e=t.getPosition(),n={obj:t,position:`${e.lng},${e.lat}`,type:"marker",businessKey:r};N.value.push(n),W("marker",t)}else if(t instanceof AMap.Polyline)if("bezierCurve"===T.value)ne(t,r);else{const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>1?(k.value.push({obj:t,path:e,type:"polyline",businessKey:r}),W("polyline",t)):t.setMap(null)}else if(t instanceof AMap.Polygon){const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>2?(R.value.push({obj:t,path:e,type:"polygon",businessKey:r}),W("polygon",t)):t.setMap(null)}else if(t instanceof AMap.BezierCurve){const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>2?(x.value.push({obj:t,path:e,type:"bezierCurve",businessKey:r}),W("bezierCurve",t)):t.setMap(null)}else if(t instanceof AMap.Circle){const e=t.getCenter(),n=t.getRadius();e&&n>0?(I.value.push({obj:t,center:`${e.lng},${e.lat}`,radius:n,type:"circle",businessKey:r}),W("circle",t)):t.setMap(null)}setTimeout(()=>{S.value=!1},100)},ne=(e,t)=>{const r=e.getPath();if(r.length<2)return void e.setMap(null);e.setMap(null);const n=[];n.push([r[0].lng,r[0].lat]);for(let o=1;o<r.length;o++){const e=r[o-1],t=r[o],i=e.lng+.3*(t.lng-e.lng),a=e.lat+.3*(t.lat-e.lat);n.push([i,a,t.lng,t.lat])}const i=new AMap.BezierCurve({path:n,...j,...o.bezierCurveConfig,map:A.value});ie(i),x.value.push({obj:i,path:n,businessKey:t,type:"bezierCurve"}),W("bezierCurve",i)},oe=e=>{if(o.disabled)return;const t=e.getPosition(),r=N.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==r&&(N.value[r].position=`${t.lng},${t.lat}`)},ie=e=>{o.disabled||(M.value&&M.value.close(),M.value=new AMap.BezierCurveEditor(A.value,e),M.value.open(),V.value=e)},ae=e=>{setTimeout(()=>{o.disabled||S.value||(e instanceof AMap.Marker?le(e):e instanceof AMap.Polyline?ce(e):e instanceof AMap.Polygon?ue(e):e instanceof AMap.BezierCurve?de(e):e instanceof AMap.Circle?pe(e):(he(),T.value&&X(T.value)))},50)},se=e=>{var t,r,n;o.disabled||V.value!==e&&(V.value&&he(),e instanceof AMap.Polyline?(n=e,o.disabled||(D.value&&D.value.close(),D.value=new AMap.PolyEditor(A.value,n),D.value.open(),V.value=n)):e instanceof AMap.Polygon?(r=e,o.disabled||(O.value&&O.value.close(),O.value=new AMap.PolygonEditor(A.value,r),O.value.open(),V.value=r)):e instanceof AMap.BezierCurve?ie(e):e instanceof AMap.Circle&&(t=e,o.disabled||(U.value&&U.value.close(),U.value=new AMap.CircleEditor(A.value,t),U.value.open(),V.value=t)))},le=e=>{if(o.disabled)return;const t=N.value.find(t=>t.obj._amap_id===e._amap_id);Ee("single",{type:"marker",instance:e,businessKey:null==t?void 0:t.businessKey})},ce=e=>{if(o.disabled)return;const t=k.value.find(t=>t.obj._amap_id===e._amap_id);Ee("single",{type:"polyline",instance:e,businessKey:null==t?void 0:t.businessKey})},ue=e=>{if(o.disabled)return;const t=R.value.find(t=>t.obj._amap_id===e._amap_id);Ee("single",{type:"polygon",instance:e,businessKey:null==t?void 0:t.businessKey})},de=e=>{if(o.disabled)return;const t=x.value.find(t=>t.obj._amap_id===e._amap_id);Ee("single",{type:"bezierCurve",instance:e,businessKey:null==t?void 0:t.businessKey})},pe=e=>{if(o.disabled)return;const t=I.value.find(t=>t.obj._amap_id===e._amap_id);Ee("single",{type:"circle",instance:e,businessKey:null==t?void 0:t.businessKey})},he=()=>{o.disabled||(D.value&&V.value instanceof AMap.Polyline&&(fe(),D.value.close()),O.value&&V.value instanceof AMap.Polygon&&(ve(),O.value.close()),M.value&&V.value instanceof AMap.BezierCurve&&(me(),M.value.close()),U.value&&V.value instanceof AMap.Circle&&(ge(),U.value.close()),V.value=null)},fe=(e=null)=>{const t=null!=e?e:D.value.getTarget();let r=t.getPath();ke(r)>1&&(r=r[0],t.setPath(r));const n=r.map(e=>`${e.lng},${e.lat}`),o=k.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==o&&(k.value[o].path=n)},ve=(e=null)=>{const t=null!=e?e:O.value.getTarget(),r=t.getPath().map(e=>`${e.lng},${e.lat}`),n=R.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==n&&(R.value[n].path=r)},me=(e=null)=>{const t=null!=e?e:M.value.getTarget(),r=t.getPath(),n=[];try{if(r&&r.length>0){r[0].getLng&&r[0].getLat?n.push([r[0].getLng(),r[0].getLat()]):Array.isArray(r[0])&&(Array.isArray(r[0][0])?n.push(r[0][0]):n.push(r[0]));for(let e=1;e<r.length;e++){const t=r[e];if(Array.isArray(t)&&t.length>=2){const e=[];for(let r=0;r<t.length;r++){const n=t[r];n&&n.getLng&&n.getLat?(e.push(n.getLng()),e.push(n.getLat())):Array.isArray(n)&&n.length>=2?(e.push(n[0]),e.push(n[1])):"number"==typeof n&&e.push(n)}e.length>0&&n.push(e)}}}const e=x.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==e&&(x.value[e].path=n)}catch(o){}},ge=(e=null)=>{const t=null!=e?e:U.value.getTarget(),r=t.getCenter(),n=t.getRadius(),o=I.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==o&&(I.value[o].center=`${r.lng},${r.lat}`,I.value[o].radius=n)},ye=()=>{o.disabled||(he(),p.value=N.value.map(e=>({path:"string"==typeof e.position?e.position:o.formatJson?JSON.stringify(e.position):e.position,type:e.type,businessKey:e.businessKey})),h.value=k.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type,businessKey:e.businessKey})),f.value=R.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type,businessKey:e.businessKey})),v.value=x.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type,businessKey:e.businessKey})),m.value=I.value.map(e=>({path:o.formatJson?JSON.stringify({center:e.center,radius:e.radius}):{center:e.center,radius:e.radius},type:e.type,businessKey:e.businessKey})),Ce())},Ce=()=>{b.value=!1,y.value=!1,P.value="",z.value="",T.value="",l.value="",N.value=[],k.value=[],R.value=[],x.value=[],I.value=[],_.value&&(_.value.off("draw",re),_.value.close()),D.value&&D.value.close(),O.value&&O.value.close(),M.value&&M.value.close(),U.value&&U.value.close(),A.value&&(A.value.off("rightclick",ae),A.value.destroy(),A.value=null)},Se=e=>({point:"绘制点",polyline:"绘制折线",polygon:"绘制多边形",circle:"绘制圆",bezierCurve:"绘制曲线"}[e]||e),Te=e=>{var t;return(null==(t=c(e))?void 0:t.label)||e},be=e=>{if(!e)return 0;return N.value.filter(t=>t.businessKey===e).length+k.value.filter(t=>t.businessKey===e).length+R.value.filter(t=>t.businessKey===e).length+x.value.filter(t=>t.businessKey===e).length+I.value.filter(t=>t.businessKey===e).length},we=()=>N.value.length+k.value.length+R.value.length+x.value.length+I.value.length,Ee=async(e,t)=>{try{let r="";if("all"===e)r=`确定要删除所有图形吗?这将清除地图上的所有 ${we()} 个图形。`;else if("business"===e){const e=Te(t);r=`确定要删除所有${e}吗?这将清除地图上的所有 ${be(t)} 个${e}。`}else if("single"===e){let e="";switch(t.type){case"marker":e="点";break;case"polyline":e="折线";break;case"polygon":e="多边形";break;case"bezierCurve":e="曲线";break;case"circle":e="圆形"}r=`确定要删除这个${t.businessKey?`${Te(t.businessKey)}的`:""}${e}吗?`}if(await a.ElMessageBox.confirm(r,"删除确认"),"all"===e)Ae();else if("business"===e)_e(t);else if("single"===e)switch(t.type){case"marker":(e=>{e.setMap(null);const t=N.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&N.value.splice(t,1)})(t.instance);break;case"polyline":(e=>{e.setMap(null);const t=k.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&k.value.splice(t,1)})(t.instance);break;case"polygon":(e=>{e.setMap(null);const t=R.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&R.value.splice(t,1)})(t.instance);break;case"bezierCurve":(e=>{e.setMap(null);const t=x.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&x.value.splice(t,1)})(t.instance);break;case"circle":(e=>{e.setMap(null);const t=I.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&I.value.splice(t,1)})(t.instance)}}catch(r){}},Ae=()=>{o.disabled||(he(),xe(),Ie(),De(),Oe(),Me(),T.value&&X(T.value))},_e=e=>{o.disabled||(he(),xe(e),Ie(e),De(e),Oe(e),Me(e),l.value===e&&T.value&&X(T.value))},xe=(e=null)=>{if(o.disabled)return;const t=[];N.value.forEach(r=>{e&&r.businessKey!==e?t.push(r):r.obj.setMap(null)}),N.value=t},Ie=(e=null)=>{if(o.disabled)return;const t=[];k.value.forEach(r=>{e&&r.businessKey!==e?t.push(r):r.obj.setMap(null)}),k.value=t},De=(e=null)=>{if(o.disabled)return;const t=[];R.value.forEach(r=>{e&&r.businessKey!==e?t.push(r):r.obj.setMap(null)}),R.value=t},Oe=(e=null)=>{if(o.disabled)return;const t=[];x.value.forEach(r=>{e&&r.businessKey!==e?t.push(r):r.obj.setMap(null)}),x.value=t},Me=(e=null)=>{if(o.disabled)return;const t=[];I.value.forEach(r=>{e&&r.businessKey!==e?t.push(r):r.obj.setMap(null)}),I.value=t},Ue=(e,t)=>{0!==e.length?H.value.search(e,(e,r)=>{if("complete"===e&&"OK"===r.info){const e=r.poiList.pois.map(e=>({name:e.name,address:e.address,location:e.location}));t(e)}else t([])}):t([])},Ve=e=>{let t=(e=>{const t=e.split(",");return 2===t.length&&Re(t[0],t[1])})(e);if(!t)return void a.ElMessage.error("经纬度格式错误,请输入如:103.98673,30.584973 格式,小数位数不超过15位");const r=e.split(",");new AMap.InfoWindow({content:`<div><p>${e}</p></div>`,offset:new AMap.Pixel(0,-30),autoMove:!1,closeWhenClickMap:!0}).open(A.value,r),A.value.setZoomAndCenter(20,r),z.value=""},He=e=>{if(e&&e.location){new AMap.InfoWindow({content:`<div><h4>${e.name}</h4><p>${e.address||"暂无地址信息"}</p></div>`,offset:new AMap.Pixel(0,-30),autoMove:!1,closeWhenClickMap:!0}).open(A.value,[e.location.lng,e.location.lat]),A.value.setZoomAndCenter(20,[e.location.lng,e.location.lat])}},Pe=e=>{e?(A.value.setMapStyle(null),g.value.setMap(A.value),A.value.setFeatures(["bg"])):(A.value.setMapStyle(o.mapStyle),g.value.setMap(null),A.value.setFeatures(["bg","building","point","road","land","poi"]))};return r({openDialog:K}),(r,n)=>{const o=t.resolveComponent("el-button"),a=t.resolveComponent("el-switch"),c=t.resolveComponent("el-divider"),u=t.resolveComponent("el-autocomplete"),p=t.resolveComponent("el-input"),h=t.resolveComponent("el-radio"),f=t.resolveComponent("el-radio-group"),v=t.resolveComponent("el-card"),m=t.resolveComponent("el-dialog"),g=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",null,[t.renderSlot(r.$slots,"trigger",{openDialog:K},()=>[e.isShowDefaultTriggerBtn?(t.openBlock(),t.createBlock(o,{key:0,onClick:K},{default:t.withCtx(()=>[t.createTextVNode("打开绘制弹窗")]),_:1})):t.createCommentVNode("",!0)],!0),t.createVNode(m,{title:e.title,"append-to-body":"",modelValue:b.value,"onUpdate:modelValue":n[7]||(n[7]=e=>b.value=e),width:e.width,onClose:Ce,class:"map-drawing-dialog"},{footer:t.withCtx(()=>[t.createElementVNode("span",Tr,[t.createVNode(o,{onClick:Ce},{default:t.withCtx(()=>[t.createTextVNode("取消")]),_:1}),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(o,{key:0,type:"primary",onClick:ye},{default:t.withCtx(()=>[t.createTextVNode("确认")]),_:1}))])]),default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":"系统定位中,请稍后...",class:t.normalizeClass(["draw-container",t.unref(s)&&"draw-container-mobile"]),style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:"map-container",ref_key:"mapContainer",ref:B},null,512),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",ur,[t.createVNode(v,{shadow:"never"},{default:t.withCtx(()=>[t.createElementVNode("div",dr,[t.createVNode(o,{type:"primary",icon:t.unref(i.QuestionFilled),onClick:n[0]||(n[0]=e=>w.value=!0),class:"help-button"},{default:t.withCtx(()=>[t.createTextVNode(" 操作说明 ")]),_:1},8,["icon"])]),e.changeMapType&&!t.unref(s)?(t.openBlock(),t.createElementBlock("div",pr,[t.createVNode(a,{modelValue:y.value,"onUpdate:modelValue":n[1]||(n[1]=e=>y.value=e),"active-text":"卫星图","inactive-text":"标准图",onChange:Pe},null,8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("地点搜索")]),_:1})),t.createElementVNode("div",hr,[t.createVNode(u,{modelValue:P.value,"onUpdate:modelValue":n[2]||(n[2]=e=>P.value=e),"fetch-suggestions":Ue,placeholder:"搜索地点",onSelect:He,"trigger-on-focus":!1,class:"place-search-input"},{default:t.withCtx(({item:e})=>[t.createElementVNode("div",fr,[t.createElementVNode("div",vr,t.toDisplayString(e.name),1),t.createElementVNode("div",mr,t.toDisplayString(e.address),1)])]),_:1},8,["modelValue"])]),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:2,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("经纬度搜索")]),_:1})),t.createElementVNode("div",gr,[t.createVNode(p,{modelValue:z.value,"onUpdate:modelValue":n[3]||(n[3]=e=>z.value=e),onChange:Ve,style:{width:"100%"},placeholder:"请输入GCJ-02坐标系经纬度"},null,8,["modelValue"])]),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:3,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("业务类型")]),_:1})),t.createVNode(f,{modelValue:l.value,"onUpdate:modelValue":n[4]||(n[4]=e=>l.value=e),onChange:ee},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.businessConfigs,e=>(t.openBlock(),t.createBlock(h,{key:e.key,label:e.key,border:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"]),!t.unref(s)&&t.unref(d).length?(t.openBlock(),t.createBlock(c,{key:4,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("绘制方式")]),_:1})):t.createCommentVNode("",!0),t.unref(d).length?(t.openBlock(),t.createBlock(f,{key:5,onChange:X,modelValue:T.value,"onUpdate:modelValue":n[5]||(n[5]=e=>T.value=e)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(d),e=>(t.openBlock(),t.createBlock(h,{key:e,onClick:t.withModifiers(t=>(e=>{e===T.value?T.value="":T.value=e,T.value?X(T.value):_.value&&_.value.close()})(e),["prevent"]),label:e,border:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(Se(e)),1)]),_:2},1032,["onClick","label"]))),128))]),_:1},8,["modelValue"])):t.createCommentVNode("",!0),t.createElementVNode("div",yr,[t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:0,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("批量操作")]),_:1})),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.businessConfigs,e=>(t.openBlock(),t.createBlock(o,{key:`delete-${e.key}`,size:"small",type:"danger",onClick:t=>Ee("business",e.key),disabled:0===be(e.key)},{default:t.withCtx(()=>[t.createTextVNode(" 删除所有"+t.toDisplayString(e.label)+" ",1),be(e.key)>0?(t.openBlock(),t.createElementBlock("span",Cr,"("+t.toDisplayString(be(e.key))+")",1)):t.createCommentVNode("",!0)]),_:2},1032,["onClick","disabled"]))),128)),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("全局操作")]),_:1})),t.createVNode(o,{size:"small",type:"danger",onClick:n[6]||(n[6]=e=>Ee("all")),disabled:0===we()},{default:t.withCtx(()=>[t.createTextVNode(" 清除所有图形 "),we()>0?(t.openBlock(),t.createElementBlock("span",Sr,"("+t.toDisplayString(we())+")",1)):t.createCommentVNode("",!0)]),_:1},8,["disabled"])])]),_:1})]))],6)),[[g,C.value]])]),_:1},8,["title","modelValue","width"]),t.createVNode(m,{title:"操作说明",modelValue:w.value,"onUpdate:modelValue":n[9]||(n[9]=e=>w.value=e),width:"600px","append-to-body":""},{footer:t.withCtx(()=>[t.createElementVNode("span",wr,[t.createVNode(o,{type:"primary",onClick:n[8]||(n[8]=e=>w.value=!1)},{default:t.withCtx(()=>[t.createTextVNode("我知道了")]),_:1})])]),default:t.withCtx(()=>[br]),_:1},8,["modelValue"])])}}},Ar=A(Er,[["__scopeId","data-v-6b8c3e46"]]),_r=A({__name:"BimViewer",props:{viewToken:{type:String,default:"121d1db2a4cd444983d0871aa47786eb"},extraContextMenu:{type:Array,default:()=>[{label:"其他",key:"extraOther",children:[{label:"添加养护",key:"addMaintain"},{label:"养护记录",key:"maintainRecord"}]}]}},emits:["contextMenuClick"],setup(e,{emit:r}){const n=e,o=t.ref(null),i=t.ref(null),a=t.ref(null),s=t.ref(null),l=()=>{i.value&&i.value.resize(document.documentElement.clientWidth,document.documentElement.clientHeight-40)},c=e=>{if(e.children&&e.children.length>0){const t=document.createElement("div");t.className="bf-sub-menu";const r=document.createElement("div");r.className="bf-menu-item user-item",r.textContent=e.label,t.appendChild(r);const n=document.createElement("div");return n.className="bf-menu",n.style.width="max-content",e.children.forEach(e=>{const t=c(e);n.appendChild(t)}),t.appendChild(n),t}{const t=document.createElement("div");return t.className="bf-menu-item user-item",t.id=`menu-${e.key}`,t.textContent=e.label,t.dataset.key=e.key,t}},u=(e,t,n)=>{if(t.children&&t.children.length>0)t.children.forEach(t=>{u(e,t,n)});else{const o=e.querySelector(`#menu-${t.key}`);if(!o)return;const i=()=>{r("contextMenuClick",{...t,selectedComponents:n}),p(),o.removeEventListener("click",i)};o.addEventListener("click",i)}},d=e=>{const r=e.getViewer().getModel().getSelectedComponents();if(!r.length)return;const o=document.querySelector(".bf-menu.bf-menu-right"),i=document.querySelector(".bf-menu.bf-menu-left"),s=o||i;if(!s)return;const l=document.getElementById("bim-construction-menu");l&&l.remove();const d=(()=>{const e=document.createElement("div");return e.id="bim-construction-menu",n.extraContextMenu.forEach(t=>{const r=c(t);e.appendChild(r)}),e})();s.appendChild(d),t.nextTick(()=>{((e,t)=>{t.length&&a.value&&n.extraContextMenu.forEach(r=>{u(e,r,t)})})(d,r)})},p=()=>{const e=document.getElementById("bim-construction-menu");e&&e.remove();const t=document.querySelector(".bf-menu.bf-menu-right");t&&(t.style.display="none")},h=()=>{i.value&&(s.value=l,window.addEventListener("resize",s.value),i.value.render())},f=()=>{a.value&&n.extraContextMenu.length&&setTimeout(()=>{d(a.value)},0)},v=e=>{if("3DView"===e.viewType&&o.value)try{const e=new Glodon.Bimface.Application.WebApplication3DConfig;e.domElement=o.value,e.globalUnit=Glodon.Bimface.Common.Units.LengthUnits.Millimeter,a.value=new Glodon.Bimface.Application.WebApplication3D(e),a.value.addView(n.viewToken),i.value=a.value.getViewer(),i.value.addEventListener(Glodon.Bimface.Viewer.Viewer3DEvent.ViewAdded,h),i.value.addEventListener(Glodon.Bimface.Viewer.Viewer3DEvent.ContextMenu,f)}catch(t){}},m=e=>{},g=()=>{t.nextTick(()=>{(()=>{if(!o.value)return;const e=new BimfaceSDKLoaderConfig;e.viewToken=n.viewToken,BimfaceSDKLoader.load(e,v,m)})()})};return t.onMounted(()=>{g()}),t.onBeforeUnmount(()=>{(()=>{var e,t,r,n,o,l;if(s.value&&(window.removeEventListener("resize",s.value),s.value=null),p(),i.value)try{null==(t=(e=i.value).removeEventListener)||t.call(e,Glodon.Bimface.Viewer.Viewer3DEvent.ViewAdded,h),null==(n=(r=i.value).removeEventListener)||n.call(r,Glodon.Bimface.Viewer.Viewer3DEvent.ContextMenu,f)}catch(c){}if(a.value)try{null==(l=(o=a.value).destroy)||l.call(o)}catch(c){}i.value=null,a.value=null})()}),(e,r)=>(t.openBlock(),t.createElementBlock("div",{class:"model-container",ref_key:"bimContainer",ref:o},null,512))}},[["__scopeId","data-v-b60f1ba4"]]),Nr=A({__name:"DwgViewer",props:{viewToken:{type:String,default:"5a6e6e0b33434ba795a107136fd2bc63"},extraContextMenu:{type:Array,default:()=>[{label:"其他",key:"extraOther",children:[{label:"添加养护",key:"addMaintain"},{label:"养护记录",key:"maintainRecord"}]}]}},emits:["contextMenuClick"],setup(e,{emit:r}){const n=e,o=t.ref(null),i=t.ref(null),a=t.ref(null),s=t.ref(null),l=e=>{if(e.children&&e.children.length>0){const t=document.createElement("div");t.className="bf-sub-menu";const r=document.createElement("div");r.className="bf-menu-item user-item",r.textContent=e.label,t.appendChild(r);const n=document.createElement("div");return n.className="bf-menu",n.style.width="max-content",e.children.forEach(e=>{const t=l(e);n.appendChild(t)}),t.appendChild(n),t}{const t=document.createElement("div");return t.className="bf-menu-item user-item",t.id=`menu-${e.key}`,t.textContent=e.label,t.dataset.key=e.key,t}},c=(e,t,n)=>{if(t.children&&t.children.length>0)t.children.forEach(t=>{c(e,t,n)});else{const o=e.querySelector(`#menu-${t.key}`);if(!o)return;const i=()=>{r("contextMenuClick",{...t,selectedComponents:n}),d(),o.removeEventListener("click",i)};o.addEventListener("click",i)}},u=e=>{const r=e.getViewer().getDrawing().getSelectedObjects();if(!r.length)return;const o=document.querySelector(".bf-menu.bf-menu-right"),i=document.querySelector(".bf-menu.bf-menu-left"),s=o||i;if(!s)return;const u=document.getElementById("bim-construction-menu");u&&u.remove();const d=(()=>{const e=document.createElement("div");return e.id="bim-construction-menu",n.extraContextMenu.forEach(t=>{const r=l(t);e.appendChild(r)}),e})();s.appendChild(d),t.nextTick(()=>{((e,t)=>{t.length&&a.value&&n.extraContextMenu.forEach(r=>{c(e,r,t)})})(d,r)})},d=()=>{const e=document.getElementById("bim-construction-menu");e&&e.remove();const t=document.querySelector(".bf-menu.bf-menu-right");t&&(t.style.display="none")},p=()=>{i.value&&window.requestAnimationFrame(()=>{i.value.home()})},h=()=>{a.value&&n.extraContextMenu.length&&setTimeout(()=>{u(a.value)},0)},f=e=>{if("drawingView"===e.viewType&&o.value)try{const e=new Glodon.Bimface.Application.WebApplicationDrawingConfig;e.domElement=o.value,a.value=new Glodon.Bimface.Application.WebApplicationDrawing(e),i.value=a.value.getViewer(),i.value.loadDrawing({viewToken:n.viewToken}),i.value.addEventListener(Glodon.Bimface.Viewer.ViewerDrawingEvent.Loaded,p),i.value.addEventListener(Glodon.Bimface.Viewer.ViewerDrawingEvent.ContextMenu,h)}catch(t){}},v=e=>{},m=()=>{t.nextTick(()=>{(()=>{if(!o.value)return;const e=new BimfaceSDKLoaderConfig;e.viewToken=n.viewToken,BimfaceSDKLoader.load(e,f,v)})()})};return t.onMounted(()=>{m()}),t.onBeforeUnmount(()=>{(()=>{var e,t,r,n,o,l;if(s.value&&(window.removeEventListener("resize",s.value),s.value=null),d(),i.value)try{null==(t=(e=i.value).removeEventListener)||t.call(e,Glodon.Bimface.Viewer.ViewerDrawingEvent.Loaded,p),null==(n=(r=i.value).removeEventListener)||n.call(r,Glodon.Bimface.Viewer.ViewerDrawingEvent.ContextMenu,h)}catch(c){}if(a.value)try{null==(l=(o=a.value).destroy)||l.call(o)}catch(c){}i.value=null,a.value=null})()}),(e,r)=>(t.openBlock(),t.createElementBlock("div",{class:"dwg-container",ref_key:"dwgContainer",ref:o},null,512))}},[["__scopeId","data-v-ab9c8ebd"]]),kr=[{component:k,name:"SCTJDictTag"},{component:x,name:"SCTJTreeSelect"},{component:D,name:"SCTJIcon"},{component:B,name:"SCTJFileUpload"},{component:K,name:"SCTJImageUpload"},{component:W,name:"SCTJImagePreview"},{component:ee,name:"SCTJIconSelect"},{component:oe,name:"SCTJSearch"},{component:ie,name:"SCTJDateRangePicker"},{component:le,name:"SCTJTable"},{component:ue,name:"SCTJTableContainer"},{component:me,name:"SCTJTablePageContainer"},{component:he,name:"SCTJTableTopActionContainer"},{component:de,name:"SCTJRightToolbar"},{component:ge,name:"SCTJBtnContainer"},{component:ye,name:"SCTJBaseChart"},{component:we,name:"SCTJCommonChart"},{component:Ae,name:"SCTJPieChart"},{component:Ve,name:"SCTJFlvPlayer"},{component:tt,name:"SCTJH5hkPlayer"},{component:ft,name:"SCTJHelmetPlayer"},{component:_t,name:"SCTJYsyPlayer"},{component:kt,name:"SCTJIframe"},{component:Mt,name:"SCTJImportDialog"},{component:jt,name:"SCTJDialogTable"},{component:$t,name:"SCTJMapViewer"},{component:cr,name:"SCTJMapDrawingDialog"},{component:Ar,name:"SCTJBusinessMapDrawingDialog"},{component:_r,name:"SCTJBimViewer"},{component:Nr,name:"SCTJDwgViewer"}],Rr={install:e=>{kr.forEach(({component:t,name:r})=>{e.component(r,t)})},SCTJDictTag:k,SCTJTreeSelect:x,SCTJIcon:D,SCTJFileUpload:B,SCTJImageUpload:K,SCTJImagePreview:W,SCTJIconSelect:ee,SCTJSearch:oe,SCTJDateRangePicker:ie,SCTJTable:le,SCTJTableContainer:ue,SCTJTablePageContainer:me,SCTJTableTopActionContainer:he,SCTJRightToolbar:de,SCTJBtnContainer:ge,SCTJBaseChart:ye,SCTJCommonChart:we,SCTJPieChart:Ae,SCTJFlvPlayer:Ve,SCTJH5hkPlayer:tt,SCTJHelmetPlayer:ft,SCTJYsyPlayer:_t,SCTJIframe:kt,SCTJImportDialog:Mt,SCTJDialogTable:jt,SCTJMapViewer:$t,SCTJMapDrawingDialog:cr,SCTJBusinessMapDrawingDialog:Ar,SCTJBimViewer:_r,SCTJDwgViewer:Nr};var xr,Ir;xr=globalThis,Ir=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=30)}([function(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0}),(n=t.DialogStatus||(t.DialogStatus={}))[n.STATUS_EARLY=1]="STATUS_EARLY",n[n.STATUS_CONFIRMED=2]="STATUS_CONFIRMED",function(e){e[e.STATUS_NULL=0]="STATUS_NULL",e[e.STATUS_INVITE_SENT=1]="STATUS_INVITE_SENT",e[e.STATUS_1XX_RECEIVED=2]="STATUS_1XX_RECEIVED",e[e.STATUS_INVITE_RECEIVED=3]="STATUS_INVITE_RECEIVED",e[e.STATUS_WAITING_FOR_ANSWER=4]="STATUS_WAITING_FOR_ANSWER",e[e.STATUS_ANSWERED=5]="STATUS_ANSWERED",e[e.STATUS_WAITING_FOR_PRACK=6]="STATUS_WAITING_FOR_PRACK",e[e.STATUS_WAITING_FOR_ACK=7]="STATUS_WAITING_FOR_ACK",e[e.STATUS_CANCELED=8]="STATUS_CANCELED",e[e.STATUS_TERMINATED=9]="STATUS_TERMINATED",e[e.STATUS_ANSWERED_WAITING_FOR_PRACK=10]="STATUS_ANSWERED_WAITING_FOR_PRACK",e[e.STATUS_EARLY_MEDIA=11]="STATUS_EARLY_MEDIA",e[e.STATUS_CONFIRMED=12]="STATUS_CONFIRMED"}(t.SessionStatus||(t.SessionStatus={})),function(e){e[e.STATUS_TRYING=1]="STATUS_TRYING",e[e.STATUS_PROCEEDING=2]="STATUS_PROCEEDING",e[e.STATUS_CALLING=3]="STATUS_CALLING",e[e.STATUS_ACCEPTED=4]="STATUS_ACCEPTED",e[e.STATUS_COMPLETED=5]="STATUS_COMPLETED",e[e.STATUS_TERMINATED=6]="STATUS_TERMINATED",e[e.STATUS_CONFIRMED=7]="STATUS_CONFIRMED"}(t.TransactionStatus||(t.TransactionStatus={})),function(e){e[e.AckClientTransaction=0]="AckClientTransaction",e[e.ClientContext=1]="ClientContext",e[e.ConfigurationError=2]="ConfigurationError",e[e.Dialog=3]="Dialog",e[e.DigestAuthentication=4]="DigestAuthentication",e[e.DTMF=5]="DTMF",e[e.IncomingMessage=6]="IncomingMessage",e[e.IncomingRequest=7]="IncomingRequest",e[e.IncomingResponse=8]="IncomingResponse",e[e.InvalidStateError=9]="InvalidStateError",e[e.InviteClientContext=10]="InviteClientContext",e[e.InviteClientTransaction=11]="InviteClientTransaction",e[e.InviteServerContext=12]="InviteServerContext",e[e.InviteServerTransaction=13]="InviteServerTransaction",e[e.Logger=14]="Logger",e[e.LoggerFactory=15]="LoggerFactory",e[e.MethodParameterError=16]="MethodParameterError",e[e.NameAddrHeader=17]="NameAddrHeader",e[e.NonInviteClientTransaction=18]="NonInviteClientTransaction",e[e.NonInviteServerTransaction=19]="NonInviteServerTransaction",e[e.NotSupportedError=20]="NotSupportedError",e[e.OutgoingRequest=21]="OutgoingRequest",e[e.Parameters=22]="Parameters",e[e.PublishContext=23]="PublishContext",e[e.ReferClientContext=24]="ReferClientContext",e[e.ReferServerContext=25]="ReferServerContext",e[e.RegisterContext=26]="RegisterContext",e[e.RenegotiationError=27]="RenegotiationError",e[e.RequestSender=28]="RequestSender",e[e.ServerContext=29]="ServerContext",e[e.Session=30]="Session",e[e.SessionDescriptionHandler=31]="SessionDescriptionHandler",e[e.SessionDescriptionHandlerError=32]="SessionDescriptionHandlerError",e[e.SessionDescriptionHandlerObserver=33]="SessionDescriptionHandlerObserver",e[e.Subscription=34]="Subscription",e[e.Transport=35]="Transport",e[e.TransportError=36]="TransportError",e[e.UA=37]="UA",e[e.URI=38]="URI"}(t.TypeStrings||(t.TypeStrings={})),function(e){e[e.STATUS_INIT=0]="STATUS_INIT",e[e.STATUS_STARTING=1]="STATUS_STARTING",e[e.STATUS_READY=2]="STATUS_READY",e[e.STATUS_USER_CLOSED=3]="STATUS_USER_CLOSED",e[e.STATUS_NOT_READY=4]="STATUS_NOT_READY"}(t.UAStatus||(t.UAStatus={}))},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n,o,i=r(16);(n=t.C||(t.C={})).USER_AGENT=i.title+"/"+i.version,n.SIP="sip",n.SIPS="sips",(o=n.causes||(n.causes={})).CONNECTION_ERROR="Connection Error",o.INTERNAL_ERROR="Internal Error",o.REQUEST_TIMEOUT="Request Timeout",o.SIP_FAILURE_CODE="SIP Failure Code",o.ADDRESS_INCOMPLETE="Address Incomplete",o.AUTHENTICATION_ERROR="Authentication Error",o.BUSY="Busy",o.DIALOG_ERROR="Dialog Error",o.INCOMPATIBLE_SDP="Incompatible SDP",o.NOT_FOUND="Not Found",o.REDIRECTED="Redirected",o.REJECTED="Rejected",o.UNAVAILABLE="Unavailable",o.BAD_MEDIA_DESCRIPTION="Bad Media Description",o.CANCELED="Canceled",o.EXPIRES="Expires",o.NO_ACK="No ACK",o.NO_ANSWER="No Answer",o.NO_PRACK="No PRACK",o.RTP_TIMEOUT="RTP Timeout",o.USER_DENIED_MEDIA_ACCESS="User Denied Media Access",o.WEBRTC_ERROR="WebRTC Error",o.WEBRTC_NOT_SUPPORTED="WebRTC Not Supported",function(e){e.REQUIRED="required",e.SUPPORTED="supported",e.UNSUPPORTED="none"}(n.supported||(n.supported={})),n.SIP_ERROR_CAUSES={ADDRESS_INCOMPLETE:[484],AUTHENTICATION_ERROR:[401,407],BUSY:[486,600],INCOMPATIBLE_SDP:[488,606],NOT_FOUND:[404,604],REDIRECTED:[300,301,302,305,380],REJECTED:[403,603],UNAVAILABLE:[480,410,408,430]},n.ACK="ACK",n.BYE="BYE",n.CANCEL="CANCEL",n.INFO="INFO",n.INVITE="INVITE",n.MESSAGE="MESSAGE",n.NOTIFY="NOTIFY",n.OPTIONS="OPTIONS",n.REGISTER="REGISTER",n.UPDATE="UPDATE",n.SUBSCRIBE="SUBSCRIBE",n.PUBLISH="PUBLISH",n.REFER="REFER",n.PRACK="PRACK",n.REASON_PHRASE={100:"Trying",180:"Ringing",181:"Call Is Being Forwarded",182:"Queued",183:"Session Progress",199:"Early Dialog Terminated",200:"OK",202:"Accepted",204:"No Notification",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",305:"Use Proxy",380:"Alternative Service",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",410:"Gone",412:"Conditional Request Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Unsupported URI Scheme",417:"Unknown Resource-Priority",420:"Bad Extension",421:"Extension Required",422:"Session Interval Too Small",423:"Interval Too Brief",428:"Use Identity Header",429:"Provide Referrer Identity",430:"Flow Failed",433:"Anonymity Disallowed",436:"Bad Identity-Info",437:"Unsupported Certificate",438:"Invalid Identity Header",439:"First Hop Lacks Outbound Support",440:"Max-Breadth Exceeded",469:"Bad Info Package",470:"Consent Needed",478:"Unresolvable Destination",480:"Temporarily Unavailable",481:"Call/Transaction Does Not Exist",482:"Loop Detected",483:"Too Many Hops",484:"Address Incomplete",485:"Ambiguous",486:"Busy Here",487:"Request Terminated",488:"Not Acceptable Here",489:"Bad Event",491:"Request Pending",493:"Undecipherable",494:"Security Agreement Required",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Server Time-out",505:"Version Not Supported",513:"Message Too Large",580:"Precondition Failure",600:"Busy Everywhere",603:"Decline",604:"Does Not Exist Anywhere",606:"Not Acceptable"},n.OPTION_TAGS={"100rel":!0,199:!0,answermode:!0,"early-session":!0,eventlist:!0,explicitsub:!0,"from-change":!0,"geolocation-http":!0,"geolocation-sip":!0,gin:!0,gruu:!0,histinfo:!0,ice:!0,join:!0,"multiple-refer":!0,norefersub:!0,nosub:!0,outbound:!0,path:!0,policy:!0,precondition:!0,pref:!0,privacy:!0,"recipient-list-invite":!0,"recipient-list-message":!0,"recipient-list-subscribe":!0,replaces:!0,"resource-priority":!0,"sdp-anat":!0,"sec-agree":!0,tdialog:!0,timer:!0,uui:!0},function(e){e.INFO="info",e.RTP="rtp"}(n.dtmfType||(n.dtmfType={}))},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(1),i=r(0),a=r(4);(n=t.Utils||(t.Utils={})).defer=function(){var e={};return e.promise=new Promise(function(t,r){e.resolve=t,e.reject=r}),e},n.reducePromises=function(e,t){return e.reduce(function(e,t){return e.then(t)},Promise.resolve(t))},n.str_utf8_length=function(e){return encodeURIComponent(e).replace(/%[A-F\d]{2}/g,"U").length},n.generateFakeSDP=function(e){if(e){var t=e.indexOf("o="),r=e.indexOf("\r\n",t);return"v=0\r\n"+e.slice(t,r)+"\r\ns=-\r\nt=0 0\r\nc=IN IP4 0.0.0.0"}},n.isDecimal=function(e){var t=parseInt(e,10);return!isNaN(t)&&parseFloat(e)===t},n.createRandomToken=function(e,t){void 0===t&&(t=32);for(var r="",n=0;n<e;n++)r+=Math.floor(Math.random()*t).toString(t);return r},n.newTag=function(){return n.createRandomToken(10)},n.newUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.floor(16*Math.random());return("x"===e?t:t%4+8).toString(16)})},n.normalizeTarget=function(e,t){if(e){if(e.type===i.TypeStrings.URI)return e;if("string"==typeof e){var r=e.split("@"),s=void 0,l=void 0;switch(r.length){case 1:if(!t)return;s=e,l=t;break;case 2:s=r[0],l=r[1];break;default:s=r.slice(0,r.length-1).join("@"),l=r[r.length-1]}return s=s.replace(/^(sips?|tel):/i,""),/^[\-\.\(\)]*\+?[0-9\-\.\(\)]+$/.test(s)&&(s=s.replace(/[\-\.\(\)]/g,"")),e=o.C.SIP+":"+n.escapeUser(s)+"@"+l,a.Grammar.URIParse(e)}}},n.escapeUser=function(e){return encodeURIComponent(decodeURIComponent(e)).replace(/%3A/gi,":").replace(/%2B/gi,"+").replace(/%3F/gi,"?").replace(/%2F/gi,"/")},n.headerize=function(e){for(var t={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},r=e.toLowerCase().replace(/_/g,"-").split("-"),n=r.length,o="",i=0;i<n;i++)0!==i&&(o+="-"),o+=r[i].charAt(0).toUpperCase()+r[i].substring(1);return t[o]&&(o=t[o]),o},n.sipErrorCause=function(e){for(var t in o.C.SIP_ERROR_CAUSES)if(-1!==o.C.SIP_ERROR_CAUSES[t].indexOf(e))return o.C.causes[t];return o.C.causes.SIP_FAILURE_CODE},n.getReasonPhrase=function(e,t){return t||o.C.REASON_PHRASE[e]||""},n.getReasonHeaderValue=function(e,t){return"SIP;cause="+e+';text="'+(t=n.getReasonPhrase(e,t))+'"'},n.getCancelReason=function(e,t){if(e&&e<200||e>699)throw new TypeError("Invalid statusCode: "+e);if(e)return n.getReasonHeaderValue(e,t)},n.buildStatusLine=function(e,t){if(!e||e<100||e>699)throw new TypeError("Invalid statusCode: "+e);if(t&&"string"!=typeof t&&!(t instanceof String))throw new TypeError("Invalid reason: "+t);return"SIP/2.0 "+e+" "+(t=n.getReasonPhrase(e,t))+"\r\n"}},function(e,t,r){var n,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var o,i,a;if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r);if(void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,console&&console.warn}return e}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=function(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,i(this.listener,this.target,e))}.bind(n);return o.listener=r,n.wrapFn=o,o}function p(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):f(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function f(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var c=l.length,u=f(l,c);for(r=0;r<c;++r)i(u[r],this,t)}return!0},s.prototype.addListener=function(e,t){return u(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return u(this,e,t,!0)},s.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,n,o,i,a;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);if(void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(31);(n=t.Grammar||(t.Grammar={})).parse=function(e,t){var r={startRule:t};try{o.parse(e,r)}catch(n){r.data=-1}return r.data},n.nameAddrHeaderParse=function(e){var t=n.parse(e,"Name_Addr_Header");return-1!==t?t:void 0},n.URIParse=function(e){var t=n.parse(e,"SIP_URI");return-1!==t?t:void 0}},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=function(e){function t(t,r,n){var o=e.call(this,n)||this;return o.code=t,o.name=r,o.message=n,o}return o(t,e),t}(Error);!function(e){var t=function(e){function t(t,r){var n=e.call(this,1,"CONFIGURATION_ERROR",r?"Invalid value "+JSON.stringify(r)+" for parameter '"+t+"'":"Missing parameter: "+t)||this;return n.type=i.TypeStrings.ConfigurationError,n.parameter=t,n.value=r,n}return o(t,e),t}(a);e.ConfigurationError=t;var r=function(e){function t(t){var r=e.call(this,2,"INVALID_STATE_ERROR","Invalid status: "+t)||this;return r.type=i.TypeStrings.InvalidStateError,r.status=t,r}return o(t,e),t}(a);e.InvalidStateError=r;var n=function(e){function t(t){var r=e.call(this,3,"NOT_SUPPORTED_ERROR",t)||this;return r.type=i.TypeStrings.NotSupportedError,r}return o(t,e),t}(a);e.NotSupportedError=n;var s=function(e){function t(t){var r=e.call(this,5,"RENEGOTIATION_ERROR",t)||this;return r.type=i.TypeStrings.RenegotiationError,r}return o(t,e),t}(a);e.RenegotiationError=s;var l=function(e){function t(t,r,n){var o=e.call(this,6,"METHOD_PARAMETER_ERROR",n?"Invalid value "+JSON.stringify(n)+" for parameter '"+r+"'":"Missing parameter: "+r)||this;return o.type=i.TypeStrings.MethodParameterError,o.method=t,o.parameter=r,o.value=n,o}return o(t,e),t}(a);e.MethodParameterError=l;var c=function(e){function t(t){var r=e.call(this,7,"TRANSPORT_ERROR",t)||this;return r.type=i.TypeStrings.TransportError,r}return o(t,e),t}(a);e.TransportError=c;var u=function(e){function t(t,r,n){var o=e.call(this,8,"SESSION_DESCRIPTION_HANDLER_ERROR",n||"Error with Session Description Handler")||this;return o.type=i.TypeStrings.SessionDescriptionHandlerError,o.method=t,o.error=r,o}return o(t,e),t}(a);e.SessionDescriptionHandlerError=u}(t.Exceptions||(t.Exceptions={}))},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(1),a=r(0),s=r(4),l=r(2),c=function(e){var t=[];e.method===i.C.REGISTER?t.push("path","gruu"):e.method===i.C.INVITE&&(e.ua.contact.pubGruu||e.ua.contact.tempGruu)&&t.push("gruu"),e.ua.configuration.rel100===i.C.supported.SUPPORTED&&t.push("100rel"),e.ua.configuration.replaces===i.C.supported.SUPPORTED&&t.push("replaces"),t.push("outbound"),t=t.concat(e.ua.configuration.extraSupported||[]);var r=e.ua.configuration.hackAllowUnregisteredOptionTags||!1,n={};return"Supported: "+(t=t.filter(function(e){var t=i.C.OPTION_TAGS[e],o=!n[e];return n[e]=!0,(t||r)&&o})).join(", ")+"\r\n"},u=function(){function e(e,t,r,n,o,i){void 0===n&&(n={}),this.type=a.TypeStrings.OutgoingRequest,this.logger=r.getLogger("sip.sipmessage"),this.ua=r,this.headers={},this.method=e,this.ruri=t,this.body=i,this.extraHeaders=(o||[]).slice(),this.statusCode=n.statusCode,this.reasonPhrase=n.reasonPhrase,n.routeSet?this.setHeader("route",n.routeSet):r.configuration.usePreloadedRoute&&r.transport&&this.setHeader("route",r.transport.server.sipUri),this.setHeader("via",""),this.setHeader("max-forwards","70");var c=n.toUri||t,u=n.toDisplayName||0===n.toDisplayName?'"'+n.toDisplayName+'" ':"";u+="<"+(c.type===a.TypeStrings.URI?c.toRaw():c)+">",u+=n.toTag?";tag="+n.toTag:"",this.to=s.Grammar.nameAddrHeaderParse(u),this.setHeader("to",u);var d,p=n.fromUri||r.configuration.uri||"";d=n.fromDisplayName||0===n.fromDisplayName?'"'+n.fromDisplayName+'" ':r.configuration.displayName?'"'+r.configuration.displayName+'" ':"",d+="<"+(p.type===a.TypeStrings.URI?p.toRaw():p)+">;tag=",d+=n.fromTag||l.Utils.newTag(),this.from=s.Grammar.nameAddrHeaderParse(d),this.setHeader("from",d),this.callId=n.callId||r.configuration.sipjsId+l.Utils.createRandomToken(15),this.setHeader("call-id",this.callId),this.cseq=n.cseq||Math.floor(1e4*Math.random()),this.setHeader("cseq",this.cseq+" "+e)}return e.prototype.setHeader=function(e,t){this.headers[l.Utils.headerize(e)]=t instanceof Array?t:[t]},e.prototype.getHeader=function(e){var t=this.headers[l.Utils.headerize(e)];if(t){if(t[0])return t[0]}else for(var r=new RegExp("^\\s*"+e+"\\s*:","i"),n=0,o=this.extraHeaders;n<o.length;n++){var i=o[n];if(r.test(i))return i.substring(i.indexOf(":")+1).trim()}},e.prototype.cancel=function(e,t){},e.prototype.getHeaders=function(e){var t=[],r=this.headers[l.Utils.headerize(e)];if(r)for(var n=0,o=r;n<o.length;n++){var i=o[n];t.push(i)}else for(var a=new RegExp("^\\s*"+e+"\\s*:","i"),s=0,c=this.extraHeaders;s<c.length;s++){var u=c[s];a.test(u)&&t.push(u.substring(u.indexOf(":")+1).trim())}return t},e.prototype.hasHeader=function(e){if(this.headers[l.Utils.headerize(e)])return!0;for(var t=new RegExp("^\\s*"+e+"\\s*:","i"),r=0,n=this.extraHeaders;r<n.length;r++){var o=n[r];if(t.test(o))return!0}return!1},e.prototype.toString=function(){var e="";for(var t in e+=this.method+" "+(this.ruri.type===a.TypeStrings.URI?this.ruri.toRaw():this.ruri)+" SIP/2.0\r\n",this.headers)if(this.headers[t])for(var r=0,n=this.headers[t];r<n.length;r++)e+=t+": "+n[r]+"\r\n";for(var o=0,i=this.extraHeaders;o<i.length;o++)e+=(t=i[o]).trim()+"\r\n";return e+=c(this),e+="User-Agent: "+this.ua.configuration.userAgentString+"\r\n",this.body?"string"==typeof this.body?(e+="Content-Length: "+l.Utils.str_utf8_length(this.body)+"\r\n\r\n",e+=this.body):this.body.body&&this.body.contentType?(e+="Content-Type: "+this.body.contentType+"\r\n",e+="Content-Length: "+l.Utils.str_utf8_length(this.body.body)+"\r\n\r\n",e+=this.body.body):e+="Content-Length: 0\r\n\r\n":e+="Content-Length: 0\r\n\r\n",e},e}();t.OutgoingRequest=u;var d=function(){function e(){this.type=a.TypeStrings.IncomingMessage,this.headers={}}return e.prototype.addHeader=function(e,t){var r={raw:t};e=l.Utils.headerize(e),this.headers[e]?this.headers[e].push(r):this.headers[e]=[r]},e.prototype.getHeader=function(e){var t=this.headers[l.Utils.headerize(e)];if(t)return t[0]?t[0].raw:void 0},e.prototype.getHeaders=function(e){var t=this.headers[l.Utils.headerize(e)],r=[];if(!t)return[];for(var n=0,o=t;n<o.length;n++){var i=o[n];r.push(i.raw)}return r},e.prototype.hasHeader=function(e){return!!this.headers[l.Utils.headerize(e)]},e.prototype.parseHeader=function(e,t){if(void 0===t&&(t=0),e=l.Utils.headerize(e),this.headers[e]&&!(t>=this.headers[e].length)){var r=this.headers[e][t],n=r.raw;if(r.parsed)return r.parsed;var o=s.Grammar.parse(n,e.replace(/-/g,"_"));return-1===o?void this.headers[e].splice(t,1):(r.parsed=o,o)}},e.prototype.s=function(e,t){return void 0===t&&(t=0),this.parseHeader(e,t)},e.prototype.setHeader=function(e,t){this.headers[l.Utils.headerize(e)]=[{raw:t}]},e.prototype.toString=function(){return this.data},e}(),p=function(e){function t(t){var r=e.call(this)||this;return r.type=a.TypeStrings.IncomingRequest,r.logger=t.getLogger("sip.sipmessage"),r.ua=t,r}return o(t,e),t.prototype.reply=function(e,t,r,n,o,a){var s=l.Utils.buildStatusLine(e,t);if(r=(r||[]).slice(),this.method===i.C.INVITE&&e>100&&e<=200)for(var u=0,d=this.getHeaders("record-route");u<d.length;u++)s+="Record-Route: "+d[u]+"\r\n";for(var p=0,h=this.getHeaders("via");p<h.length;p++)s+="Via: "+h[p]+"\r\n";var f=this.getHeader("to")||"";!this.toTag&&e>100?f+=";tag="+l.Utils.newTag():this.toTag&&!this.s("to").hasParam("tag")&&(f+=";tag="+this.toTag),s+="To: "+f+"\r\n",s+="From: "+this.getHeader("From")+"\r\n",s+="Call-ID: "+this.callId+"\r\n",s+="CSeq: "+this.cseq+" "+this.method+"\r\n";for(var v=0,m=r;v<m.length;v++)s+=m[v].trim()+"\r\n";return s+=c(this),s+="User-Agent: "+this.ua.configuration.userAgentString+"\r\n",n?"string"==typeof n?(s+="Content-Type: application/sdp\r\n",s+="Content-Length: "+l.Utils.str_utf8_length(n)+"\r\n\r\n",s+=n):n.body&&n.contentType?(s+="Content-Type: "+n.contentType+"\r\n",s+="Content-Length: "+l.Utils.str_utf8_length(n.body)+"\r\n\r\n",s+=n.body):s+="Content-Length: 0\r\n\r\n":s+="Content-Length: 0\r\n\r\n",this.serverTransaction&&this.serverTransaction.receiveResponse(e,s).then(o,a),s},t.prototype.reply_sl=function(e,t){for(var r=l.Utils.buildStatusLine(e,t),n=0,o=this.getHeaders("via");n<o.length;n++)r+="Via: "+o[n]+"\r\n";var i=this.getHeader("To")||"";!this.toTag&&e>100?i+=";tag="+l.Utils.newTag():this.toTag&&!this.s("to").hasParam("tag")&&(i+=";tag="+this.toTag),r+="To: "+i+"\r\n",r+="From: "+this.getHeader("From")+"\r\n",r+="Call-ID: "+this.callId+"\r\n",r+="CSeq: "+this.cseq+" "+this.method+"\r\n",r+="User-Agent: "+this.ua.configuration.userAgentString+"\r\n",r+="Content-Length: 0\r\n\r\n",this.transport&&this.transport.send(r)},t}(d);t.IncomingRequest=p;var h=function(e){function t(t){var r=e.call(this)||this;return r.type=a.TypeStrings.IncomingResponse,r.logger=t.getLogger("sip.sipmessage"),r.headers={},r}return o(t,e),t}(d);t.IncomingResponse=h},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),a=r(1),s=r(0),l=r(8),c=r(6),u=r(2),d=function(e){function t(r,n,o,i){var a=e.call(this)||this;return a.data={},t.initializer(a,r,n,o,i),a}return o(t,e),t.initializer=function(e,t,r,n,o){if(e.type=s.TypeStrings.ClientContext,void 0===n)throw new TypeError("Not enough arguments");e.ua=t,e.logger=t.getLogger("sip.clientcontext"),e.method=r;var i=t.normalizeTarget(n);if(!i)throw new TypeError("Invalid target: "+n);(o=Object.create(o||Object.prototype)).extraHeaders=(o.extraHeaders||[]).slice(),e.request=new c.OutgoingRequest(e.method,i,e.ua,o.params,o.extraHeaders),o.body&&(e.body={},e.body.body=o.body,o.contentType&&(e.body.contentType=o.contentType),e.request.body=e.body),e.request.from&&(e.localIdentity=e.request.from),e.request.to&&(e.remoteIdentity=e.request.to)},t.prototype.send=function(){return new l.RequestSender(this,this.ua).send(),this},t.prototype.receiveResponse=function(e){var t=e.statusCode||0,r=u.Utils.getReasonPhrase(t);switch(!0){case/^1[0-9]{2}$/.test(t.toString()):this.emit("progress",e,r);break;case/^2[0-9]{2}$/.test(t.toString()):this.ua.applicants[this.toString()]&&delete this.ua.applicants[this.toString()],this.emit("accepted",e,r);break;default:this.ua.applicants[this.toString()]&&delete this.ua.applicants[this.toString()],this.emit("rejected",e,r),this.emit("failed",e,r)}},t.prototype.onRequestTimeout=function(){this.emit("failed",void 0,a.C.causes.REQUEST_TIMEOUT)},t.prototype.onTransportError=function(){this.emit("failed",void 0,a.C.causes.CONNECTION_ERROR)},t}(i.EventEmitter);t.ClientContext=d},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(0),i=r(9),a=function(){function e(e,t){this.type=o.TypeStrings.RequestSender,this.logger=t.getLogger("sip.requestsender"),this.ua=t,this.applicant=e,this.method=e.request.method,this.request=e.request,this.credentials=void 0,this.challenged=!1,this.staled=!1,t.status===o.UAStatus.STATUS_USER_CLOSED&&this.method!==n.C.BYE&&this.method!==n.C.ACK&&this.onTransportError()}return e.prototype.send=function(){if(!this.ua.transport)throw new Error("No transport to make transaction");switch(this.method){case"INVITE":this.clientTransaction=new i.InviteClientTransaction(this,this.request,this.ua.transport);break;case"ACK":this.clientTransaction=new i.AckClientTransaction(this,this.request,this.ua.transport);break;default:this.clientTransaction=new i.NonInviteClientTransaction(this,this.request,this.ua.transport)}return this.clientTransaction.send(),this.clientTransaction},e.prototype.onRequestTimeout=function(){this.applicant.onRequestTimeout()},e.prototype.onTransportError=function(){this.applicant.onTransportError()},e.prototype.receiveResponse=function(e){var t=e&&e.statusCode?e.statusCode:0;if(401===t||407===t){var r=void 0,o=void 0;if(401===t?(r=e.parseHeader("www-authenticate"),o="authorization"):(r=e.parseHeader("proxy-authenticate"),o="proxy-authorization"),!r)return this.logger.warn(t+" with wrong or missing challenge, cannot authenticate"),void this.applicant.receiveResponse(e);if(!this.challenged||!this.staled&&!0===r.stale){if(!this.credentials&&this.ua.configuration.authenticationFactory&&(this.credentials=this.ua.configuration.authenticationFactory(this.ua)),!this.credentials.authenticate(this.request,r))return void this.applicant.receiveResponse(e);this.challenged=!0,r.stale&&(this.staled=!0);var i=void 0;e.method===n.C.REGISTER?i=this.applicant.cseq+=1:this.request.dialog?i=this.request.dialog.localSeqnum+=1:(i=(this.request.cseq||0)+1,this.request.cseq=i),this.request.setHeader("cseq",i+" "+this.method),this.request.setHeader(o,this.credentials.toString()),this.send()}else this.applicant.receiveResponse(e)}else this.applicant.receiveResponse(e)},e}();t.RequestSender=a},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),a=r(1),s=r(0),l=r(6),c=r(11),u=2,d=4,p=5,h=6,f="nict",v="nist",m="ict",g="ist",y=function(e,t,r){var n="SIP/2.0/"+(e.configuration.hackViaTcp?"TCP":t.server.scheme);return n+=" "+e.configuration.viaHost+";branch="+r,e.configuration.forceRport&&(n+=";rport"),n},C=function(e){function t(t,r,n){var o=e.call(this)||this;o.kind=f,o.type=s.TypeStrings.NonInviteClientTransaction,o.transport=n,o.id="z9hG4bK"+Math.floor(1e7*Math.random()),o.requestSender=t,o.request=r,o.logger=t.ua.getLogger("sip.transaction.nict",o.id);var i=y(t.ua,n,o.id);return o.request.setHeader("via",i),o.requestSender.ua.newTransaction(o),o}return o(t,e),t.prototype.stateChanged=function(e){this.state=e,this.emit("stateChanged")},t.prototype.send=function(){var e=this;this.stateChanged(s.TransactionStatus.STATUS_TRYING),this.F=setTimeout(function(){return e.timer_F()},c.Timers.TIMER_F),this.transport.send(this.request).catch(function(){return e.onTransportError()})},t.prototype.receiveResponse=function(e){var t=this,r=e.statusCode||0;if(r<200)switch(this.state){case s.TransactionStatus.STATUS_TRYING:case s.TransactionStatus.STATUS_PROCEEDING:this.stateChanged(s.TransactionStatus.STATUS_PROCEEDING),this.requestSender.receiveResponse(e)}else switch(this.state){case s.TransactionStatus.STATUS_TRYING:case s.TransactionStatus.STATUS_PROCEEDING:this.stateChanged(s.TransactionStatus.STATUS_COMPLETED),this.F&&clearTimeout(this.F),408===r?this.requestSender.onRequestTimeout():this.requestSender.receiveResponse(e),this.K=setTimeout(function(){return t.timer_K()},c.Timers.TIMER_K);case s.TransactionStatus.STATUS_COMPLETED:}},t.prototype.onTransportError=function(){this.logger.log("transport error occurred, deleting non-INVITE client transaction "+this.id),this.F&&(clearTimeout(this.F),this.F=void 0),this.K&&(clearTimeout(this.K),this.K=void 0),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this),this.requestSender.onTransportError()},t.prototype.timer_F=function(){this.logger.debug("Timer F expired for non-INVITE client transaction "+this.id),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this),this.requestSender.onRequestTimeout()},t.prototype.timer_K=function(){this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this)},t}(i.EventEmitter);t.NonInviteClientTransaction=C;var S=function(e){function t(t,r,n){var o=e.call(this)||this;o.kind=m,o.type=s.TypeStrings.InviteClientTransaction,o.transport=n,o.id="z9hG4bK"+Math.floor(1e7*Math.random()),o.requestSender=t,o.request=r,o.logger=t.ua.getLogger("sip.transaction.ict",o.id);var i=y(t.ua,n,o.id);return o.request.setHeader("via",i),o.requestSender.ua.newTransaction(o),o.request.cancel=function(e,t){for(var r="",n=0,i=t=(t||[]).slice();n<i.length;n++)r+=i[n].trim()+"\r\n";o.cancelRequest(o,e,r)},o}return o(t,e),t.prototype.stateChanged=function(e){this.state=e,this.emit("stateChanged")},t.prototype.send=function(){var e=this;this.stateChanged(s.TransactionStatus.STATUS_CALLING),this.B=setTimeout(function(){return e.timer_B()},c.Timers.TIMER_B),this.transport.send(this.request).catch(function(){return e.onTransportError()})},t.prototype.receiveResponse=function(e){var t=this,r=e.statusCode||0;if(e.transaction=this,this.response&&this.response.statusCode===e.statusCode&&this.response.cseq===e.cseq)return this.logger.debug("ICT Received a retransmission for cseq: "+e.cseq),void(this.ackSender&&this.ackSender.send());if(this.response=e,r>=100&&r<=199)switch(this.state){case s.TransactionStatus.STATUS_CALLING:this.stateChanged(s.TransactionStatus.STATUS_PROCEEDING),this.requestSender.receiveResponse(e),this.cancel&&this.transport.send(this.cancel);break;case s.TransactionStatus.STATUS_PROCEEDING:this.requestSender.receiveResponse(e)}else if(r>=200&&r<=299)switch(this.state){case s.TransactionStatus.STATUS_CALLING:case s.TransactionStatus.STATUS_PROCEEDING:this.stateChanged(s.TransactionStatus.STATUS_ACCEPTED),this.M=setTimeout(function(){return t.timer_M()},c.Timers.TIMER_M),this.requestSender.receiveResponse(e);break;case d:this.requestSender.receiveResponse(e)}else if(r>=300&&r<=699)switch(this.state){case s.TransactionStatus.STATUS_CALLING:case s.TransactionStatus.STATUS_PROCEEDING:this.stateChanged(s.TransactionStatus.STATUS_COMPLETED),this.sendACK(),this.requestSender.receiveResponse(e);break;case s.TransactionStatus.STATUS_COMPLETED:this.sendACK()}},t.prototype.sendACK=function(e){var t,r=this;if(void 0===e&&(e={}),t=this.response&&this.response.getHeader("contact")?this.response.parseHeader("contact").uri:this.request.ruri,this.response){var n=new l.OutgoingRequest("ACK",t.toString(),this.request.ua,{cseq:this.response.cseq,callId:this.response.callId,fromUri:this.response.from.uri,fromTag:this.response.fromTag,toUri:this.response.to.uri,toTag:this.response.toTag,routeSet:this.response.getHeaders("record-route").reverse()},e.extraHeaders||[],e.body);if(!n.ua.transport)throw new Error("No transport to make transaction");return this.ackSender=new T({onTransportError:this.requestSender.applicant?this.requestSender.applicant.onTransportError.bind(this.requestSender.applicant):function(){r.logger.warn("ACK Request had a transport error")},ua:n.ua},n,n.ua.transport),this.ackSender.send(),n}},t.prototype.onTransportError=function(){this.logger.log("transport error occurred, deleting INVITE client transaction "+this.id),this.B&&(clearTimeout(this.B),this.B=void 0),this.D&&(clearTimeout(this.D),this.D=void 0),this.M&&(clearTimeout(this.M),this.M=void 0),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this),this.state!==s.TransactionStatus.STATUS_ACCEPTED&&this.requestSender.onTransportError()},t.prototype.timer_M=function(){this.logger.debug("Timer M expired for INVITE client transaction "+this.id),this.state===s.TransactionStatus.STATUS_ACCEPTED&&(this.B&&(clearTimeout(this.B),this.B=void 0),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this))},t.prototype.timer_B=function(){this.logger.debug("Timer B expired for INVITE client transaction "+this.id),this.state===s.TransactionStatus.STATUS_CALLING&&(this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this),this.requestSender.onRequestTimeout())},t.prototype.timer_D=function(){this.logger.debug("Timer D expired for INVITE client transaction "+this.id),this.B&&(clearTimeout(this.B),this.B=void 0),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this)},t.prototype.cancelRequest=function(e,t,r){var n=e.request;this.cancel=a.C.CANCEL+" "+n.ruri+" SIP/2.0\r\n",this.cancel+="Via: "+n.headers.Via.toString()+"\r\n",this.request.headers.Route&&(this.cancel+="Route: "+n.headers.Route.toString()+"\r\n"),this.cancel+="To: "+n.headers.To.toString()+"\r\n",this.cancel+="From: "+n.headers.From.toString()+"\r\n",this.cancel+="Call-ID: "+n.headers["Call-ID"].toString()+"\r\n",this.cancel+="Max-Forwards: 70\r\n",this.cancel+="CSeq: "+n.headers.CSeq.toString().split(" ")[0]+" CANCEL\r\n",t&&(this.cancel+="Reason: "+t+"\r\n"),r&&(this.cancel+=r),this.cancel+="Content-Length: 0\r\n\r\n",this.state===s.TransactionStatus.STATUS_PROCEEDING&&this.transport.send(this.cancel)},t}(i.EventEmitter);t.InviteClientTransaction=S;var T=function(e){function t(t,r,n){var o=e.call(this)||this;o.type=s.TypeStrings.AckClientTransaction,o.transport=n,o.id="z9hG4bK"+Math.floor(1e7*Math.random()),o.requestSender=t,o.request=r,o.logger=t.ua.getLogger("sip.transaction.nict",o.id);var i=y(t.ua,n,o.id);return o.request.setHeader("via",i),o}return o(t,e),t.prototype.send=function(){var e=this;this.transport.send(this.request).catch(function(){e.logger.log("transport error occurred, for an ACK client transaction "+e.id),e.requestSender.onTransportError()})},t}(i.EventEmitter);t.AckClientTransaction=T;var b=function(e){function t(t,r){var n=e.call(this)||this;return n.kind=v,n.type=s.TypeStrings.NonInviteServerTransaction,n.id=t.viaBranch,n.request=t,n.transport=r.transport,n.ua=r,n.lastResponse="",n.transportError=!1,t.serverTransaction=n,n.logger=r.getLogger("sip.transaction.nist",n.id),n.state=s.TransactionStatus.STATUS_TRYING,r.newTransaction(n),n}return o(t,e),t.prototype.stateChanged=function(e){this.state=e,this.emit("stateChanged")},t.prototype.receiveResponse=function(e,t){var r=this;return new Promise(function(n,o){if(100===e)switch(r.state){case s.TransactionStatus.STATUS_TRYING:r.stateChanged(u),r.transport&&r.transport.send(t).catch(function(){return r.onTransportError()});break;case s.TransactionStatus.STATUS_PROCEEDING:r.lastResponse=t,r.transport&&r.transport.send(t).then(n).catch(function(){r.onTransportError(),o()})}else if(e>=200&&e<=699)switch(r.state){case s.TransactionStatus.STATUS_TRYING:case s.TransactionStatus.STATUS_PROCEEDING:r.stateChanged(p),r.lastResponse=t,r.J=setTimeout(function(){r.logger.debug("Timer J expired for non-INVITE server transaction "+r.id),r.stateChanged(h),r.ua.destroyTransaction(r)},c.Timers.TIMER_J),r.transport&&r.transport.send(t).then(n).catch(function(){r.onTransportError(),o()});case s.TransactionStatus.STATUS_COMPLETED:}})},t.prototype.onTransportError=function(){this.transportError||(this.transportError=!0,this.logger.log("transport error occurred, deleting non-INVITE server transaction "+this.id),this.J&&(clearTimeout(this.J),this.J=void 0),this.stateChanged(h),this.ua.destroyTransaction(this))},t}(i.EventEmitter);t.NonInviteServerTransaction=b;var w=function(e){function t(t,r){var n=e.call(this)||this;return n.kind=g,n.type=s.TypeStrings.InviteServerTransaction,n.id=t.viaBranch,n.request=t,n.transport=r.transport,n.ua=r,n.lastResponse="",n.transportError=!1,t.serverTransaction=n,n.logger=r.getLogger("sip.transaction.ist",n.id),n.state=s.TransactionStatus.STATUS_PROCEEDING,r.newTransaction(n),t.reply(100),n}return o(t,e),t.prototype.stateChanged=function(e){this.state=e,this.emit("stateChanged")},t.prototype.timer_I=function(){this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.ua.destroyTransaction(this)},t.prototype.receiveResponse=function(e,t){var r=this;return new Promise(function(n,o){if(e>=100&&e<=199&&r.state===s.TransactionStatus.STATUS_PROCEEDING)r.transport&&r.transport.send(t).catch(function(){return r.onTransportError()}),r.lastResponse=t,e>100&&void 0===r.resendProvisionalTimer&&(r.resendProvisionalTimer=setInterval(function(){r.transport&&r.transport.send(t).catch(function(){return r.onTransportError()})},c.Timers.PROVISIONAL_RESPONSE_INTERVAL));else if(e>=200&&e<=299)switch(r.state){case s.TransactionStatus.STATUS_PROCEEDING:r.stateChanged(d),r.lastResponse=t,r.L=setTimeout(function(){return r.timer_L()},c.Timers.TIMER_L),void 0!==r.resendProvisionalTimer&&(clearInterval(r.resendProvisionalTimer),r.resendProvisionalTimer=void 0);case s.TransactionStatus.STATUS_ACCEPTED:r.transport&&r.transport.send(t).then(n).catch(function(e){r.logger.error(e),r.onTransportError(),o()})}else e>=300&&e<=699&&r.state===s.TransactionStatus.STATUS_PROCEEDING&&(void 0!==r.resendProvisionalTimer&&(clearInterval(r.resendProvisionalTimer),r.resendProvisionalTimer=void 0),r.transport&&r.transport.send(t).then(function(){r.stateChanged(s.TransactionStatus.STATUS_COMPLETED),r.H=setTimeout(function(){return r.timer_H()},c.Timers.TIMER_H),n()}).catch(function(e){r.logger.error(e),r.onTransportError(),o()}))})},t.prototype.timer_H=function(){this.logger.debug("Timer H expired for INVITE server transaction "+this.id),this.state===s.TransactionStatus.STATUS_COMPLETED&&this.logger.warn("transactions: ACK for INVITE server transaction was never received, call will be terminated"),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.ua.destroyTransaction(this)},t.prototype.timer_L=function(){this.logger.debug("Timer L expired for INVITE server transaction "+this.id),this.state===s.TransactionStatus.STATUS_ACCEPTED&&(this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.ua.destroyTransaction(this))},t.prototype.onTransportError=function(){this.transportError||(this.transportError=!0,this.logger.log("transport error occurred, deleting INVITE server transaction "+this.id),void 0!==this.resendProvisionalTimer&&(clearInterval(this.resendProvisionalTimer),this.resendProvisionalTimer=void 0),this.L&&(clearTimeout(this.L),this.L=void 0),this.H&&(clearTimeout(this.H),this.H=void 0),this.I&&(clearTimeout(this.I),this.I=void 0),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.ua.destroyTransaction(this))},t}(i.EventEmitter);t.InviteServerTransaction=w,t.checkTransaction=function(e,t){var r=e.transactions.ist[t.viaBranch];switch(t.method){case a.C.INVITE:if(r){switch(r.state){case s.TransactionStatus.STATUS_PROCEEDING:r.transport&&r.transport.send(r.lastResponse);case s.TransactionStatus.STATUS_ACCEPTED:}return!0}break;case a.C.ACK:if(!r)return!1;if(r.state===s.TransactionStatus.STATUS_ACCEPTED)return!1;if(r.state===s.TransactionStatus.STATUS_COMPLETED)return r.stateChanged(s.TransactionStatus.STATUS_CONFIRMED),r.I=setTimeout(r.timer_I.bind(r),c.Timers.TIMER_I),!0;break;case a.C.CANCEL:return r?(t.reply_sl(200),r.state!==s.TransactionStatus.STATUS_PROCEEDING):(t.reply_sl(481),!0);default:var n=e.transactions.nist[t.viaBranch];if(n){switch(n.state){case s.TransactionStatus.STATUS_TRYING:break;case s.TransactionStatus.STATUS_PROCEEDING:case s.TransactionStatus.STATUS_COMPLETED:n.transport&&n.transport.send(n.lastResponse)}return!0}}return!1}},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(1),a=r(0),s=function(){function e(e){for(var t in this.parameters={},this.type=a.TypeStrings.Parameters,e)e.hasOwnProperty(t)&&this.setParam(t,e[t])}return e.prototype.setParam=function(e,t){e&&(this.parameters[e.toLowerCase()]=null==t?null:t.toString())},e.prototype.getParam=function(e){if(e)return this.parameters[e.toLowerCase()]},e.prototype.hasParam=function(e){return!!e&&!!this.parameters.hasOwnProperty(e.toLowerCase())},e.prototype.deleteParam=function(e){if(e=e.toLowerCase(),this.parameters.hasOwnProperty(e)){var t=this.parameters[e];return delete this.parameters[e],t}},e.prototype.clearParams=function(){this.parameters={}},e}();t.Parameters=s;var l=function(e){function t(t,r,n,o,s,l){var c=e.call(this,s)||this;if(c.headers={},c.type=a.TypeStrings.URI,!n)throw new TypeError('missing or invalid "host" parameter');for(var u in t=t||i.C.SIP,l)l.hasOwnProperty(u)&&c.setHeader(u,l[u]);return c.raw={scheme:t,user:r,host:n,port:o},c.normal={scheme:t.toLowerCase(),user:r,host:n.toLowerCase(),port:o},c}return o(t,e),Object.defineProperty(t.prototype,"_normal",{get:function(){return this.normal},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_raw",{get:function(){return this.raw},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scheme",{get:function(){return this.normal.scheme},set:function(e){this.raw.scheme=e,this.normal.scheme=e.toLowerCase()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"user",{get:function(){return this.normal.user},set:function(e){this.normal.user=this.raw.user=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"host",{get:function(){return this.normal.host},set:function(e){this.raw.host=e,this.normal.host=e.toLowerCase()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aor",{get:function(){return this.normal.user+"@"+this.normal.host},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"port",{get:function(){return this.normal.port},set:function(e){this.normal.port=this.raw.port=e},enumerable:!0,configurable:!0}),t.prototype.setHeader=function(e,t){this.headers[this.headerize(e)]=t instanceof Array?t:[t]},t.prototype.getHeader=function(e){if(e)return this.headers[this.headerize(e)]},t.prototype.hasHeader=function(e){return!!e&&!!this.headers.hasOwnProperty(this.headerize(e))},t.prototype.deleteHeader=function(e){if(e=this.headerize(e),this.headers.hasOwnProperty(e)){var t=this.headers[e];return delete this.headers[e],t}},t.prototype.clearHeaders=function(){this.headers={}},t.prototype.clone=function(){return new t(this._raw.scheme,this._raw.user||"",this._raw.host,this._raw.port,JSON.parse(JSON.stringify(this.parameters)),JSON.parse(JSON.stringify(this.headers)))},t.prototype.toRaw=function(){return this._toString(this._raw)},t.prototype.toString=function(){return this._toString(this._normal)},t.prototype._toString=function(e){var t=e.scheme+":";for(var r in e.scheme.toLowerCase().match("^sips?$")||(t+="//"),e.user&&(t+=this.escapeUser(e.user)+"@"),t+=e.host,(e.port||0===e.port)&&(t+=":"+e.port),this.parameters)this.parameters.hasOwnProperty(r)&&(t+=";"+r,null!==this.parameters[r]&&(t+="="+this.parameters[r]));var n=[];for(var o in this.headers)if(this.headers.hasOwnProperty(o))for(var i in this.headers[o])this.headers[o].hasOwnProperty(i)&&n.push(o+"="+this.headers[o][i]);return n.length>0&&(t+="?"+n.join("&")),t},t.prototype.escapeUser=function(e){return encodeURIComponent(decodeURIComponent(e)).replace(/%3A/gi,":").replace(/%2B/gi,"+").replace(/%3F/gi,"?").replace(/%2F/gi,"/")},t.prototype.headerize=function(e){for(var t={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},r=e.toLowerCase().replace(/_/g,"-").split("-"),n=r.length,o="",i=0;i<n;i++)0!==i&&(o+="-"),o+=r[i].charAt(0).toUpperCase()+r[i].substring(1);return t[o]&&(o=t[o]),o},t}(s);t.URI=l},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Timers={T1:500,T2:4e3,T4:5e3,TIMER_B:32e3,TIMER_D:0,TIMER_F:32e3,TIMER_H:32e3,TIMER_I:0,TIMER_J:0,TIMER_K:0,TIMER_L:32e3,TIMER_M:32e3,TIMER_N:32e3,PROVISIONAL_RESPONSE_INTERVAL:6e4}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(0),i=r(8),a=r(6),s=function(){function e(e,t,r,n){if(this.pracked=[],this.uacPendingReply=!1,this.uasPendingReply=!1,this.type=o.TypeStrings.Dialog,!t.hasHeader("contact"))throw new Error("unable to create a Dialog without Contact header field");if(t.type===o.TypeStrings.IncomingResponse){var i=t.statusCode;n=i&&i<200?o.DialogStatus.STATUS_EARLY:o.DialogStatus.STATUS_CONFIRMED}else n=n||o.DialogStatus.STATUS_CONFIRMED;var a=t.parseHeader("contact");"UAS"===r&&t.type===o.TypeStrings.IncomingRequest?(this.id={callId:t.callId,localTag:t.toTag,remoteTag:t.fromTag,toString:function(){return t.callId+t.toTag+t.fromTag}},this.state=n,this.remoteSeqnum=t.cseq,this.localUri=(t.parseHeader("to")||{}).uri,this.remoteUri=(t.parseHeader("from")||{}).uri,this.remoteTarget=a.uri,this.routeSet=t.getHeaders("record-route"),this.inviteSeqnum=t.cseq,this.localSeqnum=t.cseq):(this.id={callId:t.callId,localTag:t.fromTag,remoteTag:t.toTag,toString:function(){return t.callId+t.fromTag+t.toTag}},this.state=n,this.inviteSeqnum=t.cseq,this.localSeqnum=t.cseq,this.localUri=t.parseHeader("from").uri,this.pracked=[],this.remoteUri=t.parseHeader("to").uri,this.remoteTarget=a.uri,this.routeSet=t.getHeaders("record-route").reverse()),this.logger=e.ua.getLogger("sip.dialog",this.id.toString()),this.owner=e,e.ua.dialogs[this.id.toString()]=this,this.logger.log("new "+r+" dialog created with status "+(this.state===o.DialogStatus.STATUS_EARLY?"EARLY":"CONFIRMED")),e.emit("dialog",this)}return e.prototype.update=function(e,t){this.state=o.DialogStatus.STATUS_CONFIRMED,this.logger.log("dialog "+this.id.toString()+" changed to CONFIRMED state"),"UAC"===t&&(this.routeSet=e.getHeaders("record-route").reverse())},e.prototype.terminate=function(){this.logger.log("dialog "+this.id.toString()+" deleted"),this.sessionDescriptionHandler&&this.state!==o.DialogStatus.STATUS_CONFIRMED&&this.sessionDescriptionHandler.close(),delete this.owner.ua.dialogs[this.id.toString()]},e.prototype.createRequest=function(e,t,r){void 0===t&&(t=[]),t=t.slice(),this.localSeqnum||(this.localSeqnum=Math.floor(1e4*Math.random()));var o=e===n.C.CANCEL||e===n.C.ACK?this.inviteSeqnum:this.localSeqnum+=1,i=new a.OutgoingRequest(e,this.remoteTarget,this.owner.ua,{cseq:o,callId:this.id.callId,fromUri:this.localUri,fromTag:this.id.localTag,toIri:this.remoteUri,toTag:this.id.remoteTag,routeSet:this.routeSet},t,r);return i.dialog=this,i},e.prototype.checkInDialogRequest=function(e){var t=this;if(this.remoteSeqnum){if(e.cseq<this.remoteSeqnum)return e.method!==n.C.ACK&&e.reply(500),e.cseq===this.inviteSeqnum}else this.remoteSeqnum=e.cseq;switch(e.method){case n.C.INVITE:if(!0===this.uacPendingReply)e.reply(491);else{if(!0===this.uasPendingReply&&e.cseq>this.remoteSeqnum){var r=Math.floor(10*Math.random())+1;return e.reply(500,void 0,["Retry-After:"+r]),this.remoteSeqnum=e.cseq,!1}this.uasPendingReply=!0;var i=function(){!e.serverTransaction||e.serverTransaction.state!==o.TransactionStatus.STATUS_ACCEPTED&&e.serverTransaction.state!==o.TransactionStatus.STATUS_COMPLETED&&e.serverTransaction.state!==o.TransactionStatus.STATUS_TERMINATED||(e.serverTransaction.removeListener("stateChanged",i),t.uasPendingReply=!1)};e.serverTransaction&&e.serverTransaction.on("stateChanged",i)}e.hasHeader("contact")&&e.serverTransaction&&e.serverTransaction.on("stateChanged",function(){e.serverTransaction&&e.serverTransaction.state===o.TransactionStatus.STATUS_ACCEPTED&&(t.remoteTarget=e.parseHeader("contact").uri)});break;case n.C.NOTIFY:e.hasHeader("contact")&&e.serverTransaction&&e.serverTransaction.on("stateChanged",function(){e.serverTransaction&&e.serverTransaction.state===o.TransactionStatus.STATUS_COMPLETED&&(t.remoteTarget=e.parseHeader("contact").uri)})}return e.cseq>this.remoteSeqnum&&(this.remoteSeqnum=e.cseq),!0},e.prototype.sendRequest=function(e,t,r){var a=this;void 0===r&&(r={});var s,l=(r.extraHeaders||[]).slice();r.body&&(r.body.body?s=r.body:((s={}).body=r.body,r.contentType&&(s.contentType=r.contentType)));var c=this.createRequest(t,l,s),u=function(t){var r=new i.RequestSender({request:c,onRequestTimeout:e.onRequestTimeout.bind(e),onTransportError:e.onTransportError.bind(e),receiveResponse:function(r){408===r.statusCode||481===r.statusCode?e.onDialogError(r):r.method===n.C.INVITE&&491===r.statusCode?t?e.receiveResponse(r):(c.cseq=a.localSeqnum+=1,setTimeout(function(){void 0!==a.owner.status&&a.owner.status!==o.SessionStatus.STATUS_TERMINATED&&u(!0)},1e3)):e.receiveResponse(r)}},a.owner.ua);if(r.send(),r.clientTransaction&&r.clientTransaction.type!==o.TypeStrings.AckClientTransaction&&c.method===n.C.INVITE&&r.clientTransaction&&r.clientTransaction.state!==o.TransactionStatus.STATUS_TERMINATED){a.uacPendingReply=!0;var s=function(){var e=r.clientTransaction.state;r.clientTransaction&&r.clientTransaction.type!==o.TypeStrings.AckClientTransaction&&(!r.clientTransaction||e!==o.TransactionStatus.STATUS_ACCEPTED&&e!==o.TransactionStatus.STATUS_COMPLETED&&e!==o.TransactionStatus.STATUS_TERMINATED||(r.clientTransaction.removeListener("stateChanged",s),a.uacPendingReply=!1))};r.clientTransaction.on("stateChanged",s)}};return u(!1),c},e.prototype.receiveRequest=function(e){this.checkInDialogRequest(e)&&this.owner.receiveRequest(e)},e.C=o.DialogStatus,e}();t.Dialog=s},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),a=r(1),s=r(0),l=r(4),c=r(9),u=r(2),d=function(e){function t(r,n){var o=e.call(this)||this;return o.data={},t.initializer(o,r,n),o}return o(t,e),t.initializer=function(e,t,r){if(e.type=s.TypeStrings.ServerContext,e.ua=t,e.logger=t.getLogger("sip.servercontext"),e.request=r,r.method===a.C.INVITE?e.transaction=new c.InviteServerTransaction(r,t):e.transaction=new c.NonInviteServerTransaction(r,t),r.body&&(e.body=r.body),r.hasHeader("Content-Type")&&(e.contentType=r.getHeader("Content-Type")),e.method=r.method,e.localIdentity=r.to,e.remoteIdentity=r.from,r.hasHeader("P-Asserted-Identity")){var n=r.getHeader("P-Asserted-Identity");n&&(e.assertedIdentity=l.Grammar.nameAddrHeaderParse(n))}},t.prototype.progress=function(e){return void 0===e&&(e={}),e.statusCode=e.statusCode||180,e.minCode=100,e.maxCode=199,e.events=["progress"],this.reply(e)},t.prototype.accept=function(e){return void 0===e&&(e={}),e.statusCode=e.statusCode||200,e.minCode=200,e.maxCode=299,e.events=["accepted"],this.reply(e)},t.prototype.reject=function(e){return void 0===e&&(e={}),e.statusCode=e.statusCode||480,e.minCode=300,e.maxCode=699,e.events=["rejected","failed"],this.reply(e)},t.prototype.reply=function(e){var t=this;void 0===e&&(e={});var r=e.statusCode||100,n=e.minCode||100,o=e.maxCode||699,i=u.Utils.getReasonPhrase(r,e.reasonPhrase),a=e.extraHeaders||[],s=e.body,l=e.events||[];if(r<n||r>o)throw new TypeError("Invalid statusCode: "+r);var c=this.request.reply(r,i,a,s);return l.forEach(function(e){t.emit(e,c,i)}),this},t.prototype.onRequestTimeout=function(){this.emit("failed",void 0,a.C.causes.REQUEST_TIMEOUT)},t.prototype.onTransportError=function(){this.emit("failed",void 0,a.C.causes.CONNECTION_ERROR)},t}(i.EventEmitter);t.ServerContext=d},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){for(var r,n=[],o=e.split(/\r\n/),i=0;i<o.length;){var a=o[i];if(/^m=(?:audio|video)/.test(a))r={index:i,stripped:[]},n.push(r);else if(r){var s=/^a=rtpmap:(\d+) ([^\/]+)\//.exec(a);if(s&&t===s[2]){o.splice(i,1),r.stripped.push(s[1]);continue}}i++}for(var l=0,c=n;l<c.length;l++){for(var u=c[l],d=o[u.index].split(" "),p=3;p<d.length;)-1===u.stripped.indexOf(d[p])?p++:d.splice(p,1);o[u.index]=d.join(" ")}return o.join("\r\n")};t.stripTcpCandidates=function(e){return e.sdp=(e.sdp||"").replace(/^a=candidate:\d+ \d+ tcp .*?\r\n/gim,""),Promise.resolve(e)},t.stripTelephoneEvent=function(e){return e.sdp=n(e.sdp||"","telephone-event"),Promise.resolve(e)},t.cleanJitsiSdpImageattr=function(e){return e.sdp=(e.sdp||"").replace(/^(a=imageattr:.*?)(x|y)=\[0-/gm,"$1$2=[1:"),Promise.resolve(e)},t.stripG722=function(e){return e.sdp=n(e.sdp||"","G722"),Promise.resolve(e)},t.stripRtpPayload=function(e){return function(t){return t.sdp=n(t.sdp||"",e),Promise.resolve(t)}},t.stripVideo=function(e){return e.sdp=function(e,t){var r=new RegExp("m="+t+".*$","gm"),n=new RegExp("^a=group:.*$","gm");if(r.test(e)){var o,i=(e=e.split(/^m=/gm).filter(function(e){if(e.substr(0,t.length)===t){if(o=e.match(/^a=mid:.*$/gm)){var r=o[0].match(/:.+$/g);r&&(o=r[0].substr(1))}return!1}return!0}).join("m=")).match(n);if(i&&1===i.length){var a=i[0],s=new RegExp(" *"+o+"[^ ]*","g");a=a.replace(s,""),e=e.split(n).join(a)}}return e}(e.sdp||"","video"),Promise.resolve(e)},t.addMidLines=function(e){var t=e.sdp||"";if(-1===t.search(/^a=mid.*$/gm)){var r=t.match(/^m=.*$/gm),n=t.split(/^m=.*$/gm);r&&r.forEach(function(e,t){r[t]=e+"\na=mid:"+t}),n.forEach(function(e,t){r&&r[t]&&(n[t]=e+r[t])}),t=n.join(""),e.sdp=t}return Promise.resolve(e)}},function(e){e.exports={name:"sip.js",title:"SIP.js",description:"A simple, intuitive, and powerful JavaScript signaling library",version:"0.13.6",license:"MIT",main:"lib/index.js",homepage:"https://sipjs.com",author:"OnSIP <developer@onsip.com> (https://sipjs.com/aboutus/)",contributors:[{url:"https://github.com/onsip/SIP.js/blob/master/THANKS.md"}],repository:{type:"git",url:"https://github.com/onsip/SIP.js.git"},keywords:["sip","websocket","webrtc","library","javascript"],dependencies:{"crypto-js":"^3.1.9-1"},devDependencies:{"@types/node":"^11.9.6","circular-dependency-plugin":"^5.0.2","jasmine-core":"^3.3.0",karma:"^4.0.1","karma-chrome-launcher":"^2.2.0","karma-cli":"^2.0.0","karma-jasmine":"^2.0.1","karma-jasmine-html-reporter":"^1.4.0","karma-mocha-reporter":"^2.2.5","karma-webpack":"^3.0.5",pegjs:"^0.10.0","ts-loader":"^5.3.3","ts-pegjs":"0.2.2",tslint:"^5.13.1",typescript:"^3.3.3333",webpack:"^4.29.6","webpack-cli":"^3.2.3"},engines:{node:">=8.0"},scripts:{prebuild:"tslint -p tsconfig.json -c tslint.json","generate-grammar":"node build/grammarGenerator.js","build-reg-bundle":"webpack --progress --config build/webpack.config.js --env.buildType reg","build-min-bundle":"webpack --progress --config build/webpack.config.js --env.buildType min","build-bundles":"npm run build-reg-bundle && npm run build-min-bundle","build-lib":"tsc","copy-dist-files":"cp dist/sip.js dist/sip-$npm_package_version.js && cp dist/sip.min.js dist/sip-$npm_package_version.min.js",build:"npm run generate-grammar && npm run build-lib && npm run build-reg-bundle && npm run build-min-bundle && npm run copy-dist-files",browserTest:"sleep 2 && open http://0.0.0.0:9876/debug.html & karma start --reporters kjhtml --no-single-run",commandLineTest:"karma start --reporters mocha --browsers ChromeHeadless --single-run",buildAndTest:"npm run build && npm run commandLineTest",buildAndBrowserTest:"npm run build && npm run browserTest"},types:"./types"}},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=function(e){function t(t,r,n){var o=e.call(this,n)||this;if(o.type=i.TypeStrings.NameAddrHeader,!t||t.type!==i.TypeStrings.URI)throw new TypeError('missing or invalid "uri" parameter');return o.uri=t,o._displayName=r,o}return o(t,e),Object.defineProperty(t.prototype,"friendlyName",{get:function(){return this.displayName||this.uri.aor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayName",{get:function(){return this._displayName},set:function(e){this._displayName=e},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new t(this.uri.clone(),this._displayName,JSON.parse(JSON.stringify(this.parameters)))},t.prototype.toString=function(){var e=this.displayName||"0"===this.displayName?'"'+this.displayName+'" ':"";for(var t in e+="<"+this.uri.toString()+">",this.parameters)this.parameters.hasOwnProperty(t)&&(e+=";"+t,null!==this.parameters[t]&&(e+="="+this.parameters[t]));return e},t}(r(10).Parameters);t.NameAddrHeader=a},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(32),o=r(0),i=r(2),a=function(){function e(e){this.type=o.TypeStrings.DigestAuthentication,this.logger=e.getLogger("sipjs.digestauthentication"),this.username=e.configuration.authorizationUser,this.password=e.configuration.password,this.nc=0,this.ncHex="00000000"}return e.prototype.authenticate=function(e,t,r){if(this.algorithm=t.algorithm,this.realm=t.realm,this.nonce=t.nonce,this.opaque=t.opaque,this.stale=t.stale,this.algorithm){if("MD5"!==this.algorithm)return this.logger.warn("challenge with Digest algorithm different than 'MD5', authentication aborted"),!1}else this.algorithm="MD5";if(!this.realm)return this.logger.warn("challenge without Digest realm, authentication aborted"),!1;if(!this.nonce)return this.logger.warn("challenge without Digest nonce, authentication aborted"),!1;if(t.qop)if(t.qop.indexOf("auth")>-1)this.qop="auth";else{if(!(t.qop.indexOf("auth-int")>-1))return this.logger.warn("challenge without Digest qop different than 'auth' or 'auth-int', authentication aborted"),!1;this.qop="auth-int"}else this.qop=void 0;return this.method=e.method,this.uri=e.ruri,this.cnonce=i.Utils.createRandomToken(12),this.nc+=1,this.updateNcHex(),4294967296===this.nc&&(this.nc=1,this.ncHex="00000001"),this.calculateResponse(r),!0},e.prototype.toString=function(){var e=[];if(!this.response)throw new Error("response field does not exist, cannot generate Authorization header");return e.push("algorithm="+this.algorithm),e.push('username="'+this.username+'"'),e.push('realm="'+this.realm+'"'),e.push('nonce="'+this.nonce+'"'),e.push('uri="'+this.uri+'"'),e.push('response="'+this.response+'"'),this.opaque&&e.push('opaque="'+this.opaque+'"'),this.qop&&(e.push("qop="+this.qop),e.push('cnonce="'+this.cnonce+'"'),e.push("nc="+this.ncHex)),"Digest "+e.join(", ")},e.prototype.updateNcHex=function(){var e=Number(this.nc).toString(16);this.ncHex="00000000".substr(0,8-e.length)+e},e.prototype.calculateResponse=function(e){var t,r=n(this.username+":"+this.realm+":"+this.password);"auth"===this.qop?(t=n(this.method+":"+this.uri),this.response=n(r+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth:"+t)):"auth-int"===this.qop?(t=n(this.method+":"+this.uri+":"+n(e||"")),this.response=n(r+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth-int:"+t)):void 0===this.qop&&(t=n(this.method+":"+this.uri),this.response=n(r+":"+this.nonce+":"+t))},e}();t.DigestAuthentication=a},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n,o,i=r(0);(o=n=t.Levels||(t.Levels={}))[o.error=0]="error",o[o.warn=1]="warn",o[o.log=2]="log",o[o.debug=3]="debug";var a=function(){function e(){this.builtinEnabled=!0,this._level=n.log,this.loggers={},this.type=i.TypeStrings.LoggerFactory,this.logger=this.getLogger("sip:loggerfactory")}return Object.defineProperty(e.prototype,"level",{get:function(){return this._level},set:function(e){e>=0&&e<=3?this._level=e:e>3?this._level=3:n.hasOwnProperty(e)?this._level=e:this.logger.error("invalid 'level' parameter value: "+JSON.stringify(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"connector",{get:function(){return this._connector},set:function(e){e?"function"==typeof e?this._connector=e:this.logger.error("invalid 'connector' parameter value: "+JSON.stringify(e)):this._connector=void 0},enumerable:!0,configurable:!0}),e.prototype.getLogger=function(e,t){if(t&&3===this.level)return new s(this,e,t);if(this.loggers[e])return this.loggers[e];var r=new s(this,e);return this.loggers[e]=r,r},e.prototype.genericLog=function(e,t,r,o){this.level>=e&&(this.builtinEnabled&&this.print(console[n[e]],t,r,o),this.connector&&this.connector(n[e],t,r,o))},e.prototype.print=function(e,t,r,n){if("string"==typeof n){var o=[new Date,t];r&&o.push(r),n=o.concat(n).join(" | ")}e.call(console,n)},e}();t.LoggerFactory=a;var s=function(){function e(e,t,r){this.type=i.TypeStrings.Logger,this.logger=e,this.category=t,this.label=r}return e.prototype.error=function(e){this.genericLog(n.error,e)},e.prototype.warn=function(e){this.genericLog(n.warn,e)},e.prototype.log=function(e){this.genericLog(n.log,e)},e.prototype.debug=function(e){this.genericLog(n.debug,e)},e.prototype.genericLog=function(e,t){this.logger.genericLog(e,this.category,this.label,t)},e}();t.Logger=s},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(4),i=r(6);!function(e){function t(e,t){var r=t,n=0,o=0;if(e.substring(r,r+2).match(/(^\r\n)/))return-2;for(;0===n;){if(-1===(o=e.indexOf("\r\n",r)))return o;!e.substring(o+2,o+4).match(/(^\r\n)/)&&e.charAt(o+2).match(/(^\s+)/)?r=o+2:n=o}return n}function r(e,t,r,i){var a,s=t.indexOf(":",r),l=t.substring(r,s).trim(),c=t.substring(s+1,i).trim();switch(l.toLowerCase()){case"via":case"v":e.addHeader("via",c),1===e.getHeaders("via").length?(a=e.parseHeader("Via"))&&(e.via=a,e.viaBranch=a.branch):a=0;break;case"from":case"f":e.setHeader("from",c),(a=e.parseHeader("from"))&&(e.from=a,e.fromTag=a.getParam("tag"));break;case"to":case"t":e.setHeader("to",c),(a=e.parseHeader("to"))&&(e.to=a,e.toTag=a.getParam("tag"));break;case"record-route":if(-1===(a=o.Grammar.parse(c,"Record_Route"))){a=void 0;break}for(var u in a)a[u]&&(e.addHeader("record-route",c.substring(a[u].position,a[u].offset)),e.headers["Record-Route"][e.getHeaders("record-route").length-1].parsed=a[u].parsed);break;case"call-id":case"i":e.setHeader("call-id",c),(a=e.parseHeader("call-id"))&&(e.callId=c);break;case"contact":case"m":if(-1===(a=o.Grammar.parse(c,"Contact"))){a=void 0;break}for(var u in a)a[u]&&(e.addHeader("contact",c.substring(a[u].position,a[u].offset)),e.headers.Contact[e.getHeaders("contact").length-1].parsed=a[u].parsed);break;case"content-length":case"l":e.setHeader("content-length",c),a=e.parseHeader("content-length");break;case"content-type":case"c":e.setHeader("content-type",c),a=e.parseHeader("content-type");break;case"cseq":e.setHeader("cseq",c),(a=e.parseHeader("cseq"))&&(e.cseq=a.value),e.type===n.TypeStrings.IncomingResponse&&(e.method=a.method);break;case"max-forwards":e.setHeader("max-forwards",c),a=e.parseHeader("max-forwards");break;case"www-authenticate":e.setHeader("www-authenticate",c),a=e.parseHeader("www-authenticate");break;case"proxy-authenticate":e.setHeader("proxy-authenticate",c),a=e.parseHeader("proxy-authenticate");break;case"refer-to":case"r":e.setHeader("refer-to",c),(a=e.parseHeader("refer-to"))&&(e.referTo=a);break;default:e.setHeader(l,c),a=0}return void 0!==a||{error:"error parsing header '"+l+"'"}}e.getHeader=t,e.parseHeader=r,e.parseMessage=function(e,n){var a=0,s=e.indexOf("\r\n"),l=n.getLogger("sip.parser");if(-1!==s){var c,u=e.substring(0,s),d=o.Grammar.parse(u,"Request_Response");if(-1!==d){var p;for(d.status_code?((c=new i.IncomingResponse(n)).statusCode=d.status_code,c.reasonPhrase=d.reason_phrase):((c=new i.IncomingRequest(n)).method=d.method,c.ruri=d.uri),c.data=e,a=s+2;;){if(-2===(s=t(e,a))){p=a+2;break}if(-1===s)return void l.error("malformed message");if(!0!==r(c,e,a,s))return void l.error(d.error);a=s+2}return c.hasHeader("content-length")?c.body=e.substr(p,Number(c.getHeader("content-length"))):c.body=e.substring(p),c}l.warn('error parsing first line of SIP message: "'+u+'"')}else l.warn("no CRLF found, not a SIP message, discarded")}}(t.Parser||(t.Parser={}))},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7),a=r(1),s=r(0),l=r(5),c=r(6),u=r(2),d=function(e){function t(t,r,n,o){void 0===o&&(o={});var i=this;if(o.extraHeaders=(o.extraHeaders||[]).slice(),o.contentType=o.contentType||"text/plain","number"!=typeof o.expires||o.expires%1!=0?o.expires=3600:o.expires=Number(o.expires),"boolean"!=typeof o.unpublishOnClose&&(o.unpublishOnClose=!0),null==r||""===r)throw new l.Exceptions.MethodParameterError("Publish","Target",r);if(void 0===(r=t.normalizeTarget(r)))throw new l.Exceptions.MethodParameterError("Publish","Target",r);if((i=e.call(this,t,a.C.PUBLISH,r,o)||this).type=s.TypeStrings.PublishContext,i.options=o,i.target=r,null==n||""===n)throw new l.Exceptions.MethodParameterError("Publish","Event",n);return i.event=n,i.logger=t.getLogger("sip.publish"),i.pubRequestExpires=i.options.expires,t.on("transportCreated",function(e){e.on("transportError",function(){return i.onTransportError()})}),i}return o(t,e),t.prototype.publish=function(e){this.publishRefreshTimer&&(clearTimeout(this.publishRefreshTimer),this.publishRefreshTimer=void 0),this.options.body=e,this.pubRequestBody=this.options.body,0===this.pubRequestExpires&&(this.pubRequestExpires=this.options.expires,this.pubRequestEtag=void 0),this.ua.publishers[this.target.toString()+":"+this.event]||(this.ua.publishers[this.target.toString()+":"+this.event]=this),this.sendPublishRequest()},t.prototype.unpublish=function(){this.publishRefreshTimer&&(clearTimeout(this.publishRefreshTimer),this.publishRefreshTimer=void 0),this.pubRequestBody=void 0,this.pubRequestExpires=0,void 0!==this.pubRequestEtag&&this.sendPublishRequest()},t.prototype.close=function(){this.options.unpublishOnClose?this.unpublish():(this.publishRefreshTimer&&(clearTimeout(this.publishRefreshTimer),this.publishRefreshTimer=void 0),this.pubRequestBody=void 0,this.pubRequestExpires=0,this.pubRequestEtag=void 0),this.ua.publishers[this.target.toString()+":"+this.event]&&delete this.ua.publishers[this.target.toString()+":"+this.event]},t.prototype.onRequestTimeout=function(){e.prototype.onRequestTimeout.call(this),this.emit("unpublished",void 0,a.C.causes.REQUEST_TIMEOUT)},t.prototype.onTransportError=function(){e.prototype.onTransportError.call(this),this.emit("unpublished",void 0,a.C.causes.CONNECTION_ERROR)},t.prototype.receiveResponse=function(e){var t=this,r=e.statusCode||0,n=u.Utils.getReasonPhrase(r);switch(!0){case/^1[0-9]{2}$/.test(r.toString()):this.emit("progress",e,n);break;case/^2[0-9]{2}$/.test(r.toString()):if(e.hasHeader("SIP-ETag")?this.pubRequestEtag=e.getHeader("SIP-ETag"):this.logger.warn("SIP-ETag header missing in a 200-class response to PUBLISH"),e.hasHeader("Expires")){var o=Number(e.getHeader("Expires"));"number"==typeof o&&o>=0&&o<=this.pubRequestExpires?this.pubRequestExpires=o:this.logger.warn("Bad Expires header in a 200-class response to PUBLISH")}else this.logger.warn("Expires header missing in a 200-class response to PUBLISH");0!==this.pubRequestExpires?(this.publishRefreshTimer=setTimeout(function(){return t.refreshRequest()},900*this.pubRequestExpires),this.emit("published",e,n)):this.emit("unpublished",e,n);break;case/^412$/.test(r.toString()):void 0!==this.pubRequestEtag&&0!==this.pubRequestExpires?(this.logger.warn("412 response to PUBLISH, recovering"),this.pubRequestEtag=void 0,this.emit("progress",e,n),this.publish(this.options.body)):(this.logger.warn("412 response to PUBLISH, recovery failed"),this.pubRequestExpires=0,this.emit("failed",e,n),this.emit("unpublished",e,n));break;case/^423$/.test(r.toString()):if(0!==this.pubRequestExpires&&e.hasHeader("Min-Expires")){var i=Number(e.getHeader("Min-Expires"));"number"==typeof i||i>this.pubRequestExpires?(this.logger.warn("423 code in response to PUBLISH, adjusting the Expires value and trying to recover"),this.pubRequestExpires=i,this.emit("progress",e,n),this.publish(this.options.body)):(this.logger.warn("Bad 423 response Min-Expires header received for PUBLISH"),this.pubRequestExpires=0,this.emit("failed",e,n),this.emit("unpublished",e,n))}else this.logger.warn("423 response to PUBLISH, recovery failed"),this.pubRequestExpires=0,this.emit("failed",e,n),this.emit("unpublished",e,n);break;default:this.pubRequestExpires=0,this.emit("failed",e,n),this.emit("unpublished",e,n)}0===this.pubRequestExpires&&(this.publishRefreshTimer&&(clearTimeout(this.publishRefreshTimer),this.publishRefreshTimer=void 0),this.pubRequestBody=void 0,this.pubRequestEtag=void 0)},t.prototype.refreshRequest=function(){if(this.publishRefreshTimer&&(clearTimeout(this.publishRefreshTimer),this.publishRefreshTimer=void 0),this.pubRequestBody=void 0,void 0===this.pubRequestEtag)throw new l.Exceptions.MethodParameterError("Publish","Body",void 0);if(0===this.pubRequestExpires)throw new l.Exceptions.MethodParameterError("Publish","Expire",this.pubRequestExpires);this.sendPublishRequest()},t.prototype.sendPublishRequest=function(){var e=Object.create(this.options||Object.prototype);e.extraHeaders=(this.options.extraHeaders||[]).slice(),e.extraHeaders.push("Event: "+this.event),e.extraHeaders.push("Expires: "+this.pubRequestExpires),void 0!==this.pubRequestEtag&&e.extraHeaders.push("SIP-If-Match: "+this.pubRequestEtag),this.request=new c.OutgoingRequest(a.C.PUBLISH,this.target,this.ua,this.options.params,e.extraHeaders),void 0!==this.pubRequestBody&&(this.request.body={},this.request.body.body=this.pubRequestBody,this.request.body.contentType=this.options.contentType),this.send()},t}(i.ClientContext);t.PublishContext=d},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=r(7),s=r(1),l=r(0),c=r(5),u=r(4),d=r(2),p=function(e){function t(t,r){void 0===r&&(r={});var n=this,o=function(e){var t={expires:600,extraContactHeaderParams:[],instanceId:void 0,params:{},regId:void 0,registrar:void 0},r={mandatory:{},optional:{expires:function(e){if(d.Utils.isDecimal(e)){var t=Number(e);if(t>=0)return t}},extraContactHeaderParams:function(e){if(e instanceof Array)return e.filter(function(e){return"string"==typeof e})},instanceId:function(e){if("string"==typeof e)return/^uuid:/i.test(e)&&(e=e.substr(5)),-1===u.Grammar.parse(e,"uuid")?void 0:e},params:function(e){if("object"==typeof e)return e},regId:function(e){if(d.Utils.isDecimal(e)){var t=Number(e);if(t>=0)return t}},registrar:function(e){if("string"==typeof e){/^sip:/i.test(e)||(e=s.C.SIP+":"+e);var t=u.Grammar.URIParse(e);return t?t.user?void 0:t:void 0}}}};for(var n in r.mandatory){if(!e.hasOwnProperty(n))throw new c.Exceptions.ConfigurationError(n);var o=e[n];if(void 0===(i=r.mandatory[n](o)))throw new c.Exceptions.ConfigurationError(n,o);t[n]=i}for(var n in r.optional)if(e.hasOwnProperty(n)){var i;if((o=e[n])instanceof Array&&0===o.length)continue;if(null===o||""===o||void 0===o||"number"==typeof o&&isNaN(o))continue;if(void 0===(i=r.optional[n](o)))throw new c.Exceptions.ConfigurationError(n,o);t[n]=i}return t}(r);if(o.regId&&!o.instanceId?o.instanceId=d.Utils.newUUID():!o.regId&&o.instanceId&&(o.regId=1),o.params.toUri=o.params.toUri||t.configuration.uri,o.params.toDisplayName=o.params.toDisplayName||t.configuration.displayName,o.params.callId=o.params.callId||d.Utils.createRandomToken(22),o.params.cseq=o.params.cseq||Math.floor(1e4*Math.random()),!o.registrar){var i={};"object"==typeof t.configuration.uri?(i=t.configuration.uri.clone()).user=void 0:i=t.configuration.uri,o.registrar=i}for(var a in(n=e.call(this,t,s.C.REGISTER,o.registrar,o)||this).type=l.TypeStrings.RegisterContext,n.options=o,n.logger=t.getLogger("sip.registercontext"),n.logger.log("configuration parameters for RegisterContext after validation:"),o)o.hasOwnProperty(a)&&n.logger.log("· "+a+": "+JSON.stringify(o[a]));return n.expires=o.expires,n.cseq=o.params.cseq,n.contact=t.contact.toString(),n.registered=!1,t.on("transportCreated",function(e){e.on("disconnected",function(){return n.onTransportDisconnected()})}),n}return o(t,e),t.prototype.register=function(e){var t=this;void 0===e&&(e={}),this.options=i({},this.options,e);var r=(this.options.extraHeaders||[]).slice();r.push("Contact: "+this.generateContactHeader(this.expires)),r.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),this.closeHeaders=this.options.closeWithHeaders?(this.options.extraHeaders||[]).slice():[],this.receiveResponse=function(e){if(e.cseq===t.cseq){void 0!==t.registrationTimer&&(clearTimeout(t.registrationTimer),t.registrationTimer=void 0);var r=(e.statusCode||0).toString();switch(!0){case/^1[0-9]{2}$/.test(r):t.emit("progress",e);break;case/^2[0-9]{2}$/.test(r):t.emit("accepted",e);var n=void 0;e.hasHeader("expires")&&(n=Number(e.getHeader("expires"))),void 0!==t.registrationExpiredTimer&&(clearTimeout(t.registrationExpiredTimer),t.registrationExpiredTimer=void 0);var o=e.getHeaders("contact").length;if(!o){t.logger.warn("no Contact header in response to REGISTER, response ignored");break}for(var i=void 0;o--;){if((i=e.parseHeader("contact",o)).uri.user===t.ua.contact.uri.user){n=i.getParam("expires");break}i=void 0}if(!i){t.logger.warn("no Contact header pointing to us, response ignored");break}void 0===n&&(n=t.expires),t.registrationTimer=setTimeout(function(){t.registrationTimer=void 0,t.register(t.options)},1e3*n-3e3),t.registrationExpiredTimer=setTimeout(function(){t.logger.warn("registration expired"),t.registered&&t.unregistered(void 0,s.C.causes.EXPIRES)},1e3*n),i.hasParam("temp-gruu")&&(t.ua.contact.temp_gruu=u.Grammar.URIParse(i.getParam("temp-gruu").replace(/"/g,""))),i.hasParam("pub-gruu")&&(t.ua.contact.pub_gruu=u.Grammar.URIParse(i.getParam("pub-gruu").replace(/"/g,""))),t.registered=!0,t.emit("registered",e||void 0);break;case/^423$/.test(r):e.hasHeader("min-expires")?(t.expires=Number(e.getHeader("min-expires")),t.register(t.options)):(t.logger.warn("423 response received for REGISTER without Min-Expires"),t.registrationFailure(e,s.C.causes.SIP_FAILURE_CODE));break;default:t.registrationFailure(e,d.Utils.sipErrorCause(e.statusCode||0))}}},this.onRequestTimeout=function(){t.registrationFailure(void 0,s.C.causes.REQUEST_TIMEOUT)},this.onTransportError=function(){t.registrationFailure(void 0,s.C.causes.CONNECTION_ERROR)},this.cseq++,this.request&&(this.request.cseq=this.cseq,this.request.setHeader("cseq",this.cseq+" REGISTER"),this.request.extraHeaders=r),this.send()},t.prototype.close=function(){var e={all:!1,extraHeaders:this.closeHeaders};this.registeredBefore=this.registered,this.registered&&this.unregister(e)},t.prototype.unregister=function(e){var t=this;void 0===e&&(e={}),this.registered||e.all||this.logger.warn("Already unregistered, but sending an unregister anyways.");var r=(e.extraHeaders||[]).slice();this.registered=!1,void 0!==this.registrationTimer&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),e.all?(r.push("Contact: *"),r.push("Expires: 0")):r.push("Contact: "+this.generateContactHeader(0)),this.receiveResponse=function(e){var r=e&&e.statusCode?e.statusCode.toString():"";switch(!0){case/^1[0-9]{2}$/.test(r):t.emit("progress",e);break;case/^2[0-9]{2}$/.test(r):t.emit("accepted",e),void 0!==t.registrationExpiredTimer&&(clearTimeout(t.registrationExpiredTimer),t.registrationExpiredTimer=void 0),t.unregistered(e);break;default:t.unregistered(e,d.Utils.sipErrorCause(e.statusCode||0))}},this.onRequestTimeout=function(){},this.cseq++,this.request&&(this.request.cseq=this.cseq,this.request.setHeader("cseq",this.cseq+" REGISTER"),this.request.extraHeaders=r),this.send()},t.prototype.unregistered=function(e,t){this.registered=!1,this.emit("unregistered",e||void 0,t||void 0)},t.prototype.registrationFailure=function(e,t){this.emit("failed",e||void 0,t||void 0)},t.prototype.onTransportDisconnected=function(){this.registeredBefore=this.registered,void 0!==this.registrationTimer&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),void 0!==this.registrationExpiredTimer&&(clearTimeout(this.registrationExpiredTimer),this.registrationExpiredTimer=void 0),this.registered&&this.unregistered(void 0,s.C.causes.CONNECTION_ERROR)},t.prototype.generateContactHeader=function(e){void 0===e&&(e=0);var t=this.contact;return this.options.regId&&this.options.instanceId&&(t+=";reg-id="+this.options.regId,t+=';+sip.instance="<urn:uuid:'+this.options.instanceId+'>"'),this.options.extraContactHeaderParams&&this.options.extraContactHeaderParams.forEach(function(e){t+=";"+e}),t+=";expires="+e},t}(a.ClientContext);t.RegisterContext=p},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(0),i=r(2);!function(e){function t(e,t,r){for(var n=i.Utils.buildStatusLine(e),o=0,a=t.getHeaders("via");o<a.length;o++)n+="Via: "+a[o]+"\r\n";var s=t.getHeader("To")||"";t.toTag||(s+=";tag="+i.Utils.newTag()),n+="To: "+s+"\r\n",n+="From: "+t.getHeader("From")+"\r\n",n+="Call-ID: "+t.callId+"\r\n",n+="CSeq: "+t.cseq+" "+t.method+"\r\n",n+="\r\n",r.send(n)}function r(e,r,n){return!(!e.ruri||"sip"!==e.ruri.scheme)||(t(416,e,n),!1)}function a(e,r,n){return!(!e.toTag&&e.callId.substr(0,5)===r.configuration.sipjsId&&(t(482,e,n),1))}function s(e,r,n){var o=i.Utils.str_utf8_length(e.body),a=e.getHeader("content-length");return!(a&&o<Number(a)&&(t(400,e,n),1))}function l(e,r,o){var i=e.fromTag,a=e.callId,s=e.cseq;if(!e.toTag)if(e.method===n.C.INVITE){if(r.transactions.ist[e.viaBranch])return!0;for(var l in r.transactions.ist)if(r.transactions.ist.hasOwnProperty(l)&&(c=r.transactions.ist[l]).request.fromTag===i&&c.request.callId===a&&c.request.cseq===s)return t(482,e,o),!1}else{if(r.transactions.nist[e.viaBranch])return!0;for(var l in r.transactions.nist){var c;if(r.transactions.nist.hasOwnProperty(l)&&(c=r.transactions.nist[l]).request.fromTag===i&&c.request.callId===a&&c.request.cseq===s)return t(482,e,o),!1}}return!0}function c(e,t){return!(e.getHeaders("via").length>1&&(t.getLogger("sip.sanitycheck").warn("More than one Via header field present in the response. Dropping the response"),1))}function u(e,t){return e.via.host===t.configuration.viaHost&&void 0===e.via.port||(t.getLogger("sip.sanitycheck").warn("Via sent-by in the response does not match UA Via host value. Dropping the response"),!1)}function d(e,t){var r=i.Utils.str_utf8_length(e.body),n=e.getHeader("content-length");return!(n&&r<Number(n)&&(t.getLogger("sip.sanitycheck").warn("Message body length is lower than the value in Content-Length header field. Dropping the response"),1))}function p(e,t){for(var r=0,n=["from","to","call_id","cseq","via"];r<n.length;r++){var o=n[r];if(!e.hasHeader(o))return t.getLogger("sip.sanitycheck").warn("Missing mandatory header field : "+o+". Dropping the response"),!1}return!0}e.reply=t,e.rfc3261_8_2_2_1=r,e.rfc3261_16_3_4=a,e.rfc3261_18_3_request=s,e.rfc3261_8_2_2_2=l,e.rfc3261_8_1_3_3=c,e.rfc3261_18_1_2=u,e.rfc3261_18_3_response=d,e.minimumHeaders=p,e.sanityCheck=function(e,t,n){for(var i=[r,a,s,l],h=[c,u,d],f=0,v=[p];f<v.length;f++)if(!(0,v[f])(e,t,n))return!1;if(e.type===o.TypeStrings.IncomingRequest){for(var m=0,g=i;m<g.length;m++)if(!(0,g[m])(e,t,n))return!1}else if(e.type===o.TypeStrings.IncomingResponse)for(var y=0,C=h;y<C.length;y++)if(!(0,C[y])(e,t,n))return!1;return!0}}(t.SanityCheck||(t.SanityCheck={}))},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),a=r(7),s=r(1),l=r(13),c=r(0),u=r(5),d=r(4),p=r(8),h=r(14),f=r(34),v=r(6),m=r(11),g=r(2),y=function(e){function t(r){var n=e.call(this)||this;if(n.data={},n.type=c.TypeStrings.Session,!r)throw new u.Exceptions.SessionDescriptionHandlerError("A session description handler is required for the session to function");return n.status=t.C.STATUS_NULL,n.dialog=void 0,n.pendingReinvite=!1,n.earlyDialogs={},n.sessionDescriptionHandlerFactory=r,n.hasOffer=!1,n.hasAnswer=!1,n.timers={ackTimer:void 0,expiresTimer:void 0,invite2xxTimer:void 0,userNoAnswerTimer:void 0,rel1xxTimer:void 0,prackTimer:void 0},n.startTime=void 0,n.endTime=void 0,n.tones=void 0,n.localHold=!1,n.earlySdp=void 0,n.rel100=s.C.supported.UNSUPPORTED,n.originalReceiveRequest=n.receiveRequest,n}return o(t,e),t.prototype.dtmf=function(e,t){var r=this;if(void 0===t&&(t={}),this.status!==c.SessionStatus.STATUS_CONFIRMED&&this.status!==c.SessionStatus.STATUS_WAITING_FOR_ACK)throw new u.Exceptions.InvalidStateError(this.status);if(!e||!e.toString().match(/^[0-9A-D#*,]+$/i))throw new TypeError("Invalid tones: "+e);var n=function(){if(r.status!==c.SessionStatus.STATUS_TERMINATED&&r.tones&&0!==r.tones.length){var e,o=r.tones.shift();","===o.tone?e=2e3:(o.on("failed",function(){r.tones=void 0}),o.send(t),e=o.duration+o.interToneGap),setTimeout(n,e)}else r.tones=void 0};e=e.toString();var o=this.ua.configuration.dtmfType;if(this.sessionDescriptionHandler&&o===s.C.dtmfType.RTP&&(this.sessionDescriptionHandler.sendDtmf(e,t)||(this.logger.warn("Attempt to use dtmfType 'RTP' has failed, falling back to INFO packet method"),o=s.C.dtmfType.INFO)),o===s.C.dtmfType.INFO){for(var i=[],a=e.split("");a.length>0;)i.push(new f.DTMF(this,a.shift(),t));if(this.tones)return this.tones=this.tones.concat(i),this;this.tones=i,n()}return this},t.prototype.bye=function(e){if(void 0===e&&(e={}),this.status===c.SessionStatus.STATUS_TERMINATED)return this.logger.error("Error: Attempted to send BYE in a terminated session."),this;this.logger.log("terminating Session");var t=e.statusCode;if(t&&(t<200||t>=700))throw new TypeError("Invalid statusCode: "+t);return e.receiveResponse=function(){},this.sendRequest(s.C.BYE,e).terminated()},t.prototype.refer=function(e,t){if(void 0===t&&(t={}),this.status!==c.SessionStatus.STATUS_CONFIRMED)throw new u.Exceptions.InvalidStateError(this.status);return this.referContext=new T(this.ua,this,e,t),this.emit("referRequested",this.referContext),this.referContext.refer(t),this.referContext},t.prototype.sendRequest=function(e,t){var r=this;if(void 0===t&&(t={}),t=t||{},!this.dialog)throw new Error("sending request without a dialog");var n=new v.OutgoingRequest(e,this.dialog.remoteTarget,this.ua,{cseq:t.cseq||(this.dialog.localSeqnum+=1),callId:this.dialog.id.callId,fromUri:this.dialog.localUri,fromTag:this.dialog.id.localTag,ToUri:this.dialog.remoteUri,toTag:this.dialog.id.remoteTag,routeSet:this.dialog.routeSet,statusCode:t.statusCode,reasonPhrase:t.reasonPhrase},t.extraHeaders||[],t.body);return new p.RequestSender({request:n,onRequestTimeout:function(){return r.onRequestTimeout()},onTransportError:function(){return r.onTransportError()},receiveResponse:function(e){return(t.receiveResponse||r.receiveNonInviteResponse.bind(r))(e)}},this.ua).send(),this.emit(e.toLowerCase(),n),this},t.prototype.close=function(){if(this.status===c.SessionStatus.STATUS_TERMINATED)return this;for(var e in this.logger.log("closing INVITE session "+this.id),this.sessionDescriptionHandler&&this.sessionDescriptionHandler.close(),this.timers)this.timers[e]&&clearTimeout(this.timers[e]);for(var t in this.dialog&&(this.dialog.terminate(),delete this.dialog),this.earlyDialogs)this.earlyDialogs.hasOwnProperty(t)&&(this.earlyDialogs[t].terminate(),delete this.earlyDialogs[t]);return this.status=c.SessionStatus.STATUS_TERMINATED,this.ua.transport&&this.ua.transport.removeListener("transportError",this.errorListener),delete this.ua.sessions[this.id],this},t.prototype.createDialog=function(e,t,r){void 0===r&&(r=!1);var n,o=e["UAS"===t?"toTag":"fromTag"],i=e["UAS"===t?"fromTag":"toTag"],a=e.callId+o+i;if(r)return!!this.earlyDialogs[a]||((n=new l.Dialog(this,e,t,l.Dialog.C.STATUS_EARLY)).error?(this.logger.error(n.error),this.failed(e,s.C.causes.INTERNAL_ERROR),!1):(this.earlyDialogs[a]=n,!0));if(n=this.earlyDialogs[a]){for(var c in n.update(e,t),this.dialog=n,delete this.earlyDialogs[a],this.earlyDialogs)this.earlyDialogs.hasOwnProperty(c)&&(this.earlyDialogs[c].terminate(),delete this.earlyDialogs[c]);return!0}var u=new l.Dialog(this,e,t);return u.error?(this.logger.error(u.error),this.failed(e,s.C.causes.INTERNAL_ERROR),!1):(this.toTag=e.toTag,this.dialog=u,!0)},t.prototype.hold=function(e,t){if(void 0===e&&(e={}),void 0===t&&(t=[]),this.status!==c.SessionStatus.STATUS_WAITING_FOR_ACK&&this.status!==c.SessionStatus.STATUS_CONFIRMED)throw new u.Exceptions.InvalidStateError(this.status);this.localHold?this.logger.log("Session is already on hold, cannot put it on hold again"):(e.modifiers=t,this.sessionDescriptionHandler&&e.modifiers.push(this.sessionDescriptionHandler.holdModifier),this.localHold=!0,this.sendReinvite(e))},t.prototype.unhold=function(e,t){if(void 0===e&&(e={}),void 0===t&&(t=[]),this.status!==c.SessionStatus.STATUS_WAITING_FOR_ACK&&this.status!==c.SessionStatus.STATUS_CONFIRMED)throw new u.Exceptions.InvalidStateError(this.status);this.localHold?(e.modifiers=t,this.localHold=!1,this.sendReinvite(e)):this.logger.log("Session is not on hold, cannot unhold it")},t.prototype.reinvite=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=[]),e.modifiers=t,this.sendReinvite(e)},t.prototype.receiveRequest=function(e){switch(e.method){case s.C.BYE:e.reply(200),this.status===c.SessionStatus.STATUS_CONFIRMED&&(this.emit("bye",e),this.terminated(e,s.C.BYE));break;case s.C.INVITE:this.status===c.SessionStatus.STATUS_CONFIRMED&&(this.logger.log("re-INVITE received"),this.receiveReinvite(e));break;case s.C.INFO:if(this.status===c.SessionStatus.STATUS_CONFIRMED||this.status===c.SessionStatus.STATUS_WAITING_FOR_ACK){if(this.onInfo)return this.onInfo(e);var t=e.getHeader("content-type");if(t)if(t.match(/^application\/dtmf-relay/i)){if(e.body){var r=e.body.split("\r\n",2);if(2===r.length){var n=void 0,o=void 0,i=/^(Signal\s*?=\s*?)([0-9A-D#*]{1})(\s)?.*/;i.test(r[0])&&(n=r[0].replace(i,"$2"));var a=/^(Duration\s?=\s?)([0-9]{1,4})(\s)?.*/;a.test(r[1])&&(o=parseInt(r[1].replace(a,"$2"),10)),n&&o&&new f.DTMF(this,n,{duration:o}).init_incoming(e)}}}else e.reply(415,void 0,["Accept: application/dtmf-relay"])}break;case s.C.REFER:if(this.status===c.SessionStatus.STATUS_CONFIRMED)if(this.logger.log("REFER received"),this.referContext=new b(this.ua,e),this.listeners("referRequested").length)this.emit("referRequested",this.referContext);else{this.logger.log("No referRequested listeners, automatically accepting and following the refer");var l={followRefer:!0};this.passedOptions&&(l.inviteOptions=this.passedOptions),this.referContext.accept(l,this.modifiers)}break;case s.C.NOTIFY:if(this.referContext&&this.referContext.type===c.TypeStrings.ReferClientContext&&e.hasHeader("event")&&/^refer(;.*)?$/.test(e.getHeader("event")))return void this.referContext.receiveNotify(e);e.reply(200,"OK"),this.emit("notify",e)}},t.prototype.terminate=function(e){return this},t.prototype.onTransportError=function(){this.status!==c.SessionStatus.STATUS_CONFIRMED&&this.status!==c.SessionStatus.STATUS_TERMINATED&&this.failed(void 0,s.C.causes.CONNECTION_ERROR)},t.prototype.onRequestTimeout=function(){this.status===c.SessionStatus.STATUS_CONFIRMED?this.terminated(void 0,s.C.causes.REQUEST_TIMEOUT):this.status!==c.SessionStatus.STATUS_TERMINATED&&(this.failed(void 0,s.C.causes.REQUEST_TIMEOUT),this.terminated(void 0,s.C.causes.REQUEST_TIMEOUT))},t.prototype.onDialogError=function(e){this.status===c.SessionStatus.STATUS_CONFIRMED?this.terminated(e,s.C.causes.DIALOG_ERROR):this.status!==c.SessionStatus.STATUS_TERMINATED&&(this.failed(e,s.C.causes.DIALOG_ERROR),this.terminated(e,s.C.causes.DIALOG_ERROR))},t.prototype.receiveReinvite=function(e){var t,r=this;if(this.emit("reinvite",this,e),e.hasHeader("P-Asserted-Identity")&&(this.assertedIdentity=d.Grammar.nameAddrHeaderParse(e.getHeader("P-Asserted-Identity"))),this.sessionDescriptionHandler){if("0"!==e.getHeader("Content-Length")||e.getHeader("Content-Type")){if(!this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||""))return e.reply(415),void this.emit("reinviteFailed",this);t=this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).then(this.sessionDescriptionHandler.getDescription.bind(this.sessionDescriptionHandler,this.sessionDescriptionHandlerOptions,this.modifiers))}else t=this.sessionDescriptionHandler.getDescription(this.sessionDescriptionHandlerOptions,this.modifiers);this.receiveRequest=function(e){e.method===s.C.ACK&&r.status===c.SessionStatus.STATUS_WAITING_FOR_ACK?r.sessionDescriptionHandler&&r.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||"")?(r.hasAnswer=!0,r.sessionDescriptionHandler.setDescription(e.body,r.sessionDescriptionHandlerOptions,r.modifiers).then(function(){clearTimeout(r.timers.ackTimer),clearTimeout(r.timers.invite2xxTimer),r.status=c.SessionStatus.STATUS_CONFIRMED,r.emit("confirmed",e)})):(clearTimeout(r.timers.ackTimer),clearTimeout(r.timers.invite2xxTimer),r.status=c.SessionStatus.STATUS_CONFIRMED,r.emit("confirmed",e)):r.originalReceiveRequest(e)},t.catch(function(t){var n;throw t.type===c.TypeStrings.SessionDescriptionHandlerError?n=500:t.type===c.TypeStrings.RenegotiationError?(r.emit("renegotiationError",t),r.logger.warn(t.toString()),n=488):(r.logger.error(t),n=488),e.reply(n),r.emit("reinviteFailed",r),t}).then(function(t){var n=["Contact: "+r.contact];e.reply(200,void 0,n,t,function(){r.status=c.SessionStatus.STATUS_WAITING_FOR_ACK,r.setACKTimer(),r.emit("reinviteAccepted",r)})})}else this.logger.warn("No SessionDescriptionHandler to reinvite")},t.prototype.sendReinvite=function(e){var t=this;if(void 0===e&&(e={}),this.pendingReinvite)this.logger.warn("Reinvite in progress. Please wait until complete, then try again.");else if(this.sessionDescriptionHandler){this.pendingReinvite=!0,e.modifiers=e.modifiers||[];var r=(e.extraHeaders||[]).slice();r.push("Contact: "+this.contact),r.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),this.sessionDescriptionHandler.getDescription(e.sessionDescriptionHandlerOptions,e.modifiers).then(function(e){t.sendRequest(s.C.INVITE,{extraHeaders:r,body:e,receiveResponse:function(e){return t.receiveReinviteResponse(e)}})}).catch(function(e){if(e.type===c.TypeStrings.RenegotiationError)throw t.pendingReinvite=!1,t.emit("renegotiationError",e),t.logger.warn("Renegotiation Error"),t.logger.warn(e.toString()),e;throw t.logger.error("sessionDescriptionHandler error"),t.logger.error(e),e})}else this.logger.warn("No SessionDescriptionHandler, can't reinvite..")},t.prototype.receiveReinviteResponse=function(e){var t=this;if(this.status!==c.SessionStatus.STATUS_TERMINATED)if(this.pendingReinvite){var r=e&&e.statusCode?e.statusCode.toString():"";switch(!0){case/^1[0-9]{2}$/.test(r):break;case/^2[0-9]{2}$/.test(r):if(this.status=c.SessionStatus.STATUS_CONFIRMED,this.emit("ack",e.transaction.sendACK()),this.pendingReinvite=!1,clearTimeout(this.timers.invite2xxTimer),!this.sessionDescriptionHandler||!this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||"")){this.logger.error("2XX response received to re-invite but did not have a description"),this.emit("reinviteFailed",this),this.emit("renegotiationError",new u.Exceptions.RenegotiationError("2XX response received to re-invite but did not have a description"));break}this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).catch(function(e){throw t.logger.error("Could not set the description in 2XX response"),t.logger.error(e),t.emit("reinviteFailed",t),t.emit("renegotiationError",e),t.sendRequest(s.C.BYE,{extraHeaders:["Reason: "+g.Utils.getReasonHeaderValue(488,"Not Acceptable Here")]}),t.terminated(void 0,s.C.causes.INCOMPATIBLE_SDP),e}).then(function(){t.emit("reinviteAccepted",t)});break;default:this.pendingReinvite=!1,this.logger.log("Received a non 1XX or 2XX response to a re-invite"),this.emit("reinviteFailed",this),this.emit("renegotiationError",new u.Exceptions.RenegotiationError("Invalid response to a re-invite"))}}else this.logger.error("Received reinvite response, but have no pending reinvite");else this.logger.error("Received reinvite response, but in STATUS_TERMINATED")},t.prototype.acceptAndTerminate=function(e,t,r){var n=[];return t&&n.push("Reason: "+g.Utils.getReasonHeaderValue(t,r)),(this.dialog||this.createDialog(e,"UAC"))&&(this.emit("ack",e.transaction.sendACK()),this.sendRequest(s.C.BYE,{extraHeaders:n})),this},t.prototype.setInvite2xxTimer=function(e,t){var r=this,n=m.Timers.T1,o=function(){if(r.status===c.SessionStatus.STATUS_WAITING_FOR_ACK){r.logger.log("no ACK received, attempting to retransmit OK");var i=["Contact: "+r.contact];e.reply(200,void 0,i,t),n=Math.min(2*n,m.Timers.T2),r.timers.invite2xxTimer=setTimeout(o,n)}};this.timers.invite2xxTimer=setTimeout(o,n)},t.prototype.setACKTimer=function(){var e=this;this.timers.ackTimer=setTimeout(function(){e.status===c.SessionStatus.STATUS_WAITING_FOR_ACK&&(e.logger.log("no ACK received for an extended period of time, terminating the call"),clearTimeout(e.timers.invite2xxTimer),e.sendRequest(s.C.BYE),e.terminated(void 0,s.C.causes.NO_ACK))},m.Timers.TIMER_H)},t.prototype.failed=function(e,t){return this.status===c.SessionStatus.STATUS_TERMINATED||this.emit("failed",e,t),this},t.prototype.rejected=function(e,t){return this.emit("rejected",e,t),this},t.prototype.canceled=function(){return this.sessionDescriptionHandler&&this.sessionDescriptionHandler.close(),this.emit("cancel"),this},t.prototype.accepted=function(e,t){return e instanceof String||(t=g.Utils.getReasonPhrase(e&&e.statusCode||0,t)),this.startTime=new Date,this.replacee&&(this.replacee.emit("replaced",this),this.replacee.terminate()),this.emit("accepted",e,t),this},t.prototype.terminated=function(e,t){return this.status===c.SessionStatus.STATUS_TERMINATED||(this.endTime=new Date,this.close(),this.emit("terminated",e,t)),this},t.prototype.connecting=function(e){return this.emit("connecting",{request:e}),this},t.prototype.receiveNonInviteResponse=function(e){},t.C=c.SessionStatus,t}(i.EventEmitter);t.Session=y;var C=function(e){function t(t,r){var n=this;if(!t.configuration.sessionDescriptionHandlerFactory)throw t.logger.warn("Can't build ISC without SDH Factory"),new Error("ISC Constructor Failed");n=e.call(this,t.configuration.sessionDescriptionHandlerFactory)||this,h.ServerContext.initializer(n,t,r),n.type=c.TypeStrings.InviteServerContext;var o=r.parseHeader("Content-Disposition");o&&"render"===o.type&&(n.renderbody=r.body,n.rendertype=r.getHeader("Content-Type")),n.status=c.SessionStatus.STATUS_INVITE_RECEIVED,n.fromTag=r.fromTag,n.id=r.callId+n.fromTag,n.request=r,n.contact=n.ua.contact.toString(),n.receiveNonInviteResponse=function(){},n.logger=t.getLogger("sip.inviteservercontext",n.id),n.ua.sessions[n.id]=n;var i=function(e,t){r.hasHeader(e)&&r.getHeader(e).toLowerCase().indexOf("100rel")>=0&&(n.rel100=t)};if(i("require",s.C.supported.REQUIRED),i("supported",s.C.supported.SUPPORTED),r.toTag=g.Utils.newTag(),n.createDialog(r,"UAS",!0)){var a={extraHeaders:["Contact: "+n.contact]};if(n.rel100!==s.C.supported.REQUIRED&&n.progress(a),n.status=c.SessionStatus.STATUS_WAITING_FOR_ANSWER,n.timers.userNoAnswerTimer=setTimeout(function(){r.reply(408),n.failed(r,s.C.causes.NO_ANSWER),n.terminated(r,s.C.causes.NO_ANSWER)},n.ua.configuration.noAnswerTimeout||60),r.hasHeader("expires")){var l=1e3*Number(r.getHeader("expires")||0);n.timers.expiresTimer=setTimeout(function(){n.status===c.SessionStatus.STATUS_WAITING_FOR_ANSWER&&(r.reply(487),n.failed(r,s.C.causes.EXPIRES),n.terminated(r,s.C.causes.EXPIRES))},l)}return n.errorListener=n.onTransportError.bind(n),t.transport&&t.transport.on("transportError",n.errorListener),n}r.reply(500,"Missing Contact header field")}return o(t,e),t.prototype.reject=function(e){var t=this;if(void 0===e&&(e={}),this.status===c.SessionStatus.STATUS_TERMINATED)throw new u.Exceptions.InvalidStateError(this.status);this.logger.log("rejecting RTCSession");var r=e.statusCode||480,n=g.Utils.getReasonPhrase(r,e.reasonPhrase),o=e.extraHeaders||[];if(r<300||r>699)throw new TypeError("Invalid statusCode: "+r);var i=this.request.reply(r,n,o,e.body);return["rejected","failed"].forEach(function(e){t.emit(e,i,n)}),this.terminated()},t.prototype.reply=function(e){return this},t.prototype.terminate=function(e){var t=this;void 0===e&&(e={});var r=(e.extraHeaders||[]).slice();if(this.status===c.SessionStatus.STATUS_WAITING_FOR_ACK&&this.request.serverTransaction&&this.request.serverTransaction.state!==c.TransactionStatus.STATUS_TERMINATED){var n=this.dialog;this.receiveRequest=function(e){e.method===s.C.ACK&&(t.sendRequest(s.C.BYE,{extraHeaders:r}),t.dialog&&t.dialog.terminate())},this.request.serverTransaction.on("stateChanged",function(){t.request.serverTransaction&&t.request.serverTransaction.state===c.TransactionStatus.STATUS_TERMINATED&&t.dialog&&(t.bye(),t.dialog.terminate())}),this.emit("bye",this.request),this.terminated(),this.dialog=n,this.dialog&&(this.ua.dialogs[this.dialog.id.toString()]=this.dialog)}else this.status===c.SessionStatus.STATUS_CONFIRMED?this.bye(e):this.reject(e);return this},t.prototype.progress=function(e){var t=this;void 0===e&&(e={});var r=e.statusCode||180,n=(e.extraHeaders||[]).slice();if(r<100||r>199)throw new TypeError("Invalid statusCode: "+r);if(this.status===c.SessionStatus.STATUS_TERMINATED)return this;var o,i=function(){var r=e.statusCode||183;t.status=c.SessionStatus.STATUS_WAITING_FOR_PRACK,n.push("Contact: "+t.contact),n.push("Require: 100rel"),n.push("RSeq: "+Math.floor(1e4*Math.random())),t.sessionDescriptionHandler?t.sessionDescriptionHandler.getDescription(e.sessionDescriptionHandlerOptions,e.modifiers).then(function(o){if(t.status!==c.SessionStatus.STATUS_TERMINATED){t.earlySdp=o.body,t[t.hasOffer?"hasAnswer":"hasOffer"]=!0;var i=m.Timers.T1,a=function(){t.request.reply(r,void 0,n,o),i*=2,t.timers.rel1xxTimer=setTimeout(a,i)};t.timers.rel1xxTimer=setTimeout(a,i),t.timers.prackTimer=setTimeout(function(){t.status===c.SessionStatus.STATUS_WAITING_FOR_PRACK&&(t.logger.log("no PRACK received, rejecting the call"),clearTimeout(t.timers.rel1xxTimer),t.request.reply(504),t.terminated(void 0,s.C.causes.NO_PRACK))},64*m.Timers.T1);var l=t.request.reply(r,e.reasonPhrase,n,o);t.emit("progress",l,e.reasonPhrase)}},function(){t.request.reply(480),t.failed(void 0,s.C.causes.WEBRTC_ERROR),t.terminated(void 0,s.C.causes.WEBRTC_ERROR)}):t.logger.warn("No SessionDescriptionHandler, can't do 100rel")};return 100!==e.statusCode&&(this.rel100===s.C.supported.REQUIRED||this.rel100===s.C.supported.SUPPORTED&&e.rel100||this.rel100===s.C.supported.SUPPORTED&&this.ua.configuration.rel100===s.C.supported.REQUIRED)?(this.sessionDescriptionHandler=this.setupSessionDescriptionHandler(),this.emit("SessionDescriptionHandler-created",this.sessionDescriptionHandler),this.sessionDescriptionHandler.hasDescription(this.request.getHeader("Content-Type")||"")?(this.hasOffer=!0,this.sessionDescriptionHandler.setDescription(this.request.body,e.sessionDescriptionHandlerOptions,e.modifiers).then(i).catch(function(e){throw t.logger.warn("invalid description"),t.logger.warn(e),t.failed(void 0,s.C.causes.WEBRTC_ERROR),t.terminated(void 0,s.C.causes.WEBRTC_ERROR),e})):i()):(o=t.request.reply(r,e.reasonPhrase,n,e.body),t.emit("progress",o,e.reasonPhrase)),this},t.prototype.accept=function(e){var t=this;void 0===e&&(e={}),this.onInfo=e.onInfo;var r=(e.extraHeaders||[]).slice(),n=function(e){r.push("Contact: "+t.contact),r.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),t.hasOffer?t.hasAnswer=!0:t.hasOffer=!0;var n=t.request.reply(200,void 0,r,e,function(){t.status=c.SessionStatus.STATUS_WAITING_FOR_ACK,t.setInvite2xxTimer(t.request,e),t.setACKTimer()},function(){t.failed(void 0,s.C.causes.CONNECTION_ERROR),t.terminated(void 0,s.C.causes.CONNECTION_ERROR)});t.status!==c.SessionStatus.STATUS_TERMINATED&&t.accepted(n,g.Utils.getReasonPhrase(200))},o=function(e){throw e.type===c.TypeStrings.SessionDescriptionHandlerError&&(t.logger.log(e.message),e.error&&t.logger.log(e.error)),t.request.reply(480),t.failed(void 0,s.C.causes.WEBRTC_ERROR),t.terminated(void 0,s.C.causes.WEBRTC_ERROR),e};if(this.status===c.SessionStatus.STATUS_WAITING_FOR_PRACK)return this.status=c.SessionStatus.STATUS_ANSWERED_WAITING_FOR_PRACK,this;if(this.status===c.SessionStatus.STATUS_WAITING_FOR_ANSWER)this.status=c.SessionStatus.STATUS_ANSWERED;else if(this.status!==c.SessionStatus.STATUS_EARLY_MEDIA)throw new u.Exceptions.InvalidStateError(this.status);if(!this.createDialog(this.request,"UAS"))return this.request.reply(500,"Missing Contact header field"),this;if(clearTimeout(this.timers.userNoAnswerTimer),this.status===c.SessionStatus.STATUS_EARLY_MEDIA)n({});else if(this.sessionDescriptionHandler=this.setupSessionDescriptionHandler(),this.emit("SessionDescriptionHandler-created",this.sessionDescriptionHandler),"0"!==this.request.getHeader("Content-Length")||this.request.getHeader("Content-Type")){if(!this.sessionDescriptionHandler.hasDescription(this.request.getHeader("Content-Type")||""))return this.request.reply(415),this;this.hasOffer=!0,this.sessionDescriptionHandler.setDescription(this.request.body,e.sessionDescriptionHandlerOptions,e.modifiers).then(function(){if(!t.sessionDescriptionHandler)throw new Error("No SDH");return t.sessionDescriptionHandler.getDescription(e.sessionDescriptionHandlerOptions,e.modifiers)}).catch(o).then(n)}else this.sessionDescriptionHandler.getDescription(e.sessionDescriptionHandlerOptions,e.modifiers).catch(o).then(n);return this},t.prototype.receiveRequest=function(e){var t=this,r=function(){clearTimeout(t.timers.ackTimer),clearTimeout(t.timers.invite2xxTimer),t.status=c.SessionStatus.STATUS_CONFIRMED;var r=e.getHeader("Content-Disposition");r&&"render"===r.type&&(t.renderbody=e.body,t.rendertype=e.getHeader("Content-Type")),t.emit("confirmed",e)};switch(e.method){case s.C.CANCEL:this.status!==c.SessionStatus.STATUS_WAITING_FOR_ANSWER&&this.status!==c.SessionStatus.STATUS_WAITING_FOR_PRACK&&this.status!==c.SessionStatus.STATUS_ANSWERED_WAITING_FOR_PRACK&&this.status!==c.SessionStatus.STATUS_EARLY_MEDIA&&this.status!==c.SessionStatus.STATUS_ANSWERED||(this.status=c.SessionStatus.STATUS_CANCELED,this.request.reply(487),this.canceled(),this.rejected(e,s.C.causes.CANCELED),this.failed(e,s.C.causes.CANCELED),this.terminated(e,s.C.causes.CANCELED));break;case s.C.ACK:this.status===c.SessionStatus.STATUS_WAITING_FOR_ACK&&(this.status=c.SessionStatus.STATUS_CONFIRMED,this.sessionDescriptionHandler&&this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||"")?(this.hasAnswer=!0,this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).catch(function(r){throw t.logger.warn(r),t.terminate({statusCode:"488",reasonPhrase:"Bad Media Description"}),t.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION),t.terminated(e,s.C.causes.BAD_MEDIA_DESCRIPTION),r}).then(function(){return r()})):r());break;case s.C.PRACK:this.status===c.SessionStatus.STATUS_WAITING_FOR_PRACK||this.status===c.SessionStatus.STATUS_ANSWERED_WAITING_FOR_PRACK?this.hasAnswer?(clearTimeout(this.timers.rel1xxTimer),clearTimeout(this.timers.prackTimer),e.reply(200),this.status===c.SessionStatus.STATUS_ANSWERED_WAITING_FOR_PRACK&&(this.status=c.SessionStatus.STATUS_EARLY_MEDIA,this.accept()),this.status=c.SessionStatus.STATUS_EARLY_MEDIA):(this.sessionDescriptionHandler=this.setupSessionDescriptionHandler(),this.emit("SessionDescriptionHandler-created",this.sessionDescriptionHandler),this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||"")?(this.hasAnswer=!0,this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).then(function(){clearTimeout(t.timers.rel1xxTimer),clearTimeout(t.timers.prackTimer),e.reply(200),t.status===c.SessionStatus.STATUS_ANSWERED_WAITING_FOR_PRACK&&(t.status=c.SessionStatus.STATUS_EARLY_MEDIA,t.accept()),t.status=c.SessionStatus.STATUS_EARLY_MEDIA},function(r){t.logger.warn(r),t.terminate({statusCode:"488",reasonPhrase:"Bad Media Description"}),t.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION),t.terminated(e,s.C.causes.BAD_MEDIA_DESCRIPTION)})):(this.terminate({statusCode:"488",reasonPhrase:"Bad Media Description"}),this.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION),this.terminated(e,s.C.causes.BAD_MEDIA_DESCRIPTION))):this.status===c.SessionStatus.STATUS_EARLY_MEDIA&&e.reply(200);break;default:y.prototype.receiveRequest.apply(this,[e])}},t.prototype.setupSessionDescriptionHandler=function(){return this.sessionDescriptionHandler?this.sessionDescriptionHandler:this.sessionDescriptionHandlerFactory(this,this.ua.configuration.sessionDescriptionHandlerFactoryOptions)},t}(y);t.InviteServerContext=C;var S=function(e){function t(t,r,n,o){void 0===n&&(n={}),void 0===o&&(o=[]);var i=this;if(!t.configuration.sessionDescriptionHandlerFactory)throw t.logger.warn("Can't build ISC without SDH Factory"),new Error("ICC Constructor Failed");n.params=n.params||{};var l=n.anonymous||!1,d=g.Utils.newTag();n.params.fromTag=d;var p=t.contact.toString({anonymous:l,outbound:l?!t.contact.temp_gruu:!t.contact.pub_gruu}),h=(n.extraHeaders||[]).slice();if(l&&t.configuration.uri&&(n.params.from_displayName="Anonymous",n.params.from_uri="sip:anonymous@anonymous.invalid",h.push("P-Preferred-Identity: "+t.configuration.uri.toString()),h.push("Privacy: id")),h.push("Contact: "+p),h.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),t.configuration.rel100===s.C.supported.REQUIRED&&h.push("Require: 100rel"),t.configuration.replaces===s.C.supported.REQUIRED&&h.push("Require: replaces"),n.extraHeaders=h,i=e.call(this,t.configuration.sessionDescriptionHandlerFactory)||this,a.ClientContext.initializer(i,t,s.C.INVITE,r,n),i.type=c.TypeStrings.InviteClientContext,i.passedOptions=n,i.sessionDescriptionHandlerOptions=n.sessionDescriptionHandlerOptions||{},i.modifiers=o,i.inviteWithoutSdp=n.inviteWithoutSdp||!1,i.anonymous=n.anonymous||!1,i.renderbody=n.renderbody||void 0,i.rendertype=n.rendertype||"text/plain",i.fromTag=d,i.contact=p,i.status!==c.SessionStatus.STATUS_NULL)throw new u.Exceptions.InvalidStateError(i.status);return i.isCanceled=!1,i.received100=!1,i.method=s.C.INVITE,i.logger=t.getLogger("sip.inviteclientcontext"),t.applicants[i.toString()]=i,i.id=i.request.callId+i.fromTag,i.onInfo=n.onInfo,i.errorListener=i.onTransportError.bind(i),t.transport&&t.transport.on("transportError",i.errorListener),i}return o(t,e),t.prototype.receiveNonInviteResponse=function(e){this.receiveInviteResponse(e)},t.prototype.receiveResponse=function(e){this.receiveInviteResponse(e)},t.prototype.send=function(){return new p.RequestSender(this,this.ua).send(),this},t.prototype.invite=function(){var e=this;return this.ua.sessions[this.id]=this,Promise.resolve().then(function(){e.inviteWithoutSdp?(e.request.body=e.renderbody,e.status=c.SessionStatus.STATUS_INVITE_SENT,e.send()):(e.sessionDescriptionHandler=e.sessionDescriptionHandlerFactory(e,e.ua.configuration.sessionDescriptionHandlerFactoryOptions||{}),e.emit("SessionDescriptionHandler-created",e.sessionDescriptionHandler),e.sessionDescriptionHandler.getDescription(e.sessionDescriptionHandlerOptions,e.modifiers).then(function(t){e.isCanceled||e.status===c.SessionStatus.STATUS_TERMINATED||(e.hasOffer=!0,e.request.body=t,e.status=c.SessionStatus.STATUS_INVITE_SENT,e.send())},function(t){t.type===c.TypeStrings.SessionDescriptionHandlerError&&(e.logger.log(t.message),t.error&&e.logger.log(t.error)),e.status!==c.SessionStatus.STATUS_TERMINATED&&(e.failed(void 0,s.C.causes.WEBRTC_ERROR),e.terminated(void 0,s.C.causes.WEBRTC_ERROR))}))}),this},t.prototype.receiveInviteResponse=function(e){var t=this;if(this.status!==c.SessionStatus.STATUS_TERMINATED&&e.method===s.C.INVITE){var r=e.callId+e.fromTag+e.toTag,n=[];if(this.dialog&&e.statusCode&&e.statusCode>=200&&e.statusCode<=299){if(r!==this.dialog.id.toString()){if(!this.createDialog(e,"UAC",!0))return;return this.emit("ack",e.transaction.sendACK({body:g.Utils.generateFakeSDP(e.body)})),this.earlyDialogs[r].sendRequest(this,s.C.BYE),void(this.status!==c.SessionStatus.STATUS_CONFIRMED&&(this.failed(e,s.C.causes.WEBRTC_ERROR),this.terminated(e,s.C.causes.WEBRTC_ERROR)))}if(this.status===c.SessionStatus.STATUS_CONFIRMED)return void this.emit("ack",e.transaction.sendACK());if(!this.hasAnswer)return}var o=e&&e.statusCode;if(this.dialog&&o&&o<200){var i=e.getHeader("rseq");if(i&&(-1!==this.dialog.pracked.indexOf(i)||Number(this.dialog.pracked[this.dialog.pracked.length-1])>=Number(i)&&this.dialog.pracked.length>0))return;if(!this.earlyDialogs[r]&&!this.createDialog(e,"UAC",!0))return;if(-1!==this.earlyDialogs[r].pracked.indexOf(e.getHeader("rseq"))||this.earlyDialogs[r].pracked[this.earlyDialogs[r].pracked.length-1]>=Number(i)&&this.earlyDialogs[r].pracked.length>0)return;return n.push("RAck: "+e.getHeader("rseq")+" "+e.getHeader("cseq")),this.earlyDialogs[r].pracked.push(e.getHeader("rseq")),void this.earlyDialogs[r].sendRequest(this,s.C.PRACK,{extraHeaders:n,body:g.Utils.generateFakeSDP(e.body)})}if(this.isCanceled){if(o&&o>=100&&o<200)this.request.cancel(this.cancelReason,n),this.canceled();else if(o&&o>=200&&o<299)this.acceptAndTerminate(e),this.emit("bye",this.request);else if(o&&o>=300){var a=s.C.REASON_PHRASE[e.statusCode||0]||s.C.causes.CANCELED;this.rejected(e,a),this.failed(e,a),this.terminated(e,a)}}else{var l=o?o.toString():"";switch(!0){case/^100$/.test(l):this.received100=!0,this.emit("progress",e);break;case/^1[0-9]{2}$/.test(l):if(!e.toTag){this.logger.warn("1xx response received without to tag");break}if(e.hasHeader("contact")&&!this.createDialog(e,"UAC",!0))break;if(this.status=c.SessionStatus.STATUS_1XX_RECEIVED,e.hasHeader("P-Asserted-Identity")&&(this.assertedIdentity=d.Grammar.nameAddrHeaderParse(e.getHeader("P-Asserted-Identity"))),e.hasHeader("require")&&-1!==e.getHeader("require").indexOf("100rel")){if(this.dialog||!this.earlyDialogs[r])break;var u=e.getHeader("rseq");if(-1!==this.earlyDialogs[r].pracked.indexOf(u)||this.earlyDialogs[r].pracked[this.earlyDialogs[r].pracked.length-1]>=Number(u)&&this.earlyDialogs[r].pracked.length>0)return;if(this.sessionDescriptionHandler=this.sessionDescriptionHandlerFactory(this,this.ua.configuration.sessionDescriptionHandlerFactoryOptions||{}),this.emit("SessionDescriptionHandler-created",this.sessionDescriptionHandler),this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||""))if(this.hasOffer){if(!this.createDialog(e,"UAC"))break;this.hasAnswer=!0,void 0!==this.dialog&&u&&this.dialog.pracked.push(u),this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).then(function(){n.push("RAck: "+e.getHeader("rseq")+" "+e.getHeader("cseq")),t.sendRequest(s.C.PRACK,{extraHeaders:n,receiveResponse:function(){}}),t.status=c.SessionStatus.STATUS_EARLY_MEDIA,t.emit("progress",e)},function(r){t.logger.warn(r),t.acceptAndTerminate(e,488,"Not Acceptable Here"),t.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION)})}else{var p=this.earlyDialogs[r];p.sessionDescriptionHandler=this.sessionDescriptionHandlerFactory(this,this.ua.configuration.sessionDescriptionHandlerFactoryOptions||{}),this.emit("SessionDescriptionHandler-created",p.sessionDescriptionHandler),u&&p.pracked.push(u),p.sessionDescriptionHandler&&p.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).then(function(){return p.sessionDescriptionHandler.getDescription(t.sessionDescriptionHandlerOptions,t.modifiers)}).then(function(r){n.push("RAck: "+u+" "+e.getHeader("cseq")),p.sendRequest(t,s.C.PRACK,{extraHeaders:n,body:r}),t.status=c.SessionStatus.STATUS_EARLY_MEDIA,t.emit("progress",e)}).catch(function(e){if(u&&e.type===c.TypeStrings.SessionDescriptionHandlerError){if(p.pracked.push(u),t.status===c.SessionStatus.STATUS_TERMINATED)return;t.failed(void 0,s.C.causes.WEBRTC_ERROR),t.terminated(void 0,s.C.causes.WEBRTC_ERROR)}else u&&p.pracked.splice(p.pracked.indexOf(u),1),t.logger.warn("invalid description"),t.logger.warn(e)})}else n.push("RAck: "+e.getHeader("rseq")+" "+e.getHeader("cseq")),this.earlyDialogs[r].pracked.push(e.getHeader("rseq")),this.earlyDialogs[r].sendRequest(this,s.C.PRACK,{extraHeaders:n}),this.emit("progress",e)}else this.emit("progress",e);break;case/^2[0-9]{2}$/.test(l):if(this.request.cseq+" "+this.request.method!==e.getHeader("cseq"))break;if(e.hasHeader("P-Asserted-Identity")&&(this.assertedIdentity=d.Grammar.nameAddrHeaderParse(e.getHeader("P-Asserted-Identity"))),this.status===c.SessionStatus.STATUS_EARLY_MEDIA&&this.dialog){this.status=c.SessionStatus.STATUS_CONFIRMED;var h={};this.renderbody&&(n.push("Content-Type: "+this.rendertype),h.extraHeaders=n,h.body=this.renderbody),this.emit("ack",e.transaction.sendACK(h)),this.accepted(e);break}if(this.dialog)break;if(this.hasOffer)if(this.hasAnswer)h={},this.renderbody&&(n.push("Content-Type: "+this.rendertype),h.extraHeaders=n,h.body=this.renderbody),this.emit("ack",e.transaction.sendACK(h));else{if(!this.sessionDescriptionHandler||!this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||"")){this.acceptAndTerminate(e,400,"Missing session description"),this.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION);break}if(!this.createDialog(e,"UAC"))break;this.hasAnswer=!0,this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).then(function(){var r={};t.status=c.SessionStatus.STATUS_CONFIRMED,t.renderbody&&(n.push("Content-Type: "+t.rendertype),r.extraHeaders=n,r.body=t.renderbody),t.emit("ack",e.transaction.sendACK(r)),t.accepted(e)},function(r){t.logger.warn(r),t.acceptAndTerminate(e,488,"Not Acceptable Here"),t.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION)})}else if(this.earlyDialogs[r]&&this.earlyDialogs[r].sessionDescriptionHandler){if(this.hasOffer=!0,this.hasAnswer=!0,this.sessionDescriptionHandler=this.earlyDialogs[r].sessionDescriptionHandler,!this.createDialog(e,"UAC"))break;this.status=c.SessionStatus.STATUS_CONFIRMED,this.emit("ack",e.transaction.sendACK()),this.accepted(e)}else{if(this.sessionDescriptionHandler=this.sessionDescriptionHandlerFactory(this,this.ua.configuration.sessionDescriptionHandlerFactoryOptions||{}),this.emit("SessionDescriptionHandler-created",this.sessionDescriptionHandler),!this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||"")){this.acceptAndTerminate(e,400,"Missing session description"),this.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION);break}if(!this.createDialog(e,"UAC"))break;this.hasOffer=!0,this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).then(function(){return t.sessionDescriptionHandler.getDescription(t.sessionDescriptionHandlerOptions,t.modifiers)}).then(function(r){t.isCanceled||t.status===c.SessionStatus.STATUS_TERMINATED||(t.status=c.SessionStatus.STATUS_CONFIRMED,t.hasAnswer=!0,t.emit("ack",e.transaction.sendACK({body:r})),t.accepted(e))}).catch(function(r){r.type===c.TypeStrings.SessionDescriptionHandlerError&&(t.logger.warn("invalid description"),t.logger.warn(r.toString()),t.acceptAndTerminate(e,488,"Invalid session description"),t.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION))})}break;default:a=g.Utils.sipErrorCause(o||0),this.rejected(e,a),this.failed(e,a),this.terminated(e,a)}}}},t.prototype.cancel=function(e){if(void 0===e&&(e={}),e.extraHeaders=(e.extraHeaders||[]).slice(),this.isCanceled)throw new u.Exceptions.InvalidStateError(c.SessionStatus.STATUS_CANCELED);if(this.status===c.SessionStatus.STATUS_TERMINATED||this.status===c.SessionStatus.STATUS_CONFIRMED)throw new u.Exceptions.InvalidStateError(this.status);this.logger.log("canceling RTCSession"),this.isCanceled=!0;var t=g.Utils.getCancelReason(e.statusCode,e.reasonPhrase);return this.status===c.SessionStatus.STATUS_NULL||this.status===c.SessionStatus.STATUS_INVITE_SENT&&!this.received100?this.cancelReason=t:this.status!==c.SessionStatus.STATUS_INVITE_SENT&&this.status!==c.SessionStatus.STATUS_1XX_RECEIVED&&this.status!==c.SessionStatus.STATUS_EARLY_MEDIA||this.request.cancel(t,e.extraHeaders),this.canceled()},t.prototype.terminate=function(e){return this.status===c.SessionStatus.STATUS_TERMINATED||(this.status===c.SessionStatus.STATUS_WAITING_FOR_ACK||this.status===c.SessionStatus.STATUS_CONFIRMED?this.bye(e):this.cancel(e)),this},t.prototype.receiveRequest=function(t){return t.method,s.C.CANCEL,t.method===s.C.ACK&&this.status===c.SessionStatus.STATUS_WAITING_FOR_ACK&&(clearTimeout(this.timers.ackTimer),clearTimeout(this.timers.invite2xxTimer),this.status=c.SessionStatus.STATUS_CONFIRMED,this.accepted()),e.prototype.receiveRequest.call(this,t)},t}(y);t.InviteClientContext=S;var T=function(e){function t(t,r,n,o){void 0===o&&(o={});var i=this;if(void 0===t||void 0===r||void 0===n)throw new TypeError("Not enough arguments");if((i=e.call(this,t,s.C.REFER,r.remoteIdentity.uri.toString(),o)||this).type=c.TypeStrings.ReferClientContext,i.options=o,i.extraHeaders=(i.options.extraHeaders||[]).slice(),i.applicant=r,"string"==typeof n||n.type!==c.TypeStrings.InviteServerContext&&n.type!==c.TypeStrings.InviteClientContext){var a=d.Grammar.parse(n,"Refer_To");i.target=a&&a.uri?a.uri:n;var l=i.ua.normalizeTarget(i.target);if(!l)throw new TypeError("Invalid target: "+n);i.target=l}else{var u=n.dialog;if(!u)throw new TypeError("Invalid target due to no dialog: "+n);i.target='"'+n.remoteIdentity.friendlyName+'" <'+u.remoteTarget.toString()+"?Replaces="+u.id.callId+"%3Bto-tag%3D"+u.id.remoteTag+"%3Bfrom-tag%3D"+u.id.localTag+">"}return i.ua&&i.extraHeaders.push("Referred-By: <"+i.ua.configuration.uri+">"),i.extraHeaders.push("Contact: "+r.contact),i.extraHeaders.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),i.extraHeaders.push("Refer-To: "+i.target),i.errorListener=i.onTransportError.bind(i),t.transport&&t.transport.on("transportError",i.errorListener),i}return o(t,e),t.prototype.refer=function(e){var t=this;void 0===e&&(e={});var r=(this.extraHeaders||[]).slice();return e.extraHeaders&&r.concat(e.extraHeaders),this.applicant.sendRequest(s.C.REFER,{extraHeaders:this.extraHeaders,receiveResponse:function(r){var n=r&&r.statusCode?r.statusCode.toString():"";/^1[0-9]{2}$/.test(n)?t.emit("referRequestProgress",t):/^2[0-9]{2}$/.test(n)?t.emit("referRequestAccepted",t):/^[4-6][0-9]{2}$/.test(n)&&t.emit("referRequestRejected",t),e.receiveResponse&&e.receiveResponse(r)}}),this},t.prototype.receiveNotify=function(e){var t=e.hasHeader("Content-Type")?e.getHeader("Content-Type"):void 0;if(t&&-1!==t.search(/^message\/sipfrag/)){var r=d.Grammar.parse(e.body,"sipfrag");if(-1===r)return void e.reply(489,"Bad Event");switch(!0){case/^1[0-9]{2}$/.test(r.statusCode):this.emit("referProgress",this);break;case/^2[0-9]{2}$/.test(r.statusCode):this.emit("referAccepted",this),!this.options.activeAfterTransfer&&this.applicant.terminate&&this.applicant.terminate();break;default:this.emit("referRejected",this)}return e.reply(200),void this.emit("notify",e)}e.reply(489,"Bad Event")},t}(a.ClientContext);t.ReferClientContext=T;var b=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.type=c.TypeStrings.ReferServerContext,n.ua=t,n.status=c.SessionStatus.STATUS_INVITE_RECEIVED,n.fromTag=r.fromTag,n.id=r.callId+n.fromTag,n.request=r,n.contact=n.ua.contact.toString(),n.logger=t.getLogger("sip.referservercontext",n.id),n.cseq=Math.floor(1e4*Math.random()),n.callId=n.request.callId,n.fromUri=n.request.to.uri,n.fromTag=n.request.to.parameters.tag,n.remoteTarget=n.request.headers.Contact[0].parsed.uri,n.toUri=n.request.from.uri,n.toTag=n.request.fromTag,n.routeSet=n.request.getHeaders("record-route"),n.request.hasHeader("refer-to")?(n.referTo=n.request.parseHeader("refer-to"),n.referredSession=n.ua.findSession(r),n.request.hasHeader("referred-by")&&(n.referredBy=n.request.getHeader("referred-by")),n.referTo.uri.hasHeader("replaces")&&(n.replaces=n.referTo.uri.getHeader("replaces")),n.errorListener=n.onTransportError.bind(n),t.transport&&t.transport.on("transportError",n.errorListener),n.status=c.SessionStatus.STATUS_WAITING_FOR_ANSWER,n):(n.logger.warn("Invalid REFER packet. A refer-to header is required. Rejecting refer."),n.reject(),n)}return o(t,e),t.prototype.receiveNonInviteResponse=function(e){},t.prototype.progress=function(){if(this.status!==c.SessionStatus.STATUS_WAITING_FOR_ANSWER)throw new u.Exceptions.InvalidStateError(this.status);this.request.reply(100)},t.prototype.reject=function(t){if(void 0===t&&(t={}),this.status===c.SessionStatus.STATUS_TERMINATED)throw new u.Exceptions.InvalidStateError(this.status);this.logger.log("Rejecting refer"),this.status=c.SessionStatus.STATUS_TERMINATED,e.prototype.reject.call(this,t),this.emit("referRequestRejected",this)},t.prototype.accept=function(e,t){var r=this;if(void 0===e&&(e={}),this.status!==c.SessionStatus.STATUS_WAITING_FOR_ANSWER)throw new u.Exceptions.InvalidStateError(this.status);if(this.status=c.SessionStatus.STATUS_ANSWERED,this.request.reply(202,"Accepted"),this.emit("referRequestAccepted",this),e.followRefer){this.logger.log("Accepted refer, attempting to automatically follow it");var n=this.referTo.uri;if(!n.scheme||!n.scheme.match("^sips?$"))return this.logger.error("SIP.js can only automatically follow SIP refer target"),void this.reject();var o=e.inviteOptions||{},i=(o.extraHeaders||[]).slice();if(this.replaces&&i.push("Replaces: "+decodeURIComponent(this.replaces)),this.referredBy&&i.push("Referred-By: "+this.referredBy),o.extraHeaders=i,n.clearHeaders(),this.targetSession=this.ua.invite(n.toString(),o,t),this.emit("referInviteSent",this),this.targetSession){this.targetSession.once("progress",function(e){var t=e.statusCode||100,n=e.reasonPhrase;r.sendNotify(("SIP/2.0 "+t+" "+n).trim()),r.emit("referProgress",r),r.referredSession&&r.referredSession.emit("referProgress",r)}),this.targetSession.once("accepted",function(){r.logger.log("Successfully followed the refer"),r.sendNotify("SIP/2.0 200 OK"),r.emit("referAccepted",r),r.referredSession&&r.referredSession.emit("referAccepted",r)});var a=function(e){if(r.status!==c.SessionStatus.STATUS_TERMINATED){if(r.logger.log("Refer was not successful. Resuming session"),e&&429===e.statusCode)return r.logger.log("Alerting referrer that identity is required."),void r.sendNotify("SIP/2.0 429 Provide Referrer Identity");r.sendNotify("SIP/2.0 603 Declined"),r.status=c.SessionStatus.STATUS_TERMINATED,r.emit("referRejected",r),r.referredSession&&r.referredSession.emit("referRejected")}};this.targetSession.once("rejected",a),this.targetSession.once("failed",a)}}else this.logger.log("Accepted refer, but did not automatically follow it"),this.sendNotify("SIP/2.0 200 OK"),this.emit("referAccepted",this),this.referredSession&&this.referredSession.emit("referAccepted",this)},t.prototype.sendNotify=function(e){if(this.status!==c.SessionStatus.STATUS_ANSWERED)throw new u.Exceptions.InvalidStateError(this.status);if(-1===d.Grammar.parse(e,"sipfrag"))throw new Error("sipfrag body is required to send notify for refer");var t=new v.OutgoingRequest(s.C.NOTIFY,this.remoteTarget,this.ua,{cseq:this.cseq+=1,callId:this.callId,fromUri:this.fromUri,fromTag:this.fromTag,toUri:this.toUri,toTag:this.toTag,routeSet:this.routeSet},["Event: refer","Subscription-State: terminated","Content-Type: message/sipfrag"],e);new p.RequestSender({request:t,onRequestTimeout:function(){},onTransportError:function(){},receiveResponse:function(){}},this.ua).send()},t}(h.ServerContext);t.ReferServerContext=b},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7),a=r(1),s=r(13),l=r(0),c=r(11),u=r(2),d=function(e){function t(t,r,n,o){void 0===o&&(o={});var i,s=this;if(!n)throw new TypeError("Event necessary to create a subscription.");return o.extraHeaders=(o.extraHeaders||[]).slice(),"number"!=typeof o.expires?(t.logger.warn("expires must be a number. Using default of 3600."),i=3600):i=o.expires,o.extraHeaders.push("Event: "+n),o.extraHeaders.push("Expires: "+i),o.extraHeaders.push("Contact: "+t.contact.toString()),o.extraHeaders.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),(s=e.call(this,t,a.C.SUBSCRIBE,r,o)||this).type=l.TypeStrings.Subscription,s.event=n,s.requestedExpires=i,s.state="init",s.contact=t.contact.toString(),s.extraHeaders=o.extraHeaders,s.logger=t.getLogger("sip.subscription"),s.expires=i,s.timers={N:void 0,subDuration:void 0},s.errorCodes=[404,405,410,416,480,481,482,483,484,485,489,501,604],s}return o(t,e),t.prototype.subscribe=function(){var e=this;return"active"===this.state?(this.refresh(),this):("notify_wait"===this.state||(clearTimeout(this.timers.subDuration),clearTimeout(this.timers.N),this.timers.N=setTimeout(function(){return e.timer_fire()},c.Timers.TIMER_N),this.request&&this.request.from&&(this.ua.earlySubscriptions[this.request.callId+this.request.from.parameters.tag+this.event]=this),this.send(),this.state="notify_wait"),this)},t.prototype.refresh=function(){"terminated"!==this.state&&"pending"!==this.state&&"notify_wait"!==this.state&&this.dialog&&this.dialog.sendRequest(this,a.C.SUBSCRIBE,{extraHeaders:this.extraHeaders,body:this.body})},t.prototype.receiveResponse=function(e){var t=this,r=e.statusCode?e.statusCode:0,n=u.Utils.getReasonPhrase(r);if("notify_wait"===this.state&&r>=300||"notify_wait"!==this.state&&-1!==this.errorCodes.indexOf(r))this.failed(e,void 0);else if(/^2[0-9]{2}$/.test(r.toString())){this.emit("accepted",e,n);var o=e.getHeader("Expires");o&&Number(o)<=this.requestedExpires?(this.expires=Number(o),this.timers.subDuration=setTimeout(function(){return t.refresh()},900*Number(o))):o?(this.logger.warn("Expires header in a 200-class response to SUBSCRIBE with a higher value than the one in the request"),this.failed(e,"Invalid Expires Header")):(this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE"),this.failed(e,"Expires Header Missing"))}else r>300&&(this.emit("failed",e,n),this.emit("rejected",e,n))},t.prototype.unsubscribe=function(){var e=this,t=[];this.state="terminated",t.push("Event: "+this.event),t.push("Expires: 0"),t.push("Contact: "+this.contact),t.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),this.receiveResponse=function(){},this.dialog&&this.dialog.sendRequest(this,a.C.SUBSCRIBE,{extraHeaders:t,body:this.body}),clearTimeout(this.timers.subDuration),clearTimeout(this.timers.N),this.timers.N=setTimeout(function(){return e.timer_fire()},c.Timers.TIMER_N),this.emit("terminated")},t.prototype.receiveRequest=function(e){var t,r=this,n=function(){t.expires&&(clearTimeout(r.timers.subDuration),t.expires=Math.min(r.expires,Math.max(t.expires,0)),r.timers.subDuration=setTimeout(function(){return r.refresh()},900*t.expires))};if(this.matchEvent(e))if(this.dialog||this.createConfirmedDialog(e,"UAS")&&this.dialog&&(this.id=this.dialog.id.toString(),this.request&&this.request.from&&(delete this.ua.earlySubscriptions[this.request.callId+this.request.from.parameters.tag+this.event],this.ua.subscriptions[this.id||""]=this)),t=e.parseHeader("Subscription-State"),e.reply(200),clearTimeout(this.timers.N),this.emit("notify",{request:e}),"terminated"!==this.state)switch(t.state){case"active":this.state="active",n();break;case"pending":"notify_wait"===this.state&&n(),this.state="pending";break;case"terminated":if(clearTimeout(this.timers.subDuration),t.reason)switch(this.logger.log("terminating subscription with reason "+t.reason),t.reason){case"deactivated":case"timeout":return void this.subscribe();case"probation":case"giveup":return void(t.params&&t.params["retry-after"]?this.timers.subDuration=setTimeout(function(){return r.subscribe()},t.params["retry-after"]):this.subscribe())}this.close()}else"terminated"===t.state&&(this.terminateDialog(),clearTimeout(this.timers.N),clearTimeout(this.timers.subDuration),delete this.ua.subscriptions[this.id||""]);else e.reply(489)},t.prototype.close=function(){"notify_wait"===this.state?(this.state="terminated",clearTimeout(this.timers.N),clearTimeout(this.timers.subDuration),this.receiveResponse=function(){},this.request&&this.request.from&&delete this.ua.earlySubscriptions[this.request.callId+this.request.from.parameters.tag+this.event],this.emit("terminated")):"terminated"!==this.state&&this.unsubscribe()},t.prototype.onDialogError=function(e){this.failed(e,a.C.causes.DIALOG_ERROR)},t.prototype.timer_fire=function(){"terminated"===this.state?(this.terminateDialog(),clearTimeout(this.timers.N),clearTimeout(this.timers.subDuration),delete this.ua.subscriptions[this.id||""]):"notify_wait"===this.state||"pending"===this.state?this.close():this.refresh()},t.prototype.createConfirmedDialog=function(e,t){this.terminateDialog();var r=new s.Dialog(this,e,t);return this.request&&(r.inviteSeqnum=this.request.cseq,r.localSeqnum=this.request.cseq),!r.error&&(this.dialog=r,!0)},t.prototype.terminateDialog=function(){this.dialog&&(delete this.ua.subscriptions[this.id||""],this.dialog.terminate(),delete this.dialog)},t.prototype.failed=function(e,t){return this.close(),this.emit("failed",e,t),this.emit("rejected",e,t),this},t.prototype.matchEvent=function(e){if(!e.hasHeader("Event"))return this.logger.warn("missing Event header"),!1;if(!e.hasHeader("Subscription-State"))return this.logger.warn("missing Subscription-State header"),!1;var t=e.parseHeader("event").event;return this.event===t||(this.logger.warn("event match failed"),e.reply(481,"Event Match Failed"),!1)},t}(i.ClientContext);t.Subscription=d},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),a=r(0),s=function(e){function t(t,r){var n=e.call(this)||this;return n.type=a.TypeStrings.Transport,n.logger=t,n}return o(t,e),t.prototype.connect=function(e){var t=this;return void 0===e&&(e={}),this.connectPromise(e).then(function(e){e.overrideEvent||t.emit("connected")})},t.prototype.send=function(e,t){var r=this;return this.sendPromise(e).then(function(e){e.overrideEvent||r.emit("messageSent",e.msg)})},t.prototype.disconnect=function(e){var t=this;return void 0===e&&(e={}),this.disconnectPromise(e).then(function(e){e.overrideEvent||t.emit("disconnected")})},t.prototype.afterConnected=function(e){this.isConnected()?e():this.once("connected",e)},t.prototype.waitForConnected=function(){var e=this;return new Promise(function(t){e.afterConnected(t)})},t}(i.EventEmitter);t.Transport=s},function(e,t,r){(function(e){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),a=r(7),s=r(1),l=r(18),c=r(0),u=r(5),d=r(4),p=r(19),h=r(20),f=r(21),v=r(22),m=r(23),g=r(14),y=r(24),C=r(25),S=r(9),T=r(10),b=r(2),w=r(28),E=r(29),A=e.window||e,_=function(t){function r(e){var n=t.call(this)||this;n.type=c.TypeStrings.UA,n.log=new p.LoggerFactory,n.logger=n.getLogger("sip.ua"),n.cache={credentials:{}},n.configuration={},n.dialogs={},n.applicants={},n.data={},n.sessions={},n.subscriptions={},n.earlySubscriptions={},n.publishers={},n.status=c.UAStatus.STATUS_INIT,n.transactions={nist:{},nict:{},ist:{},ict:{}},void 0===e?e={}:("string"==typeof e||e instanceof String)&&(e={uri:e}),e.log&&(e.log.hasOwnProperty("builtinEnabled")&&(n.log.builtinEnabled=e.log.builtinEnabled),e.log.hasOwnProperty("level")&&(n.log.level=e.log.level),e.log.hasOwnProperty("connector")&&(n.log.connector=e.log.connector));try{n.loadConfig(e)}catch(o){throw n.status=c.UAStatus.STATUS_NOT_READY,n.error=r.C.CONFIGURATION_ERROR,o}return n.registerContext=new v.RegisterContext(n,e.registerOptions),n.registerContext.on("failed",n.emit.bind(n,"registrationFailed")),n.registerContext.on("registered",n.emit.bind(n,"registered")),n.registerContext.on("unregistered",n.emit.bind(n,"unregistered")),n.configuration.autostart&&n.start(),n}return o(r,t),Object.defineProperty(r.prototype,"transactionsCount",{get:function(){for(var e=0,t=0,r=["nist","nict","ist","ict"];t<r.length;t++){var n=r[t];e+=Object.keys(this.transactions[n]).length}return e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"nictTransactionsCount",{get:function(){return Object.keys(this.transactions.nict).length},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"nistTransactionsCount",{get:function(){return Object.keys(this.transactions.nist).length},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"ictTransactionsCount",{get:function(){return Object.keys(this.transactions.ict).length},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"istTransactionsCount",{get:function(){return Object.keys(this.transactions.ist).length},enumerable:!0,configurable:!0}),r.prototype.register=function(e){return void 0===e&&(e={}),e.register&&(this.configuration.register=!0),this.registerContext.register(e),this},r.prototype.unregister=function(e){var t=this;return this.configuration.register=!1,this.transport&&this.transport.afterConnected(function(){t.registerContext.unregister(e)}),this},r.prototype.isRegistered=function(){return this.registerContext.registered},r.prototype.invite=function(e,t,r){var n=this,o=new y.InviteClientContext(this,e,t,r);return this.transport&&this.transport.afterConnected(function(){o.invite(),n.emit("inviteSent",o)}),o},r.prototype.subscribe=function(e,t,r){var n=new C.Subscription(this,e,t,r);return this.transport&&this.transport.afterConnected(function(){return n.subscribe()}),n},r.prototype.publish=function(e,t,r,n){var o=new f.PublishContext(this,e,t,n);return this.transport&&this.transport.afterConnected(function(){o.publish(r)}),o},r.prototype.message=function(e,t,r){if(void 0===r&&(r={}),void 0===t)throw new TypeError("Not enough arguments");return r.contentType=r.contentType||"text/plain",r.body=t,this.request(s.C.MESSAGE,e,r)},r.prototype.request=function(e,t,r){var n=new a.ClientContext(this,e,t,r);return this.transport&&this.transport.afterConnected(function(){return n.send()}),n},r.prototype.stop=function(){var t=this;if(this.logger.log("user requested closure..."),this.status===c.UAStatus.STATUS_USER_CLOSED)return this.logger.warn("UA already closed"),this;for(var r in this.logger.log("closing registerContext"),this.registerContext.close(),this.sessions)this.sessions[r]&&(this.logger.log("closing session "+r),this.sessions[r].terminate());for(var n in this.subscriptions)this.subscriptions[n]&&(this.logger.log("unsubscribing from subscription "+n),this.subscriptions[n].close());for(var o in this.earlySubscriptions)this.earlySubscriptions[o]&&(this.logger.log("unsubscribing from early subscription "+o),this.earlySubscriptions[o].close());for(var i in this.publishers)this.publishers[i]&&(this.logger.log("unpublish "+i),this.publishers[i].close());for(var a in this.applicants)this.applicants[a]&&this.applicants[a].close();if(this.status=c.UAStatus.STATUS_USER_CLOSED,0===this.nistTransactionsCount&&0===this.nictTransactionsCount&&this.transport)this.transport.disconnect();else{var s=function(){0===t.nistTransactionsCount&&0===t.nictTransactionsCount&&(t.removeListener("transactionDestroyed",s),t.transport&&t.transport.disconnect())};this.on("transactionDestroyed",s)}return"function"==typeof A.removeEventListener&&(e.chrome&&e.chrome.app&&e.chrome.app.runtime||A.removeEventListener("unload",this.environListener)),this},r.prototype.start=function(){var t=this;if(this.logger.log("user requested startup..."),this.status===c.UAStatus.STATUS_INIT){if(this.status=c.UAStatus.STATUS_STARTING,!this.configuration.transportConstructor)throw new u.Exceptions.TransportError("Transport constructor not set");this.transport=new this.configuration.transportConstructor(this.getLogger("sip.transport"),this.configuration.transportOptions),this.setTransportListeners(),this.emit("transportCreated",this.transport),this.transport.connect()}else this.status===c.UAStatus.STATUS_USER_CLOSED?(this.logger.log("resuming"),this.status=c.UAStatus.STATUS_READY,this.transport&&this.transport.connect()):this.status===c.UAStatus.STATUS_STARTING?this.logger.log("UA is in STARTING status, not opening new connection"):this.status===c.UAStatus.STATUS_READY?this.logger.log("UA is in READY status, not resuming"):this.logger.error("Connection is down. Auto-Recovery system is trying to connect");return this.configuration.autostop&&"function"==typeof A.addEventListener&&(e.chrome&&e.chrome.app&&e.chrome.app.runtime||(this.environListener=this.stop,A.addEventListener("unload",function(){return t.environListener()}))),this},r.prototype.normalizeTarget=function(e){return b.Utils.normalizeTarget(e,this.configuration.hostportParams)},r.prototype.getLogger=function(e,t){return this.log.getLogger(e,t)},r.prototype.newTransaction=function(e){this.transactions[e.kind][e.id]=e,this.emit("newTransaction",{transaction:e})},r.prototype.destroyTransaction=function(e){delete this.transactions[e.kind][e.id],this.emit("transactionDestroyed",{transaction:e})},r.prototype.findSession=function(e){return this.sessions[e.callId+e.fromTag]||this.sessions[e.callId+e.toTag]||void 0},r.prototype.saveCredentials=function(e){return this.cache.credentials[e.realm]=this.cache.credentials[e.realm]||{},this.cache.credentials[e.realm][e.uri]=e,this},r.prototype.getCredentials=function(e){var t=e.ruri.type===c.TypeStrings.URI?e.ruri.host:"";if(t&&this.cache.credentials[t]&&this.cache.credentials[t][e.ruri.toString()]){var r=this.cache.credentials[t][e.ruri.toString()];return r.method=e.method,r}},r.prototype.onTransportError=function(){this.status!==c.UAStatus.STATUS_USER_CLOSED&&(this.error&&this.error===r.C.NETWORK_ERROR||(this.status=c.UAStatus.STATUS_NOT_READY,this.error=r.C.NETWORK_ERROR))},r.prototype.setTransportListeners=function(){var e=this;this.transport&&(this.transport.on("connected",function(){return e.onTransportConnected()}),this.transport.on("message",function(t){return e.onTransportReceiveMsg(t)}),this.transport.on("transportError",function(){return e.onTransportError()}))},r.prototype.onTransportConnected=function(){var e=this;this.configuration.register&&Promise.resolve().then(function(){return e.registerContext.register()})},r.prototype.onTransportReceiveMsg=function(e){var t=h.Parser.parseMessage(e,this);if(this.status===c.UAStatus.STATUS_USER_CLOSED&&t&&t.type===c.TypeStrings.IncomingRequest)this.logger.warn("UA received message when status = USER_CLOSED - aborting");else if(t&&this.transport&&m.SanityCheck.sanityCheck(t,this,this.transport))if(t.type===c.TypeStrings.IncomingRequest)t.transport=this.transport,this.receiveRequest(t);else if(t.type===c.TypeStrings.IncomingResponse)switch(t.method){case s.C.INVITE:var r=this.transactions.ict[t.viaBranch];r&&r.receiveResponse(t);break;case s.C.ACK:break;default:var n=this.transactions.nict[t.viaBranch];n&&n.receiveResponse(t)}},r.prototype.receiveRequest=function(e){var t=function(t){return!!t&&!!e.ruri&&t.user===e.ruri.user};if(this.configuration.uri.type===c.TypeStrings.URI&&!(t(this.configuration.uri)||this.contact&&(t(this.contact.uri)||t(this.contact.pubGruu)||t(this.contact.tempGruu))))return this.logger.warn("Request-URI does not point to us"),void(e.method!==s.C.ACK&&e.reply_sl(404));if(e.ruri&&e.ruri.scheme===s.C.SIPS)e.reply_sl(416);else if(!this.checkTransaction(e)){var n,o=e.method;if(o===s.C.OPTIONS?(new S.NonInviteServerTransaction(e,this),e.reply(200,void 0,["Allow: "+r.C.ALLOWED_METHODS.toString(),"Accept: "+r.C.ACCEPTED_BODY_TYPES.toString()])):o===s.C.MESSAGE?((n=new g.ServerContext(this,e)).body=e.body,n.contentType=e.getHeader("Content-Type")||"text/plain",e.reply(200,void 0),this.emit("message",n)):o!==s.C.INVITE&&o!==s.C.ACK&&(n=new g.ServerContext(this,e)),e.toTag){var i=this.findDialog(e);if(i)o===s.C.INVITE&&new S.InviteServerTransaction(e,this),i.receiveRequest(e);else if(o===s.C.NOTIFY){p=this.findSession(e);var a=this.findEarlySubscription(e);p?p.receiveRequest(e):a?a.receiveRequest(e):(this.logger.warn("received NOTIFY request for a non existent session or subscription"),e.reply(481,"Subscription does not exist"))}else o!==s.C.ACK&&e.reply(481)}else switch(o){case s.C.INVITE:var l=this.configuration.replaces!==s.C.supported.UNSUPPORTED&&e.parseHeader("replaces"),u=void 0;if(l){if(!(u=this.dialogs[l.call_id+l.replaces_to_tag+l.replaces_from_tag]))return void e.reply_sl(481,void 0);if(u.owner.type!==c.TypeStrings.Subscription&&u.owner.status===c.SessionStatus.STATUS_TERMINATED)return void e.reply_sl(603,void 0);if(u.state===c.DialogStatus.STATUS_CONFIRMED&&l.earlyOnly)return void e.reply_sl(486,void 0)}var d=new y.InviteServerContext(this,e);u&&u.owner.type!==c.TypeStrings.Subscription&&(d.replacee=u&&u.owner),this.emit("invite",d);break;case s.C.BYE:e.reply(481);break;case s.C.CANCEL:var p;(p=this.findSession(e))?p.receiveRequest(e):this.logger.warn("received CANCEL request for a non existent session");break;case s.C.ACK:break;case s.C.NOTIFY:this.configuration.allowLegacyNotifications&&this.listeners("notify").length>0?(e.reply(200,void 0),this.emit("notify",{request:e})):e.reply(481,"Subscription does not exist");break;case s.C.REFER:if(this.logger.log("Received an out of dialog refer"),this.configuration.allowOutOfDialogRefers){this.logger.log("Allow out of dialog refers is enabled on the UA");var h=new y.ReferServerContext(this,e);this.listeners("outOfDialogReferRequested").length?this.emit("outOfDialogReferRequested",h):(this.logger.log("No outOfDialogReferRequest listeners, automatically accepting and following the out of dialog refer"),h.accept({followRefer:!0}));break}e.reply(405);break;default:e.reply(405)}}},r.prototype.checkTransaction=function(e){return S.checkTransaction(this,e)},r.prototype.findDialog=function(e){return this.dialogs[e.callId+e.fromTag+e.toTag]||this.dialogs[e.callId+e.toTag+e.fromTag]||void 0},r.prototype.findEarlySubscription=function(e){return this.earlySubscriptions[e.callId+e.toTag+e.getHeader("event")]||void 0},r.prototype.checkAuthenticationFactory=function(e){if(e instanceof Function)return e.initialize||(e.initialize=function(){return Promise.resolve()}),e},r.prototype.loadConfig=function(e){var t=this,r={viaHost:b.Utils.createRandomToken(12)+".invalid",uri:new T.URI("sip","anonymous."+b.Utils.createRandomToken(6),"anonymous.invalid",void 0,void 0),custom:{},displayName:"",password:void 0,register:!0,registerOptions:{},transportConstructor:E.Transport,transportOptions:{},userAgentString:s.C.USER_AGENT,noAnswerTimeout:60,hackViaTcp:!1,hackIpInContact:!1,hackWssInTransport:!1,hackAllowUnregisteredOptionTags:!1,sessionDescriptionHandlerFactoryOptions:{constraints:{},peerConnectionOptions:{}},extraSupported:[],contactName:b.Utils.createRandomToken(8),contactTransport:"ws",forceRport:!1,autostart:!0,autostop:!0,rel100:s.C.supported.UNSUPPORTED,dtmfType:s.C.dtmfType.INFO,replaces:s.C.supported.UNSUPPORTED,sessionDescriptionHandlerFactory:w.SessionDescriptionHandler.defaultFactory,authenticationFactory:this.checkAuthenticationFactory(function(e){return new l.DigestAuthentication(e)}),allowLegacyNotifications:!1,allowOutOfDialogRefers:!1},n=this.getConfigurationCheck();for(var o in n.mandatory){if(!e.hasOwnProperty(o))throw new u.Exceptions.ConfigurationError(o);var i=e[o];if(void 0===(a=n.mandatory[o](i)))throw new u.Exceptions.ConfigurationError(o,i);r[o]=a}for(var o in n.optional)if(e.hasOwnProperty(o)){var a;if((i=e[o])instanceof Array&&0===i.length||null===i||""===i||void 0===i||"number"==typeof i&&isNaN(i))continue;if(void 0===(a=n.optional[o](i)))throw new u.Exceptions.ConfigurationError(o,i);r[o]=a}0===r.displayName&&(r.displayName="0"),r.sipjsId=b.Utils.createRandomToken(5);var c=r.uri.clone();if(c.user=void 0,r.hostportParams=c.toRaw().replace(/^sip:/i,""),r.authorizationUser||(r.authorizationUser=r.uri.user),r.noAnswerTimeout=1e3*r.noAnswerTimeout,r.hackIpInContact)if("boolean"==typeof r.hackIpInContact){var d=Math.floor(254*Math.random()+1);r.viaHost="192.0.2."+d}else"string"==typeof r.hackIpInContact&&(r.viaHost=r.hackIpInContact);r.hackWssInTransport&&(r.contactTransport="wss"),this.contact={pubGruu:void 0,tempGruu:void 0,uri:new T.URI("sip",r.contactName,r.viaHost,void 0,{transport:r.contactTransport}),toString:function(e){void 0===e&&(e={});var n=e.anonymous||!1,o=e.outbound||!1,i="<";return i+=n?(t.contact.tempGruu||"sip:anonymous@anonymous.invalid;transport="+r.contactTransport).toString():(t.contact.pubGruu||t.contact.uri).toString(),o&&(i+=";ob"),i+">"}};var p={};for(var o in r)r.hasOwnProperty(o)&&(p[o]=r[o]);for(var o in Object.assign(this.configuration,p),this.logger.log("configuration parameters after validation:"),r)if(r.hasOwnProperty(o))switch(o){case"uri":case"sessionDescriptionHandlerFactory":this.logger.log("· "+o+": "+r[o]);break;case"password":this.logger.log("· "+o+": NOT SHOWN");break;case"transportConstructor":this.logger.log("· "+o+": "+r[o].name);break;default:this.logger.log("· "+o+": "+JSON.stringify(r[o]))}},r.prototype.getConfigurationCheck=function(){return{mandatory:{},optional:{uri:function(e){/^sip:/i.test(e)||(e=s.C.SIP+":"+e);var t=d.Grammar.URIParse(e);return t&&t.user?t:void 0},transportConstructor:function(e){if(e instanceof Function)return e},transportOptions:function(e){if("object"==typeof e)return e},authorizationUser:function(e){return-1===d.Grammar.parse('"'+e+'"',"quoted_string")?void 0:e},displayName:function(e){return-1===d.Grammar.parse('"'+e+'"',"displayName")?void 0:e},dtmfType:function(e){switch(e){case s.C.dtmfType.RTP:return s.C.dtmfType.RTP;case s.C.dtmfType.INFO:default:return s.C.dtmfType.INFO}},hackViaTcp:function(e){if("boolean"==typeof e)return e},hackIpInContact:function(e){return"boolean"==typeof e||"string"==typeof e&&-1!==d.Grammar.parse(e,"host")?e:void 0},hackWssInTransport:function(e){if("boolean"==typeof e)return e},hackAllowUnregisteredOptionTags:function(e){if("boolean"==typeof e)return e},contactTransport:function(e){if("string"==typeof e)return e},extraSupported:function(e){if(e instanceof Array){for(var t=0,r=e;t<r.length;t++)if("string"!=typeof r[t])return;return e}},forceRport:function(e){if("boolean"==typeof e)return e},noAnswerTimeout:function(e){if(b.Utils.isDecimal(e)){var t=Number(e);if(t>0)return t}},password:function(e){return String(e)},rel100:function(e){return e===s.C.supported.REQUIRED?s.C.supported.REQUIRED:e===s.C.supported.SUPPORTED?s.C.supported.SUPPORTED:s.C.supported.UNSUPPORTED},replaces:function(e){return e===s.C.supported.REQUIRED?s.C.supported.REQUIRED:e===s.C.supported.SUPPORTED?s.C.supported.SUPPORTED:s.C.supported.UNSUPPORTED},register:function(e){if("boolean"==typeof e)return e},registerOptions:function(e){if("object"==typeof e)return e},userAgentString:function(e){if("string"==typeof e)return e},autostart:function(e){if("boolean"==typeof e)return e},autostop:function(e){if("boolean"==typeof e)return e},sessionDescriptionHandlerFactory:function(e){if(e instanceof Function)return e},sessionDescriptionHandlerFactoryOptions:function(e){if("object"==typeof e)return e},authenticationFactory:this.checkAuthenticationFactory,allowLegacyNotifications:function(e){if("boolean"==typeof e)return e},custom:function(e){if("object"==typeof e)return e},contactName:function(e){if("string"==typeof e)return e}}}},r.C={STATUS_INIT:0,STATUS_STARTING:1,STATUS_READY:2,STATUS_USER_CLOSED:3,STATUS_NOT_READY:4,CONFIGURATION_ERROR:1,NETWORK_ERROR:2,ALLOWED_METHODS:["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"],ACCEPTED_BODY_TYPES:["application/sdp","application/dtmf-relay"],MAX_FORWARDS:70,TAG_LENGTH:10},r}(i.EventEmitter);t.UA=_}).call(this,r(12))},function(e,t,r){(function(e){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),a=r(0),s=r(5),l=r(2),c=r(15),u=r(35),d=function(t){function r(r,n,o){var i=t.call(this)||this;i.type=a.TypeStrings.SessionDescriptionHandler,i.options=o||{},i.logger=r,i.observer=n,i.dtmfSender=void 0,i.shouldAcquireMedia=!0,i.CONTENT_TYPE="application/sdp",i.C={DIRECTION:{NULL:null,SENDRECV:"sendrecv",SENDONLY:"sendonly",RECVONLY:"recvonly",INACTIVE:"inactive"}},i.logger.log("SessionDescriptionHandlerOptions: "+JSON.stringify(i.options)),i.direction=i.C.DIRECTION.NULL,i.modifiers=i.options.modifiers||[],Array.isArray(i.modifiers)||(i.modifiers=[i.modifiers]);var s=e.window||e;return i.WebRTC={MediaStream:s.MediaStream,getUserMedia:s.navigator.mediaDevices.getUserMedia.bind(s.navigator.mediaDevices),RTCPeerConnection:s.RTCPeerConnection},i.iceGatheringTimeout=!1,i.initPeerConnection(i.options.peerConnectionOptions),i.constraints=i.checkAndDefaultConstraints(i.options.constraints),i}return o(r,t),r.defaultFactory=function(e,t){return new r(e.ua.getLogger("sip.invitecontext.sessionDescriptionHandler",e.id),new u.SessionDescriptionHandlerObserver(e,t),t)},r.prototype.close=function(){this.logger.log("closing PeerConnection"),this.peerConnection&&"closed"!==this.peerConnection.signalingState&&(this.peerConnection.getSenders?this.peerConnection.getSenders().forEach(function(e){e.track&&e.track.stop()}):(this.logger.warn("Using getLocalStreams which is deprecated"),this.peerConnection.getLocalStreams().forEach(function(e){e.getTracks().forEach(function(e){e.stop()})})),this.peerConnection.getReceivers?this.peerConnection.getReceivers().forEach(function(e){e.track&&e.track.stop()}):(this.logger.warn("Using getRemoteStreams which is deprecated"),this.peerConnection.getRemoteStreams().forEach(function(e){e.getTracks().forEach(function(e){e.stop()})})),this.resetIceGatheringComplete(),this.peerConnection.close())},r.prototype.getDescription=function(e,t){var r=this;void 0===e&&(e={}),void 0===t&&(t=[]),e.peerConnectionOptions&&this.initPeerConnection(e.peerConnectionOptions);var n=Object.assign({},this.constraints,e.constraints);return n=this.checkAndDefaultConstraints(n),JSON.stringify(n)!==JSON.stringify(this.constraints)&&(this.constraints=n,this.shouldAcquireMedia=!0),Array.isArray(t)||(t=[t]),t=t.concat(this.modifiers),Promise.resolve().then(function(){if(r.shouldAcquireMedia)return r.acquire(r.constraints).then(function(){r.shouldAcquireMedia=!1})}).then(function(){return r.createOfferOrAnswer(e.RTCOfferOptions,t)}).then(function(e){return r.emit("getDescription",e),{body:e.sdp,contentType:r.CONTENT_TYPE}})},r.prototype.hasDescription=function(e){return e===this.CONTENT_TYPE},r.prototype.holdModifier=function(e){return e.sdp?(/a=(sendrecv|sendonly|recvonly|inactive)/.test(e.sdp)?(e.sdp=e.sdp.replace(/a=sendrecv\r\n/g,"a=sendonly\r\n"),e.sdp=e.sdp.replace(/a=recvonly\r\n/g,"a=inactive\r\n")):e.sdp=e.sdp.replace(/(m=[^\r]*\r\n)/g,"$1a=sendonly\r\n"),Promise.resolve(e)):Promise.resolve(e)},r.prototype.setDescription=function(e,t,r){var n=this;void 0===t&&(t={}),void 0===r&&(r=[]),t.peerConnectionOptions&&this.initPeerConnection(t.peerConnectionOptions),Array.isArray(r)||(r=[r]),r=r.concat(this.modifiers);var o={type:this.hasOffer("local")?"answer":"offer",sdp:e};return Promise.resolve().then(function(){if(n.shouldAcquireMedia&&n.options.alwaysAcquireMediaFirst)return n.acquire(n.constraints).then(function(){n.shouldAcquireMedia=!1})}).then(function(){return l.Utils.reducePromises(r,o)}).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var t=new s.Exceptions.SessionDescriptionHandlerError("setDescription",e,"The modifiers did not resolve successfully");throw n.logger.error(t.message),n.emit("peerConnection-setRemoteDescriptionFailed",t),t}).then(function(e){return n.emit("setDescription",e),n.peerConnection.setRemoteDescription(e)}).catch(function(o){if(o.type===a.TypeStrings.SessionDescriptionHandlerError)throw o;if(/^m=video.+$/gm.test(e)&&!t.disableAudioFallback)return t.disableAudioFallback=!0,n.setDescription(e,t,[c.stripVideo].concat(r));var i=new s.Exceptions.SessionDescriptionHandlerError("setDescription",o);throw i.error&&n.logger.error(i.error),n.emit("peerConnection-setRemoteDescriptionFailed",i),i}).then(function(){n.peerConnection.getReceivers?n.emit("setRemoteDescription",n.peerConnection.getReceivers()):n.emit("setRemoteDescription",n.peerConnection.getRemoteStreams()),n.emit("confirmed",n)})},r.prototype.sendDtmf=function(e,t){if(void 0===t&&(t={}),!this.dtmfSender&&this.hasBrowserGetSenderSupport()){var r=this.peerConnection.getSenders();r.length>0&&(this.dtmfSender=r[0].dtmf)}if(!this.dtmfSender&&this.hasBrowserTrackSupport()){var n=this.peerConnection.getLocalStreams();if(n.length>0){var o=n[0].getAudioTracks();o.length>0&&(this.dtmfSender=this.peerConnection.createDTMFSender(o[0]))}}if(!this.dtmfSender)return!1;try{this.dtmfSender.insertDTMF(e,t.duration,t.interToneGap)}catch(i){if("InvalidStateError"===i.type||"InvalidCharacterError"===i.type)return this.logger.error(i),!1;throw i}return this.logger.log("DTMF sent via RTP: "+e.toString()),!0},r.prototype.getDirection=function(){return this.direction},r.prototype.createOfferOrAnswer=function(e,t){var r=this;void 0===e&&(e={}),void 0===t&&(t=[]);var n=this.hasOffer("remote")?"createAnswer":"createOffer",o=this.peerConnection;return this.logger.log(n),o[n](e).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var t=new s.Exceptions.SessionDescriptionHandlerError("createOfferOrAnswer",e,"peerConnection-"+n+"Failed");throw r.emit("peerConnection-"+n+"Failed",t),t}).then(function(e){return l.Utils.reducePromises(t,r.createRTCSessionDescriptionInit(e))}).then(function(e){return r.resetIceGatheringComplete(),r.logger.log("Setting local sdp."),r.logger.log("sdp is "+e.sdp||!1),o.setLocalDescription(e)}).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var t=new s.Exceptions.SessionDescriptionHandlerError("createOfferOrAnswer",e,"peerConnection-SetLocalDescriptionFailed");throw r.emit("peerConnection-SetLocalDescriptionFailed",t),t}).then(function(){return r.waitForIceGatheringComplete()}).then(function(){var e=r.createRTCSessionDescriptionInit(r.peerConnection.localDescription);return l.Utils.reducePromises(t,e)}).then(function(e){return r.setDirection(e.sdp||""),e}).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var t=new s.Exceptions.SessionDescriptionHandlerError("createOfferOrAnswer",e);throw r.logger.error(t.toString()),t})},r.prototype.createRTCSessionDescriptionInit=function(e){return{type:e.type,sdp:e.sdp}},r.prototype.addDefaultIceCheckingTimeout=function(e){return void 0===e.iceCheckingTimeout&&(e.iceCheckingTimeout=5e3),e},r.prototype.addDefaultIceServers=function(e){return e.iceServers||(e.iceServers=[{urls:"stun:stun.l.google.com:19302"}]),e},r.prototype.checkAndDefaultConstraints=function(e){var t={audio:!0,video:!this.options.alwaysAcquireMediaFirst};return e=e||t,0===Object.keys(e).length&&e.constructor===Object?t:e},r.prototype.hasBrowserTrackSupport=function(){return Boolean(this.peerConnection.addTrack)},r.prototype.hasBrowserGetSenderSupport=function(){return Boolean(this.peerConnection.getSenders)},r.prototype.initPeerConnection=function(e){var t=this;void 0===e&&(e={}),(e=this.addDefaultIceCheckingTimeout(e)).rtcConfiguration=e.rtcConfiguration||{},e.rtcConfiguration=this.addDefaultIceServers(e.rtcConfiguration),this.logger.log("initPeerConnection"),this.peerConnection&&(this.logger.log("Already have a peer connection for this session. Tearing down."),this.resetIceGatheringComplete(),this.peerConnection.close()),this.peerConnection=new this.WebRTC.RTCPeerConnection(e.rtcConfiguration),this.logger.log("New peer connection created"),"ontrack"in this.peerConnection?this.peerConnection.addEventListener("track",function(e){t.logger.log("track added"),t.observer.trackAdded(),t.emit("addTrack",e)}):(this.logger.warn("Using onaddstream which is deprecated"),this.peerConnection.onaddstream=function(e){t.logger.log("stream added"),t.emit("addStream",e)}),this.peerConnection.onicecandidate=function(e){t.emit("iceCandidate",e),e.candidate?t.logger.log("ICE candidate received: "+(null===e.candidate.candidate?null:e.candidate.candidate.trim())):null===e.candidate&&(t.logger.log("ICE candidate gathering complete"),t.triggerIceGatheringComplete())},this.peerConnection.onicegatheringstatechange=function(){switch(t.logger.log("RTCIceGatheringState changed: "+t.peerConnection.iceGatheringState),t.peerConnection.iceGatheringState){case"gathering":t.emit("iceGathering",t),!t.iceGatheringTimer&&e.iceCheckingTimeout&&(t.iceGatheringTimeout=!1,t.iceGatheringTimer=setTimeout(function(){t.logger.log("RTCIceChecking Timeout Triggered after "+e.iceCheckingTimeout+" milliseconds"),t.iceGatheringTimeout=!0,t.triggerIceGatheringComplete()},e.iceCheckingTimeout));break;case"complete":t.triggerIceGatheringComplete()}},this.peerConnection.oniceconnectionstatechange=function(){var e;switch(t.peerConnection.iceConnectionState){case"new":e="iceConnection";break;case"checking":e="iceConnectionChecking";break;case"connected":e="iceConnectionConnected";break;case"completed":e="iceConnectionCompleted";break;case"failed":e="iceConnectionFailed";break;case"disconnected":e="iceConnectionDisconnected";break;case"closed":e="iceConnectionClosed";break;default:return void t.logger.warn("Unknown iceConnection state: "+t.peerConnection.iceConnectionState)}t.logger.log("ICE Connection State changed to "+e),t.emit(e,t)}},r.prototype.acquire=function(e){var t=this;return e=this.checkAndDefaultConstraints(e),new Promise(function(r,n){t.logger.log("acquiring local media"),t.emit("userMediaRequest",e),e.audio||e.video?t.WebRTC.getUserMedia(e).then(function(e){t.observer.trackAdded(),t.emit("userMedia",e),r(e)}).catch(function(e){t.emit("userMediaFailed",e),n(e)}):r([])}).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var r=new s.Exceptions.SessionDescriptionHandlerError("acquire",e,"unable to acquire streams");throw t.logger.error(r.message),r.error&&t.logger.error(r.error),r}).then(function(e){t.logger.log("acquired local media streams");try{return t.peerConnection.removeTrack&&t.peerConnection.getSenders().forEach(function(e){t.peerConnection.removeTrack(e)}),e}catch(r){return Promise.reject(r)}}).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var r=new s.Exceptions.SessionDescriptionHandlerError("acquire",e,"error removing streams");throw t.logger.error(r.message),r.error&&t.logger.error(r.error),r}).then(function(e){try{(e=[].concat(e)).forEach(function(e){t.peerConnection.addTrack?e.getTracks().forEach(function(r){t.peerConnection.addTrack(r,e)}):t.peerConnection.addStream(e)})}catch(r){return Promise.reject(r)}return Promise.resolve()}).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var r=new s.Exceptions.SessionDescriptionHandlerError("acquire",e,"error adding stream");throw t.logger.error(r.message),r.error&&t.logger.error(r.error),r})},r.prototype.hasOffer=function(e){var t="have-"+e+"-offer";return this.peerConnection.signalingState===t},r.prototype.isIceGatheringComplete=function(){return"complete"===this.peerConnection.iceGatheringState||this.iceGatheringTimeout},r.prototype.resetIceGatheringComplete=function(){this.iceGatheringTimeout=!1,this.logger.log("resetIceGatheringComplete"),this.iceGatheringTimer&&(clearTimeout(this.iceGatheringTimer),this.iceGatheringTimer=void 0),this.iceGatheringDeferred&&(this.iceGatheringDeferred.reject(),this.iceGatheringDeferred=void 0)},r.prototype.setDirection=function(e){var t=e.match(/a=(sendrecv|sendonly|recvonly|inactive)/);if(null===t)return this.direction=this.C.DIRECTION.NULL,void this.observer.directionChanged();var r=t[1];switch(r){case this.C.DIRECTION.SENDRECV:case this.C.DIRECTION.SENDONLY:case this.C.DIRECTION.RECVONLY:case this.C.DIRECTION.INACTIVE:this.direction=r;break;default:this.direction=this.C.DIRECTION.NULL}this.observer.directionChanged()},r.prototype.triggerIceGatheringComplete=function(){this.isIceGatheringComplete()&&(this.emit("iceGatheringComplete",this),this.iceGatheringTimer&&(clearTimeout(this.iceGatheringTimer),this.iceGatheringTimer=void 0),this.iceGatheringDeferred&&(this.iceGatheringDeferred.resolve(),this.iceGatheringDeferred=void 0))},r.prototype.waitForIceGatheringComplete=function(){return this.logger.log("waitForIceGatheringComplete"),this.isIceGatheringComplete()?(this.logger.log("ICE is already complete. Return resolved."),Promise.resolve()):(this.iceGatheringDeferred||(this.iceGatheringDeferred=l.Utils.defer()),this.logger.log("ICE is not complete. Returning promise"),this.iceGatheringDeferred?this.iceGatheringDeferred.promise:Promise.resolve())},r}(i.EventEmitter);t.SessionDescriptionHandler=d}).call(this,r(12))},function(e,t,r){(function(e){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,a,s=r(0),l=r(5),c=r(4),u=r(26),d=r(2);(a=i=t.TransportStatus||(t.TransportStatus={}))[a.STATUS_CONNECTING=0]="STATUS_CONNECTING",a[a.STATUS_OPEN=1]="STATUS_OPEN",a[a.STATUS_CLOSING=2]="STATUS_CLOSING",a[a.STATUS_CLOSED=3]="STATUS_CLOSED";var p=function(t){function r(r,n){void 0===n&&(n={});var o=t.call(this,r,n)||this;return o.WebSocket=(e.window||e).WebSocket,o.type=s.TypeStrings.Transport,o.reconnectionAttempts=0,o.status=i.STATUS_CONNECTING,o.configuration={},o.loadConfig(n),o}return o(r,t),r.prototype.isConnected=function(){return this.status===i.STATUS_OPEN},r.prototype.sendPromise=function(e,t){if(void 0===t&&(t={}),!this.statusAssert(i.STATUS_OPEN,t.force))return this.onError("unable to send message - WebSocket not open"),Promise.reject();var r=e.toString();return this.ws?(!0===this.configuration.traceSip&&this.logger.log("sending WebSocket message:\n\n"+r+"\n"),this.ws.send(r),Promise.resolve({msg:r})):(this.onError("unable to send message - WebSocket does not exist"),Promise.reject())},r.prototype.disconnectPromise=function(e){var t=this;return void 0===e&&(e={}),this.disconnectionPromise?this.disconnectionPromise:(e.code=e.code||1e3,this.statusTransition(i.STATUS_CLOSING,e.force)?(this.emit("disconnecting"),this.disconnectionPromise=new Promise(function(r,n){t.disconnectDeferredResolve=r,t.reconnectTimer&&(clearTimeout(t.reconnectTimer),t.reconnectTimer=void 0),t.ws?(t.stopSendingKeepAlives(),t.logger.log("closing WebSocket "+t.server.wsUri),t.ws.close(e.code,e.reason)):n("Attempted to disconnect but the websocket doesn't exist")}),this.disconnectionPromise):this.status===i.STATUS_CLOSED?Promise.resolve({overrideEvent:!0}):this.connectionPromise?this.connectionPromise.then(function(){return Promise.reject("The websocket did not disconnect")}).catch(function(){return Promise.resolve({overrideEvent:!0})}):Promise.reject("The websocket did not disconnect"))},r.prototype.connectPromise=function(e){var t=this;return void 0===e&&(e={}),this.status!==i.STATUS_CLOSING||e.force?(this.connectionPromise||(this.server=this.server||this.getNextWsServer(e.force),this.connectionPromise=new Promise(function(r,n){if((t.status===i.STATUS_OPEN||t.status===i.STATUS_CLOSING)&&!e.force)return t.logger.warn("WebSocket "+t.server.wsUri+" is already connected"),void n("Failed status check - attempted to open a connection but already open/closing");t.connectDeferredResolve=r,t.status=i.STATUS_CONNECTING,t.emit("connecting"),t.logger.log("connecting to WebSocket "+t.server.wsUri),t.disposeWs();try{t.ws=new WebSocket(t.server.wsUri,"sip")}catch(o){return t.ws=null,t.status=i.STATUS_CLOSED,t.onError("error connecting to WebSocket "+t.server.wsUri+":"+o),void n("Failed to create a websocket")}t.ws?(t.connectionTimeout=setTimeout(function(){t.statusTransition(i.STATUS_CLOSED),t.logger.warn("took too long to connect - exceeded time set in configuration.connectionTimeout: "+t.configuration.connectionTimeout+"s"),t.emit("disconnected",{code:1e3}),t.connectionPromise=void 0,n("Connection timeout")},1e3*t.configuration.connectionTimeout),t.boundOnOpen=t.onOpen.bind(t),t.boundOnMessage=t.onMessage.bind(t),t.boundOnClose=t.onClose.bind(t),t.boundOnError=t.onWebsocketError.bind(t),t.ws.addEventListener("open",t.boundOnOpen),t.ws.addEventListener("message",t.boundOnMessage),t.ws.addEventListener("close",t.boundOnClose),t.ws.addEventListener("error",t.boundOnError)):n("Unexpected instance websocket not set")})),this.connectionPromise):Promise.reject("WebSocket "+this.server.wsUri+" is closing")},r.prototype.onMessage=function(e){var t,r=e.data;if(/^(\r\n)+$/.test(r))return this.clearKeepAliveTimeout(),void(!0===this.configuration.traceSip&&this.logger.log("received WebSocket message with CRLF Keep Alive response"));if(r){if("string"!=typeof r){try{t=String.fromCharCode.apply(null,new Uint8Array(r))}catch(n){return void this.logger.warn("received WebSocket binary message failed to be converted into string, message discarded")}!0===this.configuration.traceSip&&this.logger.log("received WebSocket binary message:\n\n"+r+"\n")}else!0===this.configuration.traceSip&&this.logger.log("received WebSocket text message:\n\n"+r+"\n"),t=r;this.emit("message",t)}else this.logger.warn("received empty message, message discarded")},r.prototype.onOpen=function(){if(this.status===i.STATUS_CLOSED){var e=this.ws;return this.disposeWs(),void e.close(1e3)}this.status=i.STATUS_OPEN,this.emit("connected"),this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=void 0),this.logger.log("WebSocket "+this.server.wsUri+" connected"),void 0!==this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=void 0),this.reconnectionAttempts=0,this.disconnectionPromise=void 0,this.disconnectDeferredResolve=void 0,this.startSendingKeepAlives(),this.connectDeferredResolve?this.connectDeferredResolve({overrideEvent:!0}):this.logger.warn("Unexpected websocket.onOpen with no connectDeferredResolve")},r.prototype.onClose=function(e){if(this.logger.log("WebSocket disconnected (code: "+e.code+(e.reason?"| reason: "+e.reason:"")+")"),this.status!==i.STATUS_CLOSING&&(this.logger.warn("WebSocket closed without SIP.js requesting it"),this.emit("transportError")),this.stopSendingKeepAlives(),this.connectionTimeout&&clearTimeout(this.connectionTimeout),this.connectionTimeout=void 0,this.connectionPromise=void 0,this.connectDeferredResolve=void 0,this.disconnectDeferredResolve)return this.disconnectDeferredResolve({overrideEvent:!0}),this.statusTransition(i.STATUS_CLOSED),void(this.disconnectDeferredResolve=void 0);this.status=i.STATUS_CLOSED,this.emit("disconnected",{code:e.code,reason:e.reason}),this.reconnect()},r.prototype.disposeWs=function(){this.ws&&(this.ws.removeEventListener("open",this.boundOnOpen),this.ws.removeEventListener("message",this.boundOnMessage),this.ws.removeEventListener("close",this.boundOnClose),this.ws.removeEventListener("error",this.boundOnError),this.ws=void 0)},r.prototype.onError=function(e){this.logger.warn("Transport error: "+e),this.emit("transportError")},r.prototype.onWebsocketError=function(){this.onError("The Websocket had an error")},r.prototype.reconnect=function(){var e=this;if(this.reconnectionAttempts>0&&this.logger.log("Reconnection attempt "+this.reconnectionAttempts+" failed"),this.noAvailableServers())return this.logger.warn("no available ws servers left - going to closed state"),this.status=i.STATUS_CLOSED,this.emit("closed"),void this.resetServerErrorStatus();this.isConnected()&&(this.logger.warn("attempted to reconnect while connected - forcing disconnect"),this.disconnect({force:!0})),this.reconnectionAttempts+=1,this.reconnectionAttempts>this.configuration.maxReconnectionAttempts?(this.logger.warn("maximum reconnection attempts for WebSocket "+this.server.wsUri),this.logger.log("transport "+this.server.wsUri+" failed | connection state set to 'error'"),this.server.isError=!0,this.emit("transportError"),this.server=this.getNextWsServer(),this.reconnectionAttempts=0,this.reconnect()):(this.logger.log("trying to reconnect to WebSocket "+this.server.wsUri+" (reconnection attempt "+this.reconnectionAttempts+")"),this.reconnectTimer=setTimeout(function(){e.connect(),e.reconnectTimer=void 0},1===this.reconnectionAttempts?0:1e3*this.configuration.reconnectionTimeout))},r.prototype.resetServerErrorStatus=function(){for(var e=0,t=this.configuration.wsServers;e<t.length;e++)t[e].isError=!1},r.prototype.getNextWsServer=function(e){if(void 0===e&&(e=!1),!this.noAvailableServers()){for(var t=[],r=0,n=this.configuration.wsServers;r<n.length;r++){var o=n[r];o.isError&&!e||(0===t.length?t.push(o):o.weight>t[0].weight?t=[o]:o.weight===t[0].weight&&t.push(o))}return t[Math.floor(Math.random()*t.length)]}this.logger.warn("attempted to get next ws server but there are no available ws servers left")},r.prototype.noAvailableServers=function(){for(var e=0,t=this.configuration.wsServers;e<t.length;e++)if(!t[e].isError)return!1;return!0},r.prototype.sendKeepAlive=function(){var e=this;if(!this.keepAliveDebounceTimeout)return this.keepAliveDebounceTimeout=setTimeout(function(){e.emit("keepAliveDebounceTimeout"),e.clearKeepAliveTimeout()},1e3*this.configuration.keepAliveDebounce),this.send("\r\n\r\n")},r.prototype.clearKeepAliveTimeout=function(){this.keepAliveDebounceTimeout&&clearTimeout(this.keepAliveDebounceTimeout),this.keepAliveDebounceTimeout=void 0},r.prototype.startSendingKeepAlives=function(){var e,t,r=this;this.configuration.keepAliveInterval&&!this.keepAliveInterval&&(this.keepAliveInterval=setInterval(function(){r.sendKeepAlive(),r.startSendingKeepAlives()},(t=.8*(e=this.configuration.keepAliveInterval),1e3*(Math.random()*(e-t)+t))))},r.prototype.stopSendingKeepAlives=function(){this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveDebounceTimeout&&clearTimeout(this.keepAliveDebounceTimeout),this.keepAliveInterval=void 0,this.keepAliveDebounceTimeout=void 0},r.prototype.statusAssert=function(e,t){return e===this.status||(t?(this.logger.warn("Attempted to assert "+Object.keys(i)[this.status]+" as "+Object.keys(i)[e]+"- continuing with option: 'force'"),!0):(this.logger.warn("Tried to assert "+Object.keys(i)[e]+" but is currently "+Object.keys(i)[this.status]),!1))},r.prototype.statusTransition=function(e,t){return void 0===t&&(t=!1),this.logger.log("Attempting to transition status from "+Object.keys(i)[this.status]+" to "+Object.keys(i)[e]),e===i.STATUS_CONNECTING&&this.statusAssert(i.STATUS_CLOSED,t)||e===i.STATUS_OPEN&&this.statusAssert(i.STATUS_CONNECTING,t)||e===i.STATUS_CLOSING&&this.statusAssert(i.STATUS_OPEN,t)||e===i.STATUS_CLOSED?(this.status=e,!0):(this.logger.warn("Status transition failed - result: no-op - reason: either gave an nonexistent status or attempted illegal transition"),!1)},r.prototype.loadConfig=function(e){var t={wsServers:[{scheme:"WSS",sipUri:"<sip:edge.sip.onsip.com;transport=ws;lr>",weight:0,wsUri:"wss://edge.sip.onsip.com",isError:!1}],connectionTimeout:5,maxReconnectionAttempts:3,reconnectionTimeout:4,keepAliveInterval:0,keepAliveDebounce:10,traceSip:!1},r=this.getConfigurationCheck();for(var n in r.mandatory){if(!e.hasOwnProperty(n))throw new l.Exceptions.ConfigurationError(n);var o=e[n];if(void 0===(i=r.mandatory[n](o)))throw new l.Exceptions.ConfigurationError(n,o);t[n]=i}for(var n in r.optional)if(e.hasOwnProperty(n)){var i;if((o=e[n])instanceof Array&&0===o.length||null===o||""===o||void 0===o||"number"==typeof o&&isNaN(o))continue;if(void 0===(i=r.optional[n](o)))throw new l.Exceptions.ConfigurationError(n,o);t[n]=i}var a={};for(var n in t)t.hasOwnProperty(n)&&(a[n]={value:t[n]});for(var n in Object.defineProperties(this.configuration,a),this.logger.log("configuration parameters after validation:"),t)t.hasOwnProperty(n)&&this.logger.log("· "+n+": "+JSON.stringify(t[n]))},r.prototype.getConfigurationCheck=function(){return{mandatory:{},optional:{wsServers:function(e){if("string"==typeof e)e=[{wsUri:e}];else{if(!(e instanceof Array))return;for(var t=0;t<e.length;t++)"string"==typeof e[t]&&(e[t]={wsUri:e[t]})}if(0===e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!o.wsUri)return;if(o.weight&&!Number(o.weight))return;var i=c.Grammar.parse(o.wsUri,"absoluteURI");if(-1===i)return;if(["wss","ws","udp"].indexOf(i.scheme)<0)return;o.sipUri="<sip:"+i.host+(i.port?":"+i.port:"")+";transport="+i.scheme.replace(/^wss$/i,"ws")+";lr>",o.weight||(o.weight=0),o.isError=!1,o.scheme=i.scheme.toUpperCase()}return e},keepAliveInterval:function(e){if(d.Utils.isDecimal(e)){var t=Number(e);if(t>0)return t}},keepAliveDebounce:function(e){if(d.Utils.isDecimal(e)){var t=Number(e);if(t>0)return t}},traceSip:function(e){if("boolean"==typeof e)return e},connectionTimeout:function(e){if(d.Utils.isDecimal(e)){var t=Number(e);if(t>0)return t}},maxReconnectionAttempts:function(e){if(d.Utils.isDecimal(e)){var t=Number(e);if(t>=0)return t}},reconnectionTimeout:function(e){if(d.Utils.isDecimal(e)){var t=Number(e);if(t>0)return t}}}}},r.C=i,r}(u.Transport);t.Transport=p}).call(this,r(12))},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(7);t.ClientContext=n.ClientContext;var o=r(1);t.C=o.C;var i=r(13);t.Dialog=i.Dialog;var a=r(18);t.DigestAuthentication=a.DigestAuthentication;var s=r(0);t.DialogStatus=s.DialogStatus,t.SessionStatus=s.SessionStatus,t.TransactionStatus=s.TransactionStatus,t.TypeStrings=s.TypeStrings,t.UAStatus=s.UAStatus;var l=r(5);t.Exceptions=l.Exceptions;var c=r(4);t.Grammar=c.Grammar;var u=r(19);t.LoggerFactory=u.LoggerFactory;var d=r(17);t.NameAddrHeader=d.NameAddrHeader;var p=r(20);t.Parser=p.Parser;var h=r(21);t.PublishContext=h.PublishContext;var f=r(22);t.RegisterContext=f.RegisterContext;var v=r(8);t.RequestSender=v.RequestSender;var m=r(23).SanityCheck.sanityCheck;t.sanityCheck=m;var g=r(14);t.ServerContext=g.ServerContext;var y=r(24);t.InviteClientContext=y.InviteClientContext,t.InviteServerContext=y.InviteServerContext,t.ReferClientContext=y.ReferClientContext,t.ReferServerContext=y.ReferServerContext,t.Session=y.Session;var C=r(6);t.IncomingRequest=C.IncomingRequest,t.IncomingResponse=C.IncomingResponse,t.OutgoingRequest=C.OutgoingRequest;var S=r(25);t.Subscription=S.Subscription;var T=r(11);t.Timers=T.Timers;var b=r(9),w={AckClientTransaction:b.AckClientTransaction,checkTransaction:b.checkTransaction,InviteClientTransaction:b.InviteClientTransaction,InviteServerTransaction:b.InviteServerTransaction,NonInviteClientTransaction:b.NonInviteClientTransaction,NonInviteServerTransaction:b.NonInviteServerTransaction};t.Transactions=w;var E=r(26);t.Transport=E.Transport;var A=r(27);t.UA=A.UA;var _=r(10);t.URI=_.URI;var N=r(2);t.Utils=N.Utils;var k=r(36);t.Web=k;var R=r(16),x=R.title;t.name=x;var I=R.version;t.version=I},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(17),a=r(10),s=function(e){function t(r,n,o,i){var a=e.call(this)||this;return a.message=r,a.expected=n,a.found=o,a.location=i,a.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return o(t,e),t.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function i(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map(function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)});return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,r,n=e.map(i);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+((a=t)?'"'+n(a)+'"':"end of input")+" found.";var a},t}(Error);t.SyntaxError=s,t.parse=function(e,t){t=void 0!==t?t:{};var r,n,o,l,c={},u={Contact:qs,Name_Addr_Header:function(){var e,t,r,n,o,i,a;for(e=Sa,t=[],r=Gs();r!==c;)t.push(r),r=Gs();if(t!==c)if((r=rs())!==c)if(ps()!==c)if(ts()!==c){for(n=[],o=Sa,(i=os())!==c&&(a=Ws())!==c?o=i=[i,a]:(Sa=o,o=c);o!==c;)n.push(o),o=Sa,(i=os())!==c&&(a=Ws())!==c?o=i=[i,a]:(Sa=o,o=c);n!==c?(Ta=e,e=t=Kn()):(Sa=e,e=c)}else Sa=e,e=c;else Sa=e,e=c;else Sa=e,e=c;else Sa=e,e=c;return e},Record_Route:function(){var e,t,r,n,o;if(e=Sa,il()!==c){for(t=[],r=Sa,(n=ns())!==c&&(o=il())!==c?r=n=[n,o]:(Sa=r,r=c);r!==c;)t.push(r),r=Sa,(n=ns())!==c&&(o=il())!==c?r=n=[n,o]:(Sa=r,r=c);t!==c?(Ta=e,e=Ro()):(Sa=e,e=c)}else Sa=e,e=c;return e},Request_Response:Is,SIP_URI:ps,Subscription_State:function(){var t,r,n,o,i,a,s,l;if(t=Sa,s=Sa,e.substr(Sa,6).toLowerCase()===Ko?(l=e.substr(Sa,6),Sa+=6):(l=c,Ia($o)),l===c&&(e.substr(Sa,7).toLowerCase()===Wo?(l=e.substr(Sa,7),Sa+=7):(l=c,Ia(Jo)),l===c&&(e.substr(Sa,10).toLowerCase()===Yo?(l=e.substr(Sa,10),Sa+=10):(l=c,Ia(Qo)),l===c&&(l=Ya()))),l!==c&&(Ta=s,l=Zo()),(r=l)!==c){for(n=[],o=Sa,(i=os())!==c&&(a=sl())!==c?o=i=[i,a]:(Sa=o,o=c);o!==c;)n.push(o),o=Sa,(i=os())!==c&&(a=sl())!==c?o=i=[i,a]:(Sa=o,o=c);n!==c?t=r=[r,n]:(Sa=t,t=c)}else Sa=t,t=c;return t},Supported:function(){var e,t,r,n,o,i;if(e=Sa,t=Sa,(r=Ya())!==c){for(n=[],o=Sa,ns()!==c&&(i=Ya())!==c?(Ta=o,o=jo(r,i)):(Sa=o,o=c);o!==c;)n.push(o),o=Sa,ns()!==c&&(i=Ya())!==c?(Ta=o,o=jo(r,i)):(Sa=o,o=c);n!==c?(Ta=t,t=r=Fo(r,n)):(Sa=t,t=c)}else Sa=t,t=c;return t===c&&(t=null),t!==c&&(Ta=e,t=Si(t)),t},Require:function(){var e,t,r,n,o,i;if(e=Sa,t=Sa,(r=Ya())!==c){for(n=[],o=Sa,ns()!==c&&(i=Ya())!==c?(Ta=o,o=jo(r,i)):(Sa=o,o=c);o!==c;)n.push(o),o=Sa,ns()!==c&&(i=Ya())!==c?(Ta=o,o=jo(r,i)):(Sa=o,o=c);n!==c?(Ta=t,t=r=Fo(r,n)):(Sa=t,t=c)}else Sa=t,t=c;return t===c&&(t=null),t!==c&&(Ta=e,t=Go(t)),t},Via:function(){var e,t,r,n,o,i;if(e=Sa,(t=cl())!==c){for(r=[],n=Sa,(o=ns())!==c&&(i=cl())!==c?n=o=[o,i]:(Sa=n,n=c);n!==c;)r.push(n),n=Sa,(o=ns())!==c&&(i=cl())!==c?n=o=[o,i]:(Sa=n,n=c);r!==c?e=t=[t,r]:(Sa=e,e=c)}else Sa=e,e=c;return e},absoluteURI:Ds,Call_ID:Ls,Content_Disposition:function(){var t,r,n,o,i,a,s,l;if(t=Sa,s=Sa,e.substr(Sa,6).toLowerCase()===an?(l=e.substr(Sa,6),Sa+=6):(l=c,Ia(sn)),l===c&&(e.substr(Sa,7).toLowerCase()===ln?(l=e.substr(Sa,7),Sa+=7):(l=c,Ia(cn)),l===c&&(e.substr(Sa,4).toLowerCase()===un?(l=e.substr(Sa,4),Sa+=4):(l=c,Ia(dn)),l===c&&(e.substr(Sa,5).toLowerCase()===pn?(l=e.substr(Sa,5),Sa+=5):(l=c,Ia(hn)),l===c&&(l=Ya())))),l!==c&&(Ta=s,l=fn()),(r=l)!==c){for(n=[],o=Sa,(i=os())!==c&&(a=Js())!==c?o=i=[i,a]:(Sa=o,o=c);o!==c;)n.push(o),o=Sa,(i=os())!==c&&(a=Js())!==c?o=i=[i,a]:(Sa=o,o=c);n!==c?t=r=[r,n]:(Sa=t,t=c)}else Sa=t,t=c;return t},Content_Length:function(){var e,t,r;if(e=Sa,t=[],(r=Oa())!==c)for(;r!==c;)t.push(r),r=Oa();else t=c;return t!==c&&(Ta=e,t=Tn(t)),t},Content_Type:function(){var t,r;return t=Sa,(r=function(){var t,r,n,o,i,a,s,l,u,d,p;if(t=Sa,e.substr(Sa,4).toLowerCase()===wn?(p=e.substr(Sa,4),Sa+=4):(p=c,Ia(En)),p===c&&(e.substr(Sa,5).toLowerCase()===An?(p=e.substr(Sa,5),Sa+=5):(p=c,Ia(_n)),p===c&&(e.substr(Sa,5).toLowerCase()===Nn?(p=e.substr(Sa,5),Sa+=5):(p=c,Ia(kn)),p===c&&(e.substr(Sa,5).toLowerCase()===Rn?(p=e.substr(Sa,5),Sa+=5):(p=c,Ia(xn)),p===c&&(e.substr(Sa,11).toLowerCase()===In?(p=e.substr(Sa,11),Sa+=11):(p=c,Ia(Dn)),p===c&&(p=Ys()))))),(d=p)===c&&(d=function(){var t;return e.substr(Sa,7).toLowerCase()===On?(t=e.substr(Sa,7),Sa+=7):(t=c,Ia(Mn)),t===c&&(e.substr(Sa,9).toLowerCase()===Un?(t=e.substr(Sa,9),Sa+=9):(t=c,Ia(Vn)),t===c&&(t=Ys())),t}()),(r=d)!==c)if((n=Xa())!==c)if((u=Ys())===c&&(u=Ya()),(o=u)!==c){for(i=[],a=Sa,(s=os())!==c&&(l=Qs())!==c?a=s=[s,l]:(Sa=a,a=c);a!==c;)i.push(a),a=Sa,(s=os())!==c&&(l=Qs())!==c?a=s=[s,l]:(Sa=a,a=c);i!==c?t=r=[r,n,o,i]:(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c;else Sa=t,t=c;return t}())!==c&&(Ta=t,r=bn()),r},CSeq:function(){var e,t,r,n;return e=Sa,(t=function(){var e,t,r;if(e=Sa,t=[],(r=Oa())!==c)for(;r!==c;)t.push(r),r=Oa();else t=c;return t!==c&&(Ta=e,t=zn(t)),t}())!==c&&(r=Ka())!==c&&(n=Bs())!==c?e=t=[t,r,n]:(Sa=e,e=c),e},displayName:Gs,Event:function(){var t,r,n,o,i,a;if(t=Sa,(r=function(){var t,r,n,o,i,a,s;if(t=Sa,r=Sa,(n=Qa())!==c){for(o=[],i=Sa,46===e.charCodeAt(Sa)?(a=ee,Sa++):(a=c,Ia(te)),a!==c&&(s=Qa())!==c?i=a=[a,s]:(Sa=i,i=c);i!==c;)o.push(i),i=Sa,46===e.charCodeAt(Sa)?(a=ee,Sa++):(a=c,Ia(te)),a!==c&&(s=Qa())!==c?i=a=[a,s]:(Sa=i,i=c);o!==c?r=n=[n,o]:(Sa=r,r=c)}else Sa=r,r=c;return r!==c?e.substring(t,Sa):r}())!==c){for(n=[],o=Sa,(i=os())!==c&&(a=Ws())!==c?o=i=[i,a]:(Sa=o,o=c);o!==c;)n.push(o),o=Sa,(i=os())!==c&&(a=Ws())!==c?o=i=[i,a]:(Sa=o,o=c);n!==c?(Ta=t,t=r=Bn(r)):(Sa=t,t=c)}else Sa=t,t=c;return t},From:function(){var e,t,r,n,o,i;if(e=Sa,(t=ds())===c&&(t=Fs()),t!==c){for(r=[],n=Sa,(o=os())!==c&&(i=Zs())!==c?n=o=[o,i]:(Sa=n,n=c);n!==c;)r.push(n),n=Sa,(o=os())!==c&&(i=Zs())!==c?n=o=[o,i]:(Sa=n,n=c);r!==c?(Ta=e,e=t=Ln()):(Sa=e,e=c)}else Sa=e,e=c;return e},host:gs,Max_Forwards:function(){var e,t,r;if(e=Sa,t=[],(r=Oa())!==c)for(;r!==c;)t.push(r),r=Oa();else t=c;return t!==c&&(Ta=e,t=Gn(t)),t},Min_SE:function(){var e,t,r,n,o,i;if(e=Sa,(t=$s())!==c){for(r=[],n=Sa,(o=os())!==c&&(i=Ws())!==c?n=o=[o,i]:(Sa=n,n=c);n!==c;)r.push(n),n=Sa,(o=os())!==c&&(i=Ws())!==c?n=o=[o,i]:(Sa=n,n=c);r!==c?(Ta=e,e=t=ea(t)):(Sa=e,e=c)}else Sa=e,e=c;return e},Proxy_Authenticate:function(){return el()},quoted_string:ss,Refer_To:function(){var e,t,r,n,o,i;if(e=Sa,(t=ds())===c&&(t=Fs())===c&&(t=Sa,(r=rs())===c&&(r=null),r!==c&&(n=Ds())!==c?((o=ts())===c&&(o=null),o!==c?t=r=[r,n,o]:(Sa=t,t=c)):(Sa=t,t=c)),t!==c){for(r=[],n=Sa,(o=os())!==c&&(i=Ws())!==c?n=o=[o,i]:(Sa=n,n=c);n!==c;)r.push(n),n=Sa,(o=os())!==c&&(i=Ws())!==c?n=o=[o,i]:(Sa=n,n=c);r!==c?(Ta=e,e=t=Io()):(Sa=e,e=c)}else Sa=e,e=c;return e},Replaces:function(){var e,t,r,n,o,i,a;if(e=Sa,i=Sa,(a=Ls())!==c&&(Ta=i,a=Oo()),a!==c){for(t=[],r=Sa,(n=os())!==c&&(o=al())!==c?r=n=[n,o]:(Sa=r,r=c);r!==c;)t.push(r),r=Sa,(n=os())!==c&&(o=al())!==c?r=n=[n,o]:(Sa=r,r=c);t!==c?(Ta=e,e=Do()):(Sa=e,e=c)}else Sa=e,e=c;return e},Session_Expires:function(){var e,t,r,n,o,i;if(e=Sa,(t=$s())!==c){for(r=[],n=Sa,(o=os())!==c&&(i=hl())!==c?n=o=[o,i]:(Sa=n,n=c);n!==c;)r.push(n),n=Sa,(o=os())!==c&&(i=hl())!==c?n=o=[o,i]:(Sa=n,n=c);r!==c?(Ta=e,e=t=Ki(t)):(Sa=e,e=c)}else Sa=e,e=c;return e},stun_URI:function(){var t,r,n,o,i,a;return t=Sa,i=Sa,e.substr(Sa,5).toLowerCase()===ta?(a=e.substr(Sa,5),Sa+=5):(a=c,Ia(ra)),a===c&&(e.substr(Sa,4).toLowerCase()===na?(a=e.substr(Sa,4),Sa+=4):(a=c,Ia(oa))),a!==c&&(Ta=i,a=ia(a)),(r=a)!==c?(58===e.charCodeAt(Sa)?(n=V,Sa++):(n=c,Ia(H)),n!==c&&(o=fl())!==c?t=r=[r,n,o]:(Sa=t,t=c)):(Sa=t,t=c),t},To:function(){var e,t,r,n,o,i;if(e=Sa,(t=ds())===c&&(t=Fs()),t!==c){for(r=[],n=Sa,(o=os())!==c&&(i=ll())!==c?n=o=[o,i]:(Sa=n,n=c);n!==c;)r.push(n),n=Sa,(o=os())!==c&&(i=ll())!==c?n=o=[o,i]:(Sa=n,n=c);r!==c?(Ta=e,e=t=Ti()):(Sa=e,e=c)}else Sa=e,e=c;return e},turn_URI:function(){var t,r,n,o,i,a,s,l,u;return t=Sa,l=Sa,e.substr(Sa,5).toLowerCase()===ca?(u=e.substr(Sa,5),Sa+=5):(u=c,Ia(ua)),u===c&&(e.substr(Sa,4).toLowerCase()===da?(u=e.substr(Sa,4),Sa+=4):(u=c,Ia(pa))),u!==c&&(Ta=l,u=ia(u)),(r=u)!==c?(58===e.charCodeAt(Sa)?(n=V,Sa++):(n=c,Ia(H)),n!==c&&(o=fl())!==c?(i=Sa,e.substr(Sa,11)===sa?(a=sa,Sa+=11):(a=c,Ia(la)),a!==c&&(s=dl())!==c?i=a=[a,s]:(Sa=i,i=c),i===c&&(i=null),i!==c?t=r=[r,n,o,i]:(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t},uuid:function(){var t,r,n,o,i,a,s,l;return t=Sa,a=Sa,(s=vl())!==c&&(l=vl())!==c?a=s=[s,l]:(Sa=a,a=c),a!==c?(45===e.charCodeAt(Sa)?(r=Y,Sa++):(r=c,Ia(Q)),r!==c&&vl()!==c?(45===e.charCodeAt(Sa)?(n=Y,Sa++):(n=c,Ia(Q)),n!==c&&vl()!==c?(45===e.charCodeAt(Sa)?(o=Y,Sa++):(o=c,Ia(Q)),o!==c&&vl()!==c?(45===e.charCodeAt(Sa)?(i=Y,Sa++):(i=c,Ia(Q)),i!==c&&function(){var e,t,r,n;return e=Sa,(t=vl())!==c&&(r=vl())!==c&&(n=vl())!==c?e=t=[t,r,n]:(Sa=e,e=c),e}()!==c?(Ta=t,t=ha()):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t},WWW_Authenticate:function(){return el()},challenge:el,sipfrag:function(){var e,t,r,n,o,i;if(e=Sa,(t=Is())!==c){for(r=[],n=Rs();n!==c;)r.push(n),n=Rs();r!==c?(n=Sa,(o=Da())!==c&&(i=function(){var e,t;for(e=[],t=Ha();t!==c;)e.push(t),t=Ha();return e}())!==c?n=o=[o,i]:(Sa=n,n=c),n===c&&(n=null),n!==c?e=t=[t,r,n]:(Sa=e,e=c)):(Sa=e,e=c)}else Sa=e,e=c;return e},Referred_By:function(){var t,r,n,o,i,a,s,l,u;if(t=Sa,e.substr(Sa,11)===fa?(r=fa,Sa+=11):(r=c,Ia(va)),r===c&&(98===e.charCodeAt(Sa)?(r=ma,Sa++):(r=c,Ia(ga))),r!==c)if((n=function(){var t,r,n;for(t=Sa,r=[],(n=za())===c&&(n=Ba());n!==c;)r.push(n),(n=za())===c&&(n=Ba());return r!==c?(58===e.charCodeAt(Sa)?(n=V,Sa++):(n=c,Ia(H)),n!==c&&$a()!==c?(Ta=t,t=r=ge()):(Sa=t,t=c)):(Sa=t,t=c),t}())!==c)if((u=Fs())===c&&(u=ds()),(o=u)!==c){for(i=[],a=Sa,(s=os())!==c?((l=ml())===c&&(l=Ws()),l!==c?a=s=[s,l]:(Sa=a,a=c)):(Sa=a,a=c);a!==c;)i.push(a),a=Sa,(s=os())!==c?((l=ml())===c&&(l=Ws()),l!==c?a=s=[s,l]:(Sa=a,a=c)):(Sa=a,a=c);i!==c?t=r=[r,n,o,i]:(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c;else Sa=t,t=c;return t}},d=qs,p="\r\n",h=Na("\r\n",!1),f=/^[0-9]/,v=ka([["0","9"]],!1,!1),m=/^[a-zA-Z]/,g=ka([["a","z"],["A","Z"]],!1,!1),y=/^[0-9a-fA-F]/,C=ka([["0","9"],["a","f"],["A","F"]],!1,!1),S=/^[\0-\xFF]/,T=ka([["\0","ÿ"]],!1,!1),b=/^["]/,w=ka(['"'],!1,!1),E=" ",A=Na(" ",!1),_="\t",N=Na("\t",!1),k=/^[a-zA-Z0-9]/,R=ka([["a","z"],["A","Z"],["0","9"]],!1,!1),x=";",I=Na(";",!1),D="/",O=Na("/",!1),M="?",U=Na("?",!1),V=":",H=Na(":",!1),P="@",z=Na("@",!1),B="&",L=Na("&",!1),q="=",j=Na("=",!1),F="+",G=Na("+",!1),K="$",$=Na("$",!1),W=",",J=Na(",",!1),Y="-",Q=Na("-",!1),Z="_",X=Na("_",!1),ee=".",te=Na(".",!1),re="!",ne=Na("!",!1),oe="~",ie=Na("~",!1),ae="*",se=Na("*",!1),le="'",ce=Na("'",!1),ue="(",de=Na("(",!1),pe=")",he=Na(")",!1),fe="%",ve=Na("%",!1),me=function(){return" "},ge=function(){return":"},ye=/^[\x80-\uFFFF]/,Ce=ka([["€","￿"]],!1,!1),Se=/^[\x80-\xBF]/,Te=ka([["€","¿"]],!1,!1),be="`",we=Na("`",!1),Ee="<",Ae=Na("<",!1),_e=">",Ne=Na(">",!1),ke="\\",Re=Na("\\",!1),xe="[",Ie=Na("[",!1),De="]",Oe=Na("]",!1),Me="{",Ue=Na("{",!1),Ve="}",He=Na("}",!1),Pe=function(){return"*"},ze=function(){return"/"},Be=function(){return"="},Le=function(){return">"},qe=function(){return"<"},je=function(){return","},Fe=function(){return";"},Ge=function(){return":"},Ke=function(){return'"'},$e=/^[\]-~]/,We=ka([["]","~"]],!1,!1),Je=function(e){return e},Ye=/^[#-[]/,Qe=ka([["#","["]],!1,!1),Ze=/^[\0-\t]/,Xe=ka([["\0","\t"]],!1,!1),et=/^[\x0B-\f]/,tt=ka([["\v","\f"]],!1,!1),rt=/^[\x0E-\x7F]/,nt=ka([["",""]],!1,!1),ot=function(){(t=t||{data:{}}).data.uri=new a.URI(t.data.scheme,t.data.user,t.data.host,t.data.port),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port},it=function(){(t=t||{data:{}}).data.uri=new a.URI(t.data.scheme,t.data.user,t.data.host,t.data.port,t.data.uri_params,t.data.uri_headers),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port,delete t.data.uri_params,"SIP_URI"===t.startRule&&(t.data=t.data.uri)},at="sips",st=Na("sips",!0),lt="sip",ct=Na("sip",!0),ut=function(e){(t=t||{data:{}}).data.scheme=e},dt=function(){(t=t||{data:{}}).data.user=decodeURIComponent(Aa().slice(0,-1))},pt=function(){(t=t||{data:{}}).data.password=Aa()},ht=function(){return(t=t||{data:{}}).data.host=Aa(),t.data.host},ft=function(){return(t=t||{data:{}}).data.host_type="domain",Aa()},vt=/^[a-zA-Z0-9_\-]/,mt=ka([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),gt=/^[a-zA-Z0-9\-]/,yt=ka([["a","z"],["A","Z"],["0","9"],"-"],!1,!1),Ct=function(){return(t=t||{data:{}}).data.host_type="IPv6",Aa()},St="::",Tt=Na("::",!1),bt=function(){return(t=t||{data:{}}).data.host_type="IPv6",Aa()},wt=function(){return(t=t||{data:{}}).data.host_type="IPv4",Aa()},Et="25",At=Na("25",!1),_t=/^[0-5]/,Nt=ka([["0","5"]],!1,!1),kt="2",Rt=Na("2",!1),xt=/^[0-4]/,It=ka([["0","4"]],!1,!1),Dt="1",Ot=Na("1",!1),Mt=/^[1-9]/,Ut=ka([["1","9"]],!1,!1),Vt=function(e){return t=t||{data:{}},e=parseInt(e.join("")),t.data.port=e,e},Ht="transport=",Pt=Na("transport=",!0),zt="udp",Bt=Na("udp",!0),Lt="tcp",qt=Na("tcp",!0),jt="sctp",Ft=Na("sctp",!0),Gt="tls",Kt=Na("tls",!0),$t=function(e){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.transport=e.toLowerCase()},Wt="user=",Jt=Na("user=",!0),Yt="phone",Qt=Na("phone",!0),Zt="ip",Xt=Na("ip",!0),er=function(e){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.user=e.toLowerCase()},tr="method=",rr=Na("method=",!0),nr=function(e){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.method=e},or="ttl=",ir=Na("ttl=",!0),ar=function(e){(t=t||{data:{}}).data.params||(t.data.params={}),t.data.params.ttl=e},sr="maddr=",lr=Na("maddr=",!0),cr=function(e){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.maddr=e},ur="lr",dr=Na("lr",!0),pr=function(){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.lr=void 0},hr=function(e,r){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),r=null===r?void 0:r[1],t.data.uri_params[e.toLowerCase()]=r},fr=function(e,r){e=e.join("").toLowerCase(),r=r.join(""),(t=t||{data:{}}).data.uri_headers||(t.data.uri_headers={}),t.data.uri_headers[e]?t.data.uri_headers[e].push(r):t.data.uri_headers[e]=[r]},vr=function(){"Refer_To"===(t=t||{data:{}}).startRule&&(t.data.uri=new a.URI(t.data.scheme,t.data.user,t.data.host,t.data.port,t.data.uri_params,t.data.uri_headers),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port,delete t.data.uri_params)},mr="//",gr=Na("//",!1),yr=function(){(t=t||{data:{}}).data.scheme=Aa()},Cr=Na("SIP",!0),Sr=function(){(t=t||{data:{}}).data.sip_version=Aa()},Tr="INVITE",br=Na("INVITE",!1),wr="ACK",Er=Na("ACK",!1),Ar="OPTIONS",_r=Na("OPTIONS",!1),Nr="BYE",kr=Na("BYE",!1),Rr="CANCEL",xr=Na("CANCEL",!1),Ir="REGISTER",Dr=Na("REGISTER",!1),Or="SUBSCRIBE",Mr=Na("SUBSCRIBE",!1),Ur="NOTIFY",Vr=Na("NOTIFY",!1),Hr="REFER",Pr=Na("REFER",!1),zr="PUBLISH",Br=Na("PUBLISH",!1),Lr=function(){return(t=t||{data:{}}).data.method=Aa(),t.data.method},qr=function(e){(t=t||{data:{}}).data.status_code=parseInt(e.join(""))},jr=function(){(t=t||{data:{}}).data.reason_phrase=Aa()},Fr=function(){(t=t||{data:{}}).data=Aa()},Gr=function(){var e,r;for(r=(t=t||{data:{}}).data.multi_header.length,e=0;e<r;e++)if(null===t.data.multi_header[e].parsed){t.data=null;break}null!==t.data?t.data=t.data.multi_header:t.data=-1},Kr=function(){var e;(t=t||{data:{}}).data.multi_header||(t.data.multi_header=[]);try{e=new i.NameAddrHeader(t.data.uri,t.data.displayName,t.data.params),delete t.data.uri,delete t.data.displayName,delete t.data.params}catch(o){e=null}t.data.multi_header.push({position:Sa,offset:_a().start.offset,parsed:e})},$r=function(e){'"'===(e=Aa().trim())[0]&&(e=e.substring(1,e.length-1)),(t=t||{data:{}}).data.displayName=e},Wr="q",Jr=Na("q",!0),Yr=function(e){(t=t||{data:{}}).data.params||(t.data.params={}),t.data.params.q=e},Qr="expires",Zr=Na("expires",!0),Xr=function(e){(t=t||{data:{}}).data.params||(t.data.params={}),t.data.params.expires=e},en=function(e){return parseInt(e.join(""))},tn="0",rn=Na("0",!1),nn=function(){return parseFloat(Aa())},on=function(e,r){(t=t||{data:{}}).data.params||(t.data.params={}),r=null===r?void 0:r[1],t.data.params[e.toLowerCase()]=r},an="render",sn=Na("render",!0),ln="session",cn=Na("session",!0),un="icon",dn=Na("icon",!0),pn="alert",hn=Na("alert",!0),fn=function(){"Content_Disposition"===(t=t||{data:{}}).startRule&&(t.data.type=Aa().toLowerCase())},vn="handling",mn=Na("handling",!0),gn="optional",yn=Na("optional",!0),Cn="required",Sn=Na("required",!0),Tn=function(e){(t=t||{data:{}}).data=parseInt(e.join(""))},bn=function(){(t=t||{data:{}}).data=Aa()},wn="text",En=Na("text",!0),An="image",_n=Na("image",!0),Nn="audio",kn=Na("audio",!0),Rn="video",xn=Na("video",!0),In="application",Dn=Na("application",!0),On="message",Mn=Na("message",!0),Un="multipart",Vn=Na("multipart",!0),Hn="x-",Pn=Na("x-",!0),zn=function(e){(t=t||{data:{}}).data.value=parseInt(e.join(""))},Bn=function(e){(t=t||{data:{}}).data.event=e.toLowerCase()},Ln=function(){var e=(t=t||{data:{}}).data.tag;t.data=new i.NameAddrHeader(t.data.uri,t.data.displayName,t.data.params),e&&t.data.setParam("tag",e)},qn="tag",jn=Na("tag",!0),Fn=function(e){(t=t||{data:{}}).data.tag=e},Gn=function(e){(t=t||{data:{}}).data=parseInt(e.join(""))},Kn=function(){(t=t||{data:{}}).data=new i.NameAddrHeader(t.data.uri,t.data.displayName,t.data.params)},$n="digest",Wn=Na("Digest",!0),Jn="realm",Yn=Na("realm",!0),Qn=function(e){(t=t||{data:{}}).data.realm=e},Zn="domain",Xn=Na("domain",!0),eo="nonce",to=Na("nonce",!0),ro=function(e){(t=t||{data:{}}).data.nonce=e},no="opaque",oo=Na("opaque",!0),io=function(e){(t=t||{data:{}}).data.opaque=e},ao="stale",so=Na("stale",!0),lo="true",co=Na("true",!0),uo=function(){(t=t||{data:{}}).data.stale=!0},po="false",ho=Na("false",!0),fo=function(){(t=t||{data:{}}).data.stale=!1},vo="algorithm",mo=Na("algorithm",!0),go="md5",yo=Na("MD5",!0),Co="md5-sess",So=Na("MD5-sess",!0),To=function(e){(t=t||{data:{}}).data.algorithm=e.toUpperCase()},bo="qop",wo=Na("qop",!0),Eo="auth-int",Ao=Na("auth-int",!0),_o="auth",No=Na("auth",!0),ko=function(e){(t=t||{data:{}}).data.qop||(t.data.qop=[]),t.data.qop.push(e.toLowerCase())},Ro=function(){var e,r;for(r=(t=t||{data:{}}).data.multi_header.length,e=0;e<r;e++)if(null===t.data.multi_header[e].parsed){t.data=null;break}null!==t.data?t.data=t.data.multi_header:t.data=-1},xo=function(){var e;(t=t||{data:{}}).data.multi_header||(t.data.multi_header=[]);try{e=new i.NameAddrHeader(t.data.uri,t.data.displayName,t.data.params),delete t.data.uri,delete t.data.displayName,delete t.data.params}catch(o){e=null}t.data.multi_header.push({position:Sa,offset:_a().start.offset,parsed:e})},Io=function(){(t=t||{data:{}}).data=new i.NameAddrHeader(t.data.uri,t.data.displayName,t.data.params)},Do=function(){(t=t||{data:{}}).data.replaces_from_tag&&t.data.replaces_to_tag||(t.data=-1)},Oo=function(){(t=t||{data:{}}).data={call_id:t.data}},Mo="from-tag",Uo=Na("from-tag",!0),Vo=function(e){(t=t||{data:{}}).data.replaces_from_tag=e},Ho="to-tag",Po=Na("to-tag",!0),zo=function(e){(t=t||{data:{}}).data.replaces_to_tag=e},Bo="early-only",Lo=Na("early-only",!0),qo=function(){(t=t||{data:{}}).data.early_only=!0},jo=function(e,t){return t},Fo=function(e,t){return[e].concat(t)},Go=function(e){"Require"===(t=t||{data:{}}).startRule&&(t.data=e||[])},Ko="active",$o=Na("active",!0),Wo="pending",Jo=Na("pending",!0),Yo="terminated",Qo=Na("terminated",!0),Zo=function(){(t=t||{data:{}}).data.state=Aa()},Xo="reason",ei=Na("reason",!0),ti=function(e){t=t||{data:{}},void 0!==e&&(t.data.reason=e)},ri=function(e){t=t||{data:{}},void 0!==e&&(t.data.expires=e)},ni="retry_after",oi=Na("retry_after",!0),ii=function(e){t=t||{data:{}},void 0!==e&&(t.data.retry_after=e)},ai="deactivated",si=Na("deactivated",!0),li="probation",ci=Na("probation",!0),ui="rejected",di=Na("rejected",!0),pi="timeout",hi=Na("timeout",!0),fi="giveup",vi=Na("giveup",!0),mi="noresource",gi=Na("noresource",!0),yi="invariant",Ci=Na("invariant",!0),Si=function(e){"Supported"===(t=t||{data:{}}).startRule&&(t.data=e||[])},Ti=function(){var e=(t=t||{data:{}}).data.tag;t.data=new i.NameAddrHeader(t.data.uri,t.data.displayName,t.data.params),e&&t.data.setParam("tag",e)},bi="ttl",wi=Na("ttl",!0),Ei=function(e){(t=t||{data:{}}).data.ttl=e},Ai="maddr",_i=Na("maddr",!0),Ni=function(e){(t=t||{data:{}}).data.maddr=e},ki="received",Ri=Na("received",!0),xi=function(e){(t=t||{data:{}}).data.received=e},Ii="branch",Di=Na("branch",!0),Oi=function(e){(t=t||{data:{}}).data.branch=e},Mi="rport",Ui=Na("rport",!0),Vi=function(e){t=t||{data:{}},void 0!==e&&(t.data.rport=e.join(""))},Hi=function(e){(t=t||{data:{}}).data.protocol=e},Pi=Na("UDP",!0),zi=Na("TCP",!0),Bi=Na("TLS",!0),Li=Na("SCTP",!0),qi=function(e){(t=t||{data:{}}).data.transport=e},ji=function(){(t=t||{data:{}}).data.host=Aa()},Fi=function(e){(t=t||{data:{}}).data.port=parseInt(e.join(""))},Gi=function(e){return parseInt(e.join(""))},Ki=function(e){"Session_Expires"===(t=t||{data:{}}).startRule&&(t.data.deltaSeconds=e)},$i="refresher",Wi=Na("refresher",!1),Ji="uas",Yi=Na("uas",!1),Qi="uac",Zi=Na("uac",!1),Xi=function(e){"Session_Expires"===(t=t||{data:{}}).startRule&&(t.data.refresher=e)},ea=function(e){"Min_SE"===(t=t||{data:{}}).startRule&&(t.data=e)},ta="stuns",ra=Na("stuns",!0),na="stun",oa=Na("stun",!0),ia=function(e){(t=t||{data:{}}).data.scheme=e},aa=function(e){(t=t||{data:{}}).data.host=e},sa="?transport=",la=Na("?transport=",!1),ca="turns",ua=Na("turns",!0),da="turn",pa=Na("turn",!0),ha=function(){(t=t||{data:{}}).data=Aa()},fa="Referred-By",va=Na("Referred-By",!1),ma="b",ga=Na("b",!1),ya="cid",Ca=Na("cid",!1),Sa=0,Ta=0,ba=[{line:1,column:1}],wa=0,Ea=[];if(void 0!==t.startRule){if(!(t.startRule in u))throw new Error("Can't start parsing from rule \""+t.startRule+'".');d=u[t.startRule]}function Aa(){return e.substring(Ta,Sa)}function _a(){return xa(Ta,Sa)}function Na(e,t){return{type:"literal",text:e,ignoreCase:t}}function ka(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Ra(t){var r,n=ba[t];if(n)return n;for(r=t-1;!ba[r];)r--;for(n={line:(n=ba[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return ba[t]=n,n}function xa(e,t){var r=Ra(e),n=Ra(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function Ia(e){Sa<wa||(Sa>wa&&(wa=Sa,Ea=[]),Ea.push(e))}function Da(){var t;return e.substr(Sa,2)===p?(t=p,Sa+=2):(t=c,Ia(h)),t}function Oa(){var t;return f.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(v)),t}function Ma(){var t;return m.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(g)),t}function Ua(){var t;return y.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(C)),t}function Va(){var e;return(e=za())===c&&(e=Ba()),e}function Ha(){var t;return S.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(T)),t}function Pa(){var t;return b.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(w)),t}function za(){var t;return 32===e.charCodeAt(Sa)?(t=E,Sa++):(t=c,Ia(A)),t}function Ba(){var t;return 9===e.charCodeAt(Sa)?(t=_,Sa++):(t=c,Ia(N)),t}function La(){var t;return k.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(R)),t}function qa(){var t;return 59===e.charCodeAt(Sa)?(t=x,Sa++):(t=c,Ia(I)),t===c&&(47===e.charCodeAt(Sa)?(t=D,Sa++):(t=c,Ia(O)),t===c&&(63===e.charCodeAt(Sa)?(t=M,Sa++):(t=c,Ia(U)),t===c&&(58===e.charCodeAt(Sa)?(t=V,Sa++):(t=c,Ia(H)),t===c&&(64===e.charCodeAt(Sa)?(t=P,Sa++):(t=c,Ia(z)),t===c&&(38===e.charCodeAt(Sa)?(t=B,Sa++):(t=c,Ia(L)),t===c&&(61===e.charCodeAt(Sa)?(t=q,Sa++):(t=c,Ia(j)),t===c&&(43===e.charCodeAt(Sa)?(t=F,Sa++):(t=c,Ia(G)),t===c&&(36===e.charCodeAt(Sa)?(t=K,Sa++):(t=c,Ia($)),t===c&&(44===e.charCodeAt(Sa)?(t=W,Sa++):(t=c,Ia(J))))))))))),t}function ja(){var e;return(e=La())===c&&(e=Fa()),e}function Fa(){var t;return 45===e.charCodeAt(Sa)?(t=Y,Sa++):(t=c,Ia(Q)),t===c&&(95===e.charCodeAt(Sa)?(t=Z,Sa++):(t=c,Ia(X)),t===c&&(46===e.charCodeAt(Sa)?(t=ee,Sa++):(t=c,Ia(te)),t===c&&(33===e.charCodeAt(Sa)?(t=re,Sa++):(t=c,Ia(ne)),t===c&&(126===e.charCodeAt(Sa)?(t=oe,Sa++):(t=c,Ia(ie)),t===c&&(42===e.charCodeAt(Sa)?(t=ae,Sa++):(t=c,Ia(se)),t===c&&(39===e.charCodeAt(Sa)?(t=le,Sa++):(t=c,Ia(ce)),t===c&&(40===e.charCodeAt(Sa)?(t=ue,Sa++):(t=c,Ia(de)),t===c&&(41===e.charCodeAt(Sa)?(t=pe,Sa++):(t=c,Ia(he)))))))))),t}function Ga(){var t,r,n,o,i;return t=Sa,r=Sa,37===e.charCodeAt(Sa)?(n=fe,Sa++):(n=c,Ia(ve)),n!==c&&(o=Ua())!==c&&(i=Ua())!==c?r=n=[n,o,i]:(Sa=r,r=c),r!==c?e.substring(t,Sa):r}function Ka(){var e,t,r,n;for(e=Sa,t=Sa,r=[],n=Va();n!==c;)r.push(n),n=Va();if(r!==c&&(n=Da())!==c?t=r=[r,n]:(Sa=t,t=c),t===c&&(t=null),t!==c){if(r=[],(n=Va())!==c)for(;n!==c;)r.push(n),n=Va();else r=c;r!==c?(Ta=e,e=t=me()):(Sa=e,e=c)}else Sa=e,e=c;return e}function $a(){var e;return(e=Ka())===c&&(e=null),e}function Wa(){var t;return ye.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(Ce)),t}function Ja(){var t;return Se.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(Te)),t}function Ya(){var t,r,n;if(t=Sa,r=[],(n=La())===c&&(45===e.charCodeAt(Sa)?(n=Y,Sa++):(n=c,Ia(Q)),n===c&&(46===e.charCodeAt(Sa)?(n=ee,Sa++):(n=c,Ia(te)),n===c&&(33===e.charCodeAt(Sa)?(n=re,Sa++):(n=c,Ia(ne)),n===c&&(37===e.charCodeAt(Sa)?(n=fe,Sa++):(n=c,Ia(ve)),n===c&&(42===e.charCodeAt(Sa)?(n=ae,Sa++):(n=c,Ia(se)),n===c&&(95===e.charCodeAt(Sa)?(n=Z,Sa++):(n=c,Ia(X)),n===c&&(43===e.charCodeAt(Sa)?(n=F,Sa++):(n=c,Ia(G)),n===c&&(96===e.charCodeAt(Sa)?(n=be,Sa++):(n=c,Ia(we)),n===c&&(39===e.charCodeAt(Sa)?(n=le,Sa++):(n=c,Ia(ce)),n===c&&(126===e.charCodeAt(Sa)?(n=oe,Sa++):(n=c,Ia(ie)))))))))))),n!==c)for(;n!==c;)r.push(n),(n=La())===c&&(45===e.charCodeAt(Sa)?(n=Y,Sa++):(n=c,Ia(Q)),n===c&&(46===e.charCodeAt(Sa)?(n=ee,Sa++):(n=c,Ia(te)),n===c&&(33===e.charCodeAt(Sa)?(n=re,Sa++):(n=c,Ia(ne)),n===c&&(37===e.charCodeAt(Sa)?(n=fe,Sa++):(n=c,Ia(ve)),n===c&&(42===e.charCodeAt(Sa)?(n=ae,Sa++):(n=c,Ia(se)),n===c&&(95===e.charCodeAt(Sa)?(n=Z,Sa++):(n=c,Ia(X)),n===c&&(43===e.charCodeAt(Sa)?(n=F,Sa++):(n=c,Ia(G)),n===c&&(96===e.charCodeAt(Sa)?(n=be,Sa++):(n=c,Ia(we)),n===c&&(39===e.charCodeAt(Sa)?(n=le,Sa++):(n=c,Ia(ce)),n===c&&(126===e.charCodeAt(Sa)?(n=oe,Sa++):(n=c,Ia(ie))))))))))));else r=c;return r!==c?e.substring(t,Sa):r}function Qa(){var t,r,n;if(t=Sa,r=[],(n=La())===c&&(45===e.charCodeAt(Sa)?(n=Y,Sa++):(n=c,Ia(Q)),n===c&&(33===e.charCodeAt(Sa)?(n=re,Sa++):(n=c,Ia(ne)),n===c&&(37===e.charCodeAt(Sa)?(n=fe,Sa++):(n=c,Ia(ve)),n===c&&(42===e.charCodeAt(Sa)?(n=ae,Sa++):(n=c,Ia(se)),n===c&&(95===e.charCodeAt(Sa)?(n=Z,Sa++):(n=c,Ia(X)),n===c&&(43===e.charCodeAt(Sa)?(n=F,Sa++):(n=c,Ia(G)),n===c&&(96===e.charCodeAt(Sa)?(n=be,Sa++):(n=c,Ia(we)),n===c&&(39===e.charCodeAt(Sa)?(n=le,Sa++):(n=c,Ia(ce)),n===c&&(126===e.charCodeAt(Sa)?(n=oe,Sa++):(n=c,Ia(ie))))))))))),n!==c)for(;n!==c;)r.push(n),(n=La())===c&&(45===e.charCodeAt(Sa)?(n=Y,Sa++):(n=c,Ia(Q)),n===c&&(33===e.charCodeAt(Sa)?(n=re,Sa++):(n=c,Ia(ne)),n===c&&(37===e.charCodeAt(Sa)?(n=fe,Sa++):(n=c,Ia(ve)),n===c&&(42===e.charCodeAt(Sa)?(n=ae,Sa++):(n=c,Ia(se)),n===c&&(95===e.charCodeAt(Sa)?(n=Z,Sa++):(n=c,Ia(X)),n===c&&(43===e.charCodeAt(Sa)?(n=F,Sa++):(n=c,Ia(G)),n===c&&(96===e.charCodeAt(Sa)?(n=be,Sa++):(n=c,Ia(we)),n===c&&(39===e.charCodeAt(Sa)?(n=le,Sa++):(n=c,Ia(ce)),n===c&&(126===e.charCodeAt(Sa)?(n=oe,Sa++):(n=c,Ia(ie)))))))))));else r=c;return r!==c?e.substring(t,Sa):r}function Za(){var t,r,n;if(t=Sa,r=[],(n=La())===c&&(45===e.charCodeAt(Sa)?(n=Y,Sa++):(n=c,Ia(Q)),n===c&&(46===e.charCodeAt(Sa)?(n=ee,Sa++):(n=c,Ia(te)),n===c&&(33===e.charCodeAt(Sa)?(n=re,Sa++):(n=c,Ia(ne)),n===c&&(37===e.charCodeAt(Sa)?(n=fe,Sa++):(n=c,Ia(ve)),n===c&&(42===e.charCodeAt(Sa)?(n=ae,Sa++):(n=c,Ia(se)),n===c&&(95===e.charCodeAt(Sa)?(n=Z,Sa++):(n=c,Ia(X)),n===c&&(43===e.charCodeAt(Sa)?(n=F,Sa++):(n=c,Ia(G)),n===c&&(96===e.charCodeAt(Sa)?(n=be,Sa++):(n=c,Ia(we)),n===c&&(39===e.charCodeAt(Sa)?(n=le,Sa++):(n=c,Ia(ce)),n===c&&(126===e.charCodeAt(Sa)?(n=oe,Sa++):(n=c,Ia(ie)),n===c&&(40===e.charCodeAt(Sa)?(n=ue,Sa++):(n=c,Ia(de)),n===c&&(41===e.charCodeAt(Sa)?(n=pe,Sa++):(n=c,Ia(he)),n===c&&(60===e.charCodeAt(Sa)?(n=Ee,Sa++):(n=c,Ia(Ae)),n===c&&(62===e.charCodeAt(Sa)?(n=_e,Sa++):(n=c,Ia(Ne)),n===c&&(58===e.charCodeAt(Sa)?(n=V,Sa++):(n=c,Ia(H)),n===c&&(92===e.charCodeAt(Sa)?(n=ke,Sa++):(n=c,Ia(Re)),n===c&&(n=Pa())===c&&(47===e.charCodeAt(Sa)?(n=D,Sa++):(n=c,Ia(O)),n===c&&(91===e.charCodeAt(Sa)?(n=xe,Sa++):(n=c,Ia(Ie)),n===c&&(93===e.charCodeAt(Sa)?(n=De,Sa++):(n=c,Ia(Oe)),n===c&&(63===e.charCodeAt(Sa)?(n=M,Sa++):(n=c,Ia(U)),n===c&&(123===e.charCodeAt(Sa)?(n=Me,Sa++):(n=c,Ia(Ue)),n===c&&(125===e.charCodeAt(Sa)?(n=Ve,Sa++):(n=c,Ia(He)))))))))))))))))))))))),n!==c)for(;n!==c;)r.push(n),(n=La())===c&&(45===e.charCodeAt(Sa)?(n=Y,Sa++):(n=c,Ia(Q)),n===c&&(46===e.charCodeAt(Sa)?(n=ee,Sa++):(n=c,Ia(te)),n===c&&(33===e.charCodeAt(Sa)?(n=re,Sa++):(n=c,Ia(ne)),n===c&&(37===e.charCodeAt(Sa)?(n=fe,Sa++):(n=c,Ia(ve)),n===c&&(42===e.charCodeAt(Sa)?(n=ae,Sa++):(n=c,Ia(se)),n===c&&(95===e.charCodeAt(Sa)?(n=Z,Sa++):(n=c,Ia(X)),n===c&&(43===e.charCodeAt(Sa)?(n=F,Sa++):(n=c,Ia(G)),n===c&&(96===e.charCodeAt(Sa)?(n=be,Sa++):(n=c,Ia(we)),n===c&&(39===e.charCodeAt(Sa)?(n=le,Sa++):(n=c,Ia(ce)),n===c&&(126===e.charCodeAt(Sa)?(n=oe,Sa++):(n=c,Ia(ie)),n===c&&(40===e.charCodeAt(Sa)?(n=ue,Sa++):(n=c,Ia(de)),n===c&&(41===e.charCodeAt(Sa)?(n=pe,Sa++):(n=c,Ia(he)),n===c&&(60===e.charCodeAt(Sa)?(n=Ee,Sa++):(n=c,Ia(Ae)),n===c&&(62===e.charCodeAt(Sa)?(n=_e,Sa++):(n=c,Ia(Ne)),n===c&&(58===e.charCodeAt(Sa)?(n=V,Sa++):(n=c,Ia(H)),n===c&&(92===e.charCodeAt(Sa)?(n=ke,Sa++):(n=c,Ia(Re)),n===c&&(n=Pa())===c&&(47===e.charCodeAt(Sa)?(n=D,Sa++):(n=c,Ia(O)),n===c&&(91===e.charCodeAt(Sa)?(n=xe,Sa++):(n=c,Ia(Ie)),n===c&&(93===e.charCodeAt(Sa)?(n=De,Sa++):(n=c,Ia(Oe)),n===c&&(63===e.charCodeAt(Sa)?(n=M,Sa++):(n=c,Ia(U)),n===c&&(123===e.charCodeAt(Sa)?(n=Me,Sa++):(n=c,Ia(Ue)),n===c&&(125===e.charCodeAt(Sa)?(n=Ve,Sa++):(n=c,Ia(He))))))))))))))))))))))));else r=c;return r!==c?e.substring(t,Sa):r}function Xa(){var t,r;return t=Sa,$a()!==c?(47===e.charCodeAt(Sa)?(r=D,Sa++):(r=c,Ia(O)),r!==c&&$a()!==c?(Ta=t,t=ze()):(Sa=t,t=c)):(Sa=t,t=c),t}function es(){var t,r;return t=Sa,$a()!==c?(61===e.charCodeAt(Sa)?(r=q,Sa++):(r=c,Ia(j)),r!==c&&$a()!==c?(Ta=t,t=Be()):(Sa=t,t=c)):(Sa=t,t=c),t}function ts(){var t,r;return t=Sa,62===e.charCodeAt(Sa)?(r=_e,Sa++):(r=c,Ia(Ne)),r!==c&&$a()!==c?(Ta=t,t=r=Le()):(Sa=t,t=c),t}function rs(){var t,r;return t=Sa,$a()!==c?(60===e.charCodeAt(Sa)?(r=Ee,Sa++):(r=c,Ia(Ae)),r!==c?(Ta=t,t=qe()):(Sa=t,t=c)):(Sa=t,t=c),t}function ns(){var t,r;return t=Sa,$a()!==c?(44===e.charCodeAt(Sa)?(r=W,Sa++):(r=c,Ia(J)),r!==c&&$a()!==c?(Ta=t,t=je()):(Sa=t,t=c)):(Sa=t,t=c),t}function os(){var t,r;return t=Sa,$a()!==c?(59===e.charCodeAt(Sa)?(r=x,Sa++):(r=c,Ia(I)),r!==c&&$a()!==c?(Ta=t,t=Fe()):(Sa=t,t=c)):(Sa=t,t=c),t}function is(){var e;return e=Sa,$a()!==c&&Pa()!==c?(Ta=e,e=Ke()):(Sa=e,e=c),e}function as(){var e;return e=Sa,Pa()!==c&&$a()!==c?(Ta=e,e=Ke()):(Sa=e,e=c),e}function ss(){var t,r,n,o,i,a;if(t=Sa,r=Sa,(n=$a())!==c)if((o=Pa())!==c){for(i=[],(a=cs())===c&&(a=us());a!==c;)i.push(a),(a=cs())===c&&(a=us());i!==c&&(a=Pa())!==c?r=n=[n,o,i,a]:(Sa=r,r=c)}else Sa=r,r=c;else Sa=r,r=c;return r!==c?e.substring(t,Sa):r}function ls(){var t,r,n,o;if(t=Sa,$a()!==c)if(Pa()!==c){for(r=Sa,n=[],(o=cs())===c&&(o=us());o!==c;)n.push(o),(o=cs())===c&&(o=us());(r=n!==c?e.substring(r,Sa):n)!==c&&(n=Pa())!==c?(Ta=t,t=Je(r)):(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c;return t}function cs(){var t;return(t=Ka())===c&&(33===e.charCodeAt(Sa)?(t=re,Sa++):(t=c,Ia(ne)),t===c&&(Ye.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(Qe)),t===c&&($e.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(We)),t===c&&(t=Wa())))),t}function us(){var t,r,n;return t=Sa,92===e.charCodeAt(Sa)?(r=ke,Sa++):(r=c,Ia(Re)),r!==c?(Ze.test(e.charAt(Sa))?(n=e.charAt(Sa),Sa++):(n=c,Ia(Xe)),n===c&&(et.test(e.charAt(Sa))?(n=e.charAt(Sa),Sa++):(n=c,Ia(tt)),n===c&&(rt.test(e.charAt(Sa))?(n=e.charAt(Sa),Sa++):(n=c,Ia(nt)))),n!==c?t=r=[r,n]:(Sa=t,t=c)):(Sa=t,t=c),t}function ds(){var t,r,n;return t=Sa,hs()!==c?(58===e.charCodeAt(Sa)?(r=V,Sa++):(r=c,Ia(H)),r!==c?((n=fs())===c&&(n=null),n!==c&&ms()!==c?(Ta=t,t=ot()):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t}function ps(){var t,r,n,o;return t=Sa,hs()!==c?(58===e.charCodeAt(Sa)?(r=V,Sa++):(r=c,Ia(H)),r!==c?((n=fs())===c&&(n=null),n!==c&&ms()!==c&&function(){var t,r,n,o;for(t=[],r=Sa,59===e.charCodeAt(Sa)?(n=x,Sa++):(n=c,Ia(I)),n!==c&&(o=Ns())!==c?r=n=[n,o]:(Sa=r,r=c);r!==c;)t.push(r),r=Sa,59===e.charCodeAt(Sa)?(n=x,Sa++):(n=c,Ia(I)),n!==c&&(o=Ns())!==c?r=n=[n,o]:(Sa=r,r=c);return t}()!==c?((o=function(){var t,r,n,o,i,a,s;if(t=Sa,63===e.charCodeAt(Sa)?(r=M,Sa++):(r=c,Ia(U)),r!==c)if((n=Rs())!==c){for(o=[],i=Sa,38===e.charCodeAt(Sa)?(a=B,Sa++):(a=c,Ia(L)),a!==c&&(s=Rs())!==c?i=a=[a,s]:(Sa=i,i=c);i!==c;)o.push(i),i=Sa,38===e.charCodeAt(Sa)?(a=B,Sa++):(a=c,Ia(L)),a!==c&&(s=Rs())!==c?i=a=[a,s]:(Sa=i,i=c);o!==c?t=r=[r,n,o]:(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c;return t}())===c&&(o=null),o!==c?(Ta=t,t=it()):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t}function hs(){var t,r;return t=Sa,e.substr(Sa,4).toLowerCase()===at?(r=e.substr(Sa,4),Sa+=4):(r=c,Ia(st)),r===c&&(e.substr(Sa,3).toLowerCase()===lt?(r=e.substr(Sa,3),Sa+=3):(r=c,Ia(ct))),r!==c&&(Ta=t,r=ut(r)),r}function fs(){var t,r,n,o;return t=Sa,function(){var e,t;if(e=[],(t=ja())===c&&(t=Ga())===c&&(t=vs()),t!==c)for(;t!==c;)e.push(t),(t=ja())===c&&(t=Ga())===c&&(t=vs());else e=c;return e}()!==c?(r=Sa,58===e.charCodeAt(Sa)?(n=V,Sa++):(n=c,Ia(H)),n!==c&&(o=function(){var t,r,n;for(t=Sa,r=[],(n=ja())===c&&(n=Ga())===c&&(38===e.charCodeAt(Sa)?(n=B,Sa++):(n=c,Ia(L)),n===c&&(61===e.charCodeAt(Sa)?(n=q,Sa++):(n=c,Ia(j)),n===c&&(43===e.charCodeAt(Sa)?(n=F,Sa++):(n=c,Ia(G)),n===c&&(36===e.charCodeAt(Sa)?(n=K,Sa++):(n=c,Ia($)),n===c&&(44===e.charCodeAt(Sa)?(n=W,Sa++):(n=c,Ia(J)))))));n!==c;)r.push(n),(n=ja())===c&&(n=Ga())===c&&(38===e.charCodeAt(Sa)?(n=B,Sa++):(n=c,Ia(L)),n===c&&(61===e.charCodeAt(Sa)?(n=q,Sa++):(n=c,Ia(j)),n===c&&(43===e.charCodeAt(Sa)?(n=F,Sa++):(n=c,Ia(G)),n===c&&(36===e.charCodeAt(Sa)?(n=K,Sa++):(n=c,Ia($)),n===c&&(44===e.charCodeAt(Sa)?(n=W,Sa++):(n=c,Ia(J)))))));return r!==c&&(Ta=t,r=pt()),r}())!==c?r=n=[n,o]:(Sa=r,r=c),r===c&&(r=null),r!==c?(64===e.charCodeAt(Sa)?(n=P,Sa++):(n=c,Ia(z)),n!==c?(Ta=t,t=dt()):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t}function vs(){var t;return 38===e.charCodeAt(Sa)?(t=B,Sa++):(t=c,Ia(L)),t===c&&(61===e.charCodeAt(Sa)?(t=q,Sa++):(t=c,Ia(j)),t===c&&(43===e.charCodeAt(Sa)?(t=F,Sa++):(t=c,Ia(G)),t===c&&(36===e.charCodeAt(Sa)?(t=K,Sa++):(t=c,Ia($)),t===c&&(44===e.charCodeAt(Sa)?(t=W,Sa++):(t=c,Ia(J)),t===c&&(59===e.charCodeAt(Sa)?(t=x,Sa++):(t=c,Ia(I)),t===c&&(63===e.charCodeAt(Sa)?(t=M,Sa++):(t=c,Ia(U)),t===c&&(47===e.charCodeAt(Sa)?(t=D,Sa++):(t=c,Ia(O))))))))),t}function ms(){var t,r,n,o,i;return t=Sa,(r=gs())!==c?(n=Sa,58===e.charCodeAt(Sa)?(o=V,Sa++):(o=c,Ia(H)),o!==c&&(i=_s())!==c?n=o=[o,i]:(Sa=n,n=c),n===c&&(n=null),n!==c?t=r=[r,n]:(Sa=t,t=c)):(Sa=t,t=c),t}function gs(){var e,t;return e=Sa,(t=ys())===c&&(t=Es())===c&&(t=Ss()),t!==c&&(Ta=e,t=ht()),t}function ys(){var t,r,n,o,i;for(t=Sa,r=[],n=Sa,(o=Cs())!==c?(46===e.charCodeAt(Sa)?(i=ee,Sa++):(i=c,Ia(te)),i!==c?n=o=[o,i]:(Sa=n,n=c)):(Sa=n,n=c);n!==c;)r.push(n),n=Sa,(o=Cs())!==c?(46===e.charCodeAt(Sa)?(i=ee,Sa++):(i=c,Ia(te)),i!==c?n=o=[o,i]:(Sa=n,n=c)):(Sa=n,n=c);return r!==c&&(n=function(){var t,r,n,o;if(t=Sa,m.test(e.charAt(Sa))?(r=e.charAt(Sa),Sa++):(r=c,Ia(g)),r!==c){for(n=[],gt.test(e.charAt(Sa))?(o=e.charAt(Sa),Sa++):(o=c,Ia(yt));o!==c;)n.push(o),gt.test(e.charAt(Sa))?(o=e.charAt(Sa),Sa++):(o=c,Ia(yt));n!==c?t=r=[r,n]:(Sa=t,t=c)}else Sa=t,t=c;return t}())!==c?(46===e.charCodeAt(Sa)?(o=ee,Sa++):(o=c,Ia(te)),o===c&&(o=null),o!==c?(Ta=t,t=r=ft()):(Sa=t,t=c)):(Sa=t,t=c),t}function Cs(){var t,r;if(t=[],vt.test(e.charAt(Sa))?(r=e.charAt(Sa),Sa++):(r=c,Ia(mt)),r!==c)for(;r!==c;)t.push(r),vt.test(e.charAt(Sa))?(r=e.charAt(Sa),Sa++):(r=c,Ia(mt));else t=c;return t}function Ss(){var t,r,n;return t=Sa,91===e.charCodeAt(Sa)?(r=xe,Sa++):(r=c,Ia(Ie)),r!==c&&Ts()!==c?(93===e.charCodeAt(Sa)?(n=De,Sa++):(n=c,Ia(Oe)),n!==c?(Ta=t,t=r=Ct()):(Sa=t,t=c)):(Sa=t,t=c),t}function Ts(){var t,r,n,o,i,a,s,l,u,d,p,h,f,v,m;return t=Sa,r=Sa,(n=bs())!==c?(58===e.charCodeAt(Sa)?(o=V,Sa++):(o=c,Ia(H)),o!==c&&(i=bs())!==c?(58===e.charCodeAt(Sa)?(a=V,Sa++):(a=c,Ia(H)),a!==c&&(s=bs())!==c?(58===e.charCodeAt(Sa)?(l=V,Sa++):(l=c,Ia(H)),l!==c&&(u=bs())!==c?(58===e.charCodeAt(Sa)?(d=V,Sa++):(d=c,Ia(H)),d!==c&&(p=bs())!==c?(58===e.charCodeAt(Sa)?(h=V,Sa++):(h=c,Ia(H)),h!==c&&(f=bs())!==c?(58===e.charCodeAt(Sa)?(v=V,Sa++):(v=c,Ia(H)),v!==c&&(m=ws())!==c?r=n=[n,o,i,a,s,l,u,d,p,h,f,v,m]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,e.substr(Sa,2)===St?(n=St,Sa+=2):(n=c,Ia(Tt)),n!==c&&(o=bs())!==c?(58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?(58===e.charCodeAt(Sa)?(s=V,Sa++):(s=c,Ia(H)),s!==c&&(l=bs())!==c?(58===e.charCodeAt(Sa)?(u=V,Sa++):(u=c,Ia(H)),u!==c&&(d=bs())!==c?(58===e.charCodeAt(Sa)?(p=V,Sa++):(p=c,Ia(H)),p!==c&&(h=bs())!==c?(58===e.charCodeAt(Sa)?(f=V,Sa++):(f=c,Ia(H)),f!==c&&(v=ws())!==c?r=n=[n,o,i,a,s,l,u,d,p,h,f,v]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,e.substr(Sa,2)===St?(n=St,Sa+=2):(n=c,Ia(Tt)),n!==c&&(o=bs())!==c?(58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?(58===e.charCodeAt(Sa)?(s=V,Sa++):(s=c,Ia(H)),s!==c&&(l=bs())!==c?(58===e.charCodeAt(Sa)?(u=V,Sa++):(u=c,Ia(H)),u!==c&&(d=bs())!==c?(58===e.charCodeAt(Sa)?(p=V,Sa++):(p=c,Ia(H)),p!==c&&(h=ws())!==c?r=n=[n,o,i,a,s,l,u,d,p,h]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,e.substr(Sa,2)===St?(n=St,Sa+=2):(n=c,Ia(Tt)),n!==c&&(o=bs())!==c?(58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?(58===e.charCodeAt(Sa)?(s=V,Sa++):(s=c,Ia(H)),s!==c&&(l=bs())!==c?(58===e.charCodeAt(Sa)?(u=V,Sa++):(u=c,Ia(H)),u!==c&&(d=ws())!==c?r=n=[n,o,i,a,s,l,u,d]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,e.substr(Sa,2)===St?(n=St,Sa+=2):(n=c,Ia(Tt)),n!==c&&(o=bs())!==c?(58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?(58===e.charCodeAt(Sa)?(s=V,Sa++):(s=c,Ia(H)),s!==c&&(l=ws())!==c?r=n=[n,o,i,a,s,l]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,e.substr(Sa,2)===St?(n=St,Sa+=2):(n=c,Ia(Tt)),n!==c&&(o=bs())!==c?(58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=ws())!==c?r=n=[n,o,i,a]:(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,e.substr(Sa,2)===St?(n=St,Sa+=2):(n=c,Ia(Tt)),n!==c&&(o=ws())!==c?r=n=[n,o]:(Sa=r,r=c),r===c&&(r=Sa,e.substr(Sa,2)===St?(n=St,Sa+=2):(n=c,Ia(Tt)),n!==c&&(o=bs())!==c?r=n=[n,o]:(Sa=r,r=c),r===c&&(r=Sa,(n=bs())!==c?(e.substr(Sa,2)===St?(o=St,Sa+=2):(o=c,Ia(Tt)),o!==c&&(i=bs())!==c?(58===e.charCodeAt(Sa)?(a=V,Sa++):(a=c,Ia(H)),a!==c&&(s=bs())!==c?(58===e.charCodeAt(Sa)?(l=V,Sa++):(l=c,Ia(H)),l!==c&&(u=bs())!==c?(58===e.charCodeAt(Sa)?(d=V,Sa++):(d=c,Ia(H)),d!==c&&(p=bs())!==c?(58===e.charCodeAt(Sa)?(h=V,Sa++):(h=c,Ia(H)),h!==c&&(f=ws())!==c?r=n=[n,o,i,a,s,l,u,d,p,h,f]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,(n=bs())!==c?(o=Sa,58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?o=i=[i,a]:(Sa=o,o=c),o===c&&(o=null),o!==c?(e.substr(Sa,2)===St?(i=St,Sa+=2):(i=c,Ia(Tt)),i!==c&&(a=bs())!==c?(58===e.charCodeAt(Sa)?(s=V,Sa++):(s=c,Ia(H)),s!==c&&(l=bs())!==c?(58===e.charCodeAt(Sa)?(u=V,Sa++):(u=c,Ia(H)),u!==c&&(d=bs())!==c?(58===e.charCodeAt(Sa)?(p=V,Sa++):(p=c,Ia(H)),p!==c&&(h=ws())!==c?r=n=[n,o,i,a,s,l,u,d,p,h]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,(n=bs())!==c?(o=Sa,58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?o=i=[i,a]:(Sa=o,o=c),o===c&&(o=null),o!==c?(i=Sa,58===e.charCodeAt(Sa)?(a=V,Sa++):(a=c,Ia(H)),a!==c&&(s=bs())!==c?i=a=[a,s]:(Sa=i,i=c),i===c&&(i=null),i!==c?(e.substr(Sa,2)===St?(a=St,Sa+=2):(a=c,Ia(Tt)),a!==c&&(s=bs())!==c?(58===e.charCodeAt(Sa)?(l=V,Sa++):(l=c,Ia(H)),l!==c&&(u=bs())!==c?(58===e.charCodeAt(Sa)?(d=V,Sa++):(d=c,Ia(H)),d!==c&&(p=ws())!==c?r=n=[n,o,i,a,s,l,u,d,p]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,(n=bs())!==c?(o=Sa,58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?o=i=[i,a]:(Sa=o,o=c),o===c&&(o=null),o!==c?(i=Sa,58===e.charCodeAt(Sa)?(a=V,Sa++):(a=c,Ia(H)),a!==c&&(s=bs())!==c?i=a=[a,s]:(Sa=i,i=c),i===c&&(i=null),i!==c?(a=Sa,58===e.charCodeAt(Sa)?(s=V,Sa++):(s=c,Ia(H)),s!==c&&(l=bs())!==c?a=s=[s,l]:(Sa=a,a=c),a===c&&(a=null),a!==c?(e.substr(Sa,2)===St?(s=St,Sa+=2):(s=c,Ia(Tt)),s!==c&&(l=bs())!==c?(58===e.charCodeAt(Sa)?(u=V,Sa++):(u=c,Ia(H)),u!==c&&(d=ws())!==c?r=n=[n,o,i,a,s,l,u,d]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,(n=bs())!==c?(o=Sa,58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?o=i=[i,a]:(Sa=o,o=c),o===c&&(o=null),o!==c?(i=Sa,58===e.charCodeAt(Sa)?(a=V,Sa++):(a=c,Ia(H)),a!==c&&(s=bs())!==c?i=a=[a,s]:(Sa=i,i=c),i===c&&(i=null),i!==c?(a=Sa,58===e.charCodeAt(Sa)?(s=V,Sa++):(s=c,Ia(H)),s!==c&&(l=bs())!==c?a=s=[s,l]:(Sa=a,a=c),a===c&&(a=null),a!==c?(s=Sa,58===e.charCodeAt(Sa)?(l=V,Sa++):(l=c,Ia(H)),l!==c&&(u=bs())!==c?s=l=[l,u]:(Sa=s,s=c),s===c&&(s=null),s!==c?(e.substr(Sa,2)===St?(l=St,Sa+=2):(l=c,Ia(Tt)),l!==c&&(u=ws())!==c?r=n=[n,o,i,a,s,l,u]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,(n=bs())!==c?(o=Sa,58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?o=i=[i,a]:(Sa=o,o=c),o===c&&(o=null),o!==c?(i=Sa,58===e.charCodeAt(Sa)?(a=V,Sa++):(a=c,Ia(H)),a!==c&&(s=bs())!==c?i=a=[a,s]:(Sa=i,i=c),i===c&&(i=null),i!==c?(a=Sa,58===e.charCodeAt(Sa)?(s=V,Sa++):(s=c,Ia(H)),s!==c&&(l=bs())!==c?a=s=[s,l]:(Sa=a,a=c),a===c&&(a=null),a!==c?(s=Sa,58===e.charCodeAt(Sa)?(l=V,Sa++):(l=c,Ia(H)),l!==c&&(u=bs())!==c?s=l=[l,u]:(Sa=s,s=c),s===c&&(s=null),s!==c?(l=Sa,58===e.charCodeAt(Sa)?(u=V,Sa++):(u=c,Ia(H)),u!==c&&(d=bs())!==c?l=u=[u,d]:(Sa=l,l=c),l===c&&(l=null),l!==c?(e.substr(Sa,2)===St?(u=St,Sa+=2):(u=c,Ia(Tt)),u!==c&&(d=bs())!==c?r=n=[n,o,i,a,s,l,u,d]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,(n=bs())!==c?(o=Sa,58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?o=i=[i,a]:(Sa=o,o=c),o===c&&(o=null),o!==c?(i=Sa,58===e.charCodeAt(Sa)?(a=V,Sa++):(a=c,Ia(H)),a!==c&&(s=bs())!==c?i=a=[a,s]:(Sa=i,i=c),i===c&&(i=null),i!==c?(a=Sa,58===e.charCodeAt(Sa)?(s=V,Sa++):(s=c,Ia(H)),s!==c&&(l=bs())!==c?a=s=[s,l]:(Sa=a,a=c),a===c&&(a=null),a!==c?(s=Sa,58===e.charCodeAt(Sa)?(l=V,Sa++):(l=c,Ia(H)),l!==c&&(u=bs())!==c?s=l=[l,u]:(Sa=s,s=c),s===c&&(s=null),s!==c?(l=Sa,58===e.charCodeAt(Sa)?(u=V,Sa++):(u=c,Ia(H)),u!==c&&(d=bs())!==c?l=u=[u,d]:(Sa=l,l=c),l===c&&(l=null),l!==c?(u=Sa,58===e.charCodeAt(Sa)?(d=V,Sa++):(d=c,Ia(H)),d!==c&&(p=bs())!==c?u=d=[d,p]:(Sa=u,u=c),u===c&&(u=null),u!==c?(e.substr(Sa,2)===St?(d=St,Sa+=2):(d=c,Ia(Tt)),d!==c?r=n=[n,o,i,a,s,l,u,d]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c))))))))))))))),r!==c&&(Ta=t,r=bt()),r}function bs(){var e,t,r,n,o;return e=Sa,(t=Ua())!==c?((r=Ua())===c&&(r=null),r!==c?((n=Ua())===c&&(n=null),n!==c?((o=Ua())===c&&(o=null),o!==c?e=t=[t,r,n,o]:(Sa=e,e=c)):(Sa=e,e=c)):(Sa=e,e=c)):(Sa=e,e=c),e}function ws(){var t,r,n,o;return t=Sa,(r=bs())!==c?(58===e.charCodeAt(Sa)?(n=V,Sa++):(n=c,Ia(H)),n!==c&&(o=bs())!==c?t=r=[r,n,o]:(Sa=t,t=c)):(Sa=t,t=c),t===c&&(t=Es()),t}function Es(){var t,r,n,o;return t=Sa,As()!==c?(46===e.charCodeAt(Sa)?(r=ee,Sa++):(r=c,Ia(te)),r!==c&&As()!==c?(46===e.charCodeAt(Sa)?(n=ee,Sa++):(n=c,Ia(te)),n!==c&&As()!==c?(46===e.charCodeAt(Sa)?(o=ee,Sa++):(o=c,Ia(te)),o!==c&&As()!==c?(Ta=t,t=wt()):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t}function As(){var t,r,n,o;return t=Sa,e.substr(Sa,2)===Et?(r=Et,Sa+=2):(r=c,Ia(At)),r!==c?(_t.test(e.charAt(Sa))?(n=e.charAt(Sa),Sa++):(n=c,Ia(Nt)),n!==c?t=r=[r,n]:(Sa=t,t=c)):(Sa=t,t=c),t===c&&(t=Sa,50===e.charCodeAt(Sa)?(r=kt,Sa++):(r=c,Ia(Rt)),r!==c?(xt.test(e.charAt(Sa))?(n=e.charAt(Sa),Sa++):(n=c,Ia(It)),n!==c&&(o=Oa())!==c?t=r=[r,n,o]:(Sa=t,t=c)):(Sa=t,t=c),t===c&&(t=Sa,49===e.charCodeAt(Sa)?(r=Dt,Sa++):(r=c,Ia(Ot)),r!==c&&(n=Oa())!==c&&(o=Oa())!==c?t=r=[r,n,o]:(Sa=t,t=c),t===c&&(t=Sa,Mt.test(e.charAt(Sa))?(r=e.charAt(Sa),Sa++):(r=c,Ia(Ut)),r!==c&&(n=Oa())!==c?t=r=[r,n]:(Sa=t,t=c),t===c&&(t=Oa())))),t}function _s(){var e,t,r,n,o,i,a;return e=Sa,t=Sa,(r=Oa())===c&&(r=null),r!==c?((n=Oa())===c&&(n=null),n!==c?((o=Oa())===c&&(o=null),o!==c?((i=Oa())===c&&(i=null),i!==c?((a=Oa())===c&&(a=null),a!==c?t=r=[r,n,o,i,a]:(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t!==c&&(Ta=e,t=Vt(t)),t}function Ns(){var t,r,n,o;return r=Sa,e.substr(Sa,10).toLowerCase()===Ht?(n=e.substr(Sa,10),Sa+=10):(n=c,Ia(Pt)),n!==c?(e.substr(Sa,3).toLowerCase()===zt?(o=e.substr(Sa,3),Sa+=3):(o=c,Ia(Bt)),o===c&&(e.substr(Sa,3).toLowerCase()===Lt?(o=e.substr(Sa,3),Sa+=3):(o=c,Ia(qt)),o===c&&(e.substr(Sa,4).toLowerCase()===jt?(o=e.substr(Sa,4),Sa+=4):(o=c,Ia(Ft)),o===c&&(e.substr(Sa,3).toLowerCase()===Gt?(o=e.substr(Sa,3),Sa+=3):(o=c,Ia(Kt)),o===c&&(o=Ya())))),o!==c?(Ta=r,r=n=$t(o)):(Sa=r,r=c)):(Sa=r,r=c),(t=r)===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,5).toLowerCase()===Wt?(r=e.substr(Sa,5),Sa+=5):(r=c,Ia(Jt)),r!==c?(e.substr(Sa,5).toLowerCase()===Yt?(n=e.substr(Sa,5),Sa+=5):(n=c,Ia(Qt)),n===c&&(e.substr(Sa,2).toLowerCase()===Zt?(n=e.substr(Sa,2),Sa+=2):(n=c,Ia(Xt)),n===c&&(n=Ya())),n!==c?(Ta=t,t=r=er(n)):(Sa=t,t=c)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,7).toLowerCase()===tr?(r=e.substr(Sa,7),Sa+=7):(r=c,Ia(rr)),r!==c&&(n=Bs())!==c?(Ta=t,t=r=nr(n)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,4).toLowerCase()===or?(r=e.substr(Sa,4),Sa+=4):(r=c,Ia(ir)),r!==c&&(n=pl())!==c?(Ta=t,t=r=ar(n)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,6).toLowerCase()===sr?(r=e.substr(Sa,6),Sa+=6):(r=c,Ia(lr)),r!==c&&(n=gs())!==c?(Ta=t,t=r=cr(n)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n,o,i;return t=Sa,e.substr(Sa,2).toLowerCase()===ur?(r=e.substr(Sa,2),Sa+=2):(r=c,Ia(dr)),r!==c?(n=Sa,61===e.charCodeAt(Sa)?(o=q,Sa++):(o=c,Ia(j)),o!==c&&(i=Ya())!==c?n=o=[o,i]:(Sa=n,n=c),n===c&&(n=null),n!==c?(Ta=t,t=r=pr()):(Sa=t,t=c)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n,o,i;return t=Sa,(r=function(){var t,r,n;if(t=Sa,r=[],(n=ks())!==c)for(;n!==c;)r.push(n),n=ks();else r=c;return r!==c?e.substring(t,Sa):r}())!==c?(n=Sa,61===e.charCodeAt(Sa)?(o=q,Sa++):(o=c,Ia(j)),o!==c&&(i=function(){var t,r,n;if(t=Sa,r=[],(n=ks())!==c)for(;n!==c;)r.push(n),n=ks();else r=c;return r!==c?e.substring(t,Sa):r}())!==c?n=o=[o,i]:(Sa=n,n=c),n===c&&(n=null),n!==c?(Ta=t,t=r=hr(r,n)):(Sa=t,t=c)):(Sa=t,t=c),t}()),t}function ks(){var t,r;return 91===e.charCodeAt(Sa)?(r=xe,Sa++):(r=c,Ia(Ie)),r===c&&(93===e.charCodeAt(Sa)?(r=De,Sa++):(r=c,Ia(Oe)),r===c&&(47===e.charCodeAt(Sa)?(r=D,Sa++):(r=c,Ia(O)),r===c&&(58===e.charCodeAt(Sa)?(r=V,Sa++):(r=c,Ia(H)),r===c&&(38===e.charCodeAt(Sa)?(r=B,Sa++):(r=c,Ia(L)),r===c&&(43===e.charCodeAt(Sa)?(r=F,Sa++):(r=c,Ia(G)),r===c&&(36===e.charCodeAt(Sa)?(r=K,Sa++):(r=c,Ia($)))))))),(t=r)===c&&(t=ja())===c&&(t=Ga()),t}function Rs(){var t,r,n,o;return t=Sa,(r=function(){var e,t;if(e=[],(t=xs())===c&&(t=ja())===c&&(t=Ga()),t!==c)for(;t!==c;)e.push(t),(t=xs())===c&&(t=ja())===c&&(t=Ga());else e=c;return e}())!==c?(61===e.charCodeAt(Sa)?(n=q,Sa++):(n=c,Ia(j)),n!==c&&(o=function(){var e,t;for(e=[],(t=xs())===c&&(t=ja())===c&&(t=Ga());t!==c;)e.push(t),(t=xs())===c&&(t=ja())===c&&(t=Ga());return e}())!==c?(Ta=t,t=r=fr(r,o)):(Sa=t,t=c)):(Sa=t,t=c),t}function xs(){var t;return 91===e.charCodeAt(Sa)?(t=xe,Sa++):(t=c,Ia(Ie)),t===c&&(93===e.charCodeAt(Sa)?(t=De,Sa++):(t=c,Ia(Oe)),t===c&&(47===e.charCodeAt(Sa)?(t=D,Sa++):(t=c,Ia(O)),t===c&&(63===e.charCodeAt(Sa)?(t=M,Sa++):(t=c,Ia(U)),t===c&&(58===e.charCodeAt(Sa)?(t=V,Sa++):(t=c,Ia(H)),t===c&&(43===e.charCodeAt(Sa)?(t=F,Sa++):(t=c,Ia(G)),t===c&&(36===e.charCodeAt(Sa)?(t=K,Sa++):(t=c,Ia($)))))))),t}function Is(){var e,t,r,n,o,i,a,s,l,u,d,p,h;return t=Sa,(r=zs())!==c&&(n=za())!==c&&(s=Sa,u=Sa,(d=Oa())!==c&&(p=Oa())!==c&&(h=Oa())!==c?u=d=[d,p,h]:(Sa=u,u=c),(l=u)!==c&&(Ta=s,l=qr(l)),(o=l)!==c)&&(i=za())!==c&&(a=function(){var e,t,r;for(e=Sa,t=[],(r=qa())===c&&(r=ja())===c&&(r=Ga())===c&&(r=Wa())===c&&(r=Ja())===c&&(r=za())===c&&(r=Ba());r!==c;)t.push(r),(r=qa())===c&&(r=ja())===c&&(r=Ga())===c&&(r=Wa())===c&&(r=Ja())===c&&(r=za())===c&&(r=Ba());return t!==c&&(Ta=e,t=jr()),t}())!==c?t=r=[r,n,o,i,a]:(Sa=t,t=c),(e=t)===c&&(e=function(){var e,t,r,n,o,i;return e=Sa,(t=Bs())!==c&&(r=za())!==c&&(n=function(){var e;return(e=ps())===c&&(e=Ds()),e}())!==c&&(o=za())!==c&&(i=zs())!==c?e=t=[t,r,n,o,i]:(Sa=e,e=c),e}()),e}function Ds(){var t,r,n,o,i,a,s,l,u,d,p,h,f,v,m,g,y;return t=Sa,function(){var t,r,n,o,i;if(t=Sa,r=Sa,(n=Ma())!==c){for(o=[],(i=Ma())===c&&(i=Oa())===c&&(43===e.charCodeAt(Sa)?(i=F,Sa++):(i=c,Ia(G)),i===c&&(45===e.charCodeAt(Sa)?(i=Y,Sa++):(i=c,Ia(Q)),i===c&&(46===e.charCodeAt(Sa)?(i=ee,Sa++):(i=c,Ia(te)))));i!==c;)o.push(i),(i=Ma())===c&&(i=Oa())===c&&(43===e.charCodeAt(Sa)?(i=F,Sa++):(i=c,Ia(G)),i===c&&(45===e.charCodeAt(Sa)?(i=Y,Sa++):(i=c,Ia(Q)),i===c&&(46===e.charCodeAt(Sa)?(i=ee,Sa++):(i=c,Ia(te)))));o!==c?r=n=[n,o]:(Sa=r,r=c)}else Sa=r,r=c;return r!==c&&(Ta=t,r=yr()),r}()!==c?(58===e.charCodeAt(Sa)?(r=V,Sa++):(r=c,Ia(H)),r!==c?(o=Sa,u=Sa,e.substr(Sa,2)===mr?(d=mr,Sa+=2):(d=c,Ia(gr)),d!==c&&(v=Sa,m=Sa,(g=fs())!==c?(64===e.charCodeAt(Sa)?(y=P,Sa++):(y=c,Ia(z)),y!==c?m=g=[g,y]:(Sa=m,m=c)):(Sa=m,m=c),m===c&&(m=null),m!==c&&(g=ms())!==c?v=m=[m,g]:(Sa=v,v=c),v===c&&(v=null),(f=v)===c&&(f=Ps()),(p=f)!==c)?((h=Os())===c&&(h=null),h!==c?u=d=[d,p,h]:(Sa=u,u=c)):(Sa=u,u=c),(i=u)===c&&(i=Os()),i!==c?(a=Sa,63===e.charCodeAt(Sa)?(s=M,Sa++):(s=c,Ia(U)),s!==c&&(l=function(){var e,t;for(e=[],t=Ms();t!==c;)e.push(t),t=Ms();return e}())!==c?a=s=[s,l]:(Sa=a,a=c),a===c&&(a=null),a!==c?o=i=[i,a]:(Sa=o,o=c)):(Sa=o,o=c),(n=o)===c&&(n=function(){var t,r,n,o;if(t=Sa,(r=function(){var t;return(t=ja())===c&&(t=Ga())===c&&(59===e.charCodeAt(Sa)?(t=x,Sa++):(t=c,Ia(I)),t===c&&(63===e.charCodeAt(Sa)?(t=M,Sa++):(t=c,Ia(U)),t===c&&(58===e.charCodeAt(Sa)?(t=V,Sa++):(t=c,Ia(H)),t===c&&(64===e.charCodeAt(Sa)?(t=P,Sa++):(t=c,Ia(z)),t===c&&(38===e.charCodeAt(Sa)?(t=B,Sa++):(t=c,Ia(L)),t===c&&(61===e.charCodeAt(Sa)?(t=q,Sa++):(t=c,Ia(j)),t===c&&(43===e.charCodeAt(Sa)?(t=F,Sa++):(t=c,Ia(G)),t===c&&(36===e.charCodeAt(Sa)?(t=K,Sa++):(t=c,Ia($)),t===c&&(44===e.charCodeAt(Sa)?(t=W,Sa++):(t=c,Ia(J))))))))))),t}())!==c){for(n=[],o=Ms();o!==c;)n.push(o),o=Ms();n!==c?t=r=[r,n]:(Sa=t,t=c)}else Sa=t,t=c;return t}()),n!==c?(Ta=t,t=vr()):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t}function Os(){var t,r,n;return t=Sa,47===e.charCodeAt(Sa)?(r=D,Sa++):(r=c,Ia(O)),r!==c&&(n=function(){var t,r,n,o,i,a;if(t=Sa,(r=Us())!==c){for(n=[],o=Sa,47===e.charCodeAt(Sa)?(i=D,Sa++):(i=c,Ia(O)),i!==c&&(a=Us())!==c?o=i=[i,a]:(Sa=o,o=c);o!==c;)n.push(o),o=Sa,47===e.charCodeAt(Sa)?(i=D,Sa++):(i=c,Ia(O)),i!==c&&(a=Us())!==c?o=i=[i,a]:(Sa=o,o=c);n!==c?t=r=[r,n]:(Sa=t,t=c)}else Sa=t,t=c;return t}())!==c?t=r=[r,n]:(Sa=t,t=c),t}function Ms(){var e;return(e=qa())===c&&(e=ja())===c&&(e=Ga()),e}function Us(){var t,r,n,o,i,a;for(t=Sa,r=[],n=Hs();n!==c;)r.push(n),n=Hs();if(r!==c){for(n=[],o=Sa,59===e.charCodeAt(Sa)?(i=x,Sa++):(i=c,Ia(I)),i!==c&&(a=Vs())!==c?o=i=[i,a]:(Sa=o,o=c);o!==c;)n.push(o),o=Sa,59===e.charCodeAt(Sa)?(i=x,Sa++):(i=c,Ia(I)),i!==c&&(a=Vs())!==c?o=i=[i,a]:(Sa=o,o=c);n!==c?t=r=[r,n]:(Sa=t,t=c)}else Sa=t,t=c;return t}function Vs(){var e,t;for(e=[],t=Hs();t!==c;)e.push(t),t=Hs();return e}function Hs(){var t;return(t=ja())===c&&(t=Ga())===c&&(58===e.charCodeAt(Sa)?(t=V,Sa++):(t=c,Ia(H)),t===c&&(64===e.charCodeAt(Sa)?(t=P,Sa++):(t=c,Ia(z)),t===c&&(38===e.charCodeAt(Sa)?(t=B,Sa++):(t=c,Ia(L)),t===c&&(61===e.charCodeAt(Sa)?(t=q,Sa++):(t=c,Ia(j)),t===c&&(43===e.charCodeAt(Sa)?(t=F,Sa++):(t=c,Ia(G)),t===c&&(36===e.charCodeAt(Sa)?(t=K,Sa++):(t=c,Ia($)),t===c&&(44===e.charCodeAt(Sa)?(t=W,Sa++):(t=c,Ia(J))))))))),t}function Ps(){var t,r;if(t=[],(r=ja())===c&&(r=Ga())===c&&(36===e.charCodeAt(Sa)?(r=K,Sa++):(r=c,Ia($)),r===c&&(44===e.charCodeAt(Sa)?(r=W,Sa++):(r=c,Ia(J)),r===c&&(59===e.charCodeAt(Sa)?(r=x,Sa++):(r=c,Ia(I)),r===c&&(58===e.charCodeAt(Sa)?(r=V,Sa++):(r=c,Ia(H)),r===c&&(64===e.charCodeAt(Sa)?(r=P,Sa++):(r=c,Ia(z)),r===c&&(38===e.charCodeAt(Sa)?(r=B,Sa++):(r=c,Ia(L)),r===c&&(61===e.charCodeAt(Sa)?(r=q,Sa++):(r=c,Ia(j)),r===c&&(43===e.charCodeAt(Sa)?(r=F,Sa++):(r=c,Ia(G)))))))))),r!==c)for(;r!==c;)t.push(r),(r=ja())===c&&(r=Ga())===c&&(36===e.charCodeAt(Sa)?(r=K,Sa++):(r=c,Ia($)),r===c&&(44===e.charCodeAt(Sa)?(r=W,Sa++):(r=c,Ia(J)),r===c&&(59===e.charCodeAt(Sa)?(r=x,Sa++):(r=c,Ia(I)),r===c&&(58===e.charCodeAt(Sa)?(r=V,Sa++):(r=c,Ia(H)),r===c&&(64===e.charCodeAt(Sa)?(r=P,Sa++):(r=c,Ia(z)),r===c&&(38===e.charCodeAt(Sa)?(r=B,Sa++):(r=c,Ia(L)),r===c&&(61===e.charCodeAt(Sa)?(r=q,Sa++):(r=c,Ia(j)),r===c&&(43===e.charCodeAt(Sa)?(r=F,Sa++):(r=c,Ia(G))))))))));else t=c;return t}function zs(){var t,r,n,o,i,a,s;if(t=Sa,e.substr(Sa,3).toLowerCase()===lt?(r=e.substr(Sa,3),Sa+=3):(r=c,Ia(Cr)),r!==c)if(47===e.charCodeAt(Sa)?(n=D,Sa++):(n=c,Ia(O)),n!==c){if(o=[],(i=Oa())!==c)for(;i!==c;)o.push(i),i=Oa();else o=c;if(o!==c)if(46===e.charCodeAt(Sa)?(i=ee,Sa++):(i=c,Ia(te)),i!==c){if(a=[],(s=Oa())!==c)for(;s!==c;)a.push(s),s=Oa();else a=c;a!==c?(Ta=t,t=r=Sr()):(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c}else Sa=t,t=c;else Sa=t,t=c;return t}function Bs(){var t,r,n;return t=Sa,e.substr(Sa,6)===Tr?(n=Tr,Sa+=6):(n=c,Ia(br)),(r=n)===c&&(r=function(){var t;return e.substr(Sa,3)===wr?(t=wr,Sa+=3):(t=c,Ia(Er)),t}())===c&&(r=function(){var t;return e.substr(Sa,7)===Ar?(t=Ar,Sa+=7):(t=c,Ia(_r)),t}())===c&&(r=function(){var t;return e.substr(Sa,3)===Nr?(t=Nr,Sa+=3):(t=c,Ia(kr)),t}())===c&&(r=function(){var t;return e.substr(Sa,6)===Rr?(t=Rr,Sa+=6):(t=c,Ia(xr)),t}())===c&&(r=function(){var t;return e.substr(Sa,8)===Ir?(t=Ir,Sa+=8):(t=c,Ia(Dr)),t}())===c&&(r=function(){var t;return e.substr(Sa,9)===Or?(t=Or,Sa+=9):(t=c,Ia(Mr)),t}())===c&&(r=function(){var t;return e.substr(Sa,7)===zr?(t=zr,Sa+=7):(t=c,Ia(Br)),t}())===c&&(r=function(){var t;return e.substr(Sa,6)===Ur?(t=Ur,Sa+=6):(t=c,Ia(Vr)),t}())===c&&(r=function(){var t;return e.substr(Sa,5)===Hr?(t=Hr,Sa+=5):(t=c,Ia(Pr)),t}())===c&&(r=Ya()),r!==c&&(Ta=t,r=Lr()),r}function Ls(){var t,r,n,o;return t=Sa,Za()!==c?(r=Sa,64===e.charCodeAt(Sa)?(n=P,Sa++):(n=c,Ia(z)),n!==c&&(o=Za())!==c?r=n=[n,o]:(Sa=r,r=c),r===c&&(r=null),r!==c?(Ta=t,t=Fr()):(Sa=t,t=c)):(Sa=t,t=c),t}function qs(){var t,r,n,o,i,a,s,l,u;if(t=Sa,l=Sa,$a()!==c?(42===e.charCodeAt(Sa)?(u=ae,Sa++):(u=c,Ia(se)),u!==c&&$a()!==c?(Ta=l,l=Pe()):(Sa=l,l=c)):(Sa=l,l=c),(r=l)===c)if(r=Sa,(n=js())!==c){for(o=[],i=Sa,(a=ns())!==c&&(s=js())!==c?i=a=[a,s]:(Sa=i,i=c);i!==c;)o.push(i),i=Sa,(a=ns())!==c&&(s=js())!==c?i=a=[a,s]:(Sa=i,i=c);o!==c?r=n=[n,o]:(Sa=r,r=c)}else Sa=r,r=c;return r!==c&&(Ta=t,r=Gr()),r}function js(){var e,t,r,n,o,i;if(e=Sa,(t=ds())===c&&(t=Fs()),t!==c){for(r=[],n=Sa,(o=os())!==c&&(i=Ks())!==c?n=o=[o,i]:(Sa=n,n=c);n!==c;)r.push(n),n=Sa,(o=os())!==c&&(i=Ks())!==c?n=o=[o,i]:(Sa=n,n=c);r!==c?(Ta=e,e=t=Kr()):(Sa=e,e=c)}else Sa=e,e=c;return e}function Fs(){var e,t,r,n,o;return e=Sa,(t=Gs())===c&&(t=null),t!==c&&(r=rs())!==c&&(n=ps())!==c&&(o=ts())!==c?e=t=[t,r,n,o]:(Sa=e,e=c),e}function Gs(){var e,t,r,n,o,i,a;if(e=Sa,t=Sa,(r=Ya())!==c){for(n=[],o=Sa,(i=Ka())!==c&&(a=Ya())!==c?o=i=[i,a]:(Sa=o,o=c);o!==c;)n.push(o),o=Sa,(i=Ka())!==c&&(a=Ya())!==c?o=i=[i,a]:(Sa=o,o=c);n!==c?t=r=[r,n]:(Sa=t,t=c)}else Sa=t,t=c;return t===c&&(t=ss()),t!==c&&(Ta=e,t=$r(t)),t}function Ks(){var t,r,n,o,i,a,s,l,u,d,p;return r=Sa,e.substr(Sa,1).toLowerCase()===Wr?(n=e.charAt(Sa),Sa++):(n=c,Ia(Jr)),n!==c&&es()!==c&&(i=Sa,48===e.charCodeAt(Sa)?(a=tn,Sa++):(a=c,Ia(rn)),a!==c?(s=Sa,46===e.charCodeAt(Sa)?(l=ee,Sa++):(l=c,Ia(te)),l!==c?((u=Oa())===c&&(u=null),u!==c?((d=Oa())===c&&(d=null),d!==c?((p=Oa())===c&&(p=null),p!==c?s=l=[l,u,d,p]:(Sa=s,s=c)):(Sa=s,s=c)):(Sa=s,s=c)):(Sa=s,s=c),s===c&&(s=null),s!==c?(Ta=i,i=a=nn()):(Sa=i,i=c)):(Sa=i,i=c),(o=i)!==c)?(Ta=r,r=n=Yr(o)):(Sa=r,r=c),(t=r)===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,7).toLowerCase()===Qr?(r=e.substr(Sa,7),Sa+=7):(r=c,Ia(Zr)),r!==c&&es()!==c&&(n=$s())!==c?(Ta=t,t=r=Xr(n)):(Sa=t,t=c),t}())===c&&(t=Ws()),t}function $s(){var e,t,r;if(e=Sa,t=[],(r=Oa())!==c)for(;r!==c;)t.push(r),r=Oa();else t=c;return t!==c&&(Ta=e,t=en(t)),t}function Ws(){var e,t,r,n,o,i;return e=Sa,(t=Ya())!==c?(r=Sa,(n=es())!==c&&((i=Ya())===c&&(i=gs())===c&&(i=ss()),(o=i)!==c)?r=n=[n,o]:(Sa=r,r=c),r===c&&(r=null),r!==c?(Ta=e,e=t=on(t,r)):(Sa=e,e=c)):(Sa=e,e=c),e}function Js(){var t,r,n,o,i;return r=Sa,e.substr(Sa,8).toLowerCase()===vn?(n=e.substr(Sa,8),Sa+=8):(n=c,Ia(mn)),n!==c&&(o=es())!==c?(e.substr(Sa,8).toLowerCase()===gn?(i=e.substr(Sa,8),Sa+=8):(i=c,Ia(yn)),i===c&&(e.substr(Sa,8).toLowerCase()===Cn?(i=e.substr(Sa,8),Sa+=8):(i=c,Ia(Sn)),i===c&&(i=Ya())),i!==c?r=n=[n,o,i]:(Sa=r,r=c)):(Sa=r,r=c),(t=r)===c&&(t=Ws()),t}function Ys(){var t,r,n,o;return(t=Ya())===c&&(r=Sa,e.substr(Sa,2).toLowerCase()===Hn?(n=e.substr(Sa,2),Sa+=2):(n=c,Ia(Pn)),n!==c&&(o=Ya())!==c?r=n=[n,o]:(Sa=r,r=c),t=r),t}function Qs(){var e,t,r,n,o;return e=Sa,(t=Ya())!==c&&(r=es())!==c&&((o=Ya())===c&&(o=ss()),(n=o)!==c)?e=t=[t,r,n]:(Sa=e,e=c),e}function Zs(){var e;return(e=Xs())===c&&(e=Ws()),e}function Xs(){var t,r,n;return t=Sa,e.substr(Sa,3).toLowerCase()===qn?(r=e.substr(Sa,3),Sa+=3):(r=c,Ia(jn)),r!==c&&es()!==c&&(n=Ya())!==c?(Ta=t,t=r=Fn(n)):(Sa=t,t=c),t}function el(){var t,r,n,o,i,a,s,l;if(t=Sa,e.substr(Sa,6).toLowerCase()===$n?(r=e.substr(Sa,6),Sa+=6):(r=c,Ia(Wn)),r!==c)if((n=Ka())!==c)if((o=rl())!==c){for(i=[],a=Sa,(s=ns())!==c&&(l=rl())!==c?a=s=[s,l]:(Sa=a,a=c);a!==c;)i.push(a),a=Sa,(s=ns())!==c&&(l=rl())!==c?a=s=[s,l]:(Sa=a,a=c);i!==c?t=r=[r,n,o,i]:(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c;else Sa=t,t=c;return t===c&&(t=function(){var e,t,r,n,o,i,a,s;if(e=Sa,(t=Ya())!==c)if((r=Ka())!==c)if((n=tl())!==c){for(o=[],i=Sa,(a=ns())!==c&&(s=tl())!==c?i=a=[a,s]:(Sa=i,i=c);i!==c;)o.push(i),i=Sa,(a=ns())!==c&&(s=tl())!==c?i=a=[a,s]:(Sa=i,i=c);o!==c?e=t=[t,r,n,o]:(Sa=e,e=c)}else Sa=e,e=c;else Sa=e,e=c;else Sa=e,e=c;return e}()),t}function tl(){var e,t,r,n;return e=Sa,(t=Ya())!==c&&(r=es())!==c?((n=Ya())===c&&(n=ss()),n!==c?e=t=[t,r,n]:(Sa=e,e=c)):(Sa=e,e=c),e}function rl(){var t,r,n,o,i,a,s;return r=Sa,e.substr(Sa,5).toLowerCase()===Jn?(n=e.substr(Sa,5),Sa+=5):(n=c,Ia(Yn)),n!==c&&(o=es())!==c&&(a=Sa,(s=ls())!==c&&(Ta=a,s=Qn(s)),(i=s)!==c)?r=n=[n,o,i]:(Sa=r,r=c),(t=r)===c&&(t=function(){var t,r,n,o,i,a,s,l,u;if(t=Sa,e.substr(Sa,6).toLowerCase()===Zn?(r=e.substr(Sa,6),Sa+=6):(r=c,Ia(Xn)),r!==c)if((n=es())!==c)if((o=is())!==c)if((i=nl())!==c){if(a=[],s=Sa,l=[],(u=za())!==c)for(;u!==c;)l.push(u),u=za();else l=c;for(l!==c&&(u=nl())!==c?s=l=[l,u]:(Sa=s,s=c);s!==c;){if(a.push(s),s=Sa,l=[],(u=za())!==c)for(;u!==c;)l.push(u),u=za();else l=c;l!==c&&(u=nl())!==c?s=l=[l,u]:(Sa=s,s=c)}a!==c&&(s=as())!==c?t=r=[r,n,o,i,a,s]:(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c;else Sa=t,t=c;else Sa=t,t=c;return t}())===c&&(t=function(){var t,r,n,o;return t=Sa,e.substr(Sa,5).toLowerCase()===eo?(r=e.substr(Sa,5),Sa+=5):(r=c,Ia(to)),r!==c&&(n=es())!==c&&(o=function(){var e,t;return e=Sa,(t=ls())!==c&&(Ta=e,t=ro(t)),t}())!==c?t=r=[r,n,o]:(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,6).toLowerCase()===no?(r=e.substr(Sa,6),Sa+=6):(r=c,Ia(oo)),r!==c&&es()!==c&&(n=ls())!==c?(Ta=t,t=r=io(n)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n,o,i;return t=Sa,e.substr(Sa,5).toLowerCase()===ao?(r=e.substr(Sa,5),Sa+=5):(r=c,Ia(so)),r!==c&&(n=es())!==c?(o=Sa,e.substr(Sa,4).toLowerCase()===lo?(i=e.substr(Sa,4),Sa+=4):(i=c,Ia(co)),i!==c&&(Ta=o,i=uo()),(o=i)===c&&(o=Sa,e.substr(Sa,5).toLowerCase()===po?(i=e.substr(Sa,5),Sa+=5):(i=c,Ia(ho)),i!==c&&(Ta=o,i=fo()),o=i),o!==c?t=r=[r,n,o]:(Sa=t,t=c)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,9).toLowerCase()===vo?(r=e.substr(Sa,9),Sa+=9):(r=c,Ia(mo)),r!==c&&es()!==c?(e.substr(Sa,3).toLowerCase()===go?(n=e.substr(Sa,3),Sa+=3):(n=c,Ia(yo)),n===c&&(e.substr(Sa,8).toLowerCase()===Co?(n=e.substr(Sa,8),Sa+=8):(n=c,Ia(So)),n===c&&(n=Ya())),n!==c?(Ta=t,t=r=To(n)):(Sa=t,t=c)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n,o,i,a,s,l,u,d;if(t=Sa,e.substr(Sa,3).toLowerCase()===bo?(r=e.substr(Sa,3),Sa+=3):(r=c,Ia(wo)),r!==c)if((n=es())!==c)if((o=is())!==c){if(i=Sa,(a=ol())!==c){for(s=[],l=Sa,44===e.charCodeAt(Sa)?(u=W,Sa++):(u=c,Ia(J)),u!==c&&(d=ol())!==c?l=u=[u,d]:(Sa=l,l=c);l!==c;)s.push(l),l=Sa,44===e.charCodeAt(Sa)?(u=W,Sa++):(u=c,Ia(J)),u!==c&&(d=ol())!==c?l=u=[u,d]:(Sa=l,l=c);s!==c?i=a=[a,s]:(Sa=i,i=c)}else Sa=i,i=c;i!==c&&(a=as())!==c?t=r=[r,n,o,i,a]:(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c;else Sa=t,t=c;return t}())===c&&(t=tl()),t}function nl(){var e;return(e=Ds())===c&&(e=Os()),e}function ol(){var t,r;return t=Sa,e.substr(Sa,8).toLowerCase()===Eo?(r=e.substr(Sa,8),Sa+=8):(r=c,Ia(Ao)),r===c&&(e.substr(Sa,4).toLowerCase()===_o?(r=e.substr(Sa,4),Sa+=4):(r=c,Ia(No)),r===c&&(r=Ya())),r!==c&&(Ta=t,r=ko(r)),r}function il(){var e,t,r,n,o;if(e=Sa,Fs()!==c){for(t=[],r=Sa,(n=os())!==c&&(o=Ws())!==c?r=n=[n,o]:(Sa=r,r=c);r!==c;)t.push(r),r=Sa,(n=os())!==c&&(o=Ws())!==c?r=n=[n,o]:(Sa=r,r=c);t!==c?(Ta=e,e=xo()):(Sa=e,e=c)}else Sa=e,e=c;return e}function al(){var t,r,n;return t=Sa,e.substr(Sa,8).toLowerCase()===Mo?(r=e.substr(Sa,8),Sa+=8):(r=c,Ia(Uo)),r!==c&&es()!==c&&(n=Ya())!==c?(Ta=t,t=r=Vo(n)):(Sa=t,t=c),t===c&&(t=Sa,e.substr(Sa,6).toLowerCase()===Ho?(r=e.substr(Sa,6),Sa+=6):(r=c,Ia(Po)),r!==c&&es()!==c&&(n=Ya())!==c?(Ta=t,t=r=zo(n)):(Sa=t,t=c),t===c&&(t=Sa,e.substr(Sa,10).toLowerCase()===Bo?(r=e.substr(Sa,10),Sa+=10):(r=c,Ia(Lo)),r!==c&&(Ta=t,r=qo()),(t=r)===c&&(t=Ws()))),t}function sl(){var t,r,n,o;return t=Sa,e.substr(Sa,6).toLowerCase()===Xo?(r=e.substr(Sa,6),Sa+=6):(r=c,Ia(ei)),r!==c&&es()!==c&&(e.substr(Sa,11).toLowerCase()===ai?(o=e.substr(Sa,11),Sa+=11):(o=c,Ia(si)),o===c&&(e.substr(Sa,9).toLowerCase()===li?(o=e.substr(Sa,9),Sa+=9):(o=c,Ia(ci)),o===c&&(e.substr(Sa,8).toLowerCase()===ui?(o=e.substr(Sa,8),Sa+=8):(o=c,Ia(di)),o===c&&(e.substr(Sa,7).toLowerCase()===pi?(o=e.substr(Sa,7),Sa+=7):(o=c,Ia(hi)),o===c&&(e.substr(Sa,6).toLowerCase()===fi?(o=e.substr(Sa,6),Sa+=6):(o=c,Ia(vi)),o===c&&(e.substr(Sa,10).toLowerCase()===mi?(o=e.substr(Sa,10),Sa+=10):(o=c,Ia(gi)),o===c&&(e.substr(Sa,9).toLowerCase()===yi?(o=e.substr(Sa,9),Sa+=9):(o=c,Ia(Ci)),o===c&&(o=Ya()))))))),(n=o)!==c)?(Ta=t,t=r=ti(n)):(Sa=t,t=c),t===c&&(t=Sa,e.substr(Sa,7).toLowerCase()===Qr?(r=e.substr(Sa,7),Sa+=7):(r=c,Ia(Zr)),r!==c&&es()!==c&&(n=$s())!==c?(Ta=t,t=r=ri(n)):(Sa=t,t=c),t===c&&(t=Sa,e.substr(Sa,11).toLowerCase()===ni?(r=e.substr(Sa,11),Sa+=11):(r=c,Ia(oi)),r!==c&&es()!==c&&(n=$s())!==c?(Ta=t,t=r=ii(n)):(Sa=t,t=c),t===c&&(t=Ws()))),t}function ll(){var e;return(e=Xs())===c&&(e=Ws()),e}function cl(){var t,r,n,o,i,a,s,l,u,d,p,h,f,v,m,g;if(t=Sa,u=Sa,m=Sa,e.substr(Sa,3).toLowerCase()===lt?(g=e.substr(Sa,3),Sa+=3):(g=c,Ia(Cr)),g===c&&(g=Ya()),g!==c&&(Ta=m,g=Hi(g)),(d=g)!==c&&(p=Xa())!==c&&(h=Ya())!==c&&(f=Xa())!==c&&(v=dl())!==c?u=d=[d,p,h,f,v]:(Sa=u,u=c),(r=u)!==c)if((n=Ka())!==c)if((o=function(){var t,r,n,o,i;return t=Sa,(r=function(){var e,t;return e=Sa,(t=ys())===c&&(t=Es())===c&&(t=Ss()),t!==c&&(Ta=e,t=ji()),t}())!==c?(n=Sa,(o=function(){var t,r;return t=Sa,$a()!==c?(58===e.charCodeAt(Sa)?(r=V,Sa++):(r=c,Ia(H)),r!==c&&$a()!==c?(Ta=t,t=Ge()):(Sa=t,t=c)):(Sa=t,t=c),t}())!==c&&(i=function(){var e,t,r,n,o,i,a;return e=Sa,t=Sa,(r=Oa())===c&&(r=null),r!==c?((n=Oa())===c&&(n=null),n!==c?((o=Oa())===c&&(o=null),o!==c?((i=Oa())===c&&(i=null),i!==c?((a=Oa())===c&&(a=null),a!==c?t=r=[r,n,o,i,a]:(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t!==c&&(Ta=e,t=Fi(t)),t}())!==c?n=o=[o,i]:(Sa=n,n=c),n===c&&(n=null),n!==c?t=r=[r,n]:(Sa=t,t=c)):(Sa=t,t=c),t}())!==c){for(i=[],a=Sa,(s=os())!==c&&(l=ul())!==c?a=s=[s,l]:(Sa=a,a=c);a!==c;)i.push(a),a=Sa,(s=os())!==c&&(l=ul())!==c?a=s=[s,l]:(Sa=a,a=c);i!==c?t=r=[r,n,o,i]:(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c;else Sa=t,t=c;return t}function ul(){var t,r,n,o;return r=Sa,e.substr(Sa,3).toLowerCase()===bi?(n=e.substr(Sa,3),Sa+=3):(n=c,Ia(wi)),n!==c&&es()!==c&&(o=pl())!==c?(Ta=r,r=n=Ei(o)):(Sa=r,r=c),(t=r)===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,5).toLowerCase()===Ai?(r=e.substr(Sa,5),Sa+=5):(r=c,Ia(_i)),r!==c&&es()!==c&&(n=gs())!==c?(Ta=t,t=r=Ni(n)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,8).toLowerCase()===ki?(r=e.substr(Sa,8),Sa+=8):(r=c,Ia(Ri)),r!==c&&es()!==c?((n=Es())===c&&(n=Ts())===c&&(n=Ss()),n!==c?(Ta=t,t=r=xi(n)):(Sa=t,t=c)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,6).toLowerCase()===Ii?(r=e.substr(Sa,6),Sa+=6):(r=c,Ia(Di)),r!==c&&es()!==c&&(n=Ya())!==c?(Ta=t,t=r=Oi(n)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n,o;if(t=Sa,e.substr(Sa,5).toLowerCase()===Mi?(r=e.substr(Sa,5),Sa+=5):(r=c,Ia(Ui)),r!==c)if(es()!==c){for(n=[],o=Oa();o!==c;)n.push(o),o=Oa();n!==c?(Ta=t,t=r=Vi(n)):(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c;return t}())===c&&(t=Ws()),t}function dl(){var t,r;return t=Sa,e.substr(Sa,3).toLowerCase()===zt?(r=e.substr(Sa,3),Sa+=3):(r=c,Ia(Pi)),r===c&&(e.substr(Sa,3).toLowerCase()===Lt?(r=e.substr(Sa,3),Sa+=3):(r=c,Ia(zi)),r===c&&(e.substr(Sa,3).toLowerCase()===Gt?(r=e.substr(Sa,3),Sa+=3):(r=c,Ia(Bi)),r===c&&(e.substr(Sa,4).toLowerCase()===jt?(r=e.substr(Sa,4),Sa+=4):(r=c,Ia(Li)),r===c&&(r=Ya())))),r!==c&&(Ta=t,r=qi(r)),r}function pl(){var e,t,r,n,o;return e=Sa,t=Sa,(r=Oa())!==c?((n=Oa())===c&&(n=null),n!==c?((o=Oa())===c&&(o=null),o!==c?t=r=[r,n,o]:(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t!==c&&(Ta=e,t=Gi(t)),t}function hl(){var t,r,n,o;return r=Sa,e.substr(Sa,9)===$i?(n=$i,Sa+=9):(n=c,Ia(Wi)),n!==c&&es()!==c?(e.substr(Sa,3)===Ji?(o=Ji,Sa+=3):(o=c,Ia(Yi)),o===c&&(e.substr(Sa,3)===Qi?(o=Qi,Sa+=3):(o=c,Ia(Zi))),o!==c?(Ta=r,r=n=Xi(o)):(Sa=r,r=c)):(Sa=r,r=c),(t=r)===c&&(t=Ws()),t}function fl(){var t,r,n,o,i,a,s;return t=Sa,a=Sa,(s=Es())===c&&(s=Ss())===c&&(s=Ps()),s!==c&&(Ta=a,s=aa(s)),(r=s)!==c?(n=Sa,58===e.charCodeAt(Sa)?(o=V,Sa++):(o=c,Ia(H)),o!==c&&(i=_s())!==c?n=o=[o,i]:(Sa=n,n=c),n===c&&(n=null),n!==c?t=r=[r,n]:(Sa=t,t=c)):(Sa=t,t=c),t}function vl(){var e,t,r,n,o;return e=Sa,(t=Ua())!==c&&(r=Ua())!==c&&(n=Ua())!==c&&(o=Ua())!==c?e=t=[t,r,n,o]:(Sa=e,e=c),e}function ml(){var t,r,n,o,i,a,s,l,u,d;return t=Sa,e.substr(Sa,3)===ya?(r=ya,Sa+=3):(r=c,Ia(Ca)),r!==c&&(n=es())!==c&&(i=Sa,(a=is())!==c&&(s=Fa())!==c?(64===e.charCodeAt(Sa)?(l=P,Sa++):(l=c,Ia(z)),l!==c?((u=Fa())===c&&(u=gs()),u!==c&&(d=as())!==c?i=a=[a,s,l,u,d]:(Sa=i,i=c)):(Sa=i,i=c)):(Sa=i,i=c),(o=i)!==c)?t=r=[r,n,o]:(Sa=t,t=c),t}if(t.data={},(r=d())!==c&&Sa===e.length)return r;throw r!==c&&Sa<e.length&&Ia({type:"end"}),n=Ea,o=wa<e.length?e.charAt(wa):null,l=wa<e.length?xa(wa,wa+1):xa(wa,wa),new s(s.buildMessage(n,o),n,o,l)}},function(e,t,r){var n;e.exports=(n=r(33),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],l=e[t+1],h=e[t+2],f=e[t+3],v=e[t+4],m=e[t+5],g=e[t+6],y=e[t+7],C=e[t+8],S=e[t+9],T=e[t+10],b=e[t+11],w=e[t+12],E=e[t+13],A=e[t+14],_=e[t+15],N=i[0],k=i[1],R=i[2],x=i[3];N=c(N,k,R,x,a,7,s[0]),x=c(x,N,k,R,l,12,s[1]),R=c(R,x,N,k,h,17,s[2]),k=c(k,R,x,N,f,22,s[3]),N=c(N,k,R,x,v,7,s[4]),x=c(x,N,k,R,m,12,s[5]),R=c(R,x,N,k,g,17,s[6]),k=c(k,R,x,N,y,22,s[7]),N=c(N,k,R,x,C,7,s[8]),x=c(x,N,k,R,S,12,s[9]),R=c(R,x,N,k,T,17,s[10]),k=c(k,R,x,N,b,22,s[11]),N=c(N,k,R,x,w,7,s[12]),x=c(x,N,k,R,E,12,s[13]),R=c(R,x,N,k,A,17,s[14]),N=u(N,k=c(k,R,x,N,_,22,s[15]),R,x,l,5,s[16]),x=u(x,N,k,R,g,9,s[17]),R=u(R,x,N,k,b,14,s[18]),k=u(k,R,x,N,a,20,s[19]),N=u(N,k,R,x,m,5,s[20]),x=u(x,N,k,R,T,9,s[21]),R=u(R,x,N,k,_,14,s[22]),k=u(k,R,x,N,v,20,s[23]),N=u(N,k,R,x,S,5,s[24]),x=u(x,N,k,R,A,9,s[25]),R=u(R,x,N,k,f,14,s[26]),k=u(k,R,x,N,C,20,s[27]),N=u(N,k,R,x,E,5,s[28]),x=u(x,N,k,R,h,9,s[29]),R=u(R,x,N,k,y,14,s[30]),N=d(N,k=u(k,R,x,N,w,20,s[31]),R,x,m,4,s[32]),x=d(x,N,k,R,C,11,s[33]),R=d(R,x,N,k,b,16,s[34]),k=d(k,R,x,N,A,23,s[35]),N=d(N,k,R,x,l,4,s[36]),x=d(x,N,k,R,v,11,s[37]),R=d(R,x,N,k,y,16,s[38]),k=d(k,R,x,N,T,23,s[39]),N=d(N,k,R,x,E,4,s[40]),x=d(x,N,k,R,a,11,s[41]),R=d(R,x,N,k,f,16,s[42]),k=d(k,R,x,N,g,23,s[43]),N=d(N,k,R,x,S,4,s[44]),x=d(x,N,k,R,w,11,s[45]),R=d(R,x,N,k,_,16,s[46]),N=p(N,k=d(k,R,x,N,h,23,s[47]),R,x,a,6,s[48]),x=p(x,N,k,R,y,10,s[49]),R=p(R,x,N,k,A,15,s[50]),k=p(k,R,x,N,m,21,s[51]),N=p(N,k,R,x,w,6,s[52]),x=p(x,N,k,R,f,10,s[53]),R=p(R,x,N,k,T,15,s[54]),k=p(k,R,x,N,l,21,s[55]),N=p(N,k,R,x,C,6,s[56]),x=p(x,N,k,R,_,10,s[57]),R=p(R,x,N,k,g,15,s[58]),k=p(k,R,x,N,E,21,s[59]),N=p(N,k,R,x,v,6,s[60]),x=p(x,N,k,R,b,10,s[61]),R=p(R,x,N,k,h,15,s[62]),k=p(k,R,x,N,S,21,s[63]),i[0]=i[0]+N|0,i[1]=i[1]+k|0,i[2]=i[2]+R|0,i[3]=i[3]+x|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;r[o>>>5]|=128<<24-o%32;var i=e.floor(n/4294967296),a=n;r[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,o,i,a){var s=e+(t&r|~t&n)+o+a;return(s<<i|s>>>32-i)+t}function u(e,t,r,n,o,i,a){var s=e+(t&n|r&~n)+o+a;return(s<<i|s>>>32-i)+t}function d(e,t,r,n,o,i,a){var s=e+(t^r^n)+o+a;return(s<<i|s>>>32-i)+t}function p(e,t,r,n,o,i,a){var s=e+(r^(t|~n))+o+a;return(s<<i|s>>>32-i)+t}t.MD5=i._createHelper(l),t.HmacMD5=i._createHmacHelper(l)}(Math),n.MD5)},function(e,t,r){var n,o,i,a,s,l,c,u,d,p,h,f,v;e.exports=(n=n||(o=Math,i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s=(a={}).lib={},l=s.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=l.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var a=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=a<<24-(n+i)%4*8}else for(i=0;i<o;i+=4)t[n+i>>>2]=r[i>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=o.ceil(t/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t,r=[],n=function(e){var t=987654321,r=4294967295;return function(){var n=((t=36969*(65535&t)+(t>>16)&r)<<16)+(e=18e3*(65535&e)+(e>>16)&r)&r;return n/=4294967296,(n+=.5)*(o.random()>.5?1:-1)}},i=0;i<e;i+=4){var a=n(4294967296*(t||o.random()));t=987654071*a(),r.push(4294967296*a()|0)}return new c.init(r,e)}}),u=a.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},p=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},h=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},f=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,r=t.words,n=t.sigBytes,i=this.blockSize,a=n/(4*i),s=(a=e?o.ceil(a):o.max((0|a)-this._minBufferSize,0))*i,l=o.min(4*s,n);if(s){for(var u=0;u<s;u+=i)this._doProcessBlock(r,u);var d=r.splice(0,s);t.sigBytes-=l}return new c.init(d,l)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),s.Hasher=f.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new v.HMAC.init(e,r).finalize(t)}}}),v=a.algo={},a),n)},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),a=r(1),s=r(0),l=r(5),c=r(2),u=function(e){function t(t,r,n){void 0===n&&(n={});var o=e.call(this)||this;if(o.C={MIN_DURATION:70,MAX_DURATION:6e3,DEFAULT_DURATION:100,MIN_INTER_TONE_GAP:50,DEFAULT_INTER_TONE_GAP:500},o.type=s.TypeStrings.DTMF,void 0===r)throw new TypeError("Not enough arguments");if(o.logger=t.ua.getLogger("sip.invitecontext.dtmf",t.id),o.owner=t,"string"==typeof r)r=r.toUpperCase();else{if("number"!=typeof r)throw new TypeError("Invalid tone: "+r);r=r.toString()}if(!r.match(/^[0-9A-D#*]$/))throw new TypeError("Invalid tone: "+r);o.tone=r;var i=n.duration,a=n.interToneGap;if(i&&!c.Utils.isDecimal(i))throw new TypeError("Invalid tone duration: "+i);if(i?i<o.C.MIN_DURATION?(o.logger.warn("'duration' value is lower than the minimum allowed, setting it to "+o.C.MIN_DURATION+" milliseconds"),i=o.C.MIN_DURATION):i>o.C.MAX_DURATION?(o.logger.warn("'duration' value is greater than the maximum allowed, setting it to "+o.C.MAX_DURATION+" milliseconds"),i=o.C.MAX_DURATION):i=Math.abs(i):i=o.C.DEFAULT_DURATION,o.duration=i,a&&!c.Utils.isDecimal(a))throw new TypeError("Invalid interToneGap: "+a);return a?a<o.C.MIN_INTER_TONE_GAP?(o.logger.warn("'interToneGap' value is lower than the minimum allowed, setting it to "+o.C.MIN_INTER_TONE_GAP+" milliseconds"),a=o.C.MIN_INTER_TONE_GAP):a=Math.abs(a):a=o.C.DEFAULT_INTER_TONE_GAP,o.interToneGap=a,o}return o(t,e),t.prototype.send=function(e){if(void 0===e&&(e={}),this.owner.status!==s.SessionStatus.STATUS_CONFIRMED&&this.owner.status!==s.SessionStatus.STATUS_WAITING_FOR_ACK)throw new l.Exceptions.InvalidStateError(this.owner.status);var t=e.extraHeaders?e.extraHeaders.slice():[],r={contentType:"application/dtmf-relay",body:"Signal= "+this.tone+"\r\nDuration= "+this.duration};if(this.owner.dialog){var n=this.owner.dialog.sendRequest(this,a.C.INFO,{extraHeaders:t,body:r});this.owner.emit("dtmf",n,this)}},t.prototype.init_incoming=function(e){e.reply(200),this.tone&&this.duration?this.owner.emit("dtmf",e,this):this.logger.warn("invalid INFO DTMF received, discarded")},t.prototype.receiveResponse=function(e){var t=e&&e.statusCode?e.statusCode:0;switch(!0){case/^1[0-9]{2}$/.test(t.toString()):break;case/^2[0-9]{2}$/.test(t.toString()):this.emit("succeeded",{originator:"remote",response:e});break;default:var r=c.Utils.sipErrorCause(t);this.emit("failed",e,r)}},t.prototype.onRequestTimeout=function(){this.emit("failed",void 0,a.C.causes.REQUEST_TIMEOUT),this.owner.onRequestTimeout()},t.prototype.onTransportError=function(){this.emit("failed",void 0,a.C.causes.CONNECTION_ERROR),this.owner.onTransportError()},t.prototype.onDialogError=function(e){this.emit("failed",e,a.C.causes.DIALOG_ERROR),this.owner.onDialogError(e)},t}(i.EventEmitter);t.DTMF=u},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=function(){function e(e,t){this.type=n.TypeStrings.SessionDescriptionHandlerObserver,this.session=e,this.options=t}return e.prototype.trackAdded=function(){this.session.emit("trackAdded")},e.prototype.directionChanged=function(){this.session.emit("directionChanged")},e}();t.SessionDescriptionHandlerObserver=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(15);t.Modifiers=n;var o=r(37);t.Simple=o.Simple;var i=r(28);t.SessionDescriptionHandler=i.SessionDescriptionHandler;var a=r(29);t.Transport=a.Transport},function(e,t,r){(function(e){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,a,s=r(3),l=r(27),c=r(15);(a=i=t.SimpleStatus||(t.SimpleStatus={}))[a.STATUS_NULL=0]="STATUS_NULL",a[a.STATUS_NEW=1]="STATUS_NEW",a[a.STATUS_CONNECTING=2]="STATUS_CONNECTING",a[a.STATUS_CONNECTED=3]="STATUS_CONNECTED",a[a.STATUS_COMPLETED=4]="STATUS_COMPLETED";var u=function(t){function r(r){var n=t.call(this)||this;if(r.media.remote.video?n.video=!0:n.video=!1,r.media.remote.audio?n.audio=!0:n.audio=!1,!n.audio&&!n.video)throw new Error("At least one remote audio or video element is required for Simple.");n.options=r;var o=e.navigator.userAgent.toLowerCase(),a=!1,s=!1;o.indexOf("safari")>-1&&o.indexOf("chrome")<0?a=!0:o.indexOf("firefox")>-1&&o.indexOf("chrome")<0&&(s=!0);var u={};return a&&(u.modifiers=[c.stripG722]),s&&(u.alwaysAcquireMediaFirst=!0),n.options.ua.uri?n.anonymous=!1:n.anonymous=!0,n.ua=new l.UA({uri:n.options.ua.uri,authorizationUser:n.options.ua.authorizationUser,password:n.options.ua.password,displayName:n.options.ua.displayName,userAgentString:n.options.ua.userAgentString,register:!0,sessionDescriptionHandlerFactoryOptions:u,transportOptions:{traceSip:n.options.ua.traceSip,wsServers:n.options.ua.wsServers}}),n.state=i.STATUS_NULL,n.logger=n.ua.getLogger("sip.simple"),n.ua.on("registered",function(){n.emit("registered",n.ua)}),n.ua.on("unregistered",function(){n.emit("unregistered",n.ua)}),n.ua.on("failed",function(){n.emit("unregistered",n.ua)}),n.ua.on("invite",function(e){if(n.state!==i.STATUS_NULL&&n.state!==i.STATUS_COMPLETED)return n.logger.warn("Rejecting incoming call. Simple only supports 1 call at a time"),void e.reject();n.session=e,n.setupSession(),n.emit("ringing",n.session)}),n.ua.on("message",function(e){n.emit("message",e)}),n}return o(r,t),r.prototype.call=function(e){if(this.ua&&this.checkRegistration()){if(this.state===i.STATUS_NULL||this.state===i.STATUS_COMPLETED)return this.options.media.remote.audio&&(this.options.media.remote.audio.autoplay=!0),this.options.media.remote.video&&(this.options.media.remote.video.autoplay=!0),this.options.media.local&&this.options.media.local.video&&(this.options.media.local.video.autoplay=!0,this.options.media.local.video.volume=0),this.session=this.ua.invite(e,{sessionDescriptionHandlerOptions:{constraints:{audio:this.audio,video:this.video}}}),this.setupSession(),this.session;this.logger.warn("Cannot make more than a single call with Simple")}else this.logger.warn("A registered UA is required for calling")},r.prototype.answer=function(){if(this.state===i.STATUS_NEW||this.state===i.STATUS_CONNECTING)return this.options.media.remote.audio&&(this.options.media.remote.audio.autoplay=!0),this.options.media.remote.video&&(this.options.media.remote.video.autoplay=!0),this.session.accept({sessionDescriptionHandlerOptions:{constraints:{audio:this.audio,video:this.video}}});this.logger.warn("No call to answer")},r.prototype.reject=function(){if(this.state===i.STATUS_NEW||this.state===i.STATUS_CONNECTING)return this.session.reject();this.logger.warn("Call is already answered")},r.prototype.hangup=function(){if(this.state===i.STATUS_CONNECTED||this.state===i.STATUS_CONNECTING||this.state===i.STATUS_NEW)return this.state!==i.STATUS_CONNECTED?this.session.cancel():this.session?this.session.bye():void 0;this.logger.warn("No active call to hang up on")},r.prototype.hold=function(){if(this.state===i.STATUS_CONNECTED&&this.session&&!this.session.localHold)return this.mute(),this.logger.log("Placing session on hold"),this.session.hold();this.logger.warn("Cannot put call on hold")},r.prototype.unhold=function(){if(this.state===i.STATUS_CONNECTED&&this.session&&this.session.localHold)return this.unmute(),this.logger.log("Placing call off hold"),this.session.unhold();this.logger.warn("Cannot unhold a call that is not on hold")},r.prototype.mute=function(){this.state===i.STATUS_CONNECTED?(this.logger.log("Muting Audio"),this.toggleMute(!0),this.emit("mute",this)):this.logger.warn("An acitve call is required to mute audio")},r.prototype.unmute=function(){this.state===i.STATUS_CONNECTED?(this.logger.log("Unmuting Audio"),this.toggleMute(!1),this.emit("unmute",this)):this.logger.warn("An active call is required to unmute audio")},r.prototype.sendDTMF=function(e){this.state===i.STATUS_CONNECTED&&this.session?(this.logger.log("Sending DTMF tone: "+e),this.session.dtmf(e)):this.logger.warn("An active call is required to send a DTMF tone")},r.prototype.message=function(e,t){this.ua&&this.checkRegistration()?e&&t?this.ua.message(e,t):this.logger.warn("A destination and message are required to send a message"):this.logger.warn("A registered UA is required to send a message")},r.prototype.checkRegistration=function(){return this.anonymous||this.ua&&this.ua.isRegistered()},r.prototype.setupRemoteMedia=function(){var t=this;if(this.session){var r,n=this.session.sessionDescriptionHandler.peerConnection;n.getReceivers?(r=new e.window.MediaStream,n.getReceivers().forEach(function(e){var t=e.track;t&&r.addTrack(t)})):r=n.getRemoteStreams()[0],this.video?(this.options.media.remote.video.srcObject=r,this.options.media.remote.video.play().catch(function(){t.logger.log("play was rejected")})):this.audio&&(this.options.media.remote.audio.srcObject=r,this.options.media.remote.audio.play().catch(function(){t.logger.log("play was rejected")}))}else this.logger.warn("No session to set remote media on")},r.prototype.setupLocalMedia=function(){if(this.session){if(this.video&&this.options.media.local&&this.options.media.local.video){var t,r=this.session.sessionDescriptionHandler.peerConnection;r.getSenders?(t=new e.window.MediaStream,r.getSenders().forEach(function(e){var r=e.track;r&&"video"===r.kind&&t.addTrack(r)})):t=r.getLocalStreams()[0],this.options.media.local.video.srcObject=t,this.options.media.local.video.volume=0,this.options.media.local.video.play()}}else this.logger.warn("No session to set local media on")},r.prototype.cleanupMedia=function(){this.video&&(this.options.media.remote.video.srcObject=null,this.options.media.remote.video.pause(),this.options.media.local&&this.options.media.local.video&&(this.options.media.local.video.srcObject=null,this.options.media.local.video.pause())),this.audio&&(this.options.media.remote.audio.srcObject=null,this.options.media.remote.audio.pause())},r.prototype.setupSession=function(){var e=this;this.session?(this.state=i.STATUS_NEW,this.emit("new",this.session),this.session.on("progress",function(){return e.onProgress()}),this.session.on("accepted",function(){return e.onAccepted()}),this.session.on("rejected",function(){return e.onEnded()}),this.session.on("failed",function(){return e.onFailed()}),this.session.on("terminated",function(){return e.onEnded()})):this.logger.warn("No session to set up")},r.prototype.destroyMedia=function(){this.session&&this.session.sessionDescriptionHandler&&this.session.sessionDescriptionHandler.close()},r.prototype.toggleMute=function(e){if(this.session){var t=this.session.sessionDescriptionHandler.peerConnection;t.getSenders?t.getSenders().forEach(function(t){t.track&&(t.track.enabled=!e)}):t.getLocalStreams().forEach(function(t){t.getAudioTracks().forEach(function(t){t.enabled=!e}),t.getVideoTracks().forEach(function(t){t.enabled=!e})})}else this.logger.warn("No session to toggle mute")},r.prototype.onAccepted=function(){var e=this;this.session?(this.state=i.STATUS_CONNECTED,this.emit("connected",this.session),this.setupLocalMedia(),this.setupRemoteMedia(),this.session.sessionDescriptionHandler&&(this.session.sessionDescriptionHandler.on("addTrack",function(){e.logger.log("A track has been added, triggering new remoteMedia setup"),e.setupRemoteMedia()}),this.session.sessionDescriptionHandler.on("addStream",function(){e.logger.log("A stream has been added, trigger new remoteMedia setup"),e.setupRemoteMedia()})),this.session.on("dtmf",function(t,r){e.emit("dtmf",r.tone)}),this.session.on("bye",function(){return e.onEnded()})):this.logger.warn("No session for accepting")},r.prototype.onProgress=function(){this.state=i.STATUS_CONNECTING,this.emit("connecting",this.session)},r.prototype.onFailed=function(){this.onEnded()},r.prototype.onEnded=function(){this.state=i.STATUS_COMPLETED,this.emit("ended",this.session),this.cleanupMedia()},r.C=i,r}(s.EventEmitter);t.Simple=u}).call(this,r(12))}])},"object"==typeof e&&"object"==typeof module?module.exports=Ir():"function"==typeof define&&define.amd?define([],Ir):"object"==typeof e?e.SIP=Ir():xr.SIP=Ir();const Dr=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));e.SCTJBaseChart=ye,e.SCTJBimViewer=_r,e.SCTJBtnContainer=ge,e.SCTJBusinessMapDrawingDialog=Ar,e.SCTJCommonChart=we,e.SCTJDateRangePicker=ie,e.SCTJDialogTable=jt,e.SCTJDictTag=k,e.SCTJDwgViewer=Nr,e.SCTJFileUpload=B,e.SCTJFlvPlayer=Ve,e.SCTJH5hkPlayer=tt,e.SCTJHelmetPlayer=ft,e.SCTJIcon=D,e.SCTJIconSelect=ee,e.SCTJIframe=kt,e.SCTJImagePreview=W,e.SCTJImageUpload=K,e.SCTJImportDialog=Mt,e.SCTJMapDrawingDialog=cr,e.SCTJMapViewer=$t,e.SCTJPieChart=Ae,e.SCTJRightToolbar=de,e.SCTJSearch=oe,e.SCTJTable=le,e.SCTJTableContainer=ue,e.SCTJTablePageContainer=me,e.SCTJTableTopActionContainer=he,e.SCTJTreeSelect=x,e.SCTJYsyPlayer=_t,e.default=Rr,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@vue-office/pdf"),require("@vue-office/docx"),require("@vue-office/excel"),require("@element-plus/icons-vue"),require("element-plus"),require("echarts"),require("lodash"),require("flv.js"),require("@amap/amap-jsapi-loader")):"function"==typeof define&&define.amd?define(["exports","vue","@vue-office/pdf","@vue-office/docx","@vue-office/excel","@element-plus/icons-vue","element-plus","echarts","lodash","flv.js","@amap/amap-jsapi-loader"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).SctjComponents={},e.Vue,e.VueOfficePdf,e.VueOfficeDocx,e.VueOfficeExcel,e.ElementPlusIconsVue,e.ElementPlus,e.echarts,e._,e.flvjs,e.AMapLoader)}(this,function(e,t,l,a,o,n,r,i,c,s,u){"use strict";const d=e=>e&&"object"==typeof e&&"default"in e?e:{default:e};function p(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const l in e)if("default"!==l){const a=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(t,l,a.get?a:{enumerable:!0,get:()=>e[l]})}return t.default=e,Object.freeze(t)}const m=d(l),v=d(a),h=d(o),f=p(i),y=d(s),g=d(u);if("undefined"!=typeof window){let e=function(){var e=document.body,t=document.getElementById("__svg__icons__dom__");t||((t=document.createElementNS("http://www.w3.org/2000/svg","svg")).style.position="absolute",t.style.width="0",t.style.height="0",t.id="__svg__icons__dom__",t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),t.innerHTML='<symbol viewBox="0 0 128 128" id="icon-404"><path d="M121.718 73.272v9.953c3.957-7.584 6.199-16.05 6.199-24.995C127.917 26.079 99.273 0 63.958 0 28.644 0 0 26.079 0 58.23c0 .403.028.806.028 1.21l22.97-25.953h13.34l-19.76 27.187h6.42V53.77l13.728-19.477v49.361H22.998V73.272H2.158c5.951 20.284 23.608 36.208 45.998 41.399-1.44 3.3-5.618 11.263-12.565 12.674-8.607 1.764 23.358.428 46.163-13.178 17.519-4.611 31.938-15.849 39.77-30.513h-13.506V73.272H85.02V59.464l22.998-25.977h13.008l-19.429 27.187h6.421v-7.433l13.727-19.402v39.433h-.027zm-78.24 2.822a10.516 10.516 0 0 1-.996-4.535V44.548c0-1.613.332-3.124.996-4.535a11.66 11.66 0 0 1 2.713-3.68c1.134-1.032 2.49-1.864 4.04-2.468 1.55-.605 3.21-.908 4.982-.908h11.292c1.77 0 3.431.303 4.981.908 1.522.604 2.85 1.41 3.986 2.418l-12.26 16.303v-2.898a1.96 1.96 0 0 0-.665-1.512c-.443-.403-.996-.604-1.66-.604-.665 0-1.218.201-1.661.604a1.96 1.96 0 0 0-.664 1.512v9.071L44.364 77.606a10.556 10.556 0 0 1-.886-1.512zm35.73-4.535c0 1.613-.332 3.124-.997 4.535a11.66 11.66 0 0 1-2.712 3.68c-1.134 1.032-2.49 1.864-4.04 2.469-1.55.604-3.21.907-4.982.907H55.185c-1.77 0-3.431-.303-4.981-.907-1.55-.605-2.906-1.437-4.041-2.47a12.49 12.49 0 0 1-1.384-1.512l13.727-18.217v6.375c0 .605.222 1.109.665 1.512.442.403.996.604 1.66.604.664 0 1.218-.201 1.66-.604a1.96 1.96 0 0 0 .665-1.512V53.87L75.97 36.838c.913.932 1.66 1.99 2.214 3.175.664 1.41.996 2.922.996 4.535v27.011h.028z" /></symbol><symbol viewBox="0 0 128 128" id="icon-bug"><path d="M127.88 73.143c0 1.412-.506 2.635-1.518 3.669-1.011 1.033-2.209 1.55-3.592 1.55h-17.887c0 9.296-1.783 17.178-5.35 23.645l16.609 17.044c1.011 1.034 1.517 2.257 1.517 3.67 0 1.412-.506 2.635-1.517 3.668-.958 1.033-2.155 1.55-3.593 1.55-1.438 0-2.635-.517-3.593-1.55l-15.811-16.063a15.49 15.49 0 0 1-1.196 1.06c-.532.434-1.65 1.208-3.353 2.322a50.104 50.104 0 0 1-5.192 2.974c-1.758.87-3.94 1.658-6.546 2.364-2.607.706-5.189 1.06-7.748 1.06V47.044H58.89v73.062c-2.716 0-5.417-.367-8.106-1.102-2.688-.734-5.003-1.631-6.945-2.692a66.769 66.769 0 0 1-5.268-3.179c-1.571-1.057-2.73-1.94-3.476-2.65L33.9 109.34l-14.611 16.877c-1.066 1.14-2.344 1.711-3.833 1.711-1.277 0-2.422-.434-3.434-1.304-1.012-.978-1.557-2.187-1.635-3.627-.079-1.44.333-2.705 1.236-3.794l16.129-18.51c-3.087-6.197-4.63-13.644-4.63-22.342H5.235c-1.383 0-2.58-.517-3.592-1.55S.125 74.545.125 73.132c0-1.412.506-2.635 1.518-3.668 1.012-1.034 2.21-1.55 3.592-1.55h17.887V43.939L9.308 29.833c-1.012-1.033-1.517-2.256-1.517-3.669 0-1.412.505-2.635 1.517-3.668 1.012-1.034 2.21-1.55 3.593-1.55s2.58.516 3.593 1.55l13.813 14.106h67.396l13.814-14.106c1.012-1.034 2.21-1.55 3.592-1.55 1.384 0 2.581.516 3.593 1.55 1.012 1.033 1.518 2.256 1.518 3.668 0 1.413-.506 2.636-1.518 3.67l-13.814 14.105v23.975h17.887c1.383 0 2.58.516 3.593 1.55 1.011 1.033 1.517 2.256 1.517 3.668l-.005.01zM89.552 26.175H38.448c0-7.23 2.489-13.386 7.466-18.469C50.892 2.623 56.92.082 64 .082c7.08 0 13.108 2.541 18.086 7.624 4.977 5.083 7.466 11.24 7.466 18.469z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-build"><path d="M960 591.424V368.96c0-.288.16-.512.16-.768s-.16-.512-.16-.768V192a32 32 0 0 0-32-32H96a32 32 0 0 0-32 32v175.424c0 .288-.16.512-.16.768s.16.48.16.768v222.464c0 .288-.16.512-.16.768s.16.48.16.768V864a32 32 0 0 0 32 32h832a32 32 0 0 0 32-32V592.96c0-.288.16-.512.16-.768s-.16-.512-.16-.768zm-560-31.232v-160h208v160H400zm208 64V832H400V624.192h208zm-480-224h208v160H128v-160zm544 0h224v160H672v-160zM896 224v112.192H128V224h768zM128 624.192h208V832H128V624.192zM672 832V624.192h224V832H672z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-button"><defs><style type="text/css"></style></defs><path d="M230.4 307.712c13.824 0 25.088-11.264 25.088-25.088 0-100.352 81.92-182.272 182.272-182.272s182.272 81.408 182.272 182.272c0 13.824 11.264 25.088 25.088 25.088s25.088-11.264 24.576-25.088c0-127.488-103.936-231.936-231.936-231.936S205.824 154.624 205.824 282.624c-0.512 14.336 10.752 25.088 24.576 25.088z m564.736 234.496c-11.264 0-21.504 2.048-31.232 6.144 0-44.544-40.448-81.92-88.064-81.92-14.848 0-28.16 3.584-39.936 10.24-13.824-28.16-44.544-48.128-78.848-48.128-12.288 0-24.576 2.56-35.328 7.68V284.16c0-45.568-37.888-81.92-84.48-81.92s-84.48 36.864-84.48 81.92v348.672l-69.12-112.64c-18.432-28.16-58.368-36.864-91.136-19.968-26.624 14.336-46.592 47.104-30.208 88.064 3.072 8.192 76.8 205.312 171.52 311.296 0 0 28.16 24.576 43.008 58.88 4.096 9.728 13.312 15.36 22.528 15.36 3.072 0 6.656-0.512 9.728-2.048 12.288-5.12 18.432-19.968 12.8-32.256-19.456-44.544-53.76-74.752-53.76-74.752C281.6 768 209.408 573.44 208.384 570.88c-5.12-12.8-2.56-20.992 7.168-26.112 9.216-4.608 21.504-4.608 26.112 2.56l113.152 184.32c4.096 8.704 12.8 14.336 22.528 14.336 13.824 0 25.088-10.752 25.088-25.088V284.16c0-17.92 15.36-32.256 34.816-32.256s34.816 14.336 34.816 32.256v284.16c0 13.824 10.24 25.088 24.576 25.088 13.824 0 25.088-11.264 25.088-25.088v-57.344c0-17.92 15.36-32.768 34.816-32.768 19.968 0 37.376 15.36 37.376 32.768v95.232c0 7.168 3.072 13.312 7.68 17.92 4.608 4.608 10.752 7.168 17.92 7.168 13.824 0 24.576-11.264 24.576-25.088V547.84c0-18.432 13.824-32.256 32.256-32.256 20.48 0 38.912 15.36 38.912 32.256v95.232c0 13.824 11.264 25.088 25.088 25.088s24.576-11.264 25.088-25.088v-18.944c0-18.944 12.8-32.256 30.72-32.256 18.432 0 22.528 18.944 22.528 31.744 0 1.024-11.776 99.84-50.688 173.056-30.72 58.368-45.056 112.128-51.2 146.944-2.56 13.312 6.656 26.112 19.968 28.672 1.536 0 3.072 0.512 4.608 0.512 11.776 0 22.016-8.192 24.064-20.48 5.632-31.232 18.432-79.36 46.08-132.608 43.52-81.92 55.808-186.88 56.32-193.536-0.512-50.688-29.696-83.968-72.704-83.968z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-cascader"><path d="M772.87 734.061c-43.34 0-80.008 27.933-93.768 66.577H475.91c-56.607 0-102.667-46.06-102.667-102.667v-97.147h305.86c13.76 38.645 50.426 66.578 93.767 66.578 55.124 0 99.948-44.825 99.948-99.949s-44.824-99.948-99.948-99.948c-43.34 0-80.008 27.933-93.768 66.578h-305.86V401.01H695.17c55.123 0 99.948-44.825 99.948-99.949V190.073c0-55.124-44.825-99.948-99.948-99.948H251.13c-55.124 0-99.948 44.824-99.948 99.948v110.99c0 55.123 44.824 99.948 99.948 99.948h55.536v296.96c0 93.356 75.97 169.327 169.326 169.327h203.192c13.76 38.644 50.428 66.577 93.769 66.577 55.124 0 99.948-44.824 99.948-99.948s-44.907-99.866-100.03-99.866zm0-199.896c18.375 0 33.289 14.914 33.289 33.288s-14.914 33.29-33.289 33.29-33.288-14.915-33.288-33.29 14.914-33.288 33.288-33.288zM217.76 301.063v-110.99c0-18.375 14.914-33.288 33.288-33.288h444.04c18.375 0 33.289 14.913 33.289 33.288v110.99c0 18.374-14.914 33.288-33.289 33.288H251.13c-18.375 0-33.371-14.914-33.371-33.289zM772.87 867.298c-18.374 0-33.288-14.914-33.288-33.289 0-18.374 14.914-33.288 33.288-33.288s33.289 14.914 33.289 33.288c.082 18.293-14.914 33.289-33.289 33.289z" /></symbol><symbol viewBox="0 0 128 128" id="icon-chart"><path d="M0 54.857h36.571V128H0V54.857zM91.429 27.43H128V128H91.429V27.429zM45.714 0h36.572v128H45.714V0z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-checkbox"><path d="M828.406 90.125H195.594c-58.219 0-105.469 47.25-105.469 105.469v632.812c0 58.219 47.25 105.469 105.469 105.469h632.812c58.219 0 105.469-47.25 105.469-105.469V195.594c0-58.219-47.25-105.469-105.469-105.469zm52.735 738.281c0 29.16-23.57 52.735-52.735 52.735H195.594c-29.11 0-52.735-23.575-52.735-52.735V195.594c0-29.11 23.625-52.735 52.735-52.735h632.812c29.16 0 52.735 23.625 52.735 52.735v632.812z" /><path d="M421.529 709.56a36.281 36.281 0 0 1-27.553-12.67L205.175 476.614a36.285 36.285 0 0 1 55.1-47.229L425.264 621.87l342.161-298.48a36.29 36.29 0 0 1 47.71 54.687L445.386 700.62a36.323 36.323 0 0 1-23.857 8.94z" /></symbol><symbol viewBox="0 0 128 128" id="icon-clipboard"><path d="M54.857 118.857h64V73.143H89.143c-1.902 0-3.52-.668-4.855-2.002-1.335-1.335-2.002-2.954-2.002-4.855V36.57H54.857v82.286zM73.143 16v-4.571a2.2 2.2 0 0 0-.677-1.61 2.198 2.198 0 0 0-1.609-.676H20.571c-.621 0-1.158.225-1.609.676a2.198 2.198 0 0 0-.676 1.61V16a2.2 2.2 0 0 0 .676 1.61c.451.45.988.676 1.61.676h50.285c.622 0 1.158-.226 1.61-.677.45-.45.676-.987.676-1.609zm18.286 48h21.357L91.43 42.642V64zM128 73.143v48c0 1.902-.667 3.52-2.002 4.855-1.335 1.335-2.953 2.002-4.855 2.002H52.57c-1.901 0-3.52-.667-4.854-2.002-1.335-1.335-2.003-2.953-2.003-4.855v-11.429H6.857c-1.902 0-3.52-.667-4.855-2.002C.667 106.377 0 104.759 0 102.857v-96c0-1.902.667-3.52 2.002-4.855C3.337.667 4.955 0 6.857 0h77.714c1.902 0 3.52.667 4.855 2.002 1.335 1.335 2.003 2.953 2.003 4.855V30.29c1 .622 1.856 1.29 2.569 2.003l29.147 29.147c1.335 1.335 2.478 3.145 3.429 5.43.95 2.287 1.426 4.383 1.426 6.291v-.018z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-code"><path d="M318.578 819.2 17.067 512l301.51-307.2 45.512 45.511L96.71 512 364.09 773.689zm386.844 0-45.51-45.511L927.288 512 659.91 250.311l45.511-45.511L1006.933 512zM540.786 221.867l55.75 11.15-113.379 569.116-55.75-11.093z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-color"><path d="M747.593 691.129c11.514.253 22.438-.211 40.742-1.519 29.354-2.109 35.85-2.362 46.478-.885 24.715 3.374 41.121 21.762 32.475 47.953-85.574 258.2-442.001 249.765-628.67 50.738-153.478-159.34-153.099-414.419.927-573.421 159.72-162.672 424.034-166.594 565.787.633 80.387 94.81 108.35 169.166 89.117 230.574-15.014 47.996-50.61 77.688-119.779 114.634-4.892 2.657-29.354 15.52-35.85 19.02-46.94 25.306-63.516 41.207-62.208 58.456 2.952 39.14 24.166 52.72 70.981 53.817zm44.411 50.104c-19.822 1.434-32.053 1.94-45.634 1.645-70.349-1.603-115.983-30.915-121.381-101.643-3.459-46.056 24.757-73.133 89.243-107.97 6.79-3.67 31.38-16.575 36.06-19.063 57.697-30.83 85.153-53.732 94.77-84.478 12.779-40.784-9.11-98.945-79.249-181.651-121.17-142.976-350.142-139.602-489.238 2.067-134.498 138.842-134.793 362.12-.421 501.637C434.692 920.775 728.15 932.964 810.73 739.968c-4.681.295-10.712.675-18.726 1.265z" /><path d="M346.039 637.186a78.826 78.826 0 0 0 78.32-79.29c0-43.694-35.006-79.29-78.32-79.29a78.826 78.826 0 0 0-78.363 79.29c0 43.694 35.006 79.29 78.363 79.29zm0-51.75a27.077 27.077 0 0 1-26.571-27.54c0-15.31 11.978-27.541 26.57-27.541 14.551 0 26.571 12.23 26.571 27.54a27.077 27.077 0 0 1-26.57 27.541zm129.69 221.676a78.826 78.826 0 0 0 78.362-79.29c0-43.695-34.963-79.29-78.32-79.29a78.826 78.826 0 0 0-78.32 79.29c0 43.693 34.963 79.29 78.32 79.29zm0-51.75a27.077 27.077 0 0 1-26.57-27.54c0-15.31 12.061-27.541 26.57-27.541 14.593 0 26.57 12.23 26.57 27.54a27.077 27.077 0 0 1-26.57 27.541zm125.515-378.147a78.826 78.826 0 0 0 78.32-79.29c0-43.694-34.964-79.29-78.32-79.29a78.826 78.826 0 0 0-78.32 79.29c0 43.694 34.963 79.29 78.32 79.29zm0-51.75a27.077 27.077 0 0 1-26.57-27.54c0-15.31 11.977-27.541 26.57-27.541 14.55 0 26.57 12.23 26.57 27.54a27.077 27.077 0 0 1-26.57 27.541zM378.809 433.857a78.826 78.826 0 0 0 78.32-79.29c0-43.694-34.963-79.29-78.32-79.29a78.826 78.826 0 0 0-78.32 79.29c0 43.694 34.964 79.29 78.32 79.29zm0-51.75a27.077 27.077 0 0 1-26.57-27.54c0-15.31 11.977-27.541 26.57-27.541 14.55 0 26.57 12.23 26.57 27.54a27.077 27.077 0 0 1-26.57 27.541z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-component"><path d="M826.56 470.016c-32.896 0-64.384 12.288-89.984 35.52v-104.96c0-62.208-50.496-112.832-112.64-113.088v-.448l-104.384.064c22.272-24.384 35.008-56.384 35.008-89.984 0-73.536-59.904-133.44-133.504-133.44-73.472 0-133.376 59.904-133.376 133.44 0 32.896 12.224 64.256 35.52 89.984H175.232v.576C113.728 288.704 64 338.88 64 400.576h.32l.32 116.48c-3.776 27.84 5.952 60.672 36.16 71.424 12.736 4.608 37.632 7.488 60.864-25.28 12.992-18.368 34.24-29.248 56.64-29.248 38.336 0 69.504 31.104 69.504 69.312 0 38.4-31.168 69.504-69.504 69.504-22.656 0-44.032-11.264-57.344-30.4-22.272-32.256-48.384-27.008-58.496-23.232-29.824 10.752-39.104 43.776-38.144 67.392v160.384H64C64 909.248 114.752 960 177.216 960h446.272c62.4 0 113.152-50.752 113.152-113.152V701.824c24.384 22.272 56.384 35.008 89.984 35.008 73.536 0 133.44-59.904 133.44-133.504C960 529.92 900.096 470.016 826.56 470.016zm0 202.88c-22.72 0-44.032-11.264-57.344-30.4-22.272-32.384-48.448-27.136-58.56-23.36-29.824 10.752-39.04 43.776-38.08 67.392v160.384c0 27.136-22.016 49.152-49.152 49.152H177.216C150.08 896 128 873.984 128 846.848h.32V701.824c24.384 22.272 56.384 35.008 89.984 35.008 73.6 0 133.504-59.904 133.504-133.504 0-73.472-59.904-133.376-133.504-133.376-32.896 0-64.32 12.288-89.984 35.52v-104.96H128c0-27.072 22.08-49.152 49.216-49.152v-.32l157.44-.32c3.776.512 7.616.832 11.52.832 24.896 0 50.752-10.816 60.032-37.056 4.544-12.736 7.424-37.568-25.344-60.736-18.24-12.992-29.184-34.24-29.184-56.64 0-38.272 31.104-69.44 69.376-69.44 38.336 0 69.504 31.168 69.504 69.44 0 22.72-11.264 44.032-30.528 57.472-32.064 22.144-26.944 48.192-23.232 58.432 10.752 29.888 43.072 39.232 67.392 38.08h119.232v.384c27.136 0 49.152 22.08 49.152 49.152l.256 116.48c-3.776 27.84 6.016 60.736 36.224 71.488 12.736 4.608 37.632 7.488 60.8-25.28 13.056-18.368 34.24-29.248 56.704-29.248 38.272-.064 69.44 31.04 69.44 69.312 0 38.336-31.168 69.504-69.44 69.504z" /></symbol><symbol viewBox="0 0 128 100" id="icon-dashboard"><path d="M27.429 63.638c0-2.508-.893-4.65-2.679-6.424-1.786-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.465 2.662-1.785 1.774-2.678 3.916-2.678 6.424 0 2.508.893 4.65 2.678 6.424 1.786 1.775 3.94 2.662 6.465 2.662 2.524 0 4.678-.887 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zm13.714-31.801c0-2.508-.893-4.65-2.679-6.424-1.785-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zM71.714 65.98l7.215-27.116c.285-1.23.107-2.378-.536-3.443-.643-1.064-1.56-1.762-2.75-2.094-1.19-.33-2.333-.177-3.429.462-1.095.639-1.81 1.573-2.143 2.804l-7.214 27.116c-2.857.237-5.405 1.266-7.643 3.088-2.238 1.822-3.738 4.152-4.5 6.992-.952 3.644-.476 7.098 1.429 10.364 1.905 3.265 4.69 5.37 8.357 6.317 3.667.947 7.143.474 10.429-1.42 3.285-1.892 5.404-4.66 6.357-8.305.762-2.84.619-5.607-.429-8.305-1.047-2.697-2.762-4.85-5.143-6.46zm47.143-2.342c0-2.508-.893-4.65-2.678-6.424-1.786-1.775-3.94-2.662-6.465-2.662-2.524 0-4.678.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.786 1.775 3.94 2.662 6.464 2.662 2.524 0 4.679-.887 6.465-2.662 1.785-1.775 2.678-3.916 2.678-6.424zm-45.714-45.43c0-2.509-.893-4.65-2.679-6.425C68.68 10.01 66.524 9.122 64 9.122c-2.524 0-4.679.887-6.464 2.661-1.786 1.775-2.679 3.916-2.679 6.425 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zm32 13.629c0-2.508-.893-4.65-2.679-6.424-1.785-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zM128 63.638c0 12.351-3.357 23.78-10.071 34.286-.905 1.372-2.19 2.058-3.858 2.058H13.93c-1.667 0-2.953-.686-3.858-2.058C3.357 87.465 0 76.037 0 63.638c0-8.613 1.69-16.847 5.071-24.703C8.452 31.08 13 24.312 18.714 18.634c5.715-5.68 12.524-10.199 20.429-13.559C47.048 1.715 55.333.035 64 .035c8.667 0 16.952 1.68 24.857 5.04 7.905 3.36 14.714 7.88 20.429 13.559 5.714 5.678 10.262 12.446 13.643 20.301 3.38 7.856 5.071 16.09 5.071 24.703z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-date-range"><path d="M887.467 192.853H786.773v-73.386c0-10.24-6.826-17.067-17.066-17.067s-17.067 6.827-17.067 17.067v73.386H303.787v-73.386c0-10.24-6.827-17.067-17.067-17.067s-17.067 6.827-17.067 17.067v73.386H168.96c-46.08 0-85.333 37.547-85.333 85.334v558.08c0 46.08 37.546 85.333 85.333 85.333h718.507c46.08 0 85.333-37.547 85.333-85.333v-558.08c0-47.787-37.547-85.334-85.333-85.334zM168.96 226.987h100.693v66.56c0 10.24 6.827 17.066 17.067 17.066s17.067-6.826 17.067-17.066v-66.56h450.56v66.56c0 10.24 6.826 17.066 17.066 17.066s17.067-6.826 17.067-17.066v-66.56h98.987c27.306 0 51.2 22.186 51.2 51.2v88.746H117.76v-88.746c0-29.014 22.187-51.2 51.2-51.2zm718.507 660.48H168.96c-27.307 0-51.2-22.187-51.2-51.2v-435.2h820.907v435.2c0 27.306-22.187 51.2-51.2 51.2z" /><path d="M858.453 493.227H327.68c-10.24 0-17.067 6.826-17.067 17.066V624.64H194.56c-10.24 0-17.067 6.827-17.067 17.067v133.12c0 10.24 6.827 17.066 17.067 17.066H460.8c10.24 0 17.067-6.826 17.067-17.066V660.48h380.586c10.24 0 17.067-6.827 17.067-17.067v-133.12c0-10.24-6.827-17.066-17.067-17.066zM445.44 527.36v97.28h-98.987v-97.28h98.987zm-230.4 131.413h98.987v98.987H215.04v-98.987zm131.413 97.28v-97.28h98.987v97.28h-98.987zm133.12-228.693h97.28v98.987h-97.28V527.36zm131.414 0h98.986v98.987h-98.986V527.36zm230.4 97.28H742.4v-98.987h98.987v98.987z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-date"><path d="M479.857 608.429h64.286c19.286 0 32.143-12.858 32.143-32.143s-12.857-32.143-32.143-32.143h-64.286c-19.286 0-32.143 12.857-32.143 32.143s12.857 32.143 32.143 32.143zm0 122.142h64.286c19.286 0 32.143-12.857 32.143-32.142s-12.857-32.143-32.143-32.143h-64.286c-19.286 0-32.143 12.857-32.143 32.143s12.857 32.142 32.143 32.142zM833.43 171.286H704.857v-32.143C704.857 119.857 692 107 672.714 107s-32.143 12.857-32.143 32.143v32.143H383.43v-32.143c0-19.286-12.858-32.143-32.143-32.143s-32.143 12.857-32.143 32.143v32.143H190.57C119.857 171.286 62 229.143 62 293.429v501.428C62 865.571 119.857 923.43 190.571 917H833.43C904.143 917 962 859.143 962 794.857V293.43c0-70.715-57.857-122.143-128.571-122.143zm64.285 623.571c0 32.143-32.143 64.286-64.285 64.286H190.57c-32.142 0-64.285-25.714-64.285-64.286V422h771.428v372.857zm0-437.143H126.286V293.43c0-32.143 32.143-64.286 64.285-64.286h128.572v32.143c0 19.285 12.857 32.143 32.143 32.143s32.143-12.858 32.143-32.143v-32.143H640.57v32.143c0 19.285 12.858 32.143 32.143 32.143s32.143-12.858 32.143-32.143v-32.143H833.43c32.142 0 64.285 25.714 64.285 64.286v64.285zM287 730.571h64.286c19.285 0 32.143-12.857 32.143-32.142s-12.858-32.143-32.143-32.143H287c-19.286 0-32.143 12.857-32.143 32.143S267.714 730.57 287 730.57zM672.714 608.43H737c19.286 0 32.143-12.858 32.143-32.143S756.286 544.143 737 544.143h-64.286c-19.285 0-32.143 12.857-32.143 32.143s12.858 32.143 32.143 32.143zm-385.714 0h64.286c19.285 0 32.143-12.858 32.143-32.143s-12.858-32.143-32.143-32.143H287c-19.286 0-32.143 12.857-32.143 32.143s12.857 32.143 32.143 32.143zM672.714 730.57H737c19.286 0 32.143-12.857 32.143-32.142S756.286 666.286 737 666.286h-64.286c-19.285 0-32.143 12.857-32.143 32.143s12.858 32.142 32.143 32.142z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-dict"><path d="m1002.085 744.672-33.568 10.368c.96 7.264 2.144 14.304 2.144 21.76 0 7.328-1.184 14.432-2.368 21.568l33.792 10.56c7.936 2.24 14.496 7.616 18.336 14.752 3.84 7.328 4.672 15.808 1.952 23.552-5.376 16-23.168 24.672-39.936 19.68l-34.176-10.624c-7.136 12.8-15.776 24.672-26.208 35.2l20.8 27.488a28.96 28.96 0 0 1 5.824 22.816 29.696 29.696 0 0 1-12.704 19.616 32.544 32.544 0 0 1-44.416-6.752l-20.8-27.552c-13.696 6.56-28.192 11.2-43.008 13.888v33.632c0 16.736-14.112 30.432-31.648 30.432-17.6 0-31.872-13.696-31.872-30.432v-33.632a167.616 167.616 0 0 1-42.88-13.888l-20.928 27.552c-10.72 13.76-30.08 16.64-44.288 6.752a29.632 29.632 0 0 1-12.704-19.616 29.28 29.28 0 0 1 5.696-22.816l20.896-27.808a166.72 166.72 0 0 1-27.008-34.688l-33.376 10.432c-16.8 5.184-34.56-3.552-39.936-19.616a29.824 29.824 0 0 1 20.224-38.24l33.472-10.432c-.8-7.264-2.016-14.304-2.016-21.824 0-7.36 1.184-14.496 2.304-21.632L589.893 744.8c-16.672-5.376-25.632-22.496-20.224-38.432 5.376-16 23.136-24.672 39.936-19.68l34.016 10.752c7.328-12.672 15.84-24.8 26.336-35.328l-20.8-27.552a29.44 29.44 0 0 1 6.944-42.432 32.704 32.704 0 0 1 44.384 6.752l20.832 27.616c13.696-6.432 28.224-11.2 43.104-13.952v-33.568c0-16.736 14.048-30.432 31.648-30.432 17.536 0 31.808 13.568 31.808 30.432v33.504c15.072 2.688 29.344 7.808 42.848 14.016l20.992-27.616a32.48 32.48 0 0 1 44.224-6.752 29.568 29.568 0 0 1 7.136 42.432l-21.024 27.808c10.432 10.432 19.872 21.888 27.04 34.752l33.376-10.432c16.768-5.12 34.56 3.68 39.936 19.68 5.536 15.936-3.712 33.056-20.32 38.304zM796.069 670.24c-61.344 0-111.136 47.808-111.136 106.56 0 58.88 49.792 106.496 111.136 106.496 61.312 0 111.104-47.616 111.104-106.496 0-58.752-49.792-106.56-111.104-106.56z" /><path d="M802.789 57.152H726.34c0-22.08-21.024-38.24-42.848-38.24H39.397A39.68 39.68 0 0 0 .037 58.944V854.56s41.888 120.192 110.752 120.192h562.496a227.488 227.488 0 0 1-107.04-97.44H117.637s-40.608-13.696-40.608-41.248l470.304-.256 1.664 3.36a227.68 227.68 0 0 1-12.64-73.632c0-60.576 24-118.624 66.88-161.44a228.352 228.352 0 0 1 123.552-63.392l-3.2.288 2.144-424.672h38.208l.576 421.024c27.04 0 52.672 4.8 76.64 13.344V101.536c.032 0-6.304-44.384-38.368-44.384zM149.765 514.336H72.389v-77.408h77.376v77.408zm0-144.32H72.389v-77.44h77.376v77.44zm0-137.248H72.389v-77.44h77.376v77.44zM651.62 514.336H206.085v-77.408H651.62v77.408zm0-144.32H206.085v-77.44H651.62v77.44zm0-137.248H206.085v-77.44H651.62v77.44z" /></symbol><symbol viewBox="0 0 128 128" id="icon-documentation"><path d="M71.984 44.815H115.9L71.984 9.642v35.173zM16.094.05h63.875l47.906 38.37v76.74c0 3.392-1.682 6.645-4.677 9.044-2.995 2.399-7.056 3.746-11.292 3.746H16.094c-4.236 0-8.297-1.347-11.292-3.746-2.995-2.399-4.677-5.652-4.677-9.044V12.84C.125 5.742 7.23.05 16.094.05zm71.86 102.32V89.58h-71.86v12.79h71.86zm23.952-25.58V64H16.094v12.79h95.812z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-download"><path d="M768.355 416a256 256 0 1 0-512 0 192 192 0 1 0 0 384v64a256 256 0 0 1-58.88-505.216 320.128 320.128 0 0 1 629.76 0A256.128 256.128 0 0 1 768.355 864v-64a192 192 0 0 0 0-384zm-512 384h64v64h-64v-64zm448 0h64v64h-64v-64z" fill="#333" /><path d="M539.043 845.248V512.192a32.448 32.448 0 0 0-32-32.192c-17.664 0-32 14.912-32 32.192v333.056l-36.096-36.096a32.192 32.192 0 0 0-45.056.192 31.616 31.616 0 0 0-.192 45.056l90.88 90.944a31.36 31.36 0 0 0 22.528 9.088 30.08 30.08 0 0 0 22.4-9.088l90.88-90.88a32.192 32.192 0 0 0-.192-45.12 31.616 31.616 0 0 0-45.056-.192l-36.096 36.096z" fill="#333" /></symbol><symbol viewBox="0 0 128 128" id="icon-drag"><path d="M73.137 29.08h-9.209 29.7L63.886.093 34.373 29.08h20.49v27.035H27.238v17.948h27.625v27.133h18.274V74.063h27.41V56.115h-27.41V29.08zm-9.245 98.827 27.518-26.711H36.59l27.302 26.71zM.042 64.982l27.196 27.029V38.167L.042 64.982zm100.505-26.815V92.01l27.41-27.029-27.41-26.815z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-druid"><path d="M832 128H192a64.19 64.19 0 0 0-64 64v640a64.19 64.19 0 0 0 64 64h640a64.19 64.19 0 0 0 64-64V192a64.19 64.19 0 0 0-64-64zm0 703.89-.11.11H192.11l-.11-.11V768h640zM832 544H720L605.6 696.54 442.18 435.07 333.25 544H192v-64h114.75l147.07-147.07L610.4 583.46 688 480h144zm0-288H192v-63.89l.11-.11h639.78l.11.11z" /></symbol><symbol viewBox="0 0 128 128" id="icon-edit"><path d="M106.133 67.2a4.797 4.797 0 0 0-4.8 4.8c0 .187.014.36.027.533h-.027V118.4H9.6V26.667h50.133c2.654 0 4.8-2.147 4.8-4.8 0-2.654-2.146-4.8-4.8-4.8H9.6a9.594 9.594 0 0 0-9.6 9.6V118.4c0 5.307 4.293 9.6 9.6 9.6h91.733c5.307 0 9.6-4.293 9.6-9.6V72.533h-.026c.013-.173.026-.346.026-.533 0-2.653-2.146-4.8-4.8-4.8z" /><path d="M125.16 13.373 114.587 2.8c-3.747-3.747-9.854-3.72-13.6.027l-52.96 52.96a4.264 4.264 0 0 0-.907 1.36L33.813 88.533c-.746 1.76-.226 3.534.907 4.68 1.133 1.147 2.92 1.667 4.693.92l31.4-13.293c.507-.213.96-.52 1.36-.907l52.96-52.96c3.747-3.746 3.774-9.853.027-13.6zM66.107 72.4l-18.32 7.76 7.76-18.32L92.72 24.667l10.56 10.56L66.107 72.4zm52.226-52.227-8.266 8.267-10.56-10.56 8.266-8.267.027-.026 10.56 10.56-.027.026z" /></symbol><symbol viewBox="0 0 128 128" id="icon-education"><path d="M88.883 119.565c-7.284 0-19.434 2.495-21.333 8.25v.127c-4.232.13-5.222 0-7.108 0-1.895-5.76-14.045-8.256-21.333-8.256H0V0h42.523c9.179 0 17.109 5.47 21.47 13.551C68.352 5.475 76.295 0 85.478 0H128v119.57l-39.113-.005h-.004zM60.442 24.763c0-9.651-8.978-16.507-17.777-16.507H7.108V111.43H39.11c7.054-.14 18.177.082 21.333 6.12v-4.628c-.134-5.722-.004-13.522 0-13.832V27.413l.004-2.655-.004.005zm60.442-16.517h-35.55c-8.802 0-17.78 6.856-17.78 16.493v74.259c.004.32.138 8.115 0 13.813v4.627c3.155-6.022 14.279-6.26 21.333-6.114h32V8.25l-.003-.005z" /></symbol><symbol viewBox="0 0 128 96" id="icon-email"><path d="M64.125 56.975 120.188.912A12.476 12.476 0 0 0 115.5 0h-103c-1.588 0-3.113.3-4.513.838l56.138 56.137z" /><path d="m64.125 68.287-62.3-62.3A12.42 12.42 0 0 0 0 12.5v71C0 90.4 5.6 96 12.5 96h103c6.9 0 12.5-5.6 12.5-12.5v-71a12.47 12.47 0 0 0-1.737-6.35L64.125 68.287z" /></symbol><symbol viewBox="0 0 128 128" id="icon-example"><path d="M96.258 57.462h31.421C124.794 27.323 100.426 2.956 70.287.07v31.422a32.856 32.856 0 0 1 25.971 25.97zm-38.796-25.97V.07C27.323 2.956 2.956 27.323.07 57.462h31.422a32.856 32.856 0 0 1 25.97-25.97zm12.825 64.766v31.421c30.46-2.885 54.507-27.253 57.713-57.712H96.579c-2.886 13.466-13.146 23.726-26.292 26.291zM31.492 70.287H.07c2.886 30.46 27.253 54.507 57.713 57.713V96.579c-13.466-2.886-23.726-13.146-26.291-26.292z" /></symbol><symbol viewBox="0 0 128 128" id="icon-excel"><path d="M78.208 16.576v8.384h38.72v5.376h-38.72v8.704h38.72v5.376h-38.72v8.576h38.72v5.376h-38.72v8.576h38.72v5.376h-38.72v8.576h38.72v5.376h-38.72v8.512h38.72v5.376h-38.72v11.136H128v-94.72H78.208zM0 114.368 72.128 128V0L0 13.632v100.736z" /><path d="M28.672 82.56h-11.2l14.784-23.488-14.08-22.592h11.52l8.192 14.976 8.448-14.976h11.136l-14.08 22.208L58.368 82.56H46.656l-8.768-15.68z" /></symbol><symbol viewBox="0 0 128 128" id="icon-exit-fullscreen"><path d="m49.217 41.329-.136-35.24c-.06-2.715-2.302-4.345-5.022-4.405h-3.65c-2.712-.06-4.866 2.303-4.806 5.016l.152 19.164-24.151-23.79a6.698 6.698 0 0 0-9.499 0 6.76 6.76 0 0 0 0 9.526l23.93 23.713-18.345.074c-2.712-.069-5.228 1.813-5.64 5.02v3.462c.069 2.721 2.31 4.97 5.022 5.03l35.028-.207c.052.005.087.025.133.025l2.457.054a4.626 4.626 0 0 0 3.436-1.38c.88-.874 1.205-2.096 1.169-3.462l-.262-2.465c0-.048.182-.081.182-.136h.002zm52.523 51.212 18.32-.073c2.713.06 5.224-1.609 5.64-4.815v-3.462c-.068-2.722-2.317-4.97-5.021-5.04l-34.58.21c-.053 0-.086-.021-.138-.021l-2.451-.06a4.64 4.64 0 0 0-3.445 1.381c-.885.868-1.201 2.094-1.174 3.46l.27 2.46c.005.06-.177.095-.177.141l.141 34.697c.069 2.713 2.31 4.338 5.022 4.397l3.45.006c2.705.062 4.867-2.31 4.8-5.026l-.153-18.752 24.151 23.946a6.69 6.69 0 0 0 9.494 0 6.747 6.747 0 0 0 0-9.523L101.74 92.54v.001zM48.125 80.662a4.636 4.636 0 0 0-3.437-1.382l-2.457.06c-.05 0-.082.022-.137.022l-35.025-.21c-2.712.07-4.957 2.318-5.022 5.04v3.462c.409 3.206 2.925 4.874 5.633 4.814l18.554.06-24.132 23.928c-2.62 2.626-2.62 6.89 0 9.524a6.694 6.694 0 0 0 9.496 0l24.155-23.79-.155 18.866c-.06 2.722 2.094 5.093 4.801 5.025h3.65c2.72-.069 4.962-1.685 5.022-4.406l.141-34.956c0-.05-.182-.082-.182-.136l.262-2.46c.03-1.366-.286-2.592-1.166-3.46h-.001zM80.08 47.397a4.62 4.62 0 0 0 3.443 1.374l2.45-.054c.055 0 .088-.02.143-.028l35.08.21c2.712-.062 4.953-2.312 5.021-5.033l.009-3.463c-.417-3.211-2.937-5.084-5.64-5.025l-18.615-.073 23.917-23.715c2.63-2.623 2.63-6.879.008-9.513a6.691 6.691 0 0 0-9.494 0L92.251 26.016l.155-19.312c.065-2.713-2.097-5.085-4.802-5.025h-3.45c-2.713.069-4.954 1.693-5.022 4.406l-.139 35.247c0 .054.18.088.18.136l-.267 2.465c-.028 1.366.288 2.588 1.174 3.463v.001z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-eye-open"><path d="M512 128q69.675 0 135.51 21.163t115.498 54.997 93.483 74.837 73.685 82.006 51.67 74.837 32.17 54.827L1024 512q-2.347 4.992-6.315 13.483T998.87 560.17t-31.658 51.669-44.331 59.99-56.832 64.34-69.504 60.16-82.347 51.5-94.848 34.687T512 896q-69.675 0-135.51-21.163t-115.498-54.826-93.483-74.326-73.685-81.493-51.67-74.496-32.17-54.997L0 513.707q2.347-4.992 6.315-13.483t18.816-34.816 31.658-51.84 44.331-60.33 56.832-64.683 69.504-60.331 82.347-51.84 94.848-34.816T512 128.085zm0 85.333q-46.677 0-91.648 12.331t-81.152 31.83-70.656 47.146-59.648 54.485-48.853 57.686-37.675 52.821-26.325 43.99q12.33 21.674 26.325 43.52t37.675 52.351 48.853 57.003 59.648 53.845T339.2 767.02t81.152 31.488T512 810.667t91.648-12.331 81.152-31.659 70.656-46.848 59.648-54.186 48.853-57.344 37.675-52.651T927.957 512q-12.33-21.675-26.325-43.648t-37.675-52.65-48.853-57.345-59.648-54.186-70.656-46.848-81.152-31.659T512 213.334zm0 128q70.656 0 120.661 50.006T682.667 512 632.66 632.661 512 682.667 391.339 632.66 341.333 512t50.006-120.661T512 341.333zm0 85.334q-35.328 0-60.33 25.002T426.666 512t25.002 60.33T512 597.334t60.33-25.002T597.334 512t-25.002-60.33T512 426.666z" /></symbol><symbol viewBox="0 0 128 64" id="icon-eye"><path d="M127.072 7.994c1.37-2.208.914-5.152-.914-6.87-2.056-1.717-4.797-1.226-6.396.982-.229.245-25.586 32.382-55.74 32.382-29.24 0-55.74-32.382-55.968-32.627-1.6-1.963-4.57-2.208-6.397-.49C-.17 3.086-.399 6.275 1.2 8.238c.457.736 5.94 7.36 14.62 14.72L4.17 35.96c-1.828 1.963-1.6 5.152.228 6.87.457.98 1.6 1.471 2.742 1.471s2.284-.49 3.198-1.472l12.564-13.983c5.94 4.416 13.021 8.587 20.788 11.53l-4.797 17.418c-.685 2.699.686 5.397 3.198 6.133h1.37c2.057 0 3.884-1.472 4.341-3.68L52.6 42.83c3.655.736 7.538 1.227 11.422 1.227 3.883 0 7.767-.49 11.422-1.227l4.797 17.173c.457 2.208 2.513 3.68 4.34 3.68.457 0 .914 0 1.143-.246 2.513-.736 3.883-3.434 3.198-6.133l-4.797-17.172c7.767-2.944 14.848-7.114 20.788-11.53l12.336 13.738c.913.981 2.056 1.472 3.198 1.472s2.284-.49 3.198-1.472c1.828-1.963 1.828-4.906.228-6.87l-11.65-13.001c9.366-7.36 14.849-14.474 14.849-14.474z" /></symbol><symbol viewBox="0 0 128 128" id="icon-form"><path d="M84.068 23.784c-1.02 0-1.877-.32-2.572-.96a8.588 8.588 0 0 1-1.738-2.237 11.524 11.524 0 0 1-1.042-2.621c-.232-.895-.348-1.641-.348-2.238V0h.278c.834 0 1.622.085 2.363.256.742.17 1.645.575 2.711 1.214 1.066.64 2.363 1.535 3.892 2.686 1.53 1.15 3.453 2.664 5.77 4.54 2.502 2.045 4.494 3.771 5.977 5.178 1.483 1.406 2.618 2.6 3.406 3.58.787.98 1.274 1.812 1.46 2.494.185.682.277 1.278.277 1.79v2.046H84.068zM127.3 84.01c.278.682.464 1.535.556 2.558.093 1.023-.37 2.003-1.39 2.94-.463.427-.88.832-1.25 1.215-.372.384-.696.704-.974.96a6.69 6.69 0 0 1-.973.767l-11.816-10.741a44.331 44.331 0 0 0 1.877-1.535 31.028 31.028 0 0 1 1.737-1.406c1.112-.938 2.317-1.343 3.615-1.215 1.297.128 2.363.405 3.197.83.927.427 1.923 1.173 2.989 2.239 1.065 1.065 1.876 2.195 2.432 3.388zM78.23 95.902c2.038 0 3.752-.511 5.143-1.534l-26.969 25.83H18.037c-1.761 0-3.684-.47-5.77-1.407a24.549 24.549 0 0 1-5.838-3.709 21.373 21.373 0 0 1-4.518-5.306c-1.204-2.003-1.807-4.07-1.807-6.202V16.495c0-1.79.44-3.665 1.32-5.626A18.41 18.41 0 0 1 5.04 5.562a21.798 21.798 0 0 1 5.213-3.964C12.198.533 14.237 0 16.37 0h53.24v15.984c0 1.62.278 3.367.834 5.242a16.704 16.704 0 0 0 2.572 5.179c1.159 1.577 2.665 2.898 4.518 3.964 1.853 1.066 4.078 1.598 6.673 1.598h20.295v42.325L85.458 92.45c1.02-1.364 1.529-2.856 1.529-4.476 0-2.216-.857-4.113-2.572-5.69-1.714-1.577-3.776-2.366-6.186-2.366H26.1c-2.409 0-4.448.789-6.116 2.366-1.668 1.577-2.502 3.474-2.502 5.69 0 2.217.834 4.092 2.502 5.626 1.668 1.535 3.707 2.302 6.117 2.302h52.13zM26.1 47.951c-2.41 0-4.449.789-6.117 2.366-1.668 1.577-2.502 3.473-2.502 5.69 0 2.216.834 4.092 2.502 5.626 1.668 1.534 3.707 2.302 6.117 2.302h52.13c2.409 0 4.47-.768 6.185-2.302 1.715-1.534 2.572-3.41 2.572-5.626 0-2.217-.857-4.113-2.572-5.69-1.714-1.577-3.776-2.366-6.186-2.366H26.1zm52.407 64.063 1.807-1.663 3.476-3.196a479.75 479.75 0 0 0 4.587-4.284 500.757 500.757 0 0 1 5.004-4.667c3.985-3.666 8.48-7.758 13.485-12.276l11.677 10.741-13.485 12.404-5.004 4.603-4.587 4.22a179.46 179.46 0 0 0-3.267 3.068c-.88.853-1.367 1.322-1.46 1.407-.463.341-.973.703-1.529 1.087-.556.383-1.112.703-1.668.959-.556.256-1.413.575-2.572.959a83.5 83.5 0 0 1-3.545 1.087 72.2 72.2 0 0 1-3.475.895c-1.112.256-1.946.426-2.502.511-1.112.17-1.854.043-2.224-.383-.371-.426-.464-1.151-.278-2.174.092-.511.278-1.279.556-2.302.278-1.023.602-2.067.973-3.132l1.042-3.005c.325-.938.58-1.577.765-1.918a10.157 10.157 0 0 1 2.224-2.941z" /></symbol><symbol viewBox="0 0 128 128" id="icon-fullscreen"><path d="M38.47 52 52 38.462l-23.648-23.67L43.209 0H.035L0 43.137l14.757-14.865L38.47 52zm74.773 47.726L89.526 76 76 89.536l23.648 23.672L84.795 128h43.174L128 84.863l-14.757 14.863zM89.538 52l23.668-23.648L128 43.207V.038L84.866 0 99.73 14.76 76 38.472 89.538 52zM38.46 76 14.792 99.651 0 84.794v43.173l43.137.033-14.865-14.757L52 89.53 38.46 76z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-github"><path d="M511.543 14.057C228.914 13.943 0 242.743 0 525.143 0 748.457 143.2 938.286 342.629 1008c26.857 6.743 22.742-12.343 22.742-25.371v-88.572C210.286 912.23 204 809.6 193.6 792.457c-21.029-35.886-70.743-45.028-55.886-62.171 35.315-18.172 71.315 4.571 113.029 66.171 30.171 44.686 89.028 37.143 118.857 29.714 6.514-26.857 20.457-50.857 39.657-69.485C248.571 727.886 181.6 629.829 181.6 513.257c0-56.571 18.629-108.571 55.2-150.514-23.314-69.143 2.171-128.343 5.6-137.143 66.4-5.943 135.429 47.543 140.8 51.771C420.914 267.2 464 261.83 512.229 261.83c48.457 0 91.657 5.6 129.714 15.885 12.914-9.828 76.914-55.771 138.628-50.171 3.315 8.8 28.229 66.628 6.286 134.857 37.029 42.057 55.886 94.514 55.886 151.2 0 116.8-67.429 214.971-228.572 243.314a145.714 145.714 0 0 1 43.543 104v128.572c.915 10.285 0 20.457 17.143 20.457 202.4-68.229 348.114-259.429 348.114-484.686 0-282.514-229.028-511.2-511.428-511.2z" /></symbol><symbol viewBox="0 0 128 128" id="icon-guide"><path d="m1.482 70.131 36.204 16.18 69.932-65.485-61.38 70.594 46.435 18.735c1.119.425 2.397-.17 2.797-1.363v-.085L127.998.047 1.322 65.874c-1.12.597-1.519 1.959-1.04 3.151.32.511.72.937 1.2 1.107zm44.676 57.821L64.22 107.26l-18.062-7.834v28.527z" /></symbol><symbol viewBox="0 0 128 128" id="icon-icon"><path d="M115.147.062a13 13 0 0 1 4.94.945c1.55.63 2.907 1.526 4.069 2.688a13.148 13.148 0 0 1 2.761 4.069c.678 1.55 1.017 3.245 1.017 5.086v102.3c0 3.681-1.187 6.733-3.56 9.155-2.373 2.422-5.352 3.633-8.937 3.633H12.992c-3.875 0-7-1.26-9.373-3.779-2.373-2.518-3.56-5.667-3.56-9.445V12.704c0-3.39 1.163-6.345 3.488-8.863C5.872 1.32 8.972.062 12.847.062h102.3zM81.434 109.047c1.744 0 3.003-.412 3.778-1.235.775-.824 1.163-1.914 1.163-3.27 0-1.26-.388-2.325-1.163-3.197-.775-.872-2.034-1.307-3.778-1.307H72.57c.097-.194.145-.485.145-.872V27.09h9.01c1.743 0 2.954-.436 3.633-1.308.678-.872 1.017-1.938 1.017-3.197 0-1.26-.34-2.325-1.017-3.197-.679-.872-1.89-1.308-3.633-1.308H46.268c-1.743 0-2.954.436-3.632 1.308-.678.872-1.018 1.938-1.018 3.197 0 1.26.34 2.325 1.018 3.197.678.872 1.889 1.308 3.632 1.308h8.138v72.075c0 .193.024.339.073.436.048.096.072.242.072.436H46.56c-1.744 0-3.003.435-3.778 1.307-.775.872-1.163 1.938-1.163 3.197 0 1.356.388 2.446 1.163 3.27.775.823 2.034 1.235 3.778 1.235h34.875z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-input"><path d="M896 224H128c-35.2 0-64 28.8-64 64v448c0 35.2 28.8 64 64 64h768c35.2 0 64-28.8 64-64V288c0-35.2-28.8-64-64-64zm0 480c0 19.2-12.8 32-32 32H160c-19.2 0-32-12.8-32-32V320c0-19.2 12.8-32 32-32h704c19.2 0 32 12.8 32 32v384z" /><path d="M224 352c-19.2 0-32 12.8-32 32v256c0 16 12.8 32 32 32s32-12.8 32-32V384c0-16-12.8-32-32-32z" /></symbol><symbol viewBox="0 0 128 128" id="icon-international"><path d="M83.287 103.01c-1.57-3.84-6.778-10.414-15.447-19.548-2.327-2.444-2.182-4.306-1.338-9.862v-.64c.553-3.81 1.513-6.05 14.313-8.087 6.516-1.018 8.203 1.57 10.589 5.178l.785 1.193a12.625 12.625 0 0 0 6.43 5.207c1.134.524 2.53 1.164 4.421 2.24 4.596 2.53 4.596 5.41 4.596 11.753v.727a26.91 26.91 0 0 1-5.178 17.454 59.055 59.055 0 0 1-19.025 11.026c3.49-6.546.814-14.313 0-16.553l-.146-.087zM64 5.12a58.502 58.502 0 0 1 25.484 5.818 54.313 54.313 0 0 0-12.859 10.327c-.93 1.28-1.716 2.473-2.472 3.579-2.444 3.694-3.637 5.352-5.818 5.614a25.105 25.105 0 0 1-4.219 0c-4.276-.29-10.094-.64-11.956 4.422-1.193 3.23-1.396 11.956 2.444 16.495.66 1.077.778 2.4.32 3.578a7.01 7.01 0 0 1-2.066 3.229 18.938 18.938 0 0 1-2.909-2.91 18.91 18.91 0 0 0-8.32-6.603c-1.25-.349-2.647-.64-3.985-.93-3.782-.786-8.03-1.688-9.019-3.812a14.895 14.895 0 0 1-.727-5.818 21.935 21.935 0 0 0-1.396-9.25 8.873 8.873 0 0 0-5.557-4.946A58.705 58.705 0 0 1 64 5.12zM0 64c0 35.346 28.654 64 64 64 35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-job"><path d="M934.912 1016.832H192c-14.336 0-25.6-11.264-25.6-25.6v-189.44c0-14.336 11.264-25.6 25.6-25.6s25.6 11.264 25.6 25.6v163.84h691.712V64H217.6v148.48c0 14.336-11.264 25.6-25.6 25.6s-25.6-11.264-25.6-25.6V38.4c0-14.336 11.264-25.6 25.6-25.6h742.912c14.336 0 25.6 11.264 25.6 25.6v952.832c0 14.336-11.264 25.6-25.6 25.6z" /><path d="M232.96 371.2H115.2c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h117.76c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6zm0 168.96H115.2c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h117.76c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6zm0 158.72H115.2c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h117.76c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6zm341.504 64c-134.144 0-243.2-109.056-243.2-243.2s109.056-243.2 243.2-243.2 243.2 109.056 243.2 243.2-109.056 243.2-243.2 243.2zm0-435.2c-105.984 0-192 86.016-192 192s86.016 192 192 192 192-86.016 192-192-86.016-192-192-192z" /><path d="M663.04 545.28H576c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h87.04c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6z" /><path d="M576 545.28c-14.336 0-25.6-11.264-25.6-25.6v-87.04c0-14.336 11.264-25.6 25.6-25.6s25.6 11.264 25.6 25.6v87.04c0 14.336-11.264 25.6-25.6 25.6z" /></symbol><symbol viewBox="0 0 128 128" id="icon-language"><path d="M84.742 36.8c2.398 7.2 5.595 12.8 11.19 18.4 4.795-4.8 7.992-11.2 10.39-18.4h-21.58zm-52.748 40h20.78l-10.39-28-10.39 28z" /><path d="M111.916 0H16.009C7.218 0 .025 7.2.025 16v96c0 8.8 7.193 16 15.984 16h95.907c8.791 0 15.984-7.2 15.984-16V16c0-8.8-6.394-16-15.984-16zM72.754 103.2c-1.598 1.6-3.197 1.6-4.795 1.6-.8 0-2.398 0-3.197-.8-.8-.8-1.599 0-1.599-.8s-.799-1.6-1.598-3.2c-.8-1.6-.8-2.4-1.599-4l-3.196-8.8H28.797L25.6 96c-1.598 3.2-2.398 5.6-3.197 7.2-.8 1.6-2.398 1.6-4.795 1.6-1.599 0-3.197-.8-4.796-1.6-1.598-1.6-2.397-2.4-2.397-4 0-.8 0-1.6.799-3.2.8-1.6.8-2.4 1.598-4l17.583-44.8c.8-1.6.8-3.2 1.599-4.8.799-1.6 1.598-3.2 2.397-4 .8-.8 1.599-2.4 3.197-3.2 1.599-.8 3.197-.8 4.796-.8 1.598 0 3.196 0 4.795.8 1.598.8 2.398 1.6 3.197 3.2.799.8 1.598 2.4 2.397 4 .8 1.6 1.599 3.2 2.398 5.6l17.583 44c1.598 3.2 2.398 5.6 2.398 7.2-.8.8-1.599 2.4-2.398 4zM116.711 72c-8.791-3.2-15.185-7.2-20.78-12-5.594 5.6-12.787 9.6-21.579 12l-2.397-4c8.791-2.4 15.984-5.6 21.579-11.2C87.939 51.2 83.144 44 81.545 36h-7.992v-3.2h21.58c-1.6-2.4-3.198-5.6-4.796-8l2.397-.8c1.599 2.4 3.997 5.6 5.595 8.8h19.98v4h-7.992c-2.397 8-6.393 15.2-11.189 20 5.595 4.8 11.988 8.8 20.78 11.2l-3.197 4z" /></symbol><symbol viewBox="0 0 128 128" id="icon-link"><path d="M115.625 127.937H.063V12.375h57.781v12.374H12.438v90.813h90.813V70.156h12.374z" /><path d="m116.426 2.821 8.753 8.753-56.734 56.734-8.753-8.745z" /><path d="M127.893 37.982h-12.375V12.375H88.706V0h39.187z" /></symbol><symbol viewBox="0 0 128 128" id="icon-list"><path d="M1.585 12.087c0 6.616 3.974 11.98 8.877 11.98 4.902 0 8.877-5.364 8.877-11.98 0-6.616-3.975-11.98-8.877-11.98-4.903 0-8.877 5.364-8.877 11.98zM125.86.107H35.613c-1.268 0-2.114 1.426-2.114 2.852v18.255c0 1.712 1.057 2.853 2.114 2.853h90.247c1.268 0 2.114-1.426 2.114-2.853V2.96c0-1.711-1.057-2.852-2.114-2.852zM.106 62.86c0 6.615 3.974 11.979 8.876 11.979 4.903 0 8.877-5.364 8.877-11.98 0-6.616-3.974-11.98-8.877-11.98-4.902 0-8.876 5.364-8.876 11.98zM124.17 50.88H33.921c-1.268 0-2.114 1.425-2.114 2.851v18.256c0 1.711 1.057 2.852 2.114 2.852h90.247c1.268 0 2.114-1.426 2.114-2.852V53.73c0-1.426-.846-2.852-2.114-2.852zM.106 115.913c0 6.616 3.974 11.98 8.876 11.98 4.903 0 8.877-5.364 8.877-11.98 0-6.616-3.974-11.98-8.877-11.98-4.902 0-8.876 5.364-8.876 11.98zm124.064-11.98H33.921c-1.268 0-2.114 1.426-2.114 2.853v18.255c0 1.711 1.057 2.852 2.114 2.852h90.247c1.268 0 2.114-1.426 2.114-2.852v-18.255c0-1.427-.846-2.853-2.114-2.853z" /></symbol><symbol viewBox="0 0 128 128" id="icon-lock"><path d="M119.88 49.674h-7.987V39.52C111.893 17.738 90.45.08 63.996.08 37.543.08 16.1 17.738 16.1 39.52v10.154H8.113c-4.408 0-7.987 2.94-7.987 6.577v65.13c0 3.637 3.57 6.577 7.987 6.577H119.88c4.407 0 7.987-2.94 7.987-6.577v-65.13c-.008-3.636-3.58-6.577-7.987-6.577zm-23.953 0H32.065V39.52c0-14.524 14.301-26.295 31.931-26.295 17.63 0 31.932 11.777 31.932 26.295v10.153z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-log"><path d="M208.736 566.336H64.384v59.328h144.352v-59.328zm0-336.096H165.44V74.592c0-7.968 4.896-14.848 10.464-14.848H677.92V.448H175.936c-38.72 1.248-69.248 34.368-68.192 74.144V230.24h-43.36v59.36h144.352v-59.36zm0 168.096H64.384v59.328h144.352v-59.328zm714.656 76.576h-57.76v474.496c0 7.936-4.896 14.848-10.464 14.848H175.936c-5.568 0-10.464-6.912-10.464-14.848v-155.68h43.296v-59.296H64.384v59.296h43.328v155.68c-1.024 39.776 29.472 72.896 68.192 74.144h679.232c38.72-1.184 69.248-34.368 68.256-74.144V474.912zm14.944-290.336-83.072-85.312a71.264 71.264 0 0 0-52.544-21.728 71.52 71.52 0 0 0-51.616 23.872L386.528 507.264a30.496 30.496 0 0 0-6.176 10.72L308.16 740.512a30.016 30.016 0 0 0 6.976 30.24c7.712 7.968 19.2 10.752 29.568 7.2l216.544-74.112a28.736 28.736 0 0 0 12.128-7.936l367.072-408.448a75.552 75.552 0 0 0-2.112-102.88zm-557.12 518.272 39.104-120.64 78.336 80.416-117.44 40.224zm170.048-70.016L447.712 526.816l200.16-222.4 103.52 106.304-200.128 222.112zm346.688-385.76-.256.224L790.56 366.464 687.04 259.936l106.432-118.624a14.144 14.144 0 0 1 10.304-4.736 13.44 13.44 0 0 1 10.464 4.288l83.264 85.696c5.472 5.6 5.664 14.72.448 20.512z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-logininfor"><path d="M896 128h-85.333a42.667 42.667 0 0 0 0 85.333h42.666v640H170.667v-640h42.666a42.667 42.667 0 0 0 0-85.333H128a42.667 42.667 0 0 0-42.667 42.667V896A42.667 42.667 0 0 0 128 938.667h768A42.667 42.667 0 0 0 938.667 896V170.667A42.667 42.667 0 0 0 896 128z" /><path d="M341.333 298.667A42.667 42.667 0 0 0 384 256V128a42.667 42.667 0 0 0-85.333 0v128a42.667 42.667 0 0 0 42.666 42.667zm170.667 0A42.667 42.667 0 0 0 554.667 256V128a42.667 42.667 0 0 0-85.334 0v128A42.667 42.667 0 0 0 512 298.667zm170.667 0A42.667 42.667 0 0 0 725.333 256V128A42.667 42.667 0 0 0 640 128v128a42.667 42.667 0 0 0 42.667 42.667zM341.333 768A42.667 42.667 0 0 0 384 725.333a128 128 0 0 1 256 0 42.667 42.667 0 0 0 85.333 0 213.333 213.333 0 0 0-107.52-184.32A128 128 0 0 0 640 469.333a128 128 0 0 0-256 0 128 128 0 0 0 22.187 71.68 213.333 213.333 0 0 0-107.52 184.32A42.667 42.667 0 0 0 341.333 768zm128-298.667A42.667 42.667 0 1 1 512 512a42.667 42.667 0 0 1-42.667-42.667z" /></symbol><symbol viewBox="0 0 128 128" id="icon-message"><path d="M0 20.967v59.59c0 11.59 8.537 20.966 19.075 20.966h28.613l1 26.477L76.8 101.523h32.125c10.538 0 19.075-9.377 19.075-20.966v-59.59C128 9.377 119.463 0 108.925 0h-89.85C8.538 0 0 9.377 0 20.967zm82.325 33.1c0-5.524 4.013-9.935 9.037-9.935 5.026 0 9.038 4.41 9.038 9.934 0 5.524-4.025 9.934-9.038 9.934-5.024 0-9.037-4.41-9.037-9.934zm-27.613 0c0-5.524 4.013-9.935 9.038-9.935s9.037 4.41 9.037 9.934c0 5.524-4.025 9.934-9.037 9.934-5.025 0-9.038-4.41-9.038-9.934zm-27.1 0c0-5.524 4.013-9.935 9.038-9.935s9.038 4.41 9.038 9.934c0 5.524-4.026 9.934-9.05 9.934-5.013 0-9.025-4.41-9.025-9.934z" /></symbol><symbol viewBox="0 0 128 128" id="icon-money"><path d="M54.122 127.892v-28.68H7.513V87.274h46.609v-12.4H7.513v-12.86h38.003L.099 0h22.6l32.556 45.07c3.617 5.144 6.44 9.611 8.487 13.385 1.788-3.05 4.89-7.779 9.301-14.186L103.93 0h24.01L82.385 62.013h38.34v12.862h-46.41v12.4h46.41v11.937h-46.41v28.68H54.123z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-monitor"><defs><style>@font-face{font-family:rbicon;src:url(chrome-extension://dipiagiiohfljcicegpgffpbnjmgjcnf/fonts/rbicon.woff2) format("woff2");font-weight:400;font-style:normal}</style></defs><path d="M64 64v576h832V64H64zM0 0h960v704H0V0z" /><path d="M192 896h576v64H192zm256-256h64v256h-64zM479.232 561.604l309.99-348.33-47.803-42.548-259.567 291.67-177.895-222.387L163.21 438.605l52.224 37.009 91.622-129.28z" /></symbol><symbol viewBox="0 0 128 128" id="icon-nested"><path d="M.002 9.2c0 5.044 3.58 9.133 7.998 9.133 4.417 0 7.997-4.089 7.997-9.133 0-5.043-3.58-9.132-7.997-9.132S.002 4.157.002 9.2zM31.997.066h95.981V18.33H31.997V.066zm0 45.669c0 5.044 3.58 9.132 7.998 9.132 4.417 0 7.997-4.088 7.997-9.132 0-3.263-1.524-6.278-3.998-7.91-2.475-1.63-5.524-1.63-7.998 0-2.475 1.632-4 4.647-4 7.91zM63.992 36.6h63.986v18.265H63.992V36.6zm-31.995 82.2c0 5.043 3.58 9.132 7.998 9.132 4.417 0 7.997-4.089 7.997-9.132 0-5.044-3.58-9.133-7.997-9.133s-7.998 4.089-7.998 9.133zm31.995-9.131h63.986v18.265H63.992V109.67zm0-27.404c0 5.044 3.58 9.133 7.998 9.133 4.417 0 7.997-4.089 7.997-9.133 0-3.263-1.524-6.277-3.998-7.909-2.475-1.631-5.524-1.631-7.998 0-2.475 1.632-4 4.646-4 7.91zm31.995-9.13h31.991V91.4H95.987V73.135z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-number"><path d="M279.273 791.273h512a46.545 46.545 0 0 1 0 93.09h-512a46.545 46.545 0 0 1 0-93.09zm33.838-617.984v478.347H193.722V395.171c0-37.004-.884-59.299-2.653-66.746a24.948 24.948 0 0 0-14.615-16.99c-8.006-3.863-25.786-5.771-53.341-5.771H111.29v-55.855c57.717-12.38 101.562-37.888 131.491-76.52h70.284zm303.71 396.8v81.547H354.163v-68.235c77.778-127.256 124.044-206.01 138.706-236.218 14.662-30.255 22.016-53.854 22.016-70.75 0-13.032-2.234-22.714-6.656-29.137-4.422-6.377-11.171-9.588-20.247-9.588a22.249 22.249 0 0 0-20.201 10.612c-4.469 7.121-6.656 21.178-6.656 42.263v45.522H354.164V318.65c0-26.763 1.397-47.942 4.143-63.348 2.746-15.5 9.542-30.72 20.387-45.661 10.798-14.988 24.902-26.298 42.217-33.978 17.361-7.68 38.167-11.544 62.37-11.544 47.477 0 83.317 11.776 107.707 35.328 24.296 23.552 36.445 53.341 36.445 89.368 0 27.368-6.842 56.32-20.48 86.853-13.731 30.534-54.04 95.325-121.018 194.42H616.82zm270.615-189.394c18.152 6.098 31.65 16.105 40.494 29.976 8.844 13.917 13.312 46.452 13.312 97.652 0 38.028-4.329 67.49-13.033 88.53-8.657 20.945-23.598 36.91-44.87 47.848-21.27 10.938-48.593 16.384-81.873 16.384-37.795 0-67.49-6.33-89.088-19.084-21.55-12.66-35.747-28.253-42.542-46.638-6.796-18.432-10.194-50.362-10.194-95.884v-37.841h119.39v77.73c0 20.667 1.21 33.84 3.723 39.425 2.42 5.585 7.913 8.424 16.337 8.424 9.31 0 15.36-3.537 18.34-10.612 2.932-7.121 4.421-25.6 4.421-55.575v-33.047c0-18.34-2.048-31.744-6.19-40.216a30.72 30.72 0 0 0-18.34-16.71c-8.052-2.653-23.738-4.189-46.964-4.561V357.05c28.393 0 45.894-1.07 52.597-3.258a22.947 22.947 0 0 0 14.475-14.15c2.933-7.307 4.422-18.711 4.422-34.257V278.76c0-16.757-1.722-27.741-5.12-33.048-3.49-5.352-8.844-8.005-16.151-8.005-8.285 0-13.964 2.792-16.99 8.378-3.025 5.632-4.56 17.64-4.56 35.933v39.284h-119.39V280.53c0-45.66 10.473-76.567 31.325-92.625 20.9-16.058 54.086-24.064 99.608-24.064 56.878 0 95.51 11.17 115.805 33.373 20.293 22.249 30.394 53.202 30.394 92.765 0 26.81-3.63 46.173-10.892 58.089-7.307 11.916-20.107 22.807-38.446 32.628z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-online"><path d="M356.246 681.563C288.09 639.613 249 577.722 249 511.757c0-65.966 39.09-127.86 107.246-169.809 12.047-7.415 15.801-23.19 8.386-35.237-7.414-12.046-23.191-15.801-35.236-8.387-39.641 24.4-72.54 56.045-95.138 91.516-23.867 37.46-36.482 79.62-36.482 121.917 0 42.298 12.615 84.455 36.482 121.915 22.599 35.47 55.497 67.115 95.138 91.513a25.489 25.489 0 0 0 13.4 3.805c8.599 0 16.998-4.33 21.836-12.19 7.415-12.048 3.66-27.823-8.386-35.237zm-92.302 73.018C171.34 693.469 118.23 604.957 118.23 511.74c0-93.196 53.094-181.684 145.668-242.775 11.806-7.79 15.06-23.677 7.27-35.483-7.791-11.806-23.678-15.062-35.484-7.27C128.488 296.954 67.007 401.024 67.007 511.74c0 110.737 61.496 214.83 168.721 285.594a25.487 25.487 0 0 0 14.083 4.238c8.317 0 16.476-4.046 21.4-11.507 7.793-11.807 4.538-27.693-7.267-35.484zM788.66 226.213c-11.805-7.791-27.693-4.536-35.484 7.27-7.79 11.806-4.536 27.692 7.27 35.483 92.575 61.092 145.67 149.58 145.67 242.774 0 93.216-53.111 181.728-145.715 242.84-11.806 7.791-15.06 23.68-7.27 35.485 4.926 7.462 13.082 11.507 21.4 11.507 4.842 0 9.74-1.371 14.085-4.238C895.844 726.572 957.34 622.476 957.34 511.74c0-110.714-61.48-214.785-168.68-285.527zm1.43 407.46c23.865-37.46 36.48-79.618 36.48-121.916s-12.615-84.456-36.48-121.917c-22.6-35.471-55.498-67.116-95.14-91.516-12.048-7.413-27.822-3.659-35.237 8.387-7.415 12.046-3.66 27.822 8.386 35.237 68.156 41.95 107.247 103.842 107.247 169.81 0 65.964-39.09 127.855-107.247 169.804-12.046 7.415-15.801 23.19-8.386 35.237 4.838 7.861 13.236 12.191 21.835 12.191 4.58 0 9.216-1.228 13.4-3.805 39.642-24.398 72.541-56.042 95.141-91.513zM567.128 518.274c24.124-17.15 39.888-45.306 39.888-77.071 0-52.129-42.453-94.539-94.635-94.539-52.18 0-94.633 42.41-94.633 94.539 0 31.695 15.696 59.798 39.73 76.958-49.875 21.129-84.916 70.235-84.916 127.302 0 2.367.061 4.762.182 7.119l1.25 24.296h276.373l1.238-24.308c.12-2.36.181-4.75.181-7.107 0-56.967-34.921-105.998-84.658-127.19zm-54.748-120.386c23.937 0 43.412 19.43 43.412 43.315 0 23.883-19.475 43.313-43.412 43.313-23.936 0-43.41-19.43-43.41-43.313 0-23.883 19.474-43.315 43.41-43.315zM426.09 625.657c9.12-38.543 44.255-67.338 86.085-67.338s76.967 28.795 86.086 67.338H426.09z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-password"><path d="M868.593 403.832c-30.081-28.845-70.037-44.753-112.624-44.753h-490.02c-42.554 0-82.51 15.908-112.469 44.691-30.237 28.783-46.857 67.222-46.857 108.198v294.08c0 40.977 16.62 79.415 46.703 108.137C183.285 943.03 223.396 959 265.95 959h490.019c42.586 0 82.696-15.97 112.624-44.815 30.082-28.845 46.58-67.222 46.58-108.137v-294.08c-.001-40.915-16.498-79.29-46.58-108.136zM841.821 806.05c0 22.098-8.882 42.772-25.1 58.307-16.154 15.662-37.819 24.203-60.752 24.203h-490.02c-22.934 0-44.566-8.542-60.877-24.264-16.187-15.475-25.068-36.149-25.068-58.247v-294.08c0-22.036 8.881-42.772 25.193-58.308 16.187-15.537 37.82-24.14 60.754-24.14H755.97c22.933 0 44.598 8.603 60.753 24.14 16.218 15.536 25.1 36.272 25.1 58.308V806.05zM510.974 135.441c114.914 0 208.319 89.752 208.319 200.055h73.35C792.643 186.383 666.277 65 510.974 65c-155.334 0-281.7 121.384-281.7 270.497h73.35c0-110.302 93.436-200.055 208.35-200.055zM474.3 747.245h73.35V629.577H474.3v117.668z" /></symbol><symbol viewBox="0 0 1024 1024" id="icon-pdf"><path d="M869.073 277.307H657.111V65.344l211.962 211.963zm-238.232 26.27V65.344l-476.498-.054v416.957h714.73v-178.67H630.841zm-335.836 360.57c-5.07-3.064-10.944-5.133-17.61-6.201-6.67-1.064-13.603-1.6-20.81-1.6h-48.821v85.641h48.822c7.206 0 14.14-.532 20.81-1.6 6.665-1.065 12.54-3.133 17.609-6.202 5.064-3.063 9.134-7.406 12.208-13.007 3.065-5.602 4.6-12.937 4.6-22.011 0-9.07-1.535-16.408-4.6-22.01-3.074-5.603-7.144-9.94-12.208-13.01zM35.82 541.805v416.904h952.358V541.805H35.821zm331.421 191.179c-3.6 11.071-9.343 20.879-17.209 29.413-7.874 8.542-18.078 15.408-30.617 20.61-12.544 5.206-27.747 7.807-45.621 7.807h-66.036v102.45h-62.831V607.517h128.867c17.874 0 33.077 2.6 45.62 7.802 12.541 5.207 22.745 12.076 30.618 20.615 7.866 8.538 13.604 18.277 17.21 29.212 3.6 10.943 5.401 22.278 5.401 34.018 0 11.477-1.8 22.752-5.402 33.819zM644.9 806.417c-5.343 17.61-13.408 32.818-24.212 45.627-10.807 12.803-24.283 22.879-40.423 30.213-16.146 7.343-35.155 11.007-57.03 11.007h-123.26V607.518h123.26c18.41 0 35.552 2.941 51.428 8.808 15.873 5.869 29.618 14.671 41.22 26.412 11.608 11.744 20.674 26.411 27.217 44.02 6.535 17.61 9.803 38.288 9.803 62.035 0 20.81-2.67 40.02-8.003 57.624zm245.362-146.07h-138.07v66.03h119.66v48.829h-119.66v118.058h-62.83V607.518h200.9v52.829h-.001zm-318.2 25.611c-6.402-8.266-14.877-14.604-25.412-19.01-10.544-4.402-23.551-6.602-39.019-6.602h-44.825v180.088h56.029c9.07 0 17.872-1.463 26.415-4.401 8.535-2.932 16.14-7.802 22.812-14.609 6.665-6.8 12.007-15.667 16.007-26.61 4.003-10.94 6.003-24.275 6.003-40.021 0-14.408-1.4-27.416-4.202-39.019-2.8-11.607-7.406-21.542-13.808-29.816zm0 0" /></symbol><symbol viewBox="0 0 128 128" id="icon-people"><path d="M104.185 95.254c8.161 7.574 13.145 17.441 13.145 28.28 0 1.508-.098 2.998-.285 4.466h-10.784c.238-1.465.403-2.948.403-4.465 0-8.983-4.36-17.115-11.419-23.216C86 104.66 75.355 107.162 64 107.162c-11.344 0-21.98-2.495-31.22-6.83-7.064 6.099-11.444 14.218-11.444 23.203 0 1.517.165 3 .403 4.465H10.955a35.444 35.444 0 0 1-.285-4.465c0-10.838 4.974-20.713 13.127-28.291C9.294 85.42.003 70.417.003 53.58.003 23.99 28.656.001 64 .001s63.997 23.988 63.997 53.58c0 16.842-9.299 31.85-23.812 41.673zM64 36.867c-29.454 0-53.33-10.077-53.33 15.342 0 25.418 23.876 46.023 53.33 46.023 29.454 0 53.33-20.605 53.33-46.023 0-25.419-23.876-15.342-53.33-15.342zm24.888 25.644c-3.927 0-7.111-2.665-7.111-5.953 0-3.288 3.184-5.954 7.11-5.954 3.928 0 7.111 2.666 7.111 5.954s-3.183 5.953-7.11 5.953zm-3.556 16.372c0 4.11-9.55 7.442-21.332 7.442-11.781 0-21.332-3.332-21.332-7.442 0-1.06.656-2.064 1.8-2.976 3.295 2.626 10.79 4.465 19.532 4.465 8.743 0 16.237-1.84 19.531-4.465 1.145.912 1.801 1.916 1.801 2.976zm-46.22-16.372c-3.927 0-7.11-2.665-7.11-5.953 0-3.288 3.183-5.954 7.11-5.954 3.927 0 7.111 2.666 7.111 5.954s-3.184 5.953-7.11 5.953z" /></symbol><symbol viewBox="0 0 128 128" id="icon-peoples"><path d="M95.648 118.762c0 5.035-3.563 9.121-7.979 9.121H7.98c-4.416 0-7.979-4.086-7.979-9.121C0 100.519 15.408 83.47 31.152 76.75c-9.099-6.43-15.216-17.863-15.216-30.987v-9.128c0-20.16 14.293-36.518 31.893-36.518s31.894 16.358 31.894 36.518v9.122c0 13.137-6.123 24.556-15.216 30.993 15.738 6.726 31.141 23.769 31.141 42.012z" /><path d="M106.032 118.252h15.867c3.376 0 6.101-3.125 6.101-6.972 0-13.957-11.787-26.984-23.819-32.123 6.955-4.919 11.638-13.66 11.638-23.704v-6.985c0-15.416-10.928-27.926-24.39-27.926-1.674 0-3.306.193-4.89.561 1.936 4.713 3.018 9.974 3.018 15.526v9.121c0 13.137-3.056 23.111-11.066 30.993 14.842 4.41 27.312 23.42 27.541 41.509z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-phone"><path d="M761.503 2.906H242.122c-32.405 0-58.932 26.06-58.932 58.528v902.302c0 32.157 26.217 58.217 58.932 58.217h519.381c32.345 0 58.591-26.06 58.591-58.217V61.123c0-32.156-26.246-58.217-58.591-58.217M452.879 61.123h98.147c6.78 0 12.316 5.536 12.316 12.253 0 6.749-5.535 12.253-12.316 12.253H452.88c-6.78 0-12.345-5.504-12.345-12.253-.001-6.717 5.566-12.253 12.345-12.253m48.763 919.47c-29.637 0-53.988-23.946-53.988-53.677 0-29.357 24.04-53.614 53.988-53.614 29.917 0 53.987 23.884 53.987 53.614 0 29.731-24.069 53.677-53.987 53.677m264.715-177.45c0 16.234-13.187 29.108-29.234 29.108H266.504c-16.357 0-29.326-13.186-29.326-29.108V163.5c0-16.233 13.28-29.139 29.326-29.139H736.75c16.421 0 29.358 13.185 29.358 29.139v639.642h.249zm0 0" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-post"><path d="M136.4 434.3h77.7c21.5 0 38.9-17.4 38.9-38.9s-17.4-38.9-38.9-38.9h-77.7c-21.5 0-38.9 17.4-38.9 38.9s17.4 38.9 38.9 38.9zm116.5 194.3c0-21.5-17.4-38.9-38.9-38.9h-77.7c-21.5 0-38.9 17.4-38.9 38.9s17.4 38.9 38.9 38.9H214c21.5-.1 38.9-17.5 38.9-38.9z" /><path d="M874.7 97.5H227c-28.6 0-51.8 23.2-51.8 51.8v194.3h38.9c28.6 0 51.8 23.2 51.8 51.8 0 28.6-23.2 51.8-51.8 51.8h-38.9v129.5h38.9c28.6 0 51.8 23.2 51.8 51.8 0 28.6-23.2 51.8-51.8 51.8h-38.9v194.3c0 28.6 23.2 51.8 51.8 51.8h647.7c28.6 0 51.8-23.2 51.8-51.8V149.3c0-28.6-23.2-51.8-51.8-51.8zm-311.3 723c-15.6 0-146.7-71.6-146.7-91 0-19.4 102-368.6 102-368.6l-83.6-104s-12.3-23.1 24.6-23.1h208.9c36.9 0 18.4 23.1 18.4 23.1l-79 104s102 351.3 102 368.6c.1 17.3-131 91-146.6 91zm169.2-253.6-27.9 40.2-74.5-240 103.4 171.7c4.6 7.9 4.2 20.6-1 28.1z" /></symbol><symbol viewBox="0 0 128 128" id="icon-qq"><path d="m18.448 57.545-.244-.744-.198-.968-.132-.53v-2.181l.236-.859.24-.908.317-.953.428-1.06.561-1.103.794-1.104v-.773l.077-.724.123-.984.34-1.106.313-1.194.25-.548.289-.511.371-.569.405-.423v-2.73l.234-1.407.236-1.633.42-1.955.577-2.035.43-1.118.426-1.217.468-1.135.559-1.216.57-1.332.655-1.247.737-1.331.929-1.33.43-.762.457-.624.995-1.406 1.025-1.403 1.163-1.444 1.246-1.405 1.352-1.384 1.41-1.423 1.708-1.536 1.083-.934 1.322-1.008 1.34-.89 1.448-.855 1.392-.76 1.57-.63 1.667-.775 1.657-.532 1.653-.552 1.787-.548 1.785-.417 1.876-.347L59.128.68l1.879-.245 1.876-.252 2.002-.106h5.912l1.97.243 1.981.231 2.019.207 1.874.441 1.979.413 1.857.475 2.035.53 1.862.646 1.782.738 1.904.78 1.736.853 1.689.95 1.655 1.044 1.425.971.662.548.693.401 1.323 1.1 1.115 1.064 1.112 1.1 1.083 1.214.894 1.178 1.064 1.217.74 1.306.752 1.162.798 1.352.661 1.175 1.113 2.489.546 1.286.428 1.192.428 1.294.384 1.217.267 1.047.347 1.231.607 2.198.388 1.924.253 1.861.217 1.497.342 2.28.077.362.274.41.737 1.18.473.8.42.832.534.892.472 1.07.307 1.093.334 1.2.252 1.232.115.605.106.746v.648l-.106.643v.8l-.192.774-.35 1.5-.403.76-.299.852v.213l.142.264.4.623 1.746 2.53 1.377 1.9.66 1.267.889 1.389.774 1.52.893 1.627.894 1.828 1.006 2.069.567 1.268.518 1.239.447 1.307.44 1.175.336 1.235.342 1.16.432 2.261.343 2.31.235 2.05v2.891l-.158 1.025-.226 1.768-.308 1.59-.48 1.44-.18.588-.336.707-.28.493-.375.607-.33.383-.42.494-.375.4-.401.34-.48.207-.432.207-.355.114h-.543l-.346-.114-.66-.32-.302-.212-.317-.223-.347-.304-.35-.342-.579-.63-.684-.89-.539-.917-.538-.734-.526-.855-.741-1.517-.833-1.579-.098-.055h-.138l-.338.247-.196.415-.326.516-.567 1.533-.856 2.182-1.096 2.626-.824 1.308-.864 1.366-1.027 1.536-1.09 1.503-.557.68-.676.743-1.555 1.497.136.135.21.214.777.446 3.235 1.524 1.41.779 1.347.756 1.332.953 1.187.982.574.443.432.511.445.593.367.643.198.533.242.64.105.554.115.647-.115.433v.44l-.105.454-.242.415-.092.325-.22.394-.587.784-.543.627-.42.47-.35.348-.893.638-1.01.556-1.077.532-1.155.511-1.287.495-.693.207-.608.167-1.496.342-1.545.325-1.552.323-1.689.27-1.74.072-1.785.21h-5.539l-1.998-.114-1.86-.168-2.005-.27-1.99-.209-2.095-.286-2.03-.495-1.981-.374-1.968-.552-2.019-.707-1.98-.585-1.044-.342-.927-.323-.586-.223-.582-.12h-1.647l-1.904-.131-.962-.096-1.24-.135-.795.705-1.085.665-1.471.701-1.628.875-.99.475-1.033.376-2.281.914-1.24.305-1.3.343-1.803.344-1.13.086-1.193.1-1.246.135-1.45.053h-5.926l-3.346-.053-3.25-.321-1.644-.23-1.589-.23-1.546-.227-1.547-.305-1.442-.456-1.434-.325-1.294-.51-1.223-.474-1.142-.533-.99-.583-.984-.71-.336-.343-.44-.415-.334-.362-.3-.417-.278-.415-.215-.42-.311-.89-.109-.46-.138-.51v-.473l.138-.533v-.53l.109-.53v-1.069l.052-.564.259-.647.215-.646.39-.779.286-.3.236-.348.615-.738.49-.38.464-.266.428-.338.676-.21.543-.324.676-.341.77-.227.775-.231.897-.192.85-.11 1.008-.13 1.093-.081.284-.092h.063l.137-.115v-.13l-.2-.266-.58-.27-1.45-1.231-.975-.761-1.127-.967-1.136-1.082-1.181-1.382-1.36-1.558-.508-.843-.672-.87-.58-1.007-.522-1.1-.704-1.047-.459-1.194-.547-1.192-.546-1.33-.397-1.273-.378-1.575-.112-.057h-.115l-.059-.113h-.14l-.23.113-.114.057-.158.264-.057.321-.119.286-.206.477-.664 1.157-.345.701-.546.612-.58.736-.641.816-.677.724-.795.701-.734.658-.814.524-.89.546-.855.325-1.008.247-.99.095h-.233l-.228-.095-.18-.384-.29-.188-.38-.912-.237-.493-.255-.707-.21-.734-.113-.724-.313-1.648-.12-.972v-3.185l.12-2.379.196-1.214.23-1.252.21-1.347.374-1.254.42-1.443.431-1.407.578-1.448.545-1.38.754-1.4.699-1.52.855-1.425 1.006-1.538 1.023-1.382 1.069-1.538.891-1.071 1.142-1.227 1.202-1.237.56-.59.678-.662.985-.836 1.012-.853 1.647-1.446 1.242-.889z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-question"><path d="M512 0C229.234 0 0 229.234 0 512s229.234 512 512 512 512-229.234 512-512A512 512 0 0 0 512 0zm0 938.667C276.366 938.667 85.333 747.634 85.333 512S276.366 85.333 512 85.333 938.667 276.366 938.667 512A426.667 426.667 0 0 1 512 938.667zm0-717.654A170.667 170.667 0 0 0 341.333 391.68a42.667 42.667 0 0 0 85.334 0A85.333 85.333 0 1 1 512 477.013a42.667 42.667 0 0 0-42.667 42.667v111.36a42.667 42.667 0 0 0 85.334 0V556.8A170.667 170.667 0 0 0 512 221.013zm-42.667 542.294a42.667 42.667 0 1 0 85.334 0 42.667 42.667 0 0 0-85.334 0z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-radio"><path d="M507.393 71.849c241.536 0 437.398 195.854 437.398 437.374 0 241.538-195.862 437.39-437.398 437.39-241.5 0-437.35-195.852-437.35-437.39 0-241.52 195.849-437.374 437.35-437.374zm0 210.97c-125.006 0-226.37 101.39-226.37 226.418 0 125.013 101.364 226.397 226.37 226.397 125.043 0 226.424-101.384 226.424-226.397 0-125.029-101.38-226.418-226.424-226.418zm0-162.037c-214.466 0-388.42 173.951-388.42 388.44 0 214.512 173.955 388.461 388.42 388.461 214.524 0 388.46-173.948 388.46-388.461 0-214.489-173.936-388.44-388.46-388.44z" /></symbol><symbol class="icon" viewBox="0 0 1069 1024" id="icon-rate"><path d="m633.73 378.02 9.498 18.688 20.78 2.798 206.616 27.332a11.465 11.465 0 0 1 6.61 19.473L729.966 593.665l-14.893 14.893 3.8 20.683 37.847 204.89a11.465 11.465 0 0 1-16.481 12.296l-185.55-94.58-18.687-9.493-18.487 9.992-183.24 99.35a11.465 11.465 0 0 1-16.784-11.867l32.543-205.796 3.297-20.786-15.192-14.492-151.033-143.484a11.465 11.465 0 0 1 6.1-19.64L399 402.998l20.786-3.296 9.092-18.98 89.713-188.078a11.465 11.465 0 0 1 20.569-.263l94.568 185.635zM496.647 85.52 374.89 340.501l-279.126 44.26a34.395 34.395 0 0 0-18.303 58.908l204.873 194.663-44.169 279.115a34.395 34.395 0 0 0 50.366 35.616l248.4-134.679L788.776 946.66a34.395 34.395 0 0 0 49.437-36.894l-51.306-277.854 199.731-199.909a34.395 34.395 0 0 0-19.828-58.408l-280.118-37.032L558.33 84.713a34.395 34.395 0 0 0-61.682.802z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-redis-list"><defs><style>@font-face{font-family:feedback-iconfont;src:url(//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944) format("woff2"),url(//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944) format("woff"),url(//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944) format("truetype")}</style></defs><path d="M958.88 730.06H65.12c-18.28 0-33.12-14.82-33.12-33.12V68.91c0-18.29 14.83-33.12 33.12-33.12h893.77c18.28 0 33.12 14.82 33.12 33.12v628.03c-.01 18.3-14.84 33.12-33.13 33.12zM98.23 663.83h827.53v-561.8H98.23v561.8z" /><path d="M512 954.55c-18.28 0-33.12-14.82-33.12-33.12V733.92c0-18.29 14.83-33.12 33.12-33.12s33.12 14.82 33.12 33.12v187.51c0 18.3-14.84 33.12-33.12 33.12z" /><path d="M762.01 988.21H261.99c-18.28 0-33.12-14.82-33.12-33.12 0-18.29 14.83-33.12 33.12-33.12h500.03c18.28 0 33.12 14.82 33.12 33.12-.01 18.29-14.84 33.12-33.13 33.12zM514.74 578.55c-21.63 0-43.31-3.87-64.21-11.65-45.95-17.13-82.49-51.13-102.86-95.74-5.07-11.08-.19-24.19 10.89-29.26 11.08-5.09 24.19-.18 29.26 10.91 15.5 33.88 43.25 59.7 78.14 72.71 34.93 12.99 72.79 11.64 106.66-3.85 33.22-15.17 58.8-42.26 72.03-76.3 4.42-11.37 17.21-17.01 28.57-12.58 11.36 4.42 16.99 17.22 12.57 28.58-17.42 44.82-51.1 80.5-94.82 100.47-24.34 11.12-50.25 16.71-76.23 16.71z" /><path d="M325.27 528.78c-1.66 0-3.34-.18-5.02-.57-11.88-2.77-19.28-14.63-16.49-26.51l18.84-81c1.34-5.82 5-10.84 10.13-13.92 5.09-3.09 11.3-3.96 17.03-2.41l80.51 21.43c11.79 3.14 18.8 15.23 15.67 27.02-3.15 11.79-15.42 18.75-27.02 15.65l-58.49-15.57-13.69 58.81c-2.37 10.2-11.45 17.07-21.47 17.07zm35.53-177.77c-2.65 0-5.37-.49-8-1.51-11.36-4.41-16.99-17.21-12.59-28.57 17.4-44.79 51.06-80.47 94.8-100.48 92.15-42.06 201.25-1.39 243.31 90.68 5.07 11.08.19 24.19-10.89 29.26-11.13 5.07-24.19.17-29.26-10.91-31.97-69.91-114.9-100.82-184.79-68.86-33.22 15.19-58.8 42.28-71.99 76.29-3.41 8.74-11.75 14.1-20.59 14.1z" /><path d="M684.68 376.74c-1.47 0-2.95-.15-4.42-.44l-81.61-16.68c-11.94-2.45-19.64-14.11-17.21-26.06 2.44-11.96 14.1-19.64 26.04-17.22l59.29 12.12 10.23-59.5c2.05-12 13.52-20.19 25.48-18.01 12.03 2.06 20.09 13.48 18.02 25.5l-14.08 81.96a22.089 22.089 0 0 1-9.29 14.49c-3.7 2.51-8.03 3.84-12.45 3.84z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-redis"><path d="M1023.787 611.84c-.427 9.77-13.355 20.693-39.894 34.56C929.28 674.859 646.144 791.296 585.9 822.699c-60.288 31.402-93.739 31.104-141.355 8.32-47.616-22.742-348.843-144.47-403.115-170.368C14.336 647.68.512 636.757.043 626.432v103.51c0 10.325 14.25 21.29 41.386 34.26 54.272 25.942 355.542 147.627 403.115 170.369 47.616 22.784 81.067 23.082 141.355-8.363 60.245-31.403 343.338-147.797 397.994-176.299 27.776-14.464 40.107-25.728 40.107-35.925V611.925l-.213-.085zm0-168.747c-.512 9.771-13.398 20.651-39.894 34.518C929.28 506.069 646.144 622.507 585.9 653.909c-60.288 31.403-93.739 31.104-141.355 8.363-47.616-22.741-348.843-144.47-403.115-170.41C14.336 478.932.512 467.967.043 457.684v103.51c0 10.325 14.25 21.248 41.386 34.218 54.272 25.942 355.499 147.627 403.115 170.368 47.616 22.784 81.067 23.083 141.355-8.32 60.245-31.402 343.338-147.84 397.994-176.298 27.776-14.507 40.107-25.771 40.107-35.968V443.136l-.256-.043zm0-175.018c.469-10.411-13.142-19.542-40.534-29.611-53.248-19.499-334.634-131.499-388.522-151.253-53.888-19.712-75.819-18.902-139.094 3.84C392.235 113.707 92.63 231.253 39.34 252.075 12.672 262.57-.341 272.256.085 282.58v103.552c0 10.326 14.251 21.248 41.387 34.219 54.272 25.941 355.499 147.67 403.115 170.41 47.616 22.742 81.066 23.04 141.354-8.362 60.246-31.403 343.339-147.84 397.995-176.299 27.776-14.506 40.107-25.77 40.107-35.968V268.075h-.342zm-657.11 98.005 237.27-36.437-71.68 105.088L366.72 366.08zm524.8-94.635-140.33 55.467-15.232 5.973-140.246-55.466 155.392-61.44 140.374 55.466zM479.488 169.771l-22.955-42.326 71.595 27.99 67.499-22.102-18.262 43.734 68.779 25.77-88.704 9.216-19.883 47.787-32.085-53.29-102.4-9.217 76.416-27.562zM302.72 229.504c70.059 0 126.805 21.973 126.805 49.11s-56.746 49.151-126.805 49.151-126.848-22.058-126.848-49.152c0-27.136 56.79-49.152 126.848-49.152z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-row"><path d="M152 854.857h325.715V237.716H134.857v600q0 6.993 5.075 12.068T152 854.857zm737.143-17.142v-600H546.284v617.142H872q6.994 0 12.068-5.074t5.075-12.068zm68.572-651.43v651.43q0 35.383-25.167 60.55T872 923.427H152q-35.383 0-60.548-25.165t-25.168-60.548v-651.43q0-35.383 25.167-60.55T152 100.573h720q35.383 0 60.548 25.165t25.167 60.548z" /></symbol><symbol viewBox="0 0 128 128" id="icon-search"><path d="M124.884 109.812 94.256 79.166c-.357-.357-.757-.629-1.129-.914a50.366 50.366 0 0 0 8.186-27.59C101.327 22.689 78.656 0 50.67 0 22.685 0 0 22.688 0 50.663c0 27.989 22.685 50.663 50.656 50.663 10.186 0 19.643-3.03 27.6-8.201.286.385.557.771.9 1.114l30.628 30.632a10.633 10.633 0 0 0 7.543 3.129c2.728 0 5.457-1.043 7.543-3.115 4.171-4.157 4.171-10.915.014-15.073M50.671 85.338C31.557 85.338 16 69.78 16 50.663c0-19.102 15.557-34.661 34.67-34.661 19.115 0 34.657 15.559 34.657 34.675 0 19.102-15.557 34.661-34.656 34.661" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-select"><path d="M62 511.98C62 263.866 263.907 62 511.98 62s449.98 201.825 449.98 449.98c0 248.195-201.908 449.98-449.98 449.98C263.907 962 62 760.174 62 511.98m839.986 0c0-215.244-175.009-390.416-390.006-390.416-215.04 0-389.966 175.172-389.966 390.416 0 215.284 175.009 390.456 389.966 390.456 215.038.041 390.006-175.131 390.006-390.456m-637.813-81.696c0-5.768 2.127-11.516 6.647-15.873 8.714-8.754 22.89-8.754 31.725 0L511.98 622.64l209.475-208.105c8.754-8.714 22.97-8.714 31.909 0 8.713 8.755 8.713 22.889 0 31.602L511.98 685.741 270.718 446.014c-4.438-4.234-6.545-9.962-6.545-15.73" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-server"><path d="M890 120H134a70 70 0 0 0-70 70v500a70 70 0 0 0 70 70h756a70 70 0 0 0 70-70V190a70 70 0 0 0-70-70zm-10 520a40 40 0 0 1-40 40H712V448a40 40 0 0 0-80 0v232h-80V368a40 40 0 0 0-80 0v312h-80V512a40 40 0 0 0-80 0v168H184a40 40 0 0 1-40-40V240a40 40 0 0 1 40-40h656a40 40 0 0 1 40 40zM696 824H328a40 40 0 0 0 0 80h368a40 40 0 0 0 0-80z" /></symbol><symbol viewBox="0 0 128 128" id="icon-shopping"><path d="M42.913 101.36c1.642 0 3.198.332 4.667.996a12.28 12.28 0 0 1 3.89 2.772c1.123 1.184 1.987 2.582 2.592 4.193.605 1.612.908 3.318.908 5.118 0 1.8-.303 3.507-.908 5.118-.605 1.611-1.469 3.01-2.593 4.194a13.3 13.3 0 0 1-3.889 2.843 10.582 10.582 0 0 1-4.667 1.066c-1.729 0-3.306-.355-4.732-1.066a13.604 13.604 0 0 1-3.825-2.843c-1.123-1.185-1.988-2.583-2.593-4.194a14.437 14.437 0 0 1-.907-5.118c0-1.8.302-3.506.907-5.118.605-1.61 1.47-3.009 2.593-4.193a12.515 12.515 0 0 1 3.825-2.772c1.426-.664 3.003-.996 4.732-.996zm53.932.285c1.643 0 3.22.331 4.733.995a11.386 11.386 0 0 1 3.889 2.772c1.08 1.185 1.945 2.583 2.593 4.194.648 1.61.972 3.317.972 5.118 0 1.8-.324 3.506-.972 5.117-.648 1.611-1.513 3.01-2.593 4.194a12.253 12.253 0 0 1-3.89 2.843 11 11 0 0 1-4.732 1.066 10.58 10.58 0 0 1-4.667-1.066 12.478 12.478 0 0 1-3.824-2.843c-1.08-1.185-1.945-2.583-2.593-4.194a13.581 13.581 0 0 1-.973-5.117c0-1.801.325-3.507.973-5.118.648-1.611 1.512-3.01 2.593-4.194a11.559 11.559 0 0 1 3.824-2.772 11.212 11.212 0 0 1 4.667-.995zm21.781-80.747c2.42 0 4.3.355 5.64 1.066 1.34.71 2.29 1.587 2.852 2.63a6.427 6.427 0 0 1 .778 3.34c-.044 1.185-.195 2.204-.454 3.057-.26.853-.8 2.606-1.62 5.26a589.268 589.268 0 0 1-2.788 8.743 1236.373 1236.373 0 0 0-3.047 9.453c-.994 3.128-1.75 5.592-2.269 7.393-1.123 3.79-2.55 6.42-4.278 7.89-1.728 1.469-3.846 2.203-6.352 2.203H39.023l1.945 12.795h65.342c4.148 0 6.223 1.943 6.223 5.828 0 1.896-.41 3.53-1.232 4.905-.821 1.374-2.442 2.061-4.862 2.061H38.505c-1.729 0-3.176-.426-4.343-1.28-1.167-.852-2.14-1.966-2.917-3.34a21.277 21.277 0 0 1-1.88-4.478 44.128 44.128 0 0 1-1.102-4.55c-.087-.568-.324-1.942-.713-4.122-.39-2.18-.865-4.904-1.426-8.174l-1.88-10.947c-.692-4.027-1.383-8.079-2.075-12.154-1.642-9.572-3.5-20.234-5.574-31.986H6.87c-1.296 0-2.377-.356-3.24-1.067a9.024 9.024 0 0 1-2.14-2.558 10.416 10.416 0 0 1-1.167-3.2C.108 8.53 0 7.488 0 6.54c0-1.896.583-3.46 1.75-4.69C2.917.615 4.494 0 6.482 0h13.095c1.728 0 3.111.284 4.148.853 1.037.569 1.858 1.28 2.463 2.132a8.548 8.548 0 0 1 1.297 2.701c.26.948.475 1.754.648 2.417.173.758.346 1.825.519 3.199.173 1.374.345 2.772.518 4.193.26 1.706.519 3.507.778 5.403h88.678z" /></symbol><symbol viewBox="0 0 128 128" id="icon-size"><path d="M0 54.857h54.796v18.286H36.531V128H18.265V73.143H0V54.857zm127.857-36.571H91.935V128H72.456V18.286H36.534V0h91.326l-.003 18.286z" /></symbol><symbol viewBox="0 0 128 128" id="icon-skill"><path d="M31.652 93.206h33.401c1.44 2.418 3.077 4.663 4.93 6.692h-38.33v-6.692zm0-10.586h28.914a44.8 44.8 0 0 1-1.264-6.688h-27.65v6.688zm0-17.27H59.39c.288-2.286.714-4.532 1.34-6.687H31.65v6.687h.003zm53.913 44.84v5.85c0 2.798-2.095 5.075-4.667 5.075h-70.07c-2.576 0-4.663-2.277-4.663-5.075V31.26l23.22-20.96v22.25H17.16v6.688h18.39V6.688h45.348c2.576 0 4.667 2.277 4.667 5.066v20.009c1.987-.675 4.053-1.128 6.17-1.445v-18.56C91.738 5.28 86.874 0 80.902 0H31.15L0 28.118v87.917c0 6.48 4.859 11.759 10.832 11.759h70.07c5.974 0 10.837-5.27 10.837-11.759v-4.41c-2.117-.312-4.183-.765-6.17-1.435h-.004zM23.279 58.667h-7.96v6.688h7.96v-6.688zm-7.956 41.23h7.96v-6.691h-7.96v6.692zm7.956-23.96h-7.96v6.687h7.96v-6.688zm89.718-15.042-4.896-4.07-12.447 17.613-11.19-9.305-3.762 5.311 16.091 13.38 16.204-22.929zM128 70.978c0-18.632-13.97-33.782-31.147-33.782-17.168 0-31.135 15.155-31.135 33.782 0 18.628 13.97 33.783 31.135 33.783 17.172 0 31.143-15.15 31.143-33.783H128zm-6.17 0c0 14.933-11.203 27.1-24.981 27.1-13.77 0-24.987-12.158-24.987-27.1 0-14.941 11.195-27.099 24.987-27.099 13.778 0 24.982 12.158 24.982 27.1z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-slider"><path d="M951.453 476.844H523.672a131.836 131.836 0 0 0-254.18 0H72.547v70.312h196.945a131.836 131.836 0 0 0 254.18 0h427.781z" /></symbol><symbol viewBox="0 0 128 128" id="icon-star"><path d="m70.66 4.328 14.01 29.693c1.088 2.29 3.177 3.882 5.603 4.25l31.347 4.76c6.087.926 8.528 8.756 4.117 13.247L103.05 79.395c-1.75 1.78-2.544 4.352-2.132 6.867l5.352 32.641c1.043 6.337-5.33 11.182-10.778 8.19l-28.039-15.409a7.13 7.13 0 0 0-6.91 0l-28.039 15.41c-5.448 2.99-11.821-1.854-10.777-8.19l5.352-32.642c.415-2.515-.387-5.088-2.136-6.867L2.264 56.278C-2.146 51.787.286 43.957 6.38 43.031l31.343-4.76c2.419-.368 4.51-1.96 5.595-4.25L57.334 4.328c2.728-5.77 10.605-5.77 13.325 0z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-swagger"><path d="M64 223.995h168.001v47.998c0 26.429 18.879 47.998 41.984 47.998h140.037c23.096 0 41.984-21.57 41.984-47.998v-47.998h504.003a32.005 32.005 0 0 0 0-64.009H455.997v-47.998c0-26.428-18.88-47.997-41.984-47.997H273.985c-23.096 0-41.984 21.569-41.984 47.997v47.998H64a32.005 32.005 0 0 0 0 64.01zM288.005 128h111.997v128H288.005V128zM960 479.995H791.999v-47.997c0-26.373-18.879-47.998-41.984-47.998H609.978c-23.096 0-41.984 21.634-41.984 47.998v47.997H64a32.005 32.005 0 0 0 0 64.01h504.003v47.997c0 26.364 18.88 47.998 41.984 47.998h140.037c23.096 0 41.984-21.634 41.984-47.998v-47.997H960.01a32.005 32.005 0 1 0-.009-64.01zM735.995 576H623.998V448h111.997v128zM960 800.293v-.288H455.997v-47.998c0-26.363-18.88-47.998-41.984-47.998H274.05c-23.105 0-41.984 21.635-41.984 47.998v47.998H64v.288a32.005 32.005 0 0 0 0 64.01c.987 0 1.918-.196 2.886-.289H232v47.998c0 26.363 18.879 47.997 41.984 47.997h140.037c23.096 0 41.984-21.634 41.984-47.997v-47.998h501.108c.968.093 1.9.289 2.895.289a32.005 32.005 0 1 0-.009-64.01zM400.002 896H288.005V768h111.997v128z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-switch"><path d="M692 792H332C182 792 62 672 62 522s120-270 270-270h360c150 0 270 120 270 270 0 147-120 270-270 270zM332 312c-117 0-210 93-210 210s93 210 210 210h360c117 0 210-93 210-210s-93-210-210-210H332z" /><path d="M191 522a150 150 0 1 0 300 0 150 150 0 1 0-300 0Z" /></symbol><symbol class="icon" viewBox="0 0 1084 1024" id="icon-system"><defs><style>@font-face{font-family:rbicon;src:url(chrome-extension://dipiagiiohfljcicegpgffpbnjmgjcnf/fonts/rbicon.woff2) format("woff2");font-weight:400;font-style:normal}</style></defs><path d="M1080.096 434.5c-4.216-23.731-26.924-47.945-50.596-53.185l-17.648-4.096a175.94 175.94 0 0 1-101.613-80.832 177.807 177.807 0 0 1-18.732-129.802l5.541-16.685c7.108-23.13-2.108-54.992-20.6-70.833 0 0-16.624-14.095-63.244-41.2-46.8-26.984-66.858-34.513-66.858-34.513-22.768-8.373-54.632-.362-71.256 17.407l-12.287 13.251a173.47 173.47 0 0 1-120.466 48.066 174.133 174.133 0 0 1-121.008-48.487l-11.745-12.83C393.14 2.992 361.096-4.899 338.268 3.354c0 0-20.359 7.529-67.1 34.513-46.8 27.346-63.244 41.44-63.244 41.44-18.431 15.661-27.647 47.223-20.54 70.593l5.06 16.866a178.048 178.048 0 0 1-18.672 129.62A174.916 174.916 0 0 1 71.496 377.46l-17.045 3.855c-23.31 5.421-46.26 29.334-50.596 53.186 0 0-3.855 21.382-3.855 75.712s3.855 75.713 3.855 75.713C8.07 609.9 30.779 633.872 54.45 639.112l16.624 3.855A174.254 174.254 0 0 1 173.47 724.28c23.31 40.838 28.911 87.338 18.732 129.802l-4.818 16.444c-7.108 23.129 2.108 54.992 20.6 70.833 0 0 16.623 14.095 63.244 41.2 46.8 27.105 66.918 34.513 66.918 34.513 22.708 8.373 54.632.362 71.256-17.407l11.625-12.589a175.097 175.097 0 0 1 242.257.12l11.624 12.65c16.384 17.708 48.428 25.599 71.256 17.347 0 0 20.359-7.53 67.16-34.514 46.74-27.105 63.124-41.2 63.124-41.2 18.491-15.6 27.707-47.463 20.6-70.833l-5.06-17.106A176.723 176.723 0 0 1 910.66 724.4a176.06 176.06 0 0 1 102.396-81.314l16.684-3.855c23.31-5.42 46.26-29.333 50.596-53.185 0 0 3.855-21.383 3.855-75.713-.241-54.33-4.096-75.833-4.096-75.833zm-537.82 293.335c-119.26 0-216.175-97.336-216.175-217.622a216.658 216.658 0 0 1 216.236-217.32c119.2 0 216.115 97.276 216.115 217.561-.24 120.045-96.974 217.32-216.175 217.32z" /></symbol><symbol viewBox="0 0 128 128" id="icon-tab"><path d="M78.921.052H49.08c-1.865 0-3.198 1.599-3.198 3.464v6.661c0 1.865 1.6 3.464 3.198 3.464h29.84c1.865 0 3.198-1.599 3.198-3.464V3.516C82.385 1.65 80.786.052 78.92.052zm45.563 0H94.642c-1.865 0-3.464 1.599-3.464 3.464v6.661c0 1.865 1.599 3.464 3.464 3.464h29.842c1.865-.266 3.464-1.599 3.464-3.464V3.516c0-1.865-1.599-3.464-3.464-3.464zm0 22.382H40.02c-1.866 0-3.464-1.599-3.464-3.464V3.516c0-1.865-1.599-3.464-3.464-3.464H3.516C1.65.052.052 1.651.052 3.516V124.75c0 1.598 1.599 3.197 3.464 3.197h120.968c1.865 0 3.464-1.599 3.464-3.464V25.898c0-1.865-1.599-3.464-3.464-3.464z" /></symbol><symbol viewBox="0 0 128 128" id="icon-table"><path d="M.006.064h127.988v31.104H.006V.064zm0 38.016h38.396v41.472H.006V38.08zm0 48.384h38.396v41.472H.006V86.464zM44.802 38.08h38.396v41.472H44.802V38.08zm0 48.384h38.396v41.472H44.802V86.464zM89.598 38.08h38.396v41.472H89.598zm0 48.384h38.396v41.472H89.598z" /><path d="M.006.064h127.988v31.104H.006V.064zm0 38.016h38.396v41.472H.006V38.08zm0 48.384h38.396v41.472H.006V86.464zM44.802 38.08h38.396v41.472H44.802V38.08zm0 48.384h38.396v41.472H44.802V86.464zM89.598 38.08h38.396v41.472H89.598zm0 48.384h38.396v41.472H89.598z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-textarea"><path d="M896 160H128c-35.2 0-64 28.8-64 64v576c0 35.2 28.8 64 64 64h768c35.2 0 64-28.8 64-64V224c0-35.2-28.8-64-64-64zm0 608c0 16-12.8 32-32 32H160c-19.2 0-32-12.8-32-32V256c0-16 12.8-32 32-32h704c19.2 0 32 12.8 32 32v512z" /><path d="M224 288c-19.2 0-32 12.8-32 32v256c0 16 12.8 32 32 32s32-12.8 32-32V320c0-16-12.8-32-32-32zm608 480c19.2 0 32-12.8 32-32V608L704 768h128z" /></symbol><symbol viewBox="0 0 128 128" id="icon-theme"><path d="M125.5 36.984 95.336 2.83C93.735 1.018 91.565 0 89.3 0c-2.263 0-4.433 1.018-6.033 2.83l-3.786 4.286c-1.6 1.812-3.77 2.83-6.032 2.831H54.553c-2.263 0-4.434-1.018-6.033-2.83L44.734 2.83C43.134 1.018 40.964 0 38.701 0c-2.263 0-4.434 1.018-6.034 2.83L2.5 36.984C.9 38.796 0 41.254 0 43.815c0 2.562.899 5.02 2.5 6.831L14.565 64.31c2.178 2.468 5.367 3.403 8.33 2.444 1.35-.435 2.709.592 2.709 2.18v49.407c0 5.313 3.84 9.66 8.532 9.66h59.726c4.693 0 8.532-4.347 8.532-9.66V68.934c0-1.59 1.36-2.616 2.71-2.181 2.962.96 6.15.024 8.329-2.444L125.5 50.646c1.6-1.811 2.499-4.269 2.499-6.83 0-2.563-.899-5.02-2.5-6.832z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-time-range"><path d="M498.596 482.29H345.42v57.308h210.478V274.197h-57.301V482.29zM577.685 644.985h379.88v57.302h-379.88v-57.302zM577.685 773.765h379.88v57.307h-379.88v-57.307zM577.685 902.55h379.88v57.307h-379.88V902.55zm0 0" /><path d="M102.523 382.29a28.668 28.668 0 0 0 23.367 2.56l190.81-61.886c15.053-4.883 23.298-21.04 18.415-36.09-4.882-15.052-21.04-23.297-36.093-18.415l-123.346 40c15.994-26.117 35.17-50.538 57.37-72.745 73.768-73.767 171.847-114.388 276.169-114.388 104.32 0 202.395 40.622 276.161 114.388S899.77 407.56 899.77 511.882c0 26.428-2.616 52.45-7.71 77.78h58.303c4.465-25.499 6.709-51.47 6.709-77.78 0-60.45-11.846-119.102-35.205-174.336-22.56-53.335-54.85-101.227-95.969-142.35-41.122-41.122-89.017-73.408-142.348-95.968-55.233-23.361-113.89-35.207-174.334-35.207-60.45 0-119.107 11.846-174.337 35.208-53.335 22.56-101.23 54.846-142.35 95.969-23.98 23.98-44.933 50.278-62.727 78.6l-20.738-105.654c-3.043-15.528-18.105-25.642-33.632-22.6-15.528 3.048-25.643 18.105-22.6 33.637l36.103 183.932a28.666 28.666 0 0 0 13.588 19.178zM126.02 587.942H67.768c5.76 33.679 15.368 66.544 28.79 98.278 22.56 53.334 54.85 101.225 95.972 142.348 41.123 41.123 89.014 73.409 142.349 95.969 54.112 22.888 111.518 34.711 170.668 35.182v-57.324c-102.95-.941-199.595-41.446-272.5-114.349-55.501-55.502-92.237-124.77-107.027-200.104zm0 0" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-time"><path d="M520 559h204c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32H488c-17.673 0-32-14.327-32-32 0-.167.001-.334.004-.5a32.65 32.65 0 0 1-.004-.5V277c0-17.673 14.327-32 32-32 17.673 0 32 14.327 32 32v282zm-8 401C264.576 960 64 759.424 64 512S264.576 64 512 64s448 200.576 448 448-200.576 448-448 448zm0-64c212.077 0 384-171.923 384-384S724.077 128 512 128 128 299.923 128 512s171.923 384 384 384z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-tool"><path d="M898.832 900.518H103.817c-36.003 0-65.364-29.286-65.364-65.314v-554.95c0-36.041 29.362-65.326 65.364-65.326h795.016c36.003 0 65.199 29.285 65.199 65.327v554.95c-.001 36.027-29.197 65.313-65.2 65.313zM103.817 255.593c-13.576 0-24.712 11.086-24.712 24.663v554.95c0 13.575 11.137 24.662 24.712 24.662h795.016c13.577 0 24.547-11.087 24.547-24.663v-554.95c0-13.576-10.971-24.662-24.547-24.662H103.817zm560.53-3.819c-11.162 0-20.333-9.08-20.333-20.332V130.164c0-13.577-11.047-24.624-24.7-24.624H383.183c-13.577 0-24.713 11.046-24.713 24.624v101.278a20.278 20.278 0 0 1-20.332 20.332c-11.201 0-20.32-9.08-20.32-20.332V130.164c0-35.99 29.324-65.276 65.365-65.276h236.133c36.067 0 65.402 29.285 65.402 65.276v101.278c0 11.252-9.08 20.332-20.37 20.332zM413.232 521.726H75.694c-11.163 0-20.333-9.118-20.333-20.357 0-11.252 9.17-20.332 20.333-20.332h337.539c11.278 0 20.32 9.08 20.32 20.332 0 11.239-9.042 20.357-20.32 20.357zm499.661 0H575.368c-11.214 0-20.332-9.118-20.332-20.357 0-11.252 9.118-20.332 20.332-20.332h337.526c11.29 0 20.332 9.08 20.332 20.332 0 11.239-9.042 20.357-20.332 20.357zm-355.33 112.492H445.084c-11.213 0-20.332-9.08-20.332-20.331V445.123c0-11.251 9.12-20.332 20.332-20.332h112.48c11.29 0 20.37 9.08 20.37 20.332v168.764c0 11.25-9.082 20.33-20.372 20.33zm-92.146-40.703h71.827v-128.06h-71.827v128.06z" /></symbol><symbol viewBox="0 0 128 128" id="icon-tree-table"><path d="M44.8 0h79.543C126.78 0 128 1.422 128 4.267v23.466c0 2.845-1.219 4.267-3.657 4.267H44.8c-2.438 0-3.657-1.422-3.657-4.267V4.267C41.143 1.422 42.362 0 44.8 0zm22.857 48h56.686c2.438 0 3.657 1.422 3.657 4.267v23.466c0 2.845-1.219 4.267-3.657 4.267H67.657C65.22 80 64 78.578 64 75.733V52.267C64 49.422 65.219 48 67.657 48zm0 48h56.686c2.438 0 3.657 1.422 3.657 4.267v23.466c0 2.845-1.219 4.267-3.657 4.267H67.657C65.22 128 64 126.578 64 123.733v-23.466C64 97.422 65.219 96 67.657 96zM50.286 68.267c2.02 0 3.657-1.91 3.657-4.267 0-2.356-1.638-4.267-3.657-4.267H17.37V32h6.4c2.02 0 3.658-1.91 3.658-4.267V4.267C27.429 1.91 25.79 0 23.77 0H3.657C1.637 0 0 1.91 0 4.267v23.466C0 30.09 1.637 32 3.657 32h6.4v80c0 2.356 1.638 4.267 3.657 4.267h36.572c2.02 0 3.657-1.91 3.657-4.267 0-2.356-1.638-4.267-3.657-4.267H17.37V68.267h32.915z" /></symbol><symbol viewBox="0 0 128 128" id="icon-tree"><path d="M126.713 90.023c.858.985 1.287 2.134 1.287 3.447v29.553c0 1.423-.429 2.6-1.287 3.53-.858.93-1.907 1.395-3.146 1.395H97.824c-1.145 0-2.146-.465-3.004-1.395-.858-.93-1.287-2.107-1.287-3.53V93.47c0-.875.19-1.696.572-2.462.382-.766.906-1.368 1.573-1.806a3.84 3.84 0 0 1 2.146-.657h9.725V69.007a3.84 3.84 0 0 0-.43-1.806 3.569 3.569 0 0 0-1.143-1.313 2.714 2.714 0 0 0-1.573-.492h-36.47v23.149h9.725c1.144 0 2.145.492 3.004 1.478.858.985 1.287 2.134 1.287 3.447v29.553c0 .876-.191 1.696-.573 2.463-.38.766-.905 1.368-1.573 1.806a3.84 3.84 0 0 1-2.145.656H51.915a3.84 3.84 0 0 1-2.145-.656c-.668-.438-1.216-1.04-1.645-1.806a4.96 4.96 0 0 1-.644-2.463V93.47c0-1.313.43-2.462 1.288-3.447.858-.986 1.907-1.478 3.146-1.478h9.582v-23.15h-37.9c-.953 0-1.74.356-2.359 1.068-.62.711-.93 1.56-.93 2.544v19.538h9.726c1.239 0 2.264.492 3.074 1.478.81.985 1.216 2.134 1.216 3.447v29.553c0 1.423-.405 2.6-1.216 3.53-.81.93-1.835 1.395-3.074 1.395H4.29c-.476 0-.93-.082-1.358-.246a4.1 4.1 0 0 1-1.144-.657 4.658 4.658 0 0 1-.93-1.067 5.186 5.186 0 0 1-.643-1.395 5.566 5.566 0 0 1-.215-1.56V93.47c0-.437.048-.875.143-1.313a3.95 3.95 0 0 1 .429-1.15c.19-.328.429-.656.715-.984.286-.329.572-.602.858-.821.286-.22.62-.383 1.001-.493.382-.11.763-.164 1.144-.164h9.726V61.619c0-.985.31-1.833.93-2.544.619-.712 1.358-1.068 2.216-1.068h44.335V39.62h-9.582c-1.24 0-2.288-.492-3.146-1.477a5.09 5.09 0 0 1-1.287-3.448V5.14c0-1.423.429-2.627 1.287-3.612.858-.985 1.907-1.477 3.146-1.477h25.743c.763 0 1.478.246 2.145.739a5.17 5.17 0 0 1 1.573 1.888c.382.766.573 1.587.573 2.462v29.553c0 1.313-.43 2.463-1.287 3.448-.859.985-1.86 1.477-3.004 1.477h-9.725v18.389h42.762c.954 0 1.74.355 2.36 1.067.62.711.93 1.56.93 2.545v26.925h9.582c1.239 0 2.288.492 3.146 1.478z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-upload"><path d="m530.944 458.24 4.8 3.456L657.92 568.512a32 32 0 0 1-37.44 51.584l-4.672-3.392-69.248-60.544v280.704a32 32 0 0 1-26.24 31.488l-5.76.512a32 32 0 0 1-31.424-26.24l-.512-5.76-.064-280.704-69.12 60.48a32 32 0 0 1-40.96.896l-4.16-3.968a32 32 0 0 1-.96-40.96l4.032-4.16 122.176-106.816a32 32 0 0 1 37.312-3.456zM497.92 128c128.128 0 239.168 82.304 275.52 199.04 123.968 11.264 221.312 113.088 221.312 237.44 0 128.128-103.68 232.96-234.88 238.272h-5.888l-35.52.192a32 32 0 0 1-.192-64l35.264-.128 4.672-.064c96.384-3.84 172.544-80.896 172.544-174.272 0-96.128-80.512-174.464-179.584-174.464h-1.984a32 32 0 0 1-32-25.28C695.872 264.96 604.736 192 497.92 192c-116.096 0-212.48 85.76-223.104 196.48a32 32 0 0 1-28.352 28.8c-83.968 9.152-147.84 78.208-147.84 159.552l.192 7.936c3.84 85.76 77.056 154.112 166.592 154.112h45.632a32 32 0 0 1 0 64h-45.632c-123.392.064-225.088-94.848-230.528-216l-.192-9.28c0-106.88 76.352-197.184 179.968-219.904C239.488 226.112 357.76 128 497.856 128z" /></symbol><symbol viewBox="0 0 130 130" id="icon-user"><path d="M63.444 64.996c20.633 0 37.359-14.308 37.359-31.953 0-17.649-16.726-31.952-37.359-31.952-20.631 0-37.36 14.303-37.358 31.952 0 17.645 16.727 31.953 37.359 31.953zM80.57 75.65H49.434c-26.652 0-48.26 18.477-48.26 41.27v2.664c0 9.316 21.608 9.325 48.26 9.325H80.57c26.649 0 48.256-.344 48.256-9.325v-2.663c0-22.794-21.605-41.271-48.256-41.271z" stroke="currentColor" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-validCode"><path d="M513.3 958.5c-142.2 0-397.9-222.1-401.6-440.5V268c1.7-39.6 31.7-72.3 71.1-77.3 49-4.6 97.1-16.5 142.7-35.3 47.8-14 91.9-38.3 129.4-71.1 30.3-24.4 72.9-26.3 105.3-4.6 39.9 30.7 83.8 55.9 130.5 74.6 48.6 14.7 98.2 25.9 148.4 33.7 38.5 7.6 67.1 40.3 69.5 79.5 3.3 84.9 2.5 169.9-2.6 254.7-33.7 281.6-253.7 436.4-392.7 436.3zm-.1-813.7c-7.2-.2-14.3 2-20 6.4-39.7 35.2-86.8 61.1-137.7 75.7-46.8 19.2-96.2 31-146.6 35.2-11 3.2-18.8 13-19.5 24.4v230.1c3.5 180.3 223.3 361 323.9 361s287.3-120.2 317.6-360.5c7.3-142.7 0-228.6 0-229.6-1.3-13.3-11-24.3-24-27.3-49.6-7.7-98.6-19-146.5-33.7-46.3-19.5-89.7-45.3-129-76.7-5.8-3.8-12.7-5.5-19.5-4.9l1.3-.1z" fill="#C6CCDA" /><path d="M750.1 428 490.7 673.2c-11.7 11.1-29.5 12.9-43.1 4.2l-6.8-5.8-141.2-149.4c-9.3-9.3-12.7-22.9-9-35.5 3.8-12.6 14.1-22.1 27-24.8 12.9-2.7 26.1 1.9 34.6 11.9L469 597.5l233.7-221c14.6-12.8 36.8-11.6 49.9 2.7 13.2 14.2 11.5 35.3-2.5 48.8" fill="#C6CCDA" /></symbol><symbol viewBox="0 0 128 110" id="icon-wechat"><path d="M86.635 33.334c1.467 0 2.917.113 4.358.283C87.078 14.392 67.58.111 45.321.111 20.44.111.055 17.987.055 40.687c0 13.104 6.781 23.863 18.115 32.209l-4.527 14.352 15.82-8.364c5.666 1.182 10.207 2.395 15.858 2.395 1.42 0 2.829-.073 4.227-.189-.886-3.19-1.398-6.53-1.398-9.996 0-20.845 16.98-37.76 38.485-37.76zm-24.34-12.936c3.407 0 5.665 2.363 5.665 5.954 0 3.576-2.258 5.97-5.666 5.97-3.392 0-6.795-2.395-6.795-5.97 0-3.591 3.403-5.954 6.795-5.954zM30.616 32.323c-3.393 0-6.818-2.395-6.818-5.971 0-3.591 3.425-5.954 6.818-5.954 3.392 0 5.65 2.363 5.65 5.954 0 3.576-2.258 5.97-5.65 5.97z" /><path d="M127.945 70.52c0-19.075-18.108-34.623-38.448-34.623-21.537 0-38.5 15.548-38.5 34.623 0 19.108 16.963 34.622 38.5 34.622 4.508 0 9.058-1.2 13.584-2.395l12.414 7.167-3.404-11.923c9.087-7.184 15.854-16.712 15.854-27.471zm-50.928-5.97c-2.254 0-4.53-2.362-4.53-4.773 0-2.378 2.276-4.771 4.53-4.771 3.422 0 5.665 2.393 5.665 4.771 0 2.41-2.243 4.773-5.665 4.773zm24.897 0c-2.24 0-4.498-2.362-4.498-4.773 0-2.378 2.258-4.771 4.498-4.771 3.392 0 5.665 2.393 5.665 4.771 0 2.41-2.273 4.773-5.665 4.773z" /></symbol><symbol viewBox="0 0 128 128" id="icon-zip"><path d="M78.527 116.793c.178.008.348.024.527.024h40.233c4.711-.005 8.53-3.677 8.534-8.21V18.895c-.004-4.532-3.823-8.204-8.534-8.209H79.054c-.179 0-.353.016-.527.024V0L0 10.082v107.406l78.527 10.342v-11.037zm0-101.362c.174-.024.348-.052.527-.052h40.233c2.018 0 3.659 1.578 3.659 3.52v89.713c-.003 1.942-1.64 3.517-3.659 3.519H79.054c-.179 0-.353-.028-.527-.052V15.431zM30.262 75.757l-18.721-.46V72.37l11.3-16.673v-.148l-10.266.164v-4.51l17.504-.44v3.264L18.696 70.76v.144l11.566.176v4.678zm9.419.231-5.823-.144V50.671l5.823-.144v25.461zm22.255-11.632c-2.168 1.922-5.353 2.76-9.02 2.736-.702.004-1.402-.04-2.097-.131v9.303l-5.997-.148V50.743c1.852-.352 4.473-.647 8.218-.743 3.838-.096 6.608.539 8.48 1.913 1.807 1.306 3.032 3.5 3.032 6.112s-.926 4.833-2.612 6.331h-.004zM53.36 54.45c-.856-.01-1.71.083-2.541.275v7.682c.523.116 1.167.152 2.06.152 3.301-.004 5.36-1.614 5.36-4.314 0-2.425-1.772-3.843-4.875-3.791l-.004-.004zm39.847-37.066h9.564v3.795h-9.564v-3.795zm-9.568 5.68h9.564v3.8h-9.564v-3.8zm9.568 6.216h9.564v3.799h-9.564V29.28zm0 12h9.564v3.794h-9.564V41.28zm-9.568-6.096h9.564v3.795h-9.564v-3.795zm9.472 47.064c2.512 0 4.921-.96 6.697-2.67 1.776-1.708 2.773-4.026 2.772-6.442l-1.748-15.263c0-5.033-2.492-9.112-7.725-9.112-5.232 0-7.72 4.079-7.72 9.112l-1.752 15.263c-.001 2.417.996 4.735 2.773 6.444 1.777 1.71 4.187 2.669 6.7 2.668h.003zm-3.135-16.75h6.27v12.743h-6.27V65.5z" /></symbol>',e.insertBefore(t,e.lastChild)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}const b=(e,t)=>{const l=e.__vccOpts||e;for(const[a,o]of t)l[a]=o;return l},C={class:"dict-tag-container"},w=["index"],k=b({__name:"index",props:{options:{type:Array,default:null},value:[Number,String,Array]},setup(e){const l=e,a=t.computed(()=>null!==l.value&&void 0!==l.value?Array.isArray(l.value)?l.value:[String(l.value)]:[]);return(l,o)=>{const n=t.resolveComponent("el-tag");return t.openBlock(),t.createElementBlock("div",C,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(e,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.unref(a).includes(e.value)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["default"==e.elTagType||""==e.elTagType?(t.openBlock(),t.createElementBlock("span",{key:e.value,index:l,class:t.normalizeClass(e.elTagClass)},t.toDisplayString(e.label),11,w)):(t.openBlock(),t.createBlock(n,{"disable-transitions":!0,key:e.value+"",index:l,type:"primary"===e.elTagType?"":e.elTagType,class:t.normalizeClass(e.elTagClass)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:2},1032,["index","type","class"]))],64)):t.createCommentVNode("",!0)],64))),256))])}}},[["__scopeId","data-v-9371585e"]]),V=["xlink:href","fill"],z={__name:"index",props:{iconClass:{type:[String,null],required:!0},className:{type:String,default:""},color:{type:String,default:""}},setup(e){const l=e,a=t.computed(()=>`#icon-${l.iconClass}`),o=t.computed(()=>l.className?`svg-icon ${l.className}`:"svg-icon");return(l,n)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(t.unref(o)),"aria-hidden":"true"},[t.createElementVNode("use",{"xlink:href":t.unref(a),fill:e.color},null,8,V)],2))}},x={class:"upload-file"},M={class:"el-upload__tip"},S={style:{color:"#f56c6c"}},B={style:{color:"#f56c6c"}},N=["title"],E={class:"ele-upload-list__item-content-action"},_={style:{width:"100%",height:"100%",overflow:"auto"}},A=b({__name:"index",props:{modelValue:[String,Object,Array],limit:{type:Number,default:5},fileSize:{type:Number,default:10},fileType:{type:Array,default:()=>["docx","xlsx","doc","xls","ppt","txt","pdf","png","jpg","jpeg","pptx","zip"]},isShowTip:{type:Boolean,default:!0},showFiles:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},uploadFileUrl:{type:String,default:""},headers:{type:Object,default:()=>({})},httpRequest:{type:Function,default:void 0},baseUrl:{type:String,default:""},responseConfig:{type:Object,default:()=>({code:"code",fileName:"fileName",fileUrl:"url",msg:"msg"})},successCode:{type:Number,default:200}},emits:["update:modelValue","delete","success"],setup(e,{emit:l}){const a=e,o=(e,t="")=>e?/^(https?:|mailto:|tel:)/.test(e)?e:t?t+e:e:e,i=t.ref(0),c=t.ref([]),s=t.ref([]),u=t.ref(!1),d=t.ref(""),p=t.ref(""),f=t.ref(null),y=t.ref(null),g=t.computed(()=>a.isShowTip&&(a.fileType||a.fileSize));t.watch(()=>a.modelValue,e=>{if(e){let t=1;const l=Array.isArray(e)?e:a.modelValue.split(",");s.value=l.map(e=>("string"==typeof e&&(e={name:o(e,a.baseUrl),url:o(e,a.baseUrl)}),e.uid=e.uid||(new Date).getTime()+t++,e))}else s.value=[]},{deep:!0,immediate:!0});const b=async e=>{if(a.fileType&&a.fileType.length){const t=e.name.split("."),l=t[t.length-1];if(!(a.fileType.indexOf(l)>=0))return r.ElMessage.error(`文件格式不正确, 请上传${a.fileType.join("/")}格式文件!`),!1}if(a.fileSize){if(!(e.size/1024/1024<a.fileSize))return r.ElMessage.error(`上传文件大小不能超过 ${a.fileSize} MB!`),!1}return f.value=r.ElLoading.service({text:"正在上传文件,请稍候..."}),i.value++,!0},C=()=>{r.ElMessage.error(`上传文件数量不能超过 ${a.limit} 个!`)},w=e=>{r.ElMessage.error("上传文件失败,请重试"),f.value&&f.value.close()},k=(e,t)=>{e[a.responseConfig.code]===a.successCode?(l("success",e),c.value.push({name:e[a.responseConfig.fileName],url:e[a.responseConfig.fileUrl]}),V()):(i.value--,f.value&&f.value.close(),r.ElMessage.error(e[a.responseConfig.msg]),y.value.handleRemove(t),V())},V=()=>{i.value>0&&c.value.length===i.value&&(s.value=s.value.concat(c.value),c.value=[],i.value=0,l("update:modelValue",A(s.value)),f.value&&f.value.close())},z=e=>e.lastIndexOf("/")>-1?decodeURIComponent(e.slice(e.lastIndexOf("/")+1)):e,A=(e,t=",")=>e.length?e.map(e=>e.url).join(t):"",T=()=>{u.value=!1,d.value="",p.value=""};return(a,o)=>{const i=t.resolveComponent("el-button"),c=t.resolveComponent("el-upload"),f=t.resolveComponent("el-icon"),V=t.resolveComponent("el-image"),H=t.resolveComponent("el-dialog");return t.openBlock(),t.createElementBlock("div",x,[e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,t.mergeProps({key:0,multiple:"",action:e.uploadFileUrl,"http-request":e.httpRequest,"before-upload":b,"file-list":s.value,limit:e.limit,"on-error":w,"on-exceed":C,"on-success":k,"show-file-list":!1,headers:e.headers,class:"upload-file-uploader",ref_key:"fileUpload",ref:y},a.$attrs),t.createSlots({default:t.withCtx(()=>[t.renderSlot(a.$slots,"button",{},()=>[t.createVNode(i,{size:"small",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode("选取文件")]),_:1})],!0)]),_:2},[t.unref(g)?{name:"tip",fn:t.withCtx(()=>[t.createElementVNode("div",M,[t.createTextVNode(" 请上传 "),e.fileSize?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" 大小不超过 "),t.createElementVNode("b",S,t.toDisplayString(e.fileSize)+"MB",1)],64)):t.createCommentVNode("",!0),e.fileType?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" 格式为 "),t.createElementVNode("b",B,t.toDisplayString(e.fileType.join("/")),1)],64)):t.createCommentVNode("",!0),t.createTextVNode(" 的文件 ")])]),key:"0"}:void 0]),1040,["action","http-request","file-list","limit","headers"])),e.showFiles?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:1,class:"upload-file-list el-upload-list el-upload-list--text",name:"el-fade-in-linear",tag:"ul"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(a,o)=>(t.openBlock(),t.createElementBlock("li",{key:a.url,class:"el-upload-list__item ele-upload-list__item-content"},[t.createElementVNode("div",{title:z(a.name),class:"ele-upload-list__item-content-name"},t.toDisplayString(z(a.name)),9,N),t.createElementVNode("div",E,[t.createVNode(f,{title:"预览",class:"el-icon-view-icon",onClick:e=>(e=>{const t=z(e.name).split(".").pop().toLowerCase();switch(t){case"pdf":p.value="pdf";break;case"docx":p.value="docx";break;case"xlsx":p.value="xlsx";break;case"jpg":case"jpeg":case"png":case"gif":p.value="image";break;default:return void r.ElMessage.error(`暂不支持${t}文件类型的在线预览,请下载后查看!`)}d.value=e.url,u.value=!0})(a)},{default:t.withCtx(()=>[t.createVNode(t.unref(n.View))]),_:2},1032,["onClick"]),t.createVNode(f,{title:"下载",class:"el-icon-download-icon",onClick:e=>(e=>{try{const t=z(e.name),l=t.split(".").pop().toLowerCase(),a=document.createElement("a");a.style.display="none",a.target="pdf"===l?"_blank":"_self",a.href=e.url,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a),r.ElMessage.success("文件下载成功")}catch(t){r.ElMessage.error("文件下载失败,请重试")}})(a)},{default:t.withCtx(()=>[t.createVNode(t.unref(n.Download))]),_:2},1032,["onClick"]),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(f,{key:0,title:"删除",class:"el-icon-delete-icon",onClick:e=>(e=>{l("delete",s.value.find((t,l)=>l===e)),s.value.splice(e,1),l("update:modelValue",A(s.value))})(o)},{default:t.withCtx(()=>[t.createVNode(t.unref(n.Delete))]),_:2},1032,["onClick"]))])]))),128))]),_:1})):t.createCommentVNode("",!0),t.createVNode(H,{modelValue:u.value,"onUpdate:modelValue":o[0]||(o[0]=e=>u.value=e),"append-to-body":"",class:"previewDialog",title:"文件预览",fullscreen:"","before-close":T},{default:t.withCtx(()=>[t.createElementVNode("div",_,["pdf"===p.value?(t.openBlock(),t.createBlock(t.unref(m.default),{key:0,src:d.value},null,8,["src"])):t.createCommentVNode("",!0),"docx"===p.value?(t.openBlock(),t.createBlock(t.unref(v.default),{key:1,src:d.value},null,8,["src"])):t.createCommentVNode("",!0),"xlsx"===p.value?(t.openBlock(),t.createBlock(t.unref(h.default),{key:2,src:d.value},null,8,["src"])):t.createCommentVNode("",!0),"image"===p.value?(t.openBlock(),t.createBlock(V,{key:3,src:d.value,style:{width:"100%",height:"99%"},fit:"contain"},null,8,["src"])):t.createCommentVNode("",!0)])]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-f55d9716"]]),T={class:"component-upload-image"},H={key:0,class:"el-upload__tip"},D={style:{color:"#f56c6c"}},L={style:{color:"#f56c6c"}},O=["src"],j=b({__name:"index",props:{modelValue:{type:[String,Object,Array],default:()=>[]},limit:{type:Number,default:5},fileSize:{type:Number,default:5},fileType:{type:Array,default:()=>["png","jpg","jpeg"]},isShowTip:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},width:{type:[Number,String],default:100},height:{type:[Number,String],default:100},uploadImgUrl:{type:String,default:""},headers:{type:Object,default:()=>({})},httpRequest:{type:Function,default:void 0},responseConfig:{type:Object,default:()=>({code:"code",fileName:"fileName",fileUrl:"url",msg:"msg"})},baseUrl:{type:String,default:""},successCode:{type:Number,default:200}},emits:["update:modelValue","delete","success"],setup(e,{emit:l}){const a=e,o=(e,t="")=>e?/^(https?:|mailto:|tel:)/.test(e)?e:t?t+e:e:e,i=t.ref(0),c=t.ref([]),s=t.ref(""),u=t.ref(!1),d=t.ref([]),p=t.ref(null),m=t.ref(null),v=t.computed(()=>(null==a?void 0:a.isShowTip)&&((null==a?void 0:a.fileType)||(null==a?void 0:a.fileSize))),h=t.computed(()=>"number"==typeof(null==a?void 0:a.width)?`${a.width}px`:a.width),f=t.computed(()=>"number"==typeof(null==a?void 0:a.height)?`${a.height}px`:a.height),y=t.computed(()=>"number"==typeof(null==a?void 0:a.height)?`${a.height}px`:a.height);t.watch(()=>a.modelValue,e=>{if(e){const t=Array.isArray(e)?e:a.modelValue.split(",");d.value=t.map(e=>("string"==typeof e&&(e={name:o(e,a.baseUrl),url:o(e,a.baseUrl)}),e))}else d.value=[]},{deep:!0,immediate:!0});const g=()=>{t.nextTick(()=>{var e;const t=null==(e=p.value)?void 0:e.$el;if(!t)return;t.querySelectorAll(".el-upload--picture-card").forEach(e=>{e.style.width=h.value,e.style.height=f.value,e.style.lineHeight=y.value});t.querySelectorAll(".el-upload-list__item").forEach(e=>{e.style.width=h.value,e.style.height=f.value})})},b=async e=>{let t=!1;if(a.fileType&&a.fileType.length){let l="";e.name&&e.name.lastIndexOf(".")>-1&&(l=e.name.slice(e.name.lastIndexOf(".")+1)),t=a.fileType.some(t=>!!(e.type&&e.type.indexOf(t)>-1)||!!(l&&l.indexOf(t)>-1))}else t=e.type&&e.type.indexOf("image")>-1;if(!t)return r.ElMessage.error(`文件格式不正确, 请上传${a.fileType.join("/")}图片格式文件!`),!1;if(a.fileSize){if(!(e.size/1024/1024<a.fileSize))return r.ElMessage.error(`上传头像图片大小不能超过 ${a.fileSize} MB!`),!1}return m.value=r.ElLoading.service({text:"正在上传图片,请稍候..."}),i.value++,!0},C=()=>{r.ElMessage.error(`上传图片数量不能超过 ${a.limit} 个!`)},w=(e,t)=>{e[a.responseConfig.code]===a.successCode?(l("success",e),c.value.push({name:e[a.responseConfig.fileName],url:e[a.responseConfig.fileUrl]}),z()):(i.value--,m.value&&m.value.close(),r.ElMessage.error(e[a.responseConfig.msg]),fileUpload.value.handleRemove(t),z())},k=e=>{l("delete",e),l("update:modelValue",M(d.value))},V=()=>{r.ElMessage.error("上传图片失败,请重试"),m.value&&m.value.close()},z=()=>{i.value>0&&c.value.length===i.value&&(d.value=d.value.concat(c.value),c.value=[],i.value=0,l("update:modelValue",M(d.value)),m.value&&m.value.close())},x=e=>{s.value=e.url,u.value=!0},M=(e,t=",")=>e.length?e.map(e=>e.url).join(t):"";return t.onMounted(()=>{g()}),t.onUpdated(()=>{g()}),(l,o)=>{const r=t.resolveComponent("el-icon"),i=t.resolveComponent("el-upload"),c=t.resolveComponent("el-dialog");return t.openBlock(),t.createElementBlock("div",T,[t.createVNode(i,{disabled:a.disabled,multiple:"",action:e.uploadImgUrl,"list-type":"picture-card","on-success":w,"before-upload":b,limit:a.limit,"on-error":V,"on-exceed":C,ref_key:"imageUpload",ref:p,"http-request":e.httpRequest,"on-remove":k,"show-file-list":!0,headers:e.headers,"file-list":d.value,"on-preview":x,class:t.normalizeClass({hide:d.value.length>=a.limit})},{default:t.withCtx(()=>[t.createVNode(r,null,{default:t.withCtx(()=>[t.createVNode(t.unref(n.Plus))]),_:1})]),_:1},8,["disabled","action","limit","http-request","headers","file-list","class"]),t.unref(v)?(t.openBlock(),t.createElementBlock("div",H,[t.createTextVNode(" 请上传 "),a.fileSize?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" 大小不超过 "),t.createElementVNode("b",D,t.toDisplayString(a.fileSize)+"MB",1)],64)):t.createCommentVNode("",!0),a.fileType?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" 格式为 "),t.createElementVNode("b",L,t.toDisplayString(a.fileType.join("/")),1)],64)):t.createCommentVNode("",!0),t.createTextVNode(" 的文件 ")])):t.createCommentVNode("",!0),t.createVNode(c,{modelValue:u.value,"onUpdate:modelValue":o[0]||(o[0]=e=>u.value=e),title:"预览",width:"800","append-to-body":""},{default:t.withCtx(()=>[t.createElementVNode("img",{src:s.value,style:{display:"block","max-width":"100%",margin:"0 auto"}},null,8,O)]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-ddc0faf6"]]),I={class:"image-slot"},$=b({__name:"index",props:{enableDelete:{type:Boolean,default:!1},value:{type:String,default:""},src:{type:String,default:""},width:{type:[Number,String],default:"50px"},height:{type:[Number,String],default:"50px"},baseUrl:{type:String,default:""}},emits:["input","update:modelValue"],setup(e,{emit:l}){const a=e,o=(e,t="")=>e?/^(https?:|mailto:|tel:)/.test(e)?e:t?t+e:e:e,r=t.ref(null),i=t.computed(()=>{const e=a.value||a.src;if(!e)return;let t=e.split(",")[0];return o(t,a.baseUrl)}),c=t.computed(()=>{const e=a.value||a.src;if(!e)return[];let t=e.split(","),l=[];return t.forEach(e=>l.push(o(e,a.baseUrl))),l}),s=t.computed(()=>"string"==typeof a.width?a.width:`${a.width}px`),u=t.computed(()=>"string"==typeof a.height?a.height:`${a.height}px`),d=()=>{a.enableDelete&&t.nextTick(()=>{let e=document.getElementsByClassName("el-image-viewer__actions__inner"),t=document.createElement("i");t.setAttribute("class","el-icon-delete"),t.addEventListener("click",p),e[0].appendChild(t),e.length>0&&(r.value=e[0])})},p=()=>{const e=[...c.value];e.splice(c.value.indexOf(i.value),1),0===e.length&&document.querySelector(".el-image-viewer__close").click(),l("input",e.join(",")),l("update:modelValue",e.join(","))};return(e,l)=>{const a=t.resolveComponent("el-icon"),o=t.resolveComponent("el-image"),r=t.resolveComponent("el-badge");return t.openBlock(),t.createBlock(r,{hidden:t.unref(c).length<=1,value:t.unref(c).length,class:"item",type:"primary"},{default:t.withCtx(()=>[t.createVNode(o,{"preview-teleported":"",onClick:t.withModifiers(d,["stop","prevent"]),src:`${t.unref(i)}`,fit:"cover",style:t.normalizeStyle(`width:${t.unref(s)};height:${t.unref(u)};`),"preview-src-list":t.unref(c)},{error:t.withCtx(()=>[t.createElementVNode("div",I,[t.createVNode(a,{class:"el-icon-picture-outline"},{default:t.withCtx(()=>[t.createVNode(t.unref(n.Picture))]),_:1})])]),_:1},8,["onClick","src","style","preview-src-list"])]),_:1},8,["hidden","value"])}}},[["__scopeId","data-v-bebc33d5"]]),P=["404","bug","build","button","cascader","chart","checkbox","clipboard","code","color","component","dashboard","date","date-range","dict","documentation","download","drag","druid","edit","education","email","example","excel","exit-fullscreen","eye","eye-open","form","fullscreen","github","guide","icon","input","international","job","language","link","list","lock","log","logininfor","message","money","monitor","nested","number","online","password","pdf","people","peoples","phone","post","qq","question","radio","rate","redis","redis-list","row","search","select","server","shopping","size","skill","slider","star","swagger","switch","system","tab","table","textarea","theme","time","time-range","tool","tree","tree-table","upload","user","validCode","wechat","zip"],J={class:"icon-body"},K=(e=>(t.pushScopeId("data-v-7611a463"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("i",{class:"el-icon-search el-input__icon"},null,-1)),q={class:"icon-list"},U=["onClick"],F=b({__name:"index",emits:["selected"],setup(e,{expose:l,emit:a}){const o=t.ref(""),n=t.ref(P);function r(){n.value=P,o.value&&(n.value=P.filter(e=>-1!==e.indexOf(o.value)))}return l({reset:function(){o.value="",n.value=P}}),(e,l)=>{const i=t.resolveComponent("el-input");return t.openBlock(),t.createElementBlock("div",J,[t.createVNode(i,{modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=e=>o.value=e),style:{position:"relative"},clearable:"",placeholder:"请输入图标名称",onClear:r,onInput:r},{suffix:t.withCtx(()=>[K]),_:1},8,["modelValue"]),t.createElementVNode("div",q,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,(e,l)=>(t.openBlock(),t.createElementBlock("div",{key:l,onClick:t=>(a("selected",e),void document.body.click())},[t.createVNode(z,{"icon-class":e,style:{height:"30px",width:"16px"}},null,8,["icon-class"]),t.createElementVNode("span",null,t.toDisplayString(e),1)],8,U))),128))])])}}},[["__scopeId","data-v-7611a463"]]);function R(){const e=t.ref(!1),l=()=>{const e=navigator.userAgent.toLowerCase(),t=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(e),l=window.innerWidth<=768;return t||l},a=()=>{e.value=l()},o=()=>{a()};return t.onBeforeMount(()=>{a(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{isMobile:e,checkIsMobile:l}}const W={__name:"index",props:{modelValue:{type:Array,default:()=>[]},disabledDate:{type:Function,default:null},valueFormat:{type:String,default:"YYYY-MM-DD"},clearable:{type:Boolean,default:!0}},emits:["update:modelValue","change"],setup(e,{emit:l}){const a=e,{isMobile:o}=R(),n=[{text:"过去7天",value:()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59);return[new Date(e.getFullYear(),e.getMonth(),e.getDate()-6,0,0,0),t]}},{text:"本周",value:()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59),l=e.getDay(),a=0===l?6:l-1;return[new Date(e.getFullYear(),e.getMonth(),e.getDate()-a,0,0,0),t]}},{text:"本月",value:()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59);return[new Date(e.getFullYear(),e.getMonth(),1,0,0,0),t]}},{text:"本年",value:()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59);return[new Date(e.getFullYear(),0,1,0,0,0),t]}},{text:"去年",value:()=>{const e=(new Date).getFullYear()-1;return[new Date(e,0,1,0,0,0),new Date(e,11,31,23,59,59)]}}],r=t.computed({get:()=>a.modelValue,set(e){l("update:modelValue",e)}}),i=e=>{l("change",e)};return(l,a)=>{const c=t.resolveComponent("el-date-picker");return t.openBlock(),t.createBlock(c,t.mergeProps({size:t.unref(o)?"small":"",clearable:e.clearable,modelValue:t.unref(r),"onUpdate:modelValue":a[0]||(a[0]=e=>t.isRef(r)?r.value=e:null),type:"daterange","value-format":e.valueFormat,"disabled-date":e.disabledDate,"range-separator":"到",shortcuts:n,"start-placeholder":"开始时间","end-placeholder":"结束时间",onChange:i},l.$attrs),null,16,["size","clearable","modelValue","value-format","disabled-date"])}}},G={class:"el-tree-select"},Z=b({__name:"index",props:{objMap:{type:Object,default:()=>({value:"id",label:"label",children:"children"})},accordion:{type:Boolean,default:()=>!1},modelValue:{type:[String,Number],default:""},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:l}){const a=e,{proxy:o}=t.getCurrentInstance(),n=t.computed({get:()=>a.modelValue,set:e=>{l("update:modelValue",e)}}),r=t.ref(""),i=t.ref([]);function c(){t.nextTick(()=>{const e=n.value;if(null!=e){const t=o.$refs.selectTree.getNode(e);t&&(r.value=t.data[a.objMap.label],o.$refs.selectTree.setCurrentKey(e),i.value=[e])}else p()})}function s(e){r.value=e[a.objMap.label],n.value=e[a.objMap.value],i.value=[],o.$refs.treeSelect.blur(),u("")}function u(e){o.$refs.selectTree.filter(e)}function d(e,t){return!e||-1!==t[a.objMap.label].indexOf(e)}function p(){r.value="",n.value="",i.value=[],document.querySelectorAll("#tree-option .el-tree-node").forEach(e=>e.classList.remove("is-current"))}return t.onMounted(()=>{c()}),t.watch(n,()=>{c()}),(l,a)=>{const o=t.resolveComponent("el-tree"),c=t.resolveComponent("el-option"),m=t.resolveComponent("el-select");return t.openBlock(),t.createElementBlock("div",G,[t.createVNode(m,{style:{width:"100%"},modelValue:t.unref(n),"onUpdate:modelValue":a[0]||(a[0]=e=>t.isRef(n)?n.value=e:null),ref:"treeSelect",filterable:!0,clearable:!0,onClear:p,"filter-method":u,placeholder:e.placeholder},{default:t.withCtx(()=>[t.createVNode(c,{value:t.unref(n),label:r.value},{default:t.withCtx(()=>[t.createVNode(o,{id:"tree-option",ref:"selectTree",accordion:e.accordion,data:e.options,props:e.objMap,"node-key":e.objMap.value,"expand-on-click-node":!1,"default-expanded-keys":i.value,"filter-node-method":d,onNodeClick:s},null,8,["accordion","data","props","node-key","default-expanded-keys"])]),_:1},8,["value","label"])]),_:1},8,["modelValue","placeholder"])])}}},[["__scopeId","data-v-a2fe1763"]]),Y={class:"table-container"},Q=b({__name:"index",props:{request:{type:Function,default:()=>{}},rowKey:{type:String,default:""},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},responseConfig:{type:Object,default:()=>({total:"total",list:"rows"})},multiple:{type:Boolean,default:!0},showSummary:{type:Boolean,default:!1},summaryMethod:{type:Function},selectable:{type:Function},showSelect:{type:Boolean,default:!0},showIndex:{type:Boolean,default:!0},reserveSelection:{type:Boolean,default:!1},requestParams:{type:Object,default:()=>{}},customIndex:{type:Function},showPagination:{type:Boolean,default:!0},spanMethod:{type:[Function,null],default:null},handleList:{type:[Function,null],default:null},selected:{type:Array,default:()=>[]},isMountedRequest:{type:Boolean,default:!0},height:{type:String,default:"100%"}},emits:["selectionChange","sortChange","requestSuccess","cellEnter","cellLeave"],setup(e,{expose:l,emit:a}){const o=e,{isMobile:n}=R(),r=t.ref([]),i=t.ref([]),c=t.ref(!1),s={total:"total",list:"rows"},u=t.computed(()=>({...s,...o.responseConfig})),d=t.reactive({pageNum:1,pageSize:20}),p=t.ref(0),m=t.ref(null),v=t.ref([]),h=()=>{var e;const t=(null==(e=m.value)?void 0:e.selection)||[];t.forEach(e=>{var t;v.value.some(t=>t[o.rowKey]==e[o.rowKey])||null==(t=m.value)||t.toggleRowSelection(e,!1)}),v.value.forEach(e=>{var l,a;if(!t.some(t=>t[o.rowKey]==e[o.rowKey])){const t=r.value.find(t=>t[o.rowKey]==e[o.rowKey]);t?null==(l=m.value)||l.toggleRowSelection(t,!0):null==(a=m.value)||a.toggleRowSelection(e,!0)}})};t.watch(()=>r.value,()=>{h()}),t.watch(()=>o.selected,(e,t)=>{var l;if(e.length&&o.showSelect){const t=[];e.forEach(e=>{const l=e[o.rowKey];t.some(e=>e[o.rowKey]==l)||t.push(e)}),v.value=t,h()}else!e.length&&o.showSelect&&(null==(l=m.value)||l.clearSelection())},{immediate:!0});const f=e=>{if(o.spanMethod)return o.spanMethod(e,i.value,r.value)},y=(e,t,l,o)=>{a("cellEnter",{row:e,column:t,cell:l,event:o})},g=(e,t,l,o)=>{a("cellLeave",{row:e,column:t,cell:l,event:o})},b=e=>{if(0===e.columnIndex)return"disabledCheck"},C=e=>{var t;let l="";return(null==(t=v.value)?void 0:t.includes(e.row))&&(l="selected-color"),o.multiple||(l+=" selected-radio"),l},w=e=>{var t;if(o.multiple)v.value=e,a("selectionChange",e);else{if(e.length>1){let l=e.shift();null==(t=m.value)||t.toggleRowSelection(l,!1)}v.value=e,a("selectionChange",e)}},k=e=>{a("sortChange",e)},V=async()=>{var e;try{c.value=!0;const t=await o.request({...d,...o.requestParams});i.value=null==t?void 0:t[u.value.list],r.value=o.handleList?o.handleList(null==t?void 0:t[u.value.list]):null==t?void 0:t[u.value.list],a("requestSuccess",r.value,i.value),p.value=null!=(e=null==t?void 0:t[u.value.total])?e:0}catch(t){}finally{c.value=!1}};return t.onMounted(()=>{o.isMountedRequest&&V()}),l({refresh:()=>{V()},doLayout:()=>{var e;null==(e=m.value)||e.doLayout()}}),(l,a)=>{const o=t.resolveComponent("el-table-column"),i=t.resolveComponent("el-table"),s=t.resolveComponent("el-pagination"),u=t.resolveDirective("loading");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:"TJ-table-container",style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",Y,[t.createVNode(i,t.mergeProps({ref_key:"tableRef",ref:m,size:t.unref(n)?"small":"default","row-key":e.rowKey,showSummary:e.showSummary,"summary-method":e.summaryMethod,"tree-props":e.treeProps,"span-method":f,onCellMouseEnter:y,onCellMouseLeave:g,data:r.value,border:"",height:"100%","row-class-name":C,"header-cell-class-name":e.multiple?"":b,onSortChange:k,onSelectionChange:w},l.$attrs),{default:t.withCtx(()=>[e.showSelect?(t.openBlock(),t.createBlock(o,{key:0,selectable:e.selectable,fixed:"left","reserve-selection":e.reserveSelection,type:"selection",align:"center",width:"40"},null,8,["selectable","reserve-selection"])):t.createCommentVNode("",!0),e.showIndex?(t.openBlock(),t.createBlock(o,{key:1,index:e.customIndex,fixed:!t.unref(n)&&"left",type:"index",label:"序号",width:"60",align:"center"},null,8,["index","fixed"])):t.createCommentVNode("",!0),t.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},16,["size","row-key","showSummary","summary-method","tree-props","data","header-cell-class-name"])]),e.showPagination?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.unref(n)?(t.openBlock(),t.createBlock(s,{key:1,class:"pagination mobile-pagination",background:"",onSizeChange:V,onCurrentChange:V,layout:"total, prev, pager, next",total:p.value,"page-size":d.pageSize,"onUpdate:page-size":a[2]||(a[2]=e=>d.pageSize=e),"current-page":d.pageNum,"onUpdate:current-page":a[3]||(a[3]=e=>d.pageNum=e),"pager-count":5,small:""},null,8,["total","page-size","current-page"])):(t.openBlock(),t.createBlock(s,{key:0,class:"pagination",background:"",onSizeChange:V,onCurrentChange:V,layout:"sizes, total, prev, pager, next, jumper",total:p.value,"page-size":d.pageSize,"onUpdate:page-size":a[0]||(a[0]=e=>d.pageSize=e),"page-sizes":[10,20,30,40,50],"current-page":d.pageNum,"onUpdate:current-page":a[1]||(a[1]=e=>d.pageNum=e)},null,8,["total","page-size","current-page"]))],64)):t.createCommentVNode("",!0)],4)),[[u,c.value]])}}},[["__scopeId","data-v-8906f38f"]]),X={class:"table-container"};const ee=b({},[["render",function(e,l){return t.openBlock(),t.createElementBlock("div",X,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-45fb95db"]]),te=b({__name:"index",props:{showSearch:{type:Boolean,default:!0},columns:{type:Array},search:{type:Boolean,default:!0},showRefresh:{type:Boolean,default:!0},gutter:{type:Number,default:10}},emits:["update:showSearch","queryTable"],setup(e,{emit:l}){const a=e,o=t.ref([]),n=t.ref("显示/隐藏"),r=t.ref(!1),i=t.computed(()=>{const e={};return a.gutter&&(e.marginRight=a.gutter/2+"px"),e});function c(e){for(let t in a.columns){const l=a.columns[t].key;a.columns[t].visible=!e.includes(l)}}for(let t in a.columns)!1===a.columns[t].visible&&o.value.push(parseInt(t));return(s,u)=>{const d=t.resolveComponent("el-button"),p=t.resolveComponent("el-tooltip"),m=t.resolveComponent("el-row"),v=t.resolveComponent("el-transfer"),h=t.resolveComponent("el-dialog");return t.openBlock(),t.createElementBlock("div",{class:"top-right-btn",style:t.normalizeStyle(t.unref(i))},[t.createVNode(m,null,{default:t.withCtx(()=>[e.search?(t.openBlock(),t.createBlock(p,{key:0,class:"item",effect:"dark",content:e.showSearch?"隐藏搜索":"打开搜索",placement:"top"},{default:t.withCtx(()=>[t.createVNode(d,{circle:"",icon:"Search",onClick:u[0]||(u[0]=e=>{l("update:showSearch",!a.showSearch)})})]),_:1},8,["content"])):t.createCommentVNode("",!0),e.showRefresh?(t.openBlock(),t.createBlock(p,{key:1,class:"item",effect:"dark",content:"刷新",placement:"top"},{default:t.withCtx(()=>[t.createVNode(d,{circle:"",icon:"Refresh",onClick:u[1]||(u[1]=e=>{l("queryTable")})})]),_:1})):t.createCommentVNode("",!0),e.columns?(t.openBlock(),t.createBlock(p,{key:2,class:"item",effect:"dark",content:"显隐列",placement:"top"},{default:t.withCtx(()=>[t.createVNode(d,{circle:"",icon:"Menu",onClick:u[2]||(u[2]=e=>{r.value=!0})})]),_:1})):t.createCommentVNode("",!0)]),_:1}),t.createVNode(h,{title:n.value,modelValue:r.value,"onUpdate:modelValue":u[4]||(u[4]=e=>r.value=e),"append-to-body":""},{default:t.withCtx(()=>[t.createVNode(v,{titles:["显示","隐藏"],modelValue:o.value,"onUpdate:modelValue":u[3]||(u[3]=e=>o.value=e),data:e.columns,onChange:c},null,8,["modelValue","data"])]),_:1},8,["title","modelValue"])],4)}}},[["__scopeId","data-v-0e82f8bf"]]),le={class:"table-top-action-container"},ae=b({__name:"index",props:{showSearch:{type:Boolean,default:!0},showRefresh:{type:Boolean,default:!0}},emits:["update:showSearch","refresh"],setup(e,{emit:l}){const a=e,o=t.computed({get:()=>a.showSearch,set(e){l("update:showSearch",e)}}),n=()=>{l("refresh")};return(l,a)=>(t.openBlock(),t.createElementBlock("div",le,[t.renderSlot(l.$slots,"left",{},void 0,!0),t.renderSlot(l.$slots,"right",{},()=>[t.createVNode(te,{showSearch:t.unref(o),"onUpdate:showSearch":a[0]||(a[0]=e=>t.isRef(o)?o.value=e:null),showRefresh:e.showRefresh,onQueryTable:n},null,8,["showSearch","showRefresh"])],!0)]))}},[["__scopeId","data-v-056cfdde"]]),oe={key:0,class:"search-container"},ne={class:"table-box"},re=["onClick"],ie={slot:"header",class:"clearfix"},ce=(e=>(t.pushScopeId("data-v-0cae2f90"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("span",{style:{"font-weight":"bold"}},"已选列表",-1)),se={class:"tag-container"},ue={class:"tag-name"},de={class:"dialog-footer"},pe=b({__name:"index",props:{mode:{type:String,default:"ElDialog",validator:e=>["ElDialog","ElDrawer"].includes(e)},width:{type:String,default:"80vw"},height:{type:String,default:"45vh"},select:{type:[Array,Object,String],default:()=>[]},tableColumns:{type:Array,default:()=>[]},value:{type:String,default:""},names:{type:String,default:""},request:{type:Function,required:!0},selectOptions:{type:Object,default:()=>({show:!1,multiple:!0,valueKey:"id",nameKey:"name",reserveSelection:!0})},showPagination:{type:Boolean,default:!0}},emits:["change","update:names","input","update:value","action","update:select"],setup(e,{expose:l,emit:a}){const o=e,{isMobile:n}=R(),{proxy:i}=t.getCurrentInstance(),c=t.ref({open:!1,title:""}),s=t.computed(()=>o.tableColumns.filter(e=>e.query)),u=t.reactive({queryParams:{pageNum:1,pageSize:20}}),{queryParams:d}=t.toRefs(u),p=async()=>{var e;await r.ElMessage.warning("您确定要全部删除吗?"),C.value=[],null==(e=h.value)||e.clearSelection()},m=()=>{d.value.pageNum=1,z()},v=()=>{i.$refs.queryFormRef.resetFields(),d.value.pageNum=1,z()},h=t.ref(null),f=t.ref([]),y=t.ref(!1),g=t.ref(!1),b=e=>{if(0===e.columnIndex)return"disabledCheck"},C=t.ref([]),w=e=>{let t="";return o.selectOptions.multiple||(t+=" selected-radio"),t},k=e=>{var t;if(!g.value)if(o.selectOptions.multiple)C.value=e;else{if(e.length>1){let l=e.shift();null==(t=h.value)||t.toggleRowSelection(l,!1)}C.value=e}},V=t.ref(0),z=async()=>{var e,l;try{y.value=!0;let a=await o.request(d.value);if(200!==a.code)return;f.value=null!=(l=null!=(e=null==a?void 0:a.rows)?e:a.data)?l:[],V.value=(null==a?void 0:a.total)||0,await t.nextTick(),S()}catch(a){f.value=[],V.value=0}finally{y.value=!1}},x=()=>{o.selectOptions.multiple?(a("update:value",C.value.map(e=>e[o.selectOptions.valueKey]).join(",")),a("update:names",C.value.map(e=>e[o.selectOptions.nameKey]).join(",")),a("update:select",C.value),a("change",C.value)):(a("update:value",C.value[0]?String(C.value[0][o.selectOptions.valueKey]):""),a("update:names",C.value[0]?String(C.value[0][o.selectOptions.nameKey]):""),a("update:select",C.value[0]||""),a("change",C.value[0]||"")),M()},M=()=>{c.value.open=!1,C.value=[],i.$refs.queryFormRef.resetFields(),d.value={pageNum:1,pageSize:20}};t.watch(()=>c.value.open,e=>{e?(o.value&&(C.value=String(o.value).split(",").filter(e=>e).map((e,t)=>({[o.selectOptions.valueKey]:e,[o.selectOptions.nameKey]:o.names.split(",")[t]}))),o.select&&(C.value=Array.isArray(o.select)?o.select:[o.select])):C.value=[]});const S=()=>{var e;g.value=!0,C.value.length?f.value.forEach(e=>{var t;const l=C.value.find(t=>String(t[o.selectOptions.valueKey])==String(e[o.selectOptions.valueKey]));null==(t=h.value)||t.toggleRowSelection(e,!!l)}):null==(e=h.value)||e.clearSelection(),g.value=!1};return l({open:({title:e,open:t},l={})=>{c.value.title=e,c.value.open=t,d.value={...d.value,...l},z()}}),(l,r)=>{const i=t.resolveComponent("el-input"),u=t.resolveComponent("el-option"),g=t.resolveComponent("el-select"),B=t.resolveComponent("el-form-item"),N=t.resolveComponent("el-button"),E=t.resolveComponent("el-form"),_=t.resolveComponent("el-card"),A=t.resolveComponent("el-table-column"),T=t.resolveComponent("dict-tag"),H=t.resolveComponent("el-table"),D=t.resolveComponent("el-pagination"),L=t.resolveComponent("el-tag"),O=t.resolveComponent("el-empty"),j=t.resolveDirective("loading");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mode),t.mergeProps({onClose:M,"destroy-on-close":"",modelValue:c.value.open,"onUpdate:modelValue":r[4]||(r[4]=e=>c.value.open=e),title:c.value.title,width:e.width,size:e.width,fullscreen:t.unref(n),"close-on-click-modal":!1,"append-to-body":""},{...l.$attrs}),{footer:t.withCtx(()=>[t.createElementVNode("div",de,[t.createVNode(N,{size:t.unref(n)?"small":"",onClick:M},{default:t.withCtx(()=>[t.createTextVNode("关 闭")]),_:1},8,["size"]),e.selectOptions.show?(t.openBlock(),t.createBlock(N,{key:0,size:t.unref(n)?"small":"",onClick:x},{default:t.withCtx(()=>[t.createTextVNode("确 定")]),_:1},8,["size"])):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[t.unref(s).length?(t.openBlock(),t.createElementBlock("div",oe,[t.createVNode(_,{shadow:"hover"},{default:t.withCtx(()=>[t.createVNode(E,{size:t.unref(n)?"small":"",ref:"queryFormRef",model:t.unref(d),inline:!0},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),e=>(t.openBlock(),t.createBlock(B,{label:e.label,prop:e.query.queryKey||e.prop,key:e.query.queryKey},{default:t.withCtx(()=>["input"===e.query.type?(t.openBlock(),t.createBlock(i,{key:0,modelValue:t.unref(d)[e.query.queryKey||e.prop],"onUpdate:modelValue":l=>t.unref(d)[e.query.queryKey||e.prop]=l,placeholder:e.query.placeholder||"请输入",clearable:!1!==e.query.clearable,onChange:m,onKeyup:t.withKeys(m,["enter"])},null,8,["modelValue","onUpdate:modelValue","placeholder","clearable","onKeyup"])):"select"===e.query.type?(t.openBlock(),t.createBlock(g,{key:1,onChange:m,clearable:!1!==e.query.clearable,filterable:!1!==e.query.clearable,modelValue:t.unref(d)[e.query.queryKey||e.prop],"onUpdate:modelValue":l=>t.unref(d)[e.query.queryKey||e.prop]=l,placeholder:e.query.placeholder||"请选择"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.query.data,l=>{var a,o,n;return t.openBlock(),t.createBlock(u,{key:l[(null==(a=e.query.optionProps)?void 0:a.value)||"value"],label:l[(null==(o=e.query.optionProps)?void 0:o.label)||"label"],value:l[(null==(n=e.query.optionProps)?void 0:n.value)||"value"]},null,8,["label","value"])}),128))]),_:2},1032,["clearable","filterable","modelValue","onUpdate:modelValue","placeholder"])):(t.openBlock(),t.createBlock(i,{key:2,modelValue:t.unref(d)[e.query.queryKey||e.prop],"onUpdate:modelValue":l=>t.unref(d)[e.query.queryKey||e.prop]=l,placeholder:e.query.placeholder||"请输入",clearable:!1!==e.query.clearable,onChange:m,onKeyup:t.withKeys(m,["enter"])},null,8,["modelValue","onUpdate:modelValue","placeholder","clearable","onKeyup"]))]),_:2},1032,["label","prop"]))),128)),t.createVNode(B,null,{default:t.withCtx(()=>[t.createVNode(N,{onClick:v},{default:t.withCtx(()=>[t.createTextVNode("重置")]),_:1}),t.createVNode(N,{type:"primary",onClick:m},{default:t.withCtx(()=>[t.createTextVNode("查询")]),_:1})]),_:1})]),_:1},8,["size","model"])]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",{style:t.normalizeStyle({height:t.unref(n)?"100%":e.height}),class:t.normalizeClass(["content-box",t.unref(n)&&"content-box-mobile"])},[t.createElementVNode("div",ne,[t.withDirectives((t.openBlock(),t.createBlock(H,{size:t.unref(n)?"small":"",class:"table-content",ref_key:"tableRef",ref:h,data:f.value,border:"",height:"100%","header-cell-class-name":e.selectOptions.multiple?"":b,onSelectionChange:k,"row-class-name":w,"row-key":e.selectOptions.valueKey},{default:t.withCtx(()=>[e.selectOptions.show?(t.openBlock(),t.createBlock(A,{key:0,"reserve-selection":e.selectOptions.reserveSelection,type:"selection",width:"40",align:"center",fixed:"left"},null,8,["reserve-selection"])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tableColumns,e=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:e.prop},[e.dict?(t.openBlock(),t.createBlock(A,t.mergeProps({key:0},{...e},{align:"center","show-overflow-tooltip":""}),{default:t.withCtx(l=>[t.createVNode(T,{options:e.dict,value:l.row[e.prop]},null,8,["options","value"])]),_:2},1040)):(t.openBlock(),t.createBlock(A,t.mergeProps({key:1},{...e},{align:"center","show-overflow-tooltip":""}),{default:t.withCtx(l=>[t.createElementVNode("span",{onClick:t=>((e,t,l)=>{e&&a("action",t,l)})(e.action,e.prop,l),class:t.normalizeClass({linkStyle:e.action||!1})},t.toDisplayString(e.format?e.format(l.row,l.$index):l.row[e.prop]),11,re)]),_:2},1040))],64))),128))]),_:1},8,["size","data","header-cell-class-name","row-key"])),[[j,y.value]]),e.showPagination?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.unref(n)?(t.openBlock(),t.createBlock(D,{key:1,class:"pagination mobile-pagination",background:"",onSizeChange:z,onCurrentChange:z,layout:"total, prev, pager, next",total:V.value,"page-size":t.unref(d).pageSize,"onUpdate:page-size":r[2]||(r[2]=e=>t.unref(d).pageSize=e),"current-page":t.unref(d).pageNum,"onUpdate:current-page":r[3]||(r[3]=e=>t.unref(d).pageNum=e),"pager-count":5,small:""},null,8,["total","page-size","current-page"])):(t.openBlock(),t.createBlock(D,{key:0,class:"pagination",background:"",layout:"sizes, total, prev, pager, next, jumper",total:V.value,"page-size":t.unref(d).pageSize,"onUpdate:page-size":r[0]||(r[0]=e=>t.unref(d).pageSize=e),"current-page":t.unref(d).pageNum,"onUpdate:current-page":r[1]||(r[1]=e=>t.unref(d).pageNum=e),"page-sizes":[10,20,30,40,50],onSizeChange:z,onCurrentChange:z},null,8,["total","page-size","current-page"]))],64)):t.createCommentVNode("",!0)]),e.selectOptions.show?(t.openBlock(),t.createBlock(_,{key:0,class:"tag-card",shadow:"never"},{default:t.withCtx(()=>[t.createElementVNode("div",ie,[ce,t.createVNode(N,{style:{float:"right",padding:"3px 0"},link:"",onClick:p},{default:t.withCtx(()=>[t.createTextVNode("全部删除")]),_:1})]),t.createElementVNode("div",se,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(C.value,l=>(t.openBlock(),t.createElementBlock("div",{key:l[e.selectOptions.valueKey]},[t.createVNode(L,{class:"tag-item",onClose:e=>{return t=l,C.value=C.value.filter(e=>e[o.selectOptions.valueKey]!==t[o.selectOptions.valueKey]),void S();var t},closable:""},{default:t.withCtx(()=>[t.createElementVNode("span",ue,t.toDisplayString(l[e.selectOptions.nameKey]||l[e.selectOptions.valueKey]),1)]),_:2},1032,["onClose"])]))),128)),C.value.length?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(O,{key:0,description:"暂未选择"}))])]),_:1})):t.createCommentVNode("",!0)],6)]),_:1},16,["modelValue","title","width","size","fullscreen"])}}},[["__scopeId","data-v-0cae2f90"]]),me={__name:"index",setup(e){const{isMobile:l}=R(),a=t.computed(()=>t.useSlots().default());return(e,o)=>{const n=t.resolveComponent("arrow-down"),r=t.resolveComponent("el-icon"),i=t.resolveComponent("el-dropdown-item"),c=t.resolveComponent("el-dropdown-menu"),s=t.resolveComponent("el-dropdown");return t.openBlock(),t.createElementBlock("div",null,[t.unref(l)?(t.openBlock(),t.createBlock(s,{key:0},{dropdown:t.withCtx(()=>[t.createVNode(c,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a),e=>(t.openBlock(),t.createBlock(i,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e)))]),_:2},1024))),256))]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("span",null,[t.createTextVNode(" 操作 "),t.createVNode(r,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(n)]),_:1})])]),_:1})):t.renderSlot(e.$slots,"default",{key:1})])}}},ve={class:"table-page-container"},he={style:{flex:"1",height:"0"}},fe=b({__name:"index",props:{showSearch:{type:Boolean,default:!0}},emits:["refresh","update:showSearch"],setup(e,{emit:l}){const a=e,{isMobile:o}=R(),n=()=>{l("refresh")},r=t.computed({get:()=>a.showSearch,set(e){l("update:showSearch",e)}});return t.watch(o,e=>{l("update:showSearch",!e)},{immediate:!0}),(e,l)=>(t.openBlock(),t.createElementBlock("div",ve,[t.renderSlot(e.$slots,"search",{},void 0,!0),t.createVNode(ae,{showSearch:t.unref(r),"onUpdate:showSearch":l[0]||(l[0]=e=>t.isRef(r)?r.value=e:null),onRefresh:n},{left:t.withCtx(()=>[t.renderSlot(e.$slots,"btn",{},void 0,!0)]),_:3},8,["showSearch"]),t.createElementVNode("div",he,[t.renderSlot(e.$slots,"table",{},void 0,!0)]),t.renderSlot(e.$slots,"default",{},void 0,!0)]))}},[["__scopeId","data-v-cd968be9"]]),ye={key:0,class:"search-container"},ge={key:1,class:"custom-drawer"},be=b({__name:"index",props:{visible:{type:Boolean,default:!0}},emits:["update:visible"],setup(e,{emit:l}){const{isMobile:a}=R(),o=()=>{l("update:visible",!1)};return(l,n)=>{const r=t.resolveComponent("el-card"),i=t.resolveComponent("el-drawer");return t.unref(a)?(t.openBlock(),t.createElementBlock("div",ge,[t.createVNode(i,{"model-value":e.visible,title:"筛选条件",direction:"ttb",onClose:o},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},8,["model-value"])])):t.withDirectives((t.openBlock(),t.createElementBlock("div",ye,[t.createVNode(r,null,{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3})],512)),[[t.vShow,e.visible]])}}},[["__scopeId","data-v-6e30b57f"]]),Ce={__name:"BaseChart",props:{option:{type:Object,required:!0},width:{type:String,default:"100%"},height:{type:String,default:"100%"}},emits:["chartClick","legendselectchanged"],setup(e,{expose:l,emit:a}){const o=e,n=t.ref(null),r=t.ref(null),i=e=>{a("chartClick",e)},s=e=>{a("legendselectchanged",e)},u=c.throttle(()=>{var e;try{null==(e=r.value)||e.resize()}catch(t){}},300,{leading:!0,trailing:!0});return t.watch(()=>o.option,e=>{if(r.value&&e)try{r.value.clear(),r.value.setOption(e)}catch(t){}},{deep:!0}),t.onMounted(async()=>{await(async()=>{try{if(await t.nextTick(),!n.value)return;r.value||(r.value=t.markRaw(f.init(n.value))),o.option&&r.value.setOption(o.option),r.value.on("click",i),r.value.on("legendselectchanged",s)}catch(e){}})(),u()}),t.onBeforeUnmount(()=>{if(r.value)try{r.value.off("click",i),r.value.off("legendselectchanged",s),r.value.dispose(),r.value=null}catch(e){}}),l({resize:u,setOption:e=>{if(r.value)try{r.value.setOption(e)}catch(t){}}}),(l,a)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"echartsRef",ref:n,style:t.normalizeStyle({width:e.width,height:e.height})},null,4))}},we=["element-loading-background"],ke={key:1,class:"empty-wrapper"},Ve=["src"],ze=(e=>(t.pushScopeId("data-v-ec2e25d8"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"empty-text"},"暂无数据",-1)),xe=b({__name:"CommonChart",props:{height:{type:String,default:"300px"},loading:{type:Boolean,default:!1},title:{type:String,default:"chart图表"},unit:{type:[Array,String],default:()=>[]},showCardHeader:{type:Boolean,default:!0},data:{type:Array,default:()=>[],required:!0},categoryName:{type:String,default:"name"},seriesConfig:{type:Array,default:()=>[],required:!0},flipAxis:{type:Boolean,default:!1},backgroundColor:{type:[String,null],default:null},boundaryGap:{type:Boolean,default:!0},toolTipFormatter:{type:[Function,null],default:null},mode:{type:String,default:"light"},reservedDigits:{type:Number,default:0},legendSelected:{type:Object,default:()=>({})},showLegendCheckAll:{type:Boolean,default:!0}},emits:["chartClick","legendSelectChanged"],setup(e,{emit:l}){const a=e,{isMobile:o}=R(),n=t.ref(null),r=t.ref(null),i=t.ref(0),c=t.ref(0),s=t.ref(null),u=e=>{l("chartClick",e)},d=e=>{p(e),l("legendSelectChanged",e)},p=e=>{"全选"===e.name&&r.value.setOption({legend:{selected:Object.keys(e.selected).reduce((t,l)=>(t[l]=e.selected[e.name],t),{})}})},m=t.computed(()=>a.showLegendCheckAll?{"全选":!1,...a.legendSelected}:a.legendSelected),v=t.computed(()=>{let e=a.seriesConfig;return a.showLegendCheckAll&&e.unshift({name:"全选",isCheckAll:!0,icon:"circle"}),e}),h=t.computed(()=>{if(a.backgroundColor){return a.backgroundColor.includes("gradient")||a.backgroundColor.includes("linear-gradient")?{background:a.backgroundColor,borderColor:""}:{backgroundColor:a.backgroundColor,borderColor:a.backgroundColor}}return"dark"===a.mode?{backgroundColor:"rgba(8 ,40 ,93, 0.9)",borderColor:"rgba(8 ,40 ,93, 0.9)"}:{}}),f=t.computed(()=>{if(a.backgroundColor){return a.backgroundColor.includes("gradient")||a.backgroundColor.includes("linear-gradient")?{background:"transparent",borderColor:"transparent"}:{backgroundColor:a.backgroundColor,borderColor:a.backgroundColor}}return"dark"===a.mode?{backgroundColor:"transparent",borderColor:"rgba(8 ,40 ,93, 0.9)"}:{}}),y=t.computed(()=>"dark"===a.mode?{color:"#fff"}:{color:"#000"}),g=t.computed(()=>a.backgroundColor?a.backgroundColor:"dark"===a.mode?"rgba(51 ,78 ,122 ,0.6)":"rgba(255, 255, 255, .9)"),b=t.computed(()=>!a.data||!Array.isArray(a.data)||0===a.data.length),C=t.computed(()=>Array.isArray(a.unit)?a.unit:[a.unit]),w=t.computed(()=>{const e={};a.seriesConfig.filter(e=>"bar"===e.type).forEach(t=>{var l,a,o,n;t.stack?e[t.stack]?e[t.stack].push(null!=(l=t.barMaxWidth)?l:30):e[t.stack]=[null!=(a=t.barMaxWidth)?a:30]:e.other?e.other.push(null!=(o=t.barMaxWidth)?o:30):e.other=[null!=(n=t.barMaxWidth)?n:30]});return Object.keys(e).reduce((t,l)=>"other"!==l?t+e[l][0]:t+e[l].reduce((e,t)=>e+t,0),0)}),k=t.computed(()=>{const e=10*a.data.reduce((e,t)=>{const l=(e=>{let t=0;for(let l=0;l<e.length;l++){const a=e[l];/[\u4e00-\u9fa5\u3000-\u303f\uff00-\uffef]/.test(a)?t+=2:t+=1}return t})(String(t[a.categoryName]||""));return l>e?l:e},0),t=Math.max(w.value,e);return a.flipAxis?Math.floor((c.value-80)/t):Math.floor((i.value-90)/t)}),V=t.computed(()=>{if(!a.data||a.data.length<=k.value||0===i.value)return{show:!1,start:0,end:100};const e=Math.ceil((a.data.length-k.value)/a.data.length*100);return{show:!0,start:100===e?95:e,end:100}}),z=t.computed(()=>{if(!(a.data&&Array.isArray(a.data)&&a.seriesConfig&&Array.isArray(a.seriesConfig)))return{tooltip:{trigger:"axis"},xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};const e=a.seriesConfig.filter(e=>e.axisIndex).length,t=e?((e,t="max")=>{if(!e.length)return 0;const l=a.seriesConfig.filter(e=>!e.axisIndex),o=e.reduce((e,t)=>(l.forEach(l=>{e.push(Number(t[l.prop]))}),e),[]);return"max"===t?Math.max(...o):"min"===t?Math.min(...o):void 0})(a.data,"max"):null,l=e?((e,t="max")=>{if(!e.length)return 0;const l=a.seriesConfig.filter(e=>e.axisIndex);if(!l.length)return 1;const o=e.reduce((e,t)=>(l.forEach(l=>{e.push(Number(t[l.prop]))}),e),[]);return"max"===t?Math.max(...o):"min"===t?Math.min(...o):void 0})(a.data,"max"):null,[n,r]=e?((e,t)=>{let l=Math.min(e,t),a=Math.max(e,t);if(0===l&&(l=1),0===a)return[];const o=String(Math.round(l)).length,n=Math.ceil(a/l);let r;r=o<=3?Math.ceil(l/Math.pow(10,o-1))*Math.pow(10,o-1):Math.ceil(l/Math.pow(10,o-2))*Math.pow(10,o-2);let i=r*n;return e>t?[i,r]:[r,i]})(t,l):[null,null],[i,c]=e?(u=r,(s=n)&&u?[Math.ceil(s/5),Math.ceil(u/5)]:[]):[null,null];var s,u;return{tooltip:{appendToBody:!o.value,formatter:a.toolTipFormatter,trigger:"axis",position:o.value?function(e,t,l,a,o){const n=l.offsetWidth,r=l.offsetHeight;return[(o.contentSize[0]-n)/2,(o.contentSize[1]-r)/2]}:"top",axisPointer:{type:"cross",crossStyle:{color:"#999"}},textStyle:{fontSize:o.value?12:14,..."dark"===a.mode?{color:"#fff"}:{}},..."dark"===a.mode?{backgroundColor:"#194690",borderWidth:0}:{},...o.value?{padding:[8,12],extraCssText:"max-width: 80%; word-wrap: break-word;"}:{}},dataZoom:[{type:"slider",show:V.value.show,start:V.value.start,end:V.value.end,height:a.flipAxis?"auto":6,width:a.flipAxis?6:"auto",bottom:a.flipAxis?"35px":"2px",right:a.flipAxis?"2px":"40px",left:a.flipAxis?"auto":"40px",showDataShadow:!1,showDetail:!1,handleSize:"100%",handleStyle:{color:"dark"===a.mode?"#19437a":"#DEDEDE",borderRadius:4,opacity:1,borderColor:"transparent",borderWidth:0},backgroundColor:"transparent",fillerColor:"dark"===a.mode?"#19437a":"#DEDEDE",borderColor:"transparent",moveHandleStyle:{color:"#DEDEDE"},selectedDataBackground:{lineStyle:{opacity:0},areaStyle:{opacity:0}},emphasis:{handleStyle:{color:"#606266",borderColor:"transparent",borderWidth:0,opacity:1}},yAxisIndex:a.flipAxis?[0]:null,xAxisIndex:a.flipAxis?null:[0],filterMode:"filter",textStyle:{color:"transparent"},labelPrecision:0,brushSelect:!1,zoomLock:!0,throttle:100}],legend:{type:"scroll",selected:{...m.value},data:v.value,x:"right",y:"top",..."dark"===a.mode?{textStyle:{color:"#fff"}}:{}},grid:{containLabel:!0,top:50,left:40,right:a.flipAxis?80:40,bottom:a.flipAxis?30:40},[a.flipAxis?"yAxis":"xAxis"]:[{type:"category",boundaryGap:a.boundaryGap,data:a.data.map(e=>e[a.categoryName]||""),axisPointer:{type:"shadow"},axisLabel:{internal:0,rotate:a.flipAxis?90:0,..."dark"===a.mode?{color:"#fff"}:{}}}],[a.flipAxis?"xAxis":"yAxis"]:[{type:"value",name:C.value[0]?`单位:${C.value[0]}`:null,nameTextStyle:{..."dark"===a.mode?{color:"#fff"}:{}},...e?{min:0,max:null!=n?n:1500,interval:i}:{},axisLabel:{formatter:"{value}",..."dark"===a.mode?{color:"#fff"}:{}}},{type:"value",name:C.value[1]?`单位:${C.value[1]}`:null,nameTextStyle:{..."dark"===a.mode?{color:"#fff"}:{}},...e?{min:0,max:null!=r?r:150,interval:c}:{},axisLabel:{formatter:"{value}",..."dark"===a.mode?{color:"#fff"}:{}}}],series:v.value.map(e=>{var t;return{type:e.type||"line",barMaxWidth:null!=(t=e.barMaxWidth)?t:30,data:e.isCheckAll?[]:a.data.map(t=>Number(t[e.prop]||0).toFixed(a.reservedDigits)),...e,...a.flipAxis?{xAxisIndex:e.axisIndex||0}:{yAxisIndex:e.axisIndex||0}}})}});return t.onMounted(()=>{s.value=new ResizeObserver(e=>{var t;null==(t=r.value)||t.resize();for(const l of e)i.value=l.target.getBoundingClientRect().width,c.value=l.target.getBoundingClientRect().height}),n.value&&s.value.observe(n.value)}),t.onBeforeUnmount(()=>{s.value&&s.value.disconnect()}),(l,a)=>{const o=t.resolveComponent("el-card"),i=t.resolveDirective("loading");return t.openBlock(),t.createBlock(o,{class:"card-container",style:t.normalizeStyle(t.unref(h))},t.createSlots({default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref_key:"chartContainer",ref:n,"element-loading-background":t.unref(g),style:t.normalizeStyle({height:e.height}),class:"card-body"},[t.unref(b)?(t.openBlock(),t.createElementBlock("div",ke,[t.createElementVNode("img",{src:t.unref("data:image/png;base64,"),alt:"empty",class:"empty-image"},null,8,Ve),ze])):(t.openBlock(),t.createBlock(Ce,{key:0,onChartClick:u,onLegendselectchanged:d,ref_key:"baseChartRef",ref:r,option:t.unref(z)},null,8,["option"]))],12,we)),[[i,e.loading]])]),_:2},[e.showCardHeader?{name:"header",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"header",{},()=>[t.createElementVNode("div",{class:"card-header",style:t.normalizeStyle(t.unref(f))},[t.createElementVNode("span",{class:"card-title",style:t.normalizeStyle(t.unref(y))},t.toDisplayString(e.title),5)],4)],!0)]),key:"0"}:void 0]),1032,["style"])}}},[["__scopeId","data-v-ec2e25d8"]]),Me=["element-loading-background"],Se=b({__name:"PieChart",props:{title:{type:String,required:!0},loading:{type:Boolean,default:!1},height:{type:String,default:"300px"},mode:{type:String,default:"light"},data:{type:Array,required:!0},center:{type:Array,default:()=>["50%","50%"]},radius:{type:Array,default:()=>["0%","70%"]},type:{type:String,default:"pie",validator:function(e){return-1!==["pie","doughnut","rose"].indexOf(e)}},showCenterText:{type:Boolean,default:!1},centerText:{type:String,default:""},labelPosition:{type:String,default:"inside",validator:function(e){return-1!==["inside","outside"].indexOf(e)}},roseType:{type:String,default:"radius",validator:function(e){return-1!==["radius","area"].indexOf(e)}},colors:{type:Array,default:()=>[]}},setup(e){const l=e,a=t.ref(null),o=t.ref(null),n=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],r=t.computed(()=>l.backgroundColor?{backgroundColor:l.backgroundColor,borderColor:l.backgroundColor}:"dark"===l.mode?{backgroundColor:"rgba(8 ,40 ,93, 0.9)",borderColor:"rgba(8 ,40 ,93, 0.9)"}:{}),i=t.computed(()=>l.backgroundColor?{backgroundColor:l.backgroundColor,borderColor:l.backgroundColor}:"dark"===l.mode?{backgroundColor:"transparent",borderColor:"rgba(8 ,40 ,93, 0.9)"}:{}),c=t.computed(()=>"dark"===l.mode?{color:"#fff"}:{color:"#000"}),s=t.computed(()=>"dark"===l.mode?"rgba(25, 70, 144, .9)":"rgba(255, 255, 255, .9)"),u=t.computed(()=>"doughnut"===l.type?2===l.radius.length&&"0%"!==l.radius[0]?l.radius:["50%","70%"]:l.radius),d=t.computed(()=>({color:l.colors.length>0?l.colors:n,tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)",..."dark"===l.mode?{backgroundColor:"#194690",textStyle:{color:"#fff"},borderWidth:0}:{}},legend:{orient:"horizontal",bottom:"0",..."dark"===l.mode?{textStyle:{color:"#fff"}}:{}},graphic:l.showCenterText?[{type:"text",left:"center",top:"middle",style:{text:l.centerText,fontSize:20,fontWeight:"bold",fill:"dark"===l.mode?"#fff":"#000"}}]:[],series:[{type:"pie",radius:u.value,center:l.center,data:l.data,..."rose"===l.type?{roseType:l.roseType}:{},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},label:{show:!0,position:l.labelPosition,formatter:"{b}: {d}%",..."dark"===l.mode?{color:"#fff"}:{}}}]}));return t.onMounted(()=>{(()=>{o.value=new ResizeObserver(e=>{var t;null==(t=a.value)||t.resize()});const e=document.querySelector(".card-body");e&&o.value.observe(e)})()}),t.onBeforeUnmount(()=>{o.value&&o.value.disconnect()}),(l,o)=>{const n=t.resolveComponent("el-card"),u=t.resolveDirective("loading");return t.openBlock(),t.createBlock(n,{class:"card-container",style:t.normalizeStyle(t.unref(r))},{header:t.withCtx(()=>[t.createElementVNode("div",{class:"card-header",style:t.normalizeStyle(t.unref(i))},[t.createElementVNode("span",{class:"card-title",style:t.normalizeStyle(t.unref(c))},t.toDisplayString(e.title),5)],4)]),default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-background":t.unref(s),style:t.normalizeStyle({height:e.height}),class:"card-body"},[t.createVNode(Ce,{ref_key:"baseChart",ref:a,option:t.unref(d),height:"100%"},null,8,["option"])],12,Me)),[[u,e.loading]])]),_:1},8,["style"])}}},[["__scopeId","data-v-747db0fa"]]),Be=e=>{try{return JSON.parse(e),!0}catch(t){return!1}},Ne=e=>Array.isArray(e)?Math.max(...e.map(Ne))+1:0,Ee=(e,t)=>!!/^[+-]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d{1,15})?)$/.test(e)&&!!/^[+-]?(90(\.0+)?|([1-8]?\d)(\.\d{1,15})?)$/.test(t),_e=e=>(t.pushScopeId("data-v-c613bad1"),e=e(),t.popScopeId(),e),Ae=["id"],Te={key:0,class:"error-content"},He=_e(()=>t.createElementVNode("div",{class:"error-icon"},"!",-1)),De={key:1,class:"loading-overlay"},Le=_e(()=>t.createElementVNode("p",null,"正在加载播放器...",-1)),Oe=b({__name:"index",props:{playerId:{type:String,default:()=>`flv-player-${Date.now()}-${Math.random().toString(36).substring(2,8)}`},src:{type:String,required:!0},autoplay:{type:Boolean,default:!0},muted:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},isLive:{type:Boolean,default:!0},timeout:{type:Number,default:3e4},maxRetries:{type:Number,default:3},flvOptions:{type:Object,default:()=>({})}},emits:["error","can-play","play","pause","ended","time-update","player-ready","retry"],setup(e,{expose:l,emit:a}){const o=e,i=t.ref(null),c=t.ref(""),s=t.ref(0),u=t.ref(null),d=t.ref(null),p=t.ref(null),m=t.ref(null);t.onMounted(()=>{y.default.isSupported()?t.nextTick(()=>{v()}):(c.value="您的浏览器不支持FLV播放,请使用Chrome或Firefox等现代浏览器",a("error",{message:c.value}))}),t.onBeforeUnmount(()=>{g(),b()});const v=()=>{if(o.src){c.value="",g();try{const e=m.value;if(!e)throw new Error("找不到视频元素");e.autoplay=o.autoplay,e.muted=o.muted,e.loop=o.loop,e.controls=o.controls;const t={type:"flv",url:o.src,isLive:o.isLive,cors:!0,withCredentials:!1,hasAudio:!0,hasVideo:!0,enableStashBuffer:!0,stashInitialSize:3145728,enableWorker:!0,lazyLoad:!1,lazyLoadMaxDuration:180,seekType:"range",fixAudioTimestampGap:!0,accurateSeek:!0},l=Object.assign({},t,o.flvOptions);if(!y.default.isSupported())throw new Error("当前浏览器不支持FLV播放");i.value=y.default.createPlayer(l),i.value.attachMediaElement(e),i.value.load(),i.value.on(y.default.Events.ERROR,(e,t)=>{C(`播放错误: ${e} - ${t}`)}),i.value.on(y.default.Events.MEDIA_INFO,e=>{}),e.addEventListener("canplay",()=>{a("can-play")}),e.addEventListener("play",()=>{a("play")}),e.addEventListener("pause",()=>{a("pause")}),e.addEventListener("ended",()=>{a("ended")}),e.addEventListener("timeupdate",()=>{a("time-update",e.currentTime)}),e.addEventListener("error",e=>{const t=e.target.error;let l="未知错误";if(t)switch(t.code){case 1:l="视频加载中断";break;case 2:l="网络错误";break;case 3:l="视频解码错误";break;case 4:l="视频资源不可用"}C(`视频元素错误: ${l}`)}),o.autoplay&&k(),d.value=setInterval(()=>{h()},5e3),a("player-ready",i.value)}catch(e){C(`播放器初始化错误: ${e.message||"未知错误"}`)}}},h=()=>{const e=m.value;e&&i.value&&e.readyState<=2&&e.paused&&!c.value&&f()},f=()=>{g(),t.nextTick(()=>{v()})},g=()=>{if(i.value)try{i.value.pause(),i.value.unload(),i.value.detachMediaElement(),i.value.destroy(),i.value=null}catch(e){}},b=()=>{u.value&&(clearTimeout(u.value),u.value=null),d.value&&(clearInterval(d.value),d.value=null)},C=e=>{c.value=e,a("error",{message:e}),s.value<o.maxRetries&&(s.value++,u.value=setTimeout(()=>{w()},3e3))},w=()=>{v(),a("retry")},k=()=>{const e=m.value;e&&e.play().catch(t=>{"NotAllowedError"!==t.name||e.muted||(e.muted=!0,e.play().catch(e=>{}))})};return t.watch(()=>o.src,(e,l)=>{e!==l&&(s.value=0,b(),t.nextTick(()=>{v()}))}),t.watch(()=>o.muted,e=>{const t=m.value;t&&(t.muted=e)}),l({play:k,pause:()=>{const e=m.value;e&&e.pause()},toggleMute:()=>{const e=m.value;return!!e&&(e.muted=!e.muted,e.muted)},retry:w,destroyPlayer:g,refreshPlayer:f,handleError:C}),(l,a)=>(t.openBlock(),t.createElementBlock("div",{class:"flv-player-container",ref_key:"playerContainer",ref:p},[t.createElementVNode("div",{id:e.playerId,class:"player-box"},[t.createElementVNode("video",{ref_key:"videoElement",ref:m,class:"video-js",controls:""},null,512)],8,Ae),c.value?(t.openBlock(),t.createElementBlock("div",Te,[He,t.createElementVNode("p",null,t.toDisplayString(c.value),1),t.createVNode(t.unref(r.ElButton),{type:"primary",size:"small",onClick:w,class:"retry-button"},{default:t.withCtx(()=>[t.createTextVNode(" 重试 ")]),_:1})])):t.createCommentVNode("",!0),c.value||i.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",De,[t.createVNode(t.unref(r.ElIcon),{class:"loading-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(n.Loading))]),_:1}),Le]))],512))}},[["__scopeId","data-v-c613bad1"]]),je=["src"],Ie={__name:"index",props:{src:{type:String,required:!0}},setup(e){const l=e,a=ref(document.documentElement.clientHeight-94.5+"px;"),o=ref(!0),n=computed(()=>l.src);return onMounted(()=>{setTimeout(()=>{o.value=!1},300),window.onresize=function(){a.value=document.documentElement.clientHeight-94.5+"px;"}}),(e,l)=>{const r=t.resolveDirective("loading");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle("height:"+t.unref(a))},[t.createElementVNode("iframe",{src:t.unref(n),frameborder:"no",style:{width:"100%",height:"100%"},scrolling:"auto"},null,8,je)],4)),[[r,t.unref(o)]])}}},$e=t.createElementVNode("div",{class:"el-upload__text"},[t.createTextVNode("将文件拖到此处,或"),t.createElementVNode("em",null,"点击上传")],-1),Pe={class:"el-upload__tip text-center"},Je={key:0,class:"el-upload__tip"},Ke=t.createElementVNode("span",null,"仅允许导入xls、xlsx格式文件。",-1),qe={class:"dialog-footer"},Ue={__name:"index",props:{title:{type:String,default:""},uploadUrl:{type:String,default:""},templateTitle:{type:String,default:""},templateUrl:{type:String,default:""},dataType:{type:String,default:""},showCheckBox:{type:Boolean,default:!0},headers:{type:Object,default:()=>({})}},emits:["loadSucccess"],setup(e,{expose:l,emit:a}){const o=e,i=t.ref(null),c=t.ref(""),s=t.reactive({open:!1,title:"",isUploading:!1,updateSupport:0,headers:o.headers}),u=t.reactive({}),d=()=>{(()=>{c.value=o.uploadUrl;const e=[`updateSupport=${s.updateSupport}`];o.dataType&&e.push(`dataType=${o.dataType}`),Object.keys(u).length&&Object.keys(u).forEach(t=>{e.push(`${t}=${u[t]}`)}),e.length>0&&(c.value+="?"+e.join("&"))})(),t.nextTick(()=>{i.value.submit()})},p=async()=>{if(o.templateUrl)try{const e=((e,t={})=>{if(!e)return"";try{const l=new URL(e,window.location.origin);return Object.keys(t).forEach(e=>{void 0!==t[e]&&null!==t[e]&&l.searchParams.append(e,t[e])}),l.toString()}catch(l){const a=Object.keys(t).filter(e=>void 0!==t[e]&&null!==t[e]).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&");return a?e.includes("?")?`${e}&${a}`:`${e}?${a}`:e}})(o.templateUrl,{...u}),t=await fetch(e,{method:"POST",headers:o.headers||{}});if(!t.ok)throw new Error(`下载失败,状态码:${t.status}`);const l=await t.blob(),a=window.URL.createObjectURL(l),n=document.createElement("a");n.style.display="none",n.href=a;const r=`${o.templateTitle||""}导入模板.xlsx`;n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(a)}catch(e){r.ElMessage.error("模板下载失败,请稍后重试")}else r.ElMessage.error("未配置模板下载地址")},m=(e,t,l)=>{s.isUploading=!0},v=(e,t,l)=>{s.open=!1,s.isUploading=!1,i.value.handleRemove(t);let o=e.msg;500==e.code&&null==e.msg&&(o="文件导入失败,请检查导入文件是否正确"),r.ElMessageBox.alert('<div style="overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;">'+o+"</div>","导入结果",{dangerouslyUseHTMLString:!0,confirmButtonText:"确定"}),a("loadSucccess")},h=(e,t,l)=>{s.isUploading=!1,i.value.handleRemove(t),r.ElMessageBox.alert('<div style="overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;">文件导入失败,请重新导入</div>',"导入结果",{dangerouslyUseHTMLString:!0,confirmButtonText:"确定"})},f=()=>{s.open=!1,s.isUploading=!1,i.value.clearFiles()};return l({init:e=>{s.open=!0,e&&Object.assign(u,e)}}),(l,a)=>{const o=t.resolveComponent("el-icon"),r=t.resolveComponent("el-checkbox"),u=t.resolveComponent("el-link"),y=t.resolveComponent("el-upload"),g=t.resolveComponent("el-button"),b=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(b,{title:e.title+"导入",modelValue:s.open,"onUpdate:modelValue":a[2]||(a[2]=e=>s.open=e),width:"400px","append-to-body":"",onClose:f},{footer:t.withCtx(()=>[t.createElementVNode("div",qe,[t.createVNode(g,{onClick:a[1]||(a[1]=e=>s.open=!1)},{default:t.withCtx(()=>[t.createTextVNode("取 消")]),_:1}),t.createVNode(g,{type:"primary",onClick:d},{default:t.withCtx(()=>[t.createTextVNode("确 定")]),_:1})])]),default:t.withCtx(()=>[t.createVNode(y,{ref_key:"uploadRef",ref:i,limit:1,accept:".xlsx, .xls",headers:s.headers,action:c.value,disabled:s.isUploading,"on-progress":m,"on-success":v,"on-error":h,"auto-upload":!1,drag:""},{tip:t.withCtx(()=>[t.createElementVNode("div",Pe,[e.showCheckBox?(t.openBlock(),t.createElementBlock("div",Je,[t.createVNode(r,{modelValue:s.updateSupport,"onUpdate:modelValue":a[0]||(a[0]=e=>s.updateSupport=e)},null,8,["modelValue"]),t.createTextVNode(" 是否更新已经存在的数据 ")])):t.createCommentVNode("",!0),Ke,t.createVNode(u,{type:"primary",underline:!1,style:{"font-size":"12px","vertical-align":"baseline"},onClick:p},{default:t.withCtx(()=>[t.createTextVNode(" 下载模板 ")]),_:1})])]),default:t.withCtx(()=>[t.createVNode(o,{class:"el-icon-upload"},{default:t.withCtx(()=>[t.createVNode(t.unref(n.UploadFilled))]),_:1}),$e]),_:1},8,["headers","action","disabled"])]),_:1},8,["title","modelValue"])}}},Fe={class:"action-container"},Re={key:0,class:"layer-switch"},We={key:1,class:"legendContainer"},Ge=b({__name:"index",props:{legendConfig:{type:Array,default:()=>[]},height:{type:String,default:"80vh"},width:{type:String,default:"100%"},staticMarkers:{type:Array,default:()=>[]},dynamicMarkers:{type:Array,default:()=>[]},polylines:{type:Array,default:()=>[]},polygons:{type:Array,default:()=>[]},bezierCurves:{type:Array,default:()=>[]},circles:{type:Array,default:()=>[]},center:{type:[String,Array],default:()=>[116.397428,39.90923]},mapStyle:{type:String,default:()=>"amap://styles/grey"},autoFitView:{type:Boolean,default:!0},changeMapType:{type:Boolean,default:!0},viewMode:{type:String,default:"2D"},amapKey:{type:String,default:"",required:!0}},emits:["loaded","overlay-click","overlay-mouseover","overlay-mouseout"],setup(e,{expose:l,emit:a}){const o=e;t.useCssVars(t=>({c5256a18:e.width,"1325cc8e":e.height}));const n=t.ref(null),r=t.shallowRef(null),i=t.ref([]),s=t.ref(!1),u=t.shallowRef(null);t.shallowRef(null);const d=t.shallowRef(null),p=t.shallowRef([]),m=t.shallowRef([]),v=t.shallowRef([]),h=t.shallowRef([]),f=t.shallowRef([]),y=t.shallowRef([]),b=t.shallowRef([]),C=t.shallowRef([]),w=t.shallowRef(new Map),k=t.shallowRef(new Map),V=t.reactive({currentZoom:10,baseZoom:10,minTextVisibleRadius:30,minTextVisibleArea:2e3,markerMinDistance:20,markerClusterDistance:40,circleDefaultConfig:{strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,fillColor:"#1890ff",fillOpacity:.1,draggable:!1},markerDefaultConfig:{icon:"https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",size:{width:26,height:32}},polylineDefaultConfig:{isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:8,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20},bezierCurveDefaultConfig:{isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:8,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20},polygonDefaultConfig:{fillColor:"#1890ff",strokeColor:"#1890ff",fillOpacity:.1,strokeOpacity:1,strokeWeight:3,strokeStyle:"dashed",strokeDasharray:[10,5],draggable:!1},textLabelDefaultStyle:{"background-color":"rgba(255, 255, 255, 0.8)","border-radius":"4px","box-shadow":"0 2px 6px rgba(0, 0, 0, 0.2)",padding:"4px 8px","text-align":"center","font-size":"12px","font-weight":"bold",color:"#333",border:"1px solid #1890ff"}});t.watch(()=>o.center,e=>{r.value&&e&&E(e)},{deep:!0}),t.watch(()=>o.circles,(e,t)=>{r.value&&(c.isEqual(e,t)||(P(),e&&e.length&&O(e),o.autoFitView&&_()))},{deep:!0}),t.watch(()=>o.staticMarkers,(e,t)=>{r.value&&(c.isEqual(e,t)||(J(),e&&e.length&&D(e),o.autoFitView&&_()))},{deep:!0}),t.watch(()=>o.dynamicMarkers,(e,t)=>{r.value&&(c.isEqual(e,t)||(K(),e&&e.length&&L(e),o.autoFitView&&_()))},{deep:!0}),t.watch(()=>o.polylines,(e,t)=>{r.value&&(c.isEqual(e,t)||(q(),e&&e.length&&j(e),o.autoFitView&&_()))},{deep:!0}),t.watch(()=>o.polygons,(e,t)=>{r.value&&(c.isEqual(e,t)||(U(),e&&e.length&&I(e),o.autoFitView&&_()))},{deep:!0}),t.watch(()=>o.bezierCurves,(e,t)=>{r.value&&(c.isEqual(e,t)||(F(),e&&e.length&&$(e),o.autoFitView&&_()))},{deep:!0});t.onMounted(async()=>{await z(),r.value&&(r.value.on("zoomend",()=>{R()}),r.value.on("moveend",()=>{R()})),D(o.staticMarkers),L(o.dynamicMarkers),j(o.polylines),I(o.polygons),$(o.bezierCurves),O(o.circles),o.legendConfig&&o.legendConfig.length&&A(),_(),a("loaded",r.value)}),t.onBeforeUnmount(()=>{r.value&&(r.value.off("zoomend"),r.value.off("moveend"),d.value&&(r.value.removeControl(d.value),d.value=null),J(),K(),q(),U(),F(),P(),k.value.forEach(e=>{e.clearOverlays()}),k.value.clear(),r.value.destroy(),r.value=null),p.value=[],m.value=[],v.value=[],h.value=[],f.value=[],y.value=[],b.value=[],C.value=[],w.value.clear()});const z=async()=>{try{const e=await g.default.load({key:o.amapKey,version:"2.0",plugins:["AMap.Marker","AMap.Polyline","AMap.Polygon","AMap.BezierCurve","AMap.Circle","AMap.Text","AMap.LabelMarker","AMap.BezierCurveEditor","AMap.TileLayer.Satellite","AMap.ControlBar","AMap.OverlayGroup"]}),t={viewMode:o.viewMode,zoom:15,mapStyle:o.mapStyle,center:x(o.center)||[116.397428,39.90923]};"3D"===o.viewMode&&(t.pitch=45),r.value=new e.Map(n.value,t),u.value=new e.TileLayer.Satellite({zIndex:1}),"3D"===o.viewMode&&(d.value||(d.value=new e.ControlBar({position:{bottom:"120px",zIndex:20}}),r.value.addControl(d.value))),V.currentZoom=r.value.getZoom()}catch(e){}},x=e=>"string"==typeof e&&e.includes(",")?e.split(",").map(Number):e,M=e=>e.map(e=>"string"==typeof e?e.split(",").map(Number):e),S=e=>Object.entries(e).map(([e,t])=>`${e}: ${t}`).join("; "),B=(e,t)=>{const l=(e=>{if(!k.value.has(e)){const t=new AMap.OverlayGroup;k.value.set(e,t)}return k.value.get(e)})(t);l.addOverlay(e)},N=e=>{const t=k.value.get(e);t&&(t.clearOverlays(),k.value.delete(e))},E=e=>{r.value&&r.value.setCenter(x(e))},_=(e=null)=>{if(r.value){const t=[...p.value,...m.value,...v.value,...h.value,...f.value,...y.value];t.length>0&&(e?r.value.setFitView(t,!1,e):r.value.setFitView(t))}},A=()=>{i.value=o.legendConfig.filter(e=>void 0===e.defaultVisible||!0===e.defaultVisible).map(e=>e.value),T(i.value)},T=e=>{w.value.clear(),e.forEach(e=>{w.value.set(e,!0)}),o.legendConfig.map(e=>e.value).forEach(t=>{((e,t)=>{const l=k.value.get(e);l&&(t?l.show():l.hide())})(t,e.includes(t))})},H=e=>{e?(r.value.setMapStyle(null),u.value.setMap(r.value),r.value.setFeatures(["bg"])):(r.value.setMapStyle(o.mapStyle),u.value.setMap(null),r.value.setFeatures(["bg","building","point","road","land","poi"]))},D=e=>{e.forEach(e=>{const{position:t,icon:l,size:o,blink:n,label:i,title:c,textLabelDefaultStyle:s,type:u}=e;if(t){const d=new AMap.Marker({position:x(t),icon:new AMap.Icon({image:l||V.markerDefaultConfig.icon,imageSize:o?new AMap.Size(o.width,o.height):new AMap.Size(V.markerDefaultConfig.size.width,V.markerDefaultConfig.size.height)}),size:o?new AMap.Size(o.width,o.height):new AMap.Size(V.markerDefaultConfig.size.width,V.markerDefaultConfig.size.height),offset:o?new AMap.Pixel(-o.width/2,-o.height):new AMap.Pixel(-V.markerDefaultConfig.size.width/2,-V.markerDefaultConfig.size.height),map:r.value,title:c});n&&d.dom&&d.dom.querySelector(".amap-icon").classList.add("blinking-marker"),i&&d.setLabel({direction:"top",offset:new AMap.Pixel(0,-5),content:`<div title="${i}" style="${S({...V.textLabelDefaultStyle,...s})}" class='info'>${i}</div>`}),d.on("click",()=>{a("overlay-click",{type:"staticMarker",data:e})}),d.originalData=e,p.value.push(d),u&&B(d,u)}})},L=e=>{e.forEach(e=>{const{position:t,icon:l,size:o,blink:n,label:i,title:c,textLabelDefaultStyle:s,type:u}=e;if(t){const d=new AMap.Marker({position:x(t),icon:new AMap.Icon({image:l||V.markerDefaultConfig.icon,imageSize:o?new AMap.Size(o.width,o.height):new AMap.Size(V.markerDefaultConfig.size.width,V.markerDefaultConfig.size.height)}),offset:o?new AMap.Pixel(-o.width/2,-o.height):new AMap.Pixel(-V.markerDefaultConfig.size.width/2,-V.markerDefaultConfig.size.height),size:o?new AMap.Size(o.width,o.height):new AMap.Size(V.markerDefaultConfig.size.width,V.markerDefaultConfig.size.height),map:r.value,title:c});n&&d.dom&&d.dom.querySelector(".amap-icon").classList.add("blinking-marker"),i&&d.setLabel({direction:"top",offset:new AMap.Pixel(0,-5),content:`<div title="${i}" style="${S({...V.textLabelDefaultStyle,...s})}" class='info'>${i}</div>`}),d.on("click",()=>{a("overlay-click",{type:"marker",data:e})}),d.originalData=e,m.value.push(d),u&&B(d,u)}})},O=e=>{e.forEach(e=>{if(e.radius&&e.center){const t=new AMap.Circle({...V.circleDefaultConfig,...e,center:x(e.center),radius:e.radius});r.value.add(t);let l=null;e.label&&(l=new AMap.Text({text:e.label,position:x(e.center),zIndex:1,style:{...V.textLabelDefaultStyle,...e.labelStyle||{}},offset:new AMap.Pixel(0,0),anchor:"center",zooms:[1,20]}),r.value.add(l),b.value.push({instance:l,circleId:`${x(e.center).join(",")}|${e.radius}`,circleInstance:t,radius:e.radius})),t.on("click",()=>{a("overlay-click",{type:"circle",data:e})}),t.on("mouseover",()=>{t.setOptions({strokeOpacity:1,strokeWeight:e.strokeWeight?2*e.strokeWeight:2*V.circleDefaultConfig.strokeWeight}),a("overlay-mouseover",{type:"circle",data:e})}),t.on("mouseout",()=>{t.setOptions({strokeOpacity:e.strokeOpacity||V.circleDefaultConfig.strokeOpacity,strokeWeight:e.strokeWeight||V.circleDefaultConfig.strokeWeight}),a("overlay-mouseout",{type:"circle",data:e})}),t.originalData=e,y.value.push(t),e.type&&(B(t,e.type),l&&B(l,e.type))}})},j=e=>{e.forEach(e=>{if(e.path&&e.path.length){const t=new AMap.Polyline({...V.polylineDefaultConfig,...e,path:M(e.path),map:r.value});t.on("click",()=>{a("overlay-click",{type:"polyline",data:e})}),t.on("mouseover",()=>{t.setOptions({strokeOpacity:1,borderWeight:e.borderWeight?2*e.borderWeight:2*V.polylineDefaultConfig.borderWeight}),a("overlay-mouseover",{type:"polyline",data:e})}),t.on("mouseout",()=>{t.setOptions({strokeOpacity:e.strokeOpacity?e.strokeOpacity:V.polylineDefaultConfig.strokeOpacity,borderWeight:e.borderWeight?e.borderWeight:V.polylineDefaultConfig.borderWeight}),a("overlay-mouseout",{type:"polyline",data:e})}),t.originalData=e,v.value.push(t),e.type&&B(t,e.type)}})},I=e=>{e.forEach(e=>{if(e.path&&e.path.length){const t=new AMap.Polygon({...V.polygonDefaultConfig,...e,path:M(e.path),map:r.value});let l=null;if(e.label){const a=(e=>{if(!e||0===e.length)return[0,0];let t=0,l=0;for(let a=0;a<e.length;a++)t+=e[a][0],l+=e[a][1];return[t/e.length,l/e.length]})(M(e.path));l=new AMap.Text({text:e.label,position:a,zIndex:1,style:{...V.textLabelDefaultStyle,...e.labelStyle||{}},offset:new AMap.Pixel(0,0),anchor:"center",zooms:[1,20]}),r.value.add(l),C.value.push({instance:l,polygonId:M(e.path).join("|"),polygonInstance:t,path:M(e.path)})}t.on("click",()=>{a("overlay-click",{type:"polygon",data:e})}),t.on("mouseover",()=>{t.setOptions({strokeOpacity:1,strokeWeight:e.strokeWeight?2*e.strokeWeight:2*V.polygonDefaultConfig.strokeWeight}),a("overlay-mouseover",{type:"polygon",data:e})}),t.on("mouseout",()=>{t.setOptions({strokeOpacity:e.strokeOpacity?e.strokeOpacity:V.polygonDefaultConfig.strokeOpacity,strokeWeight:e.strokeWeight?e.strokeWeight:V.polygonDefaultConfig.strokeWeight}),a("overlay-mouseout",{type:"polygon",data:e})}),t.originalData=e,h.value.push(t),e.type&&(B(t,e.type),l&&B(l,e.type))}})},$=e=>{e.forEach(e=>{if(e.path&&e.path.length){const l=new AMap.BezierCurve({...V.bezierCurveDefaultConfig,...e,path:(t=e.path,t.map(e=>e.map(e=>"string"==typeof e?Number(e):e))),map:r.value}),o=l.getPath();o&&o.length>0&&setTimeout(()=>{l.setPath(o)},1e3),l.on("click",()=>{a("overlay-click",{type:"bezierCurve",data:e})}),l.on("mouseover",()=>{l.setOptions({strokeOpacity:1,borderWeight:e.borderWeight?2*e.borderWeight:2*V.bezierCurveDefaultConfig.borderWeight}),a("overlay-mouseover",{type:"bezierCurve",data:e})}),l.on("mouseout",()=>{l.setOptions({strokeOpacity:e.strokeOpacity?e.strokeOpacity:V.bezierCurveDefaultConfig.strokeOpacity,borderWeight:e.borderWeight?e.borderWeight:V.bezierCurveDefaultConfig.borderWeight}),a("overlay-mouseout",{type:"bezierCurve",data:e})}),l.originalData=e,f.value.push(l),e.type&&B(l,e.type)}var t})},P=()=>{y.value.forEach(e=>{var t;e.off("click"),e.off("mouseover"),e.off("mouseout");const l=null==(t=e.originalData)?void 0:t.type;l&&N(l),e.setMap(null)}),y.value=[],b.value.forEach(e=>{e.instance.setMap(null)}),b.value=[]},J=()=>{p.value.forEach(e=>{var t;e.off("click"),e._clusterLabel&&(e._clusterLabel.off&&e._clusterLabel.off("click"),e._clusterLabel.setMap(null),e._clusterLabel=null);const l=null==(t=e.originalData)?void 0:t.type;l&&N(l),e.setMap(null)}),p.value=[]},K=()=>{m.value.forEach(e=>{var t;e.off("click"),e._clusterLabel&&(e._clusterLabel.off&&e._clusterLabel.off("click"),e._clusterLabel.setMap(null),e._clusterLabel=null);const l=null==(t=e.originalData)?void 0:t.type;l&&N(l),e.setMap(null)}),m.value=[]},q=()=>{v.value.forEach(e=>{var t;e.off("click"),e.off("mouseover"),e.off("mouseout");const l=null==(t=e.originalData)?void 0:t.type;l&&N(l),e.setMap(null)}),v.value=[]},U=()=>{h.value.forEach(e=>{var t;e.off("click"),e.off("mouseover"),e.off("mouseout");const l=null==(t=e.originalData)?void 0:t.type;l&&N(l),e.setMap(null)}),h.value=[],C.value.forEach(e=>{e.instance.setMap(null)}),C.value=[]},F=()=>{f.value.forEach(e=>{var t;e.off("click"),e.off("mouseover"),e.off("mouseout");const l=null==(t=e.originalData)?void 0:t.type;l&&N(l),e.setMap(null)}),f.value=[]},R=()=>{r.value&&(b.value.forEach(e=>{if(!e.circleInstance||!e.instance||!e.instance.dom)return;const t=e.circleInstance.getCenter(),l=e.radius,a=W(t,l),o=e.instance.dom.getBoundingClientRect().width;e.instance.dom.style.opacity=o>1.5*a?"0":"1"}),C.value.forEach(e=>{if(!e.polygonInstance||!e.instance||!e.instance.dom)return;const t=G(e.path),l=e.instance.dom.offsetWidth*e.instance.dom.offsetHeight;e.instance.dom.style.opacity=l>.3*t?"0":"1"}))},W=(e,t)=>{if(!r.value)return 0;const l=new AMap.LngLat(e.lng,e.lat).offset(t,90),a=r.value.lngLatToContainer(e),o=r.value.lngLatToContainer(l),n=o.x-a.x,i=o.y-a.y;return Math.sqrt(n*n+i*i)},G=e=>{if(!r.value||!e||e.length<3)return 0;const t=e.map(e=>{const t=new AMap.LngLat(e[0],e[1]),l=r.value.lngLatToContainer(t);return[l.x,l.y]});let l=0;for(let a=0,o=t.length-1;a<t.length;o=a++)l+=(t[o][0]+t[a][0])*(t[o][1]-t[a][1]);return Math.abs(l/2)};return l({fitView:_,updateCenter:E,handleLayerChange:H}),(l,a)=>{const o=t.resolveComponent("el-switch"),r=t.resolveComponent("el-checkbox"),c=t.resolveComponent("el-checkbox-group");return t.openBlock(),t.createElementBlock("div",{class:"mapViewContainer",id:"mapContainer",ref_key:"mapContainer",ref:n},[t.createElementVNode("div",Fe,[e.changeMapType?(t.openBlock(),t.createElementBlock("div",Re,[t.createVNode(o,{modelValue:s.value,"onUpdate:modelValue":a[0]||(a[0]=e=>s.value=e),"active-text":"卫星图","inactive-text":"标准图",onChange:H},null,8,["modelValue"])])):t.createCommentVNode("",!0),e.legendConfig.length?(t.openBlock(),t.createElementBlock("div",We,[t.createVNode(c,{modelValue:i.value,"onUpdate:modelValue":a[1]||(a[1]=e=>i.value=e),onChange:T},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.legendConfig,e=>(t.openBlock(),t.createBlock(r,{key:e.value,label:e.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0)])],512)}}},[["__scopeId","data-v-24729613"]]),Ze={key:0,class:"btn-container"},Ye={class:"help-button-container"},Qe={key:0,class:"layer-switch"},Xe={class:"search-container"},et={class:"place-suggestion-item"},tt={class:"name"},lt={class:"address"},at={class:"search-container"},ot={class:"delete-buttons"},nt={key:0},rt={key:0},it={class:"dialog-footer"},ct=(e=>(t.pushScopeId("data-v-d89fd5ba"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"operation-guide"},[t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"开始绘制:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,"在右侧选择绘制类型(多边形/圆形/折线等)"),t.createElementVNode("li",null,"选择后在地图上进行绘制操作"),t.createElementVNode("li",null,"点位:点击地图放置标记点"),t.createElementVNode("li",null,"折线/多边形:依次点击多个点完成绘制,鼠标右键结束"),t.createElementVNode("li",null,"圆形:长按鼠标左键拖动绘制圆形")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"编辑、拖拽覆盖物:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,[t.createElementVNode("strong",null,"左键双击"),t.createTextVNode("覆盖物(点除外)进入编辑模式")]),t.createElementVNode("li",null,"非圆形覆盖物支持直接拖拽移动"),t.createElementVNode("li",null,"进入编辑后拖拽控制点调整形状和位置"),t.createElementVNode("li",null,"编辑完成后右键地图空白处取消编辑")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"删除覆盖物:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,[t.createElementVNode("strong",null,"右键点击"),t.createTextVNode("覆盖物可删除单个图形")]),t.createElementVNode("li",null,"使用右侧批量操作按钮删除指定类型的所有图形"),t.createElementVNode("li",null,"使用清除所有按钮删除地图上的所有图形")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"其他功能:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,"使用地点搜索快速定位到指定位置"),t.createElementVNode("li",null,"切换卫星图/标准图查看不同地图样式"),t.createElementVNode("li",null,'绘制完成后点击"确认"保存,点击"取消"放弃修改')])])],-1)),st={class:"dialog-footer"},ut=b({__name:"index",props:{title:{type:String,default:"地图绘制"},allowedTypes:{type:Array,default:()=>["point","polyline","polygon","circle","bezierCurve"],validator:e=>e.every(e=>["point","polyline","polygon","circle","bezierCurve"].includes(e))},width:{type:String,default:"80vw"},height:{type:String,default:"60vh"},mapStyle:{type:String,default:()=>"amap://styles/normal"},markers:{type:[Array,String],default:()=>[]},markerConfig:{type:Object,default:()=>({})},circles:{type:[Array,String],default:()=>[]},circleConfig:{type:Object,default:()=>({})},polylines:{type:[Array,String],default:()=>[]},polylineConfig:{type:Object,default:()=>({})},polygons:{type:[Array,String],default:()=>[]},polygonConfig:{type:Object,default:()=>({})},bezierCurves:{type:[Array,String],default:()=>[]},bezierCurveConfig:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},multiple:{type:[Boolean,Array],default:!0,validator:e=>"boolean"==typeof e||!!Array.isArray(e)&&e.every(e=>["point","polyline","polygon","circle","bezierCurve"].includes(e))},isShowDefaultTriggerBtn:{type:Boolean,default:!0},formatJson:{type:Boolean,default:!0},center:{type:[String,Array,null],default:null},mapZoom:{type:Number,default:13},changeMapType:{type:Boolean,default:!0},amapKey:{type:String,default:"",required:!0}},emits:["update:markers","update:polylines","update:polygons","update:bezierCurves","update:circles"],setup(e,{expose:l,emit:a}){const o=e,{isMobile:i}=R(),c=t.computed({get:()=>Array.isArray(o.markers)?o.markers:Be(o.markers)?JSON.parse(o.markers):"string"==typeof o.markers&&o.markers?[o.markers]:[],set(e){a("update:markers",e)}}),s=t.computed({get(){if(o.polylines){let e=Be(o.polylines)?JSON.parse(o.polylines):o.polylines;return Array.isArray(e)&&e.some(e=>Be(e))&&(e=e.map(e=>Be(e)?JSON.parse(e):e)),Array.isArray(e)&&1===Ne(e)?e.length?[e]:[]:Array.isArray(e)&&Ne(e)>1?e:[]}return[]},set(e){a("update:polylines",e)}}),u=t.computed({get(){if(o.polygons){let e=Be(o.polygons)?JSON.parse(o.polygons):o.polygons;return Array.isArray(e)&&e.some(e=>Be(e))&&(e=e.map(e=>Be(e)?JSON.parse(e):e)),Array.isArray(e)&&1===Ne(e)?e.length?[e]:[]:Array.isArray(e)&&Ne(e)>1?e:[]}return[]},set(e){a("update:polygons",e)}}),d=t.computed({get(){if(o.bezierCurves){let e=Be(o.bezierCurves)?JSON.parse(o.polbezierCurvesylines):o.bezierCurves;return Array.isArray(e)&&e.some(e=>Be(e))&&(e=e.map(e=>Be(e)?JSON.parse(e):e)),Array.isArray(e)&&1===Ne(e)?e.length?[e]:[]:Array.isArray(e)&&Ne(e)>1?e:[]}return[]},set(e){a("update:bezierCurves",e)}}),p=t.computed({get(){if(o.circles){let e=Be(o.circles)?JSON.parse(o.circles):o.circles;return Array.isArray(e)&&e.some(e=>Be(e))&&(e=e.map(e=>Be(e)?JSON.parse(e):e)),Array.isArray(e)?e:"[object Object]"===Object.prototype.toString.call(e)?[e]:[]}return[]},set(e){a("update:circles",e)}}),m=t.ref(null),v=t.ref(!1),h=t.ref(!1),f=t.ref(!1),y=t.ref(""),b=t.ref(!1),C=t.ref(!1),w=t.shallowRef(null),k=t.shallowRef(null),V=t.ref([]),z=t.ref([]),x=t.ref([]),M=t.ref([]),S=t.ref([]),B=t.ref(null),N=t.ref(null),E=t.ref(null),_=t.ref(null),A=t.ref(null),T=t.ref(null),H=t.ref(""),D=t.ref(""),L=t.ref(null),O=t.reactive({icon:"https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",size:{width:26,height:32}}),j=t.reactive({isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:5,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20}),I=t.reactive({isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20}),$=t.reactive({fillColor:"#1890ff",strokeColor:"#1890ff",fillOpacity:.1,strokeOpacity:1,strokeWeight:3,strokeStyle:"dashed",strokeDasharray:[10,5],draggable:!1}),P=t.reactive({strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,fillColor:"#1890ff",fillOpacity:.1,zIndex:10,draggable:!1});t.onBeforeUnmount(()=>{w.value&&(w.value.destroy(),w.value=null)});const J=e=>"boolean"==typeof o.multiple?o.multiple:!Array.isArray(o.multiple)||o.multiple.includes(e),K=()=>{b.value=!0,t.nextTick(()=>{q()})},q=async()=>{try{h.value=!0;const t=await g.default.load({key:o.amapKey,version:"2.0",plugins:["AMap.MouseTool","AMap.PolyEditor","AMap.PolygonEditor","AMap.CircleEditor","AMap.BezierCurveEditor","AMap.Geolocation","AMap.PlaceSearch"]}),l={zoom:o.mapZoom,mapStyle:o.mapStyle};o.center&&(l.center="string"==typeof(e=o.center)?e.split(",").map(Number):e),w.value=new t.Map(L.value,l),m.value=new t.TileLayer.Satellite({zIndex:1});const a=new t.Geolocation({enableHighAccuracy:!0,timeout:1e4,zoomToAccuracy:!0,buttonPosition:"RB"});w.value.addControl(a),o.disabled||(k.value=new t.MouseTool(w.value),k.value.on("draw",G)),w.value.on("rightclick",X),document.addEventListener("contextmenu",e=>{e.preventDefault()}),T.value=new t.PlaceSearch({pageSize:10,pageIndex:1,city:"",citylimit:!1,autoFitView:!0}),o.center?(F(),h.value=!1):a.getCurrentPosition((e,t)=>{"complete"===e?w.value&&w.value.setCenter([t.position.lng,t.position.lat]):w.value&&w.value.setCenter([116.397428,39.90923]),F(),h.value=!1})}catch(t){h.value=!1}var e},U=(e,t)=>{"circle"!==e&&(t.setDraggable(!0),t.on("mousedown",e=>{"circle"===y.value&&t.setDraggable(!1)}),t.on("mouseup",e=>{t.setDraggable(!0)}),t.on("dragend",l=>{"marker"===e&&Y(t),"polyline"===e&&ie(t),"polygon"===e&&ce(t),"bezierCurve"===e&&se(t)})),t.on("rightclick",()=>{X(t)}),"marker"!==e&&t.on("dblclick",e=>{setTimeout(()=>{k.value&&k.value.close()}),ee(t)})},F=()=>{if(!w.value)return;const e=window.AMap;V.value=[],z.value=[],x.value=[],M.value=[],S.value=[],c.value.forEach(t=>{const[l,a]=t.split(",").map(Number),{size:n,icon:r}=o.markerConfig,i=new e.Marker({position:[l,a],icon:new e.Icon({image:r||O.icon,imageSize:n?new e.Size(n.width,n.height):new e.Size(O.size.width,O.size.height)}),offset:n?new e.Pixel(-n.width/2,-n.height):new e.Pixel(-O.size.width/2,-O.size.height),size:n?new e.Size(n.width,n.height):new e.Size(O.size.width,O.size.height),map:w.value});U("marker",i),V.value.push({obj:i,position:t,type:"marker"})}),s.value.forEach(t=>{const l=t.map(t=>{const[l,a]=t.split(",").map(Number);return new e.LngLat(l,a)}),a=new e.Polyline({path:l,map:w.value,...j,...o.polylineConfig});U("polyline",a),z.value.push({obj:a,path:t,type:"polyline"})}),u.value.forEach(t=>{const l=t.map(t=>{const[l,a]=t.split(",").map(Number);return new e.LngLat(l,a)}),a=new e.Polygon({path:l,map:w.value,...$,...o.polygonConfig});U("polygon",a),x.value.push({obj:a,path:t,type:"polygon"})}),d.value.forEach(t=>{const l=t.map(e=>e.map(e=>Number(e))),a=new e.BezierCurve({path:l,map:w.value,...I,...o.bezierCurveConfig});U("bezierCurve",a),M.value.push({obj:a,path:t,type:"bezierCurve"})}),p.value.forEach(t=>{const{center:l,radius:a}=t,[n,r]=l.split(",").map(Number),i=new e.Circle({center:[n,r],radius:a,...P,...o.circleConfig});w.value.add(i),U("circle",i),S.value.push({obj:i,center:l,radius:a,type:"circle"})});const t=[...V.value.map(e=>e.obj),...z.value.map(e=>e.obj),...x.value.map(e=>e.obj),...M.value.map(e=>e.obj),...S.value.map(e=>e.obj)];t.length>0&&w.value.setFitView(t)},W=e=>{if(k.value&&!o.disabled)switch(A.value&&re(),e){case"point":const{size:e,icon:t}=o.markerConfig;k.value.marker({icon:new AMap.Icon({image:t||O.icon,imageSize:e?new AMap.Size(e.width,e.height):new AMap.Size(O.size.width,O.size.height)}),offset:e?new AMap.Pixel(-e.width/2,-e.height):new AMap.Pixel(-O.size.width/2,-O.size.height),size:e?new AMap.Size(e.width,e.height):new AMap.Size(O.size.width,O.size.height)});break;case"polyline":case"bezierCurve":k.value.polyline({...j,...o.polylineConfig});break;case"polygon":k.value.polygon({...$,...o.polygonConfig});break;case"circle":k.value.circle({...P,...o.circleConfig})}},G=e=>{if(f.value=!0,o.disabled)return;const{obj:t}=e;if(t instanceof AMap.Marker&&!J("point")?be():t instanceof AMap.Polyline&&"bezierCurve"!==y.value&&!J("polyline")?Ce():t instanceof AMap.Polygon&&!J("polygon")?we():(t instanceof AMap.BezierCurve||t instanceof AMap.Polyline&&"bezierCurve"===y.value)&&!J("bezierCurve")?ke():t instanceof AMap.Circle&&!J("circle")&&t._opts.radius&&Ve(),t instanceof AMap.Marker){const e=t.getPosition(),l={obj:t,position:`${e.lng},${e.lat}`,type:"marker"};V.value.push(l),U("marker",t)}else if(t instanceof AMap.Polyline)if("bezierCurve"===y.value)Z(t);else{const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>1?(z.value.push({obj:t,path:e,type:"polyline"}),U("polyline",t)):t.setMap(null)}else if(t instanceof AMap.Polygon){const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>2?(x.value.push({obj:t,path:e,type:"polygon"}),U("polygon",t)):t.setMap(null)}else if(t instanceof AMap.BezierCurve){const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>2?(M.value.push({obj:t,path:e,type:"bezierCurve"}),U("bezierCurve",t)):t.setMap(null)}else if(t instanceof AMap.Circle){const e=t.getCenter(),l=t.getRadius();e&&l>0?(S.value.push({obj:t,center:`${e.lng},${e.lat}`,radius:l,type:"circle"}),U("circle",t)):t.setMap(null)}setTimeout(()=>{f.value=!1},100)},Z=e=>{const t=e.getPath();if(t.length<2)return void e.setMap(null);e.setMap(null);const l=[];l.push([t[0].lng,t[0].lat]);for(let o=1;o<t.length;o++){const e=t[o-1],a=t[o],n=e.lng+.3*(a.lng-e.lng),r=e.lat+.3*(a.lat-e.lat);l.push([n,r,a.lng,a.lat])}const a=new AMap.BezierCurve({path:l,...I,...o.bezierCurveConfig,map:w.value});Q(a),M.value.push({obj:a,path:l}),U("bezierCurve",a)},Y=e=>{if(o.disabled)return;const t=e.getPosition(),l=V.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==l&&(V.value[l].position=`${t.lng},${t.lat}`)},Q=e=>{o.disabled||(E.value&&E.value.close(),E.value=new AMap.BezierCurveEditor(w.value,e),E.value.open(),A.value=e)},X=e=>{setTimeout(()=>{o.disabled||f.value||(e instanceof AMap.Marker?te(e):e instanceof AMap.Polyline?le(e):e instanceof AMap.Polygon?ae(e):e instanceof AMap.BezierCurve?oe(e):e instanceof AMap.Circle?ne(e):(re(),y.value&&W(y.value)))},50)},ee=e=>{var t,l,a;o.disabled||A.value!==e&&(A.value&&re(),e instanceof AMap.Polyline?(a=e,o.disabled||(B.value&&B.value.close(),B.value=new AMap.PolyEditor(w.value,a),B.value.open(),A.value=a)):e instanceof AMap.Polygon?(l=e,o.disabled||(N.value&&N.value.close(),N.value=new AMap.PolygonEditor(w.value,l),N.value.open(),A.value=l)):e instanceof AMap.BezierCurve?Q(e):e instanceof AMap.Circle&&(t=e,o.disabled||(_.value&&_.value.close(),_.value=new AMap.CircleEditor(w.value,t),_.value.open(),A.value=t)))},te=e=>{o.disabled||fe("single",{type:"marker",instance:e})},le=e=>{o.disabled||fe("single",{type:"polyline",instance:e})},ae=e=>{o.disabled||fe("single",{type:"polygon",instance:e})},oe=e=>{o.disabled||fe("single",{type:"bezierCurve",instance:e})},ne=e=>{o.disabled||fe("single",{type:"circle",instance:e})},re=()=>{o.disabled||(B.value&&A.value instanceof AMap.Polyline&&(ie(),B.value.close()),N.value&&A.value instanceof AMap.Polygon&&(ce(),N.value.close()),E.value&&A.value instanceof AMap.BezierCurve&&(se(),E.value.close()),_.value&&A.value instanceof AMap.Circle&&(ue(),_.value.close()),A.value=null)},ie=(e=null)=>{const t=null!=e?e:B.value.getTarget();let l=t.getPath();Ne(l)>1&&(l=l[0],t.setPath(l));const a=l.map(e=>`${e.lng},${e.lat}`),o=z.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==o&&(z.value[o].path=a)},ce=(e=null)=>{const t=null!=e?e:N.value.getTarget(),l=t.getPath().map(e=>`${e.lng},${e.lat}`),a=x.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==a&&(x.value[a].path=l)},se=(e=null)=>{const t=null!=e?e:E.value.getTarget(),l=t.getPath(),a=[];try{if(l&&l.length>0){l[0].getLng&&l[0].getLat?a.push([l[0].getLng(),l[0].getLat()]):Array.isArray(l[0])&&(Array.isArray(l[0][0])?a.push(l[0][0]):a.push(l[0]));for(let e=1;e<l.length;e++){const t=l[e];if(Array.isArray(t)&&t.length>=2){const e=[];for(let l=0;l<t.length;l++){const a=t[l];a&&a.getLng&&a.getLat?(e.push(a.getLng()),e.push(a.getLat())):Array.isArray(a)&&a.length>=2?(e.push(a[0]),e.push(a[1])):"number"==typeof a&&e.push(a)}e.length>0&&a.push(e)}}}const e=M.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==e&&(M.value[e].path=a)}catch(o){}},ue=(e=null)=>{const t=null!=e?e:_.value.getTarget(),l=t.getCenter(),a=t.getRadius(),o=S.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==o&&(S.value[o].center=`${l.lng},${l.lat}`,S.value[o].radius=a)},de=()=>{var e,t,l,a,n;o.disabled||(re(),J("point")?c.value=V.value.map(e=>({path:"string"==typeof e.position?e.position:o.formatJson?JSON.stringify(e.position):e.position,type:e.type})):c.value=null!=(e=V.value.map(e=>({path:"string"==typeof e.position?e.position:o.formatJson?JSON.stringify(e.position):e.position,type:e.type}))[0])?e:"",J("polyline")?s.value=z.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type})):s.value=null!=(t=z.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type}))[0])?t:"",J("polygon")?u.value=x.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type})):u.value=null!=(l=x.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type}))[0])?l:"",J("bezierCurve")?d.value=M.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type})):d.value=null!=(a=M.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type}))[0])?a:"",J("circle")?p.value=S.value.map(e=>({path:o.formatJson?JSON.stringify({center:e.center,radius:e.radius}):{center:e.center,radius:e.radius},type:e.type})):p.value=null!=(n=S.value.map(e=>({path:o.formatJson?JSON.stringify({center:e.center,radius:e.radius}):{center:e.center,radius:e.radius},type:e.type}))[0])?n:"",pe())},pe=()=>{b.value=!1,v.value=!1,H.value="",D.value="",y.value="",V.value=[],z.value=[],x.value=[],M.value=[],S.value=[],k.value&&(k.value.off("draw",G),k.value.close()),B.value&&B.value.close(),N.value&&N.value.close(),E.value&&E.value.close(),_.value&&_.value.close(),w.value&&(w.value.off("rightclick",X),w.value.destroy(),w.value=null)},me=e=>({point:"绘制点",polyline:"绘制折线",polygon:"绘制多边形",circle:"绘制圆",bezierCurve:"绘制曲线"}[e]||e),ve=e=>{switch(e){case"point":return V.value.length;case"polyline":return z.value.length;case"polygon":return x.value.length;case"bezierCurve":return M.value.length;case"circle":return S.value.length;default:return 0}},he=()=>V.value.length+z.value.length+x.value.length+M.value.length+S.value.length,fe=async(e,t)=>{try{let l="";if("all"===e)l=`确定要删除所有图形吗?这将清除地图上的所有 ${he()} 个图形。`;else if("type"===e){const e=me(t).replace("绘制","");l=`确定要删除所有${e}吗?这将清除地图上的所有 ${ve(t)} 个${e}。`}else if("single"===e){let e="";switch(t.type){case"marker":e="点";break;case"polyline":e="折线";break;case"polygon":e="多边形";break;case"bezierCurve":e="曲线";break;case"circle":e="圆形"}l=`确定要删除这个${e}吗?`}if(await r.ElMessageBox.confirm(l,"删除确认"),"all"===e)ye();else if("type"===e)ge(t);else if("single"===e)switch(t.type){case"marker":(e=>{e.setMap(null);const t=V.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&V.value.splice(t,1)})(t.instance);break;case"polyline":(e=>{e.setMap(null);const t=z.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&z.value.splice(t,1)})(t.instance);break;case"polygon":(e=>{e.setMap(null);const t=x.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&x.value.splice(t,1)})(t.instance);break;case"bezierCurve":(e=>{e.setMap(null);const t=M.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&M.value.splice(t,1)})(t.instance);break;case"circle":(e=>{e.setMap(null);const t=S.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&S.value.splice(t,1)})(t.instance)}}catch(l){}},ye=()=>{o.disabled||(re(),be(),Ce(),we(),ke(),Ve(),W(y.value))},ge=e=>{if(!o.disabled){switch(re(),e){case"point":be();break;case"polyline":Ce();break;case"polygon":we();break;case"bezierCurve":ke();break;case"circle":Ve()}W(y.value)}},be=()=>{o.disabled||(V.value.forEach(e=>{e.obj.setMap(null)}),V.value=[])},Ce=()=>{o.disabled||(z.value.forEach(e=>{e.obj.setMap(null)}),z.value=[])},we=()=>{o.disabled||(x.value.forEach(e=>{e.obj.setMap(null)}),x.value=[])},ke=()=>{o.disabled||(M.value.forEach(e=>{e.obj.setMap(null)}),M.value=[])},Ve=()=>{o.disabled||(S.value.forEach(e=>{e.obj.setMap(null)}),S.value=[])},ze=(e,t)=>{0!==e.length?T.value.search(e,(e,l)=>{if("complete"===e&&"OK"===l.info){const e=l.poiList.pois.map(e=>({name:e.name,address:e.address,location:e.location}));t(e)}else t([])}):t([])},xe=e=>{let t=(e=>{const t=e.split(",");return 2===t.length&&Ee(t[0],t[1])})(e);if(!t)return void r.ElMessage.error("经纬度格式错误,请输入如:103.98673,30.584973 格式,小数位数不超过15位");const l=e.split(",");new AMap.InfoWindow({content:`<div><p>${e}</p></div>`,offset:new AMap.Pixel(0,-30),autoMove:!1,closeWhenClickMap:!0}).open(w.value,l),w.value.setZoomAndCenter(20,l),D.value=""},Me=e=>{if(e&&e.location){new AMap.InfoWindow({content:`<div><h4>${e.name}</h4><p>${e.address||"暂无地址信息"}</p></div>`,offset:new AMap.Pixel(0,-30),autoMove:!1,closeWhenClickMap:!0}).open(w.value,[e.location.lng,e.location.lat]),w.value.setZoomAndCenter(20,[e.location.lng,e.location.lat])}},Se=e=>{e?(w.value.setMapStyle(null),m.value.setMap(w.value),w.value.setFeatures(["bg"])):(w.value.setMapStyle(o.mapStyle),m.value.setMap(null),w.value.setFeatures(["bg","building","point","road","land","poi"]))};return l({openDialog:K}),(l,a)=>{const o=t.resolveComponent("el-button"),r=t.resolveComponent("el-switch"),c=t.resolveComponent("el-divider"),s=t.resolveComponent("el-autocomplete"),u=t.resolveComponent("el-input"),d=t.resolveComponent("el-radio"),p=t.resolveComponent("el-radio-group"),m=t.resolveComponent("el-card"),f=t.resolveComponent("el-dialog"),g=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",null,[t.renderSlot(l.$slots,"trigger",{openDialog:K},()=>[e.isShowDefaultTriggerBtn?(t.openBlock(),t.createBlock(o,{key:0,onClick:K},{default:t.withCtx(()=>[t.createTextVNode("打开绘制弹窗")]),_:1})):t.createCommentVNode("",!0)],!0),t.createVNode(f,{title:e.title,"append-to-body":"",modelValue:b.value,"onUpdate:modelValue":a[6]||(a[6]=e=>b.value=e),width:e.width,onClose:pe,class:"map-drawing-dialog"},{footer:t.withCtx(()=>[t.createElementVNode("span",it,[t.createVNode(o,{onClick:pe},{default:t.withCtx(()=>[t.createTextVNode("取消")]),_:1}),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(o,{key:0,type:"primary",onClick:de},{default:t.withCtx(()=>[t.createTextVNode("确认")]),_:1}))])]),default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":"系统定位中,请稍后...",class:t.normalizeClass(["draw-container",t.unref(i)&&"draw-container-mobile"]),style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:"map-container",ref_key:"mapContainer",ref:L},null,512),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Ze,[t.createVNode(m,{shadow:"never"},{default:t.withCtx(()=>[t.createElementVNode("div",Ye,[t.createVNode(o,{type:"primary",icon:t.unref(n.QuestionFilled),onClick:a[0]||(a[0]=e=>C.value=!0),class:"help-button"},{default:t.withCtx(()=>[t.createTextVNode(" 操作说明 ")]),_:1},8,["icon"])]),e.changeMapType&&!t.unref(i)?(t.openBlock(),t.createElementBlock("div",Qe,[t.createVNode(r,{modelValue:v.value,"onUpdate:modelValue":a[1]||(a[1]=e=>v.value=e),"active-text":"卫星图","inactive-text":"标准图",onChange:Se},null,8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(i)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("地点搜索")]),_:1})),t.createElementVNode("div",Xe,[t.createVNode(s,{modelValue:H.value,"onUpdate:modelValue":a[2]||(a[2]=e=>H.value=e),"fetch-suggestions":ze,placeholder:"搜索地点",onSelect:Me,"trigger-on-focus":!1,class:"place-search-input"},{default:t.withCtx(({item:e})=>[t.createElementVNode("div",et,[t.createElementVNode("div",tt,t.toDisplayString(e.name),1),t.createElementVNode("div",lt,t.toDisplayString(e.address),1)])]),_:1},8,["modelValue"])]),t.unref(i)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:2,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("经纬度搜索")]),_:1})),t.createElementVNode("div",at,[t.createVNode(u,{modelValue:D.value,"onUpdate:modelValue":a[3]||(a[3]=e=>D.value=e),onChange:xe,style:{width:"100%"},placeholder:"请输入GCJ-02坐标系经纬度"},null,8,["modelValue"])]),t.unref(i)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:3,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("绘制按钮")]),_:1})),t.createVNode(p,{onChange:W,modelValue:y.value,"onUpdate:modelValue":a[4]||(a[4]=e=>y.value=e)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allowedTypes,e=>(t.openBlock(),t.createBlock(d,{key:e,onClick:t.withModifiers(t=>(e=>{e===y.value?y.value="":y.value=e,y.value?W(y.value):k.value&&k.value.close()})(e),["prevent"]),label:e,border:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(me(e)),1)]),_:2},1032,["onClick","label"]))),128))]),_:1},8,["modelValue"]),t.createElementVNode("div",ot,[t.unref(i)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:0,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("批量操作")]),_:1})),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allowedTypes,e=>(t.openBlock(),t.createBlock(o,{key:`delete-${e}`,size:"small",type:"danger",onClick:t=>fe("type",e),disabled:0===ve(e)},{default:t.withCtx(()=>[t.createTextVNode(" 删除所有"+t.toDisplayString(me(e))+" ",1),ve(e)>0?(t.openBlock(),t.createElementBlock("span",nt,"("+t.toDisplayString(ve(e))+")",1)):t.createCommentVNode("",!0)]),_:2},1032,["onClick","disabled"]))),128)),t.unref(i)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("全局操作")]),_:1})),t.createVNode(o,{size:"small",type:"danger",onClick:a[5]||(a[5]=e=>fe("all")),disabled:0===he()},{default:t.withCtx(()=>[t.createTextVNode(" 清除所有图形 "),he()>0?(t.openBlock(),t.createElementBlock("span",rt,"("+t.toDisplayString(he())+")",1)):t.createCommentVNode("",!0)]),_:1},8,["disabled"])])]),_:1})]))],6)),[[g,h.value]])]),_:1},8,["title","modelValue","width"]),t.createVNode(f,{title:"操作说明",modelValue:C.value,"onUpdate:modelValue":a[8]||(a[8]=e=>C.value=e),width:"600px","append-to-body":""},{footer:t.withCtx(()=>[t.createElementVNode("span",st,[t.createVNode(o,{type:"primary",onClick:a[7]||(a[7]=e=>C.value=!1)},{default:t.withCtx(()=>[t.createTextVNode("我知道了")]),_:1})])]),default:t.withCtx(()=>[ct]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-d89fd5ba"]]),dt={key:0,class:"btn-container"},pt={class:"help-button-container"},mt={key:0,class:"layer-switch"},vt={class:"search-container"},ht={class:"place-suggestion-item"},ft={class:"name"},yt={class:"address"},gt={class:"search-container"},bt={class:"delete-buttons"},Ct={key:0},wt={key:0},kt={class:"dialog-footer"},Vt=(e=>(t.pushScopeId("data-v-6b8c3e46"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"operation-guide"},[t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"开始绘制:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,"先在右侧选择业务类型(如项目点位、项目工区等)"),t.createElementVNode("li",null,"根据业务提示选择可用的绘制方式"),t.createElementVNode("li",null,"点位:点击地图放置标记点"),t.createElementVNode("li",null,"折线/多边形:依次点击多个点完成绘制,鼠标右键结束"),t.createElementVNode("li",null,"圆形:长按鼠标左键拖动绘制圆形")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"编辑、拖拽覆盖物:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,[t.createElementVNode("strong",null,"左键双击"),t.createTextVNode("覆盖物(点除外)进入编辑模式")]),t.createElementVNode("li",null,"非圆形覆盖物支持直接拖拽移动"),t.createElementVNode("li",null,"进入编辑后拖拽控制点调整形状和位置"),t.createElementVNode("li",null,"编辑完成后右键地图空白处取消编辑")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"删除覆盖物:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,[t.createElementVNode("strong",null,"右键点击"),t.createTextVNode("覆盖物可删除单个图形")]),t.createElementVNode("li",null,"使用右侧批量操作按钮删除指定业务类型的所有图形"),t.createElementVNode("li",null,"使用清除所有按钮删除地图上的所有图形")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"其他功能:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,"使用地点搜索快速定位到指定位置"),t.createElementVNode("li",null,"切换卫星图/标准图查看不同地图样式"),t.createElementVNode("li",null,'绘制完成后点击"确认"保存,点击"取消"放弃修改')])])],-1)),zt={class:"dialog-footer"},xt=b({__name:"index",props:{title:{type:String,default:"地图绘制"},width:{type:String,default:"80vw"},height:{type:String,default:"60vh"},mapStyle:{type:String,default:()=>"amap://styles/normal"},markers:{type:[Array,String],default:()=>[]},markerConfig:{type:Object,default:()=>({})},circles:{type:[Array,String],default:()=>[]},circleConfig:{type:Object,default:()=>({})},polylines:{type:[Array,String],default:()=>[]},polylineConfig:{type:Object,default:()=>({})},polygons:{type:[Array,String],default:()=>[]},polygonConfig:{type:Object,default:()=>({})},bezierCurves:{type:[Array,String],default:()=>[]},bezierCurveConfig:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},businessConfigs:{type:Array,default:()=>[{key:"lngLat",label:"项目中心点",multiple:!1,drawTypes:["point"]},{key:"yyxLngLat",label:"项目营业线",multiple:!0,drawTypes:["polyline"]},{key:"projectWorkArea",label:"项目工区",multiple:!0,drawTypes:["polygon","circle"]},{key:"workDeviceArea",label:"作业设备限制区域",multiple:!0,drawTypes:["polygon","circle"]},{key:"workPersonnelArea",label:"作业人员区域",multiple:!0,drawTypes:["polygon","circle"]}],validator(e){const t=["point","polyline","polygon","circle","bezierCurve"];return Array.isArray(e)&&e.every(e=>{if(!e||"object"!=typeof e)return!1;const{key:l,label:a,drawTypes:o,multiple:n}=e;return!("string"!=typeof l||!l)&&(!("string"!=typeof a||!a)&&(!(!Array.isArray(o)||0===o.length)&&(!!o.every(e=>t.includes(e))&&(void 0===n||"boolean"==typeof n))))})}},isShowDefaultTriggerBtn:{type:Boolean,default:!0},formatJson:{type:Boolean,default:!0},center:{type:[String,Array,null],default:null},mapZoom:{type:Number,default:13},changeMapType:{type:Boolean,default:!0},amapKey:{type:String,default:"",required:!0}},emits:["update:markers","update:polylines","update:polygons","update:bezierCurves","update:circles"],setup(e,{expose:l,emit:a}){const o=e,{isMobile:i}=R(),c=t.ref(""),s=e=>o.businessConfigs.find(t=>t.key===e),u=t.computed(()=>s(c.value)||null),d=t.computed(()=>{var e,t;return null!=(t=null==(e=u.value)?void 0:e.drawTypes)?t:[]}),p=t.computed({get:()=>o.markers&&Array.isArray(o.markers)?o.markers.map(e=>({businessKey:e.businessKey||"",type:"marker",path:Be(e.path)?JSON.parse(e.path):e.path})):[],set(e){a("update:markers",e)}}),m=t.computed({get:()=>o.polylines&&Array.isArray(o.polylines)?o.polylines.map(e=>({businessKey:e.businessKey||"",type:"polyline",path:Be(e.path)?JSON.parse(e.path):e.path})):[],set(e){a("update:polylines",e)}}),v=t.computed({get:()=>o.polygons&&Array.isArray(o.polygons)?o.polygons.map(e=>({businessKey:e.businessKey||"",type:"polygon",path:Be(e.path)?JSON.parse(e.path):e.path})):[],set(e){a("update:polygons",e)}}),h=t.computed({get:()=>o.bezierCurves&&Array.isArray(o.bezierCurves)?o.bezierCurves.map(e=>({businessKey:e.businessKey||"",type:"bezierCurve",path:Be(e.path)?JSON.parse(e.path):e.path})):[],set(e){a("update:bezierCurves",e)}}),f=t.computed({get:()=>o.circles&&Array.isArray(o.circles)?o.circles.map(e=>({businessKey:e.businessKey||"",type:"circle",path:Be(e.path)?JSON.parse(e.path):e.path})):[],set(e){a("update:circles",e)}}),y=t.ref(null),b=t.ref(!1),C=t.ref(!1),w=t.ref(!1),k=t.ref(""),V=t.ref(!1),z=t.ref(!1),x=t.shallowRef(null),M=t.shallowRef(null),S=t.ref([]),B=t.ref([]),N=t.ref([]),E=t.ref([]),_=t.ref([]),A=t.ref(null),T=t.ref(null),H=t.ref(null),D=t.ref(null),L=t.ref(null),O=t.ref(null),j=t.ref(""),I=t.ref(""),$=t.ref(null),P=t.reactive({icon:"https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",size:{width:26,height:32}}),J=t.reactive({isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:5,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20}),K=t.reactive({isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20}),q=t.reactive({fillColor:"#1890ff",strokeColor:"#1890ff",fillOpacity:.1,strokeOpacity:1,strokeWeight:3,strokeStyle:"dashed",strokeDasharray:[10,5],draggable:!1}),U=t.reactive({strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,fillColor:"#1890ff",fillOpacity:.1,zIndex:10,draggable:!1});t.onBeforeUnmount(()=>{x.value&&(x.value.destroy(),x.value=null)});const F=()=>{V.value=!0,t.nextTick(()=>{W()})},W=async()=>{try{C.value=!0;const t=await g.default.load({key:o.amapKey,version:"2.0",plugins:["AMap.MouseTool","AMap.PolyEditor","AMap.PolygonEditor","AMap.CircleEditor","AMap.BezierCurveEditor","AMap.Geolocation","AMap.PlaceSearch"]}),l={zoom:o.mapZoom,mapStyle:o.mapStyle};o.center&&(l.center="string"==typeof(e=o.center)?e.split(",").map(Number):e),x.value=new t.Map($.value,l),y.value=new t.TileLayer.Satellite({zIndex:1});const a=new t.Geolocation({enableHighAccuracy:!0,timeout:1e4,zoomToAccuracy:!0,buttonPosition:"RB"});x.value.addControl(a),o.disabled||(M.value=new t.MouseTool(x.value),M.value.on("draw",le)),x.value.on("rightclick",re),document.addEventListener("contextmenu",e=>{e.preventDefault()}),O.value=new t.PlaceSearch({pageSize:10,pageIndex:1,city:"",citylimit:!1,autoFitView:!0}),o.center?(X(),C.value=!1):a.getCurrentPosition((e,t)=>{"complete"===e?x.value&&x.value.setCenter([t.position.lng,t.position.lat]):x.value&&x.value.setCenter([116.397428,39.90923]),X(),C.value=!1})}catch(t){C.value=!1}var e},G=(e,t)=>{"circle"!==e&&(t.setDraggable(!0),t.on("mousedown",e=>{"circle"===k.value&&t.setDraggable(!1)}),t.on("mouseup",e=>{t.setDraggable(!0)}),t.on("dragend",l=>{"marker"===e&&oe(t),"polyline"===e&&ve(t),"polygon"===e&&he(t),"bezierCurve"===e&&fe(t)})),t.on("rightclick",()=>{re(t)}),"marker"!==e&&t.on("dblclick",e=>{setTimeout(()=>{M.value&&M.value.close()}),ie(t)})},Z=e=>{if("string"==typeof e){if(Be(e))try{return JSON.parse(e)}catch(t){return e}return e}return e},Y=e=>{let t="",l=e;return l&&"object"==typeof l&&!Array.isArray(l)&&(l.businessKey&&(t=l.businessKey),void 0!==l.path?l=l.path:void 0!==l.data&&(l=l.data)),l=Z(l),l&&"object"==typeof l&&!Array.isArray(l)&&l.businessKey&&!t&&(t=l.businessKey),{payload:l,businessKey:t}},Q=e=>{var t;const{payload:l,businessKey:a}=Y(e);let o=[];if(!l)return{path:o,businessKey:a};if(Array.isArray(l))o=l;else if("string"==typeof l){const e=Z(l);Array.isArray(e)?o=e:e&&"object"==typeof e&&Array.isArray(e.path)&&(o=e.path)}else l&&"object"==typeof l&&(Array.isArray(l.path)?o=l.path:Array.isArray(l)&&(o=l));return{path:o,businessKey:null!=(t=null==l?void 0:l.businessKey)?t:a}},X=()=>{if(!x.value)return;const e=window.AMap;S.value=[],B.value=[],N.value=[],E.value=[],_.value=[],p.value.forEach(t=>{const l=(e=>{var t,l,a;const{payload:o,businessKey:n}=Y(e);if(!o)return null;if("string"==typeof o)return{position:o,businessKey:n};if(o&&"object"==typeof o){const e=null!=(l=null!=(t=o.position)?t:o.path)?l:"";if("string"==typeof e&&e)return{position:e,businessKey:null!=(a=o.businessKey)?a:n}}return null})(t);if(!l)return;const{position:a,businessKey:n}=l;if(!a)return;const[r,i]=a.split(",").map(Number);if(Number.isNaN(r)||Number.isNaN(i))return;const{size:c,icon:s}=o.markerConfig,u=new e.Marker({position:[r,i],icon:new e.Icon({image:s||P.icon,imageSize:c?new e.Size(c.width,c.height):new e.Size(P.size.width,P.size.height)}),offset:c?new e.Pixel(-c.width/2,-c.height):new e.Pixel(-P.size.width/2,-P.size.height),size:c?new e.Size(c.width,c.height):new e.Size(P.size.width,P.size.height),map:x.value});G("marker",u),S.value.push({obj:u,position:a,type:"marker",businessKey:n})}),m.value.forEach(t=>{const{path:l,businessKey:a}=Q(t);if(!Array.isArray(l)||!l.length)return;const n=l.map(t=>{if("string"==typeof t){const[l,a]=t.split(",").map(Number);return Number.isNaN(l)||Number.isNaN(a)?null:new e.LngLat(l,a)}if(Array.isArray(t)&&t.length>=2){const l=Number(t[0]),a=Number(t[1]);return Number.isNaN(l)||Number.isNaN(a)?null:new e.LngLat(l,a)}return null}).filter(Boolean);if(!n.length)return;const r=new e.Polyline({path:n,map:x.value,...J,...o.polylineConfig});G("polyline",r);const i=n.map(e=>`${e.getLng()},${e.getLat()}`);B.value.push({obj:r,path:i,type:"polyline",businessKey:a})}),v.value.forEach(t=>{const{path:l,businessKey:a}=Q(t);if(!Array.isArray(l)||!l.length)return;const n=l.map(t=>{if("string"==typeof t){const[l,a]=t.split(",").map(Number);return Number.isNaN(l)||Number.isNaN(a)?null:new e.LngLat(l,a)}if(Array.isArray(t)&&t.length>=2){const l=Number(t[0]),a=Number(t[1]);return Number.isNaN(l)||Number.isNaN(a)?null:new e.LngLat(l,a)}return null}).filter(Boolean);if(!n.length)return;const r=new e.Polygon({path:n,map:x.value,...q,...o.polygonConfig});G("polygon",r);const i=n.map(e=>`${e.getLng()},${e.getLat()}`);N.value.push({obj:r,path:i,type:"polygon",businessKey:a})}),h.value.forEach(t=>{const{path:l,businessKey:a}=Q(t);if(!Array.isArray(l)||!l.length)return;const n=l.map(e=>Array.isArray(e)?e.map(e=>Number(e)):Number(e)),r=new e.BezierCurve({path:n,map:x.value,...K,...o.bezierCurveConfig});G("bezierCurve",r),E.value.push({obj:r,path:n,type:"bezierCurve",businessKey:a})}),f.value.forEach(t=>{const l=(e=>{var t,l,a,o,n,r;const{payload:i,businessKey:c}=Y(e);if(!i)return null;let s="",u=0;if("string"==typeof i){const e=Z(i);if(e&&"object"==typeof e)return s=null!=(t=e.center)?t:"",u=null!=(l=e.radius)?l:0,{center:s,radius:u,businessKey:null!=(a=e.businessKey)?a:c}}else if(i&&"object"==typeof i)return s=null!=(o=i.center)?o:"",u=null!=(n=i.radius)?n:0,{center:s,radius:u,businessKey:null!=(r=i.businessKey)?r:c};return null})(t);if(!l)return;const{center:a,radius:n,businessKey:r}=l;if(!a||!n)return;const[i,c]=a.split(",").map(Number);if(Number.isNaN(i)||Number.isNaN(c)||Number.isNaN(Number(n)))return;const s=new e.Circle({center:[i,c],radius:n,...U,...o.circleConfig});x.value.add(s),G("circle",s),_.value.push({obj:s,center:a,radius:n,type:"circle",businessKey:r})});const t=[...S.value.map(e=>e.obj),...B.value.map(e=>e.obj),...N.value.map(e=>e.obj),...E.value.map(e=>e.obj),..._.value.map(e=>e.obj)];t.length>0&&x.value.setFitView(t)},ee=e=>{if(M.value&&!o.disabled)if(c.value)if(d.value.includes(e))switch(L.value&&me(),e){case"point":const{size:e,icon:t}=o.markerConfig;M.value.marker({icon:new AMap.Icon({image:t||P.icon,imageSize:e?new AMap.Size(e.width,e.height):new AMap.Size(P.size.width,P.size.height)}),offset:e?new AMap.Pixel(-e.width/2,-e.height):new AMap.Pixel(-P.size.width/2,-P.size.height),size:e?new AMap.Size(e.width,e.height):new AMap.Size(P.size.width,P.size.height)});break;case"polyline":case"bezierCurve":M.value.polyline({...J,...o.polylineConfig});break;case"polygon":M.value.polygon({...q,...o.polygonConfig});break;case"circle":M.value.circle({...U,...o.circleConfig,bubble:!0})}else r.ElMessage.warning("当前业务不支持该绘制方式");else r.ElMessage.warning("请先选择业务类型")},te=()=>{if(!o.disabled&&(me(),k.value="",M.value&&M.value.close(),1===d.value.length)){const[e]=d.value;k.value=e,t.nextTick(()=>{ee(e)})}},le=e=>{if(w.value=!0,o.disabled)return;const{obj:t}=e;if(!c.value)return t.setMap(null),void r.ElMessage.warning("请先选择业务类型");const l=c.value;if((e=>{if(!e)return!0;const t=s(e);return!t||!1!==t.multiple})(l)||(Se(l),_e(l),Ae(l),Te(l),He(l)),t instanceof AMap.Marker){const e=t.getPosition(),a={obj:t,position:`${e.lng},${e.lat}`,type:"marker",businessKey:l};S.value.push(a),G("marker",t)}else if(t instanceof AMap.Polyline)if("bezierCurve"===k.value)ae(t,l);else{const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>1?(B.value.push({obj:t,path:e,type:"polyline",businessKey:l}),G("polyline",t)):t.setMap(null)}else if(t instanceof AMap.Polygon){const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>2?(N.value.push({obj:t,path:e,type:"polygon",businessKey:l}),G("polygon",t)):t.setMap(null)}else if(t instanceof AMap.BezierCurve){const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>2?(E.value.push({obj:t,path:e,type:"bezierCurve",businessKey:l}),G("bezierCurve",t)):t.setMap(null)}else if(t instanceof AMap.Circle){const e=t.getCenter(),a=t.getRadius();e&&a>0?(_.value.push({obj:t,center:`${e.lng},${e.lat}`,radius:a,type:"circle",businessKey:l}),G("circle",t)):t.setMap(null)}setTimeout(()=>{w.value=!1},100)},ae=(e,t)=>{const l=e.getPath();if(l.length<2)return void e.setMap(null);e.setMap(null);const a=[];a.push([l[0].lng,l[0].lat]);for(let o=1;o<l.length;o++){const e=l[o-1],t=l[o],n=e.lng+.3*(t.lng-e.lng),r=e.lat+.3*(t.lat-e.lat);a.push([n,r,t.lng,t.lat])}const n=new AMap.BezierCurve({path:a,...K,...o.bezierCurveConfig,map:x.value});ne(n),E.value.push({obj:n,path:a,businessKey:t,type:"bezierCurve"}),G("bezierCurve",n)},oe=e=>{if(o.disabled)return;const t=e.getPosition(),l=S.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==l&&(S.value[l].position=`${t.lng},${t.lat}`)},ne=e=>{o.disabled||(H.value&&H.value.close(),H.value=new AMap.BezierCurveEditor(x.value,e),H.value.open(),L.value=e)},re=e=>{setTimeout(()=>{o.disabled||w.value||(e instanceof AMap.Marker?ce(e):e instanceof AMap.Polyline?se(e):e instanceof AMap.Polygon?ue(e):e instanceof AMap.BezierCurve?de(e):e instanceof AMap.Circle?pe(e):(me(),k.value&&ee(k.value)))},50)},ie=e=>{var t,l,a;o.disabled||L.value!==e&&(L.value&&me(),e instanceof AMap.Polyline?(a=e,o.disabled||(A.value&&A.value.close(),A.value=new AMap.PolyEditor(x.value,a),A.value.open(),L.value=a)):e instanceof AMap.Polygon?(l=e,o.disabled||(T.value&&T.value.close(),T.value=new AMap.PolygonEditor(x.value,l),T.value.open(),L.value=l)):e instanceof AMap.BezierCurve?ne(e):e instanceof AMap.Circle&&(t=e,o.disabled||(D.value&&D.value.close(),D.value=new AMap.CircleEditor(x.value,t),D.value.open(),L.value=t)))},ce=e=>{if(o.disabled)return;const t=S.value.find(t=>t.obj._amap_id===e._amap_id);ze("single",{type:"marker",instance:e,businessKey:null==t?void 0:t.businessKey})},se=e=>{if(o.disabled)return;const t=B.value.find(t=>t.obj._amap_id===e._amap_id);ze("single",{type:"polyline",instance:e,businessKey:null==t?void 0:t.businessKey})},ue=e=>{if(o.disabled)return;const t=N.value.find(t=>t.obj._amap_id===e._amap_id);ze("single",{type:"polygon",instance:e,businessKey:null==t?void 0:t.businessKey})},de=e=>{if(o.disabled)return;const t=E.value.find(t=>t.obj._amap_id===e._amap_id);ze("single",{type:"bezierCurve",instance:e,businessKey:null==t?void 0:t.businessKey})},pe=e=>{if(o.disabled)return;const t=_.value.find(t=>t.obj._amap_id===e._amap_id);ze("single",{type:"circle",instance:e,businessKey:null==t?void 0:t.businessKey})},me=()=>{o.disabled||(A.value&&L.value instanceof AMap.Polyline&&(ve(),A.value.close()),T.value&&L.value instanceof AMap.Polygon&&(he(),T.value.close()),H.value&&L.value instanceof AMap.BezierCurve&&(fe(),H.value.close()),D.value&&L.value instanceof AMap.Circle&&(ye(),D.value.close()),L.value=null)},ve=(e=null)=>{const t=null!=e?e:A.value.getTarget();let l=t.getPath();Ne(l)>1&&(l=l[0],t.setPath(l));const a=l.map(e=>`${e.lng},${e.lat}`),o=B.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==o&&(B.value[o].path=a)},he=(e=null)=>{const t=null!=e?e:T.value.getTarget(),l=t.getPath().map(e=>`${e.lng},${e.lat}`),a=N.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==a&&(N.value[a].path=l)},fe=(e=null)=>{const t=null!=e?e:H.value.getTarget(),l=t.getPath(),a=[];try{if(l&&l.length>0){l[0].getLng&&l[0].getLat?a.push([l[0].getLng(),l[0].getLat()]):Array.isArray(l[0])&&(Array.isArray(l[0][0])?a.push(l[0][0]):a.push(l[0]));for(let e=1;e<l.length;e++){const t=l[e];if(Array.isArray(t)&&t.length>=2){const e=[];for(let l=0;l<t.length;l++){const a=t[l];a&&a.getLng&&a.getLat?(e.push(a.getLng()),e.push(a.getLat())):Array.isArray(a)&&a.length>=2?(e.push(a[0]),e.push(a[1])):"number"==typeof a&&e.push(a)}e.length>0&&a.push(e)}}}const e=E.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==e&&(E.value[e].path=a)}catch(o){}},ye=(e=null)=>{const t=null!=e?e:D.value.getTarget(),l=t.getCenter(),a=t.getRadius(),o=_.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==o&&(_.value[o].center=`${l.lng},${l.lat}`,_.value[o].radius=a)},ge=()=>{o.disabled||(me(),p.value=S.value.map(e=>({path:"string"==typeof e.position?e.position:o.formatJson?JSON.stringify(e.position):e.position,type:e.type,businessKey:e.businessKey})),m.value=B.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type,businessKey:e.businessKey})),v.value=N.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type,businessKey:e.businessKey})),h.value=E.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type,businessKey:e.businessKey})),f.value=_.value.map(e=>({path:o.formatJson?JSON.stringify({center:e.center,radius:e.radius}):{center:e.center,radius:e.radius},type:e.type,businessKey:e.businessKey})),be())},be=()=>{V.value=!1,b.value=!1,j.value="",I.value="",k.value="",c.value="",S.value=[],B.value=[],N.value=[],E.value=[],_.value=[],M.value&&(M.value.off("draw",le),M.value.close()),A.value&&A.value.close(),T.value&&T.value.close(),H.value&&H.value.close(),D.value&&D.value.close(),x.value&&(x.value.off("rightclick",re),x.value.destroy(),x.value=null)},Ce=e=>({point:"绘制点",polyline:"绘制折线",polygon:"绘制多边形",circle:"绘制圆",bezierCurve:"绘制曲线"}[e]||e),we=e=>{var t;return(null==(t=s(e))?void 0:t.label)||e},ke=e=>{if(!e)return 0;return S.value.filter(t=>t.businessKey===e).length+B.value.filter(t=>t.businessKey===e).length+N.value.filter(t=>t.businessKey===e).length+E.value.filter(t=>t.businessKey===e).length+_.value.filter(t=>t.businessKey===e).length},Ve=()=>S.value.length+B.value.length+N.value.length+E.value.length+_.value.length,ze=async(e,t)=>{try{let l="";if("all"===e)l=`确定要删除所有图形吗?这将清除地图上的所有 ${Ve()} 个图形。`;else if("business"===e){const e=we(t);l=`确定要删除所有${e}吗?这将清除地图上的所有 ${ke(t)} 个${e}。`}else if("single"===e){let e="";switch(t.type){case"marker":e="点";break;case"polyline":e="折线";break;case"polygon":e="多边形";break;case"bezierCurve":e="曲线";break;case"circle":e="圆形"}l=`确定要删除这个${t.businessKey?`${we(t.businessKey)}的`:""}${e}吗?`}if(await r.ElMessageBox.confirm(l,"删除确认"),"all"===e)xe();else if("business"===e)Me(t);else if("single"===e)switch(t.type){case"marker":(e=>{e.setMap(null);const t=S.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&S.value.splice(t,1)})(t.instance);break;case"polyline":(e=>{e.setMap(null);const t=B.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&B.value.splice(t,1)})(t.instance);break;case"polygon":(e=>{e.setMap(null);const t=N.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&N.value.splice(t,1)})(t.instance);break;case"bezierCurve":(e=>{e.setMap(null);const t=E.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&E.value.splice(t,1)})(t.instance);break;case"circle":(e=>{e.setMap(null);const t=_.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&_.value.splice(t,1)})(t.instance)}}catch(l){}},xe=()=>{o.disabled||(me(),Se(),_e(),Ae(),Te(),He(),k.value&&ee(k.value))},Me=e=>{o.disabled||(me(),Se(e),_e(e),Ae(e),Te(e),He(e),c.value===e&&k.value&&ee(k.value))},Se=(e=null)=>{if(o.disabled)return;const t=[];S.value.forEach(l=>{e&&l.businessKey!==e?t.push(l):l.obj.setMap(null)}),S.value=t},_e=(e=null)=>{if(o.disabled)return;const t=[];B.value.forEach(l=>{e&&l.businessKey!==e?t.push(l):l.obj.setMap(null)}),B.value=t},Ae=(e=null)=>{if(o.disabled)return;const t=[];N.value.forEach(l=>{e&&l.businessKey!==e?t.push(l):l.obj.setMap(null)}),N.value=t},Te=(e=null)=>{if(o.disabled)return;const t=[];E.value.forEach(l=>{e&&l.businessKey!==e?t.push(l):l.obj.setMap(null)}),E.value=t},He=(e=null)=>{if(o.disabled)return;const t=[];_.value.forEach(l=>{e&&l.businessKey!==e?t.push(l):l.obj.setMap(null)}),_.value=t},De=(e,t)=>{0!==e.length?O.value.search(e,(e,l)=>{if("complete"===e&&"OK"===l.info){const e=l.poiList.pois.map(e=>({name:e.name,address:e.address,location:e.location}));t(e)}else t([])}):t([])},Le=e=>{let t=(e=>{const t=e.split(",");return 2===t.length&&Ee(t[0],t[1])})(e);if(!t)return void r.ElMessage.error("经纬度格式错误,请输入如:103.98673,30.584973 格式,小数位数不超过15位");const l=e.split(",");new AMap.InfoWindow({content:`<div><p>${e}</p></div>`,offset:new AMap.Pixel(0,-30),autoMove:!1,closeWhenClickMap:!0}).open(x.value,l),x.value.setZoomAndCenter(20,l),I.value=""},Oe=e=>{if(e&&e.location){new AMap.InfoWindow({content:`<div><h4>${e.name}</h4><p>${e.address||"暂无地址信息"}</p></div>`,offset:new AMap.Pixel(0,-30),autoMove:!1,closeWhenClickMap:!0}).open(x.value,[e.location.lng,e.location.lat]),x.value.setZoomAndCenter(20,[e.location.lng,e.location.lat])}},je=e=>{e?(x.value.setMapStyle(null),y.value.setMap(x.value),x.value.setFeatures(["bg"])):(x.value.setMapStyle(o.mapStyle),y.value.setMap(null),x.value.setFeatures(["bg","building","point","road","land","poi"]))};return l({openDialog:F}),(l,a)=>{const o=t.resolveComponent("el-button"),r=t.resolveComponent("el-switch"),s=t.resolveComponent("el-divider"),u=t.resolveComponent("el-autocomplete"),p=t.resolveComponent("el-input"),m=t.resolveComponent("el-radio"),v=t.resolveComponent("el-radio-group"),h=t.resolveComponent("el-card"),f=t.resolveComponent("el-dialog"),y=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",null,[t.renderSlot(l.$slots,"trigger",{openDialog:F},()=>[e.isShowDefaultTriggerBtn?(t.openBlock(),t.createBlock(o,{key:0,onClick:F},{default:t.withCtx(()=>[t.createTextVNode("打开绘制弹窗")]),_:1})):t.createCommentVNode("",!0)],!0),t.createVNode(f,{title:e.title,"append-to-body":"",modelValue:V.value,"onUpdate:modelValue":a[7]||(a[7]=e=>V.value=e),width:e.width,onClose:be,class:"map-drawing-dialog"},{footer:t.withCtx(()=>[t.createElementVNode("span",kt,[t.createVNode(o,{onClick:be},{default:t.withCtx(()=>[t.createTextVNode("取消")]),_:1}),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(o,{key:0,type:"primary",onClick:ge},{default:t.withCtx(()=>[t.createTextVNode("确认")]),_:1}))])]),default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":"系统定位中,请稍后...",class:t.normalizeClass(["draw-container",t.unref(i)&&"draw-container-mobile"]),style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:"map-container",ref_key:"mapContainer",ref:$},null,512),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",dt,[t.createVNode(h,{shadow:"never"},{default:t.withCtx(()=>[t.createElementVNode("div",pt,[t.createVNode(o,{type:"primary",icon:t.unref(n.QuestionFilled),onClick:a[0]||(a[0]=e=>z.value=!0),class:"help-button"},{default:t.withCtx(()=>[t.createTextVNode(" 操作说明 ")]),_:1},8,["icon"])]),e.changeMapType&&!t.unref(i)?(t.openBlock(),t.createElementBlock("div",mt,[t.createVNode(r,{modelValue:b.value,"onUpdate:modelValue":a[1]||(a[1]=e=>b.value=e),"active-text":"卫星图","inactive-text":"标准图",onChange:je},null,8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(i)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:1,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("地点搜索")]),_:1})),t.createElementVNode("div",vt,[t.createVNode(u,{modelValue:j.value,"onUpdate:modelValue":a[2]||(a[2]=e=>j.value=e),"fetch-suggestions":De,placeholder:"搜索地点",onSelect:Oe,"trigger-on-focus":!1,class:"place-search-input"},{default:t.withCtx(({item:e})=>[t.createElementVNode("div",ht,[t.createElementVNode("div",ft,t.toDisplayString(e.name),1),t.createElementVNode("div",yt,t.toDisplayString(e.address),1)])]),_:1},8,["modelValue"])]),t.unref(i)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:2,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("经纬度搜索")]),_:1})),t.createElementVNode("div",gt,[t.createVNode(p,{modelValue:I.value,"onUpdate:modelValue":a[3]||(a[3]=e=>I.value=e),onChange:Le,style:{width:"100%"},placeholder:"请输入GCJ-02坐标系经纬度"},null,8,["modelValue"])]),t.unref(i)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:3,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("业务类型")]),_:1})),t.createVNode(v,{modelValue:c.value,"onUpdate:modelValue":a[4]||(a[4]=e=>c.value=e),onChange:te},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.businessConfigs,e=>(t.openBlock(),t.createBlock(m,{key:e.key,label:e.key,border:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"]),!t.unref(i)&&t.unref(d).length?(t.openBlock(),t.createBlock(s,{key:4,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("绘制方式")]),_:1})):t.createCommentVNode("",!0),t.unref(d).length?(t.openBlock(),t.createBlock(v,{key:5,onChange:ee,modelValue:k.value,"onUpdate:modelValue":a[5]||(a[5]=e=>k.value=e)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(d),e=>(t.openBlock(),t.createBlock(m,{key:e,onClick:t.withModifiers(t=>(e=>{e===k.value?k.value="":k.value=e,k.value?ee(k.value):M.value&&M.value.close()})(e),["prevent"]),label:e,border:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(Ce(e)),1)]),_:2},1032,["onClick","label"]))),128))]),_:1},8,["modelValue"])):t.createCommentVNode("",!0),t.createElementVNode("div",bt,[t.unref(i)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("批量操作")]),_:1})),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.businessConfigs,e=>(t.openBlock(),t.createBlock(o,{key:`delete-${e.key}`,size:"small",type:"danger",onClick:t=>ze("business",e.key),disabled:0===ke(e.key)},{default:t.withCtx(()=>[t.createTextVNode(" 删除所有"+t.toDisplayString(e.label)+" ",1),ke(e.key)>0?(t.openBlock(),t.createElementBlock("span",Ct,"("+t.toDisplayString(ke(e.key))+")",1)):t.createCommentVNode("",!0)]),_:2},1032,["onClick","disabled"]))),128)),t.unref(i)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:1,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("全局操作")]),_:1})),t.createVNode(o,{size:"small",type:"danger",onClick:a[6]||(a[6]=e=>ze("all")),disabled:0===Ve()},{default:t.withCtx(()=>[t.createTextVNode(" 清除所有图形 "),Ve()>0?(t.openBlock(),t.createElementBlock("span",wt,"("+t.toDisplayString(Ve())+")",1)):t.createCommentVNode("",!0)]),_:1},8,["disabled"])])]),_:1})]))],6)),[[y,C.value]])]),_:1},8,["title","modelValue","width"]),t.createVNode(f,{title:"操作说明",modelValue:z.value,"onUpdate:modelValue":a[9]||(a[9]=e=>z.value=e),width:"600px","append-to-body":""},{footer:t.withCtx(()=>[t.createElementVNode("span",zt,[t.createVNode(o,{type:"primary",onClick:a[8]||(a[8]=e=>z.value=!1)},{default:t.withCtx(()=>[t.createTextVNode("我知道了")]),_:1})])]),default:t.withCtx(()=>[Vt]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-6b8c3e46"]]),Mt=b({__name:"BimViewer",props:{viewToken:{type:String,default:"121d1db2a4cd444983d0871aa47786eb"},extraContextMenu:{type:Array,default:()=>[{label:"其他",key:"extraOther",children:[{label:"添加养护",key:"addMaintain"},{label:"养护记录",key:"maintainRecord"}]}]}},emits:["contextMenuClick"],setup(e,{emit:l}){const a=e,o=t.ref(null),n=t.ref(null),r=t.ref(null),i=t.ref(null),c=()=>{n.value&&n.value.resize(document.documentElement.clientWidth,document.documentElement.clientHeight-40)},s=e=>{if(e.children&&e.children.length>0){const t=document.createElement("div");t.className="bf-sub-menu";const l=document.createElement("div");l.className="bf-menu-item user-item",l.textContent=e.label,t.appendChild(l);const a=document.createElement("div");return a.className="bf-menu",a.style.width="max-content",e.children.forEach(e=>{const t=s(e);a.appendChild(t)}),t.appendChild(a),t}{const t=document.createElement("div");return t.className="bf-menu-item user-item",t.id=`menu-${e.key}`,t.textContent=e.label,t.dataset.key=e.key,t}},u=(e,t,a)=>{if(t.children&&t.children.length>0)t.children.forEach(t=>{u(e,t,a)});else{const o=e.querySelector(`#menu-${t.key}`);if(!o)return;const n=()=>{l("contextMenuClick",{...t,selectedComponents:a}),p(),o.removeEventListener("click",n)};o.addEventListener("click",n)}},d=e=>{const l=e.getViewer().getModel().getSelectedComponents();if(!l.length)return;const o=document.querySelector(".bf-menu.bf-menu-right"),n=document.querySelector(".bf-menu.bf-menu-left"),i=o||n;if(!i)return;const c=document.getElementById("bim-construction-menu");c&&c.remove();const d=(()=>{const e=document.createElement("div");return e.id="bim-construction-menu",a.extraContextMenu.forEach(t=>{const l=s(t);e.appendChild(l)}),e})();i.appendChild(d),t.nextTick(()=>{((e,t)=>{t.length&&r.value&&a.extraContextMenu.forEach(l=>{u(e,l,t)})})(d,l)})},p=()=>{const e=document.getElementById("bim-construction-menu");e&&e.remove();const t=document.querySelector(".bf-menu.bf-menu-right");t&&(t.style.display="none")},m=()=>{n.value&&(i.value=c,window.addEventListener("resize",i.value),n.value.render())},v=()=>{r.value&&a.extraContextMenu.length&&setTimeout(()=>{d(r.value)},0)},h=e=>{if("3DView"===e.viewType&&o.value)try{const e=new Glodon.Bimface.Application.WebApplication3DConfig;e.domElement=o.value,e.globalUnit=Glodon.Bimface.Common.Units.LengthUnits.Millimeter,r.value=new Glodon.Bimface.Application.WebApplication3D(e),r.value.addView(a.viewToken),n.value=r.value.getViewer(),n.value.addEventListener(Glodon.Bimface.Viewer.Viewer3DEvent.ViewAdded,m),n.value.addEventListener(Glodon.Bimface.Viewer.Viewer3DEvent.ContextMenu,v)}catch(t){}},f=e=>{},y=()=>{t.nextTick(()=>{(()=>{if(!o.value)return;const e=new BimfaceSDKLoaderConfig;e.viewToken=a.viewToken,BimfaceSDKLoader.load(e,h,f)})()})};return t.onMounted(()=>{y()}),t.onBeforeUnmount(()=>{(()=>{var e,t,l,a,o,c;if(i.value&&(window.removeEventListener("resize",i.value),i.value=null),p(),n.value)try{null==(t=(e=n.value).removeEventListener)||t.call(e,Glodon.Bimface.Viewer.Viewer3DEvent.ViewAdded,m),null==(a=(l=n.value).removeEventListener)||a.call(l,Glodon.Bimface.Viewer.Viewer3DEvent.ContextMenu,v)}catch(s){}if(r.value)try{null==(c=(o=r.value).destroy)||c.call(o)}catch(s){}n.value=null,r.value=null})()}),(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:"model-container",ref_key:"bimContainer",ref:o},null,512))}},[["__scopeId","data-v-b60f1ba4"]]),St=b({__name:"DwgViewer",props:{viewToken:{type:String,default:"5a6e6e0b33434ba795a107136fd2bc63"},extraContextMenu:{type:Array,default:()=>[{label:"其他",key:"extraOther",children:[{label:"添加养护",key:"addMaintain"},{label:"养护记录",key:"maintainRecord"}]}]}},emits:["contextMenuClick"],setup(e,{emit:l}){const a=e,o=t.ref(null),n=t.ref(null),r=t.ref(null),i=t.ref(null),c=e=>{if(e.children&&e.children.length>0){const t=document.createElement("div");t.className="bf-sub-menu";const l=document.createElement("div");l.className="bf-menu-item user-item",l.textContent=e.label,t.appendChild(l);const a=document.createElement("div");return a.className="bf-menu",a.style.width="max-content",e.children.forEach(e=>{const t=c(e);a.appendChild(t)}),t.appendChild(a),t}{const t=document.createElement("div");return t.className="bf-menu-item user-item",t.id=`menu-${e.key}`,t.textContent=e.label,t.dataset.key=e.key,t}},s=(e,t,a)=>{if(t.children&&t.children.length>0)t.children.forEach(t=>{s(e,t,a)});else{const o=e.querySelector(`#menu-${t.key}`);if(!o)return;const n=()=>{l("contextMenuClick",{...t,selectedComponents:a}),d(),o.removeEventListener("click",n)};o.addEventListener("click",n)}},u=e=>{const l=e.getViewer().getDrawing().getSelectedObjects();if(!l.length)return;const o=document.querySelector(".bf-menu.bf-menu-right"),n=document.querySelector(".bf-menu.bf-menu-left"),i=o||n;if(!i)return;const u=document.getElementById("bim-construction-menu");u&&u.remove();const d=(()=>{const e=document.createElement("div");return e.id="bim-construction-menu",a.extraContextMenu.forEach(t=>{const l=c(t);e.appendChild(l)}),e})();i.appendChild(d),t.nextTick(()=>{((e,t)=>{t.length&&r.value&&a.extraContextMenu.forEach(l=>{s(e,l,t)})})(d,l)})},d=()=>{const e=document.getElementById("bim-construction-menu");e&&e.remove();const t=document.querySelector(".bf-menu.bf-menu-right");t&&(t.style.display="none")},p=()=>{n.value&&window.requestAnimationFrame(()=>{n.value.home()})},m=()=>{r.value&&a.extraContextMenu.length&&setTimeout(()=>{u(r.value)},0)},v=e=>{if("drawingView"===e.viewType&&o.value)try{const e=new Glodon.Bimface.Application.WebApplicationDrawingConfig;e.domElement=o.value,r.value=new Glodon.Bimface.Application.WebApplicationDrawing(e),n.value=r.value.getViewer(),n.value.loadDrawing({viewToken:a.viewToken}),n.value.addEventListener(Glodon.Bimface.Viewer.ViewerDrawingEvent.Loaded,p),n.value.addEventListener(Glodon.Bimface.Viewer.ViewerDrawingEvent.ContextMenu,m)}catch(t){}},h=e=>{},f=()=>{t.nextTick(()=>{(()=>{if(!o.value)return;const e=new BimfaceSDKLoaderConfig;e.viewToken=a.viewToken,BimfaceSDKLoader.load(e,v,h)})()})};return t.onMounted(()=>{f()}),t.onBeforeUnmount(()=>{(()=>{var e,t,l,a,o,c;if(i.value&&(window.removeEventListener("resize",i.value),i.value=null),d(),n.value)try{null==(t=(e=n.value).removeEventListener)||t.call(e,Glodon.Bimface.Viewer.ViewerDrawingEvent.Loaded,p),null==(a=(l=n.value).removeEventListener)||a.call(l,Glodon.Bimface.Viewer.ViewerDrawingEvent.ContextMenu,m)}catch(s){}if(r.value)try{null==(c=(o=r.value).destroy)||c.call(o)}catch(s){}n.value=null,r.value=null})()}),(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:"dwg-container",ref_key:"dwgContainer",ref:o},null,512))}},[["__scopeId","data-v-ab9c8ebd"]]),Bt=[{component:k,name:"SCTJDictTag"},{component:Z,name:"SCTJTreeSelect"},{component:z,name:"SCTJIcon"},{component:A,name:"SCTJFileUpload"},{component:j,name:"SCTJImageUpload"},{component:$,name:"SCTJImagePreview"},{component:F,name:"SCTJIconSelect"},{component:be,name:"SCTJSearch"},{component:W,name:"SCTJDateRangePicker"},{component:Q,name:"SCTJTable"},{component:ee,name:"SCTJTableContainer"},{component:fe,name:"SCTJTablePageContainer"},{component:ae,name:"SCTJTableTopActionContainer"},{component:te,name:"SCTJRightToolbar"},{component:me,name:"SCTJBtnContainer"},{component:Ce,name:"SCTJBaseChart"},{component:xe,name:"SCTJCommonChart"},{component:Se,name:"SCTJPieChart"},{component:Oe,name:"SCTJFlvPlayer"},{component:Ie,name:"SCTJIframe"},{component:Ue,name:"SCTJImportDialog"},{component:pe,name:"SCTJDialogTable"},{component:Ge,name:"SCTJMapViewer"},{component:ut,name:"SCTJMapDrawingDialog"},{component:xt,name:"SCTJBusinessMapDrawingDialog"},{component:Mt,name:"SCTJBimViewer"},{component:St,name:"SCTJDwgViewer"}],Nt={install:e=>{Bt.forEach(({component:t,name:l})=>{e.component(l,t)})},SCTJDictTag:k,SCTJTreeSelect:Z,SCTJIcon:z,SCTJFileUpload:A,SCTJImageUpload:j,SCTJImagePreview:$,SCTJIconSelect:F,SCTJSearch:be,SCTJDateRangePicker:W,SCTJTable:Q,SCTJTableContainer:ee,SCTJTablePageContainer:fe,SCTJTableTopActionContainer:ae,SCTJRightToolbar:te,SCTJBtnContainer:me,SCTJBaseChart:Ce,SCTJCommonChart:xe,SCTJPieChart:Se,SCTJFlvPlayer:Oe,SCTJIframe:Ie,SCTJImportDialog:Ue,SCTJDialogTable:pe,SCTJMapViewer:Ge,SCTJMapDrawingDialog:ut,SCTJBusinessMapDrawingDialog:xt,SCTJBimViewer:Mt,SCTJDwgViewer:St};e.SCTJBaseChart=Ce,e.SCTJBimViewer=Mt,e.SCTJBtnContainer=me,e.SCTJBusinessMapDrawingDialog=xt,e.SCTJCommonChart=xe,e.SCTJDateRangePicker=W,e.SCTJDialogTable=pe,e.SCTJDictTag=k,e.SCTJDwgViewer=St,e.SCTJFileUpload=A,e.SCTJFlvPlayer=Oe,e.SCTJIcon=z,e.SCTJIconSelect=F,e.SCTJIframe=Ie,e.SCTJImagePreview=$,e.SCTJImageUpload=j,e.SCTJImportDialog=Ue,e.SCTJMapDrawingDialog=ut,e.SCTJMapViewer=Ge,e.SCTJPieChart=Se,e.SCTJRightToolbar=te,e.SCTJSearch=be,e.SCTJTable=Q,e.SCTJTableContainer=ee,e.SCTJTablePageContainer=fe,e.SCTJTableTopActionContainer=ae,e.SCTJTreeSelect=Z,e.default=Nt,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});