mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 08:20:31 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
15 lines
175 KiB
JavaScript
15 lines
175 KiB
JavaScript
(window["webpackJsonp_security-control"]=window["webpackJsonp_security-control"]||[]).push([["chunk-579c5563"],{"0676":function(t,e){function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.exports=i,t.exports["default"]=t.exports,t.exports.__esModule=!0},"11b0":function(t,e){function i(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}t.exports=i,t.exports["default"]=t.exports,t.exports.__esModule=!0},"1c35":function(t,e,i){"use strict";(function(t){
|
|
/*!
|
|
* The buffer module from node.js, for the browser.
|
|
*
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
* @license MIT
|
|
*/
|
|
var n=i("1fb5"),r=i("9152"),o=i("e3db");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=c.prototype):(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,i){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(t,e,i);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return u(this,t)}return h(this,t,e,i)}function h(t,e,i,n){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?g(t,e,i,n):"string"===typeof e?m(t,e,i):A(t,e)}function p(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e,i,n){return p(e),e<=0?l(t,e):void 0!==i?"string"===typeof n?l(t,e).fill(i,n):l(t,e).fill(i):l(t,e)}function u(t,e){if(p(e),t=l(t,e<0?0:0|y(e)),!c.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function m(t,e,i){if("string"===typeof i&&""!==i||(i="utf8"),!c.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|v(e,i);t=l(t,n);var r=t.write(e,i);return r!==n&&(t=t.slice(0,r)),t}function f(t,e){var i=e.length<0?0:0|y(e.length);t=l(t,i);for(var n=0;n<i;n+=1)t[n]=255&e[n];return t}function g(t,e,i,n){if(e.byteLength,i<0||e.byteLength<i)throw new RangeError("'offset' is out of bounds");if(e.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===i&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,i):new Uint8Array(e,i,n),c.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=c.prototype):t=f(t,e),t}function A(t,e){if(c.isBuffer(e)){var i=0|y(e.length);return t=l(t,i),0===t.length?t:(e.copy(t,0,0,i),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?l(t,0):f(t,e);if("Buffer"===e.type&&o(e.data))return f(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function w(t){return+t!=t&&(t=0),c.alloc(+t)}function v(t,e){if(c.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return X(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return $(t).length;default:if(n)return X(t).length;e=(""+e).toLowerCase(),n=!0}}function I(t,e,i){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,e>>>=0,i<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return W(this,e,i);case"utf8":case"utf-8":return T(this,e,i);case"ascii":return F(this,e,i);case"latin1":case"binary":return N(this,e,i);case"base64":return D(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function k(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function C(t,e,i,n,r){if(0===t.length)return-1;if("string"===typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"===typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:S(t,e,i,n,r);if("number"===typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):S(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function S(t,e,i,n,r){var o,a=1,s=t.length,l=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,i/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var h=-1;for(o=i;o<s;o++)if(c(t,o)===c(e,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(i+l>s&&(i=s-l),o=i;o>=0;o--){for(var p=!0,d=0;d<l;d++)if(c(t,o+d)!==c(e,d)){p=!1;break}if(p)return o}return-1}function M(t,e,i,n){i=Number(i)||0;var r=t.length-i;n?(n=Number(n),n>r&&(n=r)):n=r;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[i+a]=s}return a}function E(t,e,i,n){return tt(X(e,t.length-i),t,i,n)}function b(t,e,i,n){return tt(Z(e),t,i,n)}function B(t,e,i,n){return b(t,e,i,n)}function P(t,e,i,n){return tt($(e),t,i,n)}function x(t,e,i,n){return tt(_(e,t.length-i),t,i,n)}function D(t,e,i){return 0===e&&i===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,i))}function T(t,e,i){i=Math.min(t.length,i);var n=[],r=e;while(r<i){var o,a,s,l,c=t[r],h=null,p=c>239?4:c>223?3:c>191?2:1;if(r+p<=i)switch(p){case 1:c<128&&(h=c);break;case 2:o=t[r+1],128===(192&o)&&(l=(31&c)<<6|63&o,l>127&&(h=l));break;case 3:o=t[r+1],a=t[r+2],128===(192&o)&&128===(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(h=l));break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(h=l))}null===h?(h=65533,p=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),r+=p}return L(n)}e.Buffer=c,e.SlowBuffer=w,e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,i){return h(null,t,e,i)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,i){return d(null,t,e,i)},c.allocUnsafe=function(t){return u(null,t)},c.allocUnsafeSlow=function(t){return u(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,n=e.length,r=0,o=Math.min(i,n);r<o;++r)if(t[r]!==e[r]){i=t[r],n=e[r];break}return i<n?-1:n<i?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=c.allocUnsafe(e),r=0;for(i=0;i<t.length;++i){var a=t[i];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,r),r+=a.length}return n},c.byteLength=v,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)k(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)k(this,e,e+3),k(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)k(this,e,e+7),k(this,e+1,e+6),k(this,e+2,e+5),k(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?T(this,0,t):I.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,i,n,r){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,r>>>=0,this===t)return 0;for(var o=r-n,a=i-e,s=Math.min(o,a),l=this.slice(n,r),h=t.slice(e,i),p=0;p<s;++p)if(l[p]!==h[p]){o=l[p],a=h[p];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},c.prototype.indexOf=function(t,e,i){return C(this,t,e,i,!0)},c.prototype.lastIndexOf=function(t,e,i){return C(this,t,e,i,!1)},c.prototype.write=function(t,e,i,n){if(void 0===e)n="utf8",i=this.length,e=0;else if(void 0===i&&"string"===typeof e)n=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var r=this.length-e;if((void 0===i||i>r)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return M(this,t,e,i);case"utf8":case"utf-8":return E(this,t,e,i);case"ascii":return b(this,t,e,i);case"latin1":case"binary":return B(this,t,e,i);case"base64":return P(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function L(t){var e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);var i="",n=0;while(n<e)i+=String.fromCharCode.apply(String,t.slice(n,n+=O));return i}function F(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(127&t[r]);return n}function N(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(t[r]);return n}function W(t,e,i){var n=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>n)&&(i=n);for(var r="",o=e;o<i;++o)r+=K(t[o]);return r}function R(t,e,i){for(var n=t.slice(e,i),r="",o=0;o<n.length;o+=2)r+=String.fromCharCode(n[o]+256*n[o+1]);return r}function Q(t,e,i){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function U(t,e,i,n,r,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<o)throw new RangeError('"value" argument is out of bounds');if(i+n>t.length)throw new RangeError("Index out of range")}function Y(t,e,i,n){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-i,2);r<o;++r)t[i+r]=(e&255<<8*(n?r:1-r))>>>8*(n?r:1-r)}function j(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-i,4);r<o;++r)t[i+r]=e>>>8*(n?r:3-r)&255}function z(t,e,i,n,r,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function J(t,e,i,n,o){return o||z(t,e,i,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,i,n,23,4),i+4}function G(t,e,i,n,o){return o||z(t,e,i,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,i,n,52,8),i+8}c.prototype.slice=function(t,e){var i,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)i=this.subarray(t,e),i.__proto__=c.prototype;else{var r=e-t;i=new c(r,void 0);for(var o=0;o<r;++o)i[o]=this[o+t]}return i},c.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||Q(t,e,this.length);var n=this[t],r=1,o=0;while(++o<e&&(r*=256))n+=this[t+o]*r;return n},c.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||Q(t,e,this.length);var n=this[t+--e],r=1;while(e>0&&(r*=256))n+=this[t+--e]*r;return n},c.prototype.readUInt8=function(t,e){return e||Q(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||Q(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||Q(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||Q(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||Q(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||Q(t,e,this.length);var n=this[t],r=1,o=0;while(++o<e&&(r*=256))n+=this[t+o]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||Q(t,e,this.length);var n=e,r=1,o=this[t+--n];while(n>0&&(r*=256))o+=this[t+--n]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||Q(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||Q(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(t,e){e||Q(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(t,e){return e||Q(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||Q(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||Q(t,4,this.length),r.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||Q(t,4,this.length),r.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||Q(t,8,this.length),r.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||Q(t,8,this.length),r.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){var r=Math.pow(2,8*i)-1;U(this,t,e,i,r,0)}var o=1,a=0;this[e]=255&t;while(++a<i&&(o*=256))this[e+a]=t/o&255;return e+i},c.prototype.writeUIntBE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){var r=Math.pow(2,8*i)-1;U(this,t,e,i,r,0)}var o=i-1,a=1;this[e+o]=255&t;while(--o>=0&&(a*=256))this[e+o]=t/a&255;return e+i},c.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Y(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Y(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);U(this,t,e,i,r-1,-r)}var o=0,a=1,s=0;this[e]=255&t;while(++o<i&&(a*=256))t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},c.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);U(this,t,e,i,r-1,-r)}var o=i-1,a=1,s=0;this[e+o]=255&t;while(--o>=0&&(a*=256))t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},c.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Y(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Y(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,i){return J(this,t,e,!0,i)},c.prototype.writeFloatBE=function(t,e,i){return J(this,t,e,!1,i)},c.prototype.writeDoubleLE=function(t,e,i){return G(this,t,e,!0,i)},c.prototype.writeDoubleBE=function(t,e,i){return G(this,t,e,!1,i)},c.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-i&&(n=t.length-e+i);var r,o=n-i;if(this===t&&i<e&&e<n)for(r=o-1;r>=0;--r)t[r+e]=this[r+i];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)t[r+e]=this[r+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+o),e);return o},c.prototype.fill=function(t,e,i,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,i=this.length):"string"===typeof i&&(n=i,i=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;var o;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"===typeof t)for(o=e;o<i;++o)this[o]=t;else{var a=c.isBuffer(t)?t:X(new c(t,n).toString()),s=a.length;for(o=0;o<i-e;++o)this[o+e]=a[o%s]}return this};var H=/[^+\/0-9A-Za-z-_]/g;function q(t){if(t=V(t).replace(H,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function V(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function K(t){return t<16?"0"+t.toString(16):t.toString(16)}function X(t,e){var i;e=e||1/0;for(var n=t.length,r=null,o=[],a=0;a<n;++a){if(i=t.charCodeAt(a),i>55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function Z(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}function _(t,e){for(var i,n,r,o=[],a=0;a<t.length;++a){if((e-=2)<0)break;i=t.charCodeAt(a),n=i>>8,r=i%256,o.push(r),o.push(n)}return o}function $(t){return n.toByteArray(q(t))}function tt(t,e,i,n){for(var r=0;r<n;++r){if(r+i>=e.length||r>=t.length)break;e[r+i]=t[r]}return r}function et(t){return t!==t}}).call(this,i("c8ba"))},"1fb5":function(t,e,i){"use strict";e.byteLength=h,e.toByteArray=d,e.fromByteArray=f;for(var n=[],r=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)n[s]=a[s],r[a.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");-1===i&&(i=e);var n=i===e?0:4-i%4;return[i,n]}function h(t){var e=c(t),i=e[0],n=e[1];return 3*(i+n)/4-n}function p(t,e,i){return 3*(e+i)/4-i}function d(t){var e,i,n=c(t),a=n[0],s=n[1],l=new o(p(t,a,s)),h=0,d=s>0?a-4:a;for(i=0;i<d;i+=4)e=r[t.charCodeAt(i)]<<18|r[t.charCodeAt(i+1)]<<12|r[t.charCodeAt(i+2)]<<6|r[t.charCodeAt(i+3)],l[h++]=e>>16&255,l[h++]=e>>8&255,l[h++]=255&e;return 2===s&&(e=r[t.charCodeAt(i)]<<2|r[t.charCodeAt(i+1)]>>4,l[h++]=255&e),1===s&&(e=r[t.charCodeAt(i)]<<10|r[t.charCodeAt(i+1)]<<4|r[t.charCodeAt(i+2)]>>2,l[h++]=e>>8&255,l[h++]=255&e),l}function u(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function m(t,e,i){for(var n,r=[],o=e;o<i;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),r.push(u(n));return r.join("")}function f(t){for(var e,i=t.length,r=i%3,o=[],a=16383,s=0,l=i-r;s<l;s+=a)o.push(m(t,s,s+a>l?l:s+a));return 1===r?(e=t[i-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===r&&(e=(t[i-2]<<8)+t[i-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},2236:function(t,e,i){var n=i("5a43");function r(t){if(Array.isArray(t))return n(t)}t.exports=r,t.exports["default"]=t.exports,t.exports.__esModule=!0},"448a":function(t,e,i){var n=i("2236"),r=i("11b0"),o=i("6613"),a=i("0676");function s(t){return n(t)||r(t)||o(t)||a()}t.exports=s,t.exports["default"]=t.exports,t.exports.__esModule=!0},"5a43":function(t,e){function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}t.exports=i,t.exports["default"]=t.exports,t.exports.__esModule=!0},6613:function(t,e,i){var n=i("5a43");function r(t,e){if(t){if("string"===typeof t)return n(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}}t.exports=r,t.exports["default"]=t.exports,t.exports.__esModule=!0},9152:function(t,e){
|
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
e.read=function(t,e,i,n,r){var o,a,s=8*r-n-1,l=(1<<s)-1,c=l>>1,h=-7,p=i?r-1:0,d=i?-1:1,u=t[e+p];for(p+=d,o=u&(1<<-h)-1,u>>=-h,h+=s;h>0;o=256*o+t[e+p],p+=d,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=256*a+t[e+p],p+=d,h-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(u?-1:1);a+=Math.pow(2,n),o-=c}return(u?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var a,s,l,c=8*o-r-1,h=(1<<c)-1,p=h>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,u=n?0:o-1,m=n?1:-1,f=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+p>=1?d/l:d*Math.pow(2,1-p),e*l>=2&&(a++,l/=2),a+p>=h?(s=0,a=h):a+p>=1?(s=(e*l-1)*Math.pow(2,r),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,r),a=0));r>=8;t[i+u]=255&s,u+=m,s/=256,r-=8);for(a=a<<r|s,c+=r;c>0;t[i+u]=255&a,u+=m,a/=256,c-=8);t[i+u-m]|=128*f}},c8b5:function(t,e,i){var n;
|
|
/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
* http://hammerjs.github.io/
|
|
*
|
|
* Copyright (c) 2016 Jorik Tangelder;
|
|
* Licensed under the MIT license */(function(r,o,a,s){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],h=o.createElement("div"),p="function",d=Math.round,u=Math.abs,m=Date.now;function f(t,e,i){return setTimeout(k(t,i),e)}function g(t,e,i){return!!Array.isArray(t)&&(A(t,i[e],i),!0)}function A(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==s){n=0;while(n<t.length)e.call(i,t[n],n,t),n++}else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function y(t,e,i){var n="DEPRECATED METHOD: "+e+"\n"+i+" AT \n";return function(){var e=new Error("get-stack-trace"),i=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,n,i),t.apply(this,arguments)}}l="function"!==typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(n!==s&&null!==n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}:Object.assign;var w=y((function(t,e,i){var n=Object.keys(e),r=0;while(r<n.length)(!i||i&&t[n[r]]===s)&&(t[n[r]]=e[n[r]]),r++;return t}),"extend","Use `assign`."),v=y((function(t,e){return w(t,e,!0)}),"merge","Use `assign`.");function I(t,e,i){var n,r=e.prototype;n=t.prototype=Object.create(r),n.constructor=t,n._super=r,i&&l(n,i)}function k(t,e){return function(){return t.apply(e,arguments)}}function C(t,e){return typeof t==p?t.apply(e&&e[0]||s,e):t}function S(t,e){return t===s?e:t}function M(t,e,i){A(P(e),(function(e){t.addEventListener(e,i,!1)}))}function E(t,e,i){A(P(e),(function(e){t.removeEventListener(e,i,!1)}))}function b(t,e){while(t){if(t==e)return!0;t=t.parentNode}return!1}function B(t,e){return t.indexOf(e)>-1}function P(t){return t.trim().split(/\s+/g)}function x(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);var n=0;while(n<t.length){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function D(t){return Array.prototype.slice.call(t,0)}function T(t,e,i){var n=[],r=[],o=0;while(o<t.length){var a=e?t[o][e]:t[o];x(r,a)<0&&n.push(t[o]),r[o]=a,o++}return i&&(n=e?n.sort((function(t,i){return t[e]>i[e]})):n.sort()),n}function O(t,e){var i,n,r=e[0].toUpperCase()+e.slice(1),o=0;while(o<c.length){if(i=c[o],n=i?i+r:e,n in t)return n;o++}return s}var L=1;function F(){return L++}function N(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}var W=/mobile|tablet|ip(ad|hone|od)|android/i,R="ontouchstart"in r,Q=O(r,"PointerEvent")!==s,U=R&&W.test(navigator.userAgent),Y="touch",j="pen",z="mouse",J="kinect",G=25,H=1,q=2,V=4,K=8,X=1,Z=2,_=4,$=8,tt=16,et=Z|_,it=$|tt,nt=et|it,rt=["x","y"],ot=["clientX","clientY"];function at(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){C(t.options.enable,[t])&&i.handler(e)},this.init()}function st(t){var e,i=t.options.inputClass;return e=i||(Q?Bt:U?Nt:R?Ut:Ct),new e(t,lt)}function lt(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,o=e&H&&n-r===0,a=e&(V|K)&&n-r===0;i.isFirst=!!o,i.isFinal=!!a,o&&(t.session={}),i.eventType=e,ct(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function ct(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=dt(e)),r>1&&!i.firstMultiple?i.firstMultiple=dt(e):1===r&&(i.firstMultiple=!1);var o=i.firstInput,a=i.firstMultiple,s=a?a.center:o.center,l=e.center=ut(n);e.timeStamp=m(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=At(s,l),e.distance=gt(s,l),ht(i,e),e.offsetDirection=ft(e.deltaX,e.deltaY);var c=mt(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=u(c.x)>u(c.y)?c.x:c.y,e.scale=a?wt(a.pointers,n):1,e.rotation=a?yt(a.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,pt(i,e);var h=t.element;b(e.srcEvent.target,h)&&(h=e.srcEvent.target),e.target=h}function ht(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==H&&o.eventType!==V||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}function pt(t,e){var i,n,r,o,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=K&&(l>G||a.velocity===s)){var c=e.deltaX-a.deltaX,h=e.deltaY-a.deltaY,p=mt(l,c,h);n=p.x,r=p.y,i=u(p.x)>u(p.y)?p.x:p.y,o=ft(c,h),t.lastInterval=e}else i=a.velocity,n=a.velocityX,r=a.velocityY,o=a.direction;e.velocity=i,e.velocityX=n,e.velocityY=r,e.direction=o}function dt(t){var e=[],i=0;while(i<t.pointers.length)e[i]={clientX:d(t.pointers[i].clientX),clientY:d(t.pointers[i].clientY)},i++;return{timeStamp:m(),pointers:e,center:ut(e),deltaX:t.deltaX,deltaY:t.deltaY}}function ut(t){var e=t.length;if(1===e)return{x:d(t[0].clientX),y:d(t[0].clientY)};var i=0,n=0,r=0;while(r<e)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:d(i/e),y:d(n/e)}}function mt(t,e,i){return{x:e/t||0,y:i/t||0}}function ft(t,e){return t===e?X:u(t)>=u(e)?t<0?Z:_:e<0?$:tt}function gt(t,e,i){i||(i=rt);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function At(t,e,i){i||(i=rt);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function yt(t,e){return At(e[1],e[0],ot)+At(t[1],t[0],ot)}function wt(t,e){return gt(e[0],e[1],ot)/gt(t[0],t[1],ot)}at.prototype={handler:function(){},init:function(){this.evEl&&M(this.element,this.evEl,this.domHandler),this.evTarget&&M(this.target,this.evTarget,this.domHandler),this.evWin&&M(N(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(N(this.element),this.evWin,this.domHandler)}};var vt={mousedown:H,mousemove:q,mouseup:V},It="mousedown",kt="mousemove mouseup";function Ct(){this.evEl=It,this.evWin=kt,this.pressed=!1,at.apply(this,arguments)}I(Ct,at,{handler:function(t){var e=vt[t.type];e&H&&0===t.button&&(this.pressed=!0),e&q&&1!==t.which&&(e=V),this.pressed&&(e&V&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:z,srcEvent:t}))}});var St={pointerdown:H,pointermove:q,pointerup:V,pointercancel:K,pointerout:K},Mt={2:Y,3:j,4:z,5:J},Et="pointerdown",bt="pointermove pointerup pointercancel";function Bt(){this.evEl=Et,this.evWin=bt,at.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(Et="MSPointerDown",bt="MSPointerMove MSPointerUp MSPointerCancel"),I(Bt,at,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),r=St[n],o=Mt[t.pointerType]||t.pointerType,a=o==Y,s=x(e,t.pointerId,"pointerId");r&H&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):r&(V|K)&&(i=!0),s<0||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(s,1))}});var Pt={touchstart:H,touchmove:q,touchend:V,touchcancel:K},xt="touchstart",Dt="touchstart touchmove touchend touchcancel";function Tt(){this.evTarget=xt,this.evWin=Dt,this.started=!1,at.apply(this,arguments)}function Ot(t,e){var i=D(t.touches),n=D(t.changedTouches);return e&(V|K)&&(i=T(i.concat(n),"identifier",!0)),[i,n]}I(Tt,at,{handler:function(t){var e=Pt[t.type];if(e===H&&(this.started=!0),this.started){var i=Ot.call(this,t,e);e&(V|K)&&i[0].length-i[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:Y,srcEvent:t})}}});var Lt={touchstart:H,touchmove:q,touchend:V,touchcancel:K},Ft="touchstart touchmove touchend touchcancel";function Nt(){this.evTarget=Ft,this.targetIds={},at.apply(this,arguments)}function Wt(t,e){var i=D(t.touches),n=this.targetIds;if(e&(H|q)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var r,o,a=D(t.changedTouches),s=[],l=this.target;if(o=i.filter((function(t){return b(t.target,l)})),e===H){r=0;while(r<o.length)n[o[r].identifier]=!0,r++}r=0;while(r<a.length)n[a[r].identifier]&&s.push(a[r]),e&(V|K)&&delete n[a[r].identifier],r++;return s.length?[T(o.concat(s),"identifier",!0),s]:void 0}I(Nt,at,{handler:function(t){var e=Lt[t.type],i=Wt.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:Y,srcEvent:t})}});var Rt=2500,Qt=25;function Ut(){at.apply(this,arguments);var t=k(this.handler,this);this.touch=new Nt(this.manager,t),this.mouse=new Ct(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function Yt(t,e){t&H?(this.primaryTouch=e.changedPointers[0].identifier,jt.call(this,e)):t&(V|K)&&jt.call(this,e)}function jt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches,r=function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)};setTimeout(r,Rt)}}function zt(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var r=this.lastTouches[n],o=Math.abs(e-r.x),a=Math.abs(i-r.y);if(o<=Qt&&a<=Qt)return!0}return!1}I(Ut,at,{handler:function(t,e,i){var n=i.pointerType==Y,r=i.pointerType==z;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)Yt.call(this,e,i);else if(r&&zt.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Jt=O(h.style,"touchAction"),Gt=Jt!==s,Ht="compute",qt="auto",Vt="manipulation",Kt="none",Xt="pan-x",Zt="pan-y",_t=ee();function $t(t,e){this.manager=t,this.set(e)}function te(t){if(B(t,Kt))return Kt;var e=B(t,Xt),i=B(t,Zt);return e&&i?Kt:e||i?e?Xt:Zt:B(t,Vt)?Vt:qt}function ee(){if(!Gt)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){t[i]=!e||r.CSS.supports("touch-action",i)})),t}$t.prototype={set:function(t){t==Ht&&(t=this.compute()),Gt&&this.manager.element.style&&_t[t]&&(this.manager.element.style[Jt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return A(this.manager.recognizers,(function(e){C(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),te(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,r=B(n,Kt)&&!_t[Kt],o=B(n,Zt)&&!_t[Zt],a=B(n,Xt)&&!_t[Xt];if(r){var s=1===t.pointers.length,l=t.distance<2,c=t.deltaTime<250;if(s&&l&&c)return}if(!a||!o)return r||o&&i&et||a&&i&it?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ie=1,ne=2,re=4,oe=8,ae=oe,se=16,le=32;function ce(t){this.options=l({},this.defaults,t||{}),this.id=F(),this.manager=null,this.options.enable=S(this.options.enable,!0),this.state=ie,this.simultaneous={},this.requireFail=[]}function he(t){return t&se?"cancel":t&oe?"end":t&re?"move":t&ne?"start":""}function pe(t){return t==tt?"down":t==$?"up":t==Z?"left":t==_?"right":""}function de(t,e){var i=e.manager;return i?i.get(t):t}function ue(){ce.apply(this,arguments)}function me(){ue.apply(this,arguments),this.pX=null,this.pY=null}function fe(){ue.apply(this,arguments)}function ge(){ce.apply(this,arguments),this._timer=null,this._input=null}function Ae(){ue.apply(this,arguments)}function ye(){ue.apply(this,arguments)}function we(){ce.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ve(t,e){return e=e||{},e.recognizers=S(e.recognizers,ve.defaults.preset),new Ce(t,e)}ce.prototype={defaults:{},set:function(t){return l(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(g(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=de(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return g(t,"dropRecognizeWith",this)||(t=de(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(g(t,"requireFailure",this))return this;var e=this.requireFail;return t=de(t,this),-1===x(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(g(t,"dropRequireFailure",this))return this;t=de(t,this);var e=x(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<oe&&n(e.options.event+he(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=oe&&n(e.options.event+he(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=le},canEmit:function(){var t=0;while(t<this.requireFail.length){if(!(this.requireFail[t].state&(le|ie)))return!1;t++}return!0},recognize:function(t){var e=l({},t);if(!C(this.options.enable,[this,e]))return this.reset(),void(this.state=le);this.state&(ae|se|le)&&(this.state=ie),this.state=this.process(e),this.state&(ne|re|oe|se)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},I(ue,ce,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=e&(ne|re),r=this.attrTest(t);return n&&(i&K||!r)?e|se:n||r?i&V?e|oe:e&ne?e|re:ne:le}}),I(me,ue,{defaults:{event:"pan",threshold:10,pointers:1,direction:nt},getTouchAction:function(){var t=this.options.direction,e=[];return t&et&&e.push(Zt),t&it&&e.push(Xt),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,o=t.deltaX,a=t.deltaY;return r&e.direction||(e.direction&et?(r=0===o?X:o<0?Z:_,i=o!=this.pX,n=Math.abs(t.deltaX)):(r=0===a?X:a<0?$:tt,i=a!=this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&&n>e.threshold&&r&e.direction},attrTest:function(t){return ue.prototype.attrTest.call(this,t)&&(this.state&ne||!(this.state&ne)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=pe(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),I(fe,ue,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Kt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&ne)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),I(ge,ce,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[qt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!n||!i||t.eventType&(V|K)&&!r)this.reset();else if(t.eventType&H)this.reset(),this._timer=f((function(){this.state=ae,this.tryEmit()}),e.time,this);else if(t.eventType&V)return ae;return le},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ae&&(t&&t.eventType&V?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=m(),this.manager.emit(this.options.event,this._input)))}}),I(Ae,ue,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Kt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&ne)}}),I(ye,ue,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:et|it,pointers:1},getTouchAction:function(){return me.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(et|it)?e=t.overallVelocity:i&et?e=t.overallVelocityX:i&it&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&u(e)>this.options.velocity&&t.eventType&V},emit:function(t){var e=pe(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),I(we,ce,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Vt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&H&&0===this.count)return this.failTimeout();if(n&&r&&i){if(t.eventType!=V)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||gt(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t;var s=this.count%e.taps;if(0===s)return this.hasRequireFailures()?(this._timer=f((function(){this.state=ae,this.tryEmit()}),e.interval,this),ne):ae}return le},failTimeout:function(){return this._timer=f((function(){this.state=le}),this.options.interval,this),le},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ae&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ve.VERSION="2.0.7",ve.defaults={domEvents:!1,touchAction:Ht,enable:!0,inputTarget:null,inputClass:null,preset:[[Ae,{enable:!1}],[fe,{enable:!1},["rotate"]],[ye,{direction:et}],[me,{direction:et},["swipe"]],[we],[we,{event:"doubletap",taps:2},["tap"]],[ge]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Ie=1,ke=2;function Ce(t,e){this.options=l({},ve.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=st(this),this.touchAction=new $t(this,this.options.touchAction),Se(this,!0),A(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function Se(t,e){var i,n=t.element;n.style&&(A(t.options.cssProps,(function(r,o){i=O(n.style,o),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||""})),e||(t.oldCssProps={}))}function Me(t,e){var i=o.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=e,e.target.dispatchEvent(i)}Ce.prototype={set:function(t){return l(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?ke:Ie},recognize:function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&ae)&&(r=e.curRecognizer=null);var o=0;while(o<n.length)i=n[o],e.stopped===ke||r&&i!=r&&!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&&i.state&(ne|re|oe)&&(r=e.curRecognizer=i),o++}},get:function(t){if(t instanceof ce)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(g(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(g(t,"remove",this))return this;if(t=this.get(t),t){var e=this.recognizers,i=x(e,t);-1!==i&&(e.splice(i,1),this.touchAction.update())}return this},on:function(t,e){if(t!==s&&e!==s){var i=this.handlers;return A(P(t),(function(t){i[t]=i[t]||[],i[t].push(e)})),this}},off:function(t,e){if(t!==s){var i=this.handlers;return A(P(t),(function(t){e?i[t]&&i[t].splice(x(i[t],e),1):delete i[t]})),this}},emit:function(t,e){this.options.domEvents&&Me(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};var n=0;while(n<i.length)i[n](e),n++}},destroy:function(){this.element&&Se(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(ve,{INPUT_START:H,INPUT_MOVE:q,INPUT_END:V,INPUT_CANCEL:K,STATE_POSSIBLE:ie,STATE_BEGAN:ne,STATE_CHANGED:re,STATE_ENDED:oe,STATE_RECOGNIZED:ae,STATE_CANCELLED:se,STATE_FAILED:le,DIRECTION_NONE:X,DIRECTION_LEFT:Z,DIRECTION_RIGHT:_,DIRECTION_UP:$,DIRECTION_DOWN:tt,DIRECTION_HORIZONTAL:et,DIRECTION_VERTICAL:it,DIRECTION_ALL:nt,Manager:Ce,Input:at,TouchAction:$t,TouchInput:Nt,MouseInput:Ct,PointerEventInput:Bt,TouchMouseInput:Ut,SingleTouchInput:Tt,Recognizer:ce,AttrRecognizer:ue,Tap:we,Pan:me,Swipe:ye,Pinch:fe,Rotate:Ae,Press:ge,on:M,off:E,each:A,merge:v,extend:w,assign:l,inherit:I,bindFn:k,prefixed:O});var Ee="undefined"!==typeof r?r:"undefined"!==typeof self?self:{};Ee.Hammer=ve,n=function(){return ve}.call(e,i,e,t),n===s||(t.exports=n)})(window,document)},e3db:function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},f5ea:function(t,e,i){"use strict";(function(t){var n=i("2b0e"),r=i("c8b5"),o=i.n(r),a=i("fca5"),s=i.n(a);function l(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var c={mode:"read",multiple:!0,rate:.2,src:null,width:null,min:300,max:null,markers:[],marker_size:20,marker_width:30,marker_height:30,enable_drag:!0,auto_index_z:!0,enable_canvas:!1,zoom_lock:!1,move_limit:!0,deviation_x:0,deviation_y:0,retainWdith:50,retainHeight:50};class h{constructor(t,e,i){l(this,"domId",void 0),l(this,"initImgDom",void 0),l(this,"config",void 0),l(this,"hammerObj",void 0),l(this,"offset",void 0),l(this,"callback",void 0),l(this,"paperMarkerData",void 0),l(this,"currentMarkerElement",void 0),l(this,"imgDomParentOffset",void 0),this.initImgDom=document.querySelector(t),this.domId=t,this.config={options:{},markerList:[]},this.offset={left:0,top:0},this.paperMarkerData=[],this.callback=i,this.initImgDom&&this.initImgDom.offsetParent&&(this.imgDomParentOffset={left:this.initImgDom.offsetParent.offsetLeft,top:this.initImgDom.offsetParent.offsetTop}),this.init(e)}init(t){document.ondragstart=function(){return!1};let e={};e="undefined"===typeof t?c:Object.assign({},c,t),this.config.options=e,p(this.config.options.src).then(t=>{this.initImgDom.src=this.config.options.src;let{setWidth:i,setHeight:n}=this.imageCenterAlign(t);this.setHammer(),this.initImgDom.addEventListener&&this.initImgDom.addEventListener("DOMMouseScroll",t=>{t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),this.setMousewheel(t)},!1),this.initImgDom.onmousewheel=t=>{t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),this.setMousewheel(t)},this.loadMarkers(e.markers,"back"),this.callback({type:"load",data:{width:i,height:n,src:this.config.options.src}})})}setMousewheel(t){let e=this.config.options,i=0;t.wheelDelta&&(i=t.wheelDelta,window.opera&&(i=-i)),t.detail&&(i=-t.detail),this.initImgDom=document.querySelector(this.domId),this.imgDomParentOffset={left:this.initImgDom.offsetParent.getBoundingClientRect().left,top:this.initImgDom.offsetParent.getBoundingClientRect().top};let n={x:t.pageX-this.imgDomParentOffset.left,y:t.pageY-this.imgDomParentOffset.top};this.zoomMarker_Zoom(e.zoom_lock?null:n,i>0?1+e.rate:1-e.rate)}setHammer(){let t=this.config.options;this.hammerObj=new o.a(this.initImgDom),this.hammerObj.get("pan").set({direction:o.a.DIRECTION_ALL}),this.hammerObj.on("panleft panright panup pandown",e=>{t.pinchlock||this.zoomMarker_Move(e.deltaX+this.offset.left,e.deltaY+this.offset.top)}),this.hammerObj.on("panstart",()=>{this.offset.left=this.initImgDom.offsetLeft,this.offset.top=this.initImgDom.offsetTop}),this.hammerObj.on("panend",()=>{t.pinchlock=!1}),this.hammerObj.on("tap",t=>{let e=this.initImgDom.dataset;if("undefined"===typeof t.pointers[0].x){let i={left:this.initImgDom.offsetLeft,top:this.initImgDom.offsetTop};this.callback({type:"mapClick",data:{x:(t.center.x-i.left)/this.initImgDom.width*Number(e.naturalWidth),y:(t.center.y-i.top)/this.initImgDom.height*Number(e.naturalHeight)}})}else this.callback({type:"mapClick",data:{pageX:t.pointers[0].offsetX,pageY:t.pointers[0].offsetY,x:t.pointers[0].offsetX/this.initImgDom.width*Number(e.naturalWidth),y:t.pointers[0].offsetY/this.initImgDom.height*Number(e.naturalHeight)}})})}zoomMarker_Move(t,e){let i=this.config.options;i.enable_drag&&(i.move_limit?this.limitLockOffset(this.initImgDom,t,e):(this.initImgDom.style.top=e+"px",this.initImgDom.style.left=t+"px"),this.reloadMarkers()),this.checkAllMarkerPosition(),this.callback({type:"imgMove",data:{top:e,left:t}})}zoomMarker_Zoom(t,e){let{options:i}=this.config,n=this.initImgDom.dataset,r={left:this.initImgDom.offsetLeft,top:this.initImgDom.offsetTop};const o=n.naturalHeight/n.naturalWidth,a=Number(n.width),s=Number(n.height);var l=a*e,c=l*o;null!=i.max&&l>i.max?(l=i.max,c=l*o):null!=i.min&&l<i.min&&(l=i.min,c=l*o),l=parseInt(l.toString()),c=parseInt(c.toString()),"undefined"!==typeof t&&null!==t||(t={},t.x=r.left+a/2,t.y=r.top+s/2);var h=t.y-c*(t.y-r.top)/s,p=t.x-l*(t.x-r.left)/a;this.initImgDom.dataset.width=l,this.initImgDom.dataset.height=c,this.initImgDom.style.width=l+"px",this.initImgDom.style.height=c+"px",this.initImgDom.style.left=p+"px",this.initImgDom.style.top=h+"px",this.reloadMarkers(),this.callback({type:"zoom"})}zoomMarker_AddMarker(t){this.addMarker(t),this.reloadMarkers()}imageCenterAlign(t){let e=t.width,i=t.height;null!==this.config.options.width&&(e=this.config.options.width,i=this.config.options.width/(t.width/t.height)),this.initImgDom.dataset.naturalWidth=e,this.initImgDom.dataset.naturalHeight=i;const n=this.initImgDom.offsetParent.getBoundingClientRect();let r=e/i,o=n.width/n.height,a={left:0,top:0,width:0,height:0};return r>=o?(a.width=n.width,a.height=n.width/r,a.top=(n.height-a.height)/2):(a.height=n.height,a.width=n.height*r,a.left=(n.width-a.width)/2),this.initImgDom.dataset.width=a.width,this.initImgDom.dataset.height=a.height,this.initImgDom.style.width=a.width+"px",this.initImgDom.style.height=a.height+"px",this.initImgDom.style.left=a.left+"px",this.initImgDom.style.top=a.top+"px",a}getMarkerOffset(t){let e=this.paperMarkerData.filter(e=>JSON.parse(e).id===t);return 0!==e.length?JSON.parse(e[0]):{}}addMarker(t,e){const i="undefined"===typeof t.draggable||t.draggable,n=document.getElementById(t.id);if(!n)return;let r=null;n.onclick=()=>{r=null},n.onmousemove=t=>{let e=t.currentTarget.id;if(this.currentMarkerElement=document.getElementById(e),null===r){let t=this.paperMarkerData.filter(t=>JSON.parse(t).id===e),i=0!==t.length?t[0]:"";""!==i&&this.callback({type:"markerOver",data:{id:e,left:this.currentMarkerElement.offsetLeft,top:this.currentMarkerElement.offsetTop,...JSON.parse(i)}})}},n.onmouseout=()=>{this.callback({type:"markerOut"})},this.paperMarkerData.push(JSON.stringify(t)),this.setMarkerOffset(n,t,{left:this.initImgDom.offsetLeft,top:this.initImgDom.offsetTop});const a=new o.a(n);return i&&"write"===this.config.options.mode&&(a.on("pan",e=>{let i={left:this.initImgDom.offsetLeft,top:this.initImgDom.offsetTop};const n=i.left-t.marker_width/2,o=n+Number(this.initImgDom.width),a=i.top-t.marker_height,s=a+Number(this.initImgDom.height);var l=e.deltaX+r.left,c=e.deltaY+r.top;l<n?l=n:l>o&&(l=o),c<a?c=a:c>s&&(c=s),this.callback({type:"markerMove",data:{id:t.id,left:l,top:c}}),this.currentMarkerElement.style.left=l+"px",this.currentMarkerElement.style.top=c+"px"}),a.on("panstart",()=>{r={left:this.currentMarkerElement.offsetLeft,top:this.currentMarkerElement.offsetTop}}),a.on("panend",()=>{this.updateMarker(this.currentMarkerElement)})),a.on("tap",t=>{let e=t.target.offsetParent.id,i=this.paperMarkerData.filter(t=>JSON.parse(t).id===e),n=0!==i.length?i[0]:"";""!==n&&this.callback({type:"markerClick",data:{...JSON.parse(n),left:this.currentMarkerElement.offsetLeft,top:this.currentMarkerElement.offsetTop}})}),t}loadMarkers(t,e){t.map(t=>{this.addMarker(JSON.parse(t),e)}),this.reloadMarkers()}toJSONData(){let t=[];return this.paperMarkerData.map(e=>{t.push(JSON.parse(e))}),{img:{src:this.config.options.src,naturalWidth:this.initImgDom.dataset.naturalWidth,naturalHeight:this.initImgDom.dataset.naturalHeight,width:this.initImgDom.dataset.width,height:this.initImgDom.dataset.height},markers:t}}setMarkerOffset(t,e,i){let n=this.initImgDom.dataset,r=Number(n.width)*e.x/n.naturalWidth+i.left-(e.marker_width||this.config.options.marker_width)/2+this.config.options.deviation_x,o=Number(n.height)*e.y/n.naturalHeight+i.top-(e.marker_height||this.config.options.marker_height)-this.config.options.deviation_y;return t.style.left=r+"px",t.style.top=o+"px",{left:r,top:o}}updateMarker(t){let e={left:this.initImgDom.offsetLeft,top:this.initImgDom.offsetTop},i=document.getElementById(t.id);const n=this.config.options,r=e.left-n.marker_width/2,o=e.top-n.marker_height,a=this.initImgDom.dataset;let s=(i.offsetLeft-r)*Number(a.naturalWidth)/this.initImgDom.width,l=(i.offsetTop-o)*Number(a.naturalHeight)/this.initImgDom.height,c=this.paperMarkerData.filter(e=>e.id===t.id||JSON.parse(e).id.toString()===t.id.toString());if(0!==c.length){let e=Object.assign({},JSON.parse(c[0]));e.x=s,e.y=l;let i=this.paperMarkerData.map(t=>JSON.parse(t).id.toString()).indexOf(t.id);this.paperMarkerData[i]=JSON.stringify(e)}else this.paperMarkerData.push(JSON.stringify({...t,x:s,y:l}));return this.callback({type:"markerUpload",data:this.paperMarkerData}),{x:s,y:l}}reloadMarkers(){this.paperMarkerData=this.paperMarkerData.map(t=>{let e=JSON.parse(t),i=document.getElementById(e.id);if(i){let t=this.setMarkerOffset(i,e,{left:this.initImgDom.offsetLeft,top:this.initImgDom.offsetTop});e.styleLeft=t.left,e.styleTop=t.top}return JSON.stringify(e)}),this.callback({type:"reloadMarkers",data:this.paperMarkerData})}limitLockOffset(t,e,i){let n=t.parentElement;const r={width:n.offsetWidth,height:n.offsetHeight,offsetLeft:n.offsetLeft,offsetTop:n.offsetTop},o=r.width+r.offsetLeft,a=r.height+r.offsetTop,s=t.width,l=t.height,c=this.config.options.retainWdith,h=this.config.options.retainHeight;var p=e,d=i;p+c>o?p=o-c:p<r.offsetLeft-s+c&&(p=r.offsetLeft-s+c),d+h>a?d=a-h:d<r.offsetTop-l+h&&(d=r.offsetTop-l+h),t.style.left=p+"px",t.style.top=d+"px"}removeMarker(t){let e=this.paperMarkerData.map(t=>JSON.parse(t).id).indexOf(t);-1!==e&&this.paperMarkerData.splice(e,1),this.reloadMarkers()}updateParentOffset(){this.initImgDom=document.querySelector(this.domId),this.imgDomParentOffset={left:this.initImgDom.offsetParent.offsetLeft,top:this.initImgDom.offsetParent.offsetTop}}getMarkerById(t){let e=this.paperMarkerData.filter(e=>JSON.parse(e).id===t);return 0!==e.length?Object.assign({},JSON.parse(e[0])):{}}removeMarkerToCenter(t){document.getElementById(t)}setFitView(t){const{offsetTop:e,offsetLeft:i}=this.initImgDom,n={x:0,y:0},r={x:this.initImgDom.parentElement.getBoundingClientRect().width/2,y:this.initImgDom.parentElement.getBoundingClientRect().height/2};if(t){let o=document.getElementById(t);const a={x:o.offsetLeft,y:o.offsetTop};a.x<r.x?n.x=i+(r.x-a.x):n.x=i-(a.x-r.x),a.y<r.y?n.y=e+(r.y-a.y):n.y=e-(a.y-r.y),this.initImgDom.style.left=n.x+"px",this.initImgDom.style.top=n.y+"px",this.reloadMarkers(),setTimeout(()=>{this.callback({type:"imgMove",data:{top:n.y,left:n.x}})},500)}}checkAllMarkerPosition(){const{offsetWidth:t,offsetHeight:e}=this.initImgDom.parentElement;let i=this.paperMarkerData.filter(i=>JSON.parse(i).styleLeft+this.config.options.marker_width<0||JSON.parse(i).styleLeft>t||JSON.parse(i).styleTop+this.config.options.marker_height<0||JSON.parse(i).styleTop>e);this.callback({type:"hasHidden",data:i})}calcAlaramPosition(){this.paperMarkerData.map(t=>{let e=document.getElementById(JSON.parse(t).id);if(e){let i=document.getElementById("alarm-"+JSON.parse(t).id);i.style.left=parseFloat(e.style.left)-JSON.parse(t).dialogWidth/2+this.config.options.marker_width/2+"px",i.style.top=parseFloat(e.style.top)-JSON.parse(t).dialogHeight+"px"}})}}const p=t=>new Promise(e=>{let i=new Image;i.src=t,i.onload=function(){e({width:this.width,height:this.height})}}),d="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAA3CAYAAAB6i9geAAAHj0lEQVRoQ+2Yf2xUVRbH773vzXvTXzOgtKUt05mCtuIA0h9KW1qKtV0VXJQ1WRXlhwjFn0Q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NA/wW7Cj5rqdtnN0AGwCcNdfkk2qE/DS09XXDDZ+sD2ypItNs0UBSuB2w7QLYMdDOw7QLZFqB8YNsJsm1A2WCxf3O5+Y2D8uynJR9lK6v4LNKb3d1snVvWR7D4bpmB/7rilpf+xOnTROivhRch+X0Wgt1+qGDXb+GgiiXhnm4aDHxnerD3ixOHD7d0qVZV3DU6s8Hxhe+hzsG7TMYFIgB2AsWJPwB4nof2UWRp9qmZjzartFqu1X9DwMVatdLGKOax3qdFAuFxoUD4HSz3Mkin8cU20nDMPLbjmca03uW+OwN3Z2DLZuAfJo6pknH6fWQAAAAASUVORK5CYII=";var g=n["default"].extend({name:"ZoomMarkerControl",components:{QzPlayer:s()},props:{service:{required:!0},data:{type:Array,default:()=>[],required:!1},mode:{type:String,default:"read",required:!1},multiple:{type:Boolean,default:!1,required:!1},mapImg:{type:String,required:!1},mapId:{type:String,required:!1},getAll:{type:Boolean,required:!1},markerImg:{type:String,default:d,required:!1},markerImgOnline:{type:String,default:d},markerImgOffline:{type:String,default:m},markerImgDisabled:{type:String,default:f},markerHigLightImg:{type:String,default:u,required:!1},sysettingService:{type:String,default:"/ninca-common"},deviceService:{type:String,default:"/cwos-portal"},deviceFilterCodes:{type:Array,default:()=>[]},fullScreenAside:{type:Array,default:()=>["20px","20px"]},playerSlot:{type:Boolean,default:!1},rate:{type:Number,default:.2},limit:{type:Array,default:()=>[.1,2]},deviationX:{type:Number,default:0},deviationY:{type:Number,default:0},defaultMarker:{type:Boolean,default:!0},retainWdith:{type:Number,default:50},retainHeight:{type:Number,default:50},addDefaultSelected:{type:Boolean,default:!1},markerAlarms:{type:Array},position:{type:String,default:"top"},markerTracks:{type:Array},defaultPlay:{type:Boolean,default:!1},showPlayer:{type:Boolean,default:!0},showDeviceStatus:{type:Boolean,default:!1},deviceFilterStatus:{type:Array,default:()=>[]},markerIcon:{type:Object,required:!1},mapInitinalOptions:{type:Object},playerPluginUrl:{type:String}},data(){return{renderImgId:"",loading:!1,bgImgWidth:0,bgImgId:null,showPoper:!1,bgImgHeight:0,limitMax:0,limitMin:0,alarmList:[],popMarkerData:{},poperPosition:{id:"",left:0,top:0},selectedId:"",markerData:[],markerSize:{width:0,height:0},isFullScreen:!1,renderMapImg:null,currentMarkerPos:{},showPlayerDialog:!1,devicePlayerConfig:{playerServer:"",deviceItem:{rtspUrl:"",dcs:!1,timeOffsetHour:0,areaName:"",deviceName:""},basicConfig:{autoPlay:!1},pluginUrl:this.playerPluginUrl},lsRtspurl:"",isPlaying:!1,supportPlay:!0,markerDataCache:[],renderWidth:0,renderHeight:0,currentAlarm:0,timerList:{}}},watch:{mapInitinalOptions:{handler:function(t){t&&Object.keys(t).length}},data:{handler:function(t){if(t&&0!==t.length){const e=this.markerData.map(t=>JSON.parse(t).id);t.map(t=>{e.indexOf("marker"+t.id)>-1?this.$set(this.markerData,e.indexOf(t.id),JSON.stringify(t)):t.x&&t.x.toString()&&t.y&&t.y.toString()&&this.mapClick(t,this.multiple)}),this.reloadMarkers()}},immediate:!0,deep:!0},markerAlarms:{handler:function(t){if(t){const e=this.alarmList.map(t=>t.objectId),i=this.markerData.filter(t=>!JSON.parse(t).hidden).map(t=>JSON.parse(t).objectId);t.map(t=>{-1!==i.indexOf(t.objectId)&&-1===e.indexOf(t.objectId)&&this.alarmList.push(t)}),this.calcAlaramPosition(),0!==t.length&&this.$emit("alarmShow",t)}},immediate:!0,deep:!0},mapImg:{handler:function(t){this.getImageSize(this.markerImg).then(e=>{this.markerSize.width=e.width,this.markerSize.height=e.height,t?this.getImageSize(t).then(e=>{this.renderMapImg=t,this.bgImgWidth=e.width,this.bgImgHeight=e.height,this.formatScaleSizeByLimit(),this.getAll&&this.mapId?this.getBindDevice(this.mapId).then(()=>{this.initDraw(t)}):this.initDraw(t)}):this.getMapImage().then(t=>{this.renderMapImg=t,this.initDraw(t),this.showAlarm()})})},immediate:!0,deep:!0},deviceFilterCodes:{handler:function(t){this.alarmList.map(e=>{-1===t.indexOf(e.objectId)&&this.closeAlarm(e)}),t&&0!==t.length?this.markerData=this.markerData.map(t=>{let e=JSON.parse(t);return e.hidden=!0,this.deviceFilterCodes.indexOf(e.deviceCode)>-1&&(e.hidden=!1),JSON.stringify(e)}):this.markerData=this.markerData.map(t=>{let e=JSON.parse(t);return e.hidden=!1,JSON.stringify(e)}),this.closePlayer(),this.$nextTick(()=>{this.drawPlugin&&this.drawPlugin.reloadMarkers()})},deep:!0},deviceFilterStatus:{handler:function(t){t&&0!==t.length?this.markerData=this.markerData.map(t=>(t.showStatus=this.deviceFilterStatus.indexOf(JSON.parse(t).deviceCode)>-1,t)):this.markerData=this.markerData.map(t=>(t.showStatus=this.showDeviceStatus,t))},deep:!0}},computed:{markerIdList:function(){let t=[];return t=this.markerData.map(t=>JSON.parse(t).id),t},playerDevices:function(){let t=[].concat(this.devicePlayerConfig.deviceItem);return t}},methods:{initDraw(t){this.drawPlugin=null,this.drawPlugin=new h("#"+this.renderImgId,{multiple:this.multiple,src:t,rate:this.rate,max:this.limitMax,min:this.limitMin,marker_width:this.markerSize.width,marker_height:this.markerSize.height,mode:this.mode,markers:this.markerData,deviation_x:this.deviationX,deviation_y:this.deviationY,retainWdith:this.retainWdith,retainHeight:this.retainHeight},t=>{if("load"===t.type&&(this.selectedId="",this.calcAlaramPosition(),this.$emit("mapLoaded")),"mapClick"===t.type){if(this.$emit("mapClick",t.data),!this.multiple&&this.markerData.length>1)return;let e=!this.multiple&&this.markerData.length<=1;"write"===this.mode&&this.mapClick(t.data,e)}if("markerOver"!==t.type&&"markerOut"!==t.type||this.showPoper&&t.data&&this.triggerPoper(t.type,t.data),"markerOut"===t.type&&(this.showPoper=!1),"markerClick"===t.type&&this.markerClick(t.data),"imgMove"===t.type){let e=this.drawPlugin.getMarkerOffset(this.poperPosition.id);0!==Object.keys(e).length&&(this.poperPosition.left=e.pageX+30,this.poperPosition.top=e.pageY),this.setPlayerDialog(),this.calcAlaramPosition(),this.$emit("mapMove",t.data)}"zoom"===t.type&&(this.showPoper=!1,this.setPlayerDialog(),this.calcAlaramPosition(),this.$emit("mapZoom")),"markerUpload"===t.type&&this.$emit("change",this.toJSONData()),"esc"===t.type&&(this.isFullScreen=!1),"markerMove"===t.type&&this.closePlayer(),"hasHidden"===t.type&&this.$emit("hasHidden",t.data),"reloadMarkers"===t.type&&this.calcAlaramPosition()}),this.markerDataCache=[].concat(this.markerData)},showAlarm(){if(this.markerAlarms&&0!==this.markerAlarms.length){const t=this.alarmList.map(t=>t.objectId);this.markerAlarms.map(e=>{-1!==this.markerIdList.indexOf(e.objectId)&&-1===t.indexOf(e.objectId)&&this.alarmList.push(e)}),this.calcAlaramPosition(),0!==this.markerAlarms.length&&this.$emit("alarmShow",this.markerAlarms)}},getAlaramPositionByObjectId(t){let e=document.getElementById(t.objectId),i=document.getElementById("alarm-"+t.objectId);if(i){let{width:t,height:n}=i.getBoundingClientRect();return e?{left:parseFloat(e.style.left)-t/2+this.markerSize.width/2,top:parseFloat(e.style.top)-n}:{left:0,top:0}}return{left:0,top:0}},calcAlaramPosition(){0!==this.alarmList.length&&this.$nextTick(()=>{this.alarmList=this.alarmList.map(t=>({...t,...this.getAlaramPositionByObjectId(t)})),this.alarmList.map(t=>{let e=document.getElementById(t.objectId);if(e){e.classList.add("jump-animate");let i=e.querySelector(".alarm-marker");if(!i&&t.markerIcon){e.querySelector(".marker-icon").style.display="none";let i=document.createElement("img");i.src=t.markerIcon,i.classList.add("alarm-marker"),i.classList.add("marker-icon"),i.style.width=(t.markerWidth||this.markerSize.width)+"px",i.style.height=(t.markerHeight||this.markerSize.height)+"px",e.append(i)}this.timerList[t.objectId]||this.autoCloseAlarm(t)}})})},closeAlarm(t){let e=document.getElementById(t.objectId);if(!e)return;let i=this.alarmList.map(t=>t.objectId).indexOf(t.objectId);this.alarmList.splice(i,1),this.currentAlarm=0;let n=e.querySelector(".alarm-marker");n&&t.markerIcon&&(e.querySelector(".marker-icon").style.display="initial",e.querySelector(".alarm-marker").remove()),e.classList.remove("jump-animate"),this.$nextTick(()=>{this.calcAlaramPosition();try{clearTimeout(this.timerList[t.objectId]),delete this.timerList[t.objectId]}catch(e){}})},autoCloseAlarm(t){-1===Object.keys(this.timerList).indexOf(t.objectId)&&this.$set(this.timerList,t.objectId,setTimeout(()=>{this.closeAlarm(t)},t.autoCloseTime||1e4))},closeAlarmByHand(t){if(t){let e=this.alarmList.filter(e=>e.objectId===t);0!==e.length&&this.closeAlarm(e[0])}else this.alarmList.map(t=>{this.closeAlarm(t)})},getMapImage(){return new Promise(t=>{this.service&&this.service.post&&this.service.post(this.sysettingService+"/sysetting/map/query",{}).then(e=>{if(e.success)if(0!==e.data.length){let i=e.data.filter(t=>"default"===t.ext2);if(0===i.length)return void this.$message.warning("暂无默认地图");let n=i[0],r=n.mapImg;this.bgImgId=n.id,this.getImageSize(r).then(e=>{this.bgImgWidth=e.width,this.bgImgHeight=e.height,this.formatScaleSizeByLimit(),this.getAll&&this.bgImgId?this.getBindDevice(this.bgImgId).then(()=>{t(r)}):t(r)})}else this.$message.warning("暂无地图");else this.$message.error("获取地图失败")})})},getBindDevice(t){return this.getAll?new Promise(e=>{this.service&&this.service.post&&this.service.post(this.deviceService+"/component/device/list",{mapId:t}).then(t=>{t.success?(t.data.map(t=>{let e={id:t.id,x:t.mapX,y:t.mapY,draggable:!0,size:30,marker_width:this.markerSize.width,marker_height:this.markerSize.height,showStatus:this.showDeviceStatus,hidden:!1,...t,data:{...t}};e.x.toString()&&e.y.toString()&&this.markerData.push(JSON.stringify(e))}),this.filterMarkerData(),this.$nextTick(()=>{e()})):this.$message.error("获取设备列表失败")})}):new Promise(t=>{this.filterMarkerData(),t()})},filterMarkerData(){0!==this.deviceFilterCodes.length&&(this.markerData=this.markerData.filter(t=>this.deviceFilterCodes.indexOf(JSON.parse(t).deviceCode)>-1))},formatScaleSizeByLimit(){if(0!==this.limit.length){let t=Number(this.limit[1]);this.limitMax=this.bgImgWidth*t}else this.limitMax=2e3;let t=parseFloat(this.renderWidth),e=1;e=this.bgImgWidth>t?parseInt((t/this.bgImgWidth*10).toString())/10:1,this.limitMin=this.bgImgWidth*e},mapClick(t,e){let i="marker"+(t.id||(new Date).getTime()),n={id:i,x:t.x,y:t.y,draggable:!0,size:30,marker_width:this.markerSize.width,marker_height:this.markerSize.height,status:0,onlineStatus:2,exp:1};this.addMarker(n,e)},markerClick(t){this.showPlayerDialog=!1,this.isPlaying=!1,this.currentMarkerPos=t,this.devicePlayerConfig.playerServer=t.data.playerServer||"",this.devicePlayerConfig.dcs=t.data.dcs||!1,this.devicePlayerConfig.deviceItem={...t.data},this.lsRtspurl=t.rtspUrl,t.hasOwnProperty("taskName")&&(this.devicePlayerConfig.taskName=t.taskName),t.hasOwnProperty("edgeName")&&(this.devicePlayerConfig.edgeName=t.edgeName),this.defaultPlay&&(this.devicePlayerConfig.deviceItem.rtspUrl=t.data.rtspUrl),t.data&&t.data.rtspUrl?this.supportPlay=!0:this.supportPlay=!1,this.selectedId=t.id,this.showPlayerDialog=!0,this.$nextTick(()=>{this.$refs.playerDialog&&this.setPlayerDialog(t.id),this.$emit("markerClick",{...t})})},setPlayerDialog(){let t=0,e=0;if(this.selectedId&&this.$refs.playerDialog){let i=this.$refs.playerDialog.getBoundingClientRect(),n=this.$refs.renderDom.getBoundingClientRect(),r=document.getElementById(this.selectedId);if(!r)return void(this.showPlayerDialog=!1);let o=r.getBoundingClientRect(),a={left:o.left-n.left,top:o.top-n.top};t=a.left-i.width/2+this.markerSize.width/2,e=a.top-i.height,this.$refs.playerDialog.style.left=t+"px",this.$refs.playerDialog.style.top=e-8+"px"}},closePlayer(){this.showPlayerDialog=!1,this.selectedId=""},addMarker(t,e){e&&(this.markerData=[],this.closePlayer()),this.markerData.push(JSON.stringify(t)),this.markerDataCache.push(JSON.stringify(t)),this.$nextTick(()=>{this.drawPlugin&&(this.drawPlugin.zoomMarker_AddMarker(t),this.$emit("change",this.toJSONData()),this.addDefaultSelected?this.$emit("markerClick",{...t}):this.$emit("markerClick",{id:""}))})},triggerPoper(t,e){"markerOver"===t?(this.popMarkerData=e,this.poperPosition.id=e.id,this.poperPosition.left=e.left+30,this.poperPosition.top=e.top,this.showPoper=!0):this.showPoper=!1,this.$emit(t,e)},getImageSize(t){let e=this;return new Promise(i=>{let n=new Image;t&&(e.loading=!0,n.src=t,n.onload=function(){e.loading=!1,i({width:this.width,height:this.height})})})},toJSONData(t){return this.drawPlugin?this.drawPlugin.toJSONData(t):{}},removeMarker(t){let e=this.markerData.map(t=>JSON.parse(t).id).indexOf(t);-1!==e&&(this.markerData.splice(e,1),this.markerDataCache=[].concat(this.markerData),this.$nextTick(()=>{this.drawPlugin&&this.drawPlugin.removeMarker(t),this.$emit("change",this.toJSONData())}))},fullScreenTrigger(t,e){t.preventDefault(),t.stopPropagation();let i=this.$refs.renderDom;if("exit"===e)return document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),this.isFullScreen=!1,this.$emit("fullScreenChange",this.isFullScreen),void this.$nextTick(()=>{this.centerImgAfterFullScreen(e).then(()=>{this.drawPlugin&&(this.drawPlugin.reloadMarkers(),this.calcAlaramPosition(),this.setPlayerDialog())})});i.requestFullscreen?i.requestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullScreen&&i.webkitRequestFullScreen(),this.isFullScreen=!0,this.$emit("fullScreenChange",this.isFullScreen),this.$nextTick(()=>{this.centerImgAfterFullScreen(e).then(()=>{this.drawPlugin&&(this.drawPlugin.reloadMarkers(),this.setPlayerDialog(),this.calcAlaramPosition())})})},centerImgAfterFullScreen(t){let e=this;return new Promise(i=>{window.onresize=()=>{setTimeout(()=>{let{offsetTop:n,offsetLeft:r,offsetWidth:o,offsetHeight:a}=e.$refs.zoomImg,s={left:e.$refs.zoomImg.parentElement.offsetWidth/2,top:e.$refs.zoomImg.parentElement.offsetHeight/2},l=0,c=0,h={left:r+o/2,top:n+a/2};l=h.left<s.left?r+(s.left-h.left):r-(h.left-s.left),c=h.top<s.top?n+(s.top-h.top):n-(h.top-s.top),e.$refs.zoomImg.style.left=l+"px",e.$refs.zoomImg.style.top=c+"px","exit"===t&&(window.onresize=null),i()},10)}})},reloadMarkers(){this.$nextTick(()=>{this.drawPlugin&&this.drawPlugin.reloadMarkers()})},playerStart(){this.devicePlayerConfig.deviceItem.rtspUrl=this.lsRtspurl,this.isPlaying=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.qzPlayer.play()},200)})},setMarkerHighligh(t){if(t)for(let e=0;e<this.markerData.length;e++){let i=JSON.parse(this.markerData[e]);i.id===t&&(i.highlight=!0),this.$set(this.markerData,e,JSON.stringify(i))}else this.markerData=this.markerData.map(t=>{let e=JSON.parse(t);return e.highlight=!1,JSON.stringify(e)});this.markerDataCache=[].concat(this.markerData)},setFitView(t){if(t)this.drawPlugin.setFitView(t);else if(0!==this.alarmList.length){let t=this.alarmList[0].objectId;this.drawPlugin.setFitView(t)}},formateDeviceStatus(t){let e=JSON.parse(t),i={status:"",text:""};return 0===e.status?2===e.onlineStatus?i={status:"online",text:"在线",markerImg:d}:3===e.onlineStatus&&(i={status:"offline",text:"离线",markerImg:m}):i=1===e.status?{status:"disabled",text:"禁用",markerImg:f}:{status:"disabled",text:"无效",markerImg:f},i},formateScreenSize(){const t=this.$refs.imgControlLayout.parentElement.parentElement;let e={offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight};e.offsetWidth,e.offsetHeight,this.renderWidth=e.offsetWidth,this.renderHeight=e.offsetHeight},switchAlarmDevice(){0!==this.alarmList.length&&(this.alarmList[this.currentAlarm]&&this.drawPlugin.setFitView(this.alarmList[this.currentAlarm].objectId),this.currentAlarm+1<this.alarmList.length?this.currentAlarm++:this.currentAlarm+1===this.alarmList.length&&(this.currentAlarm=0))}},created(){this.renderImgId="zoom-img_"+this._uid},mounted(){this.loading=!0,this.formateScreenSize(),document.addEventListener("fullscreenchange",()=>{null!==document.fullscre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Nzc3Orra3tk4GBgZ/k6OHIBknRGwDC+1cusNVqzbdYLFWRcPr6+ibb29uDcnVw5K8QAfJAt8cRFMPDw8VGozEcIwjb4XAETCaTWF/PZ9afCSFgt9uLTSaTYgTiuoW6urqOdHd3P67kForbQ9zY2JgzODhYnZqaSpU6xR7iuLhRnU6XPTIyUp2dnZ2ptBuVHcgKCwvTPR5POK9XOpA9BOAM3+Me7Trl9TMzMyePHTsWzocUTCUGyQvRfh2Umsx5vd7HtFotFXmZoXAyd4ZNp00AisXehfHx8QqdTkd3kBkKp9MUU4ZZAicAPC2GgN1uP2oymcI51E040HwI4AJLQNSR0mKx5FqtVio7MmMvHCnJDkGHeoPBcNDpdJ5MS0ujgxD2yqGebNn3ZRUisa8LW+yWlnTAF+MAZKxlDvJc+Ui1UaqSvXYTGhp8vKj699bOrk208jp1ZVr4EBW+PhSpWxOrwbEXujPsbxS1S8PXYtoLXZqo3Rlix0eA1lC3hupGSjc8qKFBvYBdXRm+hzjS1qauzfMKNj6okfH+zm5MJMOE3AGu3L5tdHNJ7OtXDbhEKAGkVJrOAjSlvOxBL3nQ/E7Jlz0ibUVK7Ki6Rw0LIa/bXARABa6/5caS/wCwkfkOnFI6EgAAAABJRU5ErkJggg==";function w(t,e,i,n,r,o,a,s,l,c){"boolean"!==typeof a&&(l=s,s=a,a=!1);const h="function"===typeof i?i.options:i;let p;if(t&&t.render&&(h.render=t.render,h.staticRenderFns=t.staticRenderFns,h._compiled=!0,r&&(h.functional=!0)),n&&(h._scopeId=n),o?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},h._ssrRegister=p):e&&(p=a?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),p)if(h.functional){const t=h.render;h.render=function(e,i){return p.call(i),t(e,i)}}else{const t=h.beforeCreate;h.beforeCreate=t?[].concat(t,p):[p]}return i}const v="undefined"!==typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function I(t){return(t,e)=>S(t,e)}let k;const C={};function S(t,e){const i=v?e.media||"default":t,n=C[i]||(C[i]={ids:new Set,styles:[]});if(!n.ids.has(t)){n.ids.add(t);let i=e.source;if(e.map&&(i+="\n/*# sourceURL="+e.map.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",e.media&&n.element.setAttribute("media",e.media),void 0===k&&(k=document.head||document.getElementsByTagName("head")[0]),k.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(i),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{const t=n.ids.size-1,e=document.createTextNode(i),r=n.element.childNodes;r[t]&&n.element.removeChild(r[t]),r.length?n.element.insertBefore(e,r[t]):n.element.appendChild(e)}}}const M=g;var E=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"imgControlLayout",staticClass:"img-control-layout"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"renderDom",staticClass:"render-dom",attrs:{id:"render-dom"}},[i("img",t._b({ref:"zoomImg",staticClass:"zoom-img",attrs:{id:t.renderImgId,alt:""}},"img",{"data-width":t.bgImgWidth,"data-height":t.bgImgHeight},!1)),t._v(" "),i("div",{staticClass:"map-tools",style:{zIndex:t.markerData.length+1,top:""+t.fullScreenAside[0],right:""+t.fullScreenAside[1]}},[t.isFullScreen?i("button",{staticClass:"map-tools-button exit-fullscreen-button",on:{click:function(e){return t.fullScreenTrigger(e,"exit")}}},[i("i",{staticClass:"qz-map-icon button-icon exit-fullscreen"}),t._v(" "),i("span",{staticClass:"el-tooltip__popper is-dark button-tooltip"},[t._v("退出全屏")])]):i("button",{staticClass:"map-tools-button fullscreen-button",on:{click:function(e){return t.fullScreenTrigger(e,"full")}}},[i("i",{staticClass:"qz-map-icon button-icon fullscreen"}),t._v(" "),i("span",{staticClass:"el-tooltip__popper is-dark button-tooltip"},[t._v("全屏")])]),t._v(" "),0!==t.alarmList.length?i("button",{staticClass:"map-tools-button next-alarm-button",on:{click:t.switchAlarmDevice}},[i("i",{staticClass:"qz-map-icon button-icon next-alarm"}),t._v(" "),i("span",{staticClass:"el-tooltip__popper is-dark button-tooltip"},[t._v("查看下一个告警设备")])]):t._e()]),t._v(" "),t._l(t.markerData,(function(e,n){return i("div",{directives:[{name:"show",rawName:"v-show",value:!JSON.parse(e).hidden,expression:"!JSON.parse(markerItem).hidden"}],key:n,ref:"marker"+JSON.parse(e).id,refInFor:!0,staticClass:"zoom-marker",class:{selected:t.selectedId===JSON.parse(e).id},style:{zIndex:n+1,left:JSON.parse(e).x+"px",top:JSON.parse(e).y+"px"},attrs:{id:JSON.parse(e).id}},[JSON.parse(e).highlight?[i("img",{staticClass:"marker-icon",style:{width:t.markerSize.width+"px",height:t.markerSize.height+"px"},attrs:{draggable:"false",src:JSON.parse(e).markerHigLightImg||t.markerHigLightImg}})]:[i("img",{staticClass:"marker-icon",style:{width:t.markerSize.width+"px",height:t.markerSize.height+"px"},attrs:{draggable:"false",src:t.formateDeviceStatus(e).markerImg}})],t._v(" "),t._t("icon",null,{deviceItem:JSON.parse(e)})],2)})),t._v(" "),t._l(t.alarmList,(function(e,n){return t.markerIdList.indexOf(e.objectId)>-1?i("div",{key:Date.now()+n,staticClass:"pic-map-alarm",style:{left:e.left+"px",top:e.top+"px"},attrs:{id:"alarm-"+e.objectId}},[i("div",{staticClass:"alarm-dialog-container"},[t._t("alarmdialog",null,{data:e})],2),t._v(" "),i("div",{staticClass:"pic-map-arrow"})]):t._e()})),t._v(" "),void 0,t._v(" "),t.showPoper&&t.$slots.popover?i("div",{staticClass:"poper-dialog",style:{left:t.poperPosition.left+"px",top:t.poperPosition.top+"px"}},[t.$slots.popover?[t._t("popover",null,{data:t.popMarkerData})]:t._e()],2):t._e(),t._v(" "),t.showPlayer&&t.showPlayerDialog?i("div",{ref:"playerDialog",staticClass:"player-dialog"},[t.playerSlot?[t._t("player",null,{data:{devicePlayerConfig:t.devicePlayerConfig,marker:t.currentMarkerPos}})]:[i("div",{staticClass:"player-block",class:{"no-play":t.showPlayerDialog}},[t.supportPlay&&t.showPlayerDialog?i("qz-player",{ref:"qzPlayer",staticClass:"player-plugin",attrs:{type:"live",playerServer:t.devicePlayerConfig.playerServer,pluginUrl:t.devicePlayerConfig.pluginUrl,basicConfig:t.devicePlayerConfig.basicConfig,devices:t.playerDevices}}):i("div",{staticClass:"empty-video"},[i("img",{attrs:{src:A,alt:""}}),t._v(" "),i("span",[t._v("暂无视频")])])],1),t._v(" "),i("div",{staticClass:"device-info"},[t.devicePlayerConfig.deviceItem.taskName?i("p",[i("span",{staticClass:"title"},[t._v("布控任务:")]),t._v(" "),i("span",{staticClass:"info"},[t._v(t._s(t.devicePlayerConfig.deviceItem.taskName||"-"))])]):t._e(),t._v(" "),i("p",[i("span",{staticClass:"title"},[t._v("区域名称:")]),t._v(" "),i("span",{staticClass:"info"},[t._v(t._s(t.devicePlayerConfig.deviceItem.areaName))])]),t._v(" "),t.devicePlayerConfig.deviceItem.edgeName?i("p",[i("span",{staticClass:"title"},[t._v("边端名称:")]),t._v(" "),i("span",{staticClass:"info"},[t._v(t._s(t.devicePlayerConfig.deviceItem.edgeName||"-"))])]):t._e(),t._v(" "),i("p",[i("span",{staticClass:"title"},[t._v("设备名称:")]),t._v(" "),i("span",{staticClass:"info"},[t._v(t._s(t.devicePlayerConfig.deviceItem.deviceName))])])]),t._v(" "),i("img",{staticClass:"close-icon",attrs:{src:y,alt:""},on:{click:t.closePlayer}})]],2):t._e()],2)])},b=[];const B=function(t){t&&t("data-v-4f0800e6_0",{source:".img-control-layout{position:relative;z-index:0;overflow:hidden;width:100%;height:100%}.img-control-layout .jump-animate .marker-icon{-webkit-animation:jumpIcon .5s cubic-bezier(.165,.84,.44,1) infinite alternate;animation:jumpIcon .5s cubic-bezier(.165,.84,.44,1) infinite alternate;-webkit-animation-delay:-.9s;animation-delay:-.9s}.img-control-layout .render-dom{width:100%;height:100%;background-color:#f7fafc}.img-control-layout .render-dom .set-full-button{position:absolute;right:20px;top:20px;z-index:99999}.img-control-layout .render-dom .zoom-img{position:absolute;left:0;top:0;box-shadow:0 2px 8px 0 rgba(0,0,0,.4)}.img-control-layout .render-dom .zoom-marker{position:absolute;cursor:pointer;border:1px solid transparent}.img-control-layout .render-dom .zoom-marker .marker-icon{cursor:pointer;vertical-align:middle}.img-control-layout .render-dom .zoom-marker.selected{border-color:#5b99ff}.img-control-layout .poper-dialog{position:absolute;z-index:9999;border:1px solid;border-radius:5px;background-color:#7b7b7b;padding:10px 15px;color:#fff;transition:all .3s}.pic-map-alarm{position:absolute;background:#fff;font-size:14px;border:1px solid #ebeef5;box-sizing:border-box}.pic-map-arrow{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;left:50%;transform:translateX(-50%);border-width:6px;bottom:-6px;margin-right:3px;border-top-color:#ebeef5;border-bottom-width:0}.pic-map-arrow::after{content:' ';border-width:6px;bottom:1px;margin-left:-6px;border-top-color:#fff;border-bottom-width:0}.pic-map-alarm,.player-dialog{z-index:998}.player-dialog{position:absolute;background-color:#fff;border:1px solid #dcdfe3;padding:4px;width:320px}.player-dialog .close-icon{position:absolute;right:15px;top:15px;z-index:3;width:16px;height:16px;cursor:pointer}.player-dialog .player-block{position:relative;z-index:2;width:100%;height:180px}.player-dialog .player-block.no-play{background-color:#edeff1}.player-dialog .player-block .rtsp-player{width:100%;height:180px}.player-dialog .player-block .player-control-bar{display:none}.player-dialog .player-block .empty-video{display:flex;flex-flow:column;align-items:center;justify-content:center;width:100%;height:100%;color:#42526e;font-size:14px;font-weight:600}.player-dialog .player-block .empty-video img{width:62px;height:62px}.player-dialog .device-info{padding:16px;font-size:14px}.player-dialog .device-info p{display:flex;line-height:initial;margin:0}.player-dialog .device-info .title{color:#7a869a;flex-shrink:0}.player-dialog .device-info .info{color:#42526e}.player-dialog .play-button{position:absolute;z-index:998;left:50%;top:50%;transform:translate(-50%,-50%)}@keyframes jumpIcon{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{-webkit-transform:translateY(-35px);transform:translateY(-35px)}}",map:void 0,media:void 0})},P=void 0,x=void 0,D=!1,T=w({render:E,staticRenderFns:b},B,M,P,D,x,!1,I,void 0,void 0),O="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAADxUlEQVRIS8WWaUxUVxiG3+/OBgwjlHEZUcGKwYLlh5UCghJrjI1WmwbQpElNjCW4FWKsSRuaVEwsRROXmGgaY/zZutYEqIpojKkhHXTQGBMEBWUbxmiBMg7gLOc0544IdxYuXTLev+c735PvPe977iFM5qvcYQakGQB/B0RGEHTyNg4POHcB1A+wZyg/9qdaO5qw4IedM6Fl74HzWLVG8jrRS3ilh/juSG+4+tDAipIYREV9IE8kPpPRLMWbsnm04UPSaJIBivM35H9xn6+Dhl/dZgNOK5yu1xNSP0ZGmlBxYigQHAwU8kmUCZAesdEJZJn2Oel1KwFoVKb0cbfnGnc8/wUvh/sA7gbjdwJlVgJlmJQDQJISp2UhfsouADGTknOsaAgDg4eY/XkjAAbG/hgPHQPKMuqXicmkZMtaGI3FAvwPYaPlDC7XSdbhqJUnHXH/PirvGLCqbKk4s9eTlf8H2Bh0YLDSPyn149ujt2RfyavCjRpfpjgzKSnx+L+QMZwQQ6zTvl0+U5/mjnCvH7i/7CNhfZqftIP0uo/D7Z5uiEF9XiFuvujGzvs3wCahN3d76vjjzmNyZL45eoPgN0qubP05lpPh3KgjCZeWFCDHPFPG/NzVjG33roOBq2F9rMtRLEeGsQZCZWk6JKRIcyxrYDJuDbe7ZG4GDmYsVyyf6W7Blrv18KlBna6fWJfjEhjaCJVf5UGiBEpN3kNa7eJQwA2zUmEfdqEsZRFW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zF2t0t9CB6ED2IHmR3o3AXy10sd7F2NPHXvJp0TbomPaqm/pr3FZMeRA+iB9GDRLumI5YjliOWI1a0WThiOWI9LBQVRAVRQapUkN9Zofh01Evn/PULW3q/guH7E77I50dnHOv0Xhbr11HIxy0R0ddRjP5+kCesCZdAYAgBggzB6qKzECDILJkUxxACBBmC1UVnIUCQWTIpjiEECDIEq4vOQoAgs2RSHEMIEGQIVhedhQBBZsmkOIYQIMgQrC46CwGCzJJJcQwhQJAhWF10FgIEmSWT4hhCgCBDsLroLAQIMksmxTGEAEGGYHXRWQhcQpD1AZ3eV+811gem1p/eV+/76J2/vv/ea/TOf8Z7uEo+LiNI79N8/jfvTW3/9ue+xXkm/c12TxCCvK/+BCHIw4lQBVFBPmwTVBAVRAXZ6KAJQhCCEGT3JpsjliOWI9aGJgQhCEEIsltJ1wHuYrmL5S7WhioEIQhBCBJVU//d/RWTHkQPogfRg0S7piOWI5YjliNWtFk4YjliPSwUFUQFUUFUEBUkI3AbpUm/WJP+leQZi8CUBKKnqqaMXFAIBAQIEkAypC4BgtTNvcgDAgQJIBlSlwBB6uZe5AEBggSQDKlLgCB1cy/ygABBAkiG1CVAkLq5F3lAgCABJEPqEiBI3dyLPCBAkACSIXUJEKRu7kUeECBIAMmQugQIUjf3Ig8IECSAZEhdAgSpm3uRBwQIEkAypC4BgtTNvcgDAgQJIBlSlwBB6uZe5AEBggSQDKlLgCB1cy/ygABBAkiG1CVAkLq5F3lAgCABJEPqEiBI3dyLPCBAkACSIXUJ/A8iAlH2GCW/6AAAAABJRU5ErkJggg==",W=28,R=28;class Q{constructor(t){l(this,"_icon",{}),this._icon=t||{},this._icon.onlineCamera||(this._icon.onlineCamera=O),this._icon.offlineCamera||(this._icon.offlineCamera=L),this._icon.disabledCamera||(this._icon.disbaledCamera=L),this._icon.onlineGate||(this._icon.onlineGate=F),this._icon.offlineGate||(this._icon.offlineGate=N)}createMarker(t){const{onlineIcon:e,offlineIcon:i,disabledIcon:n}=this.createMarkerIcon(t);return{marker:new AMap.Marker({position:new AMap.LngLat(t.lon,t.lat),title:t.objectName,offset:new AMap.Pixel(-(t.markerWidth||W)/2,-(t.markerHeight||R)/2),icon:this.formateDeviceStatus(t)}),onlineIcon:e,offlineIcon:i,disabledIcon:n}}createMarkerIcon(t){let e,i,n;return e="gate"===t.objectType?this._icon.onlineGate:t.onlineIcon||this._icon.onlineCamera,i="gate"===t.objectType?this._icon.offlineGate:t.offlineIcon||this._icon.offlineCamera,n="gate"===t.objectType?this._icon.offlineGate:t.disabledIcon||this._icon.disabledCamera,{onlineIcon:new AMap.Icon({size:new AMap.Size(t.markerWidth||W,t.markerHeight||R),image:e,imageSize:new AMap.Size(t.markerWidth||W,t.markerHeight||R)}),offlineIcon:new AMap.Icon({size:new AMap.Size(t.markerWidth||W,t.markerHeight||R),image:i,imageSize:new AMap.Size(t.markerWidth||W,t.markerHeight||R)}),disabledIcon:new AMap.Icon({size:new AMap.Size(t.markerWidth||W,t.markerHeight||R),image:n,imageSize:new AMap.Size(t.markerWidth||W,t.markerHeight||R)})}}formateDeviceStatus(t){return 0!==t.status?(t.status,L):2===t.onlineStatus?O:3===t.onlineStatus?L:void 0}}const U="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAJKADAAQAAAABAAAAJAAAAAAJxsHGAAADV0lEQVRYCe1XS0hUURj+zmiOqYi0yIo2JQajQrZoH1FEuI3ATI0emwwqgoih6PZgjDYlVJsiEhIxItpIUJt2tcsgZxZmbSxzEyJpjuac/v8O49x7z2PujLrzwL3nnP/xfd899/z3Aaw3+woIu1vjdUZrsCgOIiPbyNsEKeup54PbFISYoj6JiBjGBvkOTvMf1xPyFF6QM7oFC7gOiZMkoiIUvhALEHiKCtwgYb/C5IQTFP9yERncIsDqMKCamFlEcA2Jlnsan89kF+TIcqRTjyAzZ3xZpU5E5DGisbNwxD8TRLnJ4drTqSckptsaU4yTLyyd4tt9wpQWMTkQT55eVTE5Ir5AxjY0/S2LJ7dSFY0DcqMhb4Vm8ZeqsAGJpskgkH6FMvLS2olhCXShLkdQDqgog80Zq8V8+ieZS62oIKJpPovK6DY4jTPeAHVTpxf3hxWzvbYcdw/XY9/OrPb332Zx+c0UJmaMReTlrkaW67XXqAoCDngDTGMW8/l8AzZV5SHaW+twaFcNdveNhxXFXD5Bmj0k95pEeO28Ml4xOR/b2BeuqVyqIInNYcByt0kXa/P54jVcqiAhQwnyAZc60XCpgmB+rHt5eQObms3nz1G5NIIw4U/Sz7iafs+p1cQ29oVsCpdO0IcwYFzaXE2DI9OYnFl0Dx4XUWFMo3Dla3ZZhXhFT9JTy1PLgEUdG/phiSjkYi5/U1coGntLz296j61xYw7mCjRVEH+riMjNQNzqT5lD812kCmLq1tgAveY+rr6KHCJhuxy5eb7XCzoqliikkw5zbecxih0xZieyHEquXhCH3Wn+St8s55SMlRoEelxsA45ZECckmp+RqF5DbvFmxupt6bclqt9DwWgpBeKpAfqcbQ+6ipqLyCASsQ76b5O2PPsKcSYDRGNd1A/ZgKw+zs1iWMW4dFYgr/OFLMOnZD/9JHZ4zQXHQgxgT1O3aRMH8wuvUC6DqyLa1EVL1pczFe4plnMMFaXLL7yHdFlXRrn67tMrpkznJtH82LhA1fRA7zdbSxPEePFkG2305/SvX+eDF5imJ/1x+sUZ9tlDTkoXxARXxxqwtPCS9lWryyfECMoqjuB2Y8nvwpUJYhXO90rMzz10BVVW9cDZMe+O109rtAL/AUvA7qP2DtrOAAAAAElFTkSuQmCC",Y=36;class j{constructor(t){l(this,"_icon",{}),this._icon=t||{},this._icon.location||(this._icon.location=U)}createLocation(t){const e=this.createLocationIcon(t);return new AMap.Marker({position:new AMap.LngLat(t.lon,t.lat),title:t.objectName,offset:new AMap.Pixel(-Y/2,-Y),icon:e})}createLocationIcon(t){let e;return e=t.icon?icon:this._icon.location,new AMap.Icon({size:new AMap.Size(Y,Y),image:e,imageSize:new AMap.Size(Y,Y)})}}class z{constructor(t,e,i){l(this,"_map",void 0),l(this,"_alarmConfig",void 0),l(this,"_mapInfoWindow",void 0),l(this,"_mapAlarmIds",void 0),this._map=t,this._alarmConfig=e,this._mapInfoWindow=i,this._mapAlarmIds={}}showAlarmMsg(t,e,i){let n;this._alarmConfig.bounceIconOnAlarm&&e.marker&&e.marker.setAnimation("AMAP_ANIMATION_BOUNCE"),this._alarmConfig.showAlarmOnMap&&(n=this.openAlarmInfoWindow(e,t),this._mapInfoWindow.openedPointObjectId!==e.objectId&&-1===Object.keys(this._mapAlarmIds).indexOf(t.objectId)&&(this._map.add(n),this._mapAlarmIds[t.objectId]=n,this.setSwitchDeviceButtonText()));const r=()=>{this._alarmConfig.showAlarmOnMap&&(this._mapInfoWindow.openedPointObjectId!==e.objectId&&(this._map.remove(n),delete this._mapAlarmIds[t.objectId],this.setSwitchDeviceButtonText()),this.cancelAlarm(e),i(t,e))};return 0!==t.autoCloseTime&&setTimeout(r,t.autoCloseTime||1e4),n.on("remove",()=>{}),n}cancelAlarm(t){this._alarmConfig.bounceIconOnAlarm&&t.marker.setAnimation("AMAP_ANIMATION_NONE")}openAlarmInfoWindow(t,e){let{alarmWindow:i,closeButton:n,content:r}=this.createBasicAlarmWindow(e);this._alarmConfig.customAlarmInfoWindow?r.appendChild(this._alarmConfig.customAlarmInfoWindow({...t,marker:void 0,onlineIcon:void 0,offlineIcon:void 0,markerClickEvent:void 0},e)):r.appendChild(this.createAlarmInfoContent(e));const o=document.createElement("div");o.style.position="absolute",document.body.appendChild(o),o.appendChild(i),o.removeChild(i),document.body.removeChild(o);const a=new AMap.Marker({position:new AMap.LngLat(t.lon,t.lat),offset:new AMap.Pixel(-(e.dialogWidth||200)/2,-(e.dialogHeight||200)-80),content:i}),s=()=>{this._mapInfoWindow.openedPointObjectId!==t.objectId&&(this._map.remove(a),delete this._mapAlarmIds[e.objectId],this.setSwitchDeviceButtonText()),this.cancelAlarm(t)};return n.addEventListener("click",s),a}createBasicAlarmWindow(t){const e=document.createElement("div");e.classList.add("map-alarm-info-window"),e.style.width=t.dialogWidth+"px",e.style.height=t.dialogHeight+"px";const i=document.createElement("div");if(i.classList.add("map-alarm-info-close"),i.classList.add("qz-map-icon"),i.classList.add("close"),e.appendChild(i),t.title){const i=document.createElement("div");i.classList.add("map-alarm-info-title"),i.innerText=t.title,e.appendChild(i)}const n=document.createElement("div");return n.classList.add("map-alarm-info-content"),e.appendChild(n),{alarmWindow:e,closeButton:i,content:n}}createAlarmInfoContent(t){const e=document.createElement("div");return e.innerHTML=t.text,e}setSwitchDeviceButtonText(){let t=document.querySelector(".next-alarm-button");return t&&(0===Object.keys(this._mapAlarmIds).length?t.style.display="none":t.style.display="block",t.querySelector(".button-tooltip").innerText=`查看下一个告警设备(${Object.keys(this._mapAlarmIds).length})`),new Promise(t=>{t(this._mapAlarmIds)})}}var J={name:"PlayerVat",props:{url:{type:String},pointInfo:{type:Object},supportPlay:{type:Boolean,default:!0},pluginUrl:{type:String}},components:{QzPlayer:s()},data(){return{isPluginLoaded:!1,loading:null,devicePlayerConfig:{devices:[],basicConfig:{autoPlay:!1},playerServer:this.playerServer,pluginUrl:this.pluginUrl},isPlaying:!1}},methods:{pluginOnLoad(){this.isPluginLoaded=!0},onStreamStatus(t,e){2===e?this.loading=!1:null===this.loading&&(this.loading=!0)},closeStream(){this.$refs.qzPlayer&&this.$refs.qzPlayer.stop()},playerStart(){this.devicePlayerConfig.deviceItem.rtspUrl=this.pointInfo.rtspUrl,this.isPlaying=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.qzPlayer.play()},200)})}},created(){this.devicePlayerConfig.playerServer=this.pointInfo.data.playerServer,this.devicePlayerConfig.devices=[].concat({rtspUrl:this.pointInfo.data.rtspUrl,dcs:this.pointInfo.data.dcs,areaName:this.pointInfo.data.areaName,deviceName:this.pointInfo.data.deviceName})},mounted(){},render(t){return t("div",{class:{"player-ctnr":!0},style:{position:"relative"}},[t("div",{class:"el-loading-mask",style:{position:"absolute",backgroundColor:"#101010",zIndex:"900",display:this.isPluginLoaded&&this.loading?"":"none"}},[t("div",{class:"el-loading-spinner",domProps:{innerHTML:'<svg viewBox="25 25 50 50" class="circular"><circle cx="50" cy="50" r="20" fill="none" class="path"></circle></svg>'}})]),(()=>{if(this.supportPlay)return t("qz-player",{ref:"qzPlayer",props:{type:"live",basicConfig:this.devicePlayerConfig.basicConfig,pluginUrl:this.devicePlayerConfig.pluginUrl,playerServer:this.devicePlayerConfig.playerServer,devices:this.devicePlayerConfig.devices}})})()])}};class G{constructor(t,e){l(this,"_map",void 0),l(this,"_infoWindowConfig",void 0),l(this,"_livePlayerInstance",void 0),l(this,"openedPointObjectId",null),l(this,"infoWindow",null),this._map=t,this._infoWindowConfig=e}openInfoWindow(t,e){if("mouseover"==e.trigger)return void this.openMouseoverWindow(t,e);let i,{infoWindowNode:n,content:r}=this.createBasicInfoWindow(t,e);i=e.infoWindowConfig&&e.infoWindowConfig.anchor&&"top-center"==e.infoWindowConfig.anchor?new AMap.Pixel(0,12):new AMap.Pixel(0,-22),this.infoWindow=new AMap.InfoWindow({...e.infoWindowConfig,content:n,position:[t.lon,t.lat],offset:i,retainWhenClose:!0,isCustom:!0}),this.infoWindow.on("close",t=>{this.openedPointObjectId=null,this.closeStream()}),this.infoWindow.open(this._map),this.openedPointObjectId=t.objectId}createBasicInfoWindow(t,e){const i=document.createElement("div");i.classList.add("map-info-window");const n=document.createElement("div");let r=null;if(t&&t.data&&t.data.rtspUrl&&(r=document.createElement("div"),r.classList.add("map-info-content"),r.appendChild(this.createInfoWindowContent(t.data.rtspUrl,t,e))),!r){r=document.createElement("div"),r.classList.add("map-info-no-play"),r.classList.add("empty-video");const t=document.createElement("img");t.src=A;const e=document.createElement("span");e.innerText="暂无视频",r.appendChild(t),r.appendChild(e)}let o=null;if(t&&t.data&&(t.data.deviceName||t.data.areaName)){if(o=document.createElement("div"),o.classList.add("map-info-device"),t.style&&0!==Object.keys(t.style).length&&(o.style={...o.style,...t.style}),t.data.hasOwnProperty("taskName")){let e,i,n=document.createElement("p");n.classList.add("map-task-name"),e=document.createElement("span"),e.classList.add("title"),e.innerText="布控任务:",i=document.createElement("span"),i.classList.add("info"),i.innerText=t.data.taskName||"-",n.appendChild(e),n.appendChild(i),o.appendChild(n)}let e,i,n=document.createElement("p");if(n.classList.add("map-area-name"),e=document.createElement("span"),e.classList.add("title"),e.innerText="区域名称:",i=document.createElement("span"),i.classList.add("info"),i.innerText=t.data.areaName,n.appendChild(e),n.appendChild(i),o.appendChild(n),t.data.hasOwnProperty("edgeName")){let e,i,n=document.createElement("p");n.classList.add("map-edge-name"),e=document.createElement("span"),e.classList.add("title"),e.innerText="边端名称:",i=document.createElement("span"),i.classList.add("info"),i.innerText=t.data.edgeName||"-",n.appendChild(e),n.appendChild(i),o.appendChild(n)}let r=document.createElement("p");r.classList.add("map-device-name"),e=document.createElement("span"),e.classList.add("title"),e.innerText="设备名称:",i=document.createElement("span"),i.classList.add("info"),i.innerText=t.data.deviceName,r.appendChild(e),r.appendChild(i),o.appendChild(r)}const a=document.createElement("img");return a.classList.add("map-info-close"),a.src=y,a.addEventListener("click",()=>{this._map.clearInfoWindow()}),this._infoWindowConfig.customMarkerInfoWindow?i.appendChild(this._infoWindowConfig.customMarkerInfoWindow(t,()=>{this._map.clearInfoWindow()})):(n.classList.add("map-info-content"),r&&i.appendChild(r),o&&i.appendChild(o),i.appendChild(a)),{infoWindowNode:i,content:n}}createInfoWindowContent(t,e,i){return this.createLivePlayer(t,e,i)}createLivePlayer(t,e,i){const r=n["default"].extend(J),o=new r({el:document.createElement("div"),propsData:{url:t,pointInfo:e,supportPlay:!i.customMarkerInfoWindow,pluginUrl:i.playerPluginUrl},methods:{closeInfoWindow(){this._map.clearInfoWindow()}}});return this._livePlayerInstance=o,o.$el}closeStream(){this._livePlayerInstance&&this._livePlayerInstance.closeStream(0),this._livePlayerInstance=null}openMouseoverWindow(t,e){let{infoWindowNode:i,content:n}=this.createMouseoverWindow(t,e);this.infoWindow=new AMap.InfoWindow({...e.infoWindowConfig,content:i,position:[t.lon,t.lat],offset:new AMap.Pixel(0,-20),retainWhenClose:!0,isCustom:!0}),this.infoWindow.on("close",t=>{this.openedPointObjectId=null}),this.infoWindow.open(this._map),this.openedPointObjectId=t.objectId}createMouseoverWindow(t,e){const i=document.createElement("div");i.classList.add("map-mouseover-window");const n=document.createElement("div");return this._infoWindowConfig.customMouseoverMarkerInfoWindow&&i.appendChild(this._infoWindowConfig.customMouseoverMarkerInfoWindow(t,()=>{this._map.clearInfoWindow()})),{infoWindowNode:i,content:n}}}class H{constructor(t,e,i){l(this,"parnetClass",void 0),l(this,"_map",void 0),l(this,"_infoWindowConfig",void 0),l(this,"_livePlayerInstance",void 0),l(this,"inRingPoints",[]),l(this,"openedPointObjectId",null),this.parnetClass=t,this._map=t.map,this.inRingPoints=e,this._infoWindowConfig=i}openInfoWindow(t,e,i,n){let{infoWindowNode:r,content:o}=this.createBasicInfoWindow(t,e,i,n);const a=new AMap.InfoWindow({...n.infoWindowConfig,content:r,position:[t.lon,t.lat],offset:new AMap.Pixel(22,0),retainWhenClose:!0,isCustom:!0,anchor:"middle-left"});a.open(this._map),this.openedPointObjectId=t.objectId}createBasicInfoWindow(t,e,i,n){const r=document.createElement("div");r.classList.add("clusterer-info-window");const o=document.createElement("div"),a=document.createElement("img");a.classList.add("map-info-close"),a.src=y,a.addEventListener("click",()=>{this._map.clearInfoWindow()});let s=[];return i.map(t=>{let i=e.find(e=>t.lng===e.lon&&t.lat===e.lat);i&&s.push(i)}),this._infoWindowConfig.customClustererInfoWindow?r.appendChild(this._infoWindowConfig.customClustererInfoWindow(t,s,()=>{this.parnetClass.clearInfoWindow()},()=>{this.parnetClass.openInfoWindowByHand(t)})):(o.classList.add("map-info-content"),r.appendChild(a)),{infoWindowNode:r,content:o}}}const q="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACt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qTdN0aKVdQwBJe4c01mdVeDUIO8WSJDzulag9lkaGkgWQDDVLR6lxt6VQDsdXJ9CvdNSSBQ0BJAtd0lhj+yzesW07tVPsGZhas+lmjeWkXkoASX2L9BdYrPD+TIi6/eViz6Yr9FeTbkUBJN39MVZdhAPpfgcfl3kd9EtjxaRYWABJcXNMl2a5vBsxKv2clLKWGddTDtO9Ev3VdC1p1RdA0tqZhOo6fDYP2r4N45hwRI4wxGe8ngP+wj7u8Dro+YTKSO0wAkhqWyOFpcGB/wc4UP0jVHdpzwAAAABJRU5ErkJggg==",K=20;class X{constructor(t,e){l(this,"_map",{}),l(this,"_icon",{}),this._map=t,this._icon=e||{},this._icon.car||(this._icon.car=q),this._icon.person||(this._icon.person=V)}createTrack(t){const e=t.data.sort((t,e)=>t.timestamp-e.timestamp).map(t=>[t.lon,t.lat]),i=new AMap.LngLat(e[0][0],e[0][1]),n=new AMap.Marker({position:i,offset:new AMap.Pixel(-K/2,-K),icon:this.createMarkerIcon(t.trackType)}),r=new AMap.Polyline({strokeColor:t.strokeColor,strokeWeight:t.strokeWidth,strokeStyle:t.strokeStyle,strokeDasharray:t.strokeDasharray,path:JSON.parse(JSON.stringify(e)),extData:t.objectId});return{trackPloyline:r,lineArr:e,marker:n,startPosition:i}}createMarkerIcon(t){return t=t||"person",new AMap.Icon({size:new AMap.Size(K,K),image:this._icon[t],imageSize:new AMap.Size(K,K)})}}class Z{constructor(t,e){l(this,"_map",void 0),l(this,"_popupConfig",void 0),this._map=t,this._popupConfig=e}showPopup(t){if(!this._popupConfig.customPopup)return this.removePopup(t.popup),void delete t.popup;const e=this._popupConfig.customPopup(t);if(!e)return this.removePopup(t.popup),void delete t.popup;const i=t.anchor||"right";let{popup:n,content:r}=this.createBasicPopup(i);r.appendChild(e);const o=document.createElement("div");o.style.position="absolute",document.body.appendChild(o),o.appendChild(n);const a=n.offsetHeight,s=n.offsetWidth;o.removeChild(n),document.body.removeChild(o);const l=this.getPopupOffset(i,a,s),c=new AMap.Marker({position:new AMap.LngLat(t.lon,t.lat),offset:l,content:n});return this._map.add(c),c}removePopup(t){t&&this._map.remove(t)}createBasicPopup(t){const e=document.createElement("div");e.classList.add("map-popup-window"),e.classList.add(t);const i=document.createElement("div");return i.classList.add("map-popup-content"),e.appendChild(i),{popup:e,content:i}}getPopupOffset(t,e,i){let n,r;switch(t){case"left":n=-i-Y/2-12,r=-e/2-Y/2;break;case"right":n=Y/2+12,r=-e/2-Y/2;break;case"top":r=-e-16-Y,n=-i/2;break;case"bottom":r=16,n=-i/2;break}return new AMap.Pixel(n,r)}}class _{constructor(t,e,i="全屏",n="退出全屏",r=["20px","20px"]){l(this,"container",void 0),l(this,"parentElement",void 0),l(this,"fullscreenText",void 0),l(this,"exitFullscreenText",void 0),l(this,"fullScreenAside",void 0),l(this,"isFullScreen",void 0),l(this,"fullscreenButton",void 0),l(this,"buttonIcon",void 0),l(this,"tooltip",void 0),this.container=t,this.parentElement=e,this.fullscreenText=i,this.exitFullscreenText=n,this.fullScreenAside=r,this.isFullScreen=!1,this.init()}init(){this.fullscreenButton=document.createElement("button"),this.fullscreenButton.classList.add("map-tools-button"),this.fullscreenButton.classList.add("fullscreen-button"),this.buttonIcon=document.createElement("i"),this.buttonIcon.classList.add("qz-map-icon"),this.buttonIcon.classList.add("fullscreen"),this.buttonIcon.classList.add("button-icon"),this.fullscreenButton.appendChild(this.buttonIcon),this.tooltip=document.createElement("span"),this.tooltip.classList.add("el-tooltip__popper"),this.tooltip.classList.add("is-dark"),this.tooltip.classList.add("button-tooltip"),this.tooltip.innerText=this.fullscreenText,this.fullscreenButton.appendChild(this.tooltip),this.parentElement.appendChild(this.fullscreenButton),this.container.appendChild(this.parentElement),this.fullscreenButton.addEventListener("click",t=>{this.changeFullScreen(t)})}changeFullScreen(t){t.preventDefault(),t.stopPropagation(),this.isFullScreen?(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),this.isFullScreen=!1):(this.container.requestFullscreen?this.container.requestFullscreen():this.container.mozRequestFullScreen?this.container.mozRequestFullScreen():this.container.webkitRequestFullScreen&&this.container.webkitRequestFullScreen(),this.isFullScreen=!0),this.setFullscreenButtonText()}setFullscreenButtonText(){this.isFullScreen?(this.fullscreenButton.classList.remove("fullscreen-button"),this.fullscreenButton.classList.add("exit-fullscreen-button"),this.tooltip.innerText=this.exitFullscreenText,this.buttonIcon.classList.remove("fullscreen"),this.buttonIcon.classList.add("exit-fullscreen")):(this.fullscreenButton.classList.add("fullscreen-button"),this.fullscreenButton.classList.remove("exit-fullscreen-button"),this.tooltip.innerText=this.fullscreenText,this.buttonIcon.classList.add("fullscreen"),this.buttonIcon.classList.remove("exit-fullscreen"))}fullscreenListener(t){this.setFullscreenButtonText()}}const $="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAADZ0lEQVRYR82YW0hUQRjH/3POqqumZmuYIXmp0BRJNOklb7VZUKAgRQTae5enLngJKsiSrKcu7ylEFIJCD2FbmfUSlhiiKZWXkExy23Y33XU950ycPbvH3dWVs+4Ss4+z3/znd77vm2++GYL1/PaeS0SCIQWiMxkgGwCiB6DzSAkAdQL0L3i9BXbzHN7ftYW6DNE84dgTHpaBDEC3DRJN0DxPNuSIHRC+I7loCk+Pi1rmagEjMDZkQeR2gpBoLaJBbSh1gZe+wNQ6AYCupbU2WNWFeAgxxQCS/ERik/RILShBvKEAutgs8FFbABKn2NAFiEs/ITgmMG8ewuxQPxxWZwCEFbrFj+i5PR8MLjjYgaZUUBQBxJs7QHJmGtIKaxGbWObJKw0OpE44bH2YGeyEZXJmeQIVQDCAlzdmVxNZHaziUjrAF4LjlP85fRRyjCcRt6naD1QDlh/Iwu9ujJkeQXIuuccliQLiIHpvTQdKrQSTPSXSEhUqITUZ2ZWN0MXkhsQRzFhYHMX465uwz1pUOJ70B3rOH8ydU9FymJTwbc7NQPqeK+D4lIhAeUUkcQ7TH67h1+iUJy8F6Fx9vjnnC0awv7lUTXTZUzsO3ok4lC/c1xfnVc8BVrxqeevdrctgxoZsSHy+mlMFNS0RC99aYR3qalZzjhOHYWodl80VMLl4zg0a1Tq16+gpxBlqIxq+YGIL5k58fvZQqTTUhZRCk1yEFTBfb8klIbvs/vp3X6ifQwWM951RS4nHax6wyxXqMZNXcxaxSVWhyodl77D2YKTrnpJGxA7T9V4C+UCOTyx3D8oVPa+6XXvxDAvHZzJ1YqS7Xj0h5m1vCIxXsyEtKUmfua8Uhu0XI7VcSDrmb22YfCfvSoCLGiaobCgG4be6B/KrT0O/8XBIgpEydv55juHuB8omEH8QVDaWg3CJ7oHdJ9qgi8mJ1Foh6QiLY/j0WIkWlWwElU2H1DJRVNcBwvl3EiGph2FMJSsGOuoUMOqSwY6AEM49UFTfCUKiwpBf/1RKlzDQrtROSiWmwVgNJbPJz2q5YLbAMnskydvTyOIh7gbzaRKZanuYbRQDvSZf15horZWDhNHLiIzG6PVN8RuTF15vb8DkE4EXjslHFS8ck89Qyy0fgw93vv0og0+dK9vl//A4/A+eYQ1Pmlb+ZwAAAABJRU5ErkJggg==";class tt{constructor(t,e,i,n){l(this,"map",null),l(this,"mouseTool",null),l(this,"isLoaded",!1),l(this,"isPluginLoaded",!1),l(this,"container",void 0),l(this,"currentMarker",void 0),l(this,"drawOverlays",[]),l(this,"isMapDraw",!1),l(this,"markerStore",{}),l(this,"trackPloylineStore",{}),l(this,"locationStore",{}),l(this,"mapMarker",void 0),l(this,"mapMarkerData",[]),l(this,"mapLocation",void 0),l(this,"mapPopup",void 0),l(this,"mapInfoWindow",void 0),l(this,"mapAlarm",void 0),l(this,"mapTrack",void 0),l(this,"fullscreenListener",void 0),l(this,"normalConfig",void 0),l(this,"AMap",void 0);const r=n||{};this.currentMarker=0,this.loadScriptApi(t,e,i,r)}loadScriptApi(t,e,i,n){const r="__callback_"+(new Date).getTime(),o="AMap.MouseTool,AMap.MarkerClusterer,AMap.RectangleEditor,AMap.Geocoder",a=`https://webapi.amap.com/maps?v=1.4.15&key=${t}&plugin=${o}&callback=${r}`,s=document.createElement("script");s.charset="utf-8",s.src=a,document.head.appendChild(s),window[r]=()=>{window[r]=void 0,this.onLoad(e,i,n)}}onLoad(t,e,i){this.isLoaded=!0,this.AMap=AMap,this.normalConfig=i,this.normalConfig.AMapMarkerList||(this.normalConfig.AMapMarkerList=[]),"string"===typeof t&&(t=document.querySelector("#"+t)),this.container=t;let n=document.createElement("div");n.classList.add("map-container"),t.appendChild(n),this.map=new AMap.Map(n,e),this.mouseTool=new AMap.MouseTool(this.map),AMap.plugin(["AMap.Geocoder"],()=>{this.isPluginLoaded=!0,i.pluginLoaded&&i.pluginLoaded()}),i.mapClick&&this.map.on("click",t=>{let e=new AMap.LngLat(t.lnglat.getLng(),t.lnglat.getLat());this.map.plugin(["AMap.Geocoder"],(function(){let n=new AMap.Geocoder({extensions:"all"});AMap.event.addListener(n,"complete",e=>{let n={lnglatXY:[t.lnglat.getLng(),t.lnglat.getLat()]};if("NO_DATA"!==e.info){const{addressComponent:t,formattedAddress:i}=e.regeocode;n.addressComponent=t,n.formattedAddress=i}i.mapClick(n)}),n.getAddress(e)}))}),this.mapMarker=new Q(i.markerIcon),this.mapLocation=new j(i.locationIcon),this.mapPopup=new Z(this.map,{customPopup:i.customLocationPopup}),this.mapInfoWindow=new G(this.map,{customMarkerInfoWindow:i.customMarkerInfoWindow,infoWindowConfig:i.infoWindowConfig||{}}),this.mouseoverInfoWindow=new G(this.map,{customMouseoverMarkerInfoWindow:i.customMouseoverMarkerInfoWindow,infoWindowConfig:i.infoWindowConfig||{}}),this.mapAlarm=new z(this.map,{showAlarmOnMap:void 0===i.showAlarmOnMap||i.showAlarmOnMap,bounceIconOnAlarm:void 0===i.bounceIconOnAlarm||i.bounceIconOnAlarm,customAlarmInfoWindow:i.customAlarmInfoWindow},this.mapInfoWindow),this.mapTrack=new X(this.map,i.trackIcon),i.limitBounds&&this.setLimitBounds(i.limitBounds.sw,i.limitBounds.ne);const r=document.createElement("div");r.classList.add("map-tools"),r.style.top=i.fullScreenAside&&i.fullScreenAside[0]||"20px",r.style.right=i.fullScreenAside&&i.fullScreenAside[1]||"20px",t.appendChild(r);const o=this.map;if(!1!==i.showFullscreenButton&&(this.fullscreenListener=new _(t,r,i.fullscreenText,i.exitFullscreenText,i.switchButtonAside),document.addEventListener("fullscreenchange",()=>{null!==document.fullscreenElement?this.fullscreenListener.isFullScreen=!0:this.fullscreenListener.isFullScreen=!1,this.fullscreenListener.setFullscreenButtonText()})),!1!==i.showSwitchAlarmButton){const t=document.createElement("button");t.classList.add("map-tools-button"),t.classList.add("next-alarm-button");const e=document.createElement("i");e.classList.add("qz-map-icon"),e.classList.add("next-alarm"),e.classList.add("button-icon"),t.appendChild(e);const i=document.createElement("i");i.classList.add("el-tooltip__popper"),i.classList.add("is-dark"),i.classList.add("button-tooltip"),i.innerText="查看下一个告警设备",t.appendChild(i),r.appendChild(t),t.addEventListener("click",()=>{const{_mapAlarmIds:t}=this.mapAlarm,e=Object.keys(t);let i=e[this.currentMarker];try{o&&(t[i]||(this.currentMarker=0,i=Object.keys(t)[this.currentMarker]),this.setFitView(t[i],null,null,this.map.getZoom())),this.currentMarker+1<Object.keys(t).length?this.currentMarker++:this.currentMarker+1===Object.keys(t).length&&(this.currentMarker=0)}catch(n){}})}this.mouseTool.on("draw",t=>{if(!this.isMapDraw)return;this.drawOverlays.push(t.obj);let e=t.obj.getBounds(),i=this.map.getAllOverlays("marker"),n=[];if("AMap.Marker"==t.obj.CLASS_NAME)n.push(t.obj.getPosition());else{let i=e.getSouthWest(),r=e.getNorthEast();if(i.equals(r))return;n=t.obj.getPath()}let r=[];i.map((t,e)=>{let i=t.getPosition(),o=AMap.GeometryUtil.isPointInRing(i,n);o&&r.push(i)}),this.normalConfig.selection(r)}),i.mapLoaded&&i.mapLoaded()}setFitView(t,e,i,n){t?(this.map,this.map.setFitView(t||null,e||null,i||null,n||null)):this.map&&this.map.setFitView()}destroy(){this.map&&this.map.destroy(),this.container.innerHTML=""}addPoints(t=[]){if(!this.isLoaded)return;const e=[];for(let i=0;i<t.length;i++){const n=Object.assign({},t[i]);if(!1!==n.show){const{marker:t,onlineIcon:i,offlineIcon:r,disabledIcon:o}=this.mapMarker.createMarker(n),a=t=>{this.cameraClick(t,n)},s=t=>{this.camerMouseover(t,n)},l=t=>{this.camerMouseout(t,n)};t.on("click",a),t.on("mouseover",s),t.on("mouseout",l),e.push(t),this.markerStore[n.objectId]={...n,marker:t,onlineIcon:i,offlineIcon:r,disabledIcon:o,markerClickEvent:a,markerMouseoverEvent:s,markerMouseoutEvent:l}}}this.map.add(e)}updatePoints(t=[]){if(!this.isLoaded)return;const e=[],i=[],n=t.map(t=>t.objectId),r=Object.keys(this.markerStore);for(let o=0;o<r.length;o++)if(-1===n.indexOf(r[o])){const t=this.markerStore[r[o]];i.push(t.marker),t.marker.off("click",t.markerClickEvent),t.marker.off("mouseover",t.markerMouseoverEvent),t.marker.off("mouseout",t.markerMouseoutEvent),delete this.markerStore[r[o]]}for(let o=0;o<t.length;o++){const n=Object.assign({},t[o]);if(this.markerStore[n.objectId]){const t=this.markerStore[n.objectId];i.push(t.marker),t.marker.off("click",t.markerClickEvent),t.marker.off("mouseover",t.markerMouseoverEvent),t.marker.off("mouseout",t.markerMouseoutEvent),delete this.markerStore[n.objectId]}if(!1!==n.show){const{marker:i,onlineIcon:r,offlineIcon:o,disabledIcon:a}=this.mapMarker.createMarker(n),s=e=>{this.cameraClick(e,n,t),this.setMarkerIndex(e),this.normalConfig.markerClick({e:e,point:n})},l=e=>{this.camerMouseover(e,n,t),this.normalConfig.markerMouseover({e:e,point:n})},c=t=>{this.camerMouseout(t,n)};i.on("click",s),i.on("mouseover",l),i.on("mouseout",c),e.push(i),this.markerStore[n.objectId]={...n,marker:i,onlineIcon:r,offlineIcon:o,disabledIcon:a,markerClickEvent:s,markerMouseoverEvent:l,markerMouseoutEvent:c}}}this.map.add(e),this.mapMarkerData=this.mapMarkerData.concat(e),this.map.remove(i)}removePoints(t=[]){const e=[];for(let i=0;i<t.length;i++){const n=t[i];if(this.markerStore[n]){const t=this.markerStore[n];e.push(t.marker),t.marker.off("click",t.markerClickEvent),t.marker.off("mouseover",t.markerMouseoverEvent),t.marker.off("mouseout",t.markerMouseoutEvent),delete this.markerStore[n]}}this.map.remove(e)}cameraClick(t,e,i=[]){let n=t.target.getIcon(),r=new Image;r.src=n;let o=this;r.onload=function(){const{northeast:n}=t.target.getBounds();var r=new AMap.Circle({center:new AMap.LngLat(n.lng,n.lat),radius:14});let a=[],s=o.map.getAllOverlays().filter(t=>"AMap.Marker"===t.CLASS_NAME);if(s.map(t=>{let e=t,i=e.getPosition(),n=AMap.GeometryUtil.isPointInRing(i,r.getPath());n&&a.push(i)}),a.length>1){let t=new H(o,a,{customClustererInfoWindow:o.normalConfig.customClustererInfoWindow,infoWindowConfig:o.normalConfig.infoWindowConfig||{}});t.openInfoWindow(e,i,a,o.normalConfig)}else!1!==e.infoWindow&&o.mapInfoWindow.openInfoWindow(e,o.normalConfig,o.normalConfig.singleInforWindow)}}camerMouseover(t,e,i=[]){this.normalConfig.customMouseoverMarkerInfoWindow&&this.mouseoverInfoWindow.openInfoWindow(e,{...this.normalConfig,trigger:"mouseover"},this.normalConfig.singleInforWindow)}camerMouseout(t,e,i=[]){this&&this.mouseoverInfoWindow&&this.mouseoverInfoWindow.infoWindow&&this.mouseoverInfoWindow.infoWindow.close()}addTracks(t=[]){if(this.isLoaded)for(let e=0;e<t.length;e++){const i=JSON.parse(JSON.stringify(t[e])),{trackPloyline:n,marker:r,lineArr:o,startPosition:a}=this.mapTrack.createTrack(i),s=t=>{this.trackClick(t,i)};n.on("click",s),n.setMap(this.map),this.trackPloylineStore[i.objectId]={...i,trackPloyline:n,marker:r,lineArr:o,startPosition:a,trackClickEvent:s}}}updateTracks(t=[]){if(!this.isLoaded)return;const e=t.map(t=>t.objectId),i=Object.keys(this.trackPloylineStore);for(let n=0;n<i.length;n++)if(-1===e.indexOf(i[n])){const t=this.trackPloylineStore[i[n]];t.trackPloyline.off("click",t.trackClickEvent),t.trackPloyline.setMap(null),delete this.trackPloylineStore[i[n]]}for(let n=0;n<t.length;n++){const e=JSON.parse(JSON.stringify(t[n]));if(this.trackPloylineStore[e.objectId]){const t=this.trackPloylineStore[e.objectId];t.trackPloyline.off("click",t.trackClickEvent),t.trackPloyline.setMap(null),delete this.trackPloylineStore[e.objectId]}const{trackPloyline:i,marker:r,lineArr:o,startPosition:a}=this.mapTrack.createTrack(e),s=t=>{this.trackClick(t,e)};i.on("click",s),i.setMap(this.map),this.trackPloylineStore[e.objectId]={...e,trackPloyline:i,marker:r,lineArr:o,startPosition:a,trackClickEvent:s}}}removeTracks(t=[]){for(let e=0;e<t.length;e++){const i=t[e];if(this.trackPloylineStore[i]){const t=this.trackPloylineStore[i];t.trackPloyline.off("click",t.trackClickEvent),t.trackPloyline.setMap(null),delete this.trackPloylineStore[i]}}}playTrack(t,e=200,i=0){if(t&&this.trackPloylineStore[t]){const n=this.trackPloylineStore[t];if(this.map.add(n.marker),0===i){n.marker.moveAlong(JSON.parse(JSON.stringify(n.lineArr)),e);const t=()=>{n.marker.stopMove(),this.map.remove(n.marker),n.marker.setPosition(n.startPosition),n.marker.off("movealong",t)};n.marker.on("movealong",t)}else{const t=JSON.parse(JSON.stringify(n.data)).sort((t,e)=>t.timestamp-e.timestamp),i=t[0].timestamp,r=t[t.length-1].timestamp,o=r-i;for(let n=1;n<t.length;n++)t[n].speed=e*o/((t.length-1)*(t[n].timestamp-t[n-1].timestamp))}}}trackClick(t,e){}showAlarm(t=[]){if(0===t.length)this.setSwitchDeviceButtonText();else for(let e=0;e<t.length;e++)this.markerStore[t[e].objectId]&&this.normalConfig.AMapMarkerList.push(this.mapAlarm.showAlarmMsg(t[e],this.markerStore[t[e].objectId],(t,i)=>{this.normalConfig.AMapMarkerList[e]=null,this.setSwitchDeviceButtonText()}))}cancelAlarm(t=[]){for(let e=0;e<t.length;e++)this.mapAlarm.cancelAlarm(this.markerStore[t[e]])}setSwitchDeviceButtonText(){let t=document.querySelector(".next-alarm-button");t&&(0===Object.keys(this.mapAlarm._mapAlarmIds).length?t.style.display="none":t.style.display="block")}addLocations(t=[]){if(!this.isLoaded)return;const e=[];for(let i=0;i<t.length;i++){const n=JSON.parse(JSON.stringify(t[i]));if(!1!==n.show){const t=this.mapLocation.createLocation(n);let i;e.push(t),void 0!==n.msg&&null!==n.msg&&(i=this.showPopup(n)),this.locationStore[n.objectId]={...n,locationMarker:t,popup:i}}}this.map.add(e),this.setFitView()}updateLocations(t=[]){if(!this.isLoaded)return;const e=[],i=[],n=t.map(t=>t.objectId),r=Object.keys(this.locationStore);for(let o=0;o<r.length;o++)if(-1===n.indexOf(r[o])){const t=this.locationStore[r[o]];t.popup&&i.push(t.popup),i.push(t.locationMarker),delete this.locationStore[r[o]]}for(let o=0;o<t.length;o++){const n=Object.assign({},t[o]);if(this.locationStore[n.objectId]){const t=this.locationStore[n.objectId];i.push(t.locationMarker),delete this.locationStore[n.objectId]}if(!1!==n.show){const t=this.mapLocation.createLocation(n);let i;e.push(t),void 0!==n.msg&&null!==n.msg&&(i=this.mapPopup.showPopup(n)),this.locationStore[n.objectId]={...n,locationMarker:t,popup:i}}}this.map.add(e),this.mapMarkerData=this.mapMarkerData.concat(e),this.map.remove(i),this.map.setFitView()}removeLocations(t=[]){const e=[];for(let i=0;i<t.length;i++){const n=t[i];if(this.locationStore[n]){const t=this.locationStore[n];e.push(t.locationMarker),t.popup&&e.push(t.popup),delete this.locationStore[n]}}this.map.remove(e)}bounceLocation(t,e=3e3){this.locationStore[t].locationMarker.setAnimation("AMAP_ANIMATION_BOUNCE"),setTimeout(()=>{this.cancelBounceLocation(t)},e)}cancelBounceLocation(t){this.locationStore[t].locationMarker.setAnimation("AMAP_ANIMATION_NONE")}setLimitBounds(t,e){this.map&&"number"===typeof t[0]&&"number"===typeof t[1]&&"number"===typeof e[0]&&"number"===typeof e[1]&&this.map.setLimitBounds(new AMap.Bounds(new AMap.LngLat(t[0],t[1]),new AMap.LngLat(e[0],e[1])))}clearLimitBounds(){this.map&&this.map.clearLimitBounds()}getLocationByAddress(t){return new Promise((e,i)=>{if(this.isPluginLoaded){const n=new AMap.Geocoder;n.getLocation(t,(t,n)=>{"complete"===t&&n.geocodes.length?e(n.geocodes.map(t=>({lon:t.location.lng,lat:t.location.lat,address:t.formattedAddress,country:t.addressComponent.country,province:t.addressComponent.province,city:t.addressComponent.city,citycode:t.addressComponent.citycode,district:t.addressComponent.district,township:t.addressComponent.township,street:t.addressComponent.street,streetNumber:t.addressComponent.streetNumber,building:t.addressComponent.building,buildingType:t.addressComponent.buildingType}))):i(new Error("getLocationError"))})}else i(new Error("GeocoderUnload"))})}getAddressByLocation(t){return new Promise((e,i)=>{if(this.isPluginLoaded){const n=new AMap.Geocoder;n.getAddress(t,(t,n)=>{if("complete"===t&&n.regeocode){const t=n.regeocode;e({address:t.formattedAddress,country:t.addressComponent.country,province:t.addressComponent.province,city:t.addressComponent.city,citycode:t.addressComponent.citycode,adcode:t.addressComponent.adcode,district:t.addressComponent.district,township:t.addressComponent.township,street:t.addressComponent.street,streetNumber:t.addressComponent.streetNumber,building:t.addressComponent.building,buildingType:t.addressComponent.buildingType})}else i(new Error("getAddressError"))})}else i(new Error("GeocoderUnload"))})}clearInfoWindow(){this.map.clearInfoWindow()}startDraw(t="rectangle"){switch(this.isMapDraw=!0,t){case"polyline":this.mouseTool.polyline({strokeColor:"#F56C6C"});break;case"polygon":this.mouseTool.polygon({fillColor:"rgba(245, 108, 108, 0.2)",strokeColor:"#F56C6C"});break;case"rectangle":this.mouseTool.rectangle({fillColor:"rgba(245, 108, 108, 0.2)",strokeColor:"#F56C6C"});break;case"circle":this.mouseTool.circle({fillColor:"rgba(245, 108, 108, 0.2)",strokeColor:"#F56C6C"});break}}endDraw(){this.mouseTool.close(!1),this.isMapDraw=!1}clearDraw(){this.map.remove(this.drawOverlays),this.drawOverlays=[]}setMapMarkerClusterer(t={}){let e={gridSize:56,maxZoom:16,styles:[{url:$,size:new this.AMap.Size(38,38),textColor:"#ffffff",offset:new this.AMap.Pixel(-19,-19)}],...t},i=new this.AMap.MarkerClusterer(this.map,this.mapMarkerData,e);i.on("click",e=>{t.click&&t.click(e)})}setMarkerIndex(t){let e=this.map.getAllOverlays().filter(t=>"AMap.Marker"===t.CLASS_NAME);e.map(t=>{t.setzIndex(100)}),t.target.setzIndex(101)}openInfoWindowByHand(t){this.mapInfoWindow.openInfoWindow(t,this.normalConfig,this.normalConfig.singleInforWindow)}setMapCenter(t,e,i){try{this.map.setCenter(t,e,i)}catch(n){}}}var et={name:"FcMap",props:{mapKey:{required:!0,type:String},mapInitinalOptions:{required:!0,type:Object},markerIcon:{type:Object},locationIcon:{type:String},trackIcon:{type:Object},limitBounds:{type:Object},showAlarmOnMap:{type:Boolean,default:()=>!0},bounceIconOnAlarm:{type:Boolean,default:()=>!0},customMarkerInfoWindow:{type:Function|Object},customAlarmInfoWindow:{type:Function|Object},customClustererInfoWindow:{type:Function|Object},customMouseoverMarkerInfoWindow:{type:Function|Object},showFullscreenButton:{type:Boolean,default:()=>!0},showSwitchAlarmButton:{type:Boolean,default:()=>!0},fullscreenText:{type:String,default:"全屏"},exitFullscreenText:{type:String,default:"退出全屏"},customLocationPopup:{type:Function|Object},points:{type:Array},alarms:{type:Array},locations:{type:Array},tracks:{type:Array},autoFitView:{type:Boolean,default:()=>!0},fullScreenAside:{type:Array},switchButtonAside:{type:Array},singleInforWindow:{type:Boolean,default:!0},playerPluginUrl:{type:String},infoWindowConfig:{type:Object,default:()=>{}}},data(){return{fcMap:null,isMapLoaded:!1}},methods:{mapLoaded(){this.isMapLoaded=!0,this.$emit("mapLoaded",this.fcMap),this.fcMap.updatePoints(this.points),this.fcMap.updateLocations(this.locations),this.fcMap.showAlarm(this.alarms),this.fcMap.updateTracks(this.tracks),this.autoFitView&&this.setFitView(),this.mapInitinalOptions.clusterer&&this.setMapMarkerClusterer(this.mapInitinalOptions.clustererConfig||{})},pluginLoaded(){this.isMapPluginLoaded=!0,this.$emit("pluginLoaded")},mapClick(t){this.$emit("mapClick",t)},markerClick(t){this.$emit("markerClick",t)},markerMouseover(t){this.$emit("markerMouseover",t)},selection(t){let e=[];t.map(t=>{let i=this.points.filter(e=>t.lat===e.lat&&t.lng===e.lon);if(i.length>0){let t=e.map(t=>t.objectId);i.map(i=>{-1===t.indexOf(i.objectId)&&e.push(i)})}}),this.$emit("selection",e)},setFitView(){this.fcMap&&this.fcMap.setFitView()},cancelAlarm(t){this.fcMap&&this.fcMap.cancelAlarm(t)},bounceLocation(t,e){this.fcMap&&this.fcMap.bounceLocation(t,e)},cancelBounceLocation(t){this.fcMap&&this.fcMap.cancelBounceLocation(t)},playTrack(t,e,i){this.fcMap&&this.fcMap.playTrack(t,e,i)},getLocationByAddress(t){return this.fcMap?this.fcMap.getLocationByAddress(t):Promise.reject(new Error("fcMapIsNull"))},getAddressByLocation(t){return this.fcMap?this.fcMap.getAddressByLocation(t):Promise.reject(new Error("fcMapIsNull"))},destroy(){this.fcMap&&this.fcMap.destroy()},clearInfoWindow(){this.fcMap&&this.fcMap.clearInfoWindow()},startDraw(t){this.fcMap&&this.fcMap.startDraw(t)},endDraw(){this.fcMap&&this.fcMap.endDraw()},clearDraw(){this.fcMap&&this.fcMap.clearDraw()},setMapMarkerClusterer(t){this.fcMap&&this.fcMap.setMapMarkerClusterer(t)},openInfoWindowByHand(t){t&&this.fcMap&&this.fcMap.openInfoWindowByHand(t)},setMapCenter(t,e,i){this.fcMap&&this.fcMap.setMapCenter(t,e,i)}},computed:{customMarkerInfoWindowComputed(){if(this.customMarkerInfoWindow instanceof Object)try{const t=n["default"].extend(this.customMarkerInfoWindow);return function(e,i){return new t({el:document.createElement("div"),propsData:{point:e,clearInfoWindow:i}}).$el}}catch(t){return}return this.customMarkerInfoWindow},customClustererInfoWindowComputed(){if(this.customClustererInfoWindow instanceof Object)try{const t=n["default"].extend(this.customClustererInfoWindow);return function(e,i,n,r){return new t({el:document.createElement("div"),propsData:{point:e,inRingPoints:i,clearInfoWindow:n,openInfoWindowByHand:r}}).$el}}catch(t){return}return this.customClustererInfoWindow},customAlarmInfoWindowComputed(){if(this.customAlarmInfoWindow instanceof Object)try{const t=n["default"].extend(this.customAlarmInfoWindow);return function(e,i){return new t({el:document.createElement("div"),propsData:{point:e,msg:i}}).$el}}catch(t){return}return this.customAlarmInfoWindow},customLocationPopupComputed(){if(this.customLocationPopup instanceof Object)try{const t=n["default"].extend(this.customLocationPopup);return function(e){return new t({el:document.createElement("div"),propsData:{location:e}}).$el}}catch(t){return}return this.customLocationPopup},customMouseoverMarkerInfoWindowComputed(){if(this.customMouseoverMarkerInfoWindow instanceof Object)try{const t=n["default"].extend(this.customMouseoverMarkerInfoWindow);return function(e,i){return new t({el:document.createElement("div"),propsData:{point:e,clearInfoWindow:i}}).$el}}catch(t){return}return this.customMouseoverMarkerInfoWindow}},watch:{points:{immediate:!0,deep:!0,handler(t,e){this.isMapLoaded&&(this.fcMap.updatePoints(this.points),this.$emit("pointsUpdated",this.points))}},locations:{immediate:!0,deep:!0,handler(t,e){this.isMapLoaded&&(this.fcMap.updateLocations(this.locations),this.$emit("locationUpdated",this.locations))}},alarms:{immediate:!0,deep:!0,handler(t,e){this.isMapLoaded&&(this.fcMap.showAlarm(this.alarms),this.$emit("alarmShow",this.alarms))}},tracks:{immediate:!0,deep:!0,handler(t,e){this.isMapLoaded&&(this.fcMap.updateTracks(this.tracks),this.$emit("trackUpdated",this.tracks))}},limitBounds:{immediate:!0,deep:!0,handler(t,e){this.isMapLoaded&&(this.limitBounds?this.fcMap.setLimitBounds(this.limitBounds):this.fcMap.clearLimitBounds(this.limitBounds),this.$emit("limitBoundsChanged",this.limitBounds))}}},mounted(){this.fcMap=new tt(this.mapKey,this.$refs.mapContainer,this.mapInitinalOptions,{mapLoaded:this.mapLoaded,pluginLoaded:this.pluginLoaded,mapClick:this.mapClick,markerClick:this.markerClick,markerMouseover:this.markerMouseover,selection:this.selection,markerIcon:this.markerIcon,fullScreenAside:this.fullScreenAside,switchButtonAside:this.switchButtonAside,locationIcon:this.locationIcon,trackIcon:this.trackIcon,limitBounds:this.limitBounds,playerPluginUrl:this.playerPluginUrl,showAlarmOnMap:this.showAlarmOnMap,bounceIconOnAlarm:this.bounceIconOnAlarm,customMarkerInfoWindow:this.customMarkerInfoWindowComputed,customAlarmInfoWindow:this.customAlarmInfoWindowComputed,customClustererInfoWindow:this.customClustererInfoWindowComputed,customMouseoverMarkerInfoWindow:this.customMouseoverMarkerInfoWindowComputed,showFullscreenButton:this.showFullscreenButton,showSwitchAlarmButton:this.showSwitchAlarmButton,fullscreenText:this.fullscreenText,exitFullscreenText:this.exitFullscreenText,customLocationPopup:this.customLocationPopupComputed,singleInforWindow:this.singleInforWindow,infoWindowConfig:this.infoWindowConfig})},render(t){return t("div",{ref:"mapContainer",class:"fc-map"})}},it=n["default"].extend({name:"CanoeMap",props:{map:{type:String,default:""},service:{required:!0},data:{type:Array,default:()=>[]},mode:{type:String,default:"read"},showAll:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},mapImg:{type:String,default:""},mapId:{type:String},markerImg:{type:String,default:d},markerImgOnline:{type:String},markerImgOffline:{type:String},markerImgDisabled:{type:String},deviceService:{type:String,default:"/cwos-portal"},sysettingService:{type:String,default:"/ninca-common"},addDefaultSelected:{type:Boolean,default:!1},rate:{type:Number,default:.2},limit:{type:Array,default:()=>[.2,2]},deviationX:{type:Number,default:0},deviationY:{type:Number,default:0},retainWdith:{type:Number,default:50},retainHeight:{type:Number,default:50},defaultPlay:{type:Boolean,default:!0},showPlayer:{type:Boolean,default:!0},deviceFilterCodes:{type:Array,default:()=>[]},fullScreenAside:{type:Array},showDeviceStatus:{type:Boolean},deviceFilterStatus:{type:Array},playerSlot:{type:Boolean},gmapKey:{type:String},mapInitinalOptions:{type:Object,default:()=>({zoom:4})},markerIcon:{type:Object},locationIcon:{type:String},trackIcon:{type:Object},limitBounds:{type:Object},showAlarmOnMap:{type:Boolean,default:!0},bounceIconOnAlarm:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},showSwitchAlarmButton:{type:Boolean,default:!0},fullscreenText:{type:String,default:"全屏"},exitFullscreenText:{type:String,default:"退出全屏"},customMarkerInfoWindow:{type:[Function,Object]},customClustererInfoWindow:{type:[Function,Object]},customAlarmInfoWindow:{type:[Function,Object]},customLocationPopup:{type:[Function,Object]},customMouseoverMarkerInfoWindow:{type:[Function,Object]},points:{type:Array},alarms:{type:Array},markerAlarms:{type:Array,default:()=>[]},position:{type:String},markerTracks:{type:Array},locations:{type:Array},tracks:{type:Array},autoFitView:{type:Boolean,default:!0},singleInforWindow:{type:Boolean,default:!0},playerPluginUrl:{type:String},infoWindowConfig:{type:Object,default:()=>{}}},components:{CanoePicMap:T,CanoeGisMap:et},data(){return{markerData:[],renderMapType:"",mapKey:"",gisPoints:[],filterGisPoint:[]}},watch:{map:{handler:function(t){""!==t?"gis"==t?this.getMapKeys().then(()=>{this.showAll?this.getBindDevice().then(()=>{this.renderMapType="gis"}):this.renderMapType="gis"}):this.renderMapType="pic"===t?t:"gis":this.getMapType()},immediate:!0,deep:!0},data:{handler:function(t){0!==t.length&&(this.markerData=t)},immediate:!0,deep:!0},points:{handler:function(t){t&&0!==t.length&&(this.gisPoints=this.gisPoints.concat(t.filter(t=>t.latitude&&t.longitude||t.lat&&t.lon)))},deep:!0,immediate:!0},deviceFilterCodes:{handler:function(t){let e=[];e=t&&0!==t.length?this.gisPoints.filter(e=>t.indexOf(e.objectId)>-1):this.gisPoints,this.filterGisPoint=e},deep:!0,immediate:!0},gisPoints:{handler:function(){let t=[];t=this.deviceFilterCodes&&0!==this.deviceFilterCodes.length?this.gisPoints.filter(t=>this.deviceFilterCodes.indexOf(t.objectId)>-1):this.gisPoints,this.filterGisPoint=t},deep:!0,immediate:!0}},methods:{getMapType(){return new Promise(t=>{this.service&&this.service.post&&this.service.post(this.sysettingService+"/sysetting/default/map/query",{}).then(e=>{if(e.success){let i=e.data;null!==i&&0!==i.length?"gis"===i[0].modeType?this.getMapKeys().then(()=>{this.renderMapType="gis",this.showAll&&this.getBindDevice()}):this.renderMapType="pic":""!==this.map?this.renderMapType=this.map:this.$message.warning("暂无地图"),t()}else this.$message.error("获取地图类型失败")})})},getMapKeys(){return new Promise(t=>{this.gmapKey?(this.mapKey=this.gmapKey,t()):this.service&&this.service.post&&this.service.post(this.sysettingService+"/sysetting/account/query",{type:1}).then(e=>{e.success&&0!==e.data.length&&(this.mapKey=e.data[0].key||"",t())})})},getBindDevice(){return new Promise(t=>{this.service&&this.service.post&&this.service.post(this.deviceService+"/component/device/list",{}).then(e=>{if(e.success){let i=[];e.data&&(e.data||[]).forEach(t=>{const e=!isNaN(t.longitude)&&Number(t.longitude),n=!isNaN(t.latitude)&&Number(t.latitude);let r={objectType:"camera",objectId:t.deviceCode,lon:e,lat:n,data:{...t},status:t.status,onlineStatus:t.onlineStatus,rtspUrl:t.cameraMainRtspUrl};(t.deviceCode&&e&&n&&(!this.deviceFilterCodes||0===this.deviceFilterCodes.length)||this.deviceFilterCodes.indexOf(t.deviceCode)>-1)&&i.push(r)}),0!==this.gisPoints.length?this.gisPoints=this.gisPoints.concat(i):this.gisPoints=i,this.$nextTick(()=>{this.$refs.fcMap&&this.$refs.fcMap.setFitView(),this.mapInitinalOptions.autoClusterer&&this.setMapMarkerClusterer(this.mapInitinalOptions.clustererConfig),t()})}else this.$message.error("获取设备列表失败")})})},markerClick(t){this.$emit("markerClick",t)},markerMouseover(t){this.$emit("markerMouseover",t)},toJSONData(t){return this.$refs.CanoePicMap?this.$refs.CanoePicMap.toJSONData(t):{}},removeMarker(t){this.$refs.CanoePicMap&&this.$refs.CanoePicMap.removeMarker(t)},setMarkerHighligh(t){this.$refs.CanoePicMap&&this.$refs.CanoePicMap.setMarkerHighligh(t)},closePlayer(){this.$refs.CanoePicMap.closePlayer()},picMapChange(t){this.$emit("change",t)},markerOver(t){this.$emit("markerOver",t)},markerOut(){this.$emit("markerOut")},mapMove(t){this.$emit("mapMove",t)},mapZoom(){this.$emit("mapZoom")},picMapClick(t){this.$emit("picMapClick",t)},picMapLoaded(t){this.$emit("picMapLoaded",t)},mapLoaded(){this.$emit("mapLoaded")},pluginLoaded(){this.$emit("pluginLoaded")},mapClick(t){this.$emit("mapClick",t)},setFitView(t){"gis"===this.renderMapType?this.$refs.fcMap&&this.$refs.fcMap.setFitView():this.$refs.CanoePicMap&&this.$refs.CanoePicMap.setFitView(t)},clearInfoWindow(){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.clearInfoWindow()},cancelAlarm(t){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.cancelAlarm(t)},bounceLocation(t,e){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.bounceLocation(t,e)},cancelBounceLocation(t){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.cancelBounceLocation(t)},playTrack(t,e,i){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.playTrack(t,e,i)},getLocationByAddress(t){if("gis"===this.renderMapType)return this.$refs.fcMap?this.$refs.fcMap.getLocationByAddress(t):Promise.reject(new Error("fcMapIsNull"))},getAddressByLocation(t){if("gis"===this.renderMapType)return this.$refs.fcMap?this.$refs.fcMap.getAddressByLocation(t):Promise.reject(new Error("fcMapIsNull"))},getMapObj(){let t={type:this.renderMapType,id:""};return"pic"===this.renderMapType?t.id=this.mapId||this.$refs.fcMap&&this.$refs.fcMap.bgImgId:t.id=this.mapKey,t},destroy(){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.destroy()},closeAlarmByHand(t){this.$refs.CanoePicMap&&this.$refs.CanoePicMap.closeAlarmByHand(t)},startDraw(t){this.$refs.fcMap&&this.$refs.fcMap.startDraw(t)},endDraw(){this.$refs.fcMap&&this.$refs.fcMap.endDraw()},clearDraw(){this.$refs.fcMap&&this.$refs.fcMap.clearDraw()},setMapCenter(t,e,i){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.setMapCenter(t,e,i)},setMapMarkerClusterer(t){this.$refs.fcMap&&this.$refs.fcMap.setMapMarkerClusterer(t)},openInfoWindowByHand(t){this.$refs.fcMap&&this.$refs.fcMap.openInfoWindowByHand(t)},gisMapSelection(t){this.$emit("selection",t)},pointsUpdated(t){this.$emit("pointsUpdated",t)},locationUpdated(t){this.$emit("locationUpdated",t)},limitBoundsChanged(t){this.$emit("limitBoundsChanged",t)},alarmShow(t){this.$emit("alarmShow",t)}},created(){},mounted(){}});const nt=it;var rt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"qz-map canoe-img-layout"},["pic"===t.renderMapType?[i("CanoePicMap",{ref:"CanoePicMap",attrs:{data:t.markerData,mode:t.mode,service:t.service,playerPluginUrl:t.playerPluginUrl,mapImg:t.mapImg,mapId:t.mapId,markerImg:t.markerImg,markerImgOnline:t.markerImgOnline,markerImgOffline:t.markerImgOffline,markerImgDisabled:t.markerImgDisabled,sysettingService:t.sysettingService,rate:t.rate,limit:t.limit,deviationX:t.deviationX,deviationY:t.deviationY,retainWdith:t.retainWdith,retainHeight:t.retainHeight,markerAlarms:t.markerAlarms,markerTracks:t.markerTracks,multiple:t.multiple,position:t.position,addDefaultSelected:t.addDefaultSelected,getAll:t.showAll,defaultPlay:t.defaultPlay,showPlayer:t.showPlayer,deviceFilterCodes:t.deviceFilterCodes,fullScreenAside:t.fullScreenAside,showDeviceStatus:t.showDeviceStatus,deviceFilterStatus:t.deviceFilterStatus,playerSlot:t.playerSlot},on:{mapLoaded:t.picMapLoaded,markerClick:t.markerClick,change:t.picMapChange,markerOver:t.markerOver,markerOut:t.markerOut,mapMove:t.mapMove,mapZoom:t.mapZoom,mapClick:t.picMapClick,alarmShow:t.alarmShow,markerMouseover:t.markerMouseover},scopedSlots:t._u([{key:"player",fn:function(e){return[t._t("player",null,{data:e.data})]}},{key:"popover",fn:function(e){return[t._t("popover",null,{data:e.data})]}},{key:"icon",fn:function(e){return[t._t("icon",null,{data:e.deviceItem})]}},{key:"alarmdialog",fn:function(e){return[t._t("alarmdialog",null,{data:e.data})]}}],null,!0)})]:"gis"===t.renderMapType?[i("CanoeGisMap",{ref:"fcMap",attrs:{playerPluginUrl:t.playerPluginUrl,mapKey:t.mapKey,mapInitinalOptions:t.mapInitinalOptions,points:t.filterGisPoint,locations:t.locations,alarms:t.alarms,tracks:t.tracks,showAlarmOnMap:t.showAlarmOnMap,markerIcon:t.markerIcon,locationIcon:t.locationIcon,trackIcon:t.trackIcon,limitBounds:t.limitBounds,autoFitView:t.autoFitView,fullScreenAside:t.fullScreenAside,bounceIconOnAlarm:t.bounceIconOnAlarm,customLocationPopup:t.customLocationPopup,customMarkerInfoWindow:t.customMarkerInfoWindow,customClustererInfoWindow:t.customClustererInfoWindow,customAlarmInfoWindow:t.customAlarmInfoWindow,customMouseoverMarkerInfoWindow:t.customMouseoverMarkerInfoWindow,showFullscreenButton:t.showFullscreenButton,showSwitchAlarmButton:t.showSwitchAlarmButton,fullscreenText:t.fullscreenText,exitFullscreenText:t.exitFullscreenText,infoWindowConfig:t.infoWindowConfig},on:{mapLoaded:t.mapLoaded,pluginLoaded:t.pluginLoaded,mapClick:t.mapClick,markerClick:t.markerClick,selection:t.gisMapSelection,pointsUpdated:t.pointsUpdated,locationUpdated:t.locationUpdated,limitBoundsChanged:t.limitBoundsChanged,alarmShow:t.alarmShow,markerMouseover:t.markerMouseover}})]:t._e()],2)},ot=[];const at=function(t){t&&t("data-v-0565b2ac_0",{source:'@font-face{font-family:qz-map;src:url(data:application/x-font-woff;base64,d09GRgABAAAAAAW8AAsAAAAACTAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPQAAAFYzzECCY21hcAAAAYQAAABgAAABqOs5EjVnbHlmAAAB5AAAAc0AAAMQZijQNGhlY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JOK8v8H9qVDNuAAAAeJxjYGRgYABiOQOxefH8Nl8ZuBkcgCIMtz1SQxH0//8MrmBxDgYmkCgA+e8JNgAAeJxjYGRgYHBgAAFXKMnIgArYABP6ANMAeJxjYAACByTsCsSODAwADf4BRwAAAAAAAC4AiADgATABiAAAeJxjYGRgYGBjcGRgYQABJiDmAkIGhv9gPgMAD6EBYgB4nF2QS07DMBRFb/pDtIAQSEjMPEAMQE3aDruAdl6JzNPW6UdJnDpupXbIAlgAq2ABjFkXN8kbUPwk67zr42fJAG7xAw/l8tCp9nI1cMGu5ibpWrhFvhduo4dH4Q7rSbiLV7wI92i/cYLXumRyhbVwAzdwwk3m78It8odwGw/4FO4w/xLuIsS3cA/P3t3u1E+jfKZX+ySydVPvobbFxmRq6A/qYKozbSOnl2p+VMVhNXIuVrE1qZqYzOkkMSq3ZqsXzl87l4+DIJbcX5gUO5zQR4oIOWbQWGGPhJ09O/nLIS2LAhsYZFAYwsfgzJjSyCor4o9oLGnNceRe4MAXRkwdYvYxHcNbCpNqWmknLMMkr862TBbMff5zeSvHGAEr/uf7tDjpF0GsVZQAAAB4nGNgYsAP2BiZGJkZWRhZGdkY2RlYk3Pyi1P5UysyS3TTSnNyipOLUlPzuJCYeakVJbqJOYlFubwF+cWZJZn5ebq5+WWpDAwAsUkWFAAAAA==) format("woff")}.qz-map-icon{font-family:qz-map!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.close::before{content:"\\ea01"}.exit-fullscreen::before{content:"\\ea02"}.fullscreen::before{content:"\\ea03"}.next-alarm::before{content:"\\ea04"}.position-move::before{content:"\\ea05"}.canoe-img-layout{width:100%;height:100%}.fc-map,.map-container{height:100%;width:100%}.fc-map{position:relative}.clusterer-info-window,.fc-map .map-alarm-info-window,.map-info-window,.map-popup-window{position:relative;background-color:#fff;border-radius:4px;box-shadow:0 0 5px 1px #cecece}.fc-map .clusterer-info-window::after,.fc-map .map-alarm-info-window::after,.fc-map .map-info-window::after{content:"";width:0;height:0;border:14px solid;position:absolute;bottom:-28px;left:calc(50% - 14px);border-color:#fff transparent transparent}.fc-map .map-mouseover-window::after{content:"";width:0;height:0;border:10px solid;position:absolute;bottom:-12px;left:calc(50% - 14px);border-color:#fff transparent transparent}.fc-map .map-mouseover-window{background:#fff;box-shadow:0 2px 4px 1px rgba(122,134,154,.4);padding:10px 20px}.fc-map .clusterer-info-window::after{left:-28px;top:50%;transform:translateY(-50%);border-color:transparent #fff transparent transparent}.fc-map .map-alarm-info-close,.map-info-close{position:absolute;height:16px;width:16px;top:8px;right:8px;cursor:pointer;color:#fff;z-index:1000}.fc-map .map-alarm-info-window .map-alarm-info-content{overflow:auto}.fc-map .map-info-device{padding:16px;font-size:14px;background-color:#fff}.fc-map .map-info-device p{display:flex;line-height:initial;margin:0}.fc-map .map-info-device p .title{color:#7a869a;flex-shrink:0}.fc-map .map-info-device p .info{color:#42526e}.fc-map .map-alarm-info-title+.map-alarm-info-content,.map-info-content{padding-top:0;height:100%}.fc-map .map-alarm-info-content{padding-top:20px;height:calc(100% - 20px)}.fc-map .map-info-content,.map-info-no-play{width:100%;height:180px}.fc-map .map-info-no-play.empty-video{display:flex;flex-flow:column;align-items:center;justify-content:center;color:#42526e;font-size:14px;font-weight:600;background-color:#edeff1}.fc-map .map-info-no-play.empty-video img{width:124px;height:124px}.fc-map .map-info-content .player-ctnr{position:relative;z-index:2;height:100%;width:100%}.fc-map .map-info-content .player-ctnr.no-play{background-color:#edeff1}.fc-map .map-info-content .player-ctnr .play-button{position:absolute;z-index:998;left:50%;top:50%;transform:translate(-50%,-50%);cursor:pointer}.fc-map .map-alarm-info-window{min-width:200px;min-height:100px}.fc-map .map-info-window{border:1px solid #dcdfe3;padding:4px;width:320px}.fc-map .clusterer-info-window{border:1px solid #dcdfe3;padding:4px;width:320px}.fc-map .map-alarm-info-title{height:16px;line-height:16px;font-size:16px;border-bottom:1px solid #c3c3c3;white-space:nowrap;background-color:#f5b740;color:#fff;padding:8px 30px 8px 8px}.fc-map .map-popup-window.bottom::after,.fc-map .map-popup-window.left::after,.fc-map .map-popup-window.right::after,.fc-map .map-popup-window.top::after{content:"";width:0;height:0;border:14px solid;position:absolute}.fc-map .map-popup-window.top::after{bottom:-28px;left:calc(50% - 14px);border-color:#fff transparent transparent}.fc-map .map-popup-window.right::after{bottom:calc(50% - 14px);left:-28px;border-color:transparent #fff transparent transparent}.fc-map .map-popup-window.bottom::after{top:-28px;left:calc(50% - 14px);border-color:transparent transparent #fff}.fc-map .map-popup-window.left::after{bottom:calc(50% - 14px);right:-28px;border-color:transparent transparent transparent #fff}.fc-map .map-tools{position:absolute;display:flex;align-items:center;justify-content:center;cursor:pointer}.fc-map .map-fullscreen-button{display:flex;align-items:center;justify-content:center;cursor:pointer}.fc-map .map-fullscreen-button i{margin-right:5px}.fc-map .map-switch-device-button{display:flex;align-items:center;justify-content:center;cursor:pointer}.qz-map .map-tools{position:absolute;display:flex;flex-flow:column}.qz-map .map-tools .map-tools-button{position:relative;margin-top:38px;width:45px;height:45px;border-radius:100%;box-shadow:0 2px 8px 0 rgba(0,0,0,.4);background-color:#fff;background-repeat:no-repeat;background-position:center;cursor:pointer;border:none;outline:0;color:#5f666c;transition:all .3s}.qz-map .map-tools .map-tools-button .button-icon{font-size:30px;line-height:45px}.qz-map .map-tools .map-tools-button.next-alarm-button{padding-top:5px}.qz-map .map-tools .map-tools-button:hover{color:#0075da}.qz-map .map-tools .map-tools-button:hover .button-tooltip{display:initial}.qz-map .map-tools .map-tools-button .button-tooltip{display:none;left:-10px;top:50%;font-style:normal;transform:translate(-100%,-50%);white-space:nowrap;word-break:keep-all;transition:all .3s;color:#fff}.qz-map .map-tools .map-tools-button .button-tooltip::after{content:"";position:absolute;border:8px solid transparent;right:0;top:50%;border-left-color:#303133;transform:translate(16px,-50%)}.qz-map .map-tools .map-tools-button:first-child{margin-top:0}',map:void 0,media:void 0})},st=void 0,lt=void 0,ct=!1,ht=w({render:rt,staticRenderFns:ot},at,nt,st,ct,lt,!1,I,void 0,void 0),pt=function(t){pt.installed||(pt.installed=!0,t.component("CanoeMap",ht))},dt={install:pt};let ut=null;"undefined"!==typeof window?ut=window.Vue:"undefined"!==typeof t&&(ut=t.Vue),ut&&ut.use(dt),ht.install=pt,e["a"]=ht}).call(this,i("c8ba"))}}]); |