(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6cf9435d"],{
/***/"07ac4":
/***/function(e,t,a){"use strict";
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js + 2 modules
var n=a("ade3"),u=a("c7eb"),i=a("1da1"),o=a("5530"),r=(a("7db0"),a("caad"),a("a15b"),a("14d9"),a("b0c0"),a("b64b"),a("d3b7"),a("4d63"),a("c607"),a("ac1f"),a("2c3e"),a("25f0"),a("2532"),a("5319"),a("9911"),a("0643"),a("fffc"),a("4e3e"),a("159b"),a("cf45")),s=a("8e71"),c=a("6c65"),l=a("4360"),D=a("2f62"),d=a("600d"),p=a("fb13"),f=a("c67c"),h=a.n(f),g=a("1d40"),v=a("b775"),C=a("a026"),F=a("e5d9"),m=(a("41fe"),a("b0bf"),a("5728")),E=a("3e2f"),A=a("4d3f"),b=a("15fd"),y=a("3835"),S=a("b85c"),w=(a("d28b"),a("d9e2"),a("99af"),a("4de4"),a("a630"),a("d81d"),a("fb6a"),a("4e82"),a("4ec9"),a("f00c"),a("4fad"),a("820e"),a("00b4"),a("6062"),a("1e70"),a("79a4"),a("c1a1"),a("8b00"),a("a4e7"),a("1e5a"),a("72c3"),a("3ca3"),a("466d"),a("a1f0"),a("2ca0"),a("498a"),a("10d17"),a("76d6"),a("2382"),a("a573"),a("9a9a"),a("ddb0"),a("2b3d"),a("bf19"),a("9861"),a("88a7"),a("271a"),a("5494"),["format","filename","backgroundColor"]),x={image:new Map,background:new Map,resource:new Map,defaultStyle:new Map,baseStyle:new Map,computedStyle:new WeakMap,font:new Set,snapshot:new WeakMap,snapshotKey:new Map,preStyleMap:new Map,preStyle:new WeakMap,preNodeMap:new Map,reset:function(){x.computedStyle=new WeakMap,x.snapshot=new WeakMap,x.snapshotKey.clear(),x.preStyleMap.clear(),x.preStyle=new WeakMap,x.preNodeMap.clear()}
// src/utils/cssTools.js
};
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"411544a2-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/ISMDisPlay/ISMRender.vue?vue&type=template&id=48f425c2&scoped=true
function B(e){if(x.defaultStyle.has(e))return x.defaultStyle.get(e);if(new Set(["script","style","meta","link","noscript","template"]).has(e)){var t={};return x.defaultStyle.set(e,t),t}var a=document.getElementById("snapdom-sandbox");a||((a=document.createElement("div")).id="snapdom-sandbox",a.style.position="absolute",a.style.left="-9999px",a.style.top="-9999px",a.style.width="0",a.style.height="0",a.style.overflow="hidden",document.body.appendChild(a));var n=document.createElement(e);n.style.all="initial",a.appendChild(n);var u,i=getComputedStyle(n),o={},r=Object(S.a)(i);try{for(r.s();!(u=r.n()).done;){var s=u.value;o[s]=i.getPropertyValue(s)}}catch(e){r.e(e)}finally{r.f()}return a.removeChild(n),x.defaultStyle.set(e,o),o}function P(e,t){for(var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=[],u=B(t),i=0,o=Object.entries(e);i<o.length;i++){var r=Object(y.a)(o[i],2),s=r[0],c=r[1];if(a){var l=u[s];c&&c!==l&&n.push("".concat(s,":").concat(c))}else c&&n.push("".concat(s,":").concat(c))}return n.sort().join(";")}function k(e){var t=new Set;return e.nodeType!==Node.ELEMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?[]:(e.tagName&&t.add(e.tagName.toLowerCase()),"function"==typeof e.querySelectorAll&&e.querySelectorAll("*").forEach((function(e){return t.add(e.tagName.toLowerCase())})),Array.from(t))}function U(e){var t,a=new Map,n=Object(S.a)(e);try{for(n.s();!(t=n.n()).done;){var u=t.value,i=x.defaultStyle.get(u);if(i){var o=Object.entries(i).map((function(e){var t=Object(y.a)(e,2),a=t[0],n=t[1];return"".concat(a,":").concat(n,";")})).sort().join("");a.has(o)||a.set(o,[]),a.get(o).push(u)}}}catch(e){n.e(e)}finally{n.f()}var r,s="",c=Object(S.a)(a.entries());try{for(c.s();!(r=c.n()).done;){var l=Object(y.a)(r.value,2),D=l[0],d=l[1];s+="".concat(d.join(",")," { ").concat(D," }\n")}}catch(e){c.e(e)}finally{c.f()}return s}function I(){var e,t=new Set(x.preStyleMap.values()),a=new Map,n=1,u=Object(S.a)(t);try{for(u.s();!(e=u.n()).done;){var i=e.value;a.set(i,"c".concat(n++))}}catch(e){u.e(e)}finally{u.f()}return a}
// src/utils/helpers.js
function M(e){return $.apply(this,arguments)}function $(){return $=Object(i.a)(Object(u.a)().mark((function e(t){var a,n,i,o,r,s=arguments;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=s.length>1&&void 0!==s[1]?s[1]:{},n=L(t),i=/^((repeating-)?(linear|radial|conic)-gradient)\(/i.test(t),!n){e.next=14;break}if(o=_(n),!x.background.has(o)){e.next=9;break}return e.abrupt("return",a.skipInline?void 0:"url(".concat(x.background.get(o),")"));case 9:return e.next=11,V(o,{useProxy:a.useProxy});case 11:return r=e.sent,x.background.set(o,r),e.abrupt("return",a.skipInline?void 0:'url("'.concat(r,'")'));case 14:if(!i&&"none"!==t){e.next=16;break}return e.abrupt("return",t);case 16:return e.abrupt("return",t);case 17:case"end":return e.stop()}}),e)}))),$.apply(this,arguments)}function R(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fast;if(void 0!==t&&t)return e();"requestIdleCallback"in window?requestIdleCallback(e,{timeout:50}):setTimeout(e,1)}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(e instanceof Element))return window.getComputedStyle(e,t);var a=x.computedStyle.get(e);if(a||(a=new Map,x.computedStyle.set(e,a)),!a.has(t)){var n=window.getComputedStyle(e,t);a.set(t,n)}return a.get(t)}function j(e){var t=e.replace(/^['"]|['"]$/g,"");if(t.startsWith("\\"))try{return String.fromCharCode(parseInt(t.replace("\\",""),16))}catch(e){return t}return t}function L(e){var t=e.match(/url\((['"]?)(.*?)(\1)\)/);if(!t)return null;var a=t[2].trim();return a.startsWith("#")?null:a}function V(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.timeout,n=void 0===a?3e3:a,o=t.useProxy,r=void 0===o?"":o;function s(e){try{return new URL(e,window.location.href).origin===window.location.origin?"use-credentials":"anonymous"}catch(e){return"anonymous"}}function c(e){return l.apply(this,arguments)}function l(){return(l=Object(i.a)(Object(u.a)().mark((function e(t){var a,n;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=function(e){return fetch(e,{mode:"cors",credentials:"use-credentials"===s(e)?"include":"omit"}).then((function(e){return e.blob()})).then((function(e){return new Promise((function(t,a){var n=new FileReader;n.onloadend=function(){var e=n.result;"string"==typeof e&&e.startsWith("data:image/")?t(e):a(new Error("Invalid image data URL"))},n.onerror=function(){return a(new Error("FileReader error"))},n.readAsDataURL(e)}))}))},e.prev=1,e.next=4,a(t);case 4:case 14:return e.abrupt("return",e.sent);case 7:if(e.prev=7,e.t0=e.catch(1),!r||"string"!=typeof r){e.next=22;break}return n=r.replace(/\/$/,"")+_(t),e.prev=11,e.next=14,a(n);case 17:throw e.prev=17,e.t1=e.catch(11),new Error("[SnapDOM - fetchImage] CORS restrictions prevented image capture (even via proxy)");case 20:e.next=23;break;case 22:throw new Error("[SnapDOM - fetchImage] Fetch fallback failed and no proxy provided");case 23:case"end":return e.stop()}}),e,null,[[1,7],[11,17]])})))).apply(this,arguments)}var D=s(e);return x.image.has(e)?Promise.resolve(x.image.get(e)):e.startsWith("data:image/")?(x.image.set(e,e),Promise.resolve(e)):/\.svg(\?.*)?$/i.test(e)?Object(i.a)(Object(u.a)().mark((function t(){var a,n,i;return Object(u.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(e,{mode:"cors",credentials:"use-credentials"===D?"include":"omit"});case 3:return a=t.sent,t.next=6,a.text();case 6:return n=t.sent,i="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(n)),x.image.set(e,i),t.abrupt("return",i);case 12:return t.prev=12,t.t0=t.catch(0),t.abrupt("return",c(e));case 15:case"end":return t.stop()}}),t,null,[[0,12]])})))():new Promise((function(t,a){var o=setTimeout((function(){a(new Error("[SnapDOM - fetchImage] Image load timed out"))}),n),r=new Image;r.crossOrigin=D,r.onload=Object(i.a)(Object(u.a)().mark((function n(){var i,s,l;return Object(u.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return clearTimeout(o),n.prev=1,n.next=4,r.decode();case 4:(i=document.createElement("canvas")).width=r.width,i.height=r.height,i.getContext("2d").drawImage(r,0,0,i.width,i.height),s=i.toDataURL("image/png"),x.image.set(e,s),t(s),n.next=27;break;case 14:return n.prev=14,n.t0=n.catch(1),n.prev=16,n.next=19,c(e);case 19:l=n.sent,x.image.set(e,l),t(l),n.next=27;break;case 24:n.prev=24,n.t1=n.catch(16),a(n.t1);case 27:case"end":return n.stop()}}),n,null,[[1,14],[16,24]])}))),r.onerror=Object(i.a)(Object(u.a)().mark((function n(){var i;return Object(u.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return clearTimeout(o),n.prev=1,n.next=4,c(e);case 4:i=n.sent,x.image.set(e,i),t(i),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(1),a(n.t0);case 12:case"end":return n.stop()}}),n,null,[[1,9]])}))),r.src=e}))}function N(e){var t,a={},n=Object(S.a)(e);try{for(n.s();!(t=n.n()).done;){var u=t.value;a[u]=e.getPropertyValue(u)}}catch(e){n.e(e)}finally{n.f()}return a}function T(e){if(!e||"none"===e)return"";var t=e.replace(/translate[XY]?\([^)]*\)/g,"");return(t=(t=t.replace(/matrix\(([^)]+)\)/g,(function(e,t){var a=t.split(",").map((function(e){return e.trim()}));return 6!==a.length?"matrix(".concat(t,")"):(a[4]="0",a[5]="0","matrix(".concat(a.join(", "),")"))}))).replace(/matrix3d\(([^)]+)\)/g,(function(e,t){var a=t.split(",").map((function(e){return e.trim()}));return 16!==a.length?"matrix3d(".concat(t,")"):(a[12]="0",a[13]="0","matrix3d(".concat(a.join(", "),")"))}))).trim().replace(/\s{2,}/g," ")}function _(e){if(/%[0-9A-Fa-f]{2}/.test(e))return e;try{return encodeURI(e)}catch(t){return e}}function z(e){for(var t=[],a=0,n=0,u=0;u<e.length;u++){var i=e[u];"("===i&&a++,")"===i&&a--,","===i&&0===a&&(t.push(e.slice(n,u).trim()),n=u+1)}return t.push(e.slice(n).trim()),t}
// src/modules/styles.js
function K(e,t,a){var n;if("STYLE"!==e.tagName){x.preStyle.has(e)||x.preStyle.set(e,O(e));var u=x.preStyle.get(e);if(!x.snapshot.has(e)){var i=function(e){for(var t={},a=0;a<e.length;a++){var n=e[a],u=e.getPropertyValue(n);"background-image"!==n&&"content"!==n||!u.includes("url(")||u.includes("data:")||(u="none"),t[n]=u}return t}(u);x.snapshot.set(e,i)}var o=x.snapshot.get(e),r=Object.entries(o).sort((function(e,t){var a=Object(y.a)(e,1)[0],n=Object(y.a)(t,1)[0];return a.localeCompare(n)})).map((function(e){var t=Object(y.a)(e,2),a=t[0],n=t[1];return"".concat(a,":").concat(n)})).join(";");if(x.snapshotKey.has(r))x.preStyleMap.set(t,x.snapshotKey.get(r));else{var s=P(o,(null===(n=e.tagName)||void 0===n?void 0:n.toLowerCase())||"div",a);x.snapshotKey.set(r,s),x.preStyleMap.set(t,s)}}}
// src/core/clone.js
function W(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!e)throw new Error("Invalid node");var u,i=new Set,o=null;if(e.nodeType===Node.TEXT_NODE)return e.cloneNode(!0);if(e.nodeType!==Node.ELEMENT_NODE)return e.cloneNode(!0);if("exclude"===e.getAttribute("data-capture")){var r=document.createElement("div"),s=e.getBoundingClientRect();return r.style.cssText="display:inline-block;width:".concat(s.width,"px;height:").concat(s.height,"px;visibility:hidden;"),r}if(a.exclude&&Array.isArray(a.exclude)){var c,l=Object(S.a)(a.exclude);try{for(l.s();!(c=l.n()).done;){var D=c.value;try{var d;if(null!==(d=e.matches)&&void 0!==d&&d.call(e,D)){var p=document.createElement("div"),f=e.getBoundingClientRect();return p.style.cssText="display:inline-block;width:".concat(f.width,"px;height:").concat(f.height,"px;visibility:hidden;"),p}}catch(e){}}}catch(e){l.e(e)}finally{l.f()}}if("function"==typeof a.filter)try{if(!a.filter(e,n||e)){var h=document.createElement("div"),g=e.getBoundingClientRect();return h.style.cssText="display:inline-block;width:".concat(g.width,"px;height:").concat(g.height,"px;visibility:hidden;"),h}}catch(e){}if("IFRAME"===e.tagName){var v=document.createElement("div");return v.style.cssText="width:".concat(e.offsetWidth,"px;height:").concat(e.offsetHeight,"px;background-image:repeating-linear-gradient(45deg,#ddd,#ddd 5px,#f9f9f9 5px,#f9f9f9 10px);display:flex;align-items:center;justify-content:center;font-size:12px;color:#555;border:1px solid #aaa;"),v}if("placeholder"===e.getAttribute("data-capture")){var C=e.cloneNode(!1);x.preNodeMap.set(C,e),K(e,C,t);var F=document.createElement("div");return F.textContent=e.getAttribute("data-placeholder-text")||"",F.style.cssText="color:#666;font-size:12px;text-align:center;line-height:1.4;padding:0.5em;box-sizing:border-box;",C.appendChild(F),C}if("CANVAS"===e.tagName){var m=e.toDataURL(),E=document.createElement("img");return E.src=m,E.width=e.width,E.height=e.height,x.preNodeMap.set(E,e),K(e,E,t),E}try{u=e.cloneNode(!1),x.preNodeMap.set(u,e)}catch(e){throw e}if(e instanceof HTMLTextAreaElement){u.textContent=e.value,u.value=e.value;var A=e.getBoundingClientRect();return u.style.width="".concat(A.width,"px"),u.style.height="".concat(A.height,"px"),u}if(e instanceof HTMLInputElement&&(u.value=e.value,u.setAttribute("value",e.value),void 0!==e.checked&&(u.checked=e.checked,e.checked&&u.setAttribute("checked",""),e.indeterminate&&(u.indeterminate=e.indeterminate))),e instanceof HTMLSelectElement&&(o=e.value),K(e,u,t),e.shadowRoot)if(Array.from(e.shadowRoot.querySelectorAll("slot")).length>0){var b,y=Object(S.a)(e.shadowRoot.childNodes);try{for(y.s();!(b=y.n()).done;){var w=b.value;if(w.nodeType===Node.ELEMENT_NODE&&"STYLE"===w.tagName){var B=w.textContent||"";B.trim()&&t&&(x.preStyle||(x.preStyle=new WeakMap),x.preStyle.set(w,B))}}}catch(e){y.e(e)}finally{y.f()}}else{var P,k=document.createDocumentFragment(),U=Object(S.a)(e.shadowRoot.childNodes);try{for(U.s();!(P=U.n()).done;){var I=P.value;if(I.nodeType!==Node.ELEMENT_NODE||"STYLE"!==I.tagName){var M=W(I,t,a,n||e);M&&k.appendChild(M)}else{var $=I.textContent||"";$.trim()&&t&&(x.preStyle||(x.preStyle=new WeakMap),x.preStyle.set(I,$))}}}catch(e){U.e(e)}finally{U.f()}u.appendChild(k)}if("SLOT"===e.tagName){var R,O,j=(null===(R=e.assignedNodes)||void 0===R?void 0:R.call(e,{flatten:!0}))||[],L=j.length>0?j:Array.from(e.childNodes),V=document.createDocumentFragment(),N=Object(S.a)(L);try{for(N.s();!(O=N.n()).done;){var T=W(O.value,t,a,n||e);T&&V.appendChild(T)}}catch(e){N.e(e)}finally{N.f()}return V}var _,z=Object(S.a)(e.childNodes);try{for(z.s();!(_=z.n()).done;){var H=_.value;if(!i.has(H)){var q=W(H,t,a,n||e);q&&u.appendChild(q)}}}catch(e){z.e(e)}finally{z.f()}if(null!==o&&u instanceof HTMLSelectElement){u.value=o;var Y,Z=Object(S.a)(u.options);try{for(Z.s();!(Y=Z.n()).done;){var J=Y.value;J.value===o?J.setAttribute("selected",""):J.removeAttribute("selected")}}catch(e){Z.e(e)}finally{Z.f()}}return u}
// src/modules/iconFonts.js
var H=[
// /uicons/i,
/font\s*awesome/i,/material\s*icons/i,/ionicons/i,/glyphicons/i,/feather/i,/bootstrap\s*icons/i,/remix\s*icons/i,/heroicons/i,/layui/i,/lucide/i],q=[];function Y(e){var t,a=Array.isArray(e)?e:[e],n=Object(S.a)(a);try{for(n.s();!(t=n.n()).done;){var u=t.value;u instanceof RegExp?q.push(u):"string"==typeof u&&q.push(new RegExp(u,"i"))}}catch(e){n.e(e)}finally{n.f()}}function Z(e){var t,a="string"==typeof e?e:"",n=[].concat(H,q),u=Object(S.a)(n);try{for(u.s();!(t=u.n()).done;){var i=t.value;if(i instanceof RegExp&&i.test(a))return!0}}catch(e){u.e(e)}finally{u.f()}return!!(/icon/i.test(a)||/glyph/i.test(a)||/symbols/i.test(a)||/feather/i.test(a)||/fontawesome/i.test(a))}
// src/modules/fonts.js
function J(e,t,a){return X.apply(this,arguments)}function X(){return X=Object(i.a)(Object(u.a)().mark((function e(t,a,n){var i,o,r,s,c,l,D,d,p,f,h,g,v=arguments;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=v.length>3&&void 0!==v[3]?v[3]:32,o=v.length>4&&void 0!==v[4]?v[4]:"#000",a=a.replace(/^['"]+|['"]+$/g,""),r=window.devicePixelRatio||1,s=document.createElement("canvas"),(c=s.getContext("2d")).font=n?"".concat(n," ").concat(i,'px "').concat(a,'"'):"".concat(i,'px "').concat(a,'"'),l=c.measureText(t),D=l.actualBoundingBoxAscent||.8*i,d=l.actualBoundingBoxDescent||.2*i,p=D+d,f=l.width,(h=document.createElement("canvas")).width=Math.ceil(f*r),h.height=Math.ceil(p*r),(g=h.getContext("2d")).scale(r,r),g.font=c.font,g.textAlign="left",g.textBaseline="alphabetic",g.fillStyle=o,g.fillText(t,0,D),e.abrupt("return",h.toDataURL());case 23:case"end":return e.stop()}}),e)}))),X.apply(this,arguments)}function G(e){return Array.from(document.styleSheets).some((function(t){return t.href===e}))}function Q(e){return new Promise((function(t){if(G(e))return t(null);var a=document.createElement("link");a.rel="stylesheet",a.href=e,a.setAttribute("data-snapdom","injected-import"),a.onload=function(){return t(a)},a.onerror=function(){return t(null)},document.head.appendChild(a)}))}function ee(){return te.apply(this,arguments)}// src/modules/pseudo.js
function te(){return te=Object(i.a)(Object(u.a)().mark((function e(){var t,a,n,o,r,s,c,l,D,d,p,f,h,g,v,C,F,m,E,A,b,y,w,B,P,k,U=arguments;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(U.length>0&&void 0!==U[0]?U[0]:{}).preCached,a=void 0!==t&&t,!x.resource.has("fonts-embed-css")){e.next=4;break}return a&&((n=document.createElement("style")).setAttribute("data-snapdom","embedFonts"),n.textContent=x.resource.get("fonts-embed-css"),document.head.appendChild(n)),e.abrupt("return",x.resource.get("fonts-embed-css"));case 4:o=/@import\s+url\(["']?([^"')]+)["']?\)/g,r=[],s=Object(S.a)(document.querySelectorAll("style")),e.prev=7,s.s();case 9:if((c=s.n()).done){e.next=25;break}l=c.value,D=l.textContent||"",d=Array.from(D.matchAll(o)),p=0,f=d;case 14:if(!(p<f.length)){e.next=23;break}if(h=f[p],!Z(g=h[1])){e.next=19;break}return e.abrupt("continue",20);case 19:G(g)||r.push(g);case 20:p++,e.next=14;break;case 23:e.next=9;break;case 25:e.next=30;break;case 27:e.prev=27,e.t0=e.catch(7),s.e(e.t0);case 30:return e.prev=30,s.f(),e.finish(30);case 33:return e.next=35,Promise.all(r.map(Q));case 35:v=Array.from(document.querySelectorAll('link[rel="stylesheet"]')).filter((function(e){return e.href})),C="",F=Object(S.a)(v),e.prev=38,E=Object(u.a)().mark((function e(){var t,a,n,o,r,s,c,l,D;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=m.value,e.prev=1,e.next=4,fetch(t.href);case 4:return a=e.sent,e.next=7,a.text();case 7:if(n=e.sent,!Z(t.href)&&!Z(n)){e.next=10;break}return e.abrupt("return",1);case 10:return o=/url\((["']?)([^"')]+)\1\)/g,e.next=13,Promise.all(Array.from(n.matchAll(o)).map(function(){var e=Object(i.a)(Object(u.a)().mark((function e(a){var n,i,o,r,s;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=L(a[0])){e.next=3;break}return e.abrupt("return",null);case 3:if((i=n).startsWith("http")||i.startsWith("data:")||(i=new URL(i,t.href).href),!Z(i)){e.next=7;break}return e.abrupt("return",null);case 7:if(!x.resource.has(i)){e.next=10;break}return x.font.add(i),e.abrupt("return",{original:a[0],inlined:"url(".concat(x.resource.get(i),")")});case 10:if(!x.font.has(i)){e.next=12;break}return e.abrupt("return",null);case 12:return e.prev=12,e.next=15,fetch(i);case 15:return o=e.sent,e.next=18,o.blob();case 18:return r=e.sent,e.next=21,new Promise((function(e){var t=new FileReader;t.onload=function(){return e(t.result)},t.readAsDataURL(r)}));case 21:return s=e.sent,x.resource.set(i,s),x.font.add(i),e.abrupt("return",{original:a[0],inlined:"url(".concat(s,")")});case 27:return e.prev=27,e.t0=e.catch(12),e.abrupt("return",null);case 30:case"end":return e.stop()}}),e,null,[[12,27]])})));return function(t){return e.apply(this,arguments)}}()));case 13:r=e.sent,s=n,c=Object(S.a)(r);try{for(c.s();!(l=c.n()).done;)(D=l.value)&&(s=s.replace(D.original,D.inlined))}catch(e){c.e(e)}finally{c.f()}C+=s+"\n",e.next=22;break;case 20:e.prev=20,e.t0=e.catch(1);case 22:case"end":return e.stop()}}),e,null,[[1,20]])})),F.s();case 41:if((m=F.n()).done){e.next=47;break}return e.delegateYield(E(),"t1",43);case 43:if(!e.t1){e.next=45;break}return e.abrupt("continue",45);case 45:e.next=41;break;case 47:e.next=52;break;case 49:e.prev=49,e.t2=e.catch(38),F.e(e.t2);case 52:return e.prev=52,F.f(),e.finish(52);case 55:A=Object(S.a)(document.styleSheets),e.prev=56,y=Object(u.a)().mark((function e(){var t,a,n,i,o,r,s,c,l,D,d,p,f,h,g;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=b.value,e.prev=1,t.href&&!v.every((function(e){return e.href!==t.href}))){e.next=43;break}a=Object(S.a)(t.cssRules),e.prev=4,a.s();case 6:if((n=a.n()).done){e.next=35;break}if((i=n.value).type!==CSSRule.FONT_FACE_RULE){e.next=33;break}if(o=i.style.getPropertyValue("src"),r=i.style.getPropertyValue("font-family"),o&&!Z(r)){e.next=13;break}return e.abrupt("continue",33);case 13:if(s=/url\((["']?)([^"')]+)\1\)/g,c=/local\((["']?)[^)]+?\1\)/g,l=!!o.match(s),D=!!o.match(c),l||!D){e.next=20;break}return C+="@font-face{font-family:".concat(r,";src:").concat(o,";font-style:").concat(i.style.getPropertyValue("font-style")||"normal",";font-weight:").concat(i.style.getPropertyValue("font-weight")||"normal",";}"),e.abrupt("continue",33);case 20:d=o,p=Array.from(o.matchAll(s)),f=Object(u.a)().mark((function e(){var a,n,i,o,r,s;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=g[h],n=a[2].trim()){e.next=4;break}return e.abrupt("return",0);case 4:if((i=n).startsWith("http")||i.startsWith("data:")||(i=new URL(i,t.href||location.href).href),!Z(i)){e.next=8;break}return e.abrupt("return",0);case 8:if(!x.resource.has(i)){e.next=12;break}return x.font.add(i),d=d.replace(a[0],"url(".concat(x.resource.get(i),")")),e.abrupt("return",0);case 12:if(!x.font.has(i)){e.next=14;break}return e.abrupt("return",0);case 14:return e.prev=14,e.next=17,fetch(i);case 17:return o=e.sent,e.next=20,o.blob();case 20:return r=e.sent,e.next=23,new Promise((function(e){var t=new FileReader;t.onload=function(){return e(t.result)},t.readAsDataURL(r)}));case 23:s=e.sent,x.resource.set(i,s),x.font.add(i),d=d.replace(a[0],"url(".concat(s,")")),e.next=31;break;case 29:e.prev=29,e.t0=e.catch(14);case 31:case"end":return e.stop()}}),e,null,[[14,29]])})),h=0,g=p;case 24:if(!(h<g.length)){e.next=32;break}return e.delegateYield(f(),"t0",26);case 26:if(0!==e.t0){e.next=29;break}return e.abrupt("continue",29);case 29:h++,e.next=24;break;case 32:C+="@font-face{font-family:".concat(r,";src:").concat(d,";font-style:").concat(i.style.getPropertyValue("font-style")||"normal",";font-weight:").concat(i.style.getPropertyValue("font-weight")||"normal",";}");case 33:e.next=6;break;case 35:e.next=40;break;case 37:e.prev=37,e.t1=e.catch(4),a.e(e.t1);case 40:return e.prev=40,a.f(),e.finish(40);case 43:e.next=47;break;case 45:e.prev=45,e.t2=e.catch(1);case 47:case"end":return e.stop()}}),e,null,[[1,45],[4,37,40,43]])})),A.s();case 59:if((b=A.n()).done){e.next=63;break}return e.delegateYield(y(),"t3",61);case 61:e.next=59;break;case 63:e.next=68;break;case 65:e.prev=65,e.t4=e.catch(56),A.e(e.t4);case 68:return e.prev=68,A.f(),e.finish(68);case 71:w=Object(S.a)(document.fonts),e.prev=72,P=Object(u.a)().mark((function e(){var t,a,n,i;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=B.value).family||"loaded"!==t.status||!t._snapdomSrc){e.next=30;break}if(!Z(t.family)){e.next=4;break}return e.abrupt("return",0);case 4:if((a=t._snapdomSrc).startsWith("data:")){e.next=29;break}if(!x.resource.has(t._snapdomSrc)){e.next=11;break}a=x.resource.get(t._snapdomSrc),x.font.add(t._snapdomSrc),e.next=29;break;case 11:if(x.font.has(t._snapdomSrc)){e.next=29;break}return e.prev=12,e.next=15,fetch(t._snapdomSrc);case 15:return n=e.sent,e.next=18,n.blob();case 18:return i=e.sent,e.next=21,new Promise((function(e){var t=new FileReader;t.onload=function(){return e(t.result)},t.readAsDataURL(i)}));case 21:a=e.sent,x.resource.set(t._snapdomSrc,a),x.font.add(t._snapdomSrc),e.next=29;break;case 26:return e.prev=26,e.t0=e.catch(12),e.abrupt("return",0);case 29:C+="@font-face{font-family:'".concat(t.family,"';src:url(").concat(a,");font-style:").concat(t.style||"normal",";font-weight:").concat(t.weight||"normal",";}");case 30:case"end":return e.stop()}}),e,null,[[12,26]])})),w.s();case 75:if((B=w.n()).done){e.next=82;break}return e.delegateYield(P(),"t5",77);case 77:if(0!==e.t5){e.next=80;break}return e.abrupt("continue",80);case 80:e.next=75;break;case 82:e.next=87;break;case 84:e.prev=84,e.t6=e.catch(72),w.e(e.t6);case 87:return e.prev=87,w.f(),e.finish(87);case 90:return C&&(x.resource.set("fonts-embed-css",C),a&&((k=document.createElement("style")).setAttribute("data-snapdom","embedFonts"),k.textContent=C,document.head.appendChild(k))),e.abrupt("return",C);case 92:case"end":return e.stop()}}),e,null,[[7,27,30,33],[38,49,52,55],[56,65,68,71],[72,84,87,90]])}))),te.apply(this,arguments)}function ae(e,t,a){return ne.apply(this,arguments)}// src/modules/svgDefs.js
function ne(){return ne=Object(i.a)(Object(u.a)().mark((function e(t,a,n){var i,o,r,s,c,l,D,d,p,f,h,g,v,C,F,m,E,A,b,y,S,w,B,k,U,I,$,R,T,K,W,H,q,Y,X,G,Q,ee,te,ne,ue,ie,oe,re,se,ce,le,De,de,pe=arguments;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=pe.length>3&&void 0!==pe[3]&&pe[3],o=pe.length>4?pe[4]:void 0,t instanceof Element&&a instanceof Element){e.next=4;break}return e.abrupt("return");case 4:r=0,s=["::before","::after","::first-letter"];case 5:if(!(r<s.length)){e.next=116;break}if(c=s[r],e.prev=7,(l=O(t,c))&&"function"==typeof l[Symbol.iterator]){e.next=11;break}return e.abrupt("continue",113);case 11:if("::first-letter"!==c){e.next=35;break}if(D=getComputedStyle(t),l.color!==D.color||l.fontSize!==D.fontSize||l.fontWeight!==D.fontWeight){e.next=16;break}return e.abrupt("continue",113);case 16:if(d=Array.from(a.childNodes).find((function(e){return e.nodeType===Node.TEXT_NODE&&e.textContent&&e.textContent.trim().length>0}))){e.next=19;break}return e.abrupt("continue",113);case 19:if(p=d.textContent,f=p.match(/^((?:[\0-\x08\x0E-\x1F!-\/:-@\[-`\{-\x9F\xA1-\xA9\xAB-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u0530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u065F\u066A-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07BF\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u088F-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0965\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09E5\u09F2\u09F3\u09FA\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A65\u0A70\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AE5\u0AF0-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B65\u0B70\u0B78-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0BE5\u0BF3-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5C\u0C5E\u0C5F\u0C62-\u0C65\u0C70-\u0C77\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDC\u0CDF\u0CE2-\u0CE5\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57\u0D62-\u0D65\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DE5\u0DF0-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F1F\u0F34-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u104A-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u1368\u137D-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u17DF\u17EA-\u17EF\u17FA-\u180F\u181A-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19FF\u1A17-\u1A1F\u1A55-\u1A7F\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B4F\u1B5A-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BFF\u1C24-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C8B-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u206F\u2072\u2073\u207A-\u207E\u208A-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A-\u245F\u249C-\u24E9\u2500-\u2775\u2794-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFC\u2CFE\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u2FFF\u3001-\u3004\u3008-\u3020\u302A-\u3030\u3036\u3037\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u3191\u3196-\u319F\u31C0-\u31EF\u3200-\u321F\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA66F-\uA67E\uA69E\uA69F\uA6F0-\uA716\uA720\uA721\uA789\uA78A\uA7CE\uA7CF\uA7D2\uA7D4\uA7DD-\uA7F1\uA802\uA806\uA80B\uA823-\uA82F\uA836-\uA83F\uA874-\uA881\uA8B4-\uA8CF\uA8DA-\uA8F1\uA8F8-\uA8FA\uA8FC\uA8FF\uA926-\uA92F\uA947-\uA95F\uA97D-\uA983\uA9B3-\uA9CE\uA9DA-\uA9DF\uA9E5\uA9FF\uAA29-\uAA3F\uAA43\uAA4C-\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAC3-\uAADA\uAADE\uAADF\uAAEB-\uAAF1\uAAF5-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABE3-\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB1E\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFE6F\uFE75\uFEFD\uFEFE\uFF00-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD06\uDD34-\uDD3F\uDD79-\uDD89\uDD8C-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEE0\uDEFC-\uDEFF\uDF24-\uDF2C\uDF4B-\uDF4F\uDF76-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDD6F\uDD7B\uDD8B\uDD93\uDD96\uDDA2\uDDB2\uDDBA\uDDBD-\uDDBF\uDDF4-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDF7F\uDF86\uDFB1\uDFBB-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56\uDC57\uDC77\uDC78\uDC9F-\uDCA6\uDCB0-\uDCDF\uDCF3\uDCF6-\uDCFA\uDD1C-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBB\uDDD0\uDDD1\uDE01-\uDE0F\uDE14\uDE18\uDE36-\uDE3F\uDE49-\uDE5F\uDE7F\uDEA0-\uDEBF\uDEC8\uDEE5-\uDEEA\uDEF0-\uDEFF\uDF36-\uDF3F\uDF56\uDF57\uDF73-\uDF77\uDF92-\uDFA8\uDFB0-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCF9\uDD24-\uDD2F\uDD3A-\uDD3F\uDD66-\uDD6E\uDD86-\uDE5F\uDE7F\uDEAA-\uDEAF\uDEB2-\uDEC1\uDEC5-\uDEFF\uDF28-\uDF2F\uDF46-\uDF50\uDF55-\uDF6F\uDF82-\uDFAF\uDFCC-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC00-\uDC02\uDC38-\uDC51\uDC70\uDC73\uDC74\uDC76-\uDC82\uDCB0-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDD02\uDD27-\uDD35\uDD40-\uDD43\uDD45\uDD46\uDD48-\uDD4F\uDD73-\uDD75\uDD77-\uDD82\uDDB3-\uDDC0\uDDC5-\uDDCF\uDDDB\uDDDD-\uDDE0\uDDF5-\uDDFF\uDE12\uDE2C-\uDE3E\uDE41-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEDF-\uDEEF\uDEFA-\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A-\uDF3C\uDF3E-\uDF4F\uDF51-\uDF5C\uDF62-\uDF7F\uDF8A\uDF8C\uDF8D\uDF8F\uDFB6\uDFB8-\uDFD0\uDFD2\uDFD4-\uDFFF]|\uD805[\uDC35-\uDC46\uDC4B-\uDC4F\uDC5A-\uDC5E\uDC62-\uDC7F\uDCB0-\uDCC3\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDAF-\uDDD7\uDDDC-\uDDFF\uDE30-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEAB-\uDEB7\uDEB9-\uDEBF\uDECA-\uDECF\uDEE4-\uDEFF\uDF1B-\uDF2F\uDF3C-\uDF3F\uDF47-\uDFFF]|\uD806[\uDC2C-\uDC9F\uDCF3-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD30-\uDD3E\uDD40\uDD42-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD1-\uDDE0\uDDE2\uDDE4-\uDDFF\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE4F\uDE51-\uDE5B\uDE8A-\uDE9C\uDE9E-\uDEAF\uDEF9-\uDFBF\uDFE1-\uDFEF\uDFFA-\uDFFF]|\uD807[\uDC09\uDC2F-\uDC3F\uDC41-\uDC4F\uDC6D-\uDC71\uDC90-\uDCFF\uDD07\uDD0A\uDD31-\uDD45\uDD47-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8A-\uDD97\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF3-\uDF01\uDF03\uDF11\uDF34-\uDF4F\uDF5A-\uDFAF\uDFB1-\uDFBF\uDFD5-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD812-\uD817\uD819\uD824-\uD82A\uD82D\uD82E\uD830-\uD832\uD836\uD83D\uD83F\uD87C\uD87D\uD87F\uD889-\uDBFF][\uDC00-\uDFFF]|\uD80B[\uDC00-\uDF8F\uDFF1-\uDFFF]|\uD80D[\uDC30-\uDC40\uDC47-\uDC5F]|\uD810[\uDFFB-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD818[\uDC00-\uDCFF\uDD1E-\uDD2F\uDD3A-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDE6F\uDEBF\uDECA-\uDECF\uDEEE-\uDEFF\uDF30-\uDF3F\uDF44-\uDF4F\uDF5A\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDD3F\uDD6D-\uDD6F\uDD7A-\uDE3F\uDE97-\uDEFF\uDF4B-\uDF4F\uDF51-\uDF92\uDFA0-\uDFDF\uDFE2\uDFE4-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFE\uDD09-\uDFFF]|\uD82B[\uDC00-\uDFEF\uDFF4\uDFFC\uDFFF]|\uD82C[\uDD23-\uDD31\uDD33-\uDD4F\uDD53\uDD54\uDD56-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDFFF]|\uD833[\uDC00-\uDCEF\uDCFA-\uDFFF]|\uD834[\uDC00-\uDEBF\uDED4-\uDEDF\uDEF4-\uDF5F\uDF79-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD837[\uDC00-\uDEFF\uDF1F-\uDF24\uDF2B-\uDFFF]|\uD838[\uDC00-\uDC2F\uDC6E-\uDCFF\uDD2D-\uDD36\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDE8F\uDEAE-\uDEBF\uDEEC-\uDEEF\uDEFA-\uDFFF]|\uD839[\uDC00-\uDCCF\uDCEC-\uDCEF\uDCFA-\uDDCF\uDDEE\uDDEF\uDDFB-\uDFDF\uDFE7\uDFEC\uDFEF\uDFFF]|\uD83A[\uDCC5\uDCC6\uDCD0-\uDCFF\uDD44-\uDD4A\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDC70\uDCAC\uDCB0\uDCB5-\uDD00\uDD2E\uDD3E-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEE0-\uDEFF]|\uD86D[\uDF3A-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFEF]|\uD87B[\uDE5E-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDF4F]|\uD888[\uDFB0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDD40-\uDD65\uDD6F-\uDD85\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D\uDD30-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD833[\uDCF0-\uDCF9]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDDD0-\uDDED\uDDF0-\uDDFA\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:['\u2019])?)/),h=null==f?void 0:f[0],g=p.slice((null==h?void 0:h.length)||0),h&&!/[\uD800-\uDFFF]/.test(h)){e.next=25;break}return e.abrupt("continue",113);case 25:return(v=document.createElement("span")).textContent=h,v.dataset.snapdomPseudo="::first-letter",C=N(l),F=P(C,"span",n),x.preStyleMap.set(v,F),m=document.createTextNode(g),a.replaceChild(m,d),a.insertBefore(v,m),e.abrupt("continue",113);case 35:if(E=l.getPropertyValue("content"),A=l.getPropertyValue("background-image"),b=l.getPropertyValue("background-color"),y=l.getPropertyValue("font-family"),S=parseInt(l.getPropertyValue("font-size"))||32,w=parseInt(l.getPropertyValue("font-weight"))||!1,B=l.getPropertyValue("color")||"#000",k=l.getPropertyValue("display"),U=parseFloat(l.getPropertyValue("width")),I=parseFloat(l.getPropertyValue("height")),$=l.getPropertyValue("border-style"),R=l.getPropertyValue("transform"),T=Z(y),K=void 0,K=/counter\s*\(|counters\s*\(/.test(E)?"- ":j(E),H=A&&"none"!==A,q=b&&"transparent"!==b&&"rgba(0, 0, 0, 0)"!==b,Y="inline"!==k&&(U>0||I>0),X=$&&"none"!==$,G=R&&"none"!==R,(W="none"!==E&&""!==K)||H||q||Y||X||G){e.next=60;break}return e.abrupt("continue",113);case 60:if((Q=document.createElement("span")).dataset.snapdomPseudo=c,ee=N(l),te=P(ee,"span",n),x.preStyleMap.set(Q,te),!T||1!==K.length){e.next=74;break}return ne=document.createElement("img"),e.next=69,J(K,y,w,S,B);case 69:ne.src=e.sent,ne.style="width:".concat(S,"px;height:auto;object-fit:contain;"),Q.appendChild(ne),e.next=92;break;case 74:if(!K.startsWith("url(")){e.next=91;break}if(!(ue=L(K))||""===ue.trim()){e.next=89;break}return e.prev=77,ie=document.createElement("img"),e.next=81,V(_(ue));case 81:oe=e.sent,ie.src=oe,ie.style="width:".concat(S,"px;height:auto;object-fit:contain;"),Q.appendChild(ie),e.next=89;break;case 87:e.prev=87,e.t0=e.catch(77);case 89:e.next=92;break;case 91:!T&&W&&(Q.textContent=K);case 92:if(!H){e.next=103;break}return e.prev=93,re=z(A),e.next=97,Promise.all(re.map((function(e){return M(e)})));case 97:se=e.sent,Q.style.backgroundImage=se.join(", "),e.next=103;break;case 101:e.prev=101,e.t1=e.catch(93);case 103:if(q&&(Q.style.backgroundColor=b),ce=Q.childNodes.length>0||Q.textContent&&""!==Q.textContent.trim(),ce||H||q||Y||X||G){e.next=108;break}return e.abrupt("continue",113);case 108:"::before"===c?a.insertBefore(Q,a.firstChild):a.appendChild(Q),e.next=113;break;case 111:e.prev=111,e.t2=e.catch(7);case 113:r++,e.next=5;break;case 116:le=Array.from(t.children),De=Array.from(a.children).filter((function(e){return!e.dataset.snapdomPseudo})),de=0;case 119:if(!(de<Math.min(le.length,De.length))){e.next=125;break}return e.next=122,ae(le[de],De[de],n,i,o);case 122:de++,e.next=119;break;case 125:case"end":return e.stop()}}),e,null,[[7,111],[77,87],[93,101]])}))),ne.apply(this,arguments)}function ue(e){if(e){var t=document.querySelectorAll("svg > defs");t.length&&e.querySelectorAll("svg").forEach((function(e){var a=e.querySelectorAll("use");if(a.length){var n=new Set;if(a.forEach((function(e){var t=e.getAttribute("xlink:href")||e.getAttribute("href");t&&t.startsWith("#")&&n.add(t.slice(1))})),n.size){var u,i=document.createElementNS("http://www.w3.org/2000/svg","defs"),o=Object(S.a)(n);try{for(o.s();!(u=o.n()).done;){var r,s=u.value,c=Object(S.a)(t);try{for(c.s();!(r=c.n()).done;){var l=r.value.querySelector("#".concat(CSS.escape(s)));if(l){i.appendChild(l.cloneNode(!0));break}}}catch(e){c.e(e)}finally{c.f()}}}catch(e){o.e(e)}finally{o.f()}i.childNodes.length&&e.insertBefore(i,e.firstChild)}}}))}}
// src/core/prepare.js
function ie(e){return oe.apply(this,arguments)}// src/modules/images.js
function oe(){return oe=Object(i.a)(Object(u.a)().mark((function e(t){var a,n,i,o,r,s,c,l,D,d,p,f,h,g,v,C,F,m,E,A,b,w,B,P,k,U,M,$,R,O,j,L,V,N=arguments;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=N.length>1&&void 0!==N[1]&&N[1],n=N.length>2&&void 0!==N[2]&&N[2],i=N.length>3&&void 0!==N[3]?N[3]:{},r="",e.prev=4,o=W(t,a,i,t),e.next=11;break;case 8:throw e.prev=8,e.t0=e.catch(4),e.t0;case 11:return e.prev=11,e.next=14,ae(t,o,a,n,i.useProxy);case 14:e.next=18;break;case 16:e.prev=16,e.t1=e.catch(11);case 18:try{ue(o)}catch(e){}if(!a){e.next=46;break}s=I(),r=Array.from(s.entries()).map((function(e){var t=Object(y.a)(e,2),a=t[0],n=t[1];return".".concat(n,"{").concat(a,"}")})).join(""),c=Object(S.a)(x.preStyleMap.entries()),e.prev=23,c.s();case 25:if((l=c.n()).done){e.next=36;break}if(d=Object(y.a)(l.value,2),p=d[0],f=d[1],"STYLE"!==p.tagName){e.next=29;break}return e.abrupt("continue",34);case 29:(h=s.get(f))&&p.classList.add(h),g=null===(D=p.style)||void 0===D?void 0:D.backgroundImage,p.removeAttribute("style"),g&&"none"!==g&&(p.style.backgroundImage=g);case 34:e.next=25;break;case 36:e.next=41;break;case 38:e.prev=38,e.t2=e.catch(23),c.e(e.t2);case 41:return e.prev=41,c.f(),e.finish(41);case 44:e.next=64;break;case 46:v=Object(S.a)(x.preStyleMap.entries()),e.prev=47,v.s();case 49:if((C=v.n()).done){e.next=56;break}if(F=Object(y.a)(C.value,2),m=F[0],E=F[1],"STYLE"!==m.tagName){e.next=53;break}return e.abrupt("continue",54);case 53:m.setAttribute("style",E.replace(/;/g,"; "));case 54:e.next=49;break;case 56:e.next=61;break;case 58:e.prev=58,e.t3=e.catch(47),v.e(e.t3);case 61:return e.prev=61,v.f(),e.finish(61);case 64:A=Object(S.a)(x.preNodeMap.entries());try{for(A.s();!(b=A.n()).done;)if(w=Object(y.a)(b.value,2),B=w[0],P=w[1],k=P.scrollLeft,U=P.scrollTop,(k||U)&&B instanceof HTMLElement){for(B.style.overflow="hidden",B.style.scrollbarWidth="none",B.style.msOverflowStyle="none",(M=document.createElement("div")).style.transform="translate(".concat(-k,"px, ").concat(-U,"px)"),M.style.willChange="transform",M.style.display="inline-block",M.style.width="100%";B.firstChild;)M.appendChild(B.firstChild);B.appendChild(M)}}catch(e){A.e(e)}finally{A.f()}t===x.preNodeMap.get(o)&&($=x.preStyle.get(t)||window.getComputedStyle(t),x.preStyle.set(t,$),R=T($.transform),o.style.margin="0",o.style.position="static",o.style.top="auto",o.style.left="auto",o.style.right="auto",o.style.bottom="auto",o.style.zIndex="auto",o.style.float="none",o.style.clear="none",o.style.transform=R||""),O=Object(S.a)(x.preNodeMap.entries());try{for(O.s();!(j=O.n()).done;)L=Object(y.a)(j.value,2),V=L[0],"PRE"===L[1].tagName&&(V.style.marginTop="0",V.style.marginBlockStart="0")}catch(e){O.e(e)}finally{O.f()}return e.abrupt("return",{clone:o,classCSS:r});case 70:case"end":return e.stop()}}),e,null,[[4,8],[11,16],[23,38,41,44],[47,58,61,64]])}))),oe.apply(this,arguments)}function re(e){return se.apply(this,arguments)}// src/modules/background.js
function se(){return se=Object(i.a)(Object(u.a)().mark((function e(t){var a,n,o,r,s,c=arguments;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=c.length>1&&void 0!==c[1]?c[1]:{},n=Array.from(t.querySelectorAll("img")),o=function(){var e=Object(i.a)(Object(u.a)().mark((function e(t){var n,i,o;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.src,e.prev=1,e.next=4,V(n,{useProxy:a.useProxy});case 4:i=e.sent,t.src=i,t.width||(t.width=t.naturalWidth||100),t.height||(t.height=t.naturalHeight||100),e.next=16;break;case 10:e.prev=10,e.t0=e.catch(1),(o=document.createElement("div")).style="width: ".concat(t.width||100,"px; height: ").concat(t.height||100,"px; background: #ccc; display: inline-block; text-align: center; line-height: ").concat(t.height||100,"px; color: #666; font-size: 12px;"),o.innerText="img",t.replaceWith(o);case 16:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(t){return e.apply(this,arguments)}}(),r=0;case 4:if(!(r<n.length)){e.next=11;break}return s=n.slice(r,r+4).map(o),e.next=8,Promise.allSettled(s);case 8:r+=4,e.next=4;break;case 11:case"end":return e.stop()}}),e)}))),se.apply(this,arguments)}function ce(e,t){return le.apply(this,arguments)}// src/core/capture.js
function le(){return le=Object(i.a)(Object(u.a)().mark((function e(t,a){var n,i,o,r,s,c,l,D,d,p,f,h,g,v,C,F,m,E,A=arguments;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=A.length>2&&void 0!==A[2]?A[2]:{},i=[[t,a]],o=["background-image","mask","mask-image","-webkit-mask-image","mask-source","mask-box-image-source","mask-border-source","-webkit-mask-box-image-source"];case 3:if(!i.length){e.next=37;break}r=i.shift(),s=Object(y.a)(r,2),c=s[0],l=s[1],D=x.preStyle.get(c)||O(c),x.preStyle.has(c)||x.preStyle.set(c,D),d=Object(S.a)(o),e.prev=8,d.s();case 10:if((p=d.n()).done){e.next=22;break}if(f=p.value,(h=D.getPropertyValue(f))&&"none"!==h){e.next=15;break}return e.abrupt("continue",20);case 15:return g=z(h),e.next=18,Promise.all(g.map((function(e){return M(e,n)})));case 18:(v=e.sent).some((function(e){return e&&"none"!==e&&!/^url\(undefined/.test(e)}))&&l.style.setProperty(f,v.join(", "));case 20:e.next=10;break;case 22:e.next=27;break;case 24:e.prev=24,e.t0=e.catch(8),d.e(e.t0);case 27:return e.prev=27,d.f(),e.finish(27);case 30:for((C=D.getPropertyValue("background-color"))&&"transparent"!==C&&"rgba(0, 0, 0, 0)"!==C&&(l.style.backgroundColor=C),F=Array.from(c.children),m=Array.from(l.children),E=0;E<Math.min(F.length,m.length);E++)i.push([F[E],m[E]]);e.next=3;break;case 37:case"end":return e.stop()}}),e,null,[[8,24,27,30]])}))),le.apply(this,arguments)}function De(e){return de.apply(this,arguments)}// src/api/snapdom.js
function de(){return de=Object(i.a)(Object(u.a)().mark((function e(t){var a,n,o,r,s,c,l,D,d,p,f,h,g,v,C,F,m,E,A,b=arguments;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=b.length>1&&void 0!==b[1]?b[1]:{},t){e.next=3;break}throw new Error("Element cannot be null or undefined");case 3:return x.reset(),n=a.compress,o=void 0===n||n,r=a.embedFonts,s=void 0!==r&&r,c=a.fast,l=void 0===c||c,D=a.scale,d=void 0===D?1:D,p=a.useProxy,g="",v="",e.next=9,ie(t,o,s,a);case 9:return F=e.sent,f=F.clone,h=F.classCSS,e.next=14,new Promise((function(e){R(Object(i.a)(Object(u.a)().mark((function t(){return Object(u.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,re(f,a);case 2:e();case 3:case"end":return t.stop()}}),t)}))),{fast:l})}));case 14:return e.next=16,new Promise((function(e){R(Object(i.a)(Object(u.a)().mark((function n(){return Object(u.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ce(t,f,a);case 2:e();case 3:case"end":return n.stop()}}),n)}))),{fast:l})}));case 16:if(!s){e.next=19;break}return e.next=19,new Promise((function(e){R(Object(i.a)(Object(u.a)().mark((function t(){return Object(u.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ee();case 2:g=t.sent,e();case 4:case"end":return t.stop()}}),t)}))),{fast:l})}));case 19:if(!o){e.next=28;break}if(m=k(f).sort(),E=m.join(","),!x.baseStyle.has(E)){e.next=26;break}v=x.baseStyle.get(E),e.next=28;break;case 26:return e.next=28,new Promise((function(e){R((function(){v=U(m),x.baseStyle.set(E,v),e()}),{fast:l})}));case 28:return e.next=30,new Promise((function(e){R((function(){var n=t.getBoundingClientRect(),u=n.width,i=n.height,o=Number.isFinite(a.width),r=Number.isFinite(a.height),s="number"==typeof d&&1!==d;if(!s){var c=n.width/n.height;o&&r?(u=a.width,i=a.height):o?i=(u=a.width)/c:r&&(u=(i=a.height)*c)}if(u=Math.ceil(u),i=Math.ceil(i),f.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),f.style.transformOrigin="top left",!s&&(o||r)){var l=u/n.width,D=i/n.height,p=f.style.transform||"",F="scale(".concat(l,", ").concat(D,")");f.style.transform="".concat(F," ").concat(p).trim()}var m="http://www.w3.org/2000/svg",E=document.createElementNS(m,"foreignObject");E.setAttribute("width","100%"),E.setAttribute("height","100%");var A=document.createElement("style");A.textContent=v+g+"svg{overflow:visible;}"+h,E.appendChild(A),E.appendChild(f);var b=(new XMLSerializer).serializeToString(E),y='<svg xmlns="'.concat(m,'" width="').concat(u,'" height="').concat(i,'" viewBox="0 0 ').concat(u," ").concat(i,'">');C="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(y+b+"</svg>")),e()}),{fast:l})}));case 30:return(A=document.getElementById("snapdom-sandbox"))&&"absolute"===A.style.position&&A.remove(),e.abrupt("return",C);case 33:case"end":return e.stop()}}),e)}))),de.apply(this,arguments)}function pe(e,t){return fe.apply(this,arguments)}function fe(){return(fe=Object(i.a)(Object(u.a)().mark((function e(t,a){var n,i,o,r;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.dpr,i=a.scale,o=void 0===i?1:i,(r=new Image).src=t,e.next=5,r.decode();case 5:return r.width=r.width*o,r.height=r.height*o,e.abrupt("return",r);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function he(e){return ge.apply(this,arguments)}function ge(){return ge=Object(i.a)(Object(u.a)().mark((function e(t){var a,n,i,o,r,s,c,l,D,d,p,f,h=arguments;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(a=h.length>1&&void 0!==h[1]?h[1]:{}).dpr,i=void 0===n?1:n,o=a.scale,r=void 0===o?1:o,(s=new Image).src=t,s.crossOrigin="anonymous",s.loading="eager",s.decoding="sync",c=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),l=!1,c&&(document.body.appendChild(s),l=!0),e.next=11,s.decode();case 11:if(!c){e.next=14;break}return e.next=14,new Promise((function(e){return setTimeout(e,100)}));case 14:if(0!==s.width&&0!==s.height){e.next=17;break}throw l&&s.remove(),new Error("Image failed to load or has no dimensions");case 17:return D=s.width*r,d=s.height*r,(p=document.createElement("canvas")).width=Math.ceil(D*i),p.height=Math.ceil(d*i),p.style.width="".concat(D,"px"),p.style.height="".concat(d,"px"),(f=p.getContext("2d")).scale(i,i),f.drawImage(s,0,0,D,d),l&&s.remove(),e.abrupt("return",p);case 29:case"end":return e.stop()}}),e)}))),ge.apply(this,arguments)}function ve(e){return Ce.apply(this,arguments)}function Ce(){return Ce=Object(i.a)(Object(u.a)().mark((function e(t){var a,n,i,o,r,s,c,l,D,d,p,f=arguments;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(a=f.length>1&&void 0!==f[1]?f[1]:{}).type,i=void 0===n?"svg":n,o=a.scale,r=void 0===o?1:o,s=a.backgroundColor,c=void 0===s?"#fff":s,l=a.quality,D={jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",webp:"image/webp"}[i]||"image/png","svg"!==i){e.next=5;break}return d=decodeURIComponent(t.split(",")[1]),e.abrupt("return",new Blob([d],{type:"image/svg+xml"}));case 5:return e.next=7,Fe(t,{dpr:1,scale:r},c);case 7:return p=e.sent,e.abrupt("return",new Promise((function(e){p.toBlob((function(t){return e(t)}),"".concat(D),l)})));case 9:case"end":return e.stop()}}),e)}))),Ce.apply(this,arguments)}function Fe(e,t,a){return me.apply(this,arguments)}function me(){return(me=Object(i.a)(Object(u.a)().mark((function e(t,a,n){var i,o,r,s,c,l,D;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.dpr,o=void 0===i?1:i,r=a.scale,s=void 0===r?1:r,e.next=3,he(t,{dpr:o,scale:s});case 3:if(c=e.sent,n){e.next=6;break}return e.abrupt("return",c);case 6:return(l=document.createElement("canvas")).width=c.width,l.height=c.height,(D=l.getContext("2d")).fillStyle=n,D.fillRect(0,0,l.width,l.height),D.drawImage(c,0,0),e.abrupt("return",l);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ee(e,t){return Ae.apply(this,arguments)}function Ae(){return Ae=Object(i.a)(Object(u.a)().mark((function e(t,a){var n,i,o,r,s,c,l,D,d,p,f,h=arguments;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.dpr,i=void 0===n?1:n,o=a.scale,r=void 0===o?1:o,s=a.backgroundColor,c=a.quality,D=["jpg","jpeg","webp"].includes(l=h.length>2&&void 0!==h[2]?h[2]:"png")?"#fff":void 0,d=null!=s?s:D,e.next=6,Fe(t,{dpr:i,scale:r},d);case 6:return p=e.sent,(f=new Image).src=p.toDataURL("image/".concat(l),c),e.next=11,f.decode();case 11:return f.style.width="".concat(p.width/i,"px"),f.style.height="".concat(p.height/i,"px"),e.abrupt("return",f);case 14:case"end":return e.stop()}}),e)}))),Ae.apply(this,arguments)}function be(e){return ye.apply(this,arguments)}function ye(){return ye=Object(i.a)(Object(u.a)().mark((function e(t){var a,n,i,o,r,s,c,l,D,d,p,f,h,g,v,C,F,m,E,A=arguments;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(a=A.length>1&&void 0!==A[1]?A[1]:{}).dpr,i=void 0===n?1:n,o=a.scale,r=void 0===o?1:o,s=a.backgroundColor,c=a.format,l=void 0===c?"png":c,D=a.filename,d=void 0===D?"snapDOM":D,"svg"!==l){e.next=12;break}return e.next=4,ve(t);case 4:return p=e.sent,f=URL.createObjectURL(p),(h=document.createElement("a")).href=f,h.download="".concat(d,".svg"),h.click(),URL.revokeObjectURL(f),e.abrupt("return");case 12:return g=["jpg","jpeg","webp"].includes(l)?"#fff":void 0,v=null!=s?s:g,e.next=16,Fe(t,{dpr:i,scale:r},v);case 16:C=e.sent,F={jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",webp:"image/webp"}[l]||"image/png",m=C.toDataURL(F),(E=document.createElement("a")).href=m,E.download="".concat(d,".").concat(l),E.click();case 23:case"end":return e.stop()}}),e)}))),ye.apply(this,arguments)}function Se(e){return we.apply(this,arguments)}function we(){return we=Object(i.a)(Object(u.a)().mark((function e(t){var a,n=arguments;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.length>1&&void 0!==n[1]?n[1]:{},a=Object(o.a)({scale:1},a),t){e.next=4;break}throw new Error("Element cannot be null or undefined");case 4:return a.iconFonts&&Y(a.iconFonts),e.next=7,Se.capture(t,a);case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)}))),we.apply(this,arguments)}Se.capture=function(){var e=Object(i.a)(Object(u.a)().mark((function e(t){var a,n,i,r,s=arguments;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>1&&void 0!==s[1]?s[1]:{},e.next=3,De(t,a);case 3:return n=e.sent,i=window.devicePixelRatio||1,r=a.scale||1,e.abrupt("return",{url:n,options:a,toRaw:function(){return n},toImg:function(){return pe(n,{dpr:i,scale:r})},toCanvas:function(){return he(n,{dpr:i,scale:r})},toBlob:function(e){return ve(n,Object(o.a)({dpr:i,scale:r},e))},toPng:function(e){return Ee(n,Object(o.a)({dpr:i,scale:r},e),"png")},toJpg:function(e){return Ee(n,Object(o.a)({dpr:i,scale:r},e),"jpeg")},toWebp:function(e){return Ee(n,Object(o.a)({dpr:i,scale:r},e),"webp")},download:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.format,a=void 0===t?"png":t,u=e.filename,o=void 0===u?"capture":u,s=e.backgroundColor;return be(n,{dpr:i,scale:r,backgroundColor:s,format:a,filename:o})}});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Se.toRaw=function(){var e=Object(i.a)(Object(u.a)().mark((function e(t,a){return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Se.capture(t,a);case 2:return e.abrupt("return",e.sent.toRaw());case 3:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),Se.toImg=function(){var e=Object(i.a)(Object(u.a)().mark((function e(t,a){return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Se.capture(t,a);case 2:return e.abrupt("return",e.sent.toImg());case 3:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),Se.toCanvas=function(){var e=Object(i.a)(Object(u.a)().mark((function e(t,a){return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Se.capture(t,a);case 2:return e.abrupt("return",e.sent.toCanvas());case 3:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),Se.toBlob=function(){var e=Object(i.a)(Object(u.a)().mark((function e(t,a){return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Se.capture(t,a);case 2:return e.abrupt("return",e.sent.toBlob(a));case 3:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),Se.toPng=function(){var e=Object(i.a)(Object(u.a)().mark((function e(t,a){return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Se.capture(t,a);case 2:return e.abrupt("return",e.sent.toPng(a));case 3:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),Se.toJpg=function(){var e=Object(i.a)(Object(u.a)().mark((function e(t,a){return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Se.capture(t,a);case 2:return e.abrupt("return",e.sent.toJpg(a));case 3:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),Se.toWebp=function(){var e=Object(i.a)(Object(u.a)().mark((function e(t,a){return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Se.capture(t,a);case 2:return e.abrupt("return",e.sent.toWebp(a));case 3:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),Se.download=function(){var e=Object(i.a)(Object(u.a)().mark((function e(t){var a,n,i,o,r,s,c,l,D=arguments;return Object(u.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(a=D.length>1&&void 0!==D[1]?D[1]:{}).format,i=void 0===n?"png":n,o=a.filename,r=void 0===o?"capture":o,s=a.backgroundColor,c=Object(b.a)(a,w),e.next=4,Se.capture(t,c);case 4:return l=e.sent,e.next=7,l.download({format:i,filename:r,backgroundColor:s});case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"411544a2-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/lockScreen/LockScreen.vue?vue&type=template&id=5ee486a6&scoped=true
var xe=a("93d6"),Be=a("8237"),Pe=a.n(Be),ke=(a("edad"),{name:"LockScreen",i18n:a("89fe"),data:function(){return{inputPassword:"",errorMsg:"",focused:!1}},computed:{visible:function(){return this.$store.state.ISMDisPlayEditorTool.isLocked}},methods:Object(o.a)(Object(o.a)({},Object(D.b)("ISMDisPlayEditorTool",["unLockScreen"])),{},{handleUnlock:function(){var e=this;return Object(i.a)(Object(u.a)().mark((function t(){var a,n,i;return Object(u.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.inputPassword){t.next=3;break}return e.$message.warning({content:"请输入密码",style:{backgroundColor:"#1e293b",color:"#e2e8f0"}}),t.abrupt("return");case 3:try{a=e,e.errorMsg="",n={Password:Pe()(e.inputPassword)},Object(xe.j)(n).then((function(e){200==e.data.code?(a.$message.success({content:"解锁成功，系统正在恢复",style:{backgroundColor:"#0f172a",color:"#00e5ff"}}),a.unLockScreen()):a.$message.error({content:"解锁失败",style:{backgroundColor:"#0f172a",color:"#00e5ff"}})})).catch((function(){a.logging=!1,a.$message.error(a.$t("loginPage.serverError"),3)}))}catch(t){e.errorMsg=t.message,e.inputPassword="",(
// 错误时密码框抖动效果
i=_t.$el.querySelector(".tech-input")).classList.add("shake-animation"),setTimeout((function(){return i.classList.remove("shake-animation")}),600)}case 4:case"end":return t.stop()}}),t)})))()}})}),Ue=(a("f9e8"),a("2877")),Ie=Object(Ue.a)(ke,(function(){var e=this,t=e._self._c;return t("a-modal",{staticClass:"lock-screen-modal",attrs:{width:360,closable:!1,"mask-closable":!1,footer:null,title:"","mask-style":{backgroundColor:"rgba(10, 15, 30, 0.95)"}},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("div",{staticClass:"grid-bg"}),t("div",{staticClass:"glow-effect"}),t("div",{staticClass:"particles-container"},e._l(12,(function(e){return t("div",{key:e,staticClass:"particle",style:{top:"".concat(100*Math.random(),"%"),left:"".concat(100*Math.random(),"%"),animationDelay:"".concat(5*Math.random(),"s"),animationDuration:"".concat(5+10*Math.random(),"s")}})})),0),t("div",{staticClass:"tech-container"},[t("div",{staticClass:"tech-header"},[t("div",{staticClass:"glow-line"})]),t("div",{staticClass:"lock-icon"},[t("a-icon",{staticClass:"pulse-animation",staticStyle:{"font-size":"56px",color:"#00e5ff"},attrs:{type:"lock",theme:"filled"}})],1),t("div",{staticClass:"lock-title"},[t("span",{staticClass:"title-glow"},[e._v("屏幕已锁定")]),t("p",[e._v("请输入密码解锁系统")])]),t("div",{staticClass:"password-container"},[t("a-input-password",{staticClass:"tech-input",class:{"tech-input-focused":e.focused},attrs:{placeholder:"输入解锁密码"},on:{"press-enter":e.handleUnlock,focus:function(t){e.focused=!0},blur:function(t){e.focused=!1}},model:{value:e.inputPassword,callback:function(t){e.inputPassword=t},expression:"inputPassword"}})],1),t("a-button",{staticClass:"unlock-btn",attrs:{type:"primary",block:""},on:{click:e.handleUnlock}},[t("span",[e._v("解锁系统")]),t("a-icon",{staticStyle:{"margin-left":"8px"},attrs:{type:"arrow-right"}})],1),e.errorMsg?t("a-alert",{staticClass:"error-alert",attrs:{type:"error",message:"验证失败",description:"密码错误，请重新输入","show-icon":""}}):e._e(),t("div",{staticClass:"status-bar"},[t("span",{staticClass:"status-indicator"}),t("span",{staticClass:"system-status"},[e._v("SYSTEM LOCKED - SECURE MODE")])])],1)])}),[],!1,null,"5ee486a6",null)
/* harmony default export */.exports,Me=a("c8b5"),$e=a.n(Me),Re="updatable";C.default.use(F.a);
/* harmony default export */var Oe={name:"ISMRender",extends:c.a,i18n:a("89fe"),components:{SimpleKeyboard:s.a,LockScreen:Ie},props:{showUuid:{type:String,required:!0},showToken:{type:String,required:!0},showDeviceUuid:{type:String,required:!0}},watch:{showUuid:{handler:function(e,t){if(""!=e){var a=this,n={pageType:1,displayUUID:e,pageUuid:this.showPageUUID};a.chargePage=!0,this.$message.loading({content:"Loading...",loadingKey:Re,duration:0}),this.CurrentRealUUIDList=[],this.CurrentModelUUIDList=[],this.CurrentPagerRealDataUuidList=[],this.CurrentPagerRealDeviceUuidList=[],this.selectDisplayPageDataStruct({page:n,callback:function(e,t){a.$message.destroy(),a.chargePage=!1,a.CurrentPagerRealDataUuidList=e,a.CurrentPagerRealDeviceUuidList=t,a.RunCavasContainerInit(a.configData.layer.autoSize,a.configData.layer.Padding)}}),this.showUuid=e}},deep:!0},fullScreen:{handler:function(e,t){var a=this;0==e&&(document.getElementById("popContainer").style.overflow="visible");1==this.configData.layer.autoSize&&setTimeout((function(){a.setScale()}),1e3)},deep:!0}},computed:Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},Object(D.e)("setting",["langList","isMobile","lang"])),Object(D.c)("account",["user"])),Object(D.e)({selectedValue:function(e){return l.a.state.ISMDisPlayEditorTool.selectedValue},configData:function(e){return l.a.state.ISMDisPlayEditorTool.LayerData},PopUpConfigData:function(e){return l.a.state.ISMDisPlayEditorTool.PopUpConfigData}})),{},{nodeMouseStyleVar:function(){return{"--NodeMouseStyle":null!=this.SelectCurrentNodeData&&void 0!==this.SelectCurrentNodeData.action&&this.SelectCurrentNodeData.action.length>0?"pointer":""}},layerStyle:function(){var e=["transform:scale(".concat(1,")")];return this.configData.layer.backColor&&e.push("background-color: ".concat(this.configData.layer.backColor)),this.configData.layer.backgroundImage&&(e.push('background-image: url("'.concat(this.configData.layer.backgroundImage,'")')),e.push("background-size:100% 100%")),this.configData.layer.width>0&&e.push("width: ".concat(this.configData.layer.width,"px")),this.configData.layer.height>0&&e.push("height: ".concat(this.configData.layer.height,"px")),e.join(";")},popUpStyle:function(){var e=["transform:scale(".concat(1,")")];return this.PopUpConfigData.layer.backColor&&e.push("background-color: ".concat(this.PopUpConfigData.layer.backColor)),this.PopUpConfigData.layer.backgroundImage&&(e.push('background-image: url("'.concat(this.PopUpConfigData.layer.backgroundImage,'")')),e.push("background-size:100% 100%")),this.PopUpConfigData.layer.width>0&&e.push("width: ".concat(this.PopUpConfigData.layer.width,"px")),this.PopUpConfigData.layer.height>0&&e.push("height: ".concat(this.PopUpConfigData.layer.height,"px")),e.join(";")},stylePopUpVar:function(){return{"--popUpBackColor":this.PopUpConfigData.layer.backColor}}}),data:function(){return{hammerManager:null,tempAutoSizePager:!1,CurrentPagerRealDataUuidList:[],CurrentPagerRealDeviceUuidList:[],CurrentPagerPopRealDataUuidList:[],CurrentPagerPopRealDeviceUuidList:[],tempAutoSize:0,tempAutoPadding:0,SelectCurrentNodeData:null,ISMPopUpRunningContainer:null,ISMRuningCavasContainer:null,settingDialog:!1,IsConfirm:!1,showKeyboard:!1,changeIpt:"",
//选择了哪个输入框
setPasswordDialog:!1,actionPasswordDialog:!1,PopUpDialog:!1,chargePage:!1,IsAutoClose:!1,Zoom:100,SetPasswordFormValue:"",SetAutoPasswordFormValue:"",ActionPasswordValue:"",ActionPasswordSet:"",ActionComponent:null,ActionEvent:null,SetValueFormValue:"",clickTimer:null,linkInfoExternal:{url:"",width:1024,height:768},chargePagePopUp:!1,isExternUrl:!1,isPopUpOpen:!1,SelectDeviceUuid:"",showPageUUID:"",showAppUUID:"",deviceUuid:"",SetPassword:"",AutoSetValue:"",setDataUuid:"",settingVisible:!1,settingLoading:!1,SetForm:this.$form.createForm(this),ActionFormPassword:this.$form.createForm(this),SetFormPassword:this.$form.createForm(this),fullScreen:!1,CurrentRealUUIDList:[],CurrentRealDataNameList:[],CurrentModelUUIDList:[],CurrentPopRealUUIDList:[],CurrentPopModelUUIDList:[]}},created:function(){this.addListener()},methods:Object(o.a)(Object(o.a)(Object(o.a)({},Object(D.d)("ISMDisPlayEditorTool",["setlayerZoom"])),Object(D.b)("ISMDisPlayEditorTool",["getLayerDataStruct","lockScreen","getLayerDataStructByTokenData","selectDisplayPageDataStruct","selectPopUpDisplayPageDataStruct"])),{},{exportPng:function(){var e=this;return Object(i.a)(Object(u.a)().mark((function t(){var a,n,i;return Object(u.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.$refs.ISMRunningContainer,t.next=3,Se(a,{scale:2});case 3:return n=t.sent,t.next=6,n.toPng();case 6:return i=t.sent,document.body.appendChild(i),t.next=10,n.download({format:"png",filename:e.configData.name});case 10:case"end":return t.stop()}}),t)})))()},InitPagerRealData:function(){var e=this,t=this.CurrentPagerRealDataUuidList,a=this.CurrentPagerRealDeviceUuidList;e.CurrentRealUUIDList=[],e.CurrentModelUUIDList=[],setTimeout((function(){for(var n=[],u=0;u<t.length;u++)void 0!==t[u]&&t[u].length>0&&n.push(t[u]);for(var i=[],o=0;o<a.length;o++)void 0!==a[o]&&a[o].length>0&&i.push(a[o]);Object(d.l)({uuid:n,devices:i}).then((function(t){if(e.settingLoading=!1,0==t.data.code)for(var a=0;a<t.data.realData.length;a++)if(""!=t.data.realData[a].value){var n={DeviceUuid:t.data.realData[a].duid,ProjectUuid:t.data.realData[a].project_uuid,Cmd:"RealData",Data:[]};e.CurrentRealUUIDList.push(t.data.realData[a].uuid),e.CurrentModelUUIDList.push(t.data.realData[a].mduid);var u={Uuid:t.data.realData[a].uuid,ModelDataUuid:t.data.realData[a].mduid,Value:t.data.realData[a].value};n.Data.push(u),e.$EventBus.$emit("readDataPush",n)}}))}),50)},InitPopUpPagerRealData:function(){var e=this,t=this.CurrentPagerPopRealDataUuidList,a=this.CurrentPagerPopRealDeviceUuidList;e.CurrentPopRealUUIDList=[],e.CurrentPopModelUUIDList=[],setTimeout((function(){if(t.length>0){for(var n=[],u=0;u<t.length;u++)void 0!==t[u]&&t[u].length>0&&n.push(t[u]);for(var i=[],o=0;o<a.length;o++)void 0!==a[o]&&a[o].length>0&&i.push(a[o]);Object(d.l)({uuid:n,devices:i}).then((function(t){if(e.settingLoading=!1,0==t.data.code)for(var a=0,n=t.data.realData.length;a<n;a++){var u={DeviceUuid:t.data.realData[a].duid,ProjectUuid:t.data.realData[a].project_uuid,Cmd:"RealData",Data:[]};e.CurrentPopRealUUIDList.push(t.data.realData[a].uuid),e.CurrentPopModelUUIDList.push(t.data.realData[a].mduid);var i={Uuid:t.data.realData[a].uuid,ModelDataUuid:t.data.realData[a].mduid,Value:t.data.realData[a].value};u.Data.push(i),e.$EventBus.$emit("readDataPush",u)}}))}}),50)},loadPager:function(){var e=this;""!=this.showUuid&&(""!=this.showToken?(this.chargePage=!0,this.$message.loading({content:"Loading...",loadingKey:Re,duration:0}),this.CurrentRealUUIDList=[],this.CurrentModelUUIDList=[],e.CurrentPagerRealDataUuidList=[],e.CurrentPagerRealDeviceUuidList=[],this.getLayerDataStructByTokenData({pageType:this.isMobile,token:this.showToken,uuid:this.showUuid,cb:function(t,a,n,u,i,o){if(document.title=e.configData.AppName,e.$message.destroy(),e.chargePage=!1,0==t)Object(v.h)({token:a},v.a.AUTH1),Object(v.h)({token:u,expireAt:n}),Object(v.h)({token:e.showToken},v.a.AUTH3);else{if(-5==t)return document.title=e.$t("displayConfig.Properties.NoAuth"),void e.$message.warn(e.$t("displayConfig.Properties.NoAuth"));if(-4==t)return document.title=e.$t("displayConfig.Properties.NoToken"),void e.$message.warn(e.$t("displayConfig.Properties.NoToken"))}e.CurrentPagerRealDataUuidList=i,e.CurrentPagerRealDeviceUuidList=o,e.RunCavasContainerInit(e.configData.layer.autoSize,e.configData.layer.Padding)}})):(this.$message.loading({content:"Loading...",loadingKey:Re,duration:0}),this.CurrentRealUUIDList=[],this.CurrentModelUUIDList=[],this.CurrentPagerRealDataUuidList=[],this.CurrentPagerRealDeviceUuidList=[],this.getLayerDataStruct({pageType:this.isMobile,uuid:this.showUuid,cb:function(t,a,n,u){document.title=e.configData.AppName,0==t?Object(v.c)(v.a.AUTH1)||Object(v.h)({token:a},v.a.AUTH1):e.$router.push("/login"),e.$message.destroy(),e.CurrentPagerRealDataUuidList=n,e.CurrentPagerRealDeviceUuidList=u,e.RunCavasContainerInit(e.configData.layer.autoSize,e.configData.layer.Padding)}})))},onKeyPress:function(e){"{enter}"!==e&&"{close}"!==e||this.closekeyboard()},
// inpuit获取焦点显示虚拟键盘
onInputFocus:function(e){this.showKeyboard=!0,this.changeIpt=e,
// 父组件调用子组件的方法
this.$refs.SimpleKeyboard.onKeyPress("{clear}")},
// 给输入框赋值
onChangeKeyboard:function(e){"SetPassword"==this.changeIpt?this.SetPasswordFormValue=e:"SetValue"==this.changeIpt?this.SetValueFormValue=e:"SetAutoPassword"==this.changeIpt?this.SetAutoPasswordFormValue=e:"SetActionPassword"==this.changeIpt&&(this.ActionPasswordValue=e)},
// 点击关闭隐藏键盘
closekeyboard:function(){this.showKeyboard=!1},onContextLayerMenu:function(e){var t=this,a=this;if(!this.isCommentRightClick)return this.$contextmenu({items:[{label:a.$t("Render.FullScreen"),icon:"el-icon-full-screen",onClick:function(){a.inFullScreen()}},{label:a.$t("Render.ExitFullScreen"),icon:"el-icon-tuichuquanping",onClick:function(){a.outFullScreen()}},{label:a.$t("Render.Reload"),icon:"el-icon-lunxun",onClick:function(){a.loadPager()}},{label:a.$t("Render.LockScreen"),icon:"el-icon-suoping",onClick:function(){a.lockScreen()}},{label:1==a.tempAutoSize?a.$t("Render.ScreenUndo"):a.$t("Render.AutoSize"),icon:"el-icon-agora_zishiyingshipinfenbianshuai",onClick:function(){a.tempAutoSize=!a.tempAutoSize,a.setScale()}},{label:a.tempAutoPadding?a.$t("Render.NodeDragDisable"):a.$t("Render.NodeDragEnable"),icon:a.tempAutoPadding?"el-icon-jinzhi":"el-icon-tuodong",onClick:function(){a.tempAutoPadding=!a.tempAutoPadding,t.ISMRuningCavasContainer.togglePanning(a.tempAutoPadding),t.ISMRuningCavasContainer.toggleMouseWheel(a.tempAutoPadding)}},{label:a.$t("Render.ExportPng"),icon:"el-icon-daochupng",onClick:function(){a.exportPng()}}],event:e,
// 鼠标事件信息
divided:!0,customClass:"custom-class",
// 自定义菜单 class
zIndex:1e4,
// 菜单样式 z-index
minWidth:230}),!1},alarmSoundSpeech:function(){var e=new SpeechSynthesisUtterance;return{start:function(t,a){var n=localStorage.getItem("Speech");if("null"==n||null==n||""==n?((n={}).enable=!0,n.speed=1):n=JSON.parse(n),n.enable){void 0===t.Lang||t.Lang;""!=a&&(e.text=a,e.lang="zh-CN",e.pitch=2,e.rate=n.speed,speechSynthesis.speak(e))}}}},formatDateTime:function(e){var t=new Date(e);return Object(r.a)(t,"yyyy-MM-dd hh:mm:ss")},inFullScreen:function(){var e=document.body;return document.getElementById("popContainer").style.overflow="auto",e.requestFullscreen?(e.requestFullscreen(),!0):e.webkitRequestFullScreen?(e.webkitRequestFullScreen(),!0):e.mozRequestFullScreen?(e.mozRequestFullScreen(),!0):e.msRequestFullscreen?(e.msRequestFullscreen(),!0):(this.$message.warn("对不起，您的浏览器不支持全屏模式"),!1)},outFullScreen:function(){var e=document.body;document.getElementById("popContainer").style.overflow="visible",e.exitFullscreen?e.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),this.$refs.ismrender.classList.remove("beauty-scroll")},addListener:function(){document.addEventListener("fullscreenchange",this.fullScreenListener),document.addEventListener("webkitfullscreenchange",this.fullScreenListener),document.addEventListener("mozfullscreenchange",this.fullScreenListener),document.addEventListener("msfullscreenchange",this.fullScreenListener)},removeListener:function(){document.removeEventListener("fullscreenchange",this.fullScreenListener),document.removeEventListener("webkitfullscreenchange",this.fullScreenListener),document.removeEventListener("mozfullscreenchange",this.fullScreenListener),document.removeEventListener("msfullscreenchange",this.fullScreenListener)},fullScreenListener:function(e){(
// const el = document.body
this.fullScreen=document.body.fullScreen||document.mozFullScreen||document.webkitIsFullScreen,this.fullScreen)||(document.getElementById("popContainer").style.overflow="visible")},componentRightClick:function(e){
//this.$refs.componentMenu.showContextMenu($event.pageX,$event.pageY)
},componentRightDialogClick:function(e){
//this.$refs.componentMenuDialog.showContextMenu($event.pageX,$event.pageY)
},setScreenUndoDialog:function(){var e=this.$refs.ismrender1,t=this.getScale();t[0]=1,t[1]=1,e.style.transform="scale("+t[0]+","+t[1]+")"},
// 设置比例
setScale:function(){if(1==this.tempAutoSize){this.ISMRuningCavasContainer.resize(window.innerWidth,window.innerHeight);var e=window.innerWidth/this.configData.layer.width,t=window.innerHeight/this.configData.layer.height;this.ISMRuningCavasContainer.scale(e,t)}else this.ISMRuningCavasContainer.resize(this.configData.layer.width,this.configData.layer.height),this.ISMRuningCavasContainer.scale(1,1)},ActionSoundSpeech:function(){var e=new SpeechSynthesisUtterance;return{start:function(t,a){var n=localStorage.getItem("Speech");if("null"==n||null==n||""==n?((n={}).enable=!0,n.speed=1):n=JSON.parse(n),n.enable){void 0===t.Lang||t.Lang;""!=a&&(e.text=a,e.lang="zh-CN",e.pitch=2,e.rate=n.speed,speechSynthesis.speak(e))}}}},setScaleDialog:function(){var e=this.$refs.ismrender1,t=this.getScale();e.style.transform="scale("+t[0]+","+t[1]+")"},getScale:function(){return[window.innerWidth/this.configData.layer.width,window.innerHeight/this.configData.layer.height]},doComponentAction:function(e,t){var a=this,n=this;if("click"==t)return clearTimeout(this.clickTimer),void(//首先清除计时器
this.clickTimer=setTimeout((function(){if(void 0!==e.action&&e.action.length)for(var u=0,i=e.action.length;u<i;u++){var o=e.action[u];o.type==t&&(void 0!==o.actionVoice&&o.actionVoice.length&&a.ActionSoundSpeech().start({container:"#ActionSppekContent",Lang:a.$i18n.locale,rate:1},o.actionVoice),a.handleComponentAction(e,o))}else if(void 0!==e.active&&e.active.length&&"click"==t)for(var r=function(){var t=e.active[s];1==t.isSwitch&&(void 0!==t.condition.actionVoice&&t.condition.actionVoice.length&&a.ActionSoundSpeech().start({container:"#ActionSppekContent",Lang:a.$i18n.locale,rate:1},t.condition.actionVoice),void 0!==t.condition.ConfirmationDialog&&1==t.condition.ConfirmationDialog?n.$confirm({title:n.$t("displayConfig.Properties.SecondConfirm"),content:n.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){n.handleComponentSwitchActive(t)},onCancel:function(){},class:"test"}):n.handleComponentSwitchActive(t))},s=0,c=e.active.length;s<c;s++)r()}),300));if("dblclick"==t&&clearTimeout(this.clickTimer),void 0!==e.action&&e.action.length)for(var u=0,i=e.action.length;u<i;u++){var o=e.action[u];o.type==t&&(void 0!==o.actionVoice&&o.actionVoice.length&&this.ActionSoundSpeech().start({container:"#ActionSppekContent",Lang:this.$i18n.locale,rate:1},o.actionVoice),this.handleComponentAction(e,o))}else if(void 0!==e.active&&e.active.length&&"click"==t)for(var r=function(){var t=e.active[s];1==t.isSwitch&&(void 0!==t.condition.actionVoice&&t.condition.actionVoice.length&&a.ActionSoundSpeech().start({container:"#ActionSppekContent",Lang:a.$i18n.locale,rate:1},t.condition.actionVoice),n.$confirm({title:n.$t("displayConfig.Properties.SecondConfirm"),content:n.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){n.handleComponentSwitchActive(t)},onCancel:function(){},class:"test"}))},s=0;s<e.active.length;s++)r()},handleComponentSwitchActive:function(e){var t=this;try{if(""==this.showToken)if(void 0!==this.user.Role&&"Admin"!=this.user.Role)if(void 0!==e.condition.actionAuth&&e.condition.actionAuth.length>0)if(e.condition.actionAuth.find((function(e){return e===t.user.Role}))!=this.user.Role)return void this.$message.error(this.$t("displayModel.NoAuthentication"),3)}catch(e){return void this.$message.error(this.$t("displayModel.NoAuthentication"),3)}var a=e.condition;if(a.isBandDevice?this.deviceUuid=a.deviceSN:this.deviceUuid=this.SelectDeviceUuid,this.setDataUuid=a.dataID,a.IsManual)this.SetPasswordFormValue="",this.settingDialog=!0,this.settingVisible=!0;else{var n=0;if(void 0!==a.AutoSet&&a.AutoSet.length<=0)return void this.$message.error(this.$t("component.public.ParamsConfigError"));for(var u=0,i=a.AutoSet.length;u<i;u++)if(e.result==a.AutoSet[u].value){a.AutoSetValue=0==u?a.AutoSet[1].value:a.AutoSet[0].value,n=1,this.AutoSetValue=a.AutoSetValue,void 0===a.SetPassword||""==a.SetPassword?this.AutoSetData(a.AutoSetValue):(this.SetPassword=a.SetPassword,this.SetAutoPasswordFormValue="",this.setPasswordDialog=!0);break}n||(a.AutoSetValue=a.AutoSet[0].value,this.AutoSetValue=a.AutoSetValue,void 0===a.SetPassword||""==a.SetPassword?this.AutoSetData(a.AutoSetValue):(this.SetPassword=a.SetPassword,this.SetAutoPasswordFormValue="",this.setPasswordDialog=!0))}},ClosePopDialog:function(){this.PopUpDialog=!1,null!=this.ISMPopUpRunningContainer&&(this.ISMPopUpRunningContainer.dispose(),this.ISMPopUpRunningContainer=null)},PopUpDialogClick:function(){this.IsAutoClose&&(this.PopUpDialog=!1,null!=this.ISMPopUpRunningContainer&&(this.ISMPopUpRunningContainer.dispose(),this.ISMPopUpRunningContainer=null))},doLoopSetValue:function(e,t,a){var n=this,u=t[e];void 0!==u&&(void 0!==u.isBandDevice&&u.isBandDevice?this.deviceUuid=u.deviceSN:this.deviceUuid=this.SelectDeviceUuid,this.setDataUuid=u.dataID,this.SetPassword=u.SetPassword?u.SetPassword:"",u.IsManual?(this.SetPasswordFormValue="",this.settingDialog=!0,this.settingVisible=!0):(this.AutoSetValue=u.AutoSetValue,void 0===u.SetPassword||""==u.SetPassword?n.AutoSetData(u.AutoSetValue):(this.SetAutoPasswordFormValue="",this.setPasswordDialog=!0)),e<t.length&&setTimeout((function(){n.doLoopSetValue(e+1,t,a)}),a))},handleComponentAction:function(e,t){var a=this;if(void 0!==t.action){var n=this;try{if(""==this.showToken)if(void 0!==this.user.Role&&"Admin"!=this.user.Role)if(void 0!==t.actionAuth&&t.actionAuth.length>0)if(t.actionAuth.find((function(e){return e===a.user.Role}))!=this.user.Role)return void this.$message.error(this.$t("displayModel.NoAuthentication"),3)}catch(e){return void this.$message.error(this.$t("displayModel.NoAuthentication"),3)}if(void 0===t.ActionPassword||""==t.ActionPassword)if("visible"==t.action)t.showItems.length>0&&t.showItems.forEach((function(e){n.showComponent(e,!0)})),t.hideItems.length>0&&t.hideItems.forEach((function(e){n.showComponent(e,!1)}));else if("RestApi"==t.action){var u="<div>".concat(t.RestApi.Params,"</div>"),i=h.a.render(u,{data:{msg:"hello"}}).outerHTML,o=new RegExp("<div>","g"),r=new RegExp("</div>","g");i=(i=i.replace(o,"")).replace(r,""),void 0!==t.actionConfirm&&t.actionConfirm?n.$confirm({title:n.$t("displayConfig.Properties.SecondConfirm"),content:n.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){Object(p.a)(t.RestApi.Type,t.RestApi.Url,t.RestApi.Params).then((function(e){})).catch((function(){}))},onCancel:function(){},class:"test"}):Object(p.a)(t.RestApi.Type,t.RestApi.Url,t.RestApi.Params).then((function(e){})).catch((function(){}))}else if("link"==t.action)void 0!==t.actionConfirm&&t.actionConfirm?n.$confirm({title:n.$t("displayConfig.Properties.SecondConfirm"),content:n.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){n.showPage(t.link)},onCancel:function(){},class:"test"}):n.showPage(t.link);else if("SetValue"==t.action)(void 0===t.SetDelay||""==t.SetDelay)&&(t.SetDelay=1e3),void 0!==t.actionConfirm&&t.actionConfirm?n.$confirm({title:n.$t("displayConfig.Properties.SecondConfirm"),content:n.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){n.doLoopSetValue(0,t.setValue,t.SetDelay)},onCancel:function(){},class:"test"}):n.doLoopSetValue(0,t.setValue,t.SetDelay);else if("DeviceView"==t.action){var s={key:t.DeviceView.key,showUUID:t.DeviceView.showUUID,showPageUUID:t.DeviceView.showPageUUID,type:t.DeviceView.type,isPopUp:t.DeviceView.isPopUp?t.DeviceView.isPopUp:null,selectKey:t.DeviceView.key,isContainer:t.DeviceView.isContainer};this.PopUpDialog=!1,void 0!==t.actionConfirm&&t.actionConfirm?n.$confirm({title:n.$t("displayConfig.Properties.SecondConfirm"),content:n.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){"undefined"!=s.isContainer&&s.isContainer?n.$EventBus.$emit("onContainerSelectDevice",s):n.$EventBus.$emit("onSelectDevice",s)},onCancel:function(){},class:"test"}):"undefined"!=s.isContainer&&s.isContainer?n.$EventBus.$emit("onContainerSelectDevice",s):n.$EventBus.$emit("onSelectDevice",s)}else"SysScript"==t.action?void 0!==t.actionConfirm&&t.actionConfirm?n.$confirm({title:n.$t("displayConfig.Properties.SecondConfirm"),content:n.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){n.doSysScript(t.ScriptList)},onCancel:function(){},class:"test"}):n.doSysScript(t.ScriptList):"Animation"==t.action&&("start"==t.animationStatus?this.$EventBus.$emit(e.identifier+"animateEvent",1):this.$EventBus.$emit(e.identifier+"animateEvent",0));else this.ActionComponent=e,this.ActionEvent=t,this.ActionPasswordSet=t.ActionPassword,this.ActionPasswordValue="",this.actionPasswordDialog=!0}},doSysScript:function(e){var t=this,a={Script:e};Object(g.c)(a).then((function(e){t.settingLoading=!1,0==e.data.code?(t.$message.success(t.$t(e.data.msg)),t.settingVisible=!1):t.$message.error(t.$t(e.data.msg))})).catch((function(e){t.settingLoading=!1,t.$message.error(t.$t("readData.SetFailed"))})).finally((function(e){t.settingLoading=!1}))},ManualSetData:function(){var e=this;if(this.showKeyboard=!1,""==this.SetPassword||this.SetPasswordFormValue==this.SetPassword){var t={deviceUuid:e.deviceUuid,dataUuid:e.setDataUuid,value:e.SetValueFormValue};e.IsConfirm?e.$confirm({title:e.$t("displayConfig.Properties.SecondConfirm"),content:e.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){e.settingLoading=!0,Object(d.n)(t).then((function(t){e.settingLoading=!1,0==t.data.code?(e.$message.success(e.$t("readData.SetSuccess")),e.settingVisible=!1,e.settingDialog=!1):e.$message.error(e.$t("readData.SetFailed"))})).catch((function(t){e.settingLoading=!1,e.$message.error(e.$t("readData.SetFailed"))})).finally((function(t){e.settingLoading=!1}))},onCancel:function(){},class:"test"}):(e.settingLoading=!0,Object(d.n)(t).then((function(t){e.settingLoading=!1,0==t.data.code?(e.$message.success(e.$t("readData.SetSuccess")),e.settingVisible=!1,e.settingDialog=!1):e.$message.error(e.$t("readData.SetFailed"))})).catch((function(t){e.settingLoading=!1,e.$message.error(e.$t("readData.SetFailed"))})).finally((function(t){e.settingLoading=!1})))}else e.$message.error(e.$t("readData.SetPasswordError"))},PasswordSetAction:function(){var e=this,t=this;if(this.ActionPasswordSet==this.ActionPasswordValue){var a=this.ActionEvent,n=this.ActionComponent;if(this.actionPasswordDialog=!1,this.ActionEvent=null,this.ActionComponent=null,"visible"==a.action)a.showItems.length>0&&a.showItems.forEach((function(e){t.showComponent(e,!0)})),a.hideItems.length>0&&a.hideItems.forEach((function(e){t.showComponent(e,!1)}));else if("RestApi"==a.action){var u="<div>".concat(a.RestApi.Params,"</div>"),i=h.a.render(u,{data:{msg:"hello"}}).outerHTML,o=new RegExp("<div>","g"),r=new RegExp("</div>","g");i=(i=i.replace(o,"")).replace(r,""),void 0!==a.actionConfirm&&a.actionConfirm?t.$confirm({title:t.$t("displayConfig.Properties.SecondConfirm"),content:t.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){Object(p.a)(a.RestApi.Type,a.RestApi.Url,a.RestApi.Params).then((function(e){})).catch((function(){}))},onCancel:function(){},class:"test"}):Object(p.a)(a.RestApi.Type,a.RestApi.Url,a.RestApi.Params).then((function(e){})).catch((function(){}))}else if("link"==a.action)void 0!==a.actionConfirm&&a.actionConfirm?t.$confirm({title:t.$t("displayConfig.Properties.SecondConfirm"),content:t.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){t.showPage(a.link)},onCancel:function(){},class:"test"}):t.showPage(a.link);else if("SetValue"==a.action)for(var s=function(){var n=a.setValue[c];n.isBandDevice?e.deviceUuid=n.deviceSN:e.deviceUuid=e.SelectDeviceUuid,void 0!==a.actionConfirm&&a.actionConfirm?e.IsConfirm=!0:e.IsConfirm=!1,e.setDataUuid=n.dataID,e.SetPassword=n.SetPassword?n.SetPassword:"",n.IsManual?(e.SetPasswordFormValue="",e.settingDialog=!0,e.settingVisible=!0):(e.AutoSetValue=n.AutoSetValue,void 0===n.SetPassword||""==n.SetPassword?void 0!==a.actionConfirm&&a.actionConfirm?t.$confirm({title:t.$t("displayConfig.Properties.SecondConfirm"),content:t.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){t.AutoSetData(n.AutoSetValue)},onCancel:function(){},class:"test"}):t.AutoSetData(n.AutoSetValue):(e.SetAutoPasswordFormValue="",e.setPasswordDialog=!0))},c=0,l=a.setValue.length;c<l;c++)s();else if("DeviceView"==a.action){var D={key:a.DeviceView.key,showUUID:a.DeviceView.showUUID,showPageUUID:a.DeviceView.showPageUUID,type:a.DeviceView.type,isPopUp:a.DeviceView.isPopUp?a.DeviceView.isPopUp:null,selectKey:a.DeviceView.key,isContainer:a.DeviceView.isContainer};this.PopUpDialog=!1,void 0!==a.actionConfirm&&a.actionConfirm?t.$confirm({title:t.$t("displayConfig.Properties.SecondConfirm"),content:t.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){"undefined"!=D.isContainer&&D.isContainer?t.$EventBus.$emit("onContainerSelectDevice",D):t.$EventBus.$emit("onSelectDevice",D)},onCancel:function(){},class:"test"}):"undefined"!=D.isContainer&&D.isContainer?t.$EventBus.$emit("onContainerSelectDevice",D):t.$EventBus.$emit("onSelectDevice",D)}else"SysScript"==a.action?void 0!==a.actionConfirm&&a.actionConfirm?t.$confirm({title:t.$t("displayConfig.Properties.SecondConfirm"),content:t.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){t.doSysScript(a.ScriptList)},onCancel:function(){},class:"test"}):t.doSysScript(a.ScriptList):"Animation"==a.action&&("start"==a.animationStatus?this.$EventBus.$emit(n.identifier+"animateEvent",1):this.$EventBus.$emit(n.identifier+"animateEvent",0))}else this.$message.error(this.$t("displayModel.NoAuthentication"),3)},PasswordSetData:function(){var e=this;if(this.showKeyboard=!1,this.SetAutoPasswordFormValue==this.SetPassword){var t={deviceUuid:e.deviceUuid,dataUuid:e.setDataUuid,value:this.AutoSetValue.toString()};e.IsConfirm?e.$confirm({title:e.$t("displayConfig.Properties.SecondConfirm"),content:e.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){e.settingLoading=!0,Object(d.n)(t).then((function(t){e.settingLoading=!1,0==t.data.code?(e.$message.success(e.$t("readData.SetSuccess")),e.settingVisible=!1,e.setPasswordDialog=!1):e.$message.error(e.$t("readData.SetFailed"))})).catch((function(t){e.settingLoading=!1,e.$message.error(e.$t("readData.SetFailed"))})).finally((function(t){e.settingLoading=!1}))},onCancel:function(){},class:"test"}):(e.settingLoading=!0,Object(d.n)(t).then((function(t){e.settingLoading=!1,0==t.data.code?(e.$message.success(e.$t("readData.SetSuccess")),e.settingVisible=!1,e.setPasswordDialog=!1):e.$message.error(e.$t("readData.SetFailed"))})).catch((function(t){e.settingLoading=!1,e.$message.error(e.$t("readData.SetFailed"))})).finally((function(t){e.settingLoading=!1})))}else e.$message.error(e.$t("readData.SetPasswordError"))},AutoSetData:function(e){var t=this;this.settingLoading=!0;var a={deviceUuid:t.deviceUuid,dataUuid:t.setDataUuid,value:e.toString()};t.$message.loading({content:"Loading..."}),Object(d.n)(a).then((function(e){t.settingLoading=!1,0==e.data.code?(t.$message.success(t.$t("readData.SetSuccess")),t.settingVisible=!1):t.$message.error(t.$t("readData.SetFailed"))})).catch((function(e){t.settingLoading=!1,t.$message.error(t.$t("readData.SetFailed"))})).finally((function(e){t.settingLoading=!1,setTimeout((function(){t.$message.destroy()}),500)}))},DealWithUpdateData:function(e){for(var t=this,a=this,n=0,u=e.Data.length;n<u;n++)if(-1!=a.CurrentRealUUIDList.indexOf(e.Data[n].Uuid)||-1!=a.CurrentModelUUIDList.indexOf(e.Data[n].ModelDataUuid)){if(void 0===a.configData.components||!a.configData.components.cells)return;var i=a.configData.components.cells;if(!Array.isArray(i)||0===i.length)return;for(var o=function(){if(void 0!==a.configData.components.cells[r].data.detail.animate&&void 0!==a.configData.components.cells[r].data.detail.animate.condition){var u=a.configData.components.cells[r].data.detail.animate.condition,i=a.configData.components.cells[r].data.detail.animate.selected,o=a.configData.components.cells[r].data.detail.animate.isExpression;
//动画
if(u.isBandDevice){var s=!1;if(e.DeviceUuid==u.deviceSN&&(u.dataID==e.Data[n].ModelDataUuid||u.dataID==e.Data[n].Uuid)){var c=parseFloat(e.Data[n].Value);if(o){var l=parseFloat(u.OperatorValue);switch(u.operator){case"==":s=c==l;break;case">":s=c>l;break;case">=":s=c>=l;break;case"<":s=c<l;break;case"<=":s=c<=l;break;case"!=":s=c!=l;break;case"<>":var D=parseFloat(u.OperatorMaxValue);s=c>=l&&c<=D;break;case"<!>":var d=parseFloat(u.OperatorMaxValue);s=c<=l||c>=d}if(i.includes("visible")){var p=a.ISMRuningCavasContainer.getCellById(a.configData.components.cells[r].id);s?(p.setVisible(!0),a.configData.components.cells[r].data.detail.style.visible=!0):(a.configData.components.cells[r].data.detail.style.visible=!1,p.setVisible(!1))}a.$EventBus.$emit(a.configData.components.cells[r].data.detail.identifier+"animateEvent",s)}}}else if(e.DeviceUuid==a.SelectDeviceUuid){var f=!1;if(u.dataID==e.Data[n].ModelDataUuid||u.dataID==e.Data[n].Uuid){var h=parseFloat(e.Data[n].Value);if(o){var g=parseFloat(u.OperatorValue);switch(u.operator){case"==":f=h==g;break;case">":f=h>g;break;case">=":f=h>=g;break;case"<":f=h<g;break;case"<=":f=h<=g;break;case"!=":f=h!=g;break;case"<>":var v=parseFloat(u.OperatorMaxValue);f=h>=g&&h<=v;break;case"<!>":var C=parseFloat(u.OperatorMaxValue);f=h<=g||h>=C}if(i.includes("visible")){var F=a.ISMRuningCavasContainer.getCellById(a.configData.components.cells[r].id);f?(F.setVisible(!0),a.configData.components.cells[r].data.detail.style.visible=!0):(a.configData.components.cells[r].data.detail.style.visible=!1,F.setVisible(!1))}t.$EventBus.$emit(a.configData.components.cells[r].data.detail.identifier+"animateEvent",f)}}}}
//位移动画
if(void 0!==a.configData.components.cells[r].data.detail.animate&&void 0!==a.configData.components.cells[r].data.detail.animate.move&&a.configData.components.cells[r].data.detail.animate.selected.includes("animateMove")){var m=a.configData.components.cells[r].data.detail.animate.move.x,E=a.configData.components.cells[r].data.detail.animate.move.y;
//动画
if(m.isBandDevice){if(e.DeviceUuid==m.deviceSN&&(m.dataID==e.Data[n].ModelDataUuid||m.dataID==e.Data[n].Uuid)){var A=parseFloat(e.Data[n].Value),b=a.ISMRuningCavasContainer.getCellById(a.configData.components.cells[r].id),y=b.getParent();y&&y.getChildren().forEach((function(e){var t=b.position();e.translate(A,t.y)}));var S=b.position();b.position(A,S.y)}}else if(e.DeviceUuid==a.SelectDeviceUuid&&(m.dataID==e.Data[n].ModelDataUuid||m.dataID==e.Data[n].Uuid)){var w=parseFloat(e.Data[n].Value),x=a.ISMRuningCavasContainer.getCellById(a.configData.components.cells[r].id),B=x.getParent();B&&B.getChildren().forEach((function(e){var t=x.position();e.translate(w,t.y)}));var P=x.position();x.position(w,P.y)}
//动画
if(E.isBandDevice){if(e.DeviceUuid==E.deviceSN&&(E.dataID==e.Data[n].ModelDataUuid||E.dataID==e.Data[n].Uuid)){var k=parseFloat(e.Data[n].Value),U=a.ISMRuningCavasContainer.getCellById(a.configData.components.cells[r].id),I=U.getParent();I&&I.getChildren().forEach((function(e){var t=U.position();e.translate(t.x,k)}));var M=U.position();U.position(M.x,k)}}else if(e.DeviceUuid==a.SelectDeviceUuid&&(E.dataID==e.Data[n].ModelDataUuid||E.dataID==e.Data[n].Uuid)){var $=parseFloat(e.Data[n].Value),R=a.ISMRuningCavasContainer.getCellById(a.configData.components.cells[r].id),O=R.getParent();O&&O.getChildren().forEach((function(e){var t=R.position();e.translate(t.x,$)}));var j=R.position();R.position(j.x,$)}}if(void 0!==a.configData.components.cells[r].data.detail.active)for(var L=a.configData.components.cells[r].data.detail.active,V="",N=0
//动作
;N<L.length;N++)if(L[N].condition.isBandDevice){if(e.DeviceUuid==L[N].condition.deviceSN&&(L[N].condition.dataID==e.Data[n].ModelDataUuid||L[N].condition.dataID==e.Data[n].Uuid)){if(void 0!==L[N].isExpression&&L[N].isExpression){var T=parseFloat(e.Data[n].Value),_=parseFloat(L[N].condition.OperatorValue);switch(L[N].condition.operator){case"==":V=T==_;break;case">":V=T>_;break;case">=":V=T>=_;break;case"<":V=T<_;break;case"<=":V=T<=_;break;case"!=":V=T!=_;break;case"<>":var z=parseFloat(L[N].condition.OperatorMaxValue);V=T>=_&&T<=z;break;case"<!>":var K=parseFloat(L[N].condition.OperatorMaxValue);V=T<=_||T>=K}}else V=e.Data[n].Value;L[N].result=V;var W={ID:L[N].id,DeviceSN:L[N].condition.deviceSN,dataID:L[N].condition.dataID,index:N,result:V},H=a.ISMRuningCavasContainer.getCellById(a.configData.components.cells[r].id);if(H.isEdge()){var q="";"Forward"==W.ID?a.configData.components.cells[r].data.detail.active[N].ForwardResult=W.result:"Reverse"==W.ID&&(a.configData.components.cells[r].data.detail.active[N].ReverseResult=W.result);var Y=a.configData.components.cells[r].data.detail.active[0].ForwardResult,Z=a.configData.components.cells[r].data.detail.active[1].ReverseResult;q=Y?"ant-line-forward 30s infinite linear":Z?"ant-line-inverse 30s infinite linear":"none",H.setAttrs({line:{style:{animation:q}}})}else a.$EventBus.$emit(a.configData.components.cells[r].data.detail.identifier+"activeEvent",W)}}else if(e.DeviceUuid==a.SelectDeviceUuid&&(L[N].condition.dataID==e.Data[n].ModelDataUuid||L[N].condition.dataID==e.Data[n].Uuid)){if(void 0!==L[N].isExpression&&L[N].isExpression){var J=parseFloat(e.Data[n].Value),X=parseFloat(L[N].condition.OperatorValue);switch(L[N].condition.operator){case"==":V=J==X;break;case">":V=J>X;break;case">=":V=J>=X;break;case"<":V=J<X;break;case"<=":V=J<=X;break;case"!=":V=J!=X;break;case"<>":var G=parseFloat(L[N].condition.OperatorMaxValue);V=J>=X&&J<=G;break;case"<!>":var Q=parseFloat(L[N].condition.OperatorMaxValue);V=J<=X||J>=Q}}else V=e.Data[n].Value;L[N].result=V;var ee={ID:L[N].id,DeviceSN:L[N].condition.deviceSN,dataID:L[N].condition.dataID,index:N,result:V},te=a.ISMRuningCavasContainer.getCellById(a.configData.components.cells[r].id);if(te.isEdge()){var ae="";"Forward"==ee.ID?a.configData.components.cells[r].data.detail.active[N].ForwardResult=ee.result:"Reverse"==ee.ID&&(a.configData.components.cells[r].data.detail.active[N].ReverseResult=ee.result);var ne=a.configData.components.cells[r].data.detail.active[0].ForwardResult,ue=a.configData.components.cells[r].data.detail.active[1].ReverseResult;ae=ne?"ant-line-forward 30s infinite linear":ue?"ant-line-inverse 30s infinite linear":"none",te.setAttrs({line:{style:{animation:ae}}})}else a.$EventBus.$emit(a.configData.components.cells[r].data.detail.identifier+"activeEvent",ee)}},r=0,s=a.configData.components.cells.length;r<s;r++)o()}if(!a.chargePagePopUp&&a.PopUpDialog)for(var c=0,l=e.Data.length;c<l;c++)if(-1!=a.CurrentPopRealUUIDList.indexOf(e.Data[c].Uuid)||-1!=a.CurrentPopModelUUIDList.indexOf(e.Data[c].ModelDataUuid)){if(void 0===a.PopUpConfigData.components||!a.PopUpConfigData.components.cells)return;var D=a.PopUpConfigData.components.cells;if(!Array.isArray(D)||0===D.length)return;for(var d=function(){if(void 0!==a.PopUpConfigData.components.cells[p].data.detail.animate&&void 0!==a.PopUpConfigData.components.cells[p].data.detail.animate.condition){var t=a.PopUpConfigData.components.cells[p].data.detail.animate.condition,n=a.PopUpConfigData.components.cells[p].data.detail.animate.selected,u=a.PopUpConfigData.components.cells[p].data.detail.animate.isExpression;
//动画
if(t.isBandDevice){var i=!1;if(e.DeviceUuid==t.deviceSN&&(t.dataID==e.Data[c].ModelDataUuid||t.dataID==e.Data[c].Uuid)){var o=parseFloat(e.Data[c].Value);if(u){var r=parseFloat(t.OperatorValue);switch(t.operator){case"==":i=o==r;break;case">":i=o>r;break;case">=":i=o>=r;break;case"<":i=o<r;break;case"<=":i=o<=r;break;case"!=":i=o!=r;break;case"<>":var s=parseFloat(t.OperatorMaxValue);i=o>=r&&o<=s;break;case"<!>":var l=parseFloat(t.OperatorMaxValue);i=o<=r||o>=l}if(n.includes("visible")){var D=a.ISMPopUpRunningContainer.getCellById(a.PopUpConfigData.components.cells[p].id);i?(D.setVisible(!0),a.PopUpConfigData.components.cells[p].data.detail.style.visible=!0):(a.PopUpConfigData.components.cells[p].data.detail.style.visible=!1,D.setVisible(!1))}a.$EventBus.$emit(a.PopUpConfigData.components.cells[p].data.detail.identifier+"animateEvent",i)}}}else if(e.DeviceUuid==a.SelectDeviceUuid){var d=!1;if(t.dataID==e.Data[c].ModelDataUuid||t.dataID==e.Data[c].Uuid){var f=parseFloat(e.Data[c].Value);if(u){var h=parseFloat(t.OperatorValue);switch(t.operator){case"==":d=f==h;break;case">":d=f>h;break;case">=":d=f>=h;break;case"<":d=f<h;break;case"<=":d=f<=h;break;case"!=":d=f!=h;break;case"<>":var g=parseFloat(t.OperatorMaxValue);d=f>=h&&f<=g;break;case"<!>":var v=parseFloat(t.OperatorMaxValue);d=f<=h||f>=v}if(n.includes("visible")){var C=a.ISMPopUpRunningContainer.getCellById(a.PopUpConfigData.components.cells[p].id);d?(C.setVisible(!0),a.PopUpConfigData.components.cells[p].data.detail.style.visible=!0):(a.PopUpConfigData.components.cells[p].data.detail.style.visible=!1,C.setVisible(!1))}a.$EventBus.$emit(a.PopUpConfigData.components.cells[p].data.detail.identifier+"animateEvent",d)}}}}
//位移动画
if(void 0!==a.PopUpConfigData.components.cells[p].data.detail.animate&&void 0!==a.PopUpConfigData.components.cells[p].data.detail.animate.move&&a.PopUpConfigData.components.cells[p].data.detail.animate.selected.includes("animateMove")){var F=a.PopUpConfigData.components.cells[p].data.detail.animate.move.x,m=a.PopUpConfigData.components.cells[p].data.detail.animate.move.y;
//动画
if(F.isBandDevice){if(e.DeviceUuid==F.deviceSN&&(F.dataID==e.Data[c].ModelDataUuid||F.dataID==e.Data[c].Uuid)){var E=parseFloat(e.Data[c].Value),A=a.ISMRuningCavasContainer.getCellById(a.configData.components.cells[p].id),b=A.getParent();b&&b.getChildren().forEach((function(e){var t=A.position();e.translate(E,t.y)}));var y=A.position();A.position(E,y.y)}}else if(e.DeviceUuid==a.SelectDeviceUuid&&(F.dataID==e.Data[c].ModelDataUuid||F.dataID==e.Data[c].Uuid)){var S=parseFloat(e.Data[c].Value),w=a.ISMRuningCavasContainer.getCellById(a.configData.components.cells[p].id),x=w.getParent();x&&x.getChildren().forEach((function(e){var t=w.position();e.translate(S,t.y)}));var B=w.position();w.position(S,B.y)}
//动画
if(m.isBandDevice){if(e.DeviceUuid==m.deviceSN&&(m.dataID==e.Data[c].ModelDataUuid||m.dataID==e.Data[c].Uuid)){var P=parseFloat(e.Data[c].Value),k=a.ISMRuningCavasContainer.getCellById(a.configData.components.cells[p].id),U=k.getParent();U&&U.getChildren().forEach((function(e){var t=k.position();e.translate(t.x,P)}));var I=k.position();k.position(I.x,P)}}else if(e.DeviceUuid==a.SelectDeviceUuid&&(m.dataID==e.Data[c].ModelDataUuid||m.dataID==e.Data[c].Uuid)){var M=parseFloat(e.Data[c].Value),$=a.ISMRuningCavasContainer.getCellById(a.configData.components.cells[p].id),R=$.getParent();R&&R.getChildren().forEach((function(e){var t=$.position();e.translate(t.x,M)}));var O=$.position();$.position(O.x,M)}}if(void 0!==a.PopUpConfigData.components.cells[p].data.detail.active)for(var j=a.PopUpConfigData.components.cells[p].data.detail.active,L="",V=0;V<j.length;V++)if(j[V].condition.isBandDevice){if(e.DeviceUuid==j[V].condition.deviceSN&&(j[V].condition.dataID==e.Data[c].ModelDataUuid||j[V].condition.dataID==e.Data[c].Uuid)){if(void 0!==j[V].isExpression&&j[V].isExpression){var N=parseFloat(e.Data[c].Value),T=parseFloat(j[V].condition.OperatorValue);switch(j[V].condition.operator){case"==":L=N==T;break;case">":L=N>T;break;case">=":L=N>=T;break;case"<":L=N<T;break;case"<=":L=N<=T;break;case"!=":L=N!=T;break;case"<>":var _=parseFloat(j[V].condition.OperatorMaxValue);L=N>=T&&N<=_;break;case"<!>":var z=parseFloat(j[V].condition.OperatorMaxValue);L=N<=T||N>=z}}else L=e.Data[c].Value;j[V].result=L;var K={ID:j[V].id,DeviceSN:j[V].condition.deviceSN,dataID:j[V].condition.dataID,index:V,result:L},W=a.ISMPopUpRunningContainer.getCellById(a.PopUpConfigData.components.cells[p].id);if(W.isEdge()){var H="";"Forward"==K.ID?a.configData.components.cells[p].data.detail.active[V].ForwardResult=K.result:"Reverse"==K.ID&&(a.configData.components.cells[p].data.detail.active[V].ReverseResult=K.result);var q=a.configData.components.cells[p].data.detail.active[0].ForwardResult,Y=a.configData.components.cells[p].data.detail.active[1].ReverseResult;H=q?"ant-line-forward 30s infinite linear":Y?"ant-line-inverse 30s infinite linear":"none",W.setAttrs({line:{style:{animation:H}}})}else a.$EventBus.$emit(a.PopUpConfigData.components.cells[p].data.detail.identifier+"activeEvent",K)}}else if(e.DeviceUuid==a.SelectDeviceUuid&&(j[V].condition.dataID==e.Data[c].ModelDataUuid||j[V].condition.dataID==e.Data[c].Uuid)){if(void 0!==j[V].isExpression&&j[V].isExpression){var Z=parseFloat(e.Data[c].Value),J=parseFloat(j[V].condition.OperatorValue);switch(j[V].condition.operator){case"==":L=Z==J;break;case">":L=Z>J;break;case">=":L=Z>=J;break;case"<":L=Z<J;break;case"<=":L=Z<=J;break;case"!=":L=Z!=J;break;case"<>":var X=parseFloat(j[V].condition.OperatorMaxValue);L=Z>=J&&Z<=X;break;case"<!>":var G=parseFloat(j[V].condition.OperatorMaxValue);L=Z<=J||Z>=G}}else L=e.Data[c].Value;j[V].result=L;var Q={ID:j[V].id,DeviceSN:j[V].condition.deviceSN,dataID:j[V].condition.dataID,index:V,result:L},ee=a.ISMPopUpRunningContainer.getCellById(a.PopUpConfigData.components.cells[p].id);if(ee)if(ee.isEdge()){var te="";"Forward"==Q.ID?a.configData.components.cells[p].data.detail.active[V].ForwardResult=Q.result:"Reverse"==Q.ID&&(a.configData.components.cells[p].data.detail.active[V].ReverseResult=Q.result);var ae=a.configData.components.cells[p].data.detail.active[0].ForwardResult,ne=a.configData.components.cells[p].data.detail.active[1].ReverseResult;te=ae?"ant-line-forward 30s infinite linear":ne?"ant-line-inverse 30s infinite linear":"none",ee.setAttrs({line:{style:{animation:te}}})}else a.$EventBus.$emit(a.PopUpConfigData.components.cells[p].data.detail.identifier+"activeEvent",Q)}},p=0,f=a.PopUpConfigData.components.cells.length;p<f;p++)d()}a.$EventBus.$emit("DealWithRealDataFinish",!0)},showComponent:function(e,t){var a=this.ISMRuningCavasContainer.getCellById(e);a.setVisible(t);var n=a.getChildren();null!=n&&n.forEach((function(e){e.setVisible(t);var a=e.getData();a.UpdateNodeFlag=(new Date).getTime(),a.detail.style.visible=t,e.setData(a,{overwrite:!0})}));var u=a.getData();u.UpdateNodeFlag=(new Date).getTime(),u.detail.style.visible=t,a.setData(u,{overwrite:!0})},showPage:function(e){
//  this.PopUpDialog = false
if(void 0!==e.isPopUp&&1==e.isPopUp){var t=this;if(this.IsAutoClose=e.autoClose,"Inside"==e.linkType){var a={pageType:1,displayUUID:e.Inside.displayUUID,pageUuid:e.Inside.pageUUID};t.isExternUrl=!1,t.chargePagePopUp=!0,this.CurrentPopRealUUIDList=[],this.CurrentPopModelUUIDList=[],this.CurrentPagerPopRealDataUuidList=[],this.CurrentPagerPopRealDeviceUuidList=[],
// this.$message.loading({content: 'Loading...', loadingKey, duration: 0});
this.selectPopUpDisplayPageDataStruct({page:a,callback:function(e,a,n){0==e?(t.$message.destroy(),t.chargePagePopUp=!1,t.PopUpDialog=!0,t.CurrentPagerPopRealDataUuidList=a,t.CurrentPagerPopRealDeviceUuidList=n,t.$message.loading({content:"Loading...",loadingKey:Re,duration:0}),setTimeout((function(){t.$message.destroy(),t.RunPopUpCavasContainerInit(t.PopUpConfigData.layer.autoSize,t.PopUpConfigData.layer.Padding)}),10)):(t.$message.error(t.$t("readData.NotFindPage")),setTimeout((function(){t.$message.destroy()}),1e3))}})}else t.chargePagePopUp=!1,t.isExternUrl=!0,t.linkInfoExternal.width=e.width,t.linkInfoExternal.height=e.height,t.linkInfoExternal.url=e.External,
// _t.$refs.PopUpDialog.vcenter()
t.PopUpDialog=!0,void 0!==e.title?""==e.title?this.PopUpConfigData.PageName="外部网页":this.PopUpConfigData.PageName=e.title:this.PopUpConfigData.PageName="外部网页"}else if("Inside"==e.linkType){var n=this,u={pageType:1,displayUUID:e.Inside.displayUUID,pageUuid:e.Inside.pageUUID};n.CurrentRealUUIDList=[],n.CurrentModelUUIDList=[],this.CurrentPagerRealDataUuidList=[],this.CurrentPagerRealDeviceUuidList=[],
// this.$message.loading({content: 'Loading...', loadingKey, duration: 0});
this.selectDisplayPageDataStruct({page:u,callback:function(e,t){n.$message.destroy(),n.CurrentPagerRealDataUuidList=e,n.CurrentPagerRealDeviceUuidList=t,n.RunCavasContainerInit(n.configData.layer.autoSize,n.configData.layer.Padding)}})}else"External"==e.linkType&&(void 0===e.OpenExternalType?window.open(e.External,"_blank"):"self"==e.OpenExternalType?window.open(e.External,"_self"):"new"==e.OpenExternalType&&window.open(e.External,"_blank"))},initPinchZoom:function(){var e=this;try{var t={MIN_ZOOM:.1,MAX_ZOOM:3,DEBOUNCE_TIME:30,PINCH_THRESHOLD:.1},a=this.$refs.ISMRunningContainer,n=this.ISMRuningCavasContainer;// X6 Graph 实例
if(!a||!n)return;
// 手动维护缩放比例（初始值 1，不受 X6 API 影响）
this.currentAbsoluteZoom=this.currentAbsoluteZoom||1;var u=1,i=null,o=a.getBoundingClientRect(),r=new $e.a.Manager(a,{touchAction:"manipulation",recognizers:[[$e.a.Pinch,{pointers:2,threshold:t.PINCH_THRESHOLD}]]});
// 捏合事件
r.on("pinch",(function(a){var r=a.scale/u;u=a.scale;
// 计算新的绝对缩放比例（手动维护，不依赖 X6 API）
var s=e.currentAbsoluteZoom*r;s=Math.max(t.MIN_ZOOM,Math.min(s,t.MAX_ZOOM));
// 缩放中心点
var c,l,D=(c=a.center.x,l=a.center.y,{x:c-o.left,y:l-o.top});
// 防抖执行缩放
clearTimeout(i),i=setTimeout((function(){
// X6 缩放：v1.x 和 v2.x 都支持的调用方式
n.zoom(s,{x:D.x,y:D.y,absolute:!0}),
// 更新手动维护的缩放比例
e.currentAbsoluteZoom=s}),t.DEBOUNCE_TIME)})),
// 捏合结束重置
r.on("pinchend pinchcancel",(function(){u=1,clearTimeout(i)})),this.hammerManager=r}catch(e){}},RunCavasContainerInit:function(e,t){var a=this,n=this,u=1==e,i=1==t;this.rebuildRef=!0,this.tempAutoSizePager!=u&&(this.tempAutoSizePager=u,null!=this.ISMRuningCavasContainer&&(this.ISMRuningCavasContainer.clearCells(),
// 移除事件
this.ISMRuningCavasContainer.off(),this.ISMRuningCavasContainer.dispose(),this.ISMRuningCavasContainer=null),this.rebuildRef=!1);var o=n.configData.layer.width,r=n.configData.layer.height;Object(E.a)({shape:"view-ism-group-node",width:100,height:100,component:A.a,data:{locked:!1,UpdateNodeFlag:!0,editMode:!0,showDeviceUuid:"",IsToolBox:!1,detail:A.a}}),u&&(o=window.innerWidth,r=window.innerHeight),null!=this.ISMRuningCavasContainer?(this.ISMRuningCavasContainer.resize(o,r),this.ISMRuningCavasContainer.drawBackground({color:n.configData.layer.backColor,
// 背景底色（可选）
image:n.configData.layer.backgroundImage,size:"100% 100%",repeat:"no-repeat",quality:1}),i?(this.ISMRuningCavasContainer.enablePanning(),this.ISMRuningCavasContainer.enableMouseWheel()):(this.ISMRuningCavasContainer.disablePanning(),this.ISMRuningCavasContainer.disableMouseWheel())):(this.ISMRuningCavasContainer=new m.d({container:this.$refs.ISMRunningContainer,width:n.configData.layer.width,height:n.configData.layer.height,panning:i,mousewheel:i,autoResize:!1,grid:!1,virtual:!1,async:!1,connecting:{router:"manhattan",connector:{name:"rounded",args:{radius:8}},anchor:"center",connectionPoint:"anchor",allowBlank:!1,snap:!1},background:{color:n.configData.layer.backColor,
// 背景底色（可选）
image:n.configData.layer.backgroundImage,size:"100% 100%",repeat:"no-repeat",quality:1},interacting:function(e){return{nodeMovable:!1,magnetConnectable:!1,
// 禁止节点移动
edgeMovable:!1,
// 禁止边移动
edgeLabelMovable:!1,
// 禁止箭头移动
arrowheadMovable:!1,
// 禁止顶点移动
vertexMovable:!1,
// 禁止添加顶点
vertexAddable:!1,
// 禁止删除顶点
vertexDeletable:!1}}}),this.initPinchZoom(),this.ISMRuningCavasContainer.use(new m.f({enabled:!0,global:!0})),i?(this.ISMRuningCavasContainer.enablePanning(),this.ISMRuningCavasContainer.enableMouseWheel()):(this.ISMRuningCavasContainer.disablePanning(),this.ISMRuningCavasContainer.disableMouseWheel())),this.tempAutoSize=this.configData.layer.autoSize,u?this.setScale():(this.ISMRuningCavasContainer.resize(o,r),this.ISMRuningCavasContainer.scale(1,1)),this.ISMRuningCavasContainer.clearCells(),this.ISMRuningCavasContainer.off("node:click"),this.ISMRuningCavasContainer.off("node:dblclick"),this.ISMRuningCavasContainer.off("node:mousedown"),this.ISMRuningCavasContainer.off("node:mouseup"),this.ISMRuningCavasContainer.off("node:mouseenter"),this.ISMRuningCavasContainer.off("node:mouseleave"),this.ISMRuningCavasContainer.off("render:done"),this.ISMRuningCavasContainer.off("blank:contextmenu"),this.ISMRuningCavasContainer.off("cell:contextmenu"),this.ISMRuningCavasContainer.off("scale"),window.removeEventListener("resize",this.setScale),window.addEventListener("resize",this.setScale),this.ISMRuningCavasContainer.on("scale",(function(e){})),
this.ISMRuningCavasContainer.on("node:click",(function(e){e.e,e.x,e.y;var t=e.node;e.view;try{var a=t.prop().data.detail;n.SelectCurrentNodeData=a,n.doComponentAction(a,"click")}catch(e){}})),this.ISMRuningCavasContainer.on("node:dblclick",(function(e){e.e,e.x,e.y;var t=e.node;e.view;try{var a=t.prop().data.detail;n.SelectCurrentNodeData=a,n.doComponentAction(a,"dblclick")}catch(e){}})),this.ISMRuningCavasContainer.on("node:mousedown",(function(e){e.e,e.x,e.y;var t=e.node;e.view;try{var a=t.prop().data.detail;n.SelectCurrentNodeData=a,n.doComponentAction(a,"mousedown")}catch(e){}})),this.ISMRuningCavasContainer.on("node:mouseup",(function(e){e.e,e.x,e.y;var t=e.node;e.view;try{var a=t.prop().data.detail;n.SelectCurrentNodeData=a,n.doComponentAction(a,"mouseup")}catch(e){}})),this.ISMRuningCavasContainer.on("node:mouseenter",(function(e){e.e,e.x,e.y;var t=e.node;e.view;try{var a=t.prop().data.detail;n.SelectCurrentNodeData=a,n.doComponentAction(a,"mouseenter")}catch(e){}})),this.ISMRuningCavasContainer.on("node:mouseleave",(function(e){e.e,e.x,e.y;var t=e.node;e.view;try{var a=t.prop().data.detail;n.SelectCurrentNodeData=a,n.doComponentAction(a,"mouseleave")}catch(e){}})),
//页面空白处右键菜单
this.ISMRuningCavasContainer.on("blank:contextmenu",(function(e){var t=e.e;e.x,e.y,e.cell,e.view;a.onContextLayerMenu(t)})),this.ISMRuningCavasContainer.on("cell:contextmenu",(function(e){var t=e.e;e.x,e.y,e.cell,e.view;a.onContextLayerMenu(t)})),this.ISMRuningCavasContainer.bindKey("ctrl+l",(function(){return a.lockScreen(),!1})),
//==============================
//监听页面是否渲染完成，完成后就发广播给节点，告诉节点是在编辑模式
this.ISMRuningCavasContainer.on("render:done",(function(){a.tempAutoSize=a.configData.layer.autoSize,
// this.setScale()
a.$EventBus.$emit("cell-editMode",{edit:!1,toolbox:!1}),a.$EventBus.$emit("cell-vuex",{PMapState:D.e,PMapActions:D.b,PMapMutations:D.d,PStore:a.$store,PRouter:a.$router}),a.InitPagerRealData()}));try{n.ISMRuningCavasContainer.fromJSON(n.configData.components)}catch(e){n.$message.error(n.$t("Render.GetPageError"))}},RunPopUpCavasContainerInit:function(e,t){var a=this,n=this,u=1==e,i=1==t;null!=this.ISMPopUpRunningContainer&&(this.ISMPopUpRunningContainer.dispose(),this.ISMPopUpRunningContainer=null),Object(E.a)({shape:"view-ism-group-node",width:100,height:100,component:A.a,data:{locked:!1,UpdateNodeFlag:!0,editMode:!0,showDeviceUuid:"",IsToolBox:!1,detail:A.a}}),this.ISMPopUpRunningContainer=new m.d({container:this.$refs.ISMPopUpRunningContainer,width:n.PopUpConfigData.layer.width,height:n.PopUpConfigData.layer.height,panning:i,mousewheel:i,autoResize:u,grid:!1,virtual:!1,async:!1,background:{color:n.PopUpConfigData.layer.backColor,
// 背景底色（可选）
image:n.PopUpConfigData.layer.backgroundImage,size:"100% 100%",repeat:"no-repeat",quality:1},interacting:function(e){return{nodeMovable:!1,magnetConnectable:!1,
// 禁止节点移动
edgeMovable:!1,
// 禁止边移动
edgeLabelMovable:!1,
// 禁止箭头移动
arrowheadMovable:!1,
// 禁止顶点移动
vertexMovable:!1,
// 禁止添加顶点
vertexAddable:!1,
// 禁止删除顶点
vertexDeletable:!1}}}),this.ISMPopUpRunningContainer.on("scale",(function(e){})),
this.ISMPopUpRunningContainer.on("node:click",(function(e){e.e,e.x,e.y;var t=e.node,a=(e.view,t.prop().data.detail);n.SelectCurrentNodeData=a,n.doComponentAction(a,"click")})),this.ISMPopUpRunningContainer.on("node:dblclick",(function(e){e.e,e.x,e.y;var t=e.node,a=(e.view,t.prop().data.detail);n.SelectCurrentNodeData=a,n.doComponentAction(a,"dblclick")})),this.ISMPopUpRunningContainer.on("node:mousedown",(function(e){e.e,e.x,e.y;var t=e.node,a=(e.view,t.prop().data.detail);n.SelectCurrentNodeData=a,n.doComponentAction(a,"mousedown")})),this.ISMPopUpRunningContainer.on("node:mouseup",(function(e){e.e,e.x,e.y;var t=e.node,a=(e.view,t.prop().data.detail);n.SelectCurrentNodeData=a,n.doComponentAction(a,"mouseup")})),this.ISMPopUpRunningContainer.on("node:mouseenter",(function(e){e.e,e.x,e.y;var t=e.node,a=(e.view,t.prop().data.detail);n.SelectCurrentNodeData=a,n.doComponentAction(a,"mouseenter")})),this.ISMPopUpRunningContainer.on("node:mouseleave",(function(e){e.e,e.x,e.y;var t=e.node,a=(e.view,t.prop().data.detail);n.SelectCurrentNodeData=a,n.doComponentAction(a,"mouseleave")})),
//页面空白处右键菜单
this.ISMPopUpRunningContainer.on("blank:contextmenu",(function(e){e.node;a.onContextLayerMenu()})),this.ISMPopUpRunningContainer.on("render:done",(function(){a.$EventBus.$emit("cell-editMode",{edit:!1,toolbox:!1}),a.$EventBus.$emit("cell-vuex",{PMapState:D.e,PMapActions:D.b,PMapMutations:D.d,PStore:a.$store,PRouter:a.$router}),a.InitPopUpPagerRealData()}));
//==============================
try{n.ISMPopUpRunningContainer.fromJSON(n.PopUpConfigData.components)}catch(e){n.$message.error(n.$t("Render.GetPageError"))}}}),mounted:function(){var e=this.$createElement;this.setPasswordDialog=!1,this.settingDialog=!1,this.PopUpDialog=!1;var t=this,a=this;this.$nextTick((function(){var n=this;t.loadPager(),t.$EventBus.$off("readDataPush"),t.$EventBus.$off("onSelectDevice"),t.$EventBus.$off("SystemData"),t.$EventBus.$off("StaticData"),t.$EventBus.$off("RealAlarm"),t.$EventBus.$off("ChargePage"),t.$EventBus.$off("PlayVoice"),t.$EventBus.$on("PlayVoice",(function(e){var t=e;a.alarmSoundSpeech().start({container:"#sppekContent",Lang:a.$i18n.locale,rate:1},t.VoiceString)})),t.$EventBus.$off("GoPage"),t.$EventBus.$on("GoPage",(function(e){var a=localStorage.getItem("JumpWindow"),n=!1;if("null"==a||null==a||""==a)n=!0;else try{n=(a=JSON.parse(a)).enable}catch(e){n=!0}if(n){var u=e,i={isPopUp:u.IsPopUp,autoClose:u.AutoClose,linkType:void 0!==u.linkType?u.linkType:"Inside",Inside:{displayUUID:u.ModelId,pageUUID:u.PageUuid},width:u.width,height:u.height,External:u.External,title:u.External,OpenExternalType:u.OpenExternalType};t.showPage(i)}})),t.$EventBus.$on("onSelectDevice",(function(e){if(1==e.type){t.showAppUUID=e.showUUID,t.showPageUUID=e.showPageUUID,t.SelectDeviceUuid=e.key;var a={pageType:1,displayUUID:t.showAppUUID,pageUuid:t.showPageUUID};void 0!==e.isPopUp&&e.isPopUp?(t.chargePagePopUp=!0,
// _t.$message.loading({content: 'Loading...', loadingKey, duration: 0});
t.selectPopUpDisplayPageDataStruct({page:a,callback:function(e,a,n){t.$message.destroy(),t.chargePagePopUp=!1,0==e?(t.PopUpDialog=!0,t.$message.loading({content:"Loading...",loadingKey:Re,duration:0}),t.CurrentPagerPopRealDataUuidList=a,t.CurrentPagerPopRealDeviceUuidList.push(t.SelectDeviceUuid),setTimeout((function(){t.$message.destroy(),t.RunPopUpCavasContainerInit(t.PopUpConfigData.layer.autoSize,t.PopUpConfigData.layer.Padding)}),10)):t.$message.error(t.$t("Render.GetPageError"))}})):(t.chargePage=!0,
// _t.$message.loading({content: 'Loading...', loadingKey, duration: 0});
t.CurrentRealUUIDList=[],t.CurrentModelUUIDList=[],t.CurrentPagerRealDataUuidList=[],t.CurrentPagerRealDeviceUuidList=[],t.selectDisplayPageDataStruct({page:a,callback:function(e,a){t.$message.destroy(),t.CurrentPagerRealDataUuidList=e,t.CurrentPagerRealDeviceUuidList[0]=t.SelectDeviceUuid,t.RunCavasContainerInit(t.configData.layer.autoSize,t.configData.layer.Padding)}}))}})),t.$EventBus.$on("readDataPush",(function(e){t.DealWithUpdateData(e)})),t.$EventBus.$on("StaticData",(function(e){t.DealWithUpdateData(e)})),t.$EventBus.$on("SystemData",(function(e){if(!t.chargePage){var a=e,u=Object(v.d)(v.a.AUTH1);if(void 0===t.configData.components||!t.configData.components.cells)return;var i=t.configData.components.cells;if(!Array.isArray(i)||0===i.length)return;for(var o=0;o<a.Data.length;o++)for(var r=0;r<t.configData.components.cells.length;r++){if(void 0!==t.configData.components.cells[r].data.detail.animate&&void 0!==t.configData.components.cells[r].data.detail.animate.condition){var s=t.configData.components.cells[r].data.detail.animate.condition,c=t.configData.components.cells[r].data.detail.animate.isExpression;
//动画
if(void 0!==s&&a.ProjectUuid==u){var l=!1;if(s.dataID==a.Data[o].Uuid){var D=parseFloat(a.Data[o].Value);if(c){var d=parseFloat(s.OperatorValue);switch(s.operator){case"==":l=D==d;break;case">":l=D>d;break;case">=":l=D>=d;break;case"<":l=D<d;break;case"<=":l=D<=d;break;case"!=":l=D!=d;break;case"<>":var p=parseFloat(s.OperatorMaxValue);l=D>=d&&D<=p}t.$EventBus.$emit(t.configData.components.cells[r].data.detail.identifier+"animateEvent",l)}}}}if(void 0!==t.configData.components.cells[r].data.detail.animate&&void 0!==t.configData.components.cells[r].data.detail.animate.move&&t.configData.components.cells[r].data.detail.animate.selected.includes("animateMove")){var f=t.configData.components.cells[r].data.detail.animate.move.x,h=t.configData.components.cells[r].data.detail.animate.move.y;
//动画
if(f.isBandDevice){if(a.DeviceUuid==f.deviceSN&&(f.dataID==a.Data[o].ModelDataUuid||f.dataID==a.Data[o].Uuid)){var g=parseFloat(a.Data[o].Value),C={ID:"animateMoveX",DeviceSN:f.deviceSN,dataID:f.dataID,result:g};t.configData.components.cells[r].data.detail.style.position.x=g,n.$EventBus.$emit(t.configData.components.cells[r].data.detail.identifier+"animateMove",C)}}else if(a.DeviceUuid==t.SelectDeviceUuid&&(f.dataID==a.Data[o].ModelDataUuid||f.dataID==a.Data[o].Uuid)){var F=parseFloat(a.Data[o].Value),m={ID:"animateMoveX",DeviceSN:f.deviceSN,dataID:f.dataID,result:F};t.configData.components.cells[r].data.detail.style.position.x=F,n.$EventBus.$emit(t.configData.components.cells[r].data.detail.identifier+"animateMove",m)}
//动画
if(h.isBandDevice){if(a.DeviceUuid==h.deviceSN&&(h.dataID==a.Data[o].ModelDataUuid||h.dataID==a.Data[o].Uuid)){var E=parseFloat(a.Data[o].Value),A={ID:"animateMoveY",DeviceSN:h.deviceSN,dataID:h.dataID,result:E};t.configData.components.cells[r].data.detail.style.position.y=E,n.$EventBus.$emit(t.configData.components.cells[r].data.detail.identifier+"animateMove",A)}}else if(a.DeviceUuid==t.SelectDeviceUuid&&(h.dataID==a.Data[o].ModelDataUuid||h.dataID==a.Data[o].Uuid)){var b=parseFloat(a.Data[o].Value),y={ID:"animateMoveY",DeviceSN:h.deviceSN,dataID:h.dataID,result:b};t.configData.components.cells[r].data.detail.style.position.y=b,n.$EventBus.$emit(t.configData.components.cells[r].data.detail.identifier+"animateMove",y)}}if(void 0!==t.configData.components.cells[r].data.detail.active){var S=t.configData.components.cells[r].data.detail.active;
//动作
if(void 0!==S)for(var w="",x=0;x<S.length;x++)if(a.ProjectUuid==u&&S[x].condition.dataID==a.Data[o].Uuid){if(void 0!==S[x].isExpression&&S[x].isExpression){var B=parseFloat(a.Data[o].Value),P=parseFloat(S[x].condition.OperatorValue);switch(S[x].condition.operator){case"==":w=B==P;break;case">":w=B>P;break;case">=":w=B>=P;break;case"<":w=B<P;break;case"<=":w=B<=P;break;case"!=":w=B!=P;break;case"<>":var k=parseFloat(S[x].condition.OperatorMaxValue);w=B>=P&&B<=k}}else w=a.Data[o].Value;S[x].result=w;var U={ID:S[x].id,dataID:S[x].condition.dataID,index:x,result:w};t.$EventBus.$emit(t.configData.components.cells[r].data.detail.identifier+"activeEvent",U)}}}}if(!t.chargePagePopUp){var I=e,M=Object(v.d)(v.a.AUTH1);if(void 0===t.PopUpConfigData.components||!t.PopUpConfigData.components.cells)return;var $=t.PopUpConfigData.components.cells;if(!Array.isArray($)||0===$.length)return;for(var R=0;R<I.Data.length;R++)for(var O=0;O<t.PopUpConfigData.components.cells.length;O++){if(void 0!==t.PopUpConfigData.components.cells[O].data.detail.animate&&void 0!==t.PopUpConfigData.components.cells[O].data.detail.animate.condition){var j=t.PopUpConfigData.components.cells[O].data.detail.animate.condition,L=t.PopUpConfigData.components.cells[O].data.detail.animate.isExpression;
//动画
if(void 0!==j&&I.ProjectUuid==M){var V=!1;if(j.dataID==I.Data[R].Uuid){var N=parseFloat(I.Data[R].Value);if(L){var T=parseFloat(j.OperatorValue);switch(j.operator){case"==":V=N==T;break;case">":V=N>T;break;case">=":V=N>=T;break;case"<":V=N<T;break;case"<=":V=N<=T;break;case"!=":V=N!=T;break;case"<>":var _=parseFloat(j.OperatorMaxValue);V=N>=T&&N<=_}t.$EventBus.$emit(t.PopUpConfigData.components.cells[O].data.detail.identifier+"animateEvent",V)}}}}
//位移动画
if(void 0!==t.PopUpConfigData.components.cells[O].data.detail.animate&&void 0!==t.PopUpConfigData.components.cells[O].data.detail.animate.move&&t.PopUpConfigData.components.cells[O].data.detail.animate.selected.includes("animateMove")){var z=t.PopUpConfigData.components.cells[O].data.detail.animate.move.x,K=t.PopUpConfigData.components.cells[O].data.detail.animate.move.y;
//动画
if(z.isBandDevice){if(I.DeviceUuid==z.deviceSN&&(z.dataID==I.Data[R].ModelDataUuid||z.dataID==I.Data[R].Uuid)){var W=parseFloat(I.Data[R].Value),H={ID:"animateMoveX",DeviceSN:z.deviceSN,dataID:z.dataID,result:W};t.configData.components.cells[O].data.detail.style.position.x=W,n.$EventBus.$emit(t.PopUpConfigData.components.cells[O].data.detail.identifier+"animateMove",H)}}else if(I.DeviceUuid==t.SelectDeviceUuid&&(z.dataID==I.Data[R].ModelDataUuid||z.dataID==I.Data[R].Uuid)){var q=parseFloat(I.Data[R].Value),Y={ID:"animateMoveX",DeviceSN:z.deviceSN,dataID:z.dataID,result:q};t.configData.components.cells[O].data.detail.style.position.x=q,n.$EventBus.$emit(t.PopUpConfigData.components.cells[O].data.detail.identifier+"animateMove",Y)}
//动画
if(K.isBandDevice){if(I.DeviceUuid==K.deviceSN&&(K.dataID==I.Data[R].ModelDataUuid||K.dataID==I.Data[R].Uuid)){var Z=parseFloat(I.Data[R].Value),J={ID:"animateMoveY",DeviceSN:K.deviceSN,dataID:K.dataID,result:Z};t.PopUpConfigData.components.cells[O].data.detail.style.position.y=Z,n.$EventBus.$emit(t.PopUpConfigData.components.cells[O].data.detail.identifier+"animateMove",J)}}else if(I.DeviceUuid==t.SelectDeviceUuid&&(K.dataID==I.Data[R].ModelDataUuid||K.dataID==I.Data[R].Uuid)){var X=parseFloat(I.Data[R].Value),G={ID:"animateMoveY",DeviceSN:K.deviceSN,dataID:K.dataID,result:X};t.PopUpConfigData.components.cells[O].data.detail.style.position.y=X,n.$EventBus.$emit(t.configData.components.cells[O].data.detail.identifier+"animateMove",G)}}if(void 0!==t.PopUpConfigData.components.cells[O].data.detail.active){var Q=t.PopUpConfigData.components.cells[O].data.detail.active;
//动作
if(void 0!==Q)for(var ee="",te=0;te<Q.length;te++)if(I.ProjectUuid==M&&Q[te].condition.dataID==I.Data[R].Uuid){if(void 0!==Q[te].isExpression&&Q[te].isExpression){var ae=parseFloat(I.Data[R].Value),ne=parseFloat(Q[te].condition.OperatorValue);switch(Q[te].condition.operator){case"==":ee=ae==ne;break;case">":ee=ae>ne;break;case">=":ee=ae>=ne;break;case"<":ee=ae<ne;break;case"<=":ee=ae<=ne;break;case"!=":ee=ae!=ne;break;case"<>":var ue=parseFloat(Q[te].condition.OperatorMaxValue);ee=ae>=ne&&ae<=ue}}else ee=I.Data[R].Value;Q[te].result=ee;var ie={ID:Q[te].id,dataID:Q[te].condition.dataID,index:te,result:ee};t.$EventBus.$emit(t.PopUpConfigData.components.cells[O].data.detail.identifier+"activeEvent",ie)}}}}})),t.$EventBus.$on("RealAlarm",(function(t){var u=t,i="",o="",r="",s="",c=a.formatDateTime(u.HappenTime);"1"==u.Value?(i=a.$t("monitor.Notification.MessageAlarmTitle"),o=n.$t(u.AlarmMessage),s=a.$t("alarm.Speech.tips")):(i=a.$t("monitor.Notification.MessageClearAlarmTitle"),o=n.$t(u.AlarmClearMessage)),
//此为摄像头的特殊数据ID需要单独处理
"videoConnectStatusAlarm"==u.DataUuid&&(u.AlarmLevel=3,u.DataName=a.$t("monitor.Notification.public.videoDataName"),o="1"==u.Value?a.$t("monitor.Notification.public.videoOffline"):a.$t("monitor.Notification.public.videoOnline")),0==u.AlarmLevel?r=a.$t("dataModel.alarm.Tips"):1==u.AlarmLevel?r=a.$t("dataModel.alarm.Minor"):2==u.AlarmLevel?r=a.$t("dataModel.alarm.Importance"):3==u.AlarmLevel?r=a.$t("dataModel.alarm.Urgency"):4==u.AlarmLevel&&(r=a.$t("dataModel.alarm.Deadly")),s+=a.$t("monitor.Notification.DeviceTitle"),s+=a.$t(u.DeviceName),s+=a.$t("monitor.Notification.DataTitle"),s+=a.$t(u.DataName),s+=a.$t("dataModel.AlarmLevel"),s+=r,s+=a.$t("monitor.Notification.HappenTime"),s+=c,s+=a.$t("monitor.Notification.Message"),s+=o;var l=localStorage.getItem("AlarmWindow");if("null"==l||null==l||""==l?((l={}).enable=!0,l.isClose=!0):l=JSON.parse(l),l.enable){var D=!1;void 0!==l.Level?(D=l.Level.find((function(e){return e==u.AlarmLevel})),0==l.Level.length&&(D=!0)):D=!0,D&&(a.$notification.warning({message:e("span",[i]),description:e("div",[e("span",{style:"font-size: 14px;font-weight: bold;"},[a.$t("monitor.Notification.DeviceTitle"),":"]),e("span",[a.$t(u.DeviceName)]),e("br"),e("span",{style:"font-size: 14px;font-weight: bold;"},[a.$t("monitor.Notification.DataTitle"),":"]),e("span",[a.$t(u.DataName)]),e("br"),e("span",{style:"font-size: 14px;font-weight: bold;"},[a.$t("dataModel.AlarmLevel"),":"]),e("span",[r]),e("br"),e("span",{style:"font-size: 14px;font-weight: bold;"},[a.$t("monitor.Notification.HappenTime"),":"]),e("span",[c]),e("br"),e("span",{style:"font-size: 14px;font-weight: bold;"},[a.$t("monitor.Notification.Message"),":"]),e("span",[o]),e("br")]),class:"fancy-notification",placement:"bottomRight",duration:l.isClose?5:null,icon:e("a-icon",{attrs:{type:"alert",theme:"filled"},style:{position:"absolute","margin-left":"4px","font-size":"24px","line-height":"24px",color:"red"}}),style:{padding:"10px 5px"}}),a.alarmSoundSpeech().start({container:"#sppekContent",Lang:a.$i18n.locale,rate:1},s))}})),t.$EventBus.$on("ChargePage",(function(e){var a={isPopUp:e.IsPopUp,linkType:"Inside",Inside:{}};""!=e.PageID&&(null!=e.DisPlayID&&""!=e.DisPlayID?a.Inside.displayUUID=e.DisPlayID:a.Inside.displayUUID=n.$route.params.uid,a.Inside.pageUUID=e.PageID,t.showPage(a))}))}))},beforeDestroy:function(){this.hammerManager&&(this.hammerManager.destroy(),this.hammerManager=null)}},je=Oe,Le=(a("aa3f"),a("96f2"),Object(Ue.a)(je,(function(){var e=this,t=e._self._c;return t("div",{ref:"ismrender",style:e.nodeMouseStyleVar},[t("div",{staticClass:"run-graph-container",class:Object(n.a)({animated:!0},"".concat(e.configData.layer.animate),!0)},[t("div",{ref:"ISMRunningContainer"})]),t("a-modal",{directives:[{name:"drag-modal",rawName:"v-drag-modal"}],attrs:{maskClosable:!1,visible:e.settingDialog,footer:null,width:e.isMobile?250:300,destroyOnClose:!0,title:e.$t("monitor.Set")},on:{cancel:function(t){e.settingDialog=!1}}},[t("div",{staticStyle:{padding:"5px"}},[t("a-form",{attrs:{form:e.SetForm}},[""!=e.SetPassword?t("a-form-item",{staticStyle:{"margin-top":"1px","margin-bottom":"2px"},attrs:{label:e.$t("displayConfig.Properties.SetPassword"),labelCol:{span:e.isMobile?8:6},wrapperCol:{span:e.isMobile?16:18}}},[t("a-input",{style:{"text-security":"disc","-webkit-text-security":"disc"},on:{focus:function(t){return e.onInputFocus("SetPassword")}},model:{value:e.SetPasswordFormValue,callback:function(t){e.SetPasswordFormValue=t},expression:"SetPasswordFormValue"}})],1):e._e(),t("a-form-item",{staticStyle:{"margin-top":"2px","margin-bottom":"2px"},attrs:{label:e.$t("monitor.SetValue"),labelCol:{span:e.isMobile?8:6},wrapperCol:{span:e.isMobile?16:18}}},[t("a-textarea",{attrs:{"auto-size":""},on:{focus:function(t){return e.onInputFocus("SetValue")}},model:{value:e.SetValueFormValue,callback:function(t){e.SetValueFormValue=t},expression:"SetValueFormValue"}})],1)],1)],1),t("a-divider"),t("div",{staticClass:"dialog-button"},[t("a-button",{key:"submit",attrs:{type:"primary",loading:e.settingLoading},on:{click:e.ManualSetData}},[e._v(" "+e._s(e.$t("component.deviceDataModel.submit"))+" ")]),t("a-button",{key:"back",staticStyle:{"margin-left":"10px"},on:{click:function(t){e.settingDialog=!1,e.showKeyboard=!1}}},[e._v(" "+e._s(e.$t("component.deviceDataModel.cancel"))+" ")])],1)],1),t("a-modal",{directives:[{name:"drag-modal",rawName:"v-drag-modal"}],attrs:{maskClosable:!1,visible:e.setPasswordDialog,footer:null,width:e.isMobile?250:300,destroyOnClose:!0,title:e.$t("displayConfig.Properties.SetPasswordTips"),draggable:!0,resizable:!0,modal:!1},on:{cancel:function(t){e.setPasswordDialog=!1}}},[t("div",{staticClass:"f-full",staticStyle:{padding:"5px"}},[t("a-form",{attrs:{form:e.SetFormPassword}},[t("a-form-item",{staticStyle:{"margin-top":"15px"},attrs:{label:e.$t("displayConfig.Properties.SetPassword"),labelCol:{span:e.isMobile?8:6},wrapperCol:{span:e.isMobile?16:18}}},[t("a-input",{style:{"text-security":"disc","-webkit-text-security":"disc"},attrs:{type:"text",autocomplete:"off"},on:{focus:function(t){return e.onInputFocus("SetAutoPassword")}},model:{value:e.SetAutoPasswordFormValue,callback:function(t){e.SetAutoPasswordFormValue=t},expression:"SetAutoPasswordFormValue"}})],1)],1)],1),t("a-divider"),t("div",{staticClass:"dialog-button"},[t("a-button",{key:"submit",attrs:{type:"primary",loading:e.settingLoading},on:{click:e.PasswordSetData}},[e._v(" "+e._s(e.$t("component.deviceDataModel.submit"))+" ")]),t("a-button",{key:"back",staticStyle:{"margin-left":"10px"},on:{click:function(t){e.setPasswordDialog=!1,e.showKeyboard=!1}}},[e._v(" "+e._s(e.$t("component.deviceDataModel.cancel"))+" ")])],1)],1),t("a-modal",{directives:[{name:"drag-modal",rawName:"v-drag-modal"}],attrs:{maskClosable:!1,visible:e.actionPasswordDialog,footer:null,width:e.isMobile?250:300,destroyOnClose:!0,title:e.$t("displayConfig.Properties.SetPasswordTips"),draggable:!0,resizable:!0,modal:!1},on:{cancel:function(t){e.actionPasswordDialog=!1}}},[t("div",{staticClass:"f-full",staticStyle:{padding:"5px"}},[t("a-form",{attrs:{form:e.ActionFormPassword}},[t("a-form-item",{staticStyle:{"margin-top":"15px"},attrs:{label:e.$t("displayConfig.Properties.SetPassword"),labelCol:{span:e.isMobile?8:6},wrapperCol:{span:e.isMobile?16:18}}},[t("a-input",{style:{"text-security":"disc","-webkit-text-security":"disc"},attrs:{type:"text",autocomplete:"off"},on:{focus:function(t){return e.onInputFocus("SetActionPassword")}},model:{value:e.ActionPasswordValue,callback:function(t){e.ActionPasswordValue=t},expression:"ActionPasswordValue"}})],1)],1)],1),t("a-divider"),t("div",{staticClass:"dialog-button"},[t("a-button",{key:"submit",attrs:{type:"primary",loading:e.settingLoading},on:{click:e.PasswordSetAction}},[e._v(" "+e._s(e.$t("component.deviceDataModel.submit"))+" ")]),t("a-button",{key:"back",staticStyle:{"margin-left":"10px"},on:{click:function(t){e.actionPasswordDialog=!1,e.showKeyboard=!1}}},[e._v(" "+e._s(e.$t("component.deviceDataModel.cancel"))+" ")])],1)],1),t("a-modal",{directives:[{name:"drag-modal",rawName:"v-drag-modal"}],style:e.stylePopUpVar,attrs:{visible:e.PopUpDialog,centered:!0,forceRender:!0,destroyOnClose:!0,width:(e.isExternUrl?e.linkInfoExternal.width:e.PopUpConfigData.layer.width)+"px",title:void 0!==e.PopUpConfigData.PageName&&""!=e.PopUpConfigData.PageName?e.PopUpConfigData.PageName:"对话框",footer:null,modal:!1},on:{cancel:e.ClosePopDialog}},[t("div",{on:{click:e.PopUpDialogClick}},[e.isExternUrl?t("div",[t("iframe",{attrs:{scrolling:"auto",src:e.linkInfoExternal.url,width:e.linkInfoExternal.width+"px",height:e.linkInfoExternal.height+"px",frameborder:"0"}})]):t("div",[e.PopUpConfigData.layer?t("div",{ref:"ismrender1",staticClass:"ism-popup-render",style:e.popUpStyle,on:{contextmenu:function(t){return t.preventDefault(),e.componentRightDialogClick.apply(null,arguments)}}},[t("div",{staticClass:"run-graph-container",class:Object(n.a)({animated:!0},"".concat(e.PopUpConfigData.layer.animate),!0)},[t("div",{ref:"ISMPopUpRunningContainer"})])]):e._e()])])]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showKeyboard&&e.configData.layer.virtuallyKey,expression:"showKeyboard&&configData.layer.virtuallyKey"}]},[t("SimpleKeyboard",{ref:"SimpleKeyboard",on:{onChange:e.onChangeKeyboard,onKeyPress:e.onKeyPress}})],1),t("LockScreen")],1)}),[],!1,null,"48f425c2",null)
/* harmony default export */);
// CONCATENATED MODULE: ./src/pages/ISMDisPlay/ISMRender.vue?vue&type=script&lang=js
/* harmony default export */t.a=Le.exports},
/***/"12c0":
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/},
/***/"32dc":
/***/function(e,t,a){"use strict";
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"411544a2-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/deviceTree/DeviceTree.vue?vue&type=template&id=79b45538&scoped=true
a("4de4"),a("d81d"),a("14d9"),a("d3b7"),a("0643"),a("2382"),a("a573"),a("9a9a");var n=a("600d"),u={name:"deviceTree",data:function(){return{selection:null,defaultSelectKey:[],selectNode:null,selectKey:null,expandedKeys:[],searchValue:"",dataList:[],findResult:!1,autoExpandParent:!0,treeData:[]}},watch:{$route:function(){this.getMonitorTree()}},mounted:function(){this.getMonitorTree()},methods:{generateList:function(e){for(var t=0;t<e.length;t++){var a=e[t],n=a.key;this.dataList.push({key:n,title:n}),a.children&&this.generateList(a.children)}},getMonitorTree:function(){var e=this;Object(n.j)().then((function(t){0==t.data.code&&(t.data.list.length,e.treeData=t.data.list,null!=e.selectKey&&(e.dataSource=[],e.getTreeChildren(e.selectKey,e.treeData),e.$emit("updateTree",e.dataSource)),0==e.treeData.length&&(e.selectKey=null,e.selectNode=null),e.generateList(e.treeData))}))},checkHavedDevice:function(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.key==e?n.children&&n.children.length>0&&(this.findResult=!0):n.children&&this.checkHavedDevice(e,n.children)}return this.findResult},checkZoneHavedDevice:function(e){return this.findResult=!1,this.checkHavedDevice(e,this.treeData)},checkIsEmpty:function(){return!this.treeData.length},checkChildrenHavedDevice:function(e){if(e&&e.length>0)for(var t=0;t<e.length;t++){var a=e[t];if(1==a.value.type)return!0;a.children&&a.children.length>0&&this.getChildren(a.children)}},getTreeChildren:function(e,t){for(var a=0;a<t.length;a++){var n=t[a];if(n.key==e){var u={key:n.key,no:n.value.ID,nodeName:n.text,nodeType:n.value.type,Status:n.value.Status,deviceType:n.value.deviceType,IsEnable:n.value.IsEnable,extra:n.value};this.dataSource.push(u),this.getChildren(n.children)}else if(n.children){for(var i=!1,o=0;o<n.children.length;o++)if(n.children[o].key==e){i=!0;var r=n.children[o],s={key:r.key,no:r.value.ID,nodeName:r.text,nodeType:r.value.type,Status:r.value.Status,deviceType:n.value.deviceType,IsEnable:n.value.IsEnable,extra:r.value};this.dataSource.push(s),this.getChildren(n.children[o].children);break}i||this.getTreeChildren(e,n.children)}}},getChildren:function(e){if(e&&e.length>0)for(var t=0;t<e.length;t++){var a=e[t],n={key:a.key,no:a.value.ID,nodeName:a.text,Status:a.value.Status,nodeType:a.value.type,deviceType:a.value.deviceType,IsEnable:a.value.IsEnable,extra:a.value};this.dataSource.push(n),a.children&&a.children.length>0&&this.getChildren(a.children)}},onSelect:function(e,t){0==t.node.value.type&&(this.editIsDevice=!1,this.selectKey=e[0],this.dataSource=[],this.getTreeChildren(this.selectKey,this.treeData));var a={key:e[0],info:t.node,tableList:this.dataSource};this.$emit("onSelect",a)},onExpand:function(e){this.expandedKeys=e,this.autoExpandParent=!1},getParentKey:function(e,t){for(var a,n=0;n<t.length;n++){var u=t[n];u.children&&(u.children.some((function(t){return t.key===e}))?a=u.key:this.getParentKey(e,u.children)&&(a=this.getParentKey(e,u.children)))}return a},onTreeChange:function(e){var t=this,a=e.target.value,n=t.dataList.map((function(e){return e.title.indexOf(a)>-1?t.getParentKey(e.key,t.treeData):null})).filter((function(e,t,a){return e&&a.indexOf(e)===t}));Object.assign(t,{expandedKeys:n,searchValue:a,autoExpandParent:!0})},onChange:function(e){var t=e.target.value,a=this,n=this.dataList.map((function(e){return e.title.indexOf(t)>-1?a.getParentKey(e.key,a.treeData):null})).filter((function(e,t,a){return e&&a.indexOf(e)===t}));this.searchValue=t,this.autoExpandParent=!0,this.expandedKeys=n}}},i=(a("5f6b"),a("2877")),o=Object(i.a)(u,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"TreeBox",staticStyle:{padding:"5px",height:"85vh","overflow-y":"scroll"}},[t("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{placeholder:"Search"},on:{change:e.onTreeChange}}),t("a-directory-tree",{attrs:{"tree-data":e.treeData,"expanded-keys":e.expandedKeys,"auto-expand-parent":e.autoExpandParent,"replace-fields":{value:"key",title:"text"}},on:{expand:e.onExpand,select:e.onSelect},scopedSlots:e._u([{key:"title",fn:function(a){var n=a.title;return[e._v(" "+e._s(n)+" "),n.indexOf(e.searchValue)>-1?t("span",[e._v(" "+e._s(n.substr(0,n.indexOf(e.searchValue)))+" "),t("span",{staticStyle:{color:"#f50"}},[e._v(e._s(e.searchValue))]),e._v(" "+e._s(n.substr(n.indexOf(e.searchValue)+e.searchValue.length))+" ")]):t("span",[e._v(e._s(n))])]}}])})],1)}),[],!1,null,"79b45538",null)
/* harmony default export */;t.a=o.exports},
/***/"361e":
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/},
/***/"5f6b":
/***/function(e,t,a){"use strict";
/* harmony import */a("7784");
/* harmony import */},
/***/7784:
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/},
/***/"94d8":
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/},
/***/"96f2":
/***/function(e,t,a){"use strict";
/* harmony import */a("c778");
/* harmony import */},
/***/a89b:
/***/function(e,t,a){"use strict";
/* harmony import */a("12c0");
/* harmony import */},
/***/aa3f:
/***/function(e,t,a){"use strict";
/* harmony import */a("361e");
/* harmony import */},
/***/c778:
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/},
/***/f9e8:
/***/function(e,t,a){"use strict";
/* harmony import */a("94d8");
/* harmony import */},
/***/fd45:
/***/function(e,t,a){"use strict";
// ESM COMPAT FLAG
a.r(t);
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
a("99af"),a("d3b7"),a("4d63"),a("c607"),a("ac1f"),a("2c3e"),a("25f0"),a("1276");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
var n=a("2909"),u=(a("4de4"),a("caad"),a("14d9"),a("b0c0"),a("2532"),a("0643"),a("2382"),a("32dc")),i=a("600d"),o=a("07ac4"),r=a("cf45"),s=(a("b775"),{name:"ISMMonitor",i18n:a("89fe"),data:function(){var e=this;return{modalWidth:400,showModelUuid:"",showDeviceUuid:"",settingLoading:!1,error:"",showRealData:!0,getReadDataResponse:!0,deviceType:0,searchText:"",searchInput:null,searchedColumn:"",intervalId:null,setDataUuid:"",firstLoad:!0,SetForm:this.$form.createForm(this),selectDeviceKey:"",messageShowLoad:!1,settingVisible:!1,columns:[{width:"20%",slotName:"readData.tableName",scopedSlots:{filterDropdown:"filterDropdown",filterIcon:"filterIcon",customRender:"customRender",title:"readData.tableName"},dataIndex:"name",onFilter:function(e,t){return t.name.toString().toLowerCase().includes(e.toLowerCase())},onFilterDropdownVisibleChange:function(t){t&&setTimeout((function(){e.searchInput.focus()}),0)}},{slotName:"readData.tableValue",width:"12%",scopedSlots:{customRender:"value",title:"readData.tableValue"},dataIndex:"value"},{slotName:"readData.tableUnit",width:"6%",scopedSlots:{customRender:"unit",title:"readData.tableUnit"},dataIndex:"unit"},{slotName:"readData.UpdateTime",width:"10%",scopedSlots:{customRender:"UpdateTime",title:"readData.UpdateTime"},dataIndex:"UpdateTime"},{slotName:"readData.tableOpt",width:"10%",scopedSlots:{customRender:"action",title:"readData.tableOpt"}}],pagination:{pageSize:15,showSizeChanger:!0},tableDataSource:[]}},components:{deviceTree:u.a,ISMRender:o.a},mounted:function(){},watch:{$route:function(){this.firstLoad=!0,this.clear()}},filters:{formatDate:function(e){var t=new Date(e);return Object(r.a)(t,"yyyy-MM-dd hh:mm:ss")}},methods:{handleSearch:function(e,t,a){t(),this.searchText=e[0],this.searchedColumn=a},handleReset:function(e){e(),this.searchText=""},setData:function(){var e=this,t=this;this.SetForm.validateFields((function(a){if(!a){e.settingLoading=!0;var u={deviceUuid:t.selectDeviceKey,dataUuid:t.setDataUuid,value:e.SetForm.getFieldValue("value")};Object(i.n)(u).then((function(e){if(t.settingLoading=!1,0==e.data.code){t.$message.success(t.$t("readData.SetSuccess"));var a=Object(n.a)(t.tableDataSource),u=a.filter((function(e){return t.setDataUuid===e.mduid}))[0];u&&(u.value=t.SetForm.getFieldValue("value"),t.registerGroupDataSource=a),t.settingVisible=!1}else t.$message.error(t.$t("readData.SetFailed"))})).catch((function(e){t.settingLoading=!1,t.$message.error(t.$t("readData.SetFailed"))})).finally((function(e){t.settingLoading=!1}))}}))},setting:function(e){this.settingVisible=!0,this.settingLoading=!1,this.setDataUuid=e.mduid},getRealData:function(e){var t=this,a={uuid:e,IsRemoveGW:this.selectNode.value.IsRemoteGw,ProjectUuid:this.selectNode.value.ProjectUUID};1==this.getReadDataResponse&&(this.tableDataSource=[],this.getReadDataResponse=!1,Object(i.k)(a).then((function(e){if(t.getReadDataResponse=!0,t.messageShowLoad=!1,0==e.data.code)for(var a=0;a<e.data.realData.length;a++){var n={};n.key=e.data.realData[a].ID,n.no=e.data.realData[a].ID,n.name=e.data.realData[a].name,n.value=e.data.realData[a].value,n.uuid=e.data.realData[a].uuid,n.unit=e.data.realData[a].unit,n.mduid=e.data.realData[a].mduid,n.UpdateTime=e.data.realData[a].UpdatedAt,t.tableDataSource.push(n),n={}}})))},onSelect:function(e){var t=e.info,a=this;this.clear(),this.selectNode=t,this.showModelUuid=this.selectNode.value.configUid,this.deviceType=3,this.messageShowLoad=!0,1==this.selectNode.value.type?(this.showDeviceUuid=this.selectNode.value.configUid,this.showDeviceUuid=this.selectNode.value.uuid,this.$nextTick((function(){this.deviceType=1,this.messageShowLoad=!0,this.selectDeviceKey=e.key,this.getRealData(e.key),a.$EventBus.$off("readDataPush"),a.$EventBus.$off("StaticData"),a.$EventBus.$off("SystemData"),a.$EventBus.$on("readDataPush",(function(e){var t=e;if(t.DeviceUuid==a.selectDeviceKey&&null!=t.Data)for(var n=0;n<a.tableDataSource.length;n++)for(var u=0;u<t.Data.length;u++)if(a.tableDataSource[n].uuid==t.Data[u].Uuid){a.tableDataSource[n].value=t.Data[u].Value,a.tableDataSource[n].UpdateTime=new Date;break}})),a.$EventBus.$on("StaticData",(function(e){var t=e;if(t.DeviceUuid==a.selectDeviceKey&&null!=t.Data)for(var n=0;n<a.tableDataSource.length;n++)for(var u=0;u<t.Data.length;u++)a.tableDataSource[n].uuid==t.Data[u].Uuid&&(a.tableDataSource[n].value=t.Data[u].Value,a.tableDataSource[n].UpdateTime=new Date)})),a.$EventBus.$on("SystemData",(function(e){})),a.$EventBus.$on("RealAlarm",(function(e){var t=e;if(t.DeviceUuid==a.selectDeviceKey)for(var n=0;n<a.tableDataSource.length;n++)if(a.tableDataSource[n].uuid==t.DataUuid){a.tableDataSource[n].value=t.Value,a.tableDataSource[n].UpdateTime=new Date;break}}))}))):this.$nextTick((function(){this.firstLoad=!0,this.showDeviceUuid="",this.messageShowLoad=!1,this.selectDeviceKey="",this.deviceType=0,this.clear()}))},startTimer:function(e){var t=this;
// 计时器正在进行中，退出函数
null==this.intervalId&&(this.intervalId=setInterval((function(){t.getRealData(e)}),1e3))},clear:function(){clearInterval(this.intervalId),//清除计时器
this.intervalId=null}}}),c=(a("a89b"),a("2877")),l=Object(c.a)(s,(function(){var e=this,t=e._self._c;return t("a-layout",{staticStyle:{height:"100%"}},[t("a-layout-sider",{staticStyle:{background:"#fff","min-width":"300px"}},[t("device-tree",{ref:"deviceTree",staticStyle:{"min-height":"85vh"},on:{onSelect:e.onSelect}})],1),t("a-modal",{directives:[{name:"drag-modal",rawName:"v-drag-modal"}],attrs:{width:e.modalWidth,confirmLoading:e.settingLoading,title:e.$t("monitor.Set")},on:{ok:e.setData},model:{value:e.settingVisible,callback:function(t){e.settingVisible=t},expression:"settingVisible"}},[t("a-form",{attrs:{form:e.SetForm}},[t("a-alert",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticStyle:{"margin-bottom":"10px"},attrs:{type:"error",closable:!0,message:e.error,showIcon:""}}),t("a-form-item",{attrs:{label:e.$t("monitor.SetValue"),labelCol:{span:4},wrapperCol:{span:20}}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["value",{rules:[{required:!0,message:e.$t("monitor.SetValue")}]}],expression:"[\n                  'value',\n                  {\n                    rules: [{ required: true, message: $t('monitor.SetValue') }],\n                  },\n                ]"}]})],1)],1)],1),t("a-layout",[t("a-layout-content",{staticStyle:{"margin-left":"5px","margin-right":"5px"}},[t("a-spin",{staticStyle:{padding:"1px"},attrs:{spinning:e.messageShowLoad,tip:"Loading..."}},[t("a-card",{staticStyle:{padding:"5px","min-height":"85vh"},attrs:{id:"viewCard"}},[1==e.deviceType?t("div",[t("a-table",{attrs:{rowKey:"uuid",pagination:e.pagination,columns:e.columns,"data-source":e.tableDataSource},scopedSlots:e._u([{key:"filterDropdown",fn:function(a){var n=a.setSelectedKeys,u=a.selectedKeys,i=a.confirm,o=a.clearFilters,r=a.column;return t("div",{staticStyle:{padding:"8px"}},[t("a-input",{directives:[{name:"ant-ref",rawName:"v-ant-ref",value:function(t){return e.searchInput=t},expression:"c => (searchInput = c)"}],staticStyle:{width:"188px","margin-bottom":"8px",display:"block"},attrs:{placeholder:"Search ".concat(r.dataIndex),value:u[0]},on:{change:function(e){return n(e.target.value?[e.target.value]:[])},pressEnter:function(){return e.handleSearch(u,i,r.dataIndex)}}}),t("a-button",{staticStyle:{width:"90px","margin-right":"8px"},attrs:{type:"primary",icon:"search",size:"small"},on:{click:function(){return e.handleSearch(u,i,r.dataIndex)}}},[e._v(" "+e._s(e.$t("readData.Search"))+" ")]),t("a-button",{staticStyle:{width:"90px"},attrs:{size:"small"},on:{click:function(){return e.handleReset(o)}}},[e._v(" "+e._s(e.$t("readData.Reset"))+" ")])],1)}},{key:"filterIcon",fn:function(e){return t("a-icon",{style:{color:e?"#108ee9":void 0},attrs:{type:"search"}})}},{key:"customRender",fn:function(a,n,u,i){return[e.searchText&&e.searchedColumn===i.dataIndex?t("span",[e._l(a.toString().split(new RegExp("(?<=".concat(e.searchText,")|(?=").concat(e.searchText,")"),"i")),(function(a,n){return[a.toLowerCase()===e.searchText.toLowerCase()?t("mark",{key:n,staticClass:"highlight"},[e._v(e._s(e.$t(a)))]):[e._v(e._s(e.$t(a)))]]}))],2):[e._v(" "+e._s(e.$t(a))+" ")]]}},{key:"UpdateTime",fn:function(a){return t("span",{},[e._v(" "+e._s(e._f("formatDate")(a))+" ")])}},{key:"nodeType",fn:function(a){return t("span",{},[0==a?t("div",{staticStyle:{color:"#FFCC00"}},[e._v(" "+e._s(e.$t("monitor.ZoneType"))+" ")]):1==a?t("div",{staticStyle:{color:"#990000"}},[e._v(" "+e._s(e.$t("monitor.DeivceType"))+" ")]):e._e()])}},{key:"action",fn:function(a,n){return t("div",{},[t("a",{staticStyle:{cursor:"pointer",color:"#13C2C2"},attrs:{type:"link"},on:{click:function(t){return e.setting(n)}}},[t("a-icon",{attrs:{type:"setting"}}),t("span",{staticStyle:{"margin-left":"2px"}},[e._v(e._s(e.$t("monitor.Set")))])],1)])}}],null,!1,3637919682)},[e._l(e.columns,(function(a,n){return t("template",{slot:a.slotName},[t("span",{key:n},[e._v(e._s(e.$t(a.slotName)))])])}))],2)],1):0==e.deviceType?t("div",{staticClass:"ism-pageview"},[t("ISMRender",{attrs:{showUuid:e.showModelUuid,showToken:"",showDeviceUuid:e.showDeviceUuid}})],1):e._e()])],1)],1)],1)],1)}),[],!1,null,null,null)
/* harmony default export */;t.default=l.exports}}]);