ecinc-cloud-yoabase 9.5.2 → 9.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/ecyoabase.umd.min.js
CHANGED
|
@@ -110,5 +110,5 @@ function L(){return L=Object.assign||function(t){for(var e=1;e<arguments.length;
|
|
|
110
110
|
* @copyright 2019 Brightcove, Inc
|
|
111
111
|
* @license Apache-2.0
|
|
112
112
|
*/
|
|
113
|
-
var ns=function(t,e){return/^[a-z]+:/i.test(e)?e:(/\/\//i.test(t)||(t=k.a.buildAbsoluteURL(o.a.location.href,t)),k.a.buildAbsoluteURL(t,e))},is=function(t,e,n){return t&&n.responseURL&&e!==n.responseURL?n.responseURL:e},rs=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},as=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),os=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var a=Object.getPrototypeOf(e);return null===a?void 0:t(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},ss=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},ls=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e},us=function(){function t(t,e){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),e&&n.length===e)break}catch(l){r=!0,a=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw a}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),cs=Zo.mergeOptions,ds=Zo.EventTarget,hs=Zo.log,fs=function(t,e){["AUDIO","SUBTITLES"].forEach((function(n){for(var i in t.mediaGroups[n])for(var r in t.mediaGroups[n][i]){var a=t.mediaGroups[n][i][r];e(a,n,i,r)}}))},ps=function(t,e,n){var i=e.slice();n=n||0;for(var r=Math.min(t.length,e.length+n),a=n;a<r;a++)i[a-n]=cs(t[a],i[a-n]);return i},gs=function(t,e){t.resolvedUri||(t.resolvedUri=ns(e,t.uri)),t.key&&!t.key.resolvedUri&&(t.key.resolvedUri=ns(e,t.key.uri)),t.map&&!t.map.resolvedUri&&(t.map.resolvedUri=ns(e,t.map.uri))},ms=function(t,e){var n=cs(t,{}),i=n.playlists[e.uri];if(!i)return null;if(i.segments&&e.segments&&i.segments.length===e.segments.length&&i.endList===e.endList&&i.mediaSequence===e.mediaSequence)return null;var r=cs(i,e);i.segments&&(r.segments=ps(i.segments,e.segments,e.mediaSequence-i.mediaSequence)),r.segments.forEach((function(t){gs(t,r.resolvedUri)}));for(var a=0;a<n.playlists.length;a++)n.playlists[a].uri===e.uri&&(n.playlists[a]=r);return n.playlists[e.uri]=r,n},vs=function(t){var e=t.playlists.length;while(e--){var n=t.playlists[e];t.playlists[n.uri]=n,n.resolvedUri=ns(t.uri,n.uri),n.id=e,n.attributes||(n.attributes={},hs.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute."))}},ys=function(t){fs(t,(function(e){e.uri&&(e.resolvedUri=ns(t.uri,e.uri))}))},As=function(t,e){var n=t.segments[t.segments.length-1],i=void 0;return i=e&&n&&n.duration?1e3*n.duration:500*(t.targetDuration||10),i},bs=function(t){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};rs(this,e);var r=ls(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),a=i.withCredentials,o=void 0!==a&&a,s=i.handleManifestRedirects,l=void 0!==s&&s;r.srcUrl=t,r.hls_=n,r.withCredentials=o,r.handleManifestRedirects=l;var u=n.options_;if(r.customTagParsers=u&&u.customTagParsers||[],r.customTagMappers=u&&u.customTagMappers||[],!r.srcUrl)throw new Error("A non-empty playlist URL is required");return r.state="HAVE_NOTHING",r.on("mediaupdatetimeout",(function(){"HAVE_METADATA"===r.state&&(r.state="HAVE_CURRENT_METADATA",r.request=r.hls_.xhr({uri:ns(r.master.uri,r.media().uri),withCredentials:r.withCredentials},(function(t,e){if(r.request)return t?r.playlistRequestError(r.request,r.media().uri,"HAVE_METADATA"):void r.haveMetadata(r.request,r.media().uri)})))})),r}return ss(e,t),as(e,[{key:"playlistRequestError",value:function(t,e,n){this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[e],status:t.status,message:"HLS playlist request error at URL: "+e+".",responseText:t.responseText,code:t.status>=500?4:2},this.trigger("error")}},{key:"haveMetadata",value:function(t,e){var n=this;this.request=null,this.state="HAVE_METADATA";var i=new U;this.customTagParsers.forEach((function(t){return i.addParser(t)})),this.customTagMappers.forEach((function(t){return i.addTagMapper(t)})),i.push(t.responseText),i.end(),i.manifest.uri=e,i.manifest.attributes=i.manifest.attributes||{};var r=ms(this.master,i.manifest);this.targetDuration=i.manifest.targetDuration,r?(this.master=r,this.media_=this.master.playlists[i.manifest.uri]):this.trigger("playlistunchanged"),this.media().endList||(o.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=o.a.setTimeout((function(){n.trigger("mediaupdatetimeout")}),As(this.media(),!!r))),this.trigger("loadedplaylist")}},{key:"dispose",value:function(){this.stopRequest(),o.a.clearTimeout(this.mediaUpdateTimeout),o.a.clearTimeout(this.finalRenditionTimeout)}},{key:"stopRequest",value:function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}}},{key:"media",value:function(t,e){var n=this;if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"===typeof t){if(!this.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.master.playlists[t]}if(o.a.clearTimeout(this.finalRenditionTimeout),e){var i=t.targetDuration/2*1e3||5e3;this.finalRenditionTimeout=o.a.setTimeout(this.media.bind(this,t,!1),i)}else{var r=this.state,a=!this.media_||t.uri!==this.media_.uri;if(this.master.playlists[t.uri].endList)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=t,void(a&&(this.trigger("mediachanging"),this.trigger("mediachange")));if(a){if(this.state="SWITCHING_MEDIA",this.request){if(t.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.request=this.hls_.xhr({uri:t.resolvedUri,withCredentials:this.withCredentials},(function(e,i){if(n.request){if(t.resolvedUri=is(n.handleManifestRedirects,t.resolvedUri,i),e)return n.playlistRequestError(n.request,t.uri,r);n.haveMetadata(i,t.uri),"HAVE_MASTER"===r?n.trigger("loadedmetadata"):n.trigger("mediachange")}}))}}}},{key:"pause",value:function(){this.stopRequest(),o.a.clearTimeout(this.mediaUpdateTimeout),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}},{key:"load",value:function(t){var e=this;o.a.clearTimeout(this.mediaUpdateTimeout);var n=this.media();if(t){var i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=o.a.setTimeout((function(){return e.load()}),i)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}},{key:"start",value:function(){var t=this;this.started=!0,this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},(function(e,n){if(t.request){if(t.request=null,e)return t.error={status:n.status,message:"HLS playlist request error at URL: "+t.srcUrl+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===t.state&&(t.started=!1),t.trigger("error");var i=new U;return t.customTagParsers.forEach((function(t){return i.addParser(t)})),t.customTagMappers.forEach((function(t){return i.addTagMapper(t)})),i.push(n.responseText),i.end(),t.state="HAVE_MASTER",t.srcUrl=is(t.handleManifestRedirects,t.srcUrl,n),i.manifest.uri=t.srcUrl,i.manifest.playlists?(t.master=i.manifest,vs(t.master),ys(t.master),t.trigger("loadedplaylist"),void(t.request||t.media(i.manifest.playlists[0]))):(t.master={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:o.a.location.href,playlists:[{uri:t.srcUrl,id:0,resolvedUri:t.srcUrl,attributes:{}}]},t.master.playlists[t.srcUrl]=t.master.playlists[0],t.haveMetadata(n,t.srcUrl),t.trigger("loadedmetadata"))}}))}}]),e}(ds),_s=Zo.createTimeRange,ws=function(t,e){var n=0,i=e-t.mediaSequence,r=t.segments[i];if(r){if("undefined"!==typeof r.start)return{result:r.start,precise:!0};if("undefined"!==typeof r.end)return{result:r.end-r.duration,precise:!0}}while(i--){if(r=t.segments[i],"undefined"!==typeof r.end)return{result:n+r.end,precise:!0};if(n+=r.duration,"undefined"!==typeof r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}},xs=function(t,e){for(var n=0,i=void 0,r=e-t.mediaSequence;r<t.segments.length;r++){if(i=t.segments[r],"undefined"!==typeof i.start)return{result:i.start-n,precise:!0};if(n+=i.duration,"undefined"!==typeof i.end)return{result:i.end-n,precise:!0}}return{result:-1,precise:!1}},Ss=function(t,e,n){var i=void 0,r=void 0;return"undefined"===typeof e&&(e=t.mediaSequence+t.segments.length),e<t.mediaSequence?0:(i=ws(t,e),i.precise?i.result:(r=xs(t,e),r.precise?r.result:i.result+n))},Cs=function(t,e,n){if(!t)return 0;if("number"!==typeof n&&(n=0),"undefined"===typeof e){if(t.totalDuration)return t.totalDuration;if(!t.endList)return o.a.Infinity}return Ss(t,e,n)},Ts=function(t,e,n){var i=0;if(e>n){var r=[n,e];e=r[0],n=r[1]}if(e<0){for(var a=e;a<Math.min(0,n);a++)i+=t.targetDuration;e=0}for(var o=e;o<n;o++)i+=t.segments[o].duration;return i},Ms=function(t){if(!t.segments.length)return 0;var e=t.segments.length-1,n=t.segments[e].duration||t.targetDuration,i=n+2*t.targetDuration;while(e--)if(n+=t.segments[e].duration,n>=i)break;return Math.max(0,e)},ks=function(t,e,n){if(!t||!t.segments)return null;if(t.endList)return Cs(t);if(null===e)return null;e=e||0;var i=n?Ms(t):t.segments.length;return Ss(t,t.mediaSequence+i,e)},Ls=function(t,e){var n=!0,i=e||0,r=ks(t,e,n);return null===r?_s():_s(i,r)},Ds=function(t){return t-Math.floor(t)===0},Es=function(t,e){if(Ds(e))return e+.1*t;for(var n=e.toString().split(".")[1].length,i=1;i<=n;i++){var r=Math.pow(10,i),a=e*r;if(Ds(a)||i===n)return(a+t)/r}},Bs=Es.bind(null,1),Is=Es.bind(null,-1),Os=function(t,e,n,i){var r=void 0,a=void 0,o=t.segments.length,s=e-i;if(s<0){if(n>0)for(r=n-1;r>=0;r--)if(a=t.segments[r],s+=Is(a.duration),s>0)return{mediaIndex:r,startTime:i-Ts(t,n,r)};return{mediaIndex:0,startTime:e}}if(n<0){for(r=n;r<0;r++)if(s-=t.targetDuration,s<0)return{mediaIndex:0,startTime:e};n=0}for(r=n;r<o;r++)if(a=t.segments[r],s-=Bs(a.duration),s<0)return{mediaIndex:r,startTime:i+Ts(t,n,r)};return{mediaIndex:o-1,startTime:e}},Ps=function(t){return t.excludeUntil&&t.excludeUntil>Date.now()},Ns=function(t){return t.excludeUntil&&t.excludeUntil===1/0},Fs=function(t){var e=Ps(t);return!t.disabled&&!e},Us=function(t){return t.disabled},Rs=function(t){for(var e=0;e<t.segments.length;e++)if(t.segments[e].key)return!0;return!1},js=function(t){for(var e=0;e<t.segments.length;e++)if(t.segments[e].map)return!0;return!1},Hs=function(t,e){return e.attributes&&e.attributes[t]},Ys=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!Hs("BANDWIDTH",n))return NaN;var r=t*n.attributes.BANDWIDTH;return(r-8*i)/e},zs=function(t,e){if(1===t.playlists.length)return!0;var n=e.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===t.playlists.filter((function(t){return!!Fs(t)&&(t.attributes.BANDWIDTH||0)<n})).length},Qs={duration:Cs,seekable:Ls,safeLiveIndex:Ms,getMediaInfoForTime:Os,isEnabled:Fs,isDisabled:Us,isBlacklisted:Ps,isIncompatible:Ns,playlistEnd:ks,isAes:Rs,isFmp4:js,hasAttribute:Hs,estimateSegmentRequestTime:Ys,isLowestEnabledRendition:zs},Vs=Zo.xhr,Ws=Zo.mergeOptions,Gs=function(){var t=function t(e,n){e=Ws({timeout:45e3},e);var i=t.beforeRequest||Zo.Hls.xhr.beforeRequest;if(i&&"function"===typeof i){var r=i(e);r&&(e=r)}var a=Vs(e,(function(t,e){var i=a.response;!t&&i&&(a.responseTime=Date.now(),a.roundTripTime=a.responseTime-a.requestTime,a.bytesReceived=i.byteLength||i.length,a.bandwidth||(a.bandwidth=Math.floor(a.bytesReceived/a.roundTripTime*8*1e3))),e.headers&&(a.responseHeaders=e.headers),t&&"ETIMEDOUT"===t.code&&(a.timedout=!0),t||a.aborted||200===e.statusCode||206===e.statusCode||0===e.statusCode||(t=new Error("XHR Failed with a response of: "+(a&&(i||a.responseText)))),n(t,a)})),o=a.abort;return a.abort=function(){return a.aborted=!0,o.apply(a,arguments)},a.uri=e.uri,a.requestTime=Date.now(),a};return t},Ks=function(t){var e=void 0,n=void 0;return n=t.offset+t.length-1,e=t.offset,"bytes="+e+"-"+n},$s=function(t){var e={};return t.byterange&&(e.Range=Ks(t.byterange)),e},qs=function(t,e){return t.start(e)+"-"+t.end(e)},Xs=function(t,e){var n=t.toString(16);return"00".substring(0,2-n.length)+n+(e%2?" ":"")},Js=function(t){return t>=32&&t<126?String.fromCharCode(t):"."},Zs=function(t){var e={};return Object.keys(t).forEach((function(n){var i=t[n];ArrayBuffer.isView(i)?e[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:e[n]=i})),e},tl=function(t){var e=t.byterange||{length:1/0,offset:0};return[e.length,e.offset,t.resolvedUri].join(",")},el=function(t){return t.resolvedUri},nl=function(t){for(var e=Array.prototype.slice.call(t),n=16,i="",r=void 0,a=void 0,o=0;o<e.length/n;o++)r=e.slice(o*n,o*n+n).map(Xs).join(""),a=e.slice(o*n,o*n+n).map(Js).join(""),i+=r+" "+a+"\n";return i},il=function(t){var e=t.bytes;return nl(e)},rl=function(t){var e="",n=void 0;for(n=0;n<t.length;n++)e+=qs(t,n)+" ";return e},al=Object.freeze({createTransferableMessage:Zs,initSegmentId:tl,segmentKeyId:el,hexDump:nl,tagDump:il,textRanges:rl}),ol=.25,sl=function(t,e){if(!e.dateTimeObject)return null;var n=e.videoTimingInfo.transmuxerPrependedSeconds,i=e.videoTimingInfo.transmuxedPresentationStart,r=i+n,a=t-r;return new Date(e.dateTimeObject.getTime()+1e3*a)},ll=function(t){return t.transmuxedPresentationEnd-t.transmuxedPresentationStart-t.transmuxerPrependedSeconds},ul=function(t,e){var n=void 0;try{n=new Date(t)}catch(c){return null}if(!e||!e.segments||0===e.segments.length)return null;var i=e.segments[0];if(n<i.dateTimeObject)return null;for(var r=0;r<e.segments.length-1;r++){i=e.segments[r];var a=e.segments[r+1].dateTimeObject;if(n<a)break}var o=e.segments[e.segments.length-1],s=o.dateTimeObject,l=o.videoTimingInfo?ll(o.videoTimingInfo):o.duration+o.duration*ol,u=new Date(s.getTime()+1e3*l);return n>u?null:(n>s&&(i=o),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:Qs.duration(e,e.mediaSequence+e.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})},cl=function(t,e){if(!e||!e.segments||0===e.segments.length)return null;for(var n=0,i=void 0,r=0;r<e.segments.length;r++)if(i=e.segments[r],n=i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:n+i.duration,t<=n)break;var a=e.segments[e.segments.length-1];if(a.videoTimingInfo&&a.videoTimingInfo.transmuxedPresentationEnd<t)return null;if(t>n){if(t>n+a.duration*ol)return null;i=a}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:n-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}},dl=function(t,e){var n=void 0,i=void 0;try{n=new Date(t),i=new Date(e)}catch(o){}var r=n.getTime(),a=i.getTime();return(a-r)/1e3},hl=function(t){if(!t.segments||0===t.segments.length)return!1;for(var e=0;e<t.segments.length;e++){var n=t.segments[e];if(!n.dateTimeObject)return!1}return!0},fl=function(t){var e=t.playlist,n=t.time,i=void 0===n?void 0:n,r=t.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!e||void 0===i)return r({message:"getProgramTime: playlist and time must be provided"});var a=cl(i,e);if(!a)return r({message:"valid programTime was not found"});if("estimate"===a.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:a.estimatedStart});var o={mediaSeconds:i},s=sl(i,a.segment);return s&&(o.programDateTime=s.toISOString()),r(null,o)},pl=function t(e){var n=e.programTime,i=e.playlist,r=e.retryCount,a=void 0===r?2:r,o=e.seekTo,s=e.pauseAfterSeek,l=void 0===s||s,u=e.tech,c=e.callback;if(!c)throw new Error("seekToProgramTime: callback must be provided");if("undefined"===typeof n||!i||!o)return c({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!i.endList&&!u.hasStarted_)return c({message:"player must be playing a live stream to start buffering"});if(!hl(i))return c({message:"programDateTime tags must be provided in the manifest "+i.resolvedUri});var d=ul(n,i);if(!d)return c({message:n+" was not found in the stream"});var h=d.segment,f=dl(h.dateTimeObject,n);if("estimate"===d.type)return 0===a?c({message:n+" is not buffered yet. Try again"}):(o(d.estimatedStart+f),void u.one("seeked",(function(){t({programTime:n,playlist:i,retryCount:a-1,seekTo:o,pauseAfterSeek:l,tech:u,callback:c})})));var p=h.start+f,g=function(){return c(null,u.currentTime())};u.one("seeked",g),l&&u.pause(),o(p)},gl=1/30,ml=3*gl,vl=function(t,e){var n=[],i=void 0;if(t&&t.length)for(i=0;i<t.length;i++)e(t.start(i),t.end(i))&&n.push([t.start(i),t.end(i)]);return Zo.createTimeRanges(n)},yl=function(t,e){return vl(t,(function(t,n){return t-ml<=e&&n+ml>=e}))},Al=function(t,e){return vl(t,(function(t){return t-gl>=e}))},bl=function(t){if(t.length<2)return Zo.createTimeRanges();for(var e=[],n=1;n<t.length;n++){var i=t.end(n-1),r=t.start(n);e.push([i,r])}return Zo.createTimeRanges(e)},_l=function(t){var e=[];if(!t||!t.length)return"";for(var n=0;n<t.length;n++)e.push(t.start(n)+" => "+t.end(n));return e.join(", ")},wl=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=t.length?t.end(t.length-1):0;return(i-e)/n},xl=function(t){for(var e=[],n=0;n<t.length;n++)e.push({start:t.start(n),end:t.end(n)});return e},Sl=function(t,e,n){var i=e.player_;if(n.captions&&n.captions.length)for(var r in t.inbandTextTracks_||(t.inbandTextTracks_={}),n.captionStreams)if(!t.inbandTextTracks_[r]){i.tech_.trigger({type:"usage",name:"hls-608"});var a=i.textTracks().getTrackById(r);t.inbandTextTracks_[r]=a||i.addRemoteTextTrack({kind:"captions",id:r,label:r},!1).track}n.metadata&&n.metadata.length&&!t.metadataTrack_&&(t.metadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,t.metadataTrack_.inBandMetadataTrackDispatchType=n.metadata.dispatchType)},Cl=function(t,e,n){var i=void 0,r=void 0;if(n&&n.cues){i=n.cues.length;while(i--)r=n.cues[i],r.startTime<=e&&r.endTime>=t&&n.removeCue(r)}},Tl=function(t){Object.defineProperties(t.frame,{id:{get:function(){return Zo.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get:function(){return Zo.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get:function(){return Zo.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}})},Ml=function(t){var e=void 0;return e=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t,e},kl=function(t,e,n){var i=o.a.WebKitDataCue||o.a.VTTCue;if(e&&e.forEach((function(t){var e=t.stream;this.inbandTextTracks_[e].addCue(new i(t.startTime+this.timestampOffset,t.endTime+this.timestampOffset,t.text))}),t),n){var r=Ml(t.mediaSource_.duration);if(n.forEach((function(t){var e=t.cueTime+this.timestampOffset;!("number"!==typeof e||o.a.isNaN(e)||e<0)&&e<1/0&&t.frames.forEach((function(t){var n=new i(e,e,t.value||t.url||t.data||"");n.frame=t,n.value=t,Tl(n),this.metadataTrack_.addCue(n)}),this)}),t),t.metadataTrack_&&t.metadataTrack_.cues&&t.metadataTrack_.cues.length){for(var a=t.metadataTrack_.cues,s=[],l=0;l<a.length;l++)a[l]&&s.push(a[l]);var u=s.reduce((function(t,e){var n=t[e.startTime]||[];return n.push(e),t[e.startTime]=n,t}),{}),c=Object.keys(u).sort((function(t,e){return Number(t)-Number(e)}));c.forEach((function(t,e){var n=u[t],i=Number(c[e+1])||r;n.forEach((function(t){t.endTime=i}))}))}}},Ll="undefined"!==typeof window?window:{},Dl="undefined"===typeof Symbol?"__target":Symbol(),El="application/javascript",Bl=Ll.BlobBuilder||Ll.WebKitBlobBuilder||Ll.MozBlobBuilder||Ll.MSBlobBuilder,Il=Ll.URL||Ll.webkitURL||Il&&Il.msURL,Ol=Ll.Worker;function Pl(t,e){return function(n){var i=this;if(!e)return new Ol(t);if(Ol&&!n){var r=e.toString().replace(/^function.+?{/,"").slice(0,-1),a=Rl(r);return this[Dl]=new Ol(a),jl(this[Dl],a),this[Dl]}var o={postMessage:function(t){i.onmessage&&setTimeout((function(){i.onmessage({data:t,target:o})}))}};e.call(o),this.postMessage=function(t){setTimeout((function(){o.onmessage({data:t,target:i})}))},this.isThisThread=!0}}if(Ol){var Nl,Fl=Rl("self.onmessage = function () {}"),Ul=new Uint8Array(1);try{Nl=new Ol(Fl),Nl.postMessage(Ul,[Ul.buffer])}catch(Zc){Ol=null}finally{Il.revokeObjectURL(Fl),Nl&&Nl.terminate()}}function Rl(t){try{return Il.createObjectURL(new Blob([t],{type:El}))}catch(Zc){var e=new Bl;return e.append(t),Il.createObjectURL(e.getBlob(type))}}function jl(t,e){if(t&&e){var n=t.terminate;t.objURL=e,t.terminate=function(){t.objURL&&Il.revokeObjectURL(t.objURL),n.call(t)}}}var Hl=new Pl("./transmuxer-worker.worker.js",(function(t,e){var n=this;(function(){var t=function(){this.init=function(){var t={};this.on=function(e,n){t[e]||(t[e]=[]),t[e]=t[e].concat(n)},this.off=function(e,n){var i;return!!t[e]&&(i=t[e].indexOf(n),t[e]=t[e].slice(),t[e].splice(i,1),i>-1)},this.trigger=function(e){var n,i,r,a;if(n=t[e],n)if(2===arguments.length)for(r=n.length,i=0;i<r;++i)n[i].call(this,arguments[1]);else{for(a=[],i=arguments.length,i=1;i<arguments.length;++i)a.push(arguments[i]);for(r=n.length,i=0;i<r;++i)n[i].apply(this,a)}},this.dispose=function(){t={}}}};t.prototype.pipe=function(t){return this.on("data",(function(e){t.push(e)})),this.on("done",(function(e){t.flush(e)})),this.on("partialdone",(function(e){t.partialFlush(e)})),this.on("endedtimeline",(function(e){t.endTimeline(e)})),this.on("reset",(function(e){t.reset(e)})),t},t.prototype.push=function(t){this.trigger("data",t)},t.prototype.flush=function(t){this.trigger("done",t)},t.prototype.partialFlush=function(t){this.trigger("partialdone",t)},t.prototype.endTimeline=function(t){this.trigger("endedtimeline",t)},t.prototype.reset=function(t){this.trigger("reset",t)};var e,i,r,a,o,s,l,u,c,d,h,f,p,g,m,v,y,A,b,_,w,x,S,C,T,M,k,L,D,E,B,I,O,P,N,F,U=t,R=Math.pow(2,32)-1;(function(){var t;if(S={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!==typeof Uint8Array){for(t in S)S.hasOwnProperty(t)&&(S[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);C=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),M=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),T=new Uint8Array([0,0,0,1]),k=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),L=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),D={video:k,audio:L},I=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),B=new Uint8Array([0,0,0,0,0,0,0,0]),O=new Uint8Array([0,0,0,0,0,0,0,0]),P=O,N=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),F=O,E=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),e=function(t){var e,n,i,r=[],a=0;for(e=1;e<arguments.length;e++)r.push(arguments[e]);e=r.length;while(e--)a+=r[e].byteLength;for(n=new Uint8Array(a+8),i=new DataView(n.buffer,n.byteOffset,n.byteLength),i.setUint32(0,n.byteLength),n.set(t,4),e=0,a=8;e<r.length;e++)n.set(r[e],a),a+=r[e].byteLength;return n},i=function(){return e(S.dinf,e(S.dref,I))},r=function(t){return e(S.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,t.audioobjecttype<<3|t.samplingfrequencyindex>>>1,t.samplingfrequencyindex<<7|t.channelcount<<3,6,1,2]))},a=function(){return e(S.ftyp,C,T,C,M)},v=function(t){return e(S.hdlr,D[t])},o=function(t){return e(S.mdat,t)},m=function(t){var n=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,t.duration>>>24&255,t.duration>>>16&255,t.duration>>>8&255,255&t.duration,85,196,0,0]);return t.samplerate&&(n[12]=t.samplerate>>>24&255,n[13]=t.samplerate>>>16&255,n[14]=t.samplerate>>>8&255,n[15]=255&t.samplerate),e(S.mdhd,n)},g=function(t){return e(S.mdia,m(t),v(t.type),l(t))},s=function(t){return e(S.mfhd,new Uint8Array([0,0,0,0,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t]))},l=function(t){return e(S.minf,"video"===t.type?e(S.vmhd,E):e(S.smhd,B),i(),A(t))},u=function(t,n){var i=[],r=n.length;while(r--)i[r]=_(n[r]);return e.apply(null,[S.moof,s(t)].concat(i))},c=function(t){var n=t.length,i=[];while(n--)i[n]=f(t[n]);return e.apply(null,[S.moov,h(4294967295)].concat(i).concat(d(t)))},d=function(t){var n=t.length,i=[];while(n--)i[n]=w(t[n]);return e.apply(null,[S.mvex].concat(i))},h=function(t){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return e(S.mvhd,n)},y=function(t){var n,i,r=t.samples||[],a=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)n=r[i].flags,a[i+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return e(S.sdtp,a)},A=function(t){return e(S.stbl,b(t),e(S.stts,F),e(S.stsc,P),e(S.stsz,N),e(S.stco,O))},function(){var t,n;b=function(i){return e(S.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===i.type?t(i):n(i))},t=function(t){var n,i,r=t.sps||[],a=t.pps||[],o=[],s=[];for(n=0;n<r.length;n++)o.push((65280&r[n].byteLength)>>>8),o.push(255&r[n].byteLength),o=o.concat(Array.prototype.slice.call(r[n]));for(n=0;n<a.length;n++)s.push((65280&a[n].byteLength)>>>8),s.push(255&a[n].byteLength),s=s.concat(Array.prototype.slice.call(a[n]));if(i=[S.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&t.width)>>8,255&t.width,(65280&t.height)>>8,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),e(S.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([r.length],o,[a.length],s))),e(S.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],t.sarRatio){var l=t.sarRatio[0],u=t.sarRatio[1];i.push(e(S.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return e.apply(null,i)},n=function(t){return e(S.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&t.channelcount)>>8,255&t.channelcount,(65280&t.samplesize)>>8,255&t.samplesize,0,0,0,0,(65280&t.samplerate)>>8,255&t.samplerate,0,0]),r(t))}}(),p=function(t){var n=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,0,(4278190080&t.duration)>>24,(16711680&t.duration)>>16,(65280&t.duration)>>8,255&t.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&t.width)>>8,255&t.width,0,0,(65280&t.height)>>8,255&t.height,0,0]);return e(S.tkhd,n)},_=function(t){var n,i,r,a,o,s,l;return n=e(S.tfhd,new Uint8Array([0,0,0,58,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),s=Math.floor(t.baseMediaDecodeTime/(R+1)),l=Math.floor(t.baseMediaDecodeTime%(R+1)),i=e(S.tfdt,new Uint8Array([1,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s,l>>>24&255,l>>>16&255,l>>>8&255,255&l])),o=92,"audio"===t.type?(r=x(t,o),e(S.traf,n,i,r)):(a=y(t),r=x(t,a.length+o),e(S.traf,n,i,r,a))},f=function(t){return t.duration=t.duration||4294967295,e(S.trak,p(t),g(t))},w=function(t){var n=new Uint8Array([0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==t.type&&(n[n.length-1]=0),e(S.trex,n)},function(){var t,n,i;i=function(t,e){var n=0,i=0,r=0,a=0;return t.length&&(void 0!==t[0].duration&&(n=1),void 0!==t[0].size&&(i=2),void 0!==t[0].flags&&(r=4),void 0!==t[0].compositionTimeOffset&&(a=8)),[0,0,n|i|r|a,1,(4278190080&t.length)>>>24,(16711680&t.length)>>>16,(65280&t.length)>>>8,255&t.length,(4278190080&e)>>>24,(16711680&e)>>>16,(65280&e)>>>8,255&e]},n=function(t,n){var r,a,o,s;for(a=t.samples||[],n+=20+16*a.length,r=i(a,n),s=0;s<a.length;s++)o=a[s],r=r.concat([(4278190080&o.duration)>>>24,(16711680&o.duration)>>>16,(65280&o.duration)>>>8,255&o.duration,(4278190080&o.size)>>>24,(16711680&o.size)>>>16,(65280&o.size)>>>8,255&o.size,o.flags.isLeading<<2|o.flags.dependsOn,o.flags.isDependedOn<<6|o.flags.hasRedundancy<<4|o.flags.paddingValue<<1|o.flags.isNonSyncSample,61440&o.flags.degradationPriority,15&o.flags.degradationPriority,(4278190080&o.compositionTimeOffset)>>>24,(16711680&o.compositionTimeOffset)>>>16,(65280&o.compositionTimeOffset)>>>8,255&o.compositionTimeOffset]);return e(S.trun,new Uint8Array(r))},t=function(t,n){var r,a,o,s;for(a=t.samples||[],n+=20+8*a.length,r=i(a,n),s=0;s<a.length;s++)o=a[s],r=r.concat([(4278190080&o.duration)>>>24,(16711680&o.duration)>>>16,(65280&o.duration)>>>8,255&o.duration,(4278190080&o.size)>>>24,(16711680&o.size)>>>16,(65280&o.size)>>>8,255&o.size]);return e(S.trun,new Uint8Array(r))},x=function(e,i){return"audio"===e.type?t(e,i):n(e,i)}}();var j,H,Y,z,Q,V,W,G={ftyp:a,mdat:o,moof:u,moov:c,initSegment:function(t){var e,n=a(),i=c(t);return e=new Uint8Array(n.byteLength+i.byteLength),e.set(n),e.set(i,n.byteLength),e}},K=function(t){var e,n,i=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,i.byteLength=0,e=0;e<t.length;e++)n=t[e],"access_unit_delimiter_rbsp"===n.nalUnitType?(i.length&&(i.duration=n.dts-i.dts,r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i)),i=[n],i.byteLength=n.data.byteLength,i.pts=n.pts,i.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(i.keyFrame=!0),i.duration=n.dts-i.dts,i.byteLength+=n.data.byteLength,i.push(n));return r.length&&(!i.duration||i.duration<=0)&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i),r},$=function(t){var e,n,i=[],r=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=t[0].pts,i.dts=t[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=t[0].pts,r.dts=t[0].dts,e=0;e<t.length;e++)n=t[e],n.keyFrame?(i.length&&(r.push(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration),i=[n],i.nalCount=n.length,i.byteLength=n.byteLength,i.pts=n.pts,i.dts=n.dts,i.duration=n.duration):(i.duration+=n.duration,i.nalCount+=n.length,i.byteLength+=n.byteLength,i.push(n));return r.length&&i.duration<=0&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration,r.push(i),r},q=function(t){var e;return!t[0][0].keyFrame&&t.length>1&&(e=t.shift(),t.byteLength-=e.byteLength,t.nalCount-=e.nalCount,t[0][0].dts=e.dts,t[0][0].pts=e.pts,t[0][0].duration+=e.duration),t},X=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},J=function(t,e){var n=X();return n.dataOffset=e,n.compositionTimeOffset=t.pts-t.dts,n.duration=t.duration,n.size=4*t.length,n.size+=t.byteLength,t.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},Z=function(t,e){var n,i,r,a,o,s=e||0,l=[];for(n=0;n<t.length;n++)for(a=t[n],i=0;i<a.length;i++)o=a[i],r=J(o,s),s+=r.size,l.push(r);return l},tt=function(t){var e,n,i,r,a,o,s=0,l=t.byteLength,u=t.nalCount,c=l+4*u,d=new Uint8Array(c),h=new DataView(d.buffer);for(e=0;e<t.length;e++)for(r=t[e],n=0;n<r.length;n++)for(a=r[n],i=0;i<a.length;i++)o=a[i],h.setUint32(s,o.data.byteLength),s+=4,d.set(o.data,s),s+=o.data.byteLength;return d},et=function(t,e){var n,i=e||0,r=[];return n=J(t,i),r.push(n),r},nt=function(t){var e,n,i=0,r=t.byteLength,a=t.length,o=r+4*a,s=new Uint8Array(o),l=new DataView(s.buffer);for(e=0;e<t.length;e++)n=t[e],l.setUint32(i,n.data.byteLength),i+=4,s.set(n.data,i),i+=n.data.byteLength;return s},it={groupNalsIntoFrames:K,groupFramesIntoGops:$,extendFirstKeyFrame:q,generateSampleTable:Z,concatenateNalData:tt,generateSampleTableForFrame:et,concatenateNalDataForFrame:nt},rt=[33,16,5,32,164,27],at=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],ot=function(t){var e=[];while(t--)e.push(0);return e},st=function(t){return Object.keys(t).reduce((function(e,n){return e[n]=new Uint8Array(t[n].reduce((function(t,e){return t.concat(e)}),[])),e}),{})},lt={96e3:[rt,[227,64],ot(154),[56]],88200:[rt,[231],ot(170),[56]],64e3:[rt,[248,192],ot(240),[56]],48e3:[rt,[255,192],ot(268),[55,148,128],ot(54),[112]],44100:[rt,[255,192],ot(268),[55,163,128],ot(84),[112]],32e3:[rt,[255,192],ot(268),[55,234],ot(226),[112]],24e3:[rt,[255,192],ot(268),[55,255,128],ot(268),[111,112],ot(126),[224]],16e3:[rt,[255,192],ot(268),[55,255,128],ot(268),[111,255],ot(269),[223,108],ot(195),[1,192]],12e3:[at,ot(268),[3,127,248],ot(268),[6,255,240],ot(268),[13,255,224],ot(268),[27,253,128],ot(259),[56]],11025:[at,ot(268),[3,127,248],ot(268),[6,255,240],ot(268),[13,255,224],ot(268),[27,255,192],ot(268),[55,175,128],ot(108),[112]],8e3:[at,ot(268),[3,121,16],ot(47),[7]]},ut=st(lt),ct=9e4;j=function(t){return t*ct},H=function(t,e){return t*e},Y=function(t){return t/ct},z=function(t,e){return t/e},Q=function(t,e){return j(z(t,e))},V=function(t,e){return H(Y(t),e)},W=function(t,e,n){return Y(n?t:t-e)};var dt={ONE_SECOND_IN_TS:ct,secondsToVideoTs:j,secondsToAudioTs:H,videoTsToSeconds:Y,audioTsToSeconds:z,audioTsToVideoTs:Q,videoTsToAudioTs:V,metadataTsToSeconds:W},ht=function(t){var e,n,i=0;for(e=0;e<t.length;e++)n=t[e],i+=n.data.byteLength;return i},ft=function(t,e,n,i){var r,a,o,s,l=0,u=0,c=0,d=0;if(e.length&&(r=dt.audioTsToVideoTs(t.baseMediaDecodeTime,t.samplerate),l=Math.ceil(dt.ONE_SECOND_IN_TS/(t.samplerate/1024)),n&&i&&(u=r-Math.max(n,i),c=Math.floor(u/l),d=c*l),!(c<1||d>dt.ONE_SECOND_IN_TS/2))){for(a=ut[t.samplerate],a||(a=e[0].data),o=0;o<c;o++)s=e[0],e.splice(0,0,{data:a,dts:s.dts-l,pts:s.pts-l});t.baseMediaDecodeTime-=Math.floor(dt.videoTsToAudioTs(d,t.samplerate))}},pt=function(t,e,n){return e.minSegmentDts>=n?t:(e.minSegmentDts=1/0,t.filter((function(t){return t.dts>=n&&(e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),e.minSegmentPts=e.minSegmentDts,!0)})))},gt=function(t){var e,n,i=[];for(e=0;e<t.length;e++)n=t[e],i.push({size:n.data.byteLength,duration:1024});return i},mt=function(t){var e,n,i=0,r=new Uint8Array(ht(t));for(e=0;e<t.length;e++)n=t[e],r.set(n.data,i),i+=n.data.byteLength;return r},vt={prefixWithSilence:ft,trimAdtsFramesByEarliestDts:pt,generateSampleTable:gt,concatenateFrameData:mt},yt=dt.ONE_SECOND_IN_TS,At=function(t,e){"number"===typeof e.pts&&(void 0===t.timelineStartInfo.pts&&(t.timelineStartInfo.pts=e.pts),void 0===t.minSegmentPts?t.minSegmentPts=e.pts:t.minSegmentPts=Math.min(t.minSegmentPts,e.pts),void 0===t.maxSegmentPts?t.maxSegmentPts=e.pts:t.maxSegmentPts=Math.max(t.maxSegmentPts,e.pts)),"number"===typeof e.dts&&(void 0===t.timelineStartInfo.dts&&(t.timelineStartInfo.dts=e.dts),void 0===t.minSegmentDts?t.minSegmentDts=e.dts:t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),void 0===t.maxSegmentDts?t.maxSegmentDts=e.dts:t.maxSegmentDts=Math.max(t.maxSegmentDts,e.dts))},bt=function(t){delete t.minSegmentDts,delete t.maxSegmentDts,delete t.minSegmentPts,delete t.maxSegmentPts},_t=function(t,e){var n,i,r=t.minSegmentDts;return e||(r-=t.timelineStartInfo.dts),n=t.timelineStartInfo.baseMediaDecodeTime,n+=r,n=Math.max(0,n),"audio"===t.type&&(i=t.samplerate/yt,n*=i,n=Math.floor(n)),n},wt={clearDtsInfo:bt,calculateTrackBaseMediaDecodeTime:_t,collectDtsInfo:At},xt=4,St=128,Ct=function(t){var e=0,n={payloadType:-1,payloadSize:0},i=0,r=0;while(e<t.byteLength){if(t[e]===St)break;while(255===t[e])i+=255,e++;i+=t[e++];while(255===t[e])r+=255,e++;if(r+=t[e++],!n.payload&&i===xt){n.payloadType=i,n.payloadSize=r,n.payload=t.subarray(e,e+r);break}e+=r,i=0,r=0}return n},Tt=function(t){return 181!==t.payload[0]||49!==(t.payload[1]<<8|t.payload[2])||"GA94"!==String.fromCharCode(t.payload[3],t.payload[4],t.payload[5],t.payload[6])||3!==t.payload[7]?null:t.payload.subarray(8,t.payload.length-1)},Mt=function(t,e){var n,i,r,a,o=[];if(!(64&e[0]))return o;for(i=31&e[0],n=0;n<i;n++)r=3*n,a={type:3&e[r+2],pts:t},4&e[r+2]&&(a.ccData=e[r+3]<<8|e[r+4],o.push(a));return o},kt=function(t){var e,n,i=t.byteLength,r=[],a=1;while(a<i-2)0===t[a]&&0===t[a+1]&&3===t[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return t;e=i-r.length,n=new Uint8Array(e);var o=0;for(a=0;a<e;o++,a++)o===r[0]&&(o++,r.shift()),n[a]=t[o];return n},Lt={parseSei:Ct,parseUserData:Tt,parseCaptionPackets:Mt,discardEmulationPreventionBytes:kt,USER_DATA_REGISTERED_ITU_T_T35:xt},Dt=function t(){t.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new Nt(0,0),new Nt(0,1),new Nt(1,0),new Nt(1,1)],this.reset(),this.ccStreams_.forEach((function(t){t.on("data",this.trigger.bind(this,"data")),t.on("partialdone",this.trigger.bind(this,"partialdone")),t.on("done",this.trigger.bind(this,"done"))}),this)};Dt.prototype=new U,Dt.prototype.push=function(t){var e,n,i;if("sei_rbsp"===t.nalUnitType&&(e=Lt.parseSei(t.escapedRBSP),e.payloadType===Lt.USER_DATA_REGISTERED_ITU_T_T35&&(n=Lt.parseUserData(e),n)))if(t.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(t.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));i=Lt.parseCaptionPackets(t.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==t.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=t.dts}},Dt.prototype.flushCCStreams=function(t){this.ccStreams_.forEach((function(e){return"flush"===t?e.flush():e.partialFlush()}),this)},Dt.prototype.flushStream=function(t){this.captionPackets_.length?(this.captionPackets_.forEach((function(t,e){t.presortIndex=e})),this.captionPackets_.sort((function(t,e){return t.pts===e.pts?t.presortIndex-e.presortIndex:t.pts-e.pts})),this.captionPackets_.forEach((function(t){t.type<2&&this.dispatchCea608Packet(t)}),this),this.captionPackets_.length=0,this.flushCCStreams(t)):this.flushCCStreams(t)},Dt.prototype.flush=function(){return this.flushStream("flush")},Dt.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Dt.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(t){t.reset()}))},Dt.prototype.dispatchCea608Packet=function(t){this.setsTextOrXDSActive(t)?this.activeCea608Channel_[t.type]=null:this.setsChannel1Active(t)?this.activeCea608Channel_[t.type]=0:this.setsChannel2Active(t)&&(this.activeCea608Channel_[t.type]=1),null!==this.activeCea608Channel_[t.type]&&this.ccStreams_[(t.type<<1)+this.activeCea608Channel_[t.type]].push(t)},Dt.prototype.setsChannel1Active=function(t){return 4096===(30720&t.ccData)},Dt.prototype.setsChannel2Active=function(t){return 6144===(30720&t.ccData)},Dt.prototype.setsTextOrXDSActive=function(t){return 256===(28928&t.ccData)||4138===(30974&t.ccData)||6186===(30974&t.ccData)};var Et={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Bt=function(t){return null===t?"":(t=Et[t]||t,String.fromCharCode(t))},It=14,Ot=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Pt=function(){var t=[],e=It+1;while(e--)t.push("");return t},Nt=function t(e,n){t.prototype.init.call(this),this.field_=e||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(t){var e,n,i,r,a;if(e=32639&t.ccData,e!==this.lastControlCode_){if(4096===(61440&e)?this.lastControlCode_=e:e!==this.PADDING_&&(this.lastControlCode_=null),i=e>>>8,r=255&e,e!==this.PADDING_)if(e===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(e===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(t.pts),this.flushDisplayed(t.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=t.pts;else if(e===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(t.pts);else if(e===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(t.pts);else if(e===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(t.pts);else if(e===this.CARRIAGE_RETURN_)this.clearFormatting(t.pts),this.flushDisplayed(t.pts),this.shiftRowsUp_(),this.startPts_=t.pts;else if(e===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(e===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(t.pts),this.displayed_=Pt();else if(e===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Pt();else if(e===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(t.pts),this.displayed_=Pt()),this.mode_="paintOn",this.startPts_=t.pts;else if(this.isSpecialCharacter(i,r))i=(3&i)<<8,a=Bt(i|r),this[this.mode_](t.pts,a),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),i=(3&i)<<8,a=Bt(i|r),this[this.mode_](t.pts,a),this.column_++;else if(this.isMidRowCode(i,r))this.clearFormatting(t.pts),this[this.mode_](t.pts," "),this.column_++,14===(14&r)&&this.addFormatting(t.pts,["i"]),1===(1&r)&&this.addFormatting(t.pts,["u"]);else if(this.isOffsetControlCode(i,r))this.column_+=3&r;else if(this.isPAC(i,r)){var o=Ot.indexOf(7968&e);"rollUp"===this.mode_&&(o-this.rollUpRows_+1<0&&(o=this.rollUpRows_-1),this.setRollUp(t.pts,o)),o!==this.row_&&(this.clearFormatting(t.pts),this.row_=o),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(t.pts,["u"]),16===(16&e)&&(this.column_=4*((14&e)>>1)),this.isColorPAC(r)&&14===(14&r)&&this.addFormatting(t.pts,["i"])}else this.isNormalChar(i)&&(0===r&&(r=null),a=Bt(i),a+=Bt(r),this[this.mode_](t.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};Nt.prototype=new U,Nt.prototype.flushDisplayed=function(t){var e=this.displayed_.map((function(t){try{return t.trim()}catch(Zc){return console.error("Skipping malformed caption."),""}})).join("\n").replace(/^\n+|\n+$/g,"");e.length&&this.trigger("data",{startPts:this.startPts_,endPts:t,text:e,stream:this.name_})},Nt.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Pt(),this.nonDisplayed_=Pt(),this.lastControlCode_=null,this.column_=0,this.row_=It,this.rollUpRows_=2,this.formatting_=[]},Nt.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Nt.prototype.isSpecialCharacter=function(t,e){return t===this.EXT_&&e>=48&&e<=63},Nt.prototype.isExtCharacter=function(t,e){return(t===this.EXT_+1||t===this.EXT_+2)&&e>=32&&e<=63},Nt.prototype.isMidRowCode=function(t,e){return t===this.EXT_&&e>=32&&e<=47},Nt.prototype.isOffsetControlCode=function(t,e){return t===this.OFFSET_&&e>=33&&e<=35},Nt.prototype.isPAC=function(t,e){return t>=this.BASE_&&t<this.BASE_+8&&e>=64&&e<=127},Nt.prototype.isColorPAC=function(t){return t>=64&&t<=79||t>=96&&t<=127},Nt.prototype.isNormalChar=function(t){return t>=32&&t<=127},Nt.prototype.setRollUp=function(t,e){if("rollUp"!==this.mode_&&(this.row_=It,this.mode_="rollUp",this.flushDisplayed(t),this.nonDisplayed_=Pt(),this.displayed_=Pt()),void 0!==e&&e!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[e-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===e&&(e=this.row_),this.topRow_=e-this.rollUpRows_+1},Nt.prototype.addFormatting=function(t,e){this.formatting_=this.formatting_.concat(e);var n=e.reduce((function(t,e){return t+"<"+e+">"}),"");this[this.mode_](t,n)},Nt.prototype.clearFormatting=function(t){if(this.formatting_.length){var e=this.formatting_.reverse().reduce((function(t,e){return t+"</"+e+">"}),"");this.formatting_=[],this[this.mode_](t,e)}},Nt.prototype.popOn=function(t,e){var n=this.nonDisplayed_[this.row_];n+=e,this.nonDisplayed_[this.row_]=n},Nt.prototype.rollUp=function(t,e){var n=this.displayed_[this.row_];n+=e,this.displayed_[this.row_]=n},Nt.prototype.shiftRowsUp_=function(){var t;for(t=0;t<this.topRow_;t++)this.displayed_[t]="";for(t=this.row_+1;t<It+1;t++)this.displayed_[t]="";for(t=this.topRow_;t<this.row_;t++)this.displayed_[t]=this.displayed_[t+1];this.displayed_[this.row_]=""},Nt.prototype.paintOn=function(t,e){var n=this.displayed_[this.row_];n+=e,this.displayed_[this.row_]=n};var Ft={CaptionStream:Dt,Cea608Stream:Nt},Ut={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Rt=8589934592,jt=4294967296,Ht="shared",Yt=function(t,e){var n=1;t>e&&(n=-1);while(Math.abs(e-t)>jt)t+=n*Rt;return t},zt=function t(e){var n,i;t.prototype.init.call(this),this.type_=e||Ht,this.push=function(t){this.type_!==Ht&&t.type!==this.type_||(void 0===i&&(i=t.dts),t.dts=Yt(t.dts,i),t.pts=Yt(t.pts,i),n=t.dts,this.trigger("data",t))},this.flush=function(){i=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){i=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};zt.prototype=new U;var Qt,Vt={TimestampRolloverStream:zt,handleRollover:Yt},Wt=function(t,e,n){var i,r="";for(i=e;i<n;i++)r+="%"+("00"+t[i].toString(16)).slice(-2);return r},Gt=function(t,e,n){return decodeURIComponent(Wt(t,e,n))},Kt=function(t,e,n){return unescape(Wt(t,e,n))},$t=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},qt={TXXX:function(t){var e;if(3===t.data[0]){for(e=1;e<t.data.length;e++)if(0===t.data[e]){t.description=Gt(t.data,1,e),t.value=Gt(t.data,e+1,t.data.length).replace(/\0*$/,"");break}t.data=t.value}},WXXX:function(t){var e;if(3===t.data[0])for(e=1;e<t.data.length;e++)if(0===t.data[e]){t.description=Gt(t.data,1,e),t.url=Gt(t.data,e+1,t.data.length);break}},PRIV:function(t){var e;for(e=0;e<t.data.length;e++)if(0===t.data[e]){t.owner=Kt(t.data,0,e);break}t.privateData=t.data.subarray(e+1),t.data=t.privateData}};Qt=function(t){var e,n={debug:!(!t||!t.debug),descriptor:t&&t.descriptor},i=0,r=[],a=0;if(Qt.prototype.init.call(this),this.dispatchType=Ut.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(e=0;e<n.descriptor.length;e++)this.dispatchType+=("00"+n.descriptor[e].toString(16)).slice(-2);this.push=function(t){var e,o,s,l,u,c;if("timed-metadata"===t.type)if(t.dataAlignmentIndicator&&(a=0,r.length=0),0===r.length&&(t.data.length<10||t.data[0]!=="I".charCodeAt(0)||t.data[1]!=="D".charCodeAt(0)||t.data[2]!=="3".charCodeAt(0)))n.debug&&console.log("Skipping unrecognized metadata packet");else if(r.push(t),a+=t.data.byteLength,1===r.length&&(i=$t(t.data.subarray(6,10)),i+=10),!(a<i)){for(e={data:new Uint8Array(i),frames:[],pts:r[0].pts,dts:r[0].dts},u=0;u<i;)e.data.set(r[0].data.subarray(0,i-u),u),u+=r[0].data.byteLength,a-=r[0].data.byteLength,r.shift();o=10,64&e.data[5]&&(o+=4,o+=$t(e.data.subarray(10,14)),i-=$t(e.data.subarray(16,20)));do{if(s=$t(e.data.subarray(o+4,o+8)),s<1)return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.");if(c=String.fromCharCode(e.data[o],e.data[o+1],e.data[o+2],e.data[o+3]),l={id:c,data:e.data.subarray(o+10,o+s+10)},l.key=l.id,qt[l.id]&&(qt[l.id](l),"com.apple.streaming.transportStreamTimestamp"===l.owner)){var d=l.data,h=(1&d[3])<<30|d[4]<<22|d[5]<<14|d[6]<<6|d[7]>>>2;h*=4,h+=3&d[7],l.timeStamp=h,void 0===e.pts&&void 0===e.dts&&(e.pts=l.timeStamp,e.dts=l.timeStamp),this.trigger("timestamp",l)}e.frames.push(l),o+=10,o+=s}while(o<i);this.trigger("data",e)}}},Qt.prototype=new U;var Xt,Jt,Zt,te=Qt,ee=Vt.TimestampRolloverStream,ne=188,ie=71;Xt=function(){var t=new Uint8Array(ne),e=0;Xt.prototype.init.call(this),this.push=function(n){var i,r=0,a=ne;e?(i=new Uint8Array(n.byteLength+e),i.set(t.subarray(0,e)),i.set(n,e),e=0):i=n;while(a<i.byteLength)i[r]!==ie||i[a]!==ie?(r++,a++):(this.trigger("data",i.subarray(r,a)),r+=ne,a+=ne);r<i.byteLength&&(t.set(i.subarray(r),0),e=i.byteLength-r)},this.flush=function(){e===ne&&t[0]===ie&&(this.trigger("data",t),e=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){e=0,this.trigger("reset")}},Xt.prototype=new U,Jt=function(){var t,e,n,i;Jt.prototype.init.call(this),i=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,t=function(t,i){var r=0;i.payloadUnitStartIndicator&&(r+=t[r]+1),"pat"===i.type?e(t.subarray(r),i):n(t.subarray(r),i)},e=function(t,e){e.section_number=t[7],e.last_section_number=t[8],i.pmtPid=(31&t[10])<<8|t[11],e.pmtPid=i.pmtPid},n=function(t,e){var n,r,a,o;if(1&t[5]){i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=(15&t[1])<<8|t[2],r=3+n-4,a=(15&t[10])<<8|t[11],o=12+a;while(o<r){var s=t[o],l=(31&t[o+1])<<8|t[o+2];s===Ut.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=l:s===Ut.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=l:s===Ut.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][l]=s),o+=5+((15&t[o+3])<<8|t[o+4])}e.programMapTable=i.programMapTable}},this.push=function(e){var n={},i=4;if(n.payloadUnitStartIndicator=!!(64&e[1]),n.pid=31&e[1],n.pid<<=8,n.pid|=e[2],(48&e[3])>>>4>1&&(i+=e[i]+1),0===n.pid)n.type="pat",t(e.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid){n.type="pmt",t(e.subarray(i),n),this.trigger("data",n);while(this.packetsWaitingForPmt.length)this.processPes_.apply(this,this.packetsWaitingForPmt.shift())}else void 0===this.programMapTable?this.packetsWaitingForPmt.push([e,i,n]):this.processPes_(e,i,n)},this.processPes_=function(t,e,n){n.pid===this.programMapTable.video?n.streamType=Ut.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=Ut.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=t.subarray(e),this.trigger("data",n)}},Jt.prototype=new U,Jt.STREAM_TYPES={h264:27,adts:15},Zt=function(){var t,e=this,n={data:[],size:0},i={data:[],size:0},r={data:[],size:0},a=function(t,e){var n;e.packetLength=6+(t[4]<<8|t[5]),e.dataAlignmentIndicator=0!==(4&t[6]),n=t[7],192&n&&(e.pts=(14&t[9])<<27|(255&t[10])<<20|(254&t[11])<<12|(255&t[12])<<5|(254&t[13])>>>3,e.pts*=4,e.pts+=(6&t[13])>>>1,e.dts=e.pts,64&n&&(e.dts=(14&t[14])<<27|(255&t[15])<<20|(254&t[16])<<12|(255&t[17])<<5|(254&t[18])>>>3,e.dts*=4,e.dts+=(6&t[18])>>>1)),e.data=t.subarray(9+t[8])},o=function(t,n,i){var r,o=new Uint8Array(t.size),s={type:n},l=0,u=0,c=!1;if(t.data.length&&!(t.size<9)){for(s.trackId=t.data[0].pid,l=0;l<t.data.length;l++)r=t.data[l],o.set(r.data,u),u+=r.data.byteLength;a(o,s),c="video"===n||s.packetLength<=t.size,(i||c)&&(t.size=0,t.data.length=0),c&&e.trigger("data",s)}};Zt.prototype.init.call(this),this.push=function(a){({pat:function(){},pes:function(){var t,e;switch(a.streamType){case Ut.H264_STREAM_TYPE:case Ut.H264_STREAM_TYPE:t=n,e="video";break;case Ut.ADTS_STREAM_TYPE:t=i,e="audio";break;case Ut.METADATA_STREAM_TYPE:t=r,e="timed-metadata";break;default:return}a.payloadUnitStartIndicator&&o(t,e,!0),t.data.push(a),t.size+=a.data.byteLength},pmt:function(){var n={type:"metadata",tracks:[]};t=a.programMapTable,null!==t.video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),e.trigger("data",n)}})[a.type]()},this.reset=function(){n.size=0,n.data.length=0,i.size=0,i.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(n,"video"),o(i,"audio"),o(r,"timed-metadata")},this.flush=function(){this.flushStreams_(),this.trigger("done")}},Zt.prototype=new U;var re={PAT_PID:0,MP2T_PACKET_LENGTH:ne,TransportPacketStream:Xt,TransportParseStream:Jt,ElementaryStream:Zt,TimestampRolloverStream:ee,CaptionStream:Ft.CaptionStream,Cea608Stream:Ft.Cea608Stream,MetadataStream:te};for(var ae in Ut)Ut.hasOwnProperty(ae)&&(re[ae]=Ut[ae]);var oe,se=re,le=dt.ONE_SECOND_IN_TS,ue=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];oe=function(t){var e,n=0;oe.prototype.init.call(this),this.push=function(i){var r,a,o,s,l,u,c=0;if(t||(n=0),"audio"===i.type){e?(s=e,e=new Uint8Array(s.byteLength+i.data.byteLength),e.set(s),e.set(i.data,s.byteLength)):e=i.data;while(c+5<e.length)if(255===e[c]&&240===(246&e[c+1])){if(a=2*(1&~e[c+1]),r=(3&e[c+3])<<11|e[c+4]<<3|(224&e[c+5])>>5,l=1024*(1+(3&e[c+6])),u=l*le/ue[(60&e[c+2])>>>2],o=c+r,e.byteLength<o)return;if(this.trigger("data",{pts:i.pts+n*u,dts:i.dts+n*u,sampleCount:l,audioobjecttype:1+(e[c+2]>>>6&3),channelcount:(1&e[c+2])<<2|(192&e[c+3])>>>6,samplerate:ue[(60&e[c+2])>>>2],samplingfrequencyindex:(60&e[c+2])>>>2,samplesize:16,data:e.subarray(c+7+a,o)}),n++,e.byteLength===o)return void(e=void 0);e=e.subarray(o)}else c++}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){e=void 0,this.trigger("reset")},this.endTimeline=function(){e=void 0,this.trigger("endedtimeline")}},oe.prototype=new U;var ce,de=oe;ce=function(t){var e=t.byteLength,n=0,i=0;this.length=function(){return 8*e},this.bitsAvailable=function(){return 8*e+i},this.loadWord=function(){var r=t.byteLength-e,a=new Uint8Array(4),o=Math.min(4,e);if(0===o)throw new Error("no bytes available");a.set(t.subarray(r,r+o)),n=new DataView(a.buffer).getUint32(0),i=8*o,e-=o},this.skipBits=function(t){var r;i>t?(n<<=t,i-=t):(t-=i,r=Math.floor(t/8),t-=8*r,e-=r,this.loadWord(),n<<=t,i-=t)},this.readBits=function(t){var r=Math.min(i,t),a=n>>>32-r;return i-=r,i>0?n<<=r:e>0&&this.loadWord(),r=t-r,r>0?a<<r|this.readBits(r):a},this.skipLeadingZeros=function(){var t;for(t=0;t<i;++t)if(0!==(n&2147483648>>>t))return n<<=t,i-=t,t;return this.loadWord(),t+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var t=this.skipLeadingZeros();return this.readBits(t+1)-1},this.readExpGolomb=function(){var t=this.readUnsignedExpGolomb();return 1&t?1+t>>>1:-1*(t>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var he,fe,pe,ge=ce;fe=function(){var t,e,n=0;fe.prototype.init.call(this),this.push=function(i){var r;e?(r=new Uint8Array(e.byteLength+i.data.byteLength),r.set(e),r.set(i.data,e.byteLength),e=r):e=i.data;for(var a=e.byteLength;n<a-3;n++)if(1===e[n+2]){t=n+5;break}while(t<a)switch(e[t]){case 0:if(0!==e[t-1]){t+=2;break}if(0!==e[t-2]){t++;break}n+3!==t-2&&this.trigger("data",e.subarray(n+3,t-2));do{t++}while(1!==e[t]&&t<a);n=t-2,t+=3;break;case 1:if(0!==e[t-1]||0!==e[t-2]){t+=3;break}this.trigger("data",e.subarray(n+3,t-2)),n=t-2,t+=3;break;default:t+=3;break}e=e.subarray(n),t-=n,n=0},this.reset=function(){e=null,n=0,this.trigger("reset")},this.flush=function(){e&&e.byteLength>3&&this.trigger("data",e.subarray(n+3)),e=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},fe.prototype=new U,pe={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},he=function(){var t,e,n,i,r,a,o,s=new fe;he.prototype.init.call(this),t=this,this.push=function(t){"video"===t.type&&(e=t.trackId,n=t.pts,i=t.dts,s.push(t))},s.on("data",(function(o){var s={trackId:e,pts:n,dts:i,data:o};switch(31&o[0]){case 5:s.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:s.nalUnitType="sei_rbsp",s.escapedRBSP=r(o.subarray(1));break;case 7:s.nalUnitType="seq_parameter_set_rbsp",s.escapedRBSP=r(o.subarray(1)),s.config=a(s.escapedRBSP);break;case 8:s.nalUnitType="pic_parameter_set_rbsp";break;case 9:s.nalUnitType="access_unit_delimiter_rbsp";break;default:break}t.trigger("data",s)})),s.on("done",(function(){t.trigger("done")})),s.on("partialdone",(function(){t.trigger("partialdone")})),s.on("reset",(function(){t.trigger("reset")})),s.on("endedtimeline",(function(){t.trigger("endedtimeline")})),this.flush=function(){s.flush()},this.partialFlush=function(){s.partialFlush()},this.reset=function(){s.reset()},this.endTimeline=function(){s.endTimeline()},o=function(t,e){var n,i,r=8,a=8;for(n=0;n<t;n++)0!==a&&(i=e.readExpGolomb(),a=(r+i+256)%256),r=0===a?r:a},r=function(t){var e,n,i=t.byteLength,r=[],a=1;while(a<i-2)0===t[a]&&0===t[a+1]&&3===t[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return t;e=i-r.length,n=new Uint8Array(e);var o=0;for(a=0;a<e;o++,a++)o===r[0]&&(o++,r.shift()),n[a]=t[o];return n},a=function(t){var e,n,i,r,a,s,l,u,c,d,h,f,p,g,m=0,v=0,y=0,A=0,b=1;if(e=new ge(t),n=e.readUnsignedByte(),r=e.readUnsignedByte(),i=e.readUnsignedByte(),e.skipUnsignedExpGolomb(),pe[n]&&(a=e.readUnsignedExpGolomb(),3===a&&e.skipBits(1),e.skipUnsignedExpGolomb(),e.skipUnsignedExpGolomb(),e.skipBits(1),e.readBoolean()))for(h=3!==a?8:12,g=0;g<h;g++)e.readBoolean()&&o(g<6?16:64,e);if(e.skipUnsignedExpGolomb(),s=e.readUnsignedExpGolomb(),0===s)e.readUnsignedExpGolomb();else if(1===s)for(e.skipBits(1),e.skipExpGolomb(),e.skipExpGolomb(),l=e.readUnsignedExpGolomb(),g=0;g<l;g++)e.skipExpGolomb();if(e.skipUnsignedExpGolomb(),e.skipBits(1),u=e.readUnsignedExpGolomb(),c=e.readUnsignedExpGolomb(),d=e.readBits(1),0===d&&e.skipBits(1),e.skipBits(1),e.readBoolean()&&(m=e.readUnsignedExpGolomb(),v=e.readUnsignedExpGolomb(),y=e.readUnsignedExpGolomb(),A=e.readUnsignedExpGolomb()),e.readBoolean()&&e.readBoolean()){switch(p=e.readUnsignedByte(),p){case 1:f=[1,1];break;case 2:f=[12,11];break;case 3:f=[10,11];break;case 4:f=[16,11];break;case 5:f=[40,33];break;case 6:f=[24,11];break;case 7:f=[20,11];break;case 8:f=[32,11];break;case 9:f=[80,33];break;case 10:f=[18,11];break;case 11:f=[15,11];break;case 12:f=[64,33];break;case 13:f=[160,99];break;case 14:f=[4,3];break;case 15:f=[3,2];break;case 16:f=[2,1];break;case 255:f=[e.readUnsignedByte()<<8|e.readUnsignedByte(),e.readUnsignedByte()<<8|e.readUnsignedByte()];break}f&&(b=f[0]/f[1])}return{profileIdc:n,levelIdc:i,profileCompatibility:r,width:Math.ceil((16*(u+1)-2*m-2*v)*b),height:(2-d)*(c+1)*16-2*y-2*A,sarRatio:f}}},he.prototype=new U;var me,ve={H264Stream:he,NalByteStream:fe},ye=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],Ae=function(t){return t[0]==="I".charCodeAt(0)&&t[1]==="D".charCodeAt(0)&&t[2]==="3".charCodeAt(0)},be=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},_e=function(t,e,n){var i,r="";for(i=e;i<n;i++)r+="%"+("00"+t[i].toString(16)).slice(-2);return r},we=function(t,e,n){return unescape(_e(t,e,n))},xe=function(t,e){var n=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9],i=t[e+5],r=(16&i)>>4;return r?n+20:n+10},Se=function(t,e){var n=(224&t[e+5])>>5,i=t[e+4]<<3,r=6144&t[e+3];return r|i|n},Ce=function(t,e){return t[e]==="I".charCodeAt(0)&&t[e+1]==="D".charCodeAt(0)&&t[e+2]==="3".charCodeAt(0)?"timed-metadata":!0&t[e]&&240===(240&t[e+1])?"audio":null},Te=function(t){var e=0;while(e+5<t.length){if(255===t[e]&&240===(246&t[e+1]))return ye[(60&t[e+2])>>>2];e++}return null},Me=function(t){var e,n,i,r;e=10,64&t[5]&&(e+=4,e+=be(t.subarray(10,14)));do{if(n=be(t.subarray(e+4,e+8)),n<1)return null;if(r=String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3]),"PRIV"===r){i=t.subarray(e+10,e+n+10);for(var a=0;a<i.byteLength;a++)if(0===i[a]){var o=we(i,0,a);if("com.apple.streaming.transportStreamTimestamp"===o){var s=i.subarray(a+1),l=(1&s[3])<<30|s[4]<<22|s[5]<<14|s[6]<<6|s[7]>>>2;return l*=4,l+=3&s[7],l}break}}e+=10,e+=n}while(e<t.byteLength);return null},ke={isLikelyAacData:Ae,parseId3TagSize:xe,parseAdtsSize:Se,parseType:Ce,parseSampleRate:Te,parseAacTimestamp:Me};me=function(){var t=new Uint8Array,e=0;me.prototype.init.call(this),this.setTimestamp=function(t){e=t},this.push=function(n){var i,r,a,o,s=0,l=0;t.length?(o=t.length,t=new Uint8Array(n.byteLength+o),t.set(t.subarray(0,o)),t.set(n,o)):t=n;while(t.length-l>=3)if(t[l]!=="I".charCodeAt(0)||t[l+1]!=="D".charCodeAt(0)||t[l+2]!=="3".charCodeAt(0))if(255!==(255&t[l])||240!==(240&t[l+1]))l++;else{if(t.length-l<7)break;if(s=ke.parseAdtsSize(t,l),l+s>t.length)break;a={type:"audio",data:t.subarray(l,l+s),pts:e,dts:e},this.trigger("data",a),l+=s}else{if(t.length-l<10)break;if(s=ke.parseId3TagSize(t,l),l+s>t.length)break;r={type:"timed-metadata",data:t.subarray(l,l+s)},this.trigger("data",r),l+=s}i=t.length-l,t=i>0?t.subarray(l):new Uint8Array},this.reset=function(){t=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){t=new Uint8Array,this.trigger("endedtimeline")}},me.prototype=new U;var Le,De,Ee,Be,Ie=me,Oe=ve.H264Stream,Pe=ke.isLikelyAacData,Ne=dt.ONE_SECOND_IN_TS,Fe=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Ue=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Re=function(t,e){var n;if(t.length!==e.length)return!1;for(n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},je=function(t,e,n,i,r,a){var o=n-e,s=i-e,l=r-n;return{start:{dts:t,pts:t+o},end:{dts:t+s,pts:t+l},prependedContentDuration:a,baseMediaDecodeTime:t}};De=function(t,e){var n=[],i=0,r=0,a=0,o=1/0;e=e||{},De.prototype.init.call(this),this.push=function(e){wt.collectDtsInfo(t,e),t&&Fe.forEach((function(n){t[n]=e[n]})),n.push(e)},this.setEarliestDts=function(e){r=e-t.timelineStartInfo.baseMediaDecodeTime},this.setVideoBaseMediaDecodeTime=function(t){o=t},this.setAudioAppendStart=function(t){a=t},this.flush=function(){var s,l,u,c,d;0!==n.length?(s=vt.trimAdtsFramesByEarliestDts(n,t,r),t.baseMediaDecodeTime=wt.calculateTrackBaseMediaDecodeTime(t,e.keepOriginalTimestamps),vt.prefixWithSilence(t,s,a,o),t.samples=vt.generateSampleTable(s),u=G.mdat(vt.concatenateFrameData(s)),n=[],l=G.moof(i,[t]),c=new Uint8Array(l.byteLength+u.byteLength),i++,c.set(l),c.set(u,l.byteLength),wt.clearDtsInfo(t),d=Math.ceil(1024*Ne/t.samplerate),s.length&&this.trigger("timingInfo",{start:s[0].dts,end:s[0].dts+s.length*d}),this.trigger("data",{track:t,boxes:c}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){wt.clearDtsInfo(t),n=[],this.trigger("reset")}},De.prototype=new U,Le=function(t,e){var n,i,r=0,a=[],o=[];e=e||{},Le.prototype.init.call(this),delete t.minPTS,this.gopCache_=[],this.push=function(e){wt.collectDtsInfo(t,e),"seq_parameter_set_rbsp"!==e.nalUnitType||n||(n=e.config,t.sps=[e.data],Ue.forEach((function(e){t[e]=n[e]}),this)),"pic_parameter_set_rbsp"!==e.nalUnitType||i||(i=e.data,t.pps=[e.data]),a.push(e)},this.flush=function(){var n,i,s,l,u,c,d,h,f=0;while(a.length){if("access_unit_delimiter_rbsp"===a[0].nalUnitType)break;a.shift()}if(0===a.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=it.groupNalsIntoFrames(a),s=it.groupFramesIntoGops(n),s[0][0].keyFrame||(i=this.getGopForFusion_(a[0],t),i?(f=i.duration,s.unshift(i),s.byteLength+=i.byteLength,s.nalCount+=i.nalCount,s.pts=i.pts,s.dts=i.dts,s.duration+=i.duration):s=it.extendFirstKeyFrame(s)),o.length){var p;if(p=e.alignGopsAtEnd?this.alignGopsAtEnd_(s):this.alignGopsAtStart_(s),!p)return this.gopCache_.unshift({gop:s.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");wt.clearDtsInfo(t),s=p}wt.collectDtsInfo(t,s),t.samples=it.generateSampleTable(s),u=G.mdat(it.concatenateNalData(s)),t.baseMediaDecodeTime=wt.calculateTrackBaseMediaDecodeTime(t,e.keepOriginalTimestamps),this.trigger("processedGopsInfo",s.map((function(t){return{pts:t.pts,dts:t.dts,byteLength:t.byteLength}}))),d=s[0],h=s[s.length-1],this.trigger("segmentTimingInfo",je(t.baseMediaDecodeTime,d.dts,d.pts,h.dts+h.duration,h.pts+h.duration,f)),this.trigger("timingInfo",{start:s[0].dts,end:s[s.length-1].dts+s[s.length-1].duration}),this.gopCache_.unshift({gop:s.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.trigger("baseMediaDecodeTime",t.baseMediaDecodeTime),this.trigger("timelineStartInfo",t.timelineStartInfo),l=G.moof(r,[t]),c=new Uint8Array(l.byteLength+u.byteLength),r++,c.set(l),c.set(u,l.byteLength),this.trigger("data",{track:t,boxes:c}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),a=[],this.gopCache_.length=0,o.length=0,this.trigger("reset")},this.resetStream_=function(){wt.clearDtsInfo(t),n=void 0,i=void 0},this.getGopForFusion_=function(e){var n,i,r,a,o,s=45e3,l=1e4,u=1/0;for(o=0;o<this.gopCache_.length;o++)a=this.gopCache_[o],r=a.gop,t.pps&&Re(t.pps[0],a.pps[0])&&t.sps&&Re(t.sps[0],a.sps[0])&&(r.dts<t.timelineStartInfo.dts||(n=e.dts-r.dts-r.duration,n>=-l&&n<=s&&(!i||u>n)&&(i=a,u=n)));return i?i.gop:null},this.alignGopsAtStart_=function(t){var e,n,i,r,a,s,l,u;a=t.byteLength,s=t.nalCount,l=t.duration,e=n=0;while(e<o.length&&n<t.length){if(i=o[e],r=t[n],i.pts===r.pts)break;r.pts>i.pts?e++:(n++,a-=r.byteLength,s-=r.nalCount,l-=r.duration)}return 0===n?t:n===t.length?null:(u=t.slice(n),u.byteLength=a,u.duration=l,u.nalCount=s,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(t){var e,n,i,r,a,s,l;e=o.length-1,n=t.length-1,a=null,s=!1;while(e>=0&&n>=0){if(i=o[e],r=t[n],i.pts===r.pts){s=!0;break}i.pts>r.pts?e--:(e===o.length-1&&(a=n),n--)}if(!s&&null===a)return null;if(l=s?n:a,0===l)return t;var u=t.slice(l),c=u.reduce((function(t,e){return t.byteLength+=e.byteLength,t.duration+=e.duration,t.nalCount+=e.nalCount,t}),{byteLength:0,duration:0,nalCount:0});return u.byteLength=c.byteLength,u.duration=c.duration,u.nalCount=c.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(t){o=t}},Le.prototype=new U,Be=function(t,e){this.numberOfTracks=0,this.metadataStream=e,t=t||{},"undefined"!==typeof t.remux?this.remuxTracks=!!t.remux:this.remuxTracks=!0,"boolean"===typeof t.keepOriginalTimestamps?this.keepOriginalTimestamps=t.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Be.prototype.init.call(this),this.push=function(t){return t.text?this.pendingCaptions.push(t):t.frames?this.pendingMetadata.push(t):(this.pendingTracks.push(t.track),this.pendingBytes+=t.boxes.byteLength,"video"===t.track.type&&(this.videoTrack=t.track,this.pendingBoxes.push(t.boxes)),void("audio"===t.track.type&&(this.audioTrack=t.track,this.pendingBoxes.unshift(t.boxes))))}},Be.prototype=new U,Be.prototype.flush=function(t){var e,n,i,r,a=0,o={captions:[],captionStreams:{},metadata:[],info:{}},s=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==t&&"AudioSegmentStream"!==t)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,Ue.forEach((function(t){o.info[t]=this.videoTrack[t]}),this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,Fe.forEach((function(t){o.info[t]=this.audioTrack[t]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?o.type=this.pendingTracks[0].type:o.type="combined",this.emittedTracks+=this.pendingTracks.length,i=G.initSegment(this.pendingTracks),o.initSegment=new Uint8Array(i.byteLength),o.initSegment.set(i),o.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)o.data.set(this.pendingBoxes[r],a),a+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)e=this.pendingCaptions[r],e.startTime=dt.metadataTsToSeconds(e.startPts,s,this.keepOriginalTimestamps),e.endTime=dt.metadataTsToSeconds(e.endPts,s,this.keepOriginalTimestamps),o.captionStreams[e.stream]=!0,o.captions.push(e);for(r=0;r<this.pendingMetadata.length;r++)n=this.pendingMetadata[r],n.cueTime=dt.metadataTsToSeconds(n.pts,s,this.keepOriginalTimestamps),o.metadata.push(n);for(o.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",o),r=0;r<o.captions.length;r++)e=o.captions[r],this.trigger("caption",e);for(r=0;r<o.metadata.length;r++)n=o.metadata[r],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Be.prototype.setRemux=function(t){this.remuxTracks=t},Ee=function(t){var e,n,i=this,r=!0;Ee.prototype.init.call(this),t=t||{},this.baseMediaDecodeTime=t.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new se.MetadataStream,r.aacStream=new Ie,r.audioTimestampRolloverStream=new se.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new se.TimestampRolloverStream("timed-metadata"),r.adtsStream=new de,r.coalesceStream=new Be(t,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",(function(t){r.aacStream.setTimestamp(t.timeStamp)})),r.aacStream.on("data",(function(a){"timed-metadata"!==a.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new De(n,t),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!e})})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new se.MetadataStream,r.packetStream=new se.TransportPacketStream,r.parseStream=new se.TransportParseStream,r.elementaryStream=new se.ElementaryStream,r.timestampRolloverStream=new se.TimestampRolloverStream,r.adtsStream=new de,r.h264Stream=new Oe,r.captionStream=new se.CaptionStream,r.coalesceStream=new Be(t,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",(function(a){var o;if("metadata"===a.type){o=a.tracks.length;while(o--)e||"video"!==a.tracks[o].type?n||"audio"!==a.tracks[o].type||(n=a.tracks[o],n.timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(e=a.tracks[o],e.timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime);e&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new Le(e,t),r.videoSegmentStream.on("timelineStartInfo",(function(t){n&&(n.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts))})),r.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",(function(t){n&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(t)})),r.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),n&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new De(n,t),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!e})}})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",(function(t){t.dispatchType=r.metadataStream.dispatchType,i.trigger("id3Frame",t)})),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(i){var r=this.transmuxPipeline_;t.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,wt.clearDtsInfo(n),t.keepOriginalTimestamps||(n.timelineStartInfo.baseMediaDecodeTime=i),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),e&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),e.timelineStartInfo.dts=void 0,e.timelineStartInfo.pts=void 0,wt.clearDtsInfo(e),r.captionStream.reset(),t.keepOriginalTimestamps||(e.timelineStartInfo.baseMediaDecodeTime=i)),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(t){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(t)},this.setRemux=function(e){var n=this.transmuxPipeline_;t.remux=e,n&&n.coalesceStream&&n.coalesceStream.setRemux(e)},this.alignGopsWith=function(t){e&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(t)},this.push=function(t){if(r){var e=Pe(t);e&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():e||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(t)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},Ee.prototype=new U;var He={Transmuxer:Ee,VideoSegmentStream:Le,AudioSegmentStream:De,AUDIO_PROPERTIES:Fe,VIDEO_PROPERTIES:Ue,generateVideoSegmentTimingInfo:je},Ye=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},ze=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),Qe=function(t,e){e.on("data",(function(e){var n=e.initSegment;e.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var i=e.data;e.data=i.buffer,t.postMessage({action:"data",segment:e,byteOffset:i.byteOffset,byteLength:i.byteLength},[e.data])})),e.captionStream&&e.captionStream.on("data",(function(e){t.postMessage({action:"caption",data:e})})),e.on("done",(function(e){t.postMessage({action:"done"})})),e.on("gopInfo",(function(e){t.postMessage({action:"gopInfo",gopInfo:e})})),e.on("videoSegmentTimingInfo",(function(e){t.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:e})}))},Ve=function(){function t(e,n){Ye(this,t),this.options=n||{},this.self=e,this.init()}return ze(t,[{key:"init",value:function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new He.Transmuxer(this.options),Qe(this.self,this.transmuxer)}},{key:"push",value:function(t){var e=new Uint8Array(t.data,t.byteOffset,t.byteLength);this.transmuxer.push(e)}},{key:"reset",value:function(){this.init()}},{key:"setTimestampOffset",value:function(t){var e=t.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(9e4*e))}},{key:"setAudioAppendStart",value:function(t){this.transmuxer.setAudioAppendStart(Math.ceil(9e4*t.appendStart))}},{key:"flush",value:function(t){this.transmuxer.flush()}},{key:"resetCaptions",value:function(){this.transmuxer.resetCaptions()}},{key:"alignGopsWith",value:function(t){this.transmuxer.alignGopsWith(t.gopsToAlignWith.slice())}}]),t}(),We=function(t){t.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new Ve(t,e.data.options):(this.messageHandlers||(this.messageHandlers=new Ve(t)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}},Ge=new We(n)})()})),Yl={videoCodec:"avc1",videoObjectTypeIndicator:".4d400d",audioProfile:"2"},zl=function(t){return t.map((function(t){return t.replace(/avc1\.(\d+)\.(\d+)/i,(function(t,e,n){var i=("00"+Number(e).toString(16)).slice(-2),r=("00"+Number(n).toString(16)).slice(-2);return"avc1."+i+"00"+r}))}))},Ql=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e={codecCount:0},n=void 0;return e.codecCount=t.split(",").length,e.codecCount=e.codecCount||2,n=/(^|\s|,)+(avc[13])([^ ,]*)/i.exec(t),n&&(e.videoCodec=n[2],e.videoObjectTypeIndicator=n[3]),e.audioProfile=/(^|\s|,)+mp4a.[0-9A-Fa-f]+\.([0-9A-Fa-f]+)/i.exec(t),e.audioProfile=e.audioProfile&&e.audioProfile[2],e},Vl=function(t){return t.replace(/avc1\.(\d+)\.(\d+)/i,(function(t){return zl([t])[0]}))},Wl=function(t,e,n){return t+"/"+e+'; codecs="'+n.filter((function(t){return!!t})).join(", ")+'"'},Gl=function(t){return t.segments&&t.segments.length&&t.segments[0].map?"mp4":"mp2t"},Kl=function(t){var e=t.attributes||{};return e.CODECS?Ql(e.CODECS):Yl},$l=function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var n=t.mediaGroups.AUDIO[e];if(!n)return null;for(var i in n){var r=n[i];if(r["default"]&&r.playlists)return Ql(r.playlists[0].attributes.CODECS).audioProfile}return null},ql=function(t,e){var n=Gl(e),i=Kl(e),r=e.attributes||{},a=!0,o=!1;if(!e)return[];if(t.mediaGroups.AUDIO&&r.AUDIO){var s=t.mediaGroups.AUDIO[r.AUDIO];if(s)for(var l in o=!0,a=!1,s)if(!s[l].uri&&!s[l].playlists){a=!0;break}}o&&!i.audioProfile&&(a||(i.audioProfile=$l(t,r.AUDIO)),i.audioProfile||(Zo.log.warn("Multiple audio tracks present but no audio codec string is specified. Attempting to use the default audio codec (mp4a.40.2)"),i.audioProfile=Yl.audioProfile));var u={};i.videoCodec&&(u.video=""+i.videoCodec+i.videoObjectTypeIndicator),i.audioProfile&&(u.audio="mp4a.40."+i.audioProfile);var c=Wl("audio",n,[u.audio]),d=Wl("video",n,[u.video]),h=Wl("video",n,[u.video,u.audio]);return o?!a&&u.video?[d,c]:a||u.video?[h,c]:[c,c]:u.video?[h]:[c]},Xl=function(t){var e={type:"",parameters:{}},n=t.trim().split(";");return e.type=n.shift().trim(),n.forEach((function(t){var n=t.trim().split("=");if(n.length>1){var i=n[0].replace(/"/g,"").trim(),r=n[1].replace(/"/g,"").trim();e.parameters[i]=r}})),e},Jl=function(t){return/mp4a\.\d+.\d+/i.test(t)},Zl=function(t){return/avc1\.[\da-f]+/i.test(t)},tu=function(t,e,n){if("undefined"===typeof e||null===e||!t.length)return[];var i=Math.ceil(9e4*(e-n+3)),r=void 0;for(r=0;r<t.length;r++)if(t[r].pts>i)break;return t.slice(r)},eu=function(t,e,n){if(!e.length)return t;if(n)return e.slice();var i=e[0].pts,r=0;for(r;r<t.length;r++)if(t[r].pts>=i)break;return t.slice(0,r).concat(e)},nu=function(t,e,n,i){var r=Math.ceil(9e4*(e-i)),a=Math.ceil(9e4*(n-i)),o=t.slice(),s=t.length;while(s--)if(t[s].pts<=a)break;if(-1===s)return o;var l=s+1;while(l--)if(t[l].pts<=r)break;return l=Math.max(l,0),o.splice(l,s-l+1),o},iu=function(t,e,n){var i=null,r=null,a=0,o=[],s=[];if(!t&&!e)return Zo.createTimeRange();if(!t)return e.buffered;if(!e)return t.buffered;if(n)return t.buffered;if(0===t.buffered.length&&0===e.buffered.length)return Zo.createTimeRange();var l=t.buffered,u=e.buffered,c=l.length;while(c--)o.push({time:l.start(c),type:"start"}),o.push({time:l.end(c),type:"end"});c=u.length;while(c--)o.push({time:u.start(c),type:"start"}),o.push({time:u.end(c),type:"end"});for(o.sort((function(t,e){return t.time-e.time})),c=0;c<o.length;c++)"start"===o[c].type?(a++,2===a&&(i=o[c].time)):"end"===o[c].type&&(a--,1===a&&(r=o[c].time)),null!==i&&null!==r&&(s.push([i,r]),i=null,r=null);return Zo.createTimeRanges(s)},ru=9e4,au=function(t,e){var n=t.addSourceBuffer(e),i=Object.create(null);i.updating=!1,i.realBuffer_=n;var r=function(t){"function"===typeof n[t]?i[t]=function(){return n[t].apply(n,arguments)}:"undefined"===typeof i[t]&&Object.defineProperty(i,t,{get:function(){return n[t]},set:function(e){return n[t]=e}})};for(var a in n)r(a);return i},ou=function(t){function e(t,n){rs(this,e);var i=ls(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Zo.EventTarget));i.timestampOffset_=0,i.pendingBuffers_=[],i.bufferUpdating_=!1,i.mediaSource_=t,i.codecs_=n,i.audioCodec_=null,i.videoCodec_=null,i.audioDisabled_=!1,i.appendAudioInitSegment_=!0,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=Zo.browser.IE_VERSION>=11;var r={remux:!1,alignGopsAtEnd:i.safeAppend_};return i.codecs_.forEach((function(t){Jl(t)?i.audioCodec_=t:Zl(t)&&(i.videoCodec_=t)})),i.transmuxer_=new Hl,i.transmuxer_.postMessage({action:"init",options:r}),i.transmuxer_.onmessage=function(t){return"data"===t.data.action?i.data_(t):"done"===t.data.action?i.done_(t):"gopInfo"===t.data.action?i.appendGopInfo_(t):"videoSegmentTimingInfo"===t.data.action?i.videoSegmentTimingInfo_(t.data.videoSegmentTimingInfo):void 0},Object.defineProperty(i,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(t){"number"===typeof t&&t>=0&&(this.timestampOffset_=t,this.appendAudioInitSegment_=!0,this.gopBuffer_.length=0,this.timeMapping_=0,this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:t}))}}),Object.defineProperty(i,"appendWindowStart",{get:function(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function(t){this.videoBuffer_&&(this.videoBuffer_.appendWindowStart=t),this.audioBuffer_&&(this.audioBuffer_.appendWindowStart=t)}}),Object.defineProperty(i,"updating",{get:function(){return!!(this.bufferUpdating_||!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.updating||this.videoBuffer_&&this.videoBuffer_.updating)}}),Object.defineProperty(i,"buffered",{get:function(){return iu(this.videoBuffer_,this.audioBuffer_,this.audioDisabled_)}}),i}return ss(e,t),as(e,[{key:"data_",value:function(t){var e=t.data.segment;e.data=new Uint8Array(e.data,t.data.byteOffset,t.data.byteLength),e.initSegment=new Uint8Array(e.initSegment.data,e.initSegment.byteOffset,e.initSegment.byteLength),Sl(this,this.mediaSource_,e),this.pendingBuffers_.push(e)}},{key:"done_",value:function(t){"closed"!==this.mediaSource_.readyState?this.processPendingSegments_():this.pendingBuffers_.length=0}},{key:"videoSegmentTimingInfo_",value:function(t){var e={start:{decode:t.start.dts/ru,presentation:t.start.pts/ru},end:{decode:t.end.dts/ru,presentation:t.end.pts/ru},baseMediaDecodeTime:t.baseMediaDecodeTime/ru};t.prependedContentDuration&&(e.prependedContentDuration=t.prependedContentDuration/ru),this.trigger({type:"videoSegmentTimingInfo",videoSegmentTimingInfo:e})}},{key:"createRealSourceBuffers_",value:function(){var t=this,e=["audio","video"];e.forEach((function(n){if(t[n+"Codec_"]&&!t[n+"Buffer_"]){var i=null;if(t.mediaSource_[n+"Buffer_"])i=t.mediaSource_[n+"Buffer_"],i.updating=!1;else{var r=n+"Codec_",a=n+'/mp4;codecs="'+t[r]+'"';i=au(t.mediaSource_.nativeMediaSource_,a),t.mediaSource_[n+"Buffer_"]=i}t[n+"Buffer_"]=i,["update","updatestart","updateend"].forEach((function(r){i.addEventListener(r,(function(){if("audio"!==n||!t.audioDisabled_){"updateend"===r&&(t[n+"Buffer_"].updating=!1);var i=e.every((function(e){return!("audio"!==e||!t.audioDisabled_)||(n===e||!t[e+"Buffer_"]||!t[e+"Buffer_"].updating)}));return i?t.trigger(r):void 0}}))}))}}))}},{key:"appendBuffer",value:function(t){if(this.bufferUpdating_=!0,this.audioBuffer_&&this.audioBuffer_.buffered.length){var e=this.audioBuffer_.buffered;this.transmuxer_.postMessage({action:"setAudioAppendStart",appendStart:e.end(e.length-1)})}this.videoBuffer_&&this.transmuxer_.postMessage({action:"alignGopsWith",gopsToAlignWith:tu(this.gopBuffer_,this.mediaSource_.player_?this.mediaSource_.player_.currentTime():null,this.timeMapping_)}),this.transmuxer_.postMessage({action:"push",data:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength},[t.buffer]),this.transmuxer_.postMessage({action:"flush"})}},{key:"appendGopInfo_",value:function(t){this.gopBuffer_=eu(this.gopBuffer_,t.data.gopInfo,this.safeAppend_)}},{key:"remove",value:function(t,e){if(this.videoBuffer_&&(this.videoBuffer_.updating=!0,this.videoBuffer_.remove(t,e),this.gopBuffer_=nu(this.gopBuffer_,t,e,this.timeMapping_)),!this.audioDisabled_&&this.audioBuffer_&&(this.audioBuffer_.updating=!0,this.audioBuffer_.remove(t,e)),Cl(t,e,this.metadataTrack_),this.inbandTextTracks_)for(var n in this.inbandTextTracks_)Cl(t,e,this.inbandTextTracks_[n])}},{key:"processPendingSegments_",value:function(){var t={video:{segments:[],bytes:0},audio:{segments:[],bytes:0},captions:[],metadata:[]};if(!this.pendingBuffers_.length)return this.trigger("updateend"),void(this.bufferUpdating_=!1);t=this.pendingBuffers_.reduce((function(t,e){var n=e.type,i=e.data,r=e.initSegment;return t[n].segments.push(i),t[n].bytes+=i.byteLength,t[n].initSegment=r,e.captions&&(t.captions=t.captions.concat(e.captions)),e.info&&(t[n].info=e.info),e.metadata&&(t.metadata=t.metadata.concat(e.metadata)),t}),t),this.videoBuffer_||this.audioBuffer_||(0===t.video.bytes&&(this.videoCodec_=null),0===t.audio.bytes&&(this.audioCodec_=null),this.createRealSourceBuffers_()),t.audio.info&&this.mediaSource_.trigger({type:"audioinfo",info:t.audio.info}),t.video.info&&this.mediaSource_.trigger({type:"videoinfo",info:t.video.info}),this.appendAudioInitSegment_&&(!this.audioDisabled_&&this.audioBuffer_&&(t.audio.segments.unshift(t.audio.initSegment),t.audio.bytes+=t.audio.initSegment.byteLength),this.appendAudioInitSegment_=!1);var e=!1;this.videoBuffer_&&t.video.bytes?(t.video.segments.unshift(t.video.initSegment),t.video.bytes+=t.video.initSegment.byteLength,this.concatAndAppendSegments_(t.video,this.videoBuffer_)):!this.videoBuffer_||!this.audioDisabled_&&this.audioBuffer_||(e=!0),kl(this,t.captions,t.metadata),!this.audioDisabled_&&this.audioBuffer_&&this.concatAndAppendSegments_(t.audio,this.audioBuffer_),this.pendingBuffers_.length=0,e&&this.trigger("updateend"),this.bufferUpdating_=!1}},{key:"concatAndAppendSegments_",value:function(t,e){var n=0,i=void 0;if(t.bytes){i=new Uint8Array(t.bytes),t.segments.forEach((function(t){i.set(t,n),n+=t.byteLength}));try{e.updating=!0,e.appendBuffer(i)}catch(r){this.mediaSource_.player_&&this.mediaSource_.player_.error({code:-3,type:"APPEND_BUFFER_ERR",message:r.message,originalError:r})}}}},{key:"abort",value:function(){this.videoBuffer_&&this.videoBuffer_.abort(),!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"reset"}),this.pendingBuffers_.length=0,this.bufferUpdating_=!1}}]),e}(Zo.EventTarget),su=function(t){function e(){rs(this,e);var t=ls(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),n=void 0;for(n in t.nativeMediaSource_=new o.a.MediaSource,t.nativeMediaSource_)n in e.prototype||"function"!==typeof t.nativeMediaSource_[n]||(t[n]=t.nativeMediaSource_[n].bind(t.nativeMediaSource_));return t.duration_=NaN,Object.defineProperty(t,"duration",{get:function(){return this.duration_===1/0?this.duration_:this.nativeMediaSource_.duration},set:function(t){this.duration_=t,t===1/0||(this.nativeMediaSource_.duration=t)}}),Object.defineProperty(t,"seekable",{get:function(){return this.duration_===1/0?Zo.createTimeRanges([[0,this.nativeMediaSource_.duration]]):this.nativeMediaSource_.seekable}}),Object.defineProperty(t,"readyState",{get:function(){return this.nativeMediaSource_.readyState}}),Object.defineProperty(t,"activeSourceBuffers",{get:function(){return this.activeSourceBuffers_}}),t.sourceBuffers=[],t.activeSourceBuffers_=[],t.updateActiveSourceBuffers_=function(){if(t.activeSourceBuffers_.length=0,1===t.sourceBuffers.length){var e=t.sourceBuffers[0];return e.appendAudioInitSegment_=!0,e.audioDisabled_=!e.audioCodec_,void t.activeSourceBuffers_.push(e)}for(var n=!1,i=!0,r=0;r<t.player_.audioTracks().length;r++){var a=t.player_.audioTracks()[r];if(a.enabled&&"main"!==a.kind){n=!0,i=!1;break}}t.sourceBuffers.forEach((function(e,r){if(e.appendAudioInitSegment_=!0,e.videoCodec_&&e.audioCodec_)e.audioDisabled_=n;else if(e.videoCodec_&&!e.audioCodec_)e.audioDisabled_=!0,i=!1;else if(!e.videoCodec_&&e.audioCodec_&&(e.audioDisabled_=r?i:!i,e.audioDisabled_))return;t.activeSourceBuffers_.push(e)}))},t.onPlayerMediachange_=function(){t.sourceBuffers.forEach((function(t){t.appendAudioInitSegment_=!0}))},t.onHlsReset_=function(){t.sourceBuffers.forEach((function(t){t.transmuxer_&&t.transmuxer_.postMessage({action:"resetCaptions"})}))},t.onHlsSegmentTimeMapping_=function(e){t.sourceBuffers.forEach((function(t){return t.timeMapping_=e.mapping}))},["sourceopen","sourceclose","sourceended"].forEach((function(t){this.nativeMediaSource_.addEventListener(t,this.trigger.bind(this))}),t),t.on("sourceopen",(function(e){var n=l.a.querySelector('[src="'+t.url_+'"]');n&&(t.player_=Zo(n.parentNode),t.player_&&(t.player_.tech_.on("hls-reset",t.onHlsReset_),t.player_.tech_.on("hls-segment-time-mapping",t.onHlsSegmentTimeMapping_),t.player_.audioTracks&&t.player_.audioTracks()&&(t.player_.audioTracks().on("change",t.updateActiveSourceBuffers_),t.player_.audioTracks().on("addtrack",t.updateActiveSourceBuffers_),t.player_.audioTracks().on("removetrack",t.updateActiveSourceBuffers_)),t.player_.on("mediachange",t.onPlayerMediachange_)))})),t.on("sourceended",(function(e){for(var n=Ml(t.duration),i=0;i<t.sourceBuffers.length;i++){var r=t.sourceBuffers[i],a=r.metadataTrack_&&r.metadataTrack_.cues;a&&a.length&&(a[a.length-1].endTime=n)}})),t.on("sourceclose",(function(t){this.sourceBuffers.forEach((function(t){t.transmuxer_&&t.transmuxer_.terminate()})),this.sourceBuffers.length=0,this.player_&&(this.player_.audioTracks&&this.player_.audioTracks()&&(this.player_.audioTracks().off("change",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("addtrack",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("removetrack",this.updateActiveSourceBuffers_)),this.player_.el_&&this.player_.off("mediachange",this.onPlayerMediachange_),this.player_.tech_&&this.player_.tech_.el_&&(this.player_.tech_.off("hls-reset",this.onHlsReset_),this.player_.tech_.off("hls-segment-time-mapping",this.onHlsSegmentTimeMapping_)))})),t}return ss(e,t),as(e,[{key:"addSeekableRange_",value:function(t,e){var n=void 0;if(this.duration!==1/0)throw n=new Error("MediaSource.addSeekableRange() can only be invoked when the duration is Infinity"),n.name="InvalidStateError",n.code=11,n;(e>this.nativeMediaSource_.duration||isNaN(this.nativeMediaSource_.duration))&&(this.nativeMediaSource_.duration=e)}},{key:"addSourceBuffer",value:function(t){var e=void 0,n=Xl(t);if(/^(video|audio)\/mp2t$/i.test(n.type)){var i=[];n.parameters&&n.parameters.codecs&&(i=n.parameters.codecs.split(","),i=zl(i),i=i.filter((function(t){return Jl(t)||Zl(t)}))),0===i.length&&(i=["avc1.4d400d","mp4a.40.2"]),e=new ou(this,i),0!==this.sourceBuffers.length&&(this.sourceBuffers[0].createRealSourceBuffers_(),e.createRealSourceBuffers_(),this.sourceBuffers[0].audioDisabled_=!0)}else e=this.nativeMediaSource_.addSourceBuffer(t);return this.sourceBuffers.push(e),e}}]),e}(Zo.EventTarget),lu=0;Zo.mediaSources={};var uu=function(t,e){var n=Zo.mediaSources[t];if(!n)throw new Error("Media Source not found (Video.js)");n.trigger({type:"sourceopen",swfId:e})},cu=function(){return!!o.a.MediaSource&&!!o.a.MediaSource.isTypeSupported&&o.a.MediaSource.isTypeSupported('video/mp4;codecs="avc1.4d400d,mp4a.40.2"')},du=function(){if(this.MediaSource={open:uu,supportsNativeMediaSources:cu},cu())return new su;throw new Error("Cannot use create a virtual MediaSource for this video")};du.open=uu,du.supportsNativeMediaSources=cu;var hu={createObjectURL:function(t){var e="blob:vjs-media-source/",n=void 0;return t instanceof su?(n=o.a.URL.createObjectURL(t.nativeMediaSource_),t.url_=n,n):t instanceof su?(n=e+lu,lu++,Zo.mediaSources[n]=t,n):(n=o.a.URL.createObjectURL(t),t.url_=n,n)}};Zo.MediaSource=du,Zo.URL=hu;var fu=Zo.EventTarget,pu=Zo.mergeOptions,gu=function(t,e){for(var n=void 0,i=pu(t,{duration:e.duration,minimumUpdatePeriod:e.minimumUpdatePeriod}),r=0;r<e.playlists.length;r++){var a=ms(i,e.playlists[r]);a?i=a:n=!0}return fs(e,(function(t,e,r,a){if(t.playlists&&t.playlists.length){var o=t.playlists[0].uri,s=ms(i,t.playlists[0]);s&&(i=s,i.mediaGroups[e][r][a].playlists[0]=i.playlists[o],n=!1)}})),n?null:i},mu=function(t){var e=t.byterange.offset+t.byterange.length-1;return t.uri+"-"+t.byterange.offset+"-"+e},vu=function(t,e){var n=Boolean(!t.map&&!e.map),i=n||Boolean(t.map&&e.map&&t.map.byterange.offset===e.map.byterange.offset&&t.map.byterange.length===e.map.byterange.length);return i&&t.uri===e.uri&&t.byterange.offset===e.byterange.offset&&t.byterange.length===e.byterange.length},yu=function(t,e){var n={};for(var i in t){var r=t[i],a=r.sidx;if(a){var o=mu(a);if(!e[o])break;var s=e[o].sidxInfo;vu(s,a)&&(n[o]=e[o])}}return n},Au=function(t,e,n,i){var r=jt(t,{manifestUri:e,clientOffset:n}),a=yu(r.playlists,i),o=a;return fs(r,(function(t,e,n,r){if(t.playlists&&t.playlists.length){var a=t.playlists;o=pu(o,yu(a,i))}})),o},bu=function(t,e,n,i,r){var a={uri:is(i.handleManifestRedirects,t.resolvedUri),byterange:t.byterange,playlist:e},o=Zo.mergeOptions(a,{responseType:"arraybuffer",headers:$s(a)});return n(o,r)},_u=function(t){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments[3];rs(this,e);var a=ls(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),o=i.withCredentials,s=void 0!==o&&o,l=i.handleManifestRedirects,u=void 0!==l&&l;if(a.hls_=n,a.withCredentials=s,a.handleManifestRedirects=u,!t)throw new Error("A non-empty playlist URL or playlist is required");return a.on("minimumUpdatePeriod",(function(){a.refreshXml_()})),a.on("mediaupdatetimeout",(function(){a.refreshMedia_(a.media().uri)})),a.state="HAVE_NOTHING",a.loadedPlaylists_={},"string"===typeof t?(a.srcUrl=t,a.sidxMapping_={},ls(a)):(a.setupChildLoader(r,t),a)}return ss(e,t),as(e,[{key:"setupChildLoader",value:function(t,e){this.masterPlaylistLoader_=t,this.childPlaylist_=e}},{key:"dispose",value:function(){this.stopRequest(),this.loadedPlaylists_={},o.a.clearTimeout(this.minimumUpdatePeriodTimeout_),o.a.clearTimeout(this.mediaRequest_),o.a.clearTimeout(this.mediaUpdateTimeout)}},{key:"hasPendingRequest",value:function(){return this.request||this.mediaRequest_}},{key:"stopRequest",value:function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}}},{key:"sidxRequestFinished_",value:function(t,e,n,i){var r=this;return function(a,o){if(r.request){if(r.request=null,a)return r.error={status:o.status,message:"DASH playlist request error at URL: "+t.uri,response:o.response,code:2},n&&(r.state=n),r.trigger("error"),i(e,null);var s=new Uint8Array(o.response),l=zt.a.parseSidx(s.subarray(8));return i(e,l)}}}},{key:"media",value:function(t){var e=this;if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"===typeof t){if(!this.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.master.playlists[t]}var i=!this.media_||t.uri!==this.media_.uri;if(i&&this.loadedPlaylists_[t.uri]&&this.loadedPlaylists_[t.uri].endList)return this.state="HAVE_METADATA",this.media_=t,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));if(i)if(this.media_&&this.trigger("mediachanging"),t.sidx){var r=void 0,a=void 0;this.masterPlaylistLoader_?(r=this.masterPlaylistLoader_.master,a=this.masterPlaylistLoader_.sidxMapping_):(r=this.master,a=this.sidxMapping_);var s=mu(t.sidx);a[s]={sidxInfo:t.sidx},this.request=bu(t.sidx,t,this.hls_.xhr,{handleManifestRedirects:this.handleManifestRedirects},this.sidxRequestFinished_(t,r,n,(function(i,r){if(!i||!r)throw new Error("failed to request sidx");a[s].sidx=r,e.haveMetadata({startingState:n,playlist:i.playlists[t.uri]})})))}else this.mediaRequest_=o.a.setTimeout(this.haveMetadata.bind(this,{startingState:n,playlist:t}),0)}},{key:"haveMetadata",value:function(t){var e=t.startingState,n=t.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.uri]=n,this.mediaRequest_=null,this.refreshMedia_(n.uri),"HAVE_MASTER"===e?this.trigger("loadedmetadata"):this.trigger("mediachange")}},{key:"pause",value:function(){this.stopRequest(),o.a.clearTimeout(this.mediaUpdateTimeout),o.a.clearTimeout(this.minimumUpdatePeriodTimeout_),"HAVE_NOTHING"===this.state&&(this.started=!1)}},{key:"load",value:function(t){var e=this;o.a.clearTimeout(this.mediaUpdateTimeout),o.a.clearTimeout(this.minimumUpdatePeriodTimeout_);var n=this.media();if(t){var i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=o.a.setTimeout((function(){return e.load()}),i)}else this.started?this.trigger("loadedplaylist"):this.start()}},{key:"parseMasterXml",value:function(){var t=jt(this.masterXml_,{manifestUri:this.srcUrl,clientOffset:this.clientOffset_,sidxMapping:this.sidxMapping_});t.uri=this.srcUrl;for(var e=0;e<t.playlists.length;e++){var n="placeholder-uri-"+e;t.playlists[e].uri=n,t.playlists[n]=t.playlists[e]}return fs(t,(function(e,n,i,r){if(e.playlists&&e.playlists.length){var a="placeholder-uri-"+n+"-"+i+"-"+r;e.playlists[0].uri=a,t.playlists[a]=e.playlists[0]}})),vs(t),ys(t),t}},{key:"start",value:function(){var t=this;this.started=!0,this.masterPlaylistLoader_?this.mediaRequest_=o.a.setTimeout(this.haveMaster_.bind(this),0):this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},(function(e,n){if(t.request){if(t.request=null,e)return t.error={status:n.status,message:"DASH playlist request error at URL: "+t.srcUrl,responseText:n.responseText,code:2},"HAVE_NOTHING"===t.state&&(t.started=!1),t.trigger("error");t.masterXml_=n.responseText,n.responseHeaders&&n.responseHeaders.date?t.masterLoaded_=Date.parse(n.responseHeaders.date):t.masterLoaded_=Date.now(),t.srcUrl=is(t.handleManifestRedirects,t.srcUrl,n),t.syncClientServerClock_(t.onClientServerClockSync_.bind(t))}}))}},{key:"syncClientServerClock_",value:function(t){var e=this,n=Ht(this.masterXml_);return null===n?(this.clientOffset_=this.masterLoaded_-Date.now(),t()):"DIRECT"===n.method?(this.clientOffset_=n.value-Date.now(),t()):void(this.request=this.hls_.xhr({uri:ns(this.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},(function(i,r){if(e.request){if(i)return e.clientOffset_=e.masterLoaded_-Date.now(),t();var a=void 0;a="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):e.masterLoaded_:Date.parse(r.responseText),e.clientOffset_=a-Date.now(),t()}})))}},{key:"haveMaster_",value:function(){this.state="HAVE_MASTER",this.mediaRequest_=null,this.masterPlaylistLoader_?this.media_||this.media(this.childPlaylist_):(this.master=this.parseMasterXml(),this.trigger("loadedplaylist"))}},{key:"onClientServerClockSync_",value:function(){var t=this;this.haveMaster_(),this.hasPendingRequest()||this.media_||this.media(this.master.playlists[0]),this.master&&this.master.minimumUpdatePeriod&&(this.minimumUpdatePeriodTimeout_=o.a.setTimeout((function(){t.trigger("minimumUpdatePeriod")}),this.master.minimumUpdatePeriod))}},{key:"refreshXml_",value:function(){var t=this;this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},(function(e,n){if(t.request){if(t.request=null,e)return t.error={status:n.status,message:"DASH playlist request error at URL: "+t.srcUrl,responseText:n.responseText,code:2},"HAVE_NOTHING"===t.state&&(t.started=!1),t.trigger("error");t.masterXml_=n.responseText,t.sidxMapping_=Au(t.masterXml_,t.srcUrl,t.clientOffset_,t.sidxMapping_);var i=t.parseMasterXml(),r=gu(t.master,i),a=t.media().sidx;if(r)if(a){var s=mu(a);if(!t.sidxMapping_[s]){var l=t.media();t.request=bu(l.sidx,l,t.hls_.xhr,{handleManifestRedirects:t.handleManifestRedirects},t.sidxRequestFinished_(l,i,t.state,(function(e,n){if(!e||!n)throw new Error("failed to request sidx on minimumUpdatePeriod");t.sidxMapping_[s].sidx=n,t.minimumUpdatePeriodTimeout_=o.a.setTimeout((function(){t.trigger("minimumUpdatePeriod")}),t.master.minimumUpdatePeriod),t.refreshMedia_(t.media().uri)})))}}else t.master=r;t.minimumUpdatePeriodTimeout_=o.a.setTimeout((function(){t.trigger("minimumUpdatePeriod")}),t.master.minimumUpdatePeriod)}}))}},{key:"refreshMedia_",value:function(t){var e=this;if(!t)throw new Error("refreshMedia_ must take a media uri");var n=void 0,i=void 0;this.masterPlaylistLoader_?(n=this.masterPlaylistLoader_.master,i=this.masterPlaylistLoader_.parseMasterXml()):(n=this.master,i=this.parseMasterXml());var r=gu(n,i);r?(this.masterPlaylistLoader_?this.masterPlaylistLoader_.master=r:this.master=r,this.media_=r.playlists[t]):(this.media_=i.playlists[t],this.trigger("playlistunchanged")),this.media().endList||(this.mediaUpdateTimeout=o.a.setTimeout((function(){e.trigger("mediaupdatetimeout")}),As(this.media(),!!r))),this.trigger("loadedplaylist")}}]),e}(fu),wu=function(t){return Zo.log.debug?Zo.log.debug.bind(Zo,"VHS:",t+" >"):function(){}};function xu(){}var Su=function(){function t(e,n,i,r){rs(this,t),this.callbacks_=[],this.pendingCallback_=null,this.timestampOffset_=0,this.mediaSource=e,this.processedAppend_=!1,this.type_=i,this.mimeType_=n,this.logger_=wu("SourceUpdater["+i+"]["+n+"]"),"closed"===e.readyState?e.addEventListener("sourceopen",this.createSourceBuffer_.bind(this,n,r)):this.createSourceBuffer_(n,r)}return as(t,[{key:"createSourceBuffer_",value:function(t,e){var n=this;this.sourceBuffer_=this.mediaSource.addSourceBuffer(t),this.logger_("created SourceBuffer"),e&&(e.trigger("sourcebufferadded"),this.mediaSource.sourceBuffers.length<2)?e.on("sourcebufferadded",(function(){n.start_()})):this.start_()}},{key:"start_",value:function(){var t=this;this.started_=!0,this.onUpdateendCallback_=function(){var e=t.pendingCallback_;t.pendingCallback_=null,t.sourceBuffer_.removing=!1,t.logger_("buffered ["+_l(t.buffered())+"]"),e&&e(),t.runCallback_()},this.sourceBuffer_.addEventListener("updateend",this.onUpdateendCallback_),this.runCallback_()}},{key:"abort",value:function(t){var e=this;this.processedAppend_&&this.queueCallback_((function(){e.sourceBuffer_.abort()}),t)}},{key:"appendBuffer",value:function(t,e){var n=this;this.processedAppend_=!0,this.queueCallback_((function(){t.videoSegmentTimingInfoCallback&&n.sourceBuffer_.addEventListener("videoSegmentTimingInfo",t.videoSegmentTimingInfoCallback),n.sourceBuffer_.appendBuffer(t.bytes)}),(function(){t.videoSegmentTimingInfoCallback&&n.sourceBuffer_.removeEventListener("videoSegmentTimingInfo",t.videoSegmentTimingInfoCallback),e()}))}},{key:"buffered",value:function(){return this.sourceBuffer_?this.sourceBuffer_.buffered:Zo.createTimeRanges()}},{key:"remove",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xu;this.processedAppend_&&this.queueCallback_((function(){n.logger_("remove ["+t+" => "+e+"]"),n.sourceBuffer_.removing=!0,n.sourceBuffer_.remove(t,e)}),i)}},{key:"updating",value:function(){return!this.sourceBuffer_||this.sourceBuffer_.updating||!!this.pendingCallback_&&this.pendingCallback_!==xu}},{key:"timestampOffset",value:function(t){var e=this;return"undefined"!==typeof t&&(this.queueCallback_((function(){e.sourceBuffer_.timestampOffset=t,e.runCallback_()})),this.timestampOffset_=t),this.timestampOffset_}},{key:"queueCallback_",value:function(t,e){this.callbacks_.push([t.bind(this),e]),this.runCallback_()}},{key:"runCallback_",value:function(){var t=void 0;!this.updating()&&this.callbacks_.length&&this.started_&&(t=this.callbacks_.shift(),this.pendingCallback_=t[1],t[0]())}},{key:"dispose",value:function(){var t=this,e=function e(){t.sourceBuffer_&&"open"===t.mediaSource.readyState&&t.sourceBuffer_.abort(),t.sourceBuffer_.removeEventListener("updateend",e)};this.sourceBuffer_.removeEventListener("updateend",this.onUpdateendCallback_),this.sourceBuffer_.removing?this.sourceBuffer_.addEventListener("updateend",e):e()}}]),t}(),Cu={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,BUFFER_LOW_WATER_LINE_RATE:1},Tu={FAILURE:2,TIMEOUT:-101,ABORTED:-102},Mu=function(t){t.forEach((function(t){t.abort()}))},ku=function(t){return{bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}},Lu=function(t){var e=t.target,n=Date.now()-e.requestTime,i={bandwidth:1/0,bytesReceived:0,roundTripTime:n||0};return i.bytesReceived=t.loaded,i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8*1e3),i},Du=function(t,e){return e.timedout?{status:e.status,message:"HLS request timed-out at URL: "+e.uri,code:Tu.TIMEOUT,xhr:e}:e.aborted?{status:e.status,message:"HLS request aborted at URL: "+e.uri,code:Tu.ABORTED,xhr:e}:t?{status:e.status,message:"HLS request errored at URL: "+e.uri,code:Tu.FAILURE,xhr:e}:null},Eu=function(t,e){return function(n,i){var r=i.response,a=Du(n,i);if(a)return e(a,t);if(16!==r.byteLength)return e({status:i.status,message:"Invalid HLS key at URL: "+i.uri,code:Tu.FAILURE,xhr:i},t);var o=new DataView(r);return t.key.bytes=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]),e(null,t)}},Bu=function(t,e,n){return function(i,r){var a=r.response,o=Du(i,r);return o?n(o,t):0===a.byteLength?n({status:r.status,message:"Empty HLS segment content at URL: "+r.uri,code:Tu.FAILURE,xhr:r},t):(t.map.bytes=new Uint8Array(r.response),e&&!e.isInitialized()&&e.init(),t.map.timescales=Vt.a.timescale(t.map.bytes),t.map.videoTrackIds=Vt.a.videoTrackIds(t.map.bytes),n(null,t))}},Iu=function(t,e,n){return function(i,r){var a=r.response,o=Du(i,r),s=void 0;return o?n(o,t):0===a.byteLength?n({status:r.status,message:"Empty HLS segment content at URL: "+r.uri,code:Tu.FAILURE,xhr:r},t):(t.stats=ku(r),t.key?t.encryptedBytes=new Uint8Array(r.response):t.bytes=new Uint8Array(r.response),e&&t.map&&t.map.bytes&&(e.isInitialized()||e.init(),s=e.parse(t.bytes,t.map.videoTrackIds,t.map.timescales),s&&s.captions&&(t.captionStreams=s.captionStreams,t.fmp4Captions=s.captions)),n(null,t))}},Ou=function(t,e,n){var i=function i(r){if(r.data.source===e.requestId){t.removeEventListener("message",i);var a=r.data.decrypted;return e.bytes=new Uint8Array(a.bytes,a.byteOffset,a.byteLength),n(null,e)}};t.addEventListener("message",i);var r=void 0;r=e.key.bytes.slice?e.key.bytes.slice():new Uint32Array(Array.prototype.slice.call(e.key.bytes)),t.postMessage(Zs({source:e.requestId,encrypted:e.encryptedBytes,key:r,iv:e.key.iv}),[e.encryptedBytes.buffer,r.buffer])},Pu=function(t,e,n){var i=0,r=!1;return function(a,o){if(!r)return a?(r=!0,Mu(t),n(a,o)):(i+=1,i===t.length?(o.endOfAllRequests=Date.now(),o.encryptedBytes?Ou(e,o,n):n(null,o)):void 0)}},Nu=function(t,e){return function(n){return t.stats=Zo.mergeOptions(t.stats,Lu(n)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),e(n,t)}},Fu=function(t,e,n,i,r,a,o){var s=[],l=Pu(s,n,o);if(r.key&&!r.key.bytes){var u=Zo.mergeOptions(e,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),c=Eu(r,l),d=t(u,c);s.push(d)}if(r.map&&!r.map.bytes){var h=Zo.mergeOptions(e,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:$s(r.map)}),f=Bu(r,i,l),p=t(h,f);s.push(p)}var g=Zo.mergeOptions(e,{uri:r.resolvedUri,responseType:"arraybuffer",headers:$s(r)}),m=Iu(r,i,l),v=t(g,m);return v.addEventListener("progress",Nu(r,a)),s.push(v),function(){return Mu(s)}},Uu=function(t,e){var n=void 0;return t?(n=o.a.getComputedStyle(t),n?n[e]:""):""},Ru=function(t,e){var n=t.slice();t.sort((function(t,i){var r=e(t,i);return 0===r?n.indexOf(t)-n.indexOf(i):r}))},ju=function(t,e){var n=void 0,i=void 0;return t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),n=n||o.a.Number.MAX_VALUE,e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||o.a.Number.MAX_VALUE,n-i},Hu=function(t,e){var n=void 0,i=void 0;return t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),n=n||o.a.Number.MAX_VALUE,e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||o.a.Number.MAX_VALUE,n===i&&t.attributes.BANDWIDTH&&e.attributes.BANDWIDTH?t.attributes.BANDWIDTH-e.attributes.BANDWIDTH:n-i},Yu=function(t,e,n,i,r){var a=t.playlists.map((function(t){var e=void 0,n=void 0,i=void 0;return e=t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width,n=t.attributes.RESOLUTION&&t.attributes.RESOLUTION.height,i=t.attributes.BANDWIDTH,i=i||o.a.Number.MAX_VALUE,{bandwidth:i,width:e,height:n,playlist:t}}));Ru(a,(function(t,e){return t.bandwidth-e.bandwidth})),a=a.filter((function(t){return!Qs.isIncompatible(t.playlist)}));var s=a.filter((function(t){return Qs.isEnabled(t.playlist)}));s.length||(s=a.filter((function(t){return!Qs.isDisabled(t.playlist)})));var l=s.filter((function(t){return t.bandwidth*Cu.BANDWIDTH_VARIANCE<e})),u=l[l.length-1],c=l.filter((function(t){return t.bandwidth===u.bandwidth}))[0];if(!1===r){var d=c||s[0]||a[0];return d?d.playlist:null}var h=l.filter((function(t){return t.width&&t.height}));Ru(h,(function(t,e){return t.width-e.width}));var f=h.filter((function(t){return t.width===n&&t.height===i}));u=f[f.length-1];var p=f.filter((function(t){return t.bandwidth===u.bandwidth}))[0],g=void 0,m=void 0,v=void 0;p||(g=h.filter((function(t){return t.width>n||t.height>i})),m=g.filter((function(t){return t.width===g[0].width&&t.height===g[0].height})),u=m[m.length-1],v=m.filter((function(t){return t.bandwidth===u.bandwidth}))[0]);var y=v||p||c||s[0]||a[0];return y?y.playlist:null},zu=function(){return Yu(this.playlists.master,this.systemBandwidth,parseInt(Uu(this.tech_.el(),"width"),10),parseInt(Uu(this.tech_.el(),"height"),10),this.limitRenditionByPlayerDimensions)},Qu=function(t){var e=t.master,n=t.currentTime,i=t.bandwidth,r=t.duration,a=t.segmentDuration,o=t.timeUntilRebuffer,s=t.currentTimeline,l=t.syncController,u=e.playlists.filter((function(t){return!Qs.isIncompatible(t)})),c=u.filter(Qs.isEnabled);c.length||(c=u.filter((function(t){return!Qs.isDisabled(t)})));var d=c.filter(Qs.hasAttribute.bind(null,"BANDWIDTH")),h=d.map((function(t){var e=l.getSyncPoint(t,r,s,n),u=e?1:2,c=Qs.estimateSegmentRequestTime(a,i,t),d=c*u-o;return{playlist:t,rebufferingImpact:d}})),f=h.filter((function(t){return t.rebufferingImpact<=0}));return Ru(f,(function(t,e){return ju(e.playlist,t.playlist)})),f.length?f[0]:(Ru(h,(function(t,e){return t.rebufferingImpact-e.rebufferingImpact})),h[0]||null)},Vu=function(){var t=this.playlists.master.playlists.filter(Qs.isEnabled);Ru(t,(function(t,e){return ju(t,e)}));var e=t.filter((function(t){return Ql(t.attributes.CODECS).videoCodec}));return e[0]||null},Wu=function(t,e,n){for(var i in n)if(!t[i]){e.trigger({type:"usage",name:"hls-608"});var r=e.textTracks().getTrackById(i);t[i]=r||e.addRemoteTextTrack({kind:"captions",id:i,label:i},!1).track}},Gu=function(t){var e=t.inbandTextTracks,n=t.captionArray,i=t.timestampOffset;if(n){var r=window.WebKitDataCue||window.VTTCue;n.forEach((function(t){var n=t.stream,a=t.startTime,o=t.endTime;e[n]&&(a+=i,o+=i,e[n].addCue(new r(a,o,t.text)))}))}},Ku=500,$u=function(t,e,n){if(!t||!e)return!1;var i=t.segments,r=n===i.length;return t.endList&&"open"===e.readyState&&r},qu=function(t){return"number"===typeof t&&isFinite(t)},Xu=function(t,e,n){return"main"===t&&e&&n?n.containsAudio||n.containsVideo?e.containsVideo&&!n.containsVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!e.containsVideo&&n.containsVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null},Ju=function(t,e,n){var i=void 0;return i=t.length&&t.start(0)>0&&t.start(0)<e?t.start(0):e-30,Math.min(i,e-n)},Zu=function(t){var e=t.segment,n=e.start,i=e.end,r=t.playlist,a=r.mediaSequence,o=r.id,s=r.segments,l=void 0===s?[]:s,u=t.mediaIndex,c=t.timeline;return["appending ["+u+"] of ["+a+", "+(a+l.length)+"] from playlist ["+o+"]","["+n+" => "+i+"] in timeline ["+c+"]"].join(" ")},tc=function(t){function e(t){rs(this,e);var n=ls(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(!t)throw new TypeError("Initialization settings are required");if("function"!==typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");return n.bandwidth=t.bandwidth,n.throughput={rate:0,count:0},n.roundTrip=NaN,n.resetStats_(),n.mediaIndex=null,n.hasPlayed_=t.hasPlayed,n.currentTime_=t.currentTime,n.seekable_=t.seekable,n.seeking_=t.seeking,n.duration_=t.duration,n.mediaSource_=t.mediaSource,n.hls_=t.hls,n.loaderType_=t.loaderType,n.startingMedia_=void 0,n.segmentMetadataTrack_=t.segmentMetadataTrack,n.goalBufferLength_=t.goalBufferLength,n.sourceType_=t.sourceType,n.inbandTextTracks_=t.inbandTextTracks,n.state_="INIT",n.checkBufferTimeout_=null,n.error_=void 0,n.currentTimeline_=-1,n.pendingSegment_=null,n.mimeType_=null,n.sourceUpdater_=null,n.xhrOptions_=null,n.activeInitSegmentId_=null,n.initSegments_={},n.cacheEncryptionKeys_=t.cacheEncryptionKeys,n.keyCache_={},"main"===n.loaderType_?n.captionParser_=new Gt.a:n.captionParser_=null,n.decrypter_=t.decrypter,n.syncController_=t.syncController,n.syncPoint_={segmentIndex:0,time:0},n.syncController_.on("syncinfoupdate",(function(){return n.trigger("syncinfoupdate")})),n.mediaSource_.addEventListener("sourceopen",(function(){return n.ended_=!1})),n.fetchAtBuffer_=!1,n.logger_=wu("SegmentLoader["+n.loaderType_+"]"),Object.defineProperty(n,"state",{get:function(){return this.state_},set:function(t){t!==this.state_&&(this.logger_(this.state_+" -> "+t),this.state_=t)}}),n}return ss(e,t),as(e,[{key:"resetStats_",value:function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0}},{key:"dispose",value:function(){this.state="DISPOSED",this.pause(),this.abort_(),this.sourceUpdater_&&this.sourceUpdater_.dispose(),this.resetStats_(),this.captionParser_&&this.captionParser_.reset()}},{key:"abort",value:function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)}},{key:"abort_",value:function(){this.pendingSegment_&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null}},{key:"error",value:function(t){return"undefined"!==typeof t&&(this.error_=t),this.pendingSegment_=null,this.error_}},{key:"endOfStream",value:function(){this.ended_=!0,this.pause(),this.trigger("ended")}},{key:"buffered_",value:function(){return this.sourceUpdater_?this.sourceUpdater_.buffered():Zo.createTimeRanges()}},{key:"initSegment",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return null;var n=tl(t),i=this.initSegments_[n];return e&&!i&&t.bytes&&(this.initSegments_[n]=i={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:t.bytes,timescales:t.timescales,videoTrackIds:t.videoTrackIds}),i||t}},{key:"segmentKey",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return null;var n=el(t),i=this.keyCache_[n];this.cacheEncryptionKeys_&&e&&!i&&t.bytes&&(this.keyCache_[n]=i={resolvedUri:t.resolvedUri,bytes:t.bytes});var r={resolvedUri:(i||t).resolvedUri};return i&&(r.bytes=i.bytes),r}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&(this.sourceUpdater_||this.mimeType_&&"INIT"===this.state)&&!this.paused()}},{key:"load",value:function(){if(this.monitorBuffer_(),this.playlist_){if(this.syncController_.setDateTimeMapping(this.playlist_),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY")}}},{key:"init_",value:function(){return this.state="READY",this.sourceUpdater_=new Su(this.mediaSource_,this.mimeType_,this.loaderType_,this.sourceBufferEmitter_),this.resetEverything(),this.monitorBuffer_()}},{key:"playlist",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t){var n=this.playlist_,i=this.pendingSegment_;this.playlist_=t,this.xhrOptions_=e,this.hasPlayed_()||(t.syncInfo={mediaSequence:t.mediaSequence,time:0});var r=null;if(n&&(n.id?r=n.id:n.uri&&(r=n.uri)),this.logger_("playlist update ["+r+" => "+(t.id||t.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(n&&n.uri===t.uri){var a=t.mediaSequence-n.mediaSequence;this.logger_("live window shift ["+a+"]"),null!==this.mediaIndex&&(this.mediaIndex-=a),i&&(i.mediaIndex-=a,i.mediaIndex>=0&&(i.segment=t.segments[i.mediaIndex])),this.syncController_.saveExpiredSegmentInfo(n,t)}else null!==this.mediaIndex&&this.resyncLoader()}}},{key:"pause",value:function(){this.checkBufferTimeout_&&(o.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}},{key:"paused",value:function(){return null===this.checkBufferTimeout_}},{key:"mimeType",value:function(t,e){this.mimeType_||(this.mimeType_=t,this.sourceBufferEmitter_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_())}},{key:"resetEverything",value:function(t){this.ended_=!1,this.resetLoader(),this.remove(0,this.duration_(),t),this.captionParser_&&this.captionParser_.clearAllCaptions(),this.trigger("reseteverything")}},{key:"resetLoader",value:function(){this.fetchAtBuffer_=!1,this.resyncLoader()}},{key:"resyncLoader",value:function(){this.mediaIndex=null,this.syncPoint_=null,this.abort()}},{key:"remove",value:function(t,e,n){if(this.sourceUpdater_&&this.sourceUpdater_.remove(t,e,n),Cl(t,e,this.segmentMetadataTrack_),this.inbandTextTracks_)for(var i in this.inbandTextTracks_)Cl(t,e,this.inbandTextTracks_[i])}},{key:"monitorBuffer_",value:function(){this.checkBufferTimeout_&&o.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=o.a.setTimeout(this.monitorBufferTick_.bind(this),1)}},{key:"monitorBufferTick_",value:function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&o.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=o.a.setTimeout(this.monitorBufferTick_.bind(this),Ku)}},{key:"fillBuffer_",value:function(){if(!this.sourceUpdater_.updating()){this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var t=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);t&&(this.isEndOfStream_(t.mediaIndex)?this.endOfStream():(t.mediaIndex!==this.playlist_.segments.length-1||"ended"!==this.mediaSource_.readyState||this.seeking_())&&(t.timeline!==this.currentTimeline_&&(this.syncController_.reset(),t.timestampOffset=t.startOfSegment,this.captionParser_&&this.captionParser_.clearAllCaptions()),this.loadSegment_(t)))}}},{key:"isEndOfStream_",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.playlist_;return $u(e,this.mediaSource_,t)&&!this.sourceUpdater_.updating()}},{key:"checkBuffer_",value:function(t,e,n,i,r,a){var o=0,s=void 0;t.length&&(o=t.end(t.length-1));var l=Math.max(0,o-r);if(!e.segments.length)return null;if(l>=this.goalBufferLength_())return null;if(!i&&l>=1)return null;if(null===a)return n=this.getSyncSegmentCandidate_(e),this.generateSegmentInfo_(e,n,null,!0);if(null!==n){e.segments[n];return s=o,this.generateSegmentInfo_(e,n+1,s,!1)}if(this.fetchAtBuffer_){var u=Qs.getMediaInfoForTime(e,o,a.segmentIndex,a.time);n=u.mediaIndex,s=u.startTime}else{var c=Qs.getMediaInfoForTime(e,r,a.segmentIndex,a.time);n=c.mediaIndex,s=c.startTime}return this.generateSegmentInfo_(e,n,s,!1)}},{key:"getSyncSegmentCandidate_",value:function(t){var e=this;if(-1===this.currentTimeline_)return 0;var n=t.segments.map((function(t,e){return{timeline:t.timeline,segmentIndex:e}})).filter((function(t){return t.timeline===e.currentTimeline_}));return n.length?n[Math.min(n.length-1,1)].segmentIndex:Math.max(t.segments.length-1,0)}},{key:"generateSegmentInfo_",value:function(t,e,n,i){if(e<0||e>=t.segments.length)return null;var r=t.segments[e];return{requestId:"segment-loader-"+Math.random(),uri:r.resolvedUri,mediaIndex:e,isSyncRequest:i,startOfSegment:n,playlist:t,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:r.timeline,duration:r.duration,segment:r}}},{key:"abortRequestEarly_",value:function(t){if(this.hls_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return!1;if(Date.now()-(t.firstBytesReceivedAt||Date.now())<1e3)return!1;var e=this.currentTime_(),n=t.bandwidth,i=this.pendingSegment_.duration,r=Qs.estimateSegmentRequestTime(i,n,this.playlist_,t.bytesReceived),a=wl(this.buffered_(),e,this.hls_.tech_.playbackRate())-1;if(r<=a)return!1;var o=Qu({master:this.hls_.playlists.master,currentTime:e,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(o){var s=r-a,l=s-o.rebufferingImpact,u=.5;return a<=gl&&(u=1),!o.playlist||o.playlist.uri===this.playlist_.uri||l<u?!1:(this.bandwidth=o.playlist.attributes.BANDWIDTH*Cu.BANDWIDTH_VARIANCE+1,this.abort(),this.trigger("earlyabort"),!0)}}},{key:"handleProgress_",value:function(t,e){this.pendingSegment_&&e.requestId===this.pendingSegment_.requestId&&!this.abortRequestEarly_(e.stats)&&this.trigger("progress")}},{key:"loadSegment_",value:function(t){this.state="WAITING",this.pendingSegment_=t,this.trimBackBuffer_(t),t.abortRequests=Fu(this.hls_.xhr,this.xhrOptions_,this.decrypter_,this.captionParser_,this.createSimplifiedSegmentObj_(t),this.handleProgress_.bind(this),this.segmentRequestFinished_.bind(this))}},{key:"trimBackBuffer_",value:function(t){var e=Ju(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);e>0&&this.remove(0,e)}},{key:"createSimplifiedSegmentObj_",value:function(t){var e=t.segment,n={resolvedUri:e.resolvedUri,byterange:e.byterange,requestId:t.requestId};if(e.key){var i=e.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);n.key=this.segmentKey(e.key),n.key.iv=i}return e.map&&(n.map=this.initSegment(e.map)),n}},{key:"segmentRequestFinished_",value:function(t,e){if(this.mediaRequests+=1,e.stats&&(this.mediaBytesTransferred+=e.stats.bytesReceived,this.mediaTransferDuration+=e.stats.roundTripTime),this.pendingSegment_){if(e.requestId===this.pendingSegment_.requestId){if(t)return this.pendingSegment_=null,this.state="READY",t.code===Tu.ABORTED?void(this.mediaRequestsAborted+=1):(this.pause(),t.code===Tu.TIMEOUT?(this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,void this.trigger("bandwidthupdate")):(this.mediaRequestsErrored+=1,this.error(t),void this.trigger("error")));this.bandwidth=e.stats.bandwidth,this.roundTrip=e.stats.roundTripTime,e.map&&(e.map=this.initSegment(e.map,!0)),e.key&&this.segmentKey(e.key,!0),this.processSegmentResponse_(e)}}else this.mediaRequestsAborted+=1}},{key:"processSegmentResponse_",value:function(t){var e=this.pendingSegment_;e.bytes=t.bytes,t.map&&(e.segment.map.bytes=t.map.bytes),e.endOfAllRequests=t.endOfAllRequests,t.fmp4Captions&&(Wu(this.inbandTextTracks_,this.hls_.tech_,t.captionStreams),Gu({inbandTextTracks:this.inbandTextTracks_,captionArray:t.fmp4Captions,timestampOffset:0}),this.captionParser_&&this.captionParser_.clearParsedCaptions()),this.handleSegment_()}},{key:"handleSegment_",value:function(){var t=this;if(this.pendingSegment_){var e=this.pendingSegment_,n=e.segment,i=this.syncController_.probeSegmentInfo(e);"undefined"===typeof this.startingMedia_&&i&&(i.containsAudio||i.containsVideo)&&(this.startingMedia_={containsAudio:i.containsAudio,containsVideo:i.containsVideo});var r=Xu(this.loaderType_,this.startingMedia_,i);if(r)return this.error({message:r,blacklistDuration:1/0}),void this.trigger("error");if(e.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");if(null!==e.timestampOffset&&e.timestampOffset!==this.sourceUpdater_.timestampOffset()){if(i&&i.segmentTimestampInfo){var a=i.segmentTimestampInfo[0].ptsTime,o=i.segmentTimestampInfo[0].dtsTime;e.timestampOffset-=a-o}this.sourceUpdater_.timestampOffset(e.timestampOffset),this.trigger("timestampoffset")}var s=this.syncController_.mappingForTimeline(e.timeline);if(null!==s&&this.trigger({type:"segmenttimemapping",mapping:s}),this.state="APPENDING",n.map){var l=tl(n.map);if(!this.activeInitSegmentId_||this.activeInitSegmentId_!==l){var u=this.initSegment(n.map);this.sourceUpdater_.appendBuffer({bytes:u.bytes},(function(){t.activeInitSegmentId_=l}))}}e.byteLength=e.bytes.byteLength,"number"===typeof n.start&&"number"===typeof n.end?this.mediaSecondsLoaded+=n.end-n.start:this.mediaSecondsLoaded+=n.duration,this.logger_(Zu(e)),this.sourceUpdater_.appendBuffer({bytes:e.bytes,videoSegmentTimingInfoCallback:this.handleVideoSegmentTimingInfo_.bind(this,e.requestId)},this.handleUpdateEnd_.bind(this))}else this.state="READY"}},{key:"handleVideoSegmentTimingInfo_",value:function(t,e){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var n=this.pendingSegment_.segment;n.videoTimingInfo||(n.videoTimingInfo={}),n.videoTimingInfo.transmuxerPrependedSeconds=e.videoSegmentTimingInfo.prependedContentDuration||0,n.videoTimingInfo.transmuxedPresentationStart=e.videoSegmentTimingInfo.start.presentation,n.videoTimingInfo.transmuxedPresentationEnd=e.videoSegmentTimingInfo.end.presentation,n.videoTimingInfo.baseMediaDecodeTime=e.videoSegmentTimingInfo.baseMediaDecodeTime}}},{key:"handleUpdateEnd_",value:function(){if(!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var t=this.pendingSegment_,e=t.segment,n=null!==this.mediaIndex;this.pendingSegment_=null,this.recordThroughput_(t),this.addSegmentMetadataCue_(t),this.state="READY",this.mediaIndex=t.mediaIndex,this.fetchAtBuffer_=!0,this.currentTimeline_=t.timeline,this.trigger("syncinfoupdate"),e.end&&this.currentTime_()-e.end>3*t.playlist.targetDuration?this.resetEverything():(n&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.isEndOfStream_(t.mediaIndex+1,t.playlist)&&this.endOfStream(),this.paused()||this.monitorBuffer_())}},{key:"recordThroughput_",value:function(t){var e=this.throughput.rate,n=Date.now()-t.endOfAllRequests+1,i=Math.floor(t.byteLength/n*8*1e3);this.throughput.rate+=(i-e)/++this.throughput.count}},{key:"addSegmentMetadataCue_",value:function(t){if(this.segmentMetadataTrack_){var e=t.segment,n=e.start,i=e.end;if(qu(n)&&qu(i)){Cl(n,i,this.segmentMetadataTrack_);var r=o.a.WebKitDataCue||o.a.VTTCue,a={custom:e.custom,dateTimeObject:e.dateTimeObject,dateTimeString:e.dateTimeString,bandwidth:t.playlist.attributes.BANDWIDTH,resolution:t.playlist.attributes.RESOLUTION,codecs:t.playlist.attributes.CODECS,byteLength:t.byteLength,uri:t.uri,timeline:t.timeline,playlist:t.playlist.uri,start:n,end:i},s=JSON.stringify(a),l=new r(n,i,s);l.value=a,this.segmentMetadataTrack_.addCue(l)}}}}]),e}(Zo.EventTarget),ec=function(t){return decodeURIComponent(escape(String.fromCharCode.apply(null,t)))},nc=new Uint8Array("\n\n".split("").map((function(t){return t.charCodeAt(0)}))),ic=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rs(this,e);var i=ls(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.mediaSource_=null,i.subtitlesTrack_=null,i}return ss(e,t),as(e,[{key:"buffered_",value:function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length)return Zo.createTimeRanges();var t=this.subtitlesTrack_.cues,e=t[0].startTime,n=t[t.length-1].startTime;return Zo.createTimeRanges([[e,n]])}},{key:"initSegment",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return null;var n=tl(t),i=this.initSegments_[n];if(e&&!i&&t.bytes){var r=nc.byteLength+t.bytes.byteLength,a=new Uint8Array(r);a.set(t.bytes),a.set(nc,t.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:a}}return i||t}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}},{key:"init_",value:function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}},{key:"track",value:function(t){return"undefined"===typeof t||(this.subtitlesTrack_=t,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}},{key:"remove",value:function(t,e){Cl(t,e,this.subtitlesTrack_)}},{key:"fillBuffer_",value:function(){var t=this;this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var e=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(e=this.skipEmptySegments_(e),e){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline)){var n=function(){t.state="READY",t.paused()||t.monitorBuffer_()};return this.syncController_.one("timestampoffset",n),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(e)}}},{key:"skipEmptySegments_",value:function(t){while(t&&t.segment.empty)t=this.generateSegmentInfo_(t.playlist,t.mediaIndex+1,t.startOfSegment+t.duration,t.isSyncRequest);return t}},{key:"handleSegment_",value:function(){var t=this;if(this.pendingSegment_&&this.subtitlesTrack_){this.state="APPENDING";var e=this.pendingSegment_,n=e.segment;if("function"!==typeof o.a.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var i=void 0,r=function(){t.subtitlesTrack_.tech_.off("vttjsloaded",i),t.error({message:"Error loading vtt.js"}),t.state="READY",t.pause(),t.trigger("error")};return i=function(){t.subtitlesTrack_.tech_.off("vttjserror",r),t.handleSegment_()},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",i),void this.subtitlesTrack_.tech_.one("vttjserror",r)}n.requested=!0;try{this.parseVTTCues_(e)}catch(Zc){return this.error({message:Zc.message}),this.state="READY",this.pause(),this.trigger("error")}if(this.updateTimeMapping_(e,this.syncController_.timelines[e.timeline],this.playlist_),e.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");e.byteLength=e.bytes.byteLength,this.mediaSecondsLoaded+=n.duration,e.cues.length&&this.remove(e.cues[0].endTime,e.cues[e.cues.length-1].endTime),e.cues.forEach((function(e){t.subtitlesTrack_.addCue(e)})),this.handleUpdateEnd_()}else this.state="READY"}},{key:"parseVTTCues_",value:function(t){var e=void 0,n=!1;"function"===typeof o.a.TextDecoder?e=new o.a.TextDecoder("utf8"):(e=o.a.WebVTT.StringDecoder(),n=!0);var i=new o.a.WebVTT.Parser(o.a,o.a.vttjs,e);if(t.cues=[],t.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=t.cues.push.bind(t.cues),i.ontimestampmap=function(e){return t.timestampmap=e},i.onparsingerror=function(t){Zo.log.warn("Error encountered when parsing cues: "+t.message)},t.segment.map){var r=t.segment.map.bytes;n&&(r=ec(r)),i.parse(r)}var a=t.bytes;n&&(a=ec(a)),i.parse(a),i.flush()}},{key:"updateTimeMapping_",value:function(t,e,n){var i=t.segment;if(e)if(t.cues.length){var r=t.timestampmap,a=r.MPEGTS/9e4-r.LOCAL+e.mapping;if(t.cues.forEach((function(t){t.startTime+=a,t.endTime+=a})),!n.syncInfo){var o=t.cues[0].startTime,s=t.cues[t.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+t.mediaIndex,time:Math.min(o,s-i.duration)}}}else i.empty=!0}}]),e}(tc),rc=function(t,e){for(var n=t.cues,i=0;i<n.length;i++){var r=n[i];if(e>=r.adStartTime&&e<=r.adEndTime)return r}return null},ac=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t.segments)for(var i=n,r=void 0,a=0;a<t.segments.length;a++){var s=t.segments[a];if(r||(r=rc(e,i+s.duration/2)),r){if("cueIn"in s){r.endTime=i,r.adEndTime=i,i+=s.duration,r=null;continue}if(i<r.endTime){i+=s.duration;continue}r.endTime+=s.duration}else if("cueOut"in s&&(r=new o.a.VTTCue(i,i+s.duration,s.cueOut),r.adStartTime=i,r.adEndTime=i+parseFloat(s.cueOut),e.addCue(r)),"cueOutCont"in s){var l=void 0,u=void 0,c=s.cueOutCont.split("/").map(parseFloat),d=us(c,2);l=d[0],u=d[1],r=new o.a.VTTCue(i,i+s.duration,""),r.adStartTime=i-l,r.adEndTime=r.adStartTime+u,e.addCue(r)}i+=s.duration}},oc=$t.a.inspect,sc=[{name:"VOD",run:function(t,e,n,i,r){if(n!==1/0){var a={time:0,segmentIndex:0};return a}return null}},{name:"ProgramDateTime",run:function(t,e,n,i,r){if(!t.datetimeToDisplayTime)return null;var a=e.segments||[],o=null,s=null;r=r||0;for(var l=0;l<a.length;l++){var u=a[l];if(u.dateTimeObject){var c=u.dateTimeObject.getTime()/1e3,d=c+t.datetimeToDisplayTime,h=Math.abs(r-d);if(null!==s&&(0===h||s<h))break;s=h,o={time:d,segmentIndex:l}}}return o}},{name:"Segment",run:function(t,e,n,i,r){var a=e.segments||[],o=null,s=null;r=r||0;for(var l=0;l<a.length;l++){var u=a[l];if(u.timeline===i&&"undefined"!==typeof u.start){var c=Math.abs(r-u.start);if(null!==s&&s<c)break;(!o||null===s||s>=c)&&(s=c,o={time:u.start,segmentIndex:l})}}return o}},{name:"Discontinuity",run:function(t,e,n,i,r){var a=null;if(r=r||0,e.discontinuityStarts&&e.discontinuityStarts.length)for(var o=null,s=0;s<e.discontinuityStarts.length;s++){var l=e.discontinuityStarts[s],u=e.discontinuitySequence+s+1,c=t.discontinuities[u];if(c){var d=Math.abs(r-c.time);if(null!==o&&o<d)break;(!a||null===o||o>=d)&&(o=d,a={time:c.time,segmentIndex:l})}}return a}},{name:"Playlist",run:function(t,e,n,i,r){if(e.syncInfo){var a={time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence};return a}return null}}],lc=function(t){function e(){rs(this,e);var t=ls(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.inspectCache_=void 0,t.timelines=[],t.discontinuities=[],t.datetimeToDisplayTime=null,t.logger_=wu("SyncController"),t}return ss(e,t),as(e,[{key:"getSyncPoint",value:function(t,e,n,i){var r=this.runStrategies_(t,e,n,i);return r.length?this.selectSyncPoint_(r,{key:"time",value:i}):null}},{key:"getExpiredTime",value:function(t,e){if(!t||!t.segments)return null;var n=this.runStrategies_(t,e,t.discontinuitySequence,0);if(!n.length)return null;var i=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return i.segmentIndex>0&&(i.time*=-1),Math.abs(i.time+Ts(t,i.segmentIndex,0))}},{key:"runStrategies_",value:function(t,e,n,i){for(var r=[],a=0;a<sc.length;a++){var o=sc[a],s=o.run(this,t,e,n,i);s&&(s.strategy=o.name,r.push({strategy:o.name,syncPoint:s}))}return r}},{key:"selectSyncPoint_",value:function(t,e){for(var n=t[0].syncPoint,i=Math.abs(t[0].syncPoint[e.key]-e.value),r=t[0].strategy,a=1;a<t.length;a++){var o=Math.abs(t[a].syncPoint[e.key]-e.value);o<i&&(i=o,n=t[a].syncPoint,r=t[a].strategy)}return this.logger_("syncPoint for ["+e.key+": "+e.value+"] chosen with strategy ["+r+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+"]"),n}},{key:"saveExpiredSegmentInfo",value:function(t,e){for(var n=e.mediaSequence-t.mediaSequence,i=n-1;i>=0;i--){var r=t.segments[i];if(r&&"undefined"!==typeof r.start){e.syncInfo={mediaSequence:t.mediaSequence+i,time:r.start},this.logger_("playlist refresh sync: [time:"+e.syncInfo.time+", mediaSequence: "+e.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}}},{key:"setDateTimeMapping",value:function(t){if(!this.datetimeToDisplayTime&&t.segments&&t.segments.length&&t.segments[0].dateTimeObject){var e=t.segments[0].dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-e}}},{key:"reset",value:function(){this.inspectCache_=void 0}},{key:"probeSegmentInfo",value:function(t){var e=t.segment,n=t.playlist,i=void 0;return i=e.map?this.probeMp4Segment_(t):this.probeTsSegment_(t),i&&this.calculateSegmentTimeMapping_(t,i)&&(this.saveDiscontinuitySyncInfo_(t),n.syncInfo||(n.syncInfo={mediaSequence:n.mediaSequence+t.mediaIndex,time:e.start})),i}},{key:"probeMp4Segment_",value:function(t){var e=t.segment,n=Vt.a.timescale(e.map.bytes),i=Vt.a.compositionStartTime(n,t.bytes);return null!==t.timestampOffset&&(t.timestampOffset-=i),{start:i,end:i+e.duration}}},{key:"probeTsSegment_",value:function(t){var e=oc(t.bytes,this.inspectCache_),n=void 0,i=void 0,r=void 0;if(!e)return null;e.video&&2===e.video.length?(this.inspectCache_=e.video[1].dts,n=e.video[0].dtsTime,i=e.video[1].dtsTime,r=e.video):e.audio&&2===e.audio.length&&(this.inspectCache_=e.audio[1].dts,n=e.audio[0].dtsTime,i=e.audio[1].dtsTime,r=e.audio);var a={segmentTimestampInfo:r,start:n,end:i,containsVideo:e.video&&2===e.video.length,containsAudio:e.audio&&2===e.audio.length};return a}},{key:"timestampOffsetForTimeline",value:function(t){return"undefined"===typeof this.timelines[t]?null:this.timelines[t].time}},{key:"mappingForTimeline",value:function(t){return"undefined"===typeof this.timelines[t]?null:this.timelines[t].mapping}},{key:"calculateSegmentTimeMapping_",value:function(t,e){var n=t.segment,i=this.timelines[t.timeline];if(null!==t.timestampOffset)i={time:t.startOfSegment,mapping:t.startOfSegment-e.start},this.timelines[t.timeline]=i,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+t.timeline+": [time: "+i.time+"] [mapping: "+i.mapping+"]"),n.start=t.startOfSegment,n.end=e.end+i.mapping;else{if(!i)return!1;n.start=e.start+i.mapping,n.end=e.end+i.mapping}return!0}},{key:"saveDiscontinuitySyncInfo_",value:function(t){var e=t.playlist,n=t.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(e.discontinuityStarts&&e.discontinuityStarts.length)for(var i=0;i<e.discontinuityStarts.length;i++){var r=e.discontinuityStarts[i],a=e.discontinuitySequence+i+1,o=r-t.mediaIndex,s=Math.abs(o);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>s){var l=void 0;l=o<0?n.start-Ts(e,t.mediaIndex,r):n.end+Ts(e,t.mediaIndex+1,r),this.discontinuities[a]={time:l,accuracy:s}}}}}]),e}(Zo.EventTarget),uc=new Pl("./decrypter-worker.worker.js",(function(t,e){var n=this;(function(){function t(t){return t.subarray(0,t.byteLength-t[t.byteLength-1])}var e=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e},o=function(){var t=[[[],[],[],[],[]],[[],[],[],[],[]]],e=t[0],n=t[1],i=e[4],r=n[4],a=void 0,o=void 0,s=void 0,l=[],u=[],c=void 0,d=void 0,h=void 0,f=void 0,p=void 0,g=void 0;for(a=0;a<256;a++)u[(l[a]=a<<1^283*(a>>7))^a]=a;for(o=s=0;!i[o];o^=c||1,s=u[s]||1)for(f=s^s<<1^s<<2^s<<3^s<<4,f=f>>8^255&f^99,i[o]=f,r[f]=o,h=l[d=l[c=l[o]]],g=16843009*h^65537*d^257*c^16843008*o,p=257*l[f]^16843008*f,a=0;a<4;a++)e[a][o]=p=p<<24^p>>>8,n[a][f]=g=g<<24^g>>>8;for(a=0;a<5;a++)e[a]=e[a].slice(0),n[a]=n[a].slice(0);return t},s=null,l=function(){function t(n){e(this,t),s||(s=o()),this._tables=[[s[0][0].slice(),s[0][1].slice(),s[0][2].slice(),s[0][3].slice(),s[0][4].slice()],[s[1][0].slice(),s[1][1].slice(),s[1][2].slice(),s[1][3].slice(),s[1][4].slice()]];var i=void 0,r=void 0,a=void 0,l=void 0,u=void 0,c=this._tables[0][4],d=this._tables[1],h=n.length,f=1;if(4!==h&&6!==h&&8!==h)throw new Error("Invalid aes key size");for(l=n.slice(0),u=[],this._key=[l,u],i=h;i<4*h+28;i++)a=l[i-1],(i%h===0||8===h&&i%h===4)&&(a=c[a>>>24]<<24^c[a>>16&255]<<16^c[a>>8&255]<<8^c[255&a],i%h===0&&(a=a<<8^a>>>24^f<<24,f=f<<1^283*(f>>7))),l[i]=l[i-h]^a;for(r=0;i;r++,i--)a=l[3&r?i:i-4],u[r]=i<=4||r<4?a:d[0][c[a>>>24]]^d[1][c[a>>16&255]]^d[2][c[a>>8&255]]^d[3][c[255&a]]}return t.prototype.decrypt=function(t,e,n,i,r,a){var o=this._key[1],s=t^o[0],l=i^o[1],u=n^o[2],c=e^o[3],d=void 0,h=void 0,f=void 0,p=o.length/4-2,g=void 0,m=4,v=this._tables[1],y=v[0],A=v[1],b=v[2],_=v[3],w=v[4];for(g=0;g<p;g++)d=y[s>>>24]^A[l>>16&255]^b[u>>8&255]^_[255&c]^o[m],h=y[l>>>24]^A[u>>16&255]^b[c>>8&255]^_[255&s]^o[m+1],f=y[u>>>24]^A[c>>16&255]^b[s>>8&255]^_[255&l]^o[m+2],c=y[c>>>24]^A[s>>16&255]^b[l>>8&255]^_[255&u]^o[m+3],m+=4,s=d,l=h,u=f;for(g=0;g<4;g++)r[(3&-g)+a]=w[s>>>24]<<24^w[l>>16&255]<<16^w[u>>8&255]<<8^w[255&c]^o[m++],d=s,s=l,l=u,u=c,c=d},t}(),u=function(){function t(){e(this,t),this.listeners={}}return t.prototype.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},t.prototype.off=function(t,e){if(!this.listeners[t])return!1;var n=this.listeners[t].indexOf(e);return this.listeners[t].splice(n,1),n>-1},t.prototype.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var n=e.length,i=0;i<n;++i)e[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=e.length,o=0;o<a;++o)e[o].apply(this,r)},t.prototype.dispose=function(){this.listeners={}},t.prototype.pipe=function(t){this.on("data",(function(e){t.push(e)}))},t}(),c=function(t){function n(){e(this,n);var i=a(this,t.call(this,u));return i.jobs=[],i.delay=1,i.timeout_=null,i}return r(n,t),n.prototype.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},n.prototype.push=function(t){this.jobs.push(t),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},n}(u),d=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},h=function(t,e,n){var i=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2),r=new l(Array.prototype.slice.call(e)),a=new Uint8Array(t.byteLength),o=new Int32Array(a.buffer),s=void 0,u=void 0,c=void 0,h=void 0,f=void 0,p=void 0,g=void 0,m=void 0,v=void 0;for(s=n[0],u=n[1],c=n[2],h=n[3],v=0;v<i.length;v+=4)f=d(i[v]),p=d(i[v+1]),g=d(i[v+2]),m=d(i[v+3]),r.decrypt(f,p,g,m,o,v),o[v]=d(o[v]^s),o[v+1]=d(o[v+1]^u),o[v+2]=d(o[v+2]^c),o[v+3]=d(o[v+3]^h),s=f,u=p,c=g,h=m;return a},f=function(){function n(i,r,a,o){e(this,n);var s=n.STEP,l=new Int32Array(i.buffer),u=new Uint8Array(i.byteLength),h=0;for(this.asyncStream_=new c,this.asyncStream_.push(this.decryptChunk_(l.subarray(h,h+s),r,a,u)),h=s;h<l.length;h+=s)a=new Uint32Array([d(l[h-4]),d(l[h-3]),d(l[h-2]),d(l[h-1])]),this.asyncStream_.push(this.decryptChunk_(l.subarray(h,h+s),r,a,u));this.asyncStream_.push((function(){o(null,t(u))}))}return n.prototype.decryptChunk_=function(t,e,n,i){return function(){var r=h(t,e,n);i.set(r,t.byteOffset)}},i(n,null,[{key:"STEP",get:function(){return 32e3}}]),n}(),p=function(t){var e={};return Object.keys(t).forEach((function(n){var i=t[n];ArrayBuffer.isView(i)?e[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:e[n]=i})),e},g=function(t){t.onmessage=function(e){var n=e.data,i=new Uint8Array(n.encrypted.bytes,n.encrypted.byteOffset,n.encrypted.byteLength),r=new Uint32Array(n.key.bytes,n.key.byteOffset,n.key.byteLength/4),a=new Uint32Array(n.iv.bytes,n.iv.byteOffset,n.iv.byteLength/4);new f(i,r,a,(function(e,i){t.postMessage(p({source:n.source,decrypted:i}),[i.buffer])}))}},m=new g(n)})()})),cc=function(t){var e=t["default"]?"main":"alternative";return t.characteristics&&t.characteristics.indexOf("public.accessibility.describes-video")>=0&&(e="main-desc"),e},dc=function(t,e){t.abort(),t.pause(),e&&e.activePlaylistLoader&&(e.activePlaylistLoader.pause(),e.activePlaylistLoader=null)},hc=function(t,e){e.activePlaylistLoader=t,t.load()},fc=function(t,e){return function(){var n=e.segmentLoaders,i=n[t],r=n.main,a=e.mediaTypes[t],o=a.activeTrack(),s=a.activeGroup(o),l=a.activePlaylistLoader;dc(i,a),s&&(s.playlistLoader?(i.resyncLoader(),hc(s.playlistLoader,a)):l&&r.resetEverything())}},pc=function(t,e){return function(){var n=e.segmentLoaders,i=n[t],r=n.main,a=e.mediaTypes[t],o=a.activeTrack(),s=a.activeGroup(o),l=a.activePlaylistLoader;dc(i,a),s&&(s.playlistLoader?l!==s.playlistLoader?(i.track&&i.track(o),i.resetEverything(),hc(s.playlistLoader,a)):hc(s.playlistLoader,a):r.resetEverything())}},gc={AUDIO:function(t,e){return function(){var n=e.segmentLoaders[t],i=e.mediaTypes[t],r=e.blacklistCurrentPlaylist;dc(n,i);var a=i.activeTrack(),o=i.activeGroup(),s=(o.filter((function(t){return t["default"]}))[0]||o[0]).id,l=i.tracks[s];if(a!==l){for(var u in Zo.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),i.tracks)i.tracks[u].enabled=i.tracks[u]===l;i.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(t,e){return function(){var n=e.segmentLoaders[t],i=e.mediaTypes[t];Zo.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),dc(n,i);var r=i.activeTrack();r&&(r.mode="disabled"),i.onTrackChanged()}}},mc={AUDIO:function(t,e,n){if(e){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[t];e.on("loadedmetadata",(function(){var t=e.media();a.playlist(t,r),(!i.paused()||t.endList&&"none"!==i.preload())&&a.load()})),e.on("loadedplaylist",(function(){a.playlist(e.media(),r),i.paused()||a.load()})),e.on("error",gc[t](t,n))}},SUBTITLES:function(t,e,n){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[t],o=n.mediaTypes[t];e.on("loadedmetadata",(function(){var t=e.media();a.playlist(t,r),a.track(o.activeTrack()),(!i.paused()||t.endList&&"none"!==i.preload())&&a.load()})),e.on("loadedplaylist",(function(){a.playlist(e.media(),r),i.paused()||a.load()})),e.on("error",gc[t](t,n))}},vc={AUDIO:function(t,e){var n=e.hls,i=e.sourceType,r=e.segmentLoaders[t],a=e.requestOptions,o=e.master.mediaGroups,s=e.mediaTypes[t],l=s.groups,u=s.tracks,c=e.masterPlaylistLoader;for(var d in o[t]&&0!==Object.keys(o[t]).length||(o[t]={main:{default:{default:!0}}}),o[t])for(var h in l[d]||(l[d]=[]),o[t][d]){var f=o[t][d][h],p=void 0;if(p=f.resolvedUri?new bs(f.resolvedUri,n,a):f.playlists&&"dash"===i?new _u(f.playlists[0],n,a,c):null,f=Zo.mergeOptions({id:h,playlistLoader:p},f),mc[t](t,f.playlistLoader,e),l[d].push(f),"undefined"===typeof u[h]){var g=new Zo.AudioTrack({id:h,kind:cc(f),enabled:!1,language:f.language,default:f["default"],label:h});u[h]=g}}r.on("error",gc[t](t,e))},SUBTITLES:function(t,e){var n=e.tech,i=e.hls,r=e.sourceType,a=e.segmentLoaders[t],o=e.requestOptions,s=e.master.mediaGroups,l=e.mediaTypes[t],u=l.groups,c=l.tracks,d=e.masterPlaylistLoader;for(var h in s[t])for(var f in u[h]||(u[h]=[]),s[t][h])if(!s[t][h][f].forced){var p=s[t][h][f],g=void 0;if("hls"===r?g=new bs(p.resolvedUri,i,o):"dash"===r&&(g=new _u(p.playlists[0],i,o,d)),p=Zo.mergeOptions({id:f,playlistLoader:g},p),mc[t](t,p.playlistLoader,e),u[h].push(p),"undefined"===typeof c[f]){var m=n.addRemoteTextTrack({id:f,kind:"subtitles",default:p["default"]&&p.autoselect,language:p.language,label:f},!1).track;c[f]=m}}a.on("error",gc[t](t,e))},"CLOSED-CAPTIONS":function(t,e){var n=e.tech,i=e.master.mediaGroups,r=e.mediaTypes[t],a=r.groups,o=r.tracks;for(var s in i[t])for(var l in a[s]||(a[s]=[]),i[t][s]){var u=i[t][s][l];if(u.instreamId.match(/CC\d/)&&(a[s].push(Zo.mergeOptions({id:l},u)),"undefined"===typeof o[l])){var c=n.addRemoteTextTrack({id:u.instreamId,kind:"captions",default:u["default"]&&u.autoselect,language:u.language,label:l},!1).track;o[l]=c}}}},yc=function(t,e){return function(n){var i=e.masterPlaylistLoader,r=e.mediaTypes[t].groups,a=i.media();if(!a)return null;var o=null;return a.attributes[t]&&(o=r[a.attributes[t]]),o=o||r.main,"undefined"===typeof n?o:null===n?null:o.filter((function(t){return t.id===n.id}))[0]||null}},Ac={AUDIO:function(t,e){return function(){var n=e.mediaTypes[t].tracks;for(var i in n)if(n[i].enabled)return n[i];return null}},SUBTITLES:function(t,e){return function(){var n=e.mediaTypes[t].tracks;for(var i in n)if("showing"===n[i].mode)return n[i];return null}}},bc=function(t){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(e){vc[e](e,t)}));var e=t.mediaTypes,n=t.masterPlaylistLoader,i=t.tech,r=t.hls;["AUDIO","SUBTITLES"].forEach((function(n){e[n].activeGroup=yc(n,t),e[n].activeTrack=Ac[n](n,t),e[n].onGroupChanged=fc(n,t),e[n].onTrackChanged=pc(n,t)}));var a=e.AUDIO.activeGroup(),o=(a.filter((function(t){return t["default"]}))[0]||a[0]).id;e.AUDIO.tracks[o].enabled=!0,e.AUDIO.onTrackChanged(),n.on("mediachange",(function(){["AUDIO","SUBTITLES"].forEach((function(t){return e[t].onGroupChanged()}))}));var s=function(){e.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"hls-audio-change"})};for(var l in i.audioTracks().addEventListener("change",s),i.remoteTextTracks().addEventListener("change",e.SUBTITLES.onTrackChanged),r.on("dispose",(function(){i.audioTracks().removeEventListener("change",s),i.remoteTextTracks().removeEventListener("change",e.SUBTITLES.onTrackChanged)})),i.clearTracks("audio"),e.AUDIO.tracks)i.audioTracks().addTrack(e.AUDIO.tracks[l])},_c=function(){var t={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(e){t[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:xu,activeTrack:xu,onGroupChanged:xu,onTrackChanged:xu}})),t},wc=120,xc=void 0,Sc=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred"],Cc=function(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]},Tc=function(t){function e(t){rs(this,e);var n=ls(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),i=t.url,r=t.handleManifestRedirects,a=t.withCredentials,o=t.tech,s=t.bandwidth,l=t.externHls,u=t.useCueTags,c=t.blacklistDuration,d=t.enableLowInitialPlaylist,h=t.sourceType,f=t.seekTo,p=t.cacheEncryptionKeys;if(!i)throw new Error("A non-empty playlist URL is required");xc=l,n.withCredentials=a,n.tech_=o,n.hls_=o.hls,n.seekTo_=f,n.sourceType_=h,n.useCueTags_=u,n.blacklistDuration=c,n.enableLowInitialPlaylist=d,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:a,handleManifestRedirects:r,timeout:null},n.mediaTypes_=_c(),n.mediaSource=new Zo.MediaSource,n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_.bind(n)),n.seekable_=Zo.createTimeRanges(),n.hasPlayed_=function(){return!1},n.syncController_=new lc(t),n.segmentMetadataTrack_=o.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new uc,n.inbandTextTracks_={};var g={hls:n.hls_,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.mediaSource.duration},hasPlayed:function(){return n.hasPlayed_()},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:s,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:p};return n.masterPlaylistLoader_="dash"===n.sourceType_?new _u(i,n.hls_,n.requestOptions_):new bs(i,n.hls_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new tc(Zo.mergeOptions(g,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),t),n.audioSegmentLoader_=new tc(Zo.mergeOptions(g,{loaderType:"audio"}),t),n.subtitleSegmentLoader_=new ic(Zo.mergeOptions(g,{loaderType:"vtt"}),t),n.setupSegmentLoaderListeners_(),Sc.forEach((function(t){n[t+"_"]=Cc.bind(n,t)})),n.logger_=wu("MPC"),n.masterPlaylistLoader_.load(),n}return ss(e,t),as(e,[{key:"setupMasterPlaylistLoaderListeners_",value:function(){var t=this;this.masterPlaylistLoader_.on("loadedmetadata",(function(){var e=t.masterPlaylistLoader_.media(),n=1.5*e.targetDuration*1e3;zs(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=n,e.endList&&"none"!==t.tech_.preload()&&(t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load()),bc({sourceType:t.sourceType_,segmentLoaders:{AUDIO:t.audioSegmentLoader_,SUBTITLES:t.subtitleSegmentLoader_,main:t.mainSegmentLoader_},tech:t.tech_,requestOptions:t.requestOptions_,masterPlaylistLoader:t.masterPlaylistLoader_,hls:t.hls_,master:t.master(),mediaTypes:t.mediaTypes_,blacklistCurrentPlaylist:t.blacklistCurrentPlaylist.bind(t)}),t.triggerPresenceUsage_(t.master(),e);try{t.setupSourceBuffers_()}catch(Zc){return Zo.log.warn("Failed to create SourceBuffers",Zc),t.mediaSource.endOfStream("decode")}t.setupFirstPlay(),!t.mediaTypes_.AUDIO.activePlaylistLoader||t.mediaTypes_.AUDIO.activePlaylistLoader.media()?t.trigger("selectedinitialmedia"):t.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",(function(){t.trigger("selectedinitialmedia")}))})),this.masterPlaylistLoader_.on("loadedplaylist",(function(){var e=t.masterPlaylistLoader_.media();if(!e){t.excludeUnsupportedVariants_();var n=void 0;return t.enableLowInitialPlaylist&&(n=t.selectInitialPlaylist()),n||(n=t.selectPlaylist()),t.initialMedia_=n,void t.masterPlaylistLoader_.media(t.initialMedia_)}if(t.useCueTags_&&t.updateAdCues_(e),t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.updateDuration(),t.tech_.paused()||(t.mainSegmentLoader_.load(),t.audioSegmentLoader_&&t.audioSegmentLoader_.load()),!e.endList){var i=function(){var e=t.seekable();0!==e.length&&t.mediaSource.addSeekableRange_(e.start(0),e.end(0))};if(t.duration()!==1/0){var r=function e(){t.duration()===1/0?i():t.tech_.one("durationchange",e)};t.tech_.one("durationchange",r)}else i()}})),this.masterPlaylistLoader_.on("error",(function(){t.blacklistCurrentPlaylist(t.masterPlaylistLoader_.error)})),this.masterPlaylistLoader_.on("mediachanging",(function(){t.mainSegmentLoader_.abort(),t.mainSegmentLoader_.pause()})),this.masterPlaylistLoader_.on("mediachange",(function(){var e=t.masterPlaylistLoader_.media(),n=1.5*e.targetDuration*1e3;zs(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=n,t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load(),t.tech_.trigger({type:"mediachange",bubbles:!0})})),this.masterPlaylistLoader_.on("playlistunchanged",(function(){var e=t.masterPlaylistLoader_.media(),n=t.stuckAtPlaylistEnd_(e);n&&(t.blacklistCurrentPlaylist({message:"Playlist no longer updating."}),t.tech_.trigger("playliststuck"))})),this.masterPlaylistLoader_.on("renditiondisabled",(function(){t.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})})),this.masterPlaylistLoader_.on("renditionenabled",(function(){t.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})}))}},{key:"triggerPresenceUsage_",value:function(t,e){var n=t.mediaGroups||{},i=!0,r=Object.keys(n.AUDIO);for(var a in n.AUDIO)for(var o in n.AUDIO[a]){var s=n.AUDIO[a][o];s.uri||(i=!1)}i&&this.tech_.trigger({type:"usage",name:"hls-demuxed"}),Object.keys(n.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"hls-webvtt"}),xc.Playlist.isAes(e)&&this.tech_.trigger({type:"usage",name:"hls-aes"}),xc.Playlist.isFmp4(e)&&this.tech_.trigger({type:"usage",name:"hls-fmp4"}),r.length&&Object.keys(n.AUDIO[r[0]]).length>1&&this.tech_.trigger({type:"usage",name:"hls-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"})}},{key:"setupSegmentLoaderListeners_",value:function(){var t=this;this.mainSegmentLoader_.on("bandwidthupdate",(function(){var e=t.selectPlaylist(),n=t.masterPlaylistLoader_.media(),i=t.tech_.buffered(),r=i.length?i.end(i.length-1)-t.tech_.currentTime():0,a=t.bufferLowWaterLine();(!n.endList||t.duration()<Cu.MAX_BUFFER_LOW_WATER_LINE||e.attributes.BANDWIDTH<n.attributes.BANDWIDTH||r>=a)&&t.masterPlaylistLoader_.media(e),t.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("progress",(function(){t.trigger("progress")})),this.mainSegmentLoader_.on("error",(function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())})),this.mainSegmentLoader_.on("syncinfoupdate",(function(){t.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(function(){t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(function(){t.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("ended",(function(){t.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(function(){t.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},wc)})),this.mainSegmentLoader_.on("reseteverything",(function(){t.tech_.trigger("hls-reset")})),this.mainSegmentLoader_.on("segmenttimemapping",(function(e){t.tech_.trigger({type:"hls-segment-time-mapping",mapping:e.mapping})})),this.audioSegmentLoader_.on("ended",(function(){t.onEndOfStream()}))}},{key:"mediaSecondsLoaded_",value:function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}},{key:"load",value:function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}},{key:"smoothQualityChange_",value:function(){var t=this.selectPlaylist();t!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(t),this.mainSegmentLoader_.resetLoader())}},{key:"fastQualityChange_",value:function(){var t=this,e=this.selectPlaylist();e!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(e),this.mainSegmentLoader_.resetEverything((function(){Zo.browser.IE_VERSION||Zo.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())})))}},{key:"play",value:function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.seekTo_(0),this.hasPlayed_()&&this.load();var t=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<t.start(0)?this.seekTo_(t.end(t.length-1)):void 0}}},{key:"setupFirstPlay",value:function(){var t=this,e=this.masterPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_())return!1;if(!e.endList){var n=this.seekable();if(!n.length)return!1;if(Zo.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",(function(){t.trigger("firstplay"),t.seekTo_(n.end(0)),t.hasPlayed_=function(){return!0}})),!1;this.trigger("firstplay"),this.seekTo_(n.end(0))}return this.hasPlayed_=function(){return!0},this.load(),!0}},{key:"handleSourceOpen_",value:function(){try{this.setupSourceBuffers_()}catch(Zc){return Zo.log.warn("Failed to create Source Buffers",Zc),this.mediaSource.endOfStream("decode")}if(this.tech_.autoplay()){var t=this.tech_.play();"undefined"!==typeof t&&"function"===typeof t.then&&t.then(null,(function(t){}))}this.trigger("sourceopen")}},{key:"onEndOfStream",value:function(){var t=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader&&(t=!this.mainSegmentLoader_.startingMedia_||this.mainSegmentLoader_.startingMedia_.containsVideo?t&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_),t){this.logger_("calling mediaSource.endOfStream()");try{this.mediaSource.endOfStream()}catch(Zc){Zo.log.warn("Failed to call media source endOfStream",Zc)}}}},{key:"stuckAtPlaylistEnd_",value:function(t){var e=this.seekable();if(!e.length)return!1;var n=this.syncController_.getExpiredTime(t,this.mediaSource.duration);if(null===n)return!1;var i=xc.Playlist.playlistEnd(t,n),r=this.tech_.currentTime(),a=this.tech_.buffered();if(!a.length)return i-r<=ml;var o=a.end(a.length-1);return o-r<=ml&&i-o<=ml}},{key:"blacklistCurrentPlaylist",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],n=void 0,i=void 0;if(n=t.playlist||this.masterPlaylistLoader_.media(),e=e||t.blacklistDuration||this.blacklistDuration,!n){this.error=t;try{return this.mediaSource.endOfStream("network")}catch(Zc){return this.trigger("error")}}var r=1===this.masterPlaylistLoader_.master.playlists.filter(Fs).length,a=this.masterPlaylistLoader_.master.playlists;return 1===a.length?(Zo.log.warn("Problem encountered with the current HLS playlist. Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(r)):(r&&(Zo.log.warn("Removing all playlists from the blacklist because the last rendition is about to be blacklisted."),a.forEach((function(t){t.excludeUntil!==1/0&&delete t.excludeUntil})),this.tech_.trigger("retryplaylist")),n.excludeUntil=Date.now()+1e3*e,this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"}),i=this.selectPlaylist(),Zo.log.warn("Problem encountered with the current HLS playlist."+(t.message?" "+t.message:"")+" Switching to another playlist."),this.masterPlaylistLoader_.media(i,r))}},{key:"pauseLoading",value:function(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}},{key:"setCurrentTime",value:function(t){var e=yl(this.tech_.buffered(),t);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?e&&e.length?t:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0}},{key:"duration",value:function(){return this.masterPlaylistLoader_?this.mediaSource?this.mediaSource.duration:xc.Playlist.duration(this.masterPlaylistLoader_.media()):0}},{key:"seekable",value:function(){return this.seekable_}},{key:"onSyncInfoUpdate_",value:function(){var t=void 0,e=void 0;if(this.masterPlaylistLoader_){var n=this.masterPlaylistLoader_.media();if(n){var i=this.syncController_.getExpiredTime(n,this.mediaSource.duration);if(null!==i&&(t=xc.Playlist.seekable(n,i),0!==t.length)){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(n=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),i=this.syncController_.getExpiredTime(n,this.mediaSource.duration),null===i)return;if(e=xc.Playlist.seekable(n,i),0===e.length)return}var r=void 0,a=void 0;this.seekable_&&this.seekable_.length&&(r=this.seekable_.end(0),a=this.seekable_.start(0)),e?e.start(0)>t.end(0)||t.start(0)>e.end(0)?this.seekable_=t:this.seekable_=Zo.createTimeRanges([[e.start(0)>t.start(0)?e.start(0):t.start(0),e.end(0)<t.end(0)?e.end(0):t.end(0)]]):this.seekable_=t,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===r&&this.seekable_.start(0)===a||(this.logger_("seekable updated ["+_l(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},{key:"updateDuration",value:function(){var t=this,e=this.mediaSource.duration,n=xc.Playlist.duration(this.masterPlaylistLoader_.media()),i=this.tech_.buffered(),r=function e(){t.logger_("Setting duration from "+t.mediaSource.duration+" => "+n);try{t.mediaSource.duration=n}catch(Zc){Zo.log.warn("Failed to set media source duration",Zc)}t.tech_.trigger("durationchange"),t.mediaSource.removeEventListener("sourceopen",e)};i.length>0&&(n=Math.max(n,i.end(i.length-1))),e!==n&&("open"!==this.mediaSource.readyState?this.mediaSource.addEventListener("sourceopen",r):r())}},{key:"dispose",value:function(){var t=this;this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),["AUDIO","SUBTITLES"].forEach((function(e){var n=t.mediaTypes_[e].groups;for(var i in n)n[i].forEach((function(t){t.playlistLoader&&t.playlistLoader.dispose()}))})),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose()}},{key:"master",value:function(){return this.masterPlaylistLoader_.master}},{key:"media",value:function(){return this.masterPlaylistLoader_.media()||this.initialMedia_}},{key:"setupSourceBuffers_",value:function(){var t=this.masterPlaylistLoader_.media(),e=void 0;if(t&&"open"===this.mediaSource.readyState){if(e=ql(this.masterPlaylistLoader_.master,t),e.length<1)return this.error="No compatible SourceBuffer configuration for the variant stream:"+t.resolvedUri,this.mediaSource.endOfStream("decode");this.configureLoaderMimeTypes_(e),this.excludeIncompatibleVariants_(t)}}},{key:"configureLoaderMimeTypes_",value:function(t){var e=t.length>1&&-1===t[0].indexOf(",")&&t[0]!==t[1]?new Zo.EventTarget:null;this.mainSegmentLoader_.mimeType(t[0],e),t[1]&&this.audioSegmentLoader_.mimeType(t[1],e)}},{key:"excludeUnsupportedVariants_",value:function(){this.master().playlists.forEach((function(t){t.attributes.CODECS&&o.a.MediaSource&&o.a.MediaSource.isTypeSupported&&!o.a.MediaSource.isTypeSupported('video/mp4; codecs="'+Vl(t.attributes.CODECS)+'"')&&(t.excludeUntil=1/0)}))}},{key:"excludeIncompatibleVariants_",value:function(t){var e=2,n=null,i=void 0;t.attributes.CODECS&&(i=Ql(t.attributes.CODECS),n=i.videoCodec,e=i.codecCount),this.master().playlists.forEach((function(t){var i={codecCount:2,videoCodec:null};t.attributes.CODECS&&(i=Ql(t.attributes.CODECS)),i.codecCount!==e&&(t.excludeUntil=1/0),i.videoCodec!==n&&(t.excludeUntil=1/0)}))}},{key:"updateAdCues_",value:function(t){var e=0,n=this.seekable();n.length&&(e=n.start(0)),ac(t,this.cueTagsTrack_,e)}},{key:"goalBufferLength",value:function(){var t=this.tech_.currentTime(),e=Cu.GOAL_BUFFER_LENGTH,n=Cu.GOAL_BUFFER_LENGTH_RATE,i=Math.max(e,Cu.MAX_GOAL_BUFFER_LENGTH);return Math.min(e+t*n,i)}},{key:"bufferLowWaterLine",value:function(){var t=this.tech_.currentTime(),e=Cu.BUFFER_LOW_WATER_LINE,n=Cu.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(e,Cu.MAX_BUFFER_LOW_WATER_LINE);return Math.min(e+t*n,i)}}]),e}(Zo.EventTarget),Mc=function(t,e,n){return function(i){var r=t.master.playlists[e],a=Ns(r),o=Fs(r);return"undefined"===typeof i?o:(i?delete r.disabled:r.disabled=!0,i===o||a||(n(),i?t.trigger("renditionenabled"):t.trigger("renditiondisabled")),i)}},kc=function t(e,n,i){rs(this,t);var r=e.masterPlaylistController_,a=e.options_.smoothQualityChange,o=a?"smooth":"fast",s=r[o+"QualityChange_"].bind(r);if(n.attributes.RESOLUTION){var l=n.attributes.RESOLUTION;this.width=l.width,this.height=l.height}this.bandwidth=n.attributes.BANDWIDTH,this.id=i,this.enabled=Mc(e.playlists,n.uri,s)},Lc=function(t){var e=t.playlists;t.representations=function(){return e.master.playlists.filter((function(t){return!Ns(t)})).map((function(e,n){return new kc(t,e,e.uri)}))}},Dc=["seeking","seeked","pause","playing","error"],Ec=function(){function t(e){var n=this;rs(this,t),this.tech_=e.tech,this.seekable=e.seekable,this.seekTo=e.seekTo,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=wu("PlaybackWatcher"),this.logger_("initialize");var i=function(){return n.monitorCurrentTime_()},r=function(){return n.techWaiting_()},a=function(){return n.cancelTimer_()},s=function(){return n.fixesBadSeeks_()};this.tech_.on("seekablechanged",s),this.tech_.on("waiting",r),this.tech_.on(Dc,a),this.tech_.on("canplay",i),this.dispose=function(){n.logger_("dispose"),n.tech_.off("seekablechanged",s),n.tech_.off("waiting",r),n.tech_.off(Dc,a),n.tech_.off("canplay",i),n.checkCurrentTimeTimeout_&&o.a.clearTimeout(n.checkCurrentTimeTimeout_),n.cancelTimer_()}}return as(t,[{key:"monitorCurrentTime_",value:function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&o.a.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=o.a.setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:"checkCurrentTime_",value:function(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&&!this.tech_.seeking()){var t=this.tech_.currentTime(),e=this.tech_.buffered();if(this.lastRecordedTime===t&&(!e.length||t+ml>=e.end(e.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&t===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):t===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=t)}}},{key:"cancelTimer_",value:function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null}},{key:"fixesBadSeeks_",value:function(){var t=this.tech_.seeking();if(!t)return!1;var e=this.seekable(),n=this.tech_.currentTime(),i=this.afterSeekableWindow_(e,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow),r=void 0;if(i){var a=e.end(e.length-1);r=a}if(this.beforeSeekableWindow_(e,n)){var o=e.start(0);r=o+ml}return"undefined"!==typeof r&&(this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+_l(e)+". Seeking to "+r+"."),this.seekTo(r),!0)}},{key:"waiting_",value:function(){if(!this.techWaiting_()){var t=this.tech_.currentTime(),e=this.tech_.buffered(),n=yl(e,t);return n.length&&t+3<=n.end(0)?(this.cancelTimer_(),this.seekTo(t),this.logger_("Stopped at "+t+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}}},{key:"techWaiting_",value:function(){var t=this.seekable(),e=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(t,e)){var n=t.end(t.length-1);return this.logger_("Fell out of live window at time "+e+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.seekTo(n),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var i=this.tech_.buffered(),r=Al(i,e);if(this.videoUnderflow_(r,i,e))return this.cancelTimer_(),this.seekTo(e),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;if(r.length>0){var a=r.start(0)-e;return this.logger_("Stopped at "+e+", setting timer for "+a+", seeking to "+r.start(0)),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*a,e),!0}return!1}},{key:"afterSeekableWindow_",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t.length)return!1;var r=t.end(t.length-1)+ml,a=!n.endList;return a&&i&&(r=t.end(t.length-1)+3*n.targetDuration),e>r}},{key:"beforeSeekableWindow_",value:function(t,e){return!!(t.length&&t.start(0)>0&&e<t.start(0)-ml)}},{key:"videoUnderflow_",value:function(t,e,n){if(0===t.length){var i=this.gapFromVideoUnderflow_(e,n);if(i)return this.logger_("Encountered a gap in video from "+i.start+" to "+i.end+". Seeking to current time "+n),!0}return!1}},{key:"skipTheGap_",value:function(t){var e=this.tech_.buffered(),n=this.tech_.currentTime(),i=Al(e,n);this.cancelTimer_(),0!==i.length&&n===t&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",t,"nextRange start:",i.start(0)),this.seekTo(i.start(0)+gl),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))}},{key:"gapFromVideoUnderflow_",value:function(t,e){for(var n=bl(t),i=0;i<n.length;i++){var r=n.start(i),a=n.end(i);if(e-r<4&&e-r>2)return{start:r,end:a}}return null}}]),t}(),Bc={errorInterval:30,getSource:function(t){var e=this.tech({IWillNotUseThisInPlugins:!0}),n=e.currentSource_;return t(n)}},Ic=function t(e,n){var i=0,r=0,a=Zo.mergeOptions(Bc,n);e.ready((function(){e.trigger({type:"usage",name:"hls-error-reload-initialized"})}));var o=function(){r&&e.currentTime(r)},s=function(t){null!==t&&void 0!==t&&(r=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",o),e.src(t),e.trigger({type:"usage",name:"hls-error-reload"}),e.play())},l=function(){if(Date.now()-i<1e3*a.errorInterval)e.trigger({type:"usage",name:"hls-error-reload-canceled"});else{if(a.getSource&&"function"===typeof a.getSource)return i=Date.now(),a.getSource.call(e,s);Zo.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}},u=function t(){e.off("loadedmetadata",o),e.off("error",l),e.off("dispose",t)},c=function(n){u(),t(e,n)};e.on("error",l),e.on("dispose",u),e.reloadSourceOnError=c},Oc=function(t){Ic(this,t)},Pc="1.11.2";Zo.use("*",(function(t){return{setSource:function(t,e){e(null,t)},setCurrentTime:function(e){return t.vhs&&t.currentSource().src===t.vhs.source_.src&&t.vhs.setCurrentTime(e),e},play:function(){t.vhs&&t.currentSource().src===t.vhs.source_.src&&t.vhs.setCurrentTime(t.tech_.currentTime())}}}));var Nc={PlaylistLoader:bs,Playlist:Qs,Decrypter:le,AsyncStream:ae,decrypt:se,utils:al,STANDARD_PLAYLIST_SELECTOR:zu,INITIAL_PLAYLIST_SELECTOR:Vu,comparePlaylistBandwidth:ju,comparePlaylistResolution:Hu,xhr:Gs()};["GOAL_BUFFER_LENGTH","MAX_GOAL_BUFFER_LENGTH","GOAL_BUFFER_LENGTH_RATE","BUFFER_LOW_WATER_LINE","MAX_BUFFER_LOW_WATER_LINE","BUFFER_LOW_WATER_LINE_RATE","BANDWIDTH_VARIANCE"].forEach((function(t){Object.defineProperty(Nc,t,{get:function(){return Zo.log.warn("using Hls."+t+" is UNSAFE be sure you know what you are doing"),Cu[t]},set:function(e){Zo.log.warn("using Hls."+t+" is UNSAFE be sure you know what you are doing"),"number"!==typeof e||e<0?Zo.log.warn("value of Hls."+t+" must be greater than or equal to 0"):Cu[t]=e}})}));var Fc="videojs-vhs",Uc=function(t){var e=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i;if(e.test(t))return"hls";var n=/^application\/dash\+xml/i;return n.test(t)?"dash":null},Rc=function(t,e){for(var n=e.media(),i=-1,r=0;r<t.length;r++)if(t[r].id===n.uri){i=r;break}t.selectedIndex_=i,t.trigger({selectedIndex:i,type:"change"})},jc=function(t,e){e.representations().forEach((function(e){t.addQualityLevel(e)})),Rc(t,e.playlists)};Nc.canPlaySource=function(){return Zo.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Hc=function(t,e,n){if(!t)return t;var i=void 0,r=void 0;if(n.mimeType_)i=e.mimeType_,r=n.mimeType_;else{var a=Xl(e.mimeType_),o=a.parameters.codecs.split(","),s=void 0,l=void 0;o.forEach((function(t){t=t.trim(),Jl(t)?s=t:Zl(t)&&(l=t)})),i=a.type+'; codecs="'+l+'"',r=a.type.replace("video","audio")+'; codecs="'+s+'"'}var u={},c=e.playlist_;for(var d in t)u[d]={audioContentType:r,videoContentType:i},c.contentProtection&&c.contentProtection[d]&&c.contentProtection[d].pssh&&(u[d].pssh=c.contentProtection[d].pssh),"string"===typeof t[d]&&(u[d].url=t[d]);return Zo.mergeOptions(t,u)},Yc=function(t){var e=t.masterPlaylistController_.mainSegmentLoader_,n=t.masterPlaylistController_.audioSegmentLoader_,i=Zo.players[t.tech_.options_.playerId];if(i.eme){var r=Hc(t.source_.keySystems,e,n);r&&(i.currentSource().keySystems=r,11!==Zo.browser.IE_VERSION&&i.eme.initializeMediaKeys&&i.eme.initializeMediaKeys())}},zc=function(){if(!window.localStorage)return null;var t=window.localStorage.getItem(Fc);if(!t)return null;try{return JSON.parse(t)}catch(Zc){return null}},Qc=function(t){if(!window.localStorage)return!1;var e=zc();e=e?Zo.mergeOptions(e,t):t;try{window.localStorage.setItem(Fc,JSON.stringify(e))}catch(Zc){return!1}return e};Nc.supportsNativeHls=function(){var t=l.a.createElement("video");if(!Zo.getTech("Html5").isSupported())return!1;var e=["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];return e.some((function(e){return/maybe|probably/i.test(t.canPlayType(e))}))}(),Nc.supportsNativeDash=function(){return!!Zo.getTech("Html5").isSupported()&&/maybe|probably/i.test(l.a.createElement("video").canPlayType("application/dash+xml"))}(),Nc.supportsTypeNatively=function(t){return"hls"===t?Nc.supportsNativeHls:"dash"===t&&Nc.supportsNativeDash},Nc.isSupported=function(){return Zo.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Vc=Zo.getComponent("Component"),Wc=function(t){function e(t,n,i){rs(this,e);var r=ls(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,i.hls));if(n.options_&&n.options_.playerId){var a=Zo(n.options_.playerId);a.hasOwnProperty("hls")||Object.defineProperty(a,"hls",{get:function(){return Zo.log.warn("player.hls is deprecated. Use player.tech().hls instead."),n.trigger({type:"usage",name:"hls-player-access"}),r},configurable:!0}),a.vhs=r,a.dash=r,r.player_=a}if(r.tech_=n,r.source_=t,r.stats={},r.setOptions_(),r.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(l.a,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(function(t){var e=l.a.fullscreenElement||l.a.webkitFullscreenElement||l.a.mozFullScreenElement||l.a.msFullscreenElement;e&&e.contains(r.tech_.el())&&r.masterPlaylistController_.smoothQualityChange_()})),r.on(r.tech_,"seeking",(function(){0===this.tech_.currentTime()&&this.tech_.player_.loop()&&this.setCurrentTime(0)})),r.on(r.tech_,"error",(function(){this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()})),r.on(r.tech_,"play",r.play),r}return ss(e,t),as(e,[{key:"setOptions_",value:function(){var t=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=this.options_.handleManifestRedirects||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage="undefined"!==typeof this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!==typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!==typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var e=zc();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!==typeof this.options_.bandwidth&&(this.options_.bandwidth=Cu.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Cu.INITIAL_BANDWIDTH,["withCredentials","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys"].forEach((function(e){"undefined"!==typeof t.source_[e]&&(t.options_[e]=t.source_[e])})),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions}},{key:"src",value:function(t,e){var n=this;t&&(this.setOptions_(),this.options_.url=this.source_.src,this.options_.tech=this.tech_,this.options_.externHls=Nc,this.options_.sourceType=Uc(e),this.options_.seekTo=function(t){n.tech_.setCurrentTime(t),n.setCurrentTime(t)},this.masterPlaylistController_=new Tc(this.options_),this.playbackWatcher_=new Ec(Zo.mergeOptions(this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()}})),this.masterPlaylistController_.on("error",(function(){var t=Zo.players[n.tech_.options_.playerId];t.error(n.masterPlaylistController_.error)})),this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):Nc.STANDARD_PLAYLIST_SELECTOR.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Nc.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(t){this.masterPlaylistController_.selectPlaylist=t.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=t,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=t,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var t=1/(this.bandwidth||1),e=void 0;e=this.throughput>0?1/this.throughput:0;var n=Math.floor(1/(t+e));return n},set:function(){Zo.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},buffered:{get:function(){return xl(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return xl(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",(function(){n.options_.useBandwidthFromLocalStorage&&Qc({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})})),this.masterPlaylistController_.on("selectedinitialmedia",(function(){Lc(n),Yc(n)})),this.on(this.masterPlaylistController_,"progress",(function(){this.tech_.trigger("progress")})),this.tech_.ready((function(){return n.setupQualityLevels_()})),this.tech_.el()&&this.tech_.src(Zo.URL.createObjectURL(this.masterPlaylistController_.mediaSource)))}},{key:"setupQualityLevels_",value:function(){var t=this,e=Zo.players[this.tech_.options_.playerId];e&&e.qualityLevels&&(this.qualityLevels_=e.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){jc(t.qualityLevels_,t)})),this.playlists.on("mediachange",(function(){Rc(t.qualityLevels_,t.playlists)})))}},{key:"play",value:function(){this.masterPlaylistController_.play()}},{key:"setCurrentTime",value:function(t){this.masterPlaylistController_.setCurrentTime(t)}},{key:"duration",value:function(){return this.masterPlaylistController_.duration()}},{key:"seekable",value:function(){return this.masterPlaylistController_.seekable()}},{key:"dispose",value:function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.hls&&delete this.tech_.hls,os(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"dispose",this).call(this)}},{key:"convertToProgramTime",value:function(t,e){return fl({playlist:this.masterPlaylistController_.media(),time:t,callback:e})}},{key:"seekToProgramTime",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;return pl({programTime:t,playlist:this.masterPlaylistController_.media(),retryCount:i,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:e})}}]),e}(Vc),Gc={name:"videojs-http-streaming",VERSION:Pc,canHandleSource:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Zo.mergeOptions(Zo.options,e);return Gc.canPlayType(t.type,n)},handleSource:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Zo.mergeOptions(Zo.options,n);return e.hls=new Wc(t,e,i),e.hls.xhr=Gs(),e.hls.src(t.src,t.type),e.hls},canPlayType:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Zo.mergeOptions(Zo.options,e),i=n.hls.overrideNative,r=Uc(t),a=r&&(!Nc.supportsTypeNatively(r)||i);return a?"maybe":""}};"undefined"!==typeof Zo.MediaSource&&"undefined"!==typeof Zo.URL||(Zo.MediaSource=du,Zo.URL=hu),du.supportsNativeMediaSources()&&Zo.getTech("Html5").registerSourceHandler(Gc,0),Zo.HlsHandler=Wc,Zo.HlsSourceHandler=Gc,Zo.Hls=Nc,Zo.use||Zo.registerComponent("Hls",Nc),Zo.options.hls=Zo.options.hls||{},Zo.registerPlugin?Zo.registerPlugin("reloadSourceOnError",Oc):Zo.plugin("reloadSourceOnError",Oc);var Kc=Zo,$c={components:{},props:{videoUrl:{type:String,default:function(){return""}},videoLogoUrl:{type:String,default:function(){return""}},width:{type:String,default:function(){return"100%"}},height:{type:String,default:function(){return"100%"}},controls:{type:Boolean,default:function(){return!0}},autoplay:{type:Boolean,default:function(){return!1}},playerTime:{type:Number,default:function(){return 0}},loop:{type:Boolean,default:function(){return!1}},preload:{type:String,default:function(){return"auto"}},onTimeUpdate:{type:Function,default:function(){}}},data:function(){return{fluid:!0,videPlay:{}}},computed:{},watch:{},created:function(){Kc.options.flash.swf="videojs/video-js.swf"},beforeDestroy:function(){this.videPlay.dispose()},mounted:function(){var t=this;this.videPlay=Kc("my-video",{},(function(){var e=this;this.on("loadeddata",(function(){e.currentTime(t.playerTime)})),this.on("timeupdate",(function(){t.onTimeUpdate(e.currentTime())}))}))},methods:{}},qc=$c,Xc=n("2877"),Jc=Object(Xc["a"])(qc,i,r,!1,null,"8eff8772",null);e["a"]=Jc.exports},e074:function(t,e,n){"use strict";n("ee98")},e0b8:function(t,e,n){"use strict";var i=n("7726"),r=n("5ca1"),a=n("2aba"),o=n("dcbc"),s=n("67ab"),l=n("4a59"),u=n("f605"),c=n("d3f4"),d=n("79e5"),h=n("5cc5"),f=n("7f20"),p=n("5dbc");t.exports=function(t,e,n,g,m,v){var y=i[t],A=y,b=m?"set":"add",_=A&&A.prototype,w={},x=function(t){var e=_[t];a(_,t,"delete"==t||"has"==t?function(t){return!(v&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!c(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof A&&(v||_.forEach&&!d((function(){(new A).entries().next()})))){var S=new A,C=S[b](v?{}:-0,1)!=S,T=d((function(){S.has(1)})),M=h((function(t){new A(t)})),k=!v&&d((function(){var t=new A,e=5;while(e--)t[b](e,e);return!t.has(-0)}));M||(A=e((function(e,n){u(e,A,t);var i=p(new y,e,A);return void 0!=n&&l(n,m,i[b],i),i})),A.prototype=_,_.constructor=A),(T||k)&&(x("delete"),x("has"),m&&x("get")),(k||C)&&x(b),v&&_.clear&&delete _.clear}else A=g.getConstructor(e,t,m,b),o(A.prototype,n),s.NEED=!0;return f(A,t),w[t]=A,r(r.G+r.W+r.F*(A!=y),w),v||g.setStrong(A,t,m),A}},e0c5:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"},i=t.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(t){return t.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(t,e){return 12===t&&(t=0),"રાત"===e?t<4?t:t+12:"સવાર"===e?t:"બપોર"===e?t>=10?t:t+12:"સાંજ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"રાત":t<10?"સવાર":t<17?"બપોર":t<20?"સાંજ":"રાત"},week:{dow:0,doy:6}});return i}))},e0de:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"date_table_tree",staticStyle:{display:"flex"}},[e("div",{staticClass:"date_table_tree_border"},[t._t("tree-tabs"),t.treeData.length?e("giant-tree",{attrs:{nodes:t.treeData},on:{"on-created":t.onTreeCreated,"on-click":t.onTreeNodeClick},scopedSlots:t._u([t.noContextMenu?null:{key:"context-menu",fn:function(n){return[t._t("context-menu",(function(){return[e("ul",[e("li",{key:"addBtn",on:{click:function(e){return t.addMenu(n.treeId,n.contextNode)}}},[t._v("新增子菜单")]),"0"!==n.contextNode.id?e("li",{key:"editBtn",on:{click:function(e){return t.editMenu(n.treeId,n.contextNode)}}},[t._v("编辑菜单")]):t._e(),"0"!==n.contextNode.id?e("li",{key:"delBtn",on:{click:function(e){return t.delMenu(n.treeId,n.contextNode)}}},[t._v("删除菜单")]):t._e()])]}),{treeId:n.ztreeId,contextNode:n.contextNode})]}}],null,!0)}):t.noContextMenu?t._e():e("div",{staticClass:"date_table_tree_btn"},[e("el-button",{attrs:{plain:"",icon:"el-icon-plus"},on:{click:t.addMenu}},[t._v("新增")])],1)],2),t.dataTableShow?e("data-table",{ref:"dataTable",staticStyle:{flex:"1"},attrs:{"module-info":t.moduleInfo,"tb-columns":t.tbColumns,"toolbar-btns":t.toolbarBtns,"on-selected-rows-change":t.selectedRowsChange,"on-list-data-before-load":t.onListDataBeforeLoad,"on-list-data-loaded":t.onListDataLoaded,"on-cell-click":t.onCellClick,"on-delete-successed":t.onDeleteSuccessed}},[e("template",{slot:"toolbarLeft-slotLeft"},[t._t("toolbarLeft-slotLeft")],2)],2):t._e()],1)},r=[],a={components:{},props:{moduleInfo:{type:Object,default:function(){return{}}},onCellClick:{type:Function,default:null},tbColumns:{type:Array,default:function(){return[]}},toolbarBtns:{type:Array,default:function(){return[]}},onListDataBeforeLoad:{type:Function,default:function(){return null}},onListDataLoaded:{type:Function,default:function(){return null}},onDeleteSuccessed:{type:Function,default:function(){return null}},treeRoot:{type:[Boolean,String],default:function(){return!1}},querydataUrl:{type:String,default:function(){return""}},activeTreeNode:{type:Object,default:function(){return{}}},noContextMenu:{type:Boolean,default:function(){return!1}}},data:function(){return{array:[],loginUser:this.$store.getters.loginUser,treeRootList:[],activeNode:null,dataTableShow:!0,tree:null,treeNode:null,treeData:[],zbNum:0,zzNum:0}},computed:{},watch:{treeRoot:{immediate:!0,handler:function(t){if(t)if(!0===t){var e=this.loginUser.orgName;this.treeRootList=[{id:"0",name:e,open:!0,title:e}]}else this.treeRootList=t;else this.treeRootList=[]}},activeTreeNode:{handler:function(t){t?this.activeNode?t.id!==this.activeNode.id&&(this.activeNode=t):this.activeNode=t:this.activeNode=null}},activeNode:{handler:function(t){this.setTreeSelect()}}},created:function(){this.getTreeData(),this.$bus.on("refreshTreeData",this.getTreeData)},beforeDestroy:function(){this.$bus.off("refreshTreeData",this.getTreeData)},mounted:function(){},methods:{getTreeData:function(){var t=this,e=this.querydataUrl||this.moduleInfo.querydataUrl;if(!e){var n=this.moduleInfo.listDataUrl,i=/^(\/?\w+\/\w+\/)(.*)/;e=n.replace(i,"$1querydata")}this.$http({url:e,method:"POST",data:[{compare:"=",field:"orgCode",merge:!0,value:this.loginUser.orgCode}]}).then((function(e){if("success"!==e.code)return t.$alert(e.message,"操作提示",{type:"error"});var n=[].concat(t.treeRootList,e.body.listdata);t.treeData=t.treeDataAdapter(n),t.treeData.length||(t.zTree=null,t.$emit("activeTreeNodeChange",null),t.$emit("active-tree-node-change",null))}))},treeDataAdapter:function(t){return this.$vnode.context.treeDataAdapter?this.$vnode.context.treeDataAdapter(t):(t.forEach((function(t){t.pId=t.parentId||"0",t.title=t.name,t.open=!0})),t)},onTreeCreated:function(t){this.zTree=t,this.$vnode.context.onTreeCreated?this.$vnode.context.onTreeCreated(t):this.setTreeSelect()},setTreeSelect:function(){var t=this,e=this.zTree?this.zTree.getNodes():[];console.log("123"),e.length<=0||(null===this.activeNode?this.onTreeNodeClick("",e[0].id,e[0]):this.treeData.some((function(e){return e.id===t.activeNode.id}))?this.zTree.selectNode(this.activeNode):this.onTreeNodeClick("",e[0].id,e[0]))},onTreeNodeClick:function(t,e,n){var i=this;this.dataTableShow=!1,this.activeNode=n||null,this.$emit("activeTreeNodeChange",this.activeNode),this.$emit("active-tree-node-change",this.activeNode),this.$nextTick((function(){i.dataTableShow=!0}))},addMenu:function(t,e){this.onTreeNodeClick("",t,e),this.$vnode.context.addMenu?this.$vnode.context.addMenu(t,e):this.$bus.emit("openBusiform",this.moduleInfo,null,1)},editMenu:function(t,e){this.$vnode.context.editMenu?this.$vnode.context.editMenu(t,e):this.$bus.emit("openBusiform",this.moduleInfo,e,1)},delMenu:function(t,e){this.$refs.dataTable.deleteIds(e,null,null,1)},selectedRowsChange:function(t){var e=this;this.array=[],this.$vnode.context.rowsSelected&&(this.$vnode.context.rowsSelected=t),t.forEach((function(t){e.array.push(t.id)}))},getArray:function(){return this.array}}},o=a,s=(n("e8e6"),n("2877")),l=Object(s["a"])(o,i,r,!1,null,"18249695",null);e["a"]=l.exports},e0e0:function(t,e,n){"use strict";n("fe06")},e0f4:function(t,e,n){var i=n("10a3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("2485607c",i,!0,{sourceMap:!1,shadowMode:!1})},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e13d:function(t,e,n){var i=n("5d1e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("9f031ce6",i,!0,{sourceMap:!1,shadowMode:!1})},e193:function(t,e,n){(function(){"undefined"==typeof Math.sgn&&(Math.sgn=function(t){return 0==t?0:t>0?1:-1});var t={subtract:function(t,e){return{x:t.x-e.x,y:t.y-e.y}},dotProduct:function(t,e){return t.x*e.x+t.y*e.y},square:function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},scale:function(t,e){return{x:t.x*e,y:t.y*e}}},n=64,i=Math.pow(2,-n-1),r=function(e,n){for(var i=[],r=o(e,n),a=n.length-1,l=2*a-1,u=s(r,l,i,0),c=t.subtract(e,n[0]),h=t.square(c),f=0,p=0;p<u;p++){c=t.subtract(e,d(n,a,i[p],null,null));var g=t.square(c);g<h&&(h=g,f=i[p])}return c=t.subtract(e,n[a]),g=t.square(c),g<h&&(h=g,f=1),{location:f,distance:h}},a=function(t,e){var n=r(t,e);return{point:d(e,e.length-1,n.location,null,null),location:n.location}},o=function(e,n){for(var i=n.length-1,r=2*i-1,a=[],o=[],s=[],l=[],u=[[1,.6,.3,.1],[.4,.6,.6,.4],[.1,.3,.6,1]],c=0;c<=i;c++)a[c]=t.subtract(n[c],e);for(c=0;c<=i-1;c++)o[c]=t.subtract(n[c+1],n[c]),o[c]=t.scale(o[c],3);for(var d=0;d<=i-1;d++)for(var h=0;h<=i;h++)s[d]||(s[d]=[]),s[d][h]=t.dotProduct(o[d],a[h]);for(c=0;c<=r;c++)l[c]||(l[c]=[]),l[c].y=0,l[c].x=parseFloat(c)/r;for(var f=i,p=i-1,g=0;g<=f+p;g++){var m=Math.max(0,g-p),v=Math.min(g,f);for(c=m;c<=v;c++){var y=g-c;l[c+y].y+=s[y][c]*u[y][c]}}return l},s=function(t,e,i,r){var a,o,h=[],f=[],p=[],g=[];switch(l(t,e)){case 0:return 0;case 1:if(r>=n)return i[0]=(t[0].x+t[e].x)/2,1;if(u(t,e))return i[0]=c(t,e),1;break}d(t,e,.5,h,f),a=s(h,e,p,r+1),o=s(f,e,g,r+1);for(var m=0;m<a;m++)i[m]=p[m];for(m=0;m<o;m++)i[m+a]=g[m];return a+o},l=function(t,e){var n,i,r=0;n=i=Math.sgn(t[0].y);for(var a=1;a<=e;a++)n=Math.sgn(t[a].y),n!=i&&r++,i=n;return r},u=function(t,e){var n,r,a,o,s,l,u,c,d,h,f,p,g,m,v,y,A,b;l=t[0].y-t[e].y,u=t[e].x-t[0].x,c=t[0].x*t[e].y-t[e].x*t[0].y,A=b=0;for(var _=1;_<e;_++){var w=l*t[_].x+u*t[_].y+c;w>A?A=w:w<b&&(b=w)}return f=0,p=1,g=0,m=l,v=u,y=c-A,d=f*v-m*p,h=1/d,r=(p*y-v*g)*h,m=l,v=u,y=c-b,d=f*v-m*p,h=1/d,a=(p*y-v*g)*h,o=Math.min(r,a),s=Math.max(r,a),n=s-o,n<i?1:0},c=function(t,e){var n=1,i=0,r=t[e].x-t[0].x,a=t[e].y-t[0].y,o=t[0].x-0,s=t[0].y-0,l=r*i-a*n,u=1/l,c=(r*s-a*o)*u;return 0+n*c},d=function(t,e,n,i,r){for(var a=[[]],o=0;o<=e;o++)a[0][o]=t[o];for(var s=1;s<=e;s++)for(o=0;o<=e-s;o++)a[s]||(a[s]=[]),a[s][o]||(a[s][o]={}),a[s][o].x=(1-n)*a[s-1][o].x+n*a[s-1][o+1].x,a[s][o].y=(1-n)*a[s-1][o].y+n*a[s-1][o+1].y;if(null!=i)for(o=0;o<=e;o++)i[o]=a[o][0];if(null!=r)for(o=0;o<=e;o++)r[o]=a[e-o][o];return a[e][0]},h={},f=function(t){var e=h[t];if(!e){e=[];var n=function(){return function(e){return Math.pow(e,t)}},i=function(){return function(e){return Math.pow(1-e,t)}},r=function(t){return function(e){return t}},a=function(){return function(t){return t}},o=function(){return function(t){return 1-t}},s=function(t){return function(e){for(var n=1,i=0;i<t.length;i++)n*=t[i](e);return n}};e.push(new n);for(var l=1;l<t;l++){for(var u=[new r(t)],c=0;c<t-l;c++)u.push(new a);for(c=0;c<l;c++)u.push(new o);e.push(new s(u))}e.push(new i),h[t]=e}return e},p=function(t,e){for(var n=f(t.length-1),i=0,r=0,a=0;a<t.length;a++)i+=t[a].x*n[a](e),r+=t[a].y*n[a](e);return{x:i,y:r}},g=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},m=function(t){return t[0].x===t[1].x&&t[0].y===t[1].y},v=function(t,e,n){if(m(t))return{point:t[0],location:e};var i=p(t,e),r=0,a=e,o=n>0?1:-1,s=null;while(r<Math.abs(n))a+=.005*o,s=p(t,a),r+=g(s,i),i=s;return{point:s,location:a}},y=function(t){var e=(new Date).getTime();if(m(t))return 0;var n=p(t,0),i=0,r=0,a=1,o=null;while(r<1)r+=.005*a,o=p(t,r),i+=g(o,n),n=o;return console.log("length",(new Date).getTime()-e),i},A=function(t,e,n){return v(t,e,n).point},b=function(t,e,n){return v(t,e,n).location},_=function(t,e){var n=p(t,e),i=p(t.slice(0,t.length-1),e),r=i.y-n.y,a=i.x-n.x;return 0===r?1/0:Math.atan(r/a)},w=function(t,e,n){var i=v(t,e,n);return i.location>1&&(i.location=1),i.location<0&&(i.location=0),_(t,i.location)},x=function(t,e,n,i){i=null==i?0:i;var r=v(t,e,i),a=_(t,r.location),o=Math.atan(-1/a),s=n/2*Math.sin(o),l=n/2*Math.cos(o);return[{x:r.point.x+l,y:r.point.y+s},{x:r.point.x-l,y:r.point.y-s}]},S=function(t,e,n,i,r){var a=i-e,o=t-n,s=t*(e-i)+e*(n-t),l=k(r),u=[a*l[0][0]+o*l[1][0],a*l[0][1]+o*l[1][1],a*l[0][2]+o*l[1][2],a*l[0][3]+o*l[1][3]+s],c=D.apply(null,u),d=[];if(null!=c)for(var h=0;h<3;h++){var f,p=c[h],g=Math.pow(p,2),m=Math.pow(p,3),v=[l[0][0]*m+l[0][1]*g+l[0][2]*p+l[0][3],l[1][0]*m+l[1][1]*g+l[1][2]*p+l[1][3]];f=n-t!==0?(v[0]-t)/(n-t):(v[1]-e)/(i-e),p>=0&&p<=1&&f>=0&&f<=1&&d.push(v)}return d},C=function(t,e,n,i,r){var a=[];return a.push.apply(a,S(t,e,t+n,e,r)),a.push.apply(a,S(t+n,e,t+n,e+i,r)),a.push.apply(a,S(t+n,e+i,t,e+i,r)),a.push.apply(a,S(t,e+i,t,e,r)),a},T=function(t,e){var n=[];return n.push.apply(n,S(t.x,t.y,t.x+t.w,t.y,e)),n.push.apply(n,S(t.x+t.w,t.y,t.x+t.w,t.y+t.h,e)),n.push.apply(n,S(t.x+t.w,t.y+t.h,t.x,t.y+t.h,e)),n.push.apply(n,S(t.x,t.y+t.h,t.x,t.y,e)),n};function M(t,e){return[-t[0][e]+3*t[1][e]+-3*t[2][e]+t[3][e],3*t[0][e]-6*t[1][e]+3*t[2][e],-3*t[0][e]+3*t[1][e],t[0][e]]}function k(t){return[M(t,"x"),M(t,"y")]}function L(t){return t<0?-1:t>0?1:0}function D(t,e,n,i){var r,a,o=e/t,s=n/t,l=i/t,u=(3*s-Math.pow(o,2))/9,c=(9*o*s-27*l-2*Math.pow(o,3))/54,d=Math.pow(u,3)+Math.pow(c,2),h=[];if(d>=0)r=L(c+Math.sqrt(d))*Math.pow(Math.abs(c+Math.sqrt(d)),1/3),a=L(c-Math.sqrt(d))*Math.pow(Math.abs(c-Math.sqrt(d)),1/3),h[0]=-o/3+(r+a),h[1]=-o/3-(r+a)/2,h[2]=-o/3-(r+a)/2,0!==Math.abs(Math.sqrt(3)*(r-a)/2)&&(h[1]=-1,h[2]=-1);else{var f=Math.acos(c/Math.sqrt(-Math.pow(u,3)));h[0]=2*Math.sqrt(-u)*Math.cos(f/3)-o/3,h[1]=2*Math.sqrt(-u)*Math.cos((f+2*Math.PI)/3)-o/3,h[2]=2*Math.sqrt(-u)*Math.cos((f+4*Math.PI)/3)-o/3}for(var p=0;p<3;p++)(h[p]<0||h[p]>1)&&(h[p]=-1);return h}var E=this.jsBezier={distanceFromCurve:r,gradientAtPoint:_,gradientAtPointAlongCurveFrom:w,nearestPointOnCurve:a,pointOnCurve:p,pointAlongCurveFrom:A,perpendicularToCurveAt:x,locationAlongCurveFrom:b,getLength:y,lineIntersection:S,boxIntersection:C,boundingBoxIntersection:T,version:"0.9.0"};e.jsBezier=E}).call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,n=t.Biltong={version:"0.4.0"};e.Biltong=n;var i=function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=function(t,e,n){return t=i(t)?t:[t.x,t.y],e=i(e)?e:[e.x,e.y],n(t,e)},a=n.gradient=function(t,e){return r(t,e,(function(t,e){return e[0]==t[0]?e[1]>t[1]?1/0:-1/0:e[1]==t[1]?e[0]>t[0]?0:-0:(e[1]-t[1])/(e[0]-t[0])}))},o=(n.normal=function(t,e){return-1/a(t,e)},n.lineLength=function(t,e){return r(t,e,(function(t,e){return Math.sqrt(Math.pow(e[1]-t[1],2)+Math.pow(e[0]-t[0],2))}))},n.quadrant=function(t,e){return r(t,e,(function(t,e){return e[0]>t[0]||e[0]==t[0]?e[1]>t[1]?2:1:e[1]>t[1]?3:4}))}),s=(n.theta=function(t,e){return r(t,e,(function(t,e){var n=a(t,e),i=Math.atan(n),r=o(t,e);return 4!=r&&3!=r||(i+=Math.PI),i<0&&(i+=2*Math.PI),i}))},n.intersects=function(t,e){var n=t.x,i=t.x+t.w,r=t.y,a=t.y+t.h,o=e.x,s=e.x+e.w,l=e.y,u=e.y+e.h;return n<=o&&o<=i&&r<=l&&l<=a||n<=s&&s<=i&&r<=l&&l<=a||n<=o&&o<=i&&r<=u&&u<=a||n<=s&&o<=i&&r<=u&&u<=a||o<=n&&n<=s&&l<=r&&r<=u||o<=i&&i<=s&&l<=r&&r<=u||o<=n&&n<=s&&l<=a&&a<=u||o<=i&&n<=s&&l<=a&&a<=u},n.encloses=function(t,e,n){var i=t.x,r=t.x+t.w,a=t.y,o=t.y+t.h,s=e.x,l=e.x+e.w,u=e.y,c=e.y+e.h,d=function(t,e,i,r){return n?t<=e&&i>=r:t<e&&i>r};return d(i,s,r,l)&&d(a,u,o,c)},[null,[1,-1],[1,1],[-1,1],[-1,-1]]),l=[null,[-1,-1],[-1,1],[1,1],[1,-1]];n.pointOnLine=function(t,e,n){var i=a(t,e),r=o(t,e),u=n>0?s[r]:l[r],c=Math.atan(i),d=Math.abs(n*Math.sin(c))*u[1],h=Math.abs(n*Math.cos(c))*u[0];return{x:t.x+h,y:t.y+d}},n.perpendicularLineTo=function(t,e,n){var i=a(t,e),r=Math.atan(-1/i),o=n/2*Math.sin(r),s=n/2*Math.cos(r);return[{x:e.x+s,y:e.y+o},{x:e.x-s,y:e.y-o}]}}.call("undefined"!==typeof window?window:this),function(){"use strict";function t(t,e,n,i,r,a,o,s){return new Touch({target:e,identifier:N(),pageX:n,pageY:i,screenX:r,screenY:a,clientX:o||r,clientY:s||a})}function n(){var t=[];return Array.prototype.push.apply(t,arguments),t.item=function(t){return this[t]},t}function i(e,i,r,a,o,s,l,u){return n(t.apply(null,arguments))}var r=this,a=function(t,e,n){n=n||t.parentNode;for(var i=n.querySelectorAll(e),r=0;r<i.length;r++)if(i[r]===t)return!0;return!1},o=function(t){return"string"==typeof t||t.constructor===String?document.getElementById(t):t},s=function(t){return t.srcElement||t.target},l=function(t,e,n,i){if(i){if("undefined"!==typeof t.path&&t.path.indexOf)return{path:t.path,end:t.path.indexOf(n)};var r={path:[],end:-1},a=function(t){r.path.push(t),t===n?r.end=r.path.length-1:null!=t.parentNode&&a(t.parentNode)};return a(e),r}return{path:[e],end:1}},u=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]==e)break;n<t.length&&t.splice(n,1)},c=1,d=function(t,e,n){var i=c++;return t.__ta=t.__ta||{},t.__ta[e]=t.__ta[e]||{},t.__ta[e][i]=n,n.__tauid=i,i},h=function(t,e,n){if(t.__ta&&t.__ta[e]&&delete t.__ta[e][n.__tauid],n.__taExtra){for(var i=0;i<n.__taExtra.length;i++)O(t,n.__taExtra[i][0],n.__taExtra[i][1]);n.__taExtra.length=0}n.__taUnstore&&n.__taUnstore()},f=function(t,e,n,i){if(null==t)return n;var r=t.split(","),o=function(i){o.__tauid=n.__tauid;var u=s(i),c=u,d=l(i,u,e,null!=t);if(-1!=d.end)for(var h=0;h<d.end;h++){c=d.path[h];for(var f=0;f<r.length;f++)a(c,r[f],e)&&n.apply(c,arguments)}};return p(n,i,o),o},p=function(t,e,n){t.__taExtra=t.__taExtra||[],t.__taExtra.push([e,n])},g=function(t,e,n,i){if(_&&x[e]){var r=f(i,t,n,x[e]);I(t,x[e],r,n)}"focus"===e&&null==t.getAttribute("tabindex")&&t.setAttribute("tabindex","1"),I(t,e,f(i,t,n,e),n)},m=function(t,e,n,i){if(null==t.__taSmartClicks){var r=function(e){t.__tad=M(e)},a=function(e){t.__tau=M(e)},o=function(e){if(t.__tad&&t.__tau&&t.__tad[0]===t.__tau[0]&&t.__tad[1]===t.__tau[1])for(var n=0;n<t.__taSmartClicks.length;n++)t.__taSmartClicks[n].apply(s(e),[e])};g(t,"mousedown",r,i),g(t,"mouseup",a,i),g(t,"click",o,i),t.__taSmartClicks=[]}t.__taSmartClicks.push(n),n.__taUnstore=function(){u(t.__taSmartClicks,n)}},v={tap:{touches:1,taps:1},dbltap:{touches:1,taps:2},contextmenu:{touches:2,taps:1}},y=function(t,e){return function(n,i,r,o){if("contextmenu"==i&&w)g(n,i,r,o);else{if(null==n.__taTapHandler){var c=n.__taTapHandler={tap:[],dbltap:[],contextmenu:[],down:!1,taps:0,downSelectors:[]},d=function(i){for(var r=s(i),u=l(i,r,n,null!=o),d=!1,h=0;h<u.end;h++){if(d)return;r=u.path[h];for(var g=0;g<c.downSelectors.length;g++)if(null==c.downSelectors[g]||a(r,c.downSelectors[g],n)){c.down=!0,setTimeout(f,t),setTimeout(p,e),d=!0;break}}},h=function(t){if(c.down){var e,i,r=s(t);c.taps++;var o=B(t);for(var u in v)if(v.hasOwnProperty(u)){var d=v[u];if(d.touches===o&&(1===d.taps||d.taps===c.taps))for(var h=0;h<c[u].length;h++){i=l(t,r,n,null!=c[u][h][1]);for(var f=0;f<i.end;f++)if(e=i.path[f],null==c[u][h][1]||a(e,c[u][h][1],n)){c[u][h][0].apply(e,[t]);break}}}}},f=function(){c.down=!1},p=function(){c.taps=0};g(n,"mousedown",d),g(n,"mouseup",h)}n.__taTapHandler.downSelectors.push(o),n.__taTapHandler[i].push([r,o]),r.__taUnstore=function(){u(n.__taTapHandler[i],r)}}}},A=function(t,e,n,i){for(var r in n.__tamee[t])n.__tamee[t].hasOwnProperty(r)&&n.__tamee[t][r].apply(i,[e])},b=function(){var t=[];return function(e,n,i,r){if(!e.__tamee){e.__tamee={over:!1,mouseenter:[],mouseexit:[]};var o=function(n){var i=s(n);(null==r&&i==e&&!e.__tamee.over||a(i,r,e)&&(null==i.__tamee||!i.__tamee.over))&&(A("mouseenter",n,e,i),i.__tamee=i.__tamee||{},i.__tamee.over=!0,t.push(i))},l=function(n){for(var i=s(n),r=0;r<t.length;r++)i!=t[r]||a(n.relatedTarget||n.toElement,"*",i)||(i.__tamee.over=!1,t.splice(r,1),A("mouseexit",n,e,i))};I(e,"mouseover",f(r,e,o,"mouseover"),o),I(e,"mouseout",f(r,e,l,"mouseout"),l)}i.__taUnstore=function(){delete e.__tamee[n][i.__tauid]},d(e,n,i),e.__tamee[n][i.__tauid]=i}},_="ontouchstart"in document.documentElement||navigator.maxTouchPoints,w="onmousedown"in document.documentElement,x={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"},S=function(){var t=-1;if("Microsoft Internet Explorer"==navigator.appName){var e=navigator.userAgent,n=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");null!=n.exec(e)&&(t=parseFloat(RegExp.$1))}return t}(),C=S>-1&&S<9,T=function(t,e){if(null==t)return[0,0];var n=E(t),i=D(n,0);return[i[e+"X"],i[e+"Y"]]},M=function(t){return null==t?[0,0]:C?[t.clientX+document.documentElement.scrollLeft,t.clientY+document.documentElement.scrollTop]:T(t,"page")},k=function(t){return T(t,"screen")},L=function(t){return T(t,"client")},D=function(t,e){return t.item?t.item(e):t[e]},E=function(t){return t.touches&&t.touches.length>0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},B=function(t){return E(t).length},I=function(t,e,n,i){if(d(t,e,n),i.__tauid=n.__tauid,t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent){var r=e+n.__tauid;t["e"+r]=n,t[r]=function(){t["e"+r]&&t["e"+r](window.event)},t.attachEvent("on"+e,t[r])}},O=function(t,e,n){null!=n&&P(t,(function(){var i=o(this);if(h(i,e,n),null!=n.__tauid)if(i.removeEventListener)i.removeEventListener(e,n,!1),_&&x[e]&&i.removeEventListener(x[e],n,!1);else if(this.detachEvent){var r=e+n.__tauid;i[r]&&i.detachEvent("on"+e,i[r]),i[r]=null,i["e"+r]=null}n.__taTouchProxy&&O(t,n.__taTouchProxy[1],n.__taTouchProxy[0])}))},P=function(t,e){if(null!=t){t="undefined"!==typeof Window&&"unknown"!==typeof t.top&&t==t.top?[t]:"string"!==typeof t&&null==t.tagName&&null!=t.length?t:"string"===typeof t?document.querySelectorAll(t):[t];for(var n=0;n<t.length;n++)e.apply(t[n])}},N=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0,n="x"==t?e:3&e|8;return n.toString(16)}))};r.Mottle=function(t){t=t||{};var e=t.clickThreshold||250,n=t.dblClickThreshold||450,r=new b,a=new y(e,n),s=t.smartClicks,l=function(t,e,n,i){null!=n&&P(t,(function(){var t=o(this);s&&"click"===e?m(t,e,n,i):"tap"===e||"dbltap"===e||"contextmenu"===e?a(t,e,n,i):"mouseenter"===e||"mouseexit"==e?r(t,e,n,i):g(t,e,n,i)}))};this.remove=function(t){return P(t,(function(){var t=o(this);if(t.__ta)for(var e in t.__ta)if(t.__ta.hasOwnProperty(e))for(var n in t.__ta[e])t.__ta[e].hasOwnProperty(n)&&O(t,e,t.__ta[e][n]);t.parentNode&&t.parentNode.removeChild(t)})),this},this.on=function(t,e,n,i){var r=arguments[0],a=4==arguments.length?arguments[2]:null,o=arguments[1],s=arguments[arguments.length-1];return l(r,o,s,a),this},this.off=function(t,e,n){return O(t,e,n),this},this.trigger=function(t,e,n,r){var a=w&&("undefined"===typeof MouseEvent||null==n||n.constructor===MouseEvent),s=_&&!w&&x[e]?x[e]:e,l=!(_&&!w&&x[e]),u=M(n),c=k(n),d=L(n);return P(t,(function(){var t,h=o(this);n=n||{screenX:c[0],screenY:c[1],clientX:d[0],clientY:d[1]};var f=function(t){r&&(t.payload=r)},p={TouchEvent:function(t){var e=i(window,h,0,u[0],u[1],c[0],c[1],d[0],d[1]),n=t.initTouchEvent||t.initEvent;n(s,!0,!0,window,null,c[0],c[1],d[0],d[1],!1,!1,!1,!1,e,e,e,1,0)},MouseEvents:function(t){t.initMouseEvent(s,!0,!0,window,0,c[0],c[1],d[0],d[1],!1,!1,!1,!1,1,h)}};if(document.createEvent){var g=!l&&!a&&_&&x[e],m=g?"TouchEvent":"MouseEvents";t=document.createEvent(m),p[m](t),f(t),h.dispatchEvent(t)}else document.createEventObject&&(t=document.createEventObject(),t.eventType=t.eventName=s,t.screenX=c[0],t.screenY=c[1],t.clientX=d[0],t.clientY=d[1],f(t),h.fireEvent("on"+s,t))})),this}},r.Mottle.consume=function(t,e){t.stopPropagation?t.stopPropagation():t.returnValue=!1,!e&&t.preventDefault&&t.preventDefault()},r.Mottle.pageLocation=M,r.Mottle.setForceTouchEvents=function(t){_=t},r.Mottle.setForceMouseEvents=function(t){w=t},r.Mottle.version="0.8.0",e.Mottle=r.Mottle}.call("undefined"===typeof window?this:window),function(){"use strict";var t=this,n=function(t,e,n){return-1===t.indexOf(e)&&(n?t.unshift(e):t.push(e),!0)},i=function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)},r=function(t,e){for(var n=[],i=0;i<t.length;i++)-1===e.indexOf(t[i])&&n.push(t[i]);return n},a=function(t){return null!=t&&("string"===typeof t||t.constructor===String)},o=function(t){var e=t.getBoundingClientRect(),n=document.body,i=document.documentElement,r=window.pageYOffset||i.scrollTop||n.scrollTop,a=window.pageXOffset||i.scrollLeft||n.scrollLeft,o=i.clientTop||n.clientTop||0,s=i.clientLeft||n.clientLeft||0,l=e.top+r-o,u=e.left+a-s;return{top:Math.round(l),left:Math.round(u)}},s=function(t,e,n){n=n||t.parentNode;for(var i=n.querySelectorAll(e),r=0;r<i.length;r++)if(i[r]===t)return!0;return!1},l=function(t,e,n){if(s(e,n,t))return e;var i=e.parentNode;while(null!=i&&i!==t){if(s(i,n,t))return i;i=i.parentNode}},u=function(t,e,n){for(var i=null,r=e.getAttribute("katavorio-draggable"),a=null!=r?"[katavorio-draggable='"+r+"'] ":"",o=0;o<t.length;o++)if(i=l(e,n,a+t[o].selector),null!=i){if(t[o].filter){var u=s(n,t[o].filter,i),c=!0===t[o].filterExclude;if(c&&!u||u)return null}return[t[o],i]}return null},c=function(){var t=-1;if("Microsoft Internet Explorer"===navigator.appName){var e=navigator.userAgent,n=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");null!=n.exec(e)&&(t=parseFloat(RegExp.$1))}return t}(),d=10,h=10,f=c>-1&&c<9,p=9===c,g=function(t){if(f)return[t.clientX+document.documentElement.scrollLeft,t.clientY+document.documentElement.scrollTop];var e=v(t),n=m(e,0);return p?[n.pageX||n.clientX,n.pageY||n.clientY]:[n.pageX,n.pageY]},m=function(t,e){return t.item?t.item(e):t[e]},v=function(t){return t.touches&&t.touches.length>0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},y={delegatedDraggable:"katavorio-delegated-draggable",draggable:"katavorio-draggable",droppable:"katavorio-droppable",drag:"katavorio-drag",selected:"katavorio-drag-selected",active:"katavorio-drag-active",hover:"katavorio-drag-hover",noSelect:"katavorio-drag-no-select",ghostProxy:"katavorio-ghost-proxy",clonedDrag:"katavorio-clone-drag"},A="katavorio-drag-scope",b=["stop","start","drag","drop","over","out","beforeStart"],_=function(){},w=function(){return!0},x=function(t,e,n){for(var i=0;i<t.length;i++)t[i]!=n&&e(t[i])},S=function(t,e,n,i){x(t,(function(t){t.setActive(e),e&&t.updatePosition(),n&&t.setHover(i,e)}))},C=function(t,e){if(null!=t){t=a(t)||null!=t.tagName||null==t.length?[t]:t;for(var n=0;n<t.length;n++)e.apply(t[n],[t[n]])}},T=function(t){t.stopPropagation?(t.stopPropagation(),t.preventDefault()):t.returnValue=!1},M="input,textarea,select,button,option",k=function(t,e,n){var i=t.srcElement||t.target;return!s(i,n.getInputFilterSelector(),e)},L=function(t,e,n,i){this.params=e||{},this.el=t,this.params.addClass(this.el,this._class),this.uuid=O();var r=!0;return this.setEnabled=function(t){r=t},this.isEnabled=function(){return r},this.toggleEnabled=function(){r=!r},this.setScope=function(t){this.scopes=t?t.split(/\s+/):[i]},this.addScope=function(t){var e={};for(var n in C(this.scopes,(function(t){e[t]=!0})),C(t?t.split(/\s+/):[],(function(t){e[t]=!0})),this.scopes=[],e)this.scopes.push(n)},this.removeScope=function(t){var e={};for(var n in C(this.scopes,(function(t){e[t]=!0})),C(t?t.split(/\s+/):[],(function(t){delete e[t]})),this.scopes=[],e)this.scopes.push(n)},this.toggleScope=function(t){var e={};for(var n in C(this.scopes,(function(t){e[t]=!0})),C(t?t.split(/\s+/):[],(function(t){e[t]?delete e[t]:e[t]=!0})),this.scopes=[],e)this.scopes.push(n)},this.setScope(e.scope),this.k=e.katavorio,e.katavorio},D=function(){return!0},E=function(){return!1},B=function(t,e,n,i){this._class=n.draggable;var r=L.apply(this,arguments);this.rightButtonCanDrag=this.params.rightButtonCanDrag;var l,c,f,p,m,v,A=[0,0],b=null,_=null,x=[0,0],C=!1,M=[0,0],B=!1!==this.params.consumeStartEvent,I=this.el,N=this.params.clone,F=(this.params.scroll,!1!==e.multipleDrop),U=!1,R=null,j=[],H=null,Y=e.ghostProxyParent;if(l=!0===e.ghostProxy?D:e.ghostProxy&&"function"===typeof e.ghostProxy?e.ghostProxy:function(t,e){return!(!H||!H.useGhostProxy)&&H.useGhostProxy(t,e)},c=e.makeGhostProxy?e.makeGhostProxy:function(t){return H&&H.makeGhostProxy?H.makeGhostProxy(t):t.cloneNode(!0)},e.selector){var z=t.getAttribute("katavorio-draggable");null==z&&(z=""+(new Date).getTime(),t.setAttribute("katavorio-draggable",z)),j.push(e)}var Q,V=e.snapThreshold,W=function(t,e,n,i,r){var a=Math.floor(t[0]/e),o=e*a,s=o+e,l=Math.abs(t[0]-o)<=i?o:Math.abs(s-t[0])<=i?s:t[0],u=Math.floor(t[1]/n),c=n*u,d=c+n,h=Math.abs(t[1]-c)<=r?c:Math.abs(d-t[1])<=r?d:t[1];return[l,h]};this.posses=[],this.posseRoles={},this.toGrid=function(t){if(null==this.params.grid)return t;var e=this.params.grid?this.params.grid[0]/2:V||d/2,n=this.params.grid?this.params.grid[1]/2:V||h/2;return W(t,this.params.grid[0],this.params.grid[1],e,n)},this.snap=function(t,e){if(null!=I){t=t||(this.params.grid?this.params.grid[0]:d),e=e||(this.params.grid?this.params.grid[1]:h);var n=this.params.getPosition(I),i=this.params.grid?this.params.grid[0]/2:V,r=this.params.grid?this.params.grid[1]/2:V,a=W(n,t,e,i,r);return this.params.setPosition(I,a),a}},this.setUseGhostProxy=function(t){l=t?D:E};var G=function(t){return!1===e.allowNegative?[Math.max(0,t[0]),Math.max(0,t[1])]:t},K=function(t){Q="function"===typeof t?t:t?function(t,e,n,i){return G([Math.max(0,Math.min(n.w-i[0],t[0])),Math.max(0,Math.min(n.h-i[1],t[1]))])}.bind(this):function(t){return G(t)}}.bind(this);K("function"===typeof this.params.constrain?this.params.constrain:this.params.constrain||this.params.containment),this.setConstrain=function(t){K(t)};var $,q=function(t,e,n,i){return null!=H&&H.constrain&&"function"===typeof H.constrain?H.constrain(t,e,n,i):Q(t,e,n,i)};this.setRevert=function(t){$=t},this.params.revert&&($=this.params.revert);var X=function(t){return"function"===typeof t?(t._katavorioId=O(),t._katavorioId):t},J={},Z=function(t){for(var e in J){var n=J[e],i=n[0](t);if(n[1]&&(i=!i),!i)return!1}return!0},tt=this.setFilter=function(e,n){if(e){var i=X(e);J[i]=[function(n){var i,r=n.srcElement||n.target;return a(e)?i=s(r,e,t):"function"===typeof e&&(i=e(n,t)),i},!1!==n]}};this.addFilter=tt,this.removeFilter=function(t){var e="function"===typeof t?t._katavorioId:t;delete J[e]};this.clearAllFilters=function(){J={}},this.canDrag=this.params.canDrag||w;var et,nt=[],it=[];this.addSelector=function(t){t.selector&&j.push(t)},this.downListener=function(t){if(!t.defaultPrevented){var e=this.rightButtonCanDrag||3!==t.which&&2!==t.button;if(e&&this.isEnabled()&&this.canDrag()){var i=Z(t)&&k(t,this.el,this.k);if(i){if(H=null,R=null,j.length>0){var a=u(j,this.el,t.target||t.srcElement);if(null!=a&&(H=a[0],R=a[1]),null==R)return}else R=this.el;if(N)if(I=R.cloneNode(!0),this.params.addClass(I,y.clonedDrag),I.setAttribute("id",null),I.style.position="absolute",null!=this.params.parent){var s=this.params.getPosition(this.el);I.style.left=s[0]+"px",I.style.top=s[1]+"px",this.params.parent.appendChild(I)}else{var l=o(R);I.style.left=l.left+"px",I.style.top=l.top+"px",document.body.appendChild(I)}else I=R;B&&T(t),A=g(t),I&&I.parentNode&&(M=[I.parentNode.scrollLeft,I.parentNode.scrollTop]),this.params.bind(document,"mousemove",this.moveListener),this.params.bind(document,"mouseup",this.upListener),r.markSelection(this),r.markPosses(this),this.params.addClass(document.body,n.noSelect),ot("beforeStart",{el:this.el,pos:b,e:t,drag:this})}else this.params.consumeFilteredEvents&&T(t)}}}.bind(this),this.moveListener=function(t){if(A){if(!C){var e=ot("start",{el:this.el,pos:b,e:t,drag:this});if(!1!==e){if(!A)return;this.mark(!0),C=!0}else this.abort()}if(A){it.length=0;var n=g(t),i=n[0]-A[0],a=n[1]-A[1],o=this.params.ignoreZoom?1:r.getZoom();I&&I.parentNode&&(i+=I.parentNode.scrollLeft-M[0],a+=I.parentNode.scrollTop-M[1]),i/=o,a/=o,this.moveBy(i,a,t),r.updateSelection(i,a,this),r.updatePosses(i,a,this)}}}.bind(this),this.upListener=function(t){A&&(A=null,this.params.unbind(document,"mousemove",this.moveListener),this.params.unbind(document,"mouseup",this.upListener),this.params.removeClass(document.body,n.noSelect),this.unmark(t),r.unmarkSelection(this,t),r.unmarkPosses(this,t),this.stop(t),r.notifyPosseDragStop(this,t),C=!1,it.length=0,N?(I&&I.parentNode&&I.parentNode.removeChild(I),I=null):$&&!0===$(I,this.params.getPosition(I))&&(this.params.setPosition(I,b),ot("revert",I)))}.bind(this),this.getFilters=function(){return J},this.abort=function(){null!=A&&this.upListener()},this.getDragElement=function(t){return t?R||this.el:I||this.el};var rt={start:[],drag:[],stop:[],over:[],out:[],beforeStart:[],revert:[]};e.events.start&&rt.start.push(e.events.start),e.events.beforeStart&&rt.beforeStart.push(e.events.beforeStart),e.events.stop&&rt.stop.push(e.events.stop),e.events.drag&&rt.drag.push(e.events.drag),e.events.revert&&rt.revert.push(e.events.revert),this.on=function(t,e){rt[t]&&rt[t].push(e)},this.off=function(t,e){if(rt[t]){for(var n=[],i=0;i<rt[t].length;i++)rt[t][i]!==e&&n.push(rt[t][i]);rt[t]=n}};var at,ot=function(t,e){var n=null;if(H&&H[t])n=H[t](e);else if(rt[t])for(var i=0;i<rt[t].length;i++)try{var r=rt[t][i](e);null!=r&&(n=r)}catch(a){}return n};this.notifyStart=function(t){ot("start",{el:this.el,pos:this.params.getPosition(I),e:t,drag:this})},this.stop=function(t,e){if(e||C){var n=[],i=r.getSelection(),a=this.params.getPosition(I);if(i.length>0)for(var o=0;o<i.length;o++){var s=this.params.getPosition(i[o].el);n.push([i[o].el,{left:s[0],top:s[1]},i[o]])}else n.push([I,{left:a[0],top:a[1]},this]);ot("stop",{el:I,pos:at||a,finalPos:a,e:t,drag:this,selection:n})}},this.mark=function(t){var e;b=this.params.getPosition(I),_=this.params.getPosition(I,!0),x=[_[0]-b[0],_[1]-b[1]],this.size=this.params.getSize(I),nt=r.getMatchingDroppables(this),S(nt,!0,!1,this),this.params.addClass(I,this.params.dragClass||n.drag),e=this.params.getConstrainingRectangle?this.params.getConstrainingRectangle(I):this.params.getSize(I.parentNode),et={w:e[0],h:e[1]},m=0,v=0,t&&r.notifySelectionDragStart(this)},this.unmark=function(t,i){if(S(nt,!1,!0,this),U&&l(R,I)?(at=[I.offsetLeft-m,I.offsetTop-v],I.parentNode.removeChild(I),I=R):at=null,this.params.removeClass(I,this.params.dragClass||n.drag),nt.length=0,U=!1,!i){it.length>0&&at&&e.setPosition(R,at),it.sort(P);for(var r=0;r<it.length;r++){var a=it[r].drop(this,t);if(!0===a)break}}},this.moveBy=function(t,n,i){it.length=0;var r=this.toGrid([b[0]+t,b[1]+n]),a=q(r,I,et,this.size);if(l(this.el,I))if(r[0]!==a[0]||r[1]!==a[1]){if(!U){var o=c(R);e.addClass(o,y.ghostProxy),Y?(Y.appendChild(o),f=e.getPosition(R.parentNode,!0),p=e.getPosition(e.ghostProxyParent,!0),m=f[0]-p[0],v=f[1]-p[1]):R.parentNode.appendChild(o),I=o,U=!0}a=r}else U&&(I.parentNode.removeChild(I),I=R,U=!1,f=null,p=null,m=0,v=0);var s={x:a[0],y:a[1],w:this.size[0],h:this.size[1]},u={x:s.x+x[0],y:s.y+x[1],w:s.w,h:s.h},d=null;this.params.setPosition(I,[a[0]+m,a[1]+v]);for(var h=0;h<nt.length;h++){var g={x:nt[h].pagePosition[0],y:nt[h].pagePosition[1],w:nt[h].size[0],h:nt[h].size[1]};this.params.intersects(u,g)&&(F||null==d||d===nt[h].el)&&nt[h].canDrop(this)?(d||(d=nt[h].el),it.push(nt[h]),nt[h].setHover(this,!0,i)):nt[h].isHover()&&nt[h].setHover(this,!1,i)}ot("drag",{el:this.el,pos:a,e:i,drag:this})},this.destroy=function(){this.params.unbind(this.el,"mousedown",this.downListener),this.params.unbind(document,"mousemove",this.moveListener),this.params.unbind(document,"mouseup",this.upListener),this.downListener=null,this.upListener=null,this.moveListener=null},this.params.bind(this.el,"mousedown",this.downListener),this.params.handle?tt(this.params.handle,!1):tt(this.params.filter,this.params.filterExclude)},I=function(t,e,n,i){this._class=n.droppable,this.params=e||{},this.rank=e.rank||0,this._activeClass=this.params.activeClass||n.active,this._hoverClass=this.params.hoverClass||n.hover,L.apply(this,arguments);var r=!1;this.allowLoopback=!1!==this.params.allowLoopback,this.setActive=function(t){this.params[t?"addClass":"removeClass"](this.el,this._activeClass)},this.updatePosition=function(){this.position=this.params.getPosition(this.el),this.pagePosition=this.params.getPosition(this.el,!0),this.size=this.params.getSize(this.el)},this.canDrop=this.params.canDrop||function(t){return!0},this.isHover=function(){return r},this.setHover=function(t,e,n){(e||null==this.el._katavorioDragHover||this.el._katavorioDragHover===t.el._katavorio)&&(this.params[e?"addClass":"removeClass"](this.el,this._hoverClass),this.el._katavorioDragHover=e?t.el._katavorio:null,r!==e&&this.params.events[e?"over":"out"]({el:this.el,e:n,drag:t,drop:this}),r=e)},this.drop=function(t,e){return this.params.events["drop"]({drag:t,e:e,drop:this})},this.destroy=function(){this._class=null,this._activeClass=null,this._hoverClass=null,r=null}},O=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0,n="x"===t?e:3&e|8;return n.toString(16)}))},P=function(t,e){return t.rank<e.rank?1:t.rank>e.rank?-1:0},N=function(t){return null==t?null:(t="string"===typeof t||t.constructor===String?document.getElementById(t):t,null==t?null:(t._katavorio=t._katavorio||O(),t))};t.Katavorio=function(t){var e=[],o={};this._dragsByScope={},this._dropsByScope={};var s=1,l=function(t,e){C(t,(function(t){for(var n=0;n<t.scopes.length;n++)e[t.scopes[n]]=e[t.scopes[n]]||[],e[t.scopes[n]].push(t)}))},u=function(e,n){var i=0;return C(e,(function(e){for(var r=0;r<e.scopes.length;r++)if(n[e.scopes[r]]){var a=t.indexOf(n[e.scopes[r]],e);-1!==a&&(n[e.scopes[r]].splice(a,1),i++)}})),i>0},c=(this.getMatchingDroppables=function(t){for(var e=[],n={},i=0;i<t.scopes.length;i++){var r=this._dropsByScope[t.scopes[i]];if(r)for(var a=0;a<r.length;a++)!r[a].canDrop(t)||n[r[a].uuid]||!r[a].allowLoopback&&r[a].el===t.el||(n[r[a].uuid]=!0,e.push(r[a]))}return e.sort(P),e},function(e){e=e||{};var n,i={events:{}};for(n in t)i[n]=t[n];for(n in e)i[n]=e[n];for(n=0;n<b.length;n++)i.events[b[n]]=e[b[n]]||_;return i.katavorio=this,i}.bind(this)),d=function(t,e){for(var n=0;n<b.length;n++)e[b[n]]&&t.on(b[n],e[b[n]])}.bind(this),h={},f=t.css||{},p=t.scope||A;for(var g in y)h[g]=y[g];for(var g in f)h[g]=f[g];var m=t.inputFilterSelector||M;this.getInputFilterSelector=function(){return m},this.setInputFilterSelector=function(t){return m=t,this},this.draggable=function(e,n){var i=[];return C(e,function(e){if(e=N(e),null!=e)if(null==e._katavorioDrag){var r=c(n);e._katavorioDrag=new B(e,r,h,p),l(e._katavorioDrag,this._dragsByScope),i.push(e._katavorioDrag),t.addClass(e,r.selector?h.delegatedDraggable:h.draggable)}else d(e._katavorioDrag,n)}.bind(this)),i},this.droppable=function(e,n){var i=[];return C(e,function(e){if(e=N(e),null!=e){var r=new I(e,c(n),h,p);e._katavorioDrop=e._katavorioDrop||[],e._katavorioDrop.push(r),l(r,this._dropsByScope),i.push(r),t.addClass(e,h.droppable)}}.bind(this)),i},this.select=function(n){return C(n,(function(){var n=N(this);n&&n._katavorioDrag&&(o[n._katavorio]||(e.push(n._katavorioDrag),o[n._katavorio]=[n,e.length-1],t.addClass(n,h.selected)))})),this},this.deselect=function(n){return C(n,(function(){var n=N(this);if(n&&n._katavorio){var i=o[n._katavorio];if(i){for(var r=[],a=0;a<e.length;a++)e[a].el!==n&&r.push(e[a]);e=r,delete o[n._katavorio],t.removeClass(n,h.selected)}}})),this},this.deselectAll=function(){for(var n in o){var i=o[n];t.removeClass(i[0],h.selected)}e.length=0,o={}},this.markSelection=function(t){x(e,(function(t){t.mark()}),t)},this.markPosses=function(t){t.posses&&C(t.posses,(function(e){t.posseRoles[e]&&k[e]&&x(k[e].members,(function(t){t.mark()}),t)}))},this.unmarkSelection=function(t,n){x(e,(function(t){t.unmark(n)}),t)},this.unmarkPosses=function(t,e){t.posses&&C(t.posses,(function(n){t.posseRoles[n]&&k[n]&&x(k[n].members,(function(t){t.unmark(e,!0)}),t)}))},this.getSelection=function(){return e.slice(0)},this.updateSelection=function(t,n,i){x(e,(function(e){e.moveBy(t,n)}),i)};var v=function(t,e){e.posses&&C(e.posses,(function(n){e.posseRoles[n]&&k[n]&&x(k[n].members,(function(e){t(e)}),e)}))};this.updatePosses=function(t,e,n){v((function(n){n.moveBy(t,e)}),n)},this.notifyPosseDragStop=function(t,e){v((function(t){t.stop(e,!0)}),t)},this.notifySelectionDragStop=function(t,n){x(e,(function(t){t.stop(n,!0)}),t)},this.notifySelectionDragStart=function(t,n){x(e,(function(t){t.notifyStart(n)}),t)},this.setZoom=function(t){s=t},this.getZoom=function(){return s};var w=function(t,e,n,i){C(t,(function(t){u(t,n),t[i](e),l(t,n)}))};C(["set","add","remove","toggle"],function(t){this[t+"Scope"]=function(e,n){w(e._katavorioDrag,n,this._dragsByScope,t+"Scope"),w(e._katavorioDrop,n,this._dropsByScope,t+"Scope")}.bind(this),this[t+"DragScope"]=function(e,n){w(e.constructor===B?e:e._katavorioDrag,n,this._dragsByScope,t+"Scope")}.bind(this),this[t+"DropScope"]=function(e,n){w(e.constructor===I?e:e._katavorioDrop,n,this._dropsByScope,t+"Scope")}.bind(this)}.bind(this)),this.snapToGrid=function(t,e){for(var n in this._dragsByScope)x(this._dragsByScope[n],(function(n){n.snap(t,e)}))},this.getDragsForScope=function(t){return this._dragsByScope[t]},this.getDropsForScope=function(t){return this._dropsByScope[t]};var S=function(t,n,i){if(t=N(t),t[n]){var r=e.indexOf(t[n]);r>=0&&e.splice(r,1),u(t[n],i)&&C(t[n],(function(t){t.destroy()})),delete t[n]}},T=function(t,e,n,i){t=N(t),t[e]&&t[e].off(n,i)};this.elementRemoved=function(t){t["_katavorioDrag"]&&this.destroyDraggable(t),t["_katavorioDrop"]&&this.destroyDroppable(t)},this.destroyDraggable=function(t,e,n){1===arguments.length?S(t,"_katavorioDrag",this._dragsByScope):T(t,"_katavorioDrag",e,n)},this.destroyDroppable=function(t,e,n){1===arguments.length?S(t,"_katavorioDrop",this._dropsByScope):T(t,"_katavorioDrop",e,n)},this.reset=function(){this._dragsByScope={},this._dropsByScope={},e=[],o={},k={}};var k={},L=function(t,e,i){var r=a(e)?e:e.id,o=!!a(e)||!1!==e.active,s=k[r]||function(){var t={name:r,members:[]};return k[r]=t,t}();return C(t,(function(t){if(t._katavorioDrag){if(i&&null!=t._katavorioDrag.posseRoles[s.name])return;n(s.members,t._katavorioDrag),n(t._katavorioDrag.posses,s.name),t._katavorioDrag.posseRoles[s.name]=o}})),s};this.addToPosse=function(t,e){for(var n=[],i=1;i<arguments.length;i++)n.push(L(t,arguments[i]));return 1===n.length?n[0]:n},this.setPosse=function(t,e){for(var n=[],i=1;i<arguments.length;i++)n.push(L(t,arguments[i],!0).name);return C(t,function(t){if(t._katavorioDrag){var e=r(t._katavorioDrag.posses,n),i=[];Array.prototype.push.apply(i,t._katavorioDrag.posses);for(var a=0;a<e.length;a++)this.removeFromPosse(t,e[a])}}.bind(this)),1===n.length?n[0]:n},this.removeFromPosse=function(t,e){if(arguments.length<2)throw new TypeError("No posse id provided for remove operation");for(var n=1;n<arguments.length;n++)e=arguments[n],C(t,(function(t){if(t._katavorioDrag&&t._katavorioDrag.posses){var n=t._katavorioDrag;C(e,(function(t){i(k[t].members,n),i(n.posses,t),delete n.posseRoles[t]}))}}))},this.removeFromAllPosses=function(t){C(t,(function(t){if(t._katavorioDrag&&t._katavorioDrag.posses){var e=t._katavorioDrag;C(e.posses,(function(t){i(k[t].members,e)})),e.posses.length=0,e.posseRoles={}}}))},this.setPosseState=function(t,e,n){var i=k[e];i&&C(t,(function(t){t._katavorioDrag&&t._katavorioDrag.posses&&(t._katavorioDrag.posseRoles[i.name]=n)}))}},t.Katavorio.version="1.0.0",e.Katavorio=t.Katavorio}.call("undefined"!==typeof window?window:this),function(){var t=this;t.jsPlumbUtil=t.jsPlumbUtil||{};var n=t.jsPlumbUtil;function i(t){return"[object Array]"===Object.prototype.toString.call(t)}function r(t){return"[object Number]"===Object.prototype.toString.call(t)}function a(t){return"string"===typeof t}function o(t){return"boolean"===typeof t}function s(t){return null==t}function l(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function u(t){return"[object Date]"===Object.prototype.toString.call(t)}function c(t){return"[object Function]"===Object.prototype.toString.call(t)}function d(t){return c(t)&&null!=t.name&&t.name.length>0}function h(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function f(t){if(a(t))return""+t;if(o(t))return!!t;if(u(t))return new Date(t.getTime());if(c(t))return t;if(i(t)){for(var e=[],n=0;n<t.length;n++)e.push(f(t[n]));return e}if(l(t)){var r={};for(var s in t)r[s]=f(t[s]);return r}return t}function p(t,e,n,r){var s,u,c={},d={};for(n=n||[],r=r||[],u=0;u<n.length;u++)c[n[u]]=!0;for(u=0;u<r.length;u++)d[r[u]]=!0;var h=f(t);for(u in e)if(null==h[u]||d[u])h[u]=e[u];else if(a(e[u])||o(e[u]))c[u]?(s=[],s.push.apply(s,i(h[u])?h[u]:[h[u]]),s.push.apply(s,o(e[u])?e[u]:[e[u]]),h[u]=s):h[u]=e[u];else if(i(e[u]))s=[],i(h[u])&&s.push.apply(s,h[u]),s.push.apply(s,e[u]),h[u]=s;else if(l(e[u]))for(var p in l(h[u])||(h[u]={}),e[u])h[u][p]=e[u][p];return h}function g(t,e,n){if(null!=t){var i=t,r=i;return e.replace(/([^\.])+/g,(function(t,e,i,a){var o=t.match(/([^\[0-9]+){1}(\[)([0-9+])/),s=i+t.length>=a.length,l=function(){return r[o[1]]||function(){return r[o[1]]=[],r[o[1]]}()};if(s)o?l()[o[3]]=n:r[t]=n;else if(o){var u=l();r=u[o[3]]||function(){return u[o[3]]={},u[o[3]]}()}else r=r[t]||function(){return r[t]={},r[t]}();return""})),t}}function m(t,e,n){for(var i=0;i<n.length;i++){var r=n[i][0][n[i][1]].apply(n[i][0],n[i][2]);if(r===e)return r}return t}function v(t,e,n,r){var o=function(t){var n=t.match(/(\${.*?})/g);if(null!=n)for(var i=0;i<n.length;i++){var r=e[n[i].substring(2,n[i].length-1)]||"";null!=r&&(t=t.replace(n[i],r))}return t},s=function(t){if(null!=t){if(a(t))return o(t);if(!c(t)||r||null!=n&&0!==(t.name||"").indexOf(n)){if(i(t)){for(var u=[],d=0;d<t.length;d++)u.push(s(t[d]));return u}if(l(t)){var h={};for(var f in t)h[f]=s(t[f]);return h}return t}return t(e)}};return s(t)}function y(t,e){if(t)for(var n=0;n<t.length;n++)if(e(t[n]))return n;return-1}function A(t,e){var n=y(t,e);return n>-1&&t.splice(n,1),-1!==n}function b(t,e){var n=t.indexOf(e);return n>-1&&t.splice(n,1),-1!==n}function _(t,e,n){-1===y(t,n)&&t.push(e)}function w(t,e,n,i){var r=t[e];return null==r&&(r=[],t[e]=r),r[i?"unshift":"push"](n),r}function x(t,e,n){return-1===t.indexOf(e)&&(n?t.unshift(e):t.push(e),!0)}function S(t,e,n){var r;e=i(e)?e:[e];var a=function(e){var n=e.__proto__;while(null!=n)if(null!=n.prototype){for(var i in n.prototype)n.prototype.hasOwnProperty(i)&&!t.prototype.hasOwnProperty(i)&&(t.prototype[i]=n.prototype[i]);n=n.prototype.__proto__}else n=null};for(r=0;r<e.length;r++){for(var o in e[r].prototype)e[r].prototype.hasOwnProperty(o)&&!t.prototype.hasOwnProperty(o)&&(t.prototype[o]=e[r].prototype[o]);a(e[r])}var s=function(t,n){return function(){for(r=0;r<e.length;r++)e[r].prototype[t]&&e[r].prototype[t].apply(this,arguments);return n.apply(this,arguments)}},l=function(e){for(var n in e)t.prototype[n]=s(n,e[n])};if(arguments.length>2)for(r=2;r<arguments.length;r++)l(arguments[r]);return t}e.jsPlumbUtil=n,n.isArray=i,n.isNumber=r,n.isString=a,n.isBoolean=o,n.isNull=s,n.isObject=l,n.isDate=u,n.isFunction=c,n.isNamedFunction=d,n.isEmpty=h,n.clone=f,n.merge=p,n.replace=g,n.functionChain=m,n.populate=v,n.findWithFunction=y,n.removeWithFunction=A,n.remove=b,n.addWithFunction=_,n.addToList=w,n.suggest=x,n.extend=S;for(var C=[],T=0;T<256;T++)C[T]=(T<16?"0":"")+T.toString(16);function M(){var t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return C[255&t]+C[t>>8&255]+C[t>>16&255]+C[t>>24&255]+"-"+C[255&e]+C[e>>8&255]+"-"+C[e>>16&15|64]+C[e>>24&255]+"-"+C[63&n|128]+C[n>>8&255]+"-"+C[n>>16&255]+C[n>>24&255]+C[255&i]+C[i>>8&255]+C[i>>16&255]+C[i>>24&255]}function k(t){if(null==t)return null;var e=t.replace(/^\s\s*/,""),n=/\s/,i=e.length;while(n.test(e.charAt(--i)));return e.slice(0,i+1)}function L(t,e){t=null==t.length||"string"===typeof t?[t]:t;for(var n=0;n<t.length;n++)e(t[n])}function D(t,e){for(var n=[],i=0;i<t.length;i++)n.push(e(t[i]));return n}function E(t,e,n){n=n||"parent";var i=function(t){return t?e[t]:null},r=function(t){return t?i(t[n]):null},a=function(t,e){if(null==t)return e;var n=["anchor","anchors","cssClass","connector","paintStyle","hoverPaintStyle","endpoint","endpoints"];"override"===e.mergeStrategy&&Array.prototype.push.apply(n,["events","overlays"]);var i=p(t,e,[],n);return a(r(t),i)},o=function(t){if(null==t)return{};if("string"===typeof t)return i(t);if(t.length){var e=!1,n=0,r=void 0;while(!e&&n<t.length)r=o(t[n]),r?e=!0:n++;return r}},s=o(t);return s?a(r(s),s):{}}function B(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(n.logEnabled&&"undefined"!==typeof console)try{var i=arguments[arguments.length-1];console.log(i)}catch(r){}}function I(t,e,n){return function(){var i=null;try{null!=e&&(i=e.apply(this,arguments))}catch(r){B("jsPlumb function failed : "+r)}if(null!=t&&(null==n||i!==n))try{i=t.apply(this,arguments)}catch(r){B("wrapped function failed : "+r)}return i}}n.uuid=M,n.fastTrim=k,n.each=L,n.map=D,n.mergeWithParents=E,n.logEnabled=!0,n.log=B,n.wrap=I;var O=function(){function t(){var t=this;this._listeners={},this.eventsSuspended=!1,this.tick=!1,this.eventsToDieOn={ready:!0},this.queue=[],this.bind=function(e,n,i){var r=function(e){w(t._listeners,e,n,i),n.__jsPlumb=n.__jsPlumb||{},n.__jsPlumb[M()]=e};if("string"===typeof e)r(e);else if(null!=e.length)for(var a=0;a<e.length;a++)r(e[a]);return t},this.fire=function(t,e,n){if(this.tick)this.queue.unshift(arguments);else{if(this.tick=!0,!this.eventsSuspended&&this._listeners[t]){var i=this._listeners[t].length,r=0,a=!1,o=null;if(!this.shouldFireEvent||this.shouldFireEvent(t,e,n))while(!a&&r<i&&!1!==o){if(this.eventsToDieOn[t])this._listeners[t][r].apply(this,[e,n]);else try{o=this._listeners[t][r].apply(this,[e,n])}catch(s){B("jsPlumb: fire failed for event "+t+" : "+s)}r++,null!=this._listeners&&null!=this._listeners[t]||(a=!0)}}this.tick=!1,this._drain()}return this},this._drain=function(){var e=t.queue.pop();e&&t.fire.apply(t,e)},this.unbind=function(t,e){if(0===arguments.length)this._listeners={};else if(1===arguments.length){if("string"===typeof t)delete this._listeners[t];else if(t.__jsPlumb){var n=void 0;for(var i in t.__jsPlumb)n=t.__jsPlumb[i],b(this._listeners[n]||[],t)}}else 2===arguments.length&&b(this._listeners[t]||[],e);return this},this.getListener=function(e){return t._listeners[e]},this.setSuspendEvents=function(e){t.eventsSuspended=e},this.isSuspendEvents=function(){return t.eventsSuspended},this.silently=function(e){t.setSuspendEvents(!0);try{e()}catch(n){B("Cannot execute silent function "+n)}t.setSuspendEvents(!1)},this.cleanupListeners=function(){for(var e in t._listeners)t._listeners[e]=null}}return t}();function P(t,e,n){var i=[t[0]-e[0],t[1]-e[1]],r=Math.cos(n/360*Math.PI*2),a=Math.sin(n/360*Math.PI*2);return[i[0]*r-i[1]*a+e[0],i[1]*r+i[0]*a+e[1],r,a]}function N(t,e){var n=P(t,[0,0],e);return[Math.round(n[0]),Math.round(n[1])]}n.EventGenerator=O,n.rotatePoint=P,n.rotateAnchorOrientation=N}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this;t.jsPlumbUtil.matchesSelector=function(t,e,n){n=n||t.parentNode;for(var i=n.querySelectorAll(e),r=0;r<i.length;r++)if(i[r]===t)return!0;return!1},t.jsPlumbUtil.consume=function(t,e){t.stopPropagation?t.stopPropagation():t.returnValue=!1,!e&&t.preventDefault&&t.preventDefault()},t.jsPlumbUtil.sizeElement=function(t,e,n,i,r){t&&(t.style.height=r+"px",t.height=r,t.style.width=i+"px",t.width=i,t.style.left=e+"px",t.style.top=n+"px")}}.call("undefined"!==typeof window?window:this),function(){var t={deriveAnchor:function(t,e,n,i){return{top:["TopRight","TopLeft"],bottom:["BottomRight","BottomLeft"]}[t][e]}},e=this,n=function(t,e){this.count=0,this.instance=t,this.lists={},this.options=e||{},this.instance.addList=function(t,e){return this.listManager.addList(t,e)},this.instance.removeList=function(t){this.listManager.removeList(t)},this.instance.bind("manageElement",function(t){for(var e=this.instance.getSelector(t.el,"[jtk-scrollable-list]"),n=0;n<e.length;n++)this.addList(e[n])}.bind(this)),this.instance.bind("unmanageElement",(function(t){this.removeList(t.el)})),this.instance.bind("connection",function(t,e){null==e&&(this._maybeUpdateParentList(t.source),this._maybeUpdateParentList(t.target))}.bind(this))};e.jsPlumbListManager=n,n.prototype={addList:function(e,n){var r=this.instance.extend({},t);this.instance.extend(r,this.options),n=this.instance.extend(r,n||{});var a=[this.instance.getInstanceIndex(),this.count++].join("_");this.lists[a]=new i(this.instance,e,n,a)},removeList:function(t){var e=this.lists[t._jsPlumbList];e&&(e.destroy(),delete this.lists[t._jsPlumbList])},_maybeUpdateParentList:function(t){var e=t.parentNode,n=this.instance.getContainer();while(null!=e&&e!==n){if(null!=e._jsPlumbList&&null!=this.lists[e._jsPlumbList])return void e._jsPlumbScrollHandler();e=e.parentNode}}};var i=function(t,e,n,i){function r(t,e,i,r){return n.anchor?n.anchor:n.deriveAnchor(t,e,i,r)}function a(t,e,i,r){return n.deriveEndpoint?n.deriveEndpoint(t,e,i,r):n.endpoint?n.endpoint:i.type}function o(e){var n=e.parentNode,i=t.getContainer();while(null!=n&&n!==i){if(t.hasClass(n,"jtk-managed"))return void t.recalculateOffsets(n);n=n.parentNode}}e["_jsPlumbList"]=i;var s=function(n){for(var i=t.getSelector(e,".jtk-managed"),s=t.getId(e),l=0;l<i.length;l++){if(i[l].offsetTop<e.scrollTop)i[l]._jsPlumbProxies||(i[l]._jsPlumbProxies=i[l]._jsPlumbProxies||[],t.select({source:i[l]}).each((function(n){t.proxyConnection(n,0,e,s,(function(){return a("top",0,n.endpoints[0],n)}),(function(){return r("top",0,n.endpoints[0],n)})),i[l]._jsPlumbProxies.push([n,0])})),t.select({target:i[l]}).each((function(n){t.proxyConnection(n,1,e,s,(function(){return a("top",1,n.endpoints[1],n)}),(function(){return r("top",1,n.endpoints[1],n)})),i[l]._jsPlumbProxies.push([n,1])})));else if(i[l].offsetTop+i[l].offsetHeight>e.scrollTop+e.offsetHeight)i[l]._jsPlumbProxies||(i[l]._jsPlumbProxies=i[l]._jsPlumbProxies||[],t.select({source:i[l]}).each((function(n){t.proxyConnection(n,0,e,s,(function(){return a("bottom",0,n.endpoints[0],n)}),(function(){return r("bottom",0,n.endpoints[0],n)})),i[l]._jsPlumbProxies.push([n,0])})),t.select({target:i[l]}).each((function(n){t.proxyConnection(n,1,e,s,(function(){return a("bottom",1,n.endpoints[1],n)}),(function(){return r("bottom",1,n.endpoints[1],n)})),i[l]._jsPlumbProxies.push([n,1])})));else if(i[l]._jsPlumbProxies){for(var u=0;u<i[l]._jsPlumbProxies.length;u++)t.unproxyConnection(i[l]._jsPlumbProxies[u][0],i[l]._jsPlumbProxies[u][1],s);delete i[l]._jsPlumbProxies}t.revalidate(i[l])}o(e)};t.setAttribute(e,"jtk-scrollable-list","true"),e._jsPlumbScrollHandler=s,t.on(e,"scroll",s),s(),this.destroy=function(){t.off(e,"scroll",s),delete e._jsPlumbScrollHandler;for(var n=t.getSelector(e,".jtk-managed"),i=t.getId(e),r=0;r<n.length;r++)if(n[r]._jsPlumbProxies){for(var a=0;a<n[r]._jsPlumbProxies.length;a++)t.unproxyConnection(n[r]._jsPlumbProxies[a][0],n[r]._jsPlumbProxies[a][1],i);delete n[r]._jsPlumbProxies}}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,n=t.jsPlumbUtil,i=function(t){if(t._jsPlumb.paintStyle&&t._jsPlumb.hoverPaintStyle){var e={};p.extend(e,t._jsPlumb.paintStyle),p.extend(e,t._jsPlumb.hoverPaintStyle),delete t._jsPlumb.hoverPaintStyle,e.gradient&&t._jsPlumb.paintStyle.fill&&delete e.gradient,t._jsPlumb.hoverPaintStyle=e}},r=["tap","dbltap","click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","contextmenu"],a=function(t,e,n,i){var r=t.getAttachedElements();if(r)for(var a=0,o=r.length;a<o;a++)i&&i===r[a]||r[a].setHover(e,!0,n)},o=function(t){return null==t?null:t.split(" ")},s=function(t,e,n){for(var i in e)t[i]=n},l=function(t,e,i){if(t.getDefaultType){var r=t.getTypeDescriptor(),a={},o=t.getDefaultType(),l=n.merge({},o);s(a,o,"__default");for(var u=0,c=t._jsPlumb.types.length;u<c;u++){var d=t._jsPlumb.types[u];if("__default"!==d){var h=t._jsPlumb.instance.getType(d,r);if(null!=h){var f=["anchor","anchors","connector","paintStyle","hoverPaintStyle","endpoint","endpoints","connectorOverlays","connectorStyle","connectorHoverStyle","endpointStyle","endpointHoverStyle"],p=[];"override"===h.mergeStrategy?Array.prototype.push.apply(f,["events","overlays","cssClass"]):p.push("cssClass"),l=n.merge(l,h,p,f),s(a,h,d)}}}e&&(l=n.populate(l,e,"_")),t.applyType(l,i,a),i||t.repaint()}},u=t.jsPlumbUIComponent=function(t){n.EventGenerator.apply(this,arguments);var e=this,i=arguments,r=e.idPrefix,a=r+(new Date).getTime();this._jsPlumb={instance:t._jsPlumb,parameters:t.parameters||{},paintStyle:null,hoverPaintStyle:null,paintStyleInUse:null,hover:!1,beforeDetach:t.beforeDetach,beforeDrop:t.beforeDrop,overlayPlacements:[],hoverClass:t.hoverClass||t._jsPlumb.Defaults.HoverClass,types:[],typeCache:{}},this.cacheTypeItem=function(t,e,n){this._jsPlumb.typeCache[n]=this._jsPlumb.typeCache[n]||{},this._jsPlumb.typeCache[n][t]=e},this.getCachedTypeItem=function(t,e){return this._jsPlumb.typeCache[e]?this._jsPlumb.typeCache[e][t]:null},this.getId=function(){return a};var o=t.overlays||[],s={};if(this.defaultOverlayKeys){for(var l=0;l<this.defaultOverlayKeys.length;l++)Array.prototype.push.apply(o,this._jsPlumb.instance.Defaults[this.defaultOverlayKeys[l]]||[]);for(l=0;l<o.length;l++){var u=p.convertToFullOverlaySpec(o[l]);s[u[1].id]=u}}var c={overlays:s,parameters:t.parameters||{},scope:t.scope||this._jsPlumb.instance.getDefaultScope()};if(this.getDefaultType=function(){return c},this.appendToDefaultType=function(t){for(var e in t)c[e]=t[e]},t.events)for(var d in t.events)e.bind(d,t.events[d]);this.clone=function(){var t=Object.create(this.constructor.prototype);return this.constructor.apply(t,i),t}.bind(this),this.isDetachAllowed=function(t){var e=!0;if(this._jsPlumb.beforeDetach)try{e=this._jsPlumb.beforeDetach(t)}catch(i){n.log("jsPlumb: beforeDetach callback failed",i)}return e},this.isDropAllowed=function(t,e,i,r,a,o,s){var l=this._jsPlumb.instance.checkCondition("beforeDrop",{sourceId:t,targetId:e,scope:i,connection:r,dropEndpoint:a,source:o,target:s});if(this._jsPlumb.beforeDrop)try{l=this._jsPlumb.beforeDrop({sourceId:t,targetId:e,scope:i,connection:r,dropEndpoint:a,source:o,target:s})}catch(u){n.log("jsPlumb: beforeDrop callback failed",u)}return l};var h=[];this.setListenerComponent=function(t){for(var e=0;e<h.length;e++)h[e][3]=t}},c=function(t,e){var n=t._jsPlumb.types[e],i=t._jsPlumb.instance.getType(n,t.getTypeDescriptor());null!=i&&i.cssClass&&t.canvas&&t._jsPlumb.instance.removeClass(t.canvas,i.cssClass)};n.extend(t.jsPlumbUIComponent,n.EventGenerator,{getParameter:function(t){return this._jsPlumb.parameters[t]},setParameter:function(t,e){this._jsPlumb.parameters[t]=e},getParameters:function(){return this._jsPlumb.parameters},setParameters:function(t){this._jsPlumb.parameters=t},getClass:function(){return p.getClass(this.canvas)},hasClass:function(t){return p.hasClass(this.canvas,t)},addClass:function(t){p.addClass(this.canvas,t)},removeClass:function(t){p.removeClass(this.canvas,t)},updateClasses:function(t,e){p.updateClasses(this.canvas,t,e)},setType:function(t,e,n){this.clearTypes(),this._jsPlumb.types=o(t)||[],l(this,e,n)},getType:function(){return this._jsPlumb.types},reapplyTypes:function(t,e){l(this,t,e)},hasType:function(t){return-1!==this._jsPlumb.types.indexOf(t)},addType:function(t,e,n){var i=o(t),r=!1;if(null!=i){for(var a=0,s=i.length;a<s;a++)this.hasType(i[a])||(this._jsPlumb.types.push(i[a]),r=!0);r&&l(this,e,n)}},removeType:function(t,e,n){var i=o(t),r=!1,a=function(t){var e=this._jsPlumb.types.indexOf(t);return-1!==e&&(c(this,e),this._jsPlumb.types.splice(e,1),!0)}.bind(this);if(null!=i){for(var s=0,u=i.length;s<u;s++)r=a(i[s])||r;r&&l(this,e,n)}},clearTypes:function(t,e){for(var n=this._jsPlumb.types.length,i=0;i<n;i++)c(this,0),this._jsPlumb.types.splice(0,1);l(this,t,e)},toggleType:function(t,e,n){var i=o(t);if(null!=i){for(var r=0,a=i.length;r<a;r++){var s=this._jsPlumb.types.indexOf(i[r]);-1!==s?(c(this,s),this._jsPlumb.types.splice(s,1)):this._jsPlumb.types.push(i[r])}l(this,e,n)}},applyType:function(t,e){if(this.setPaintStyle(t.paintStyle,e),this.setHoverPaintStyle(t.hoverPaintStyle,e),t.parameters)for(var n in t.parameters)this.setParameter(n,t.parameters[n]);this._jsPlumb.paintStyleInUse=this.getPaintStyle()},setPaintStyle:function(t,e){this._jsPlumb.paintStyle=t,this._jsPlumb.paintStyleInUse=this._jsPlumb.paintStyle,i(this),e||this.repaint()},getPaintStyle:function(){return this._jsPlumb.paintStyle},setHoverPaintStyle:function(t,e){this._jsPlumb.hoverPaintStyle=t,i(this),e||this.repaint()},getHoverPaintStyle:function(){return this._jsPlumb.hoverPaintStyle},destroy:function(t){(t||null==this.typeId)&&(this.cleanupListeners(),this.clone=null,this._jsPlumb=null)},isHover:function(){return this._jsPlumb.hover},setHover:function(t,e,n){if(this._jsPlumb&&!this._jsPlumb.instance.currentlyDragging&&!this._jsPlumb.instance.isHoverSuspended()){this._jsPlumb.hover=t;var i=t?"addClass":"removeClass";null!=this.canvas&&(null!=this._jsPlumb.instance.hoverClass&&this._jsPlumb.instance[i](this.canvas,this._jsPlumb.instance.hoverClass),null!=this._jsPlumb.hoverClass&&this._jsPlumb.instance[i](this.canvas,this._jsPlumb.hoverClass)),null!=this._jsPlumb.hoverPaintStyle&&(this._jsPlumb.paintStyleInUse=t?this._jsPlumb.hoverPaintStyle:this._jsPlumb.paintStyle,this._jsPlumb.instance.isSuspendDrawing()||(n=n||jsPlumbUtil.uuid(),this.repaint({timestamp:n,recalc:!1}))),this.getAttachedElements&&!e&&a(this,t,jsPlumbUtil.uuid(),this)}}});var d=0,h=function(){var t=d+1;return d++,t},f=t.jsPlumbInstance=function(e){this.version="2.15.6",this.Defaults={Anchor:"Bottom",Anchors:[null,null],ConnectionsDetachable:!0,ConnectionOverlays:[],Connector:"Bezier",Container:null,DoNotThrowErrors:!1,DragOptions:{},DropOptions:{},Endpoint:"Dot",EndpointOverlays:[],Endpoints:[null,null],EndpointStyle:{fill:"#456"},EndpointStyles:[null,null],EndpointHoverStyle:null,EndpointHoverStyles:[null,null],HoverPaintStyle:null,LabelStyle:{color:"black"},ListStyle:{},LogEnabled:!1,Overlays:[],MaxConnections:1,PaintStyle:{"stroke-width":4,stroke:"#456"},ReattachConnections:!1,RenderMode:"svg",Scope:"jsPlumb_DefaultScope"},e&&p.extend(this.Defaults,e),this.logEnabled=this.Defaults.LogEnabled,this._connectionTypes={},this._endpointTypes={},n.EventGenerator.apply(this);var i=this,a=h(),o=i.bind,s={},l=1,c=function(t){if(null==t)return null;if(3===t.nodeType||8===t.nodeType)return{el:t,text:!0};var e=i.getElement(t);return{el:e,id:n.isString(t)&&null==e?t:Q(e)}};for(var d in this.getInstanceIndex=function(){return a},this.setZoom=function(t,e){return l=t,i.fire("zoom",l),e&&i.repaintEverything(),!0},this.getZoom=function(){return l},this.Defaults)s[d]=this.Defaults[d];var f,g=[];this.unbindContainer=function(){if(null!=f&&g.length>0)for(var t=0;t<g.length;t++)i.off(f,g[t][0],g[t][1])},this.setContainer=function(t){this.unbindContainer(),t=this.getElement(t),this.select().each((function(e){e.moveParent(t)})),this.selectEndpoints().each((function(e){e.moveParent(t)}));var e=f;f=t,g.length=0;for(var n={endpointclick:"endpointClick",endpointdblclick:"endpointDblClick"},a=function(t,e,r){var a=e.srcElement||e.target,o=(a&&a.parentNode?a.parentNode._jsPlumb:null)||(a?a._jsPlumb:null)||(a&&a.parentNode&&a.parentNode.parentNode?a.parentNode.parentNode._jsPlumb:null);if(o){o.fire(t,o,e);var s=r&&n[r+t]||t;i.fire(s,o.component||o,e)}},o=function(t,e,n){g.push([t,n]),i.on(f,t,e,n)},s=function(t){o(t,".jtk-connector",(function(e){a(t,e)})),o(t,".jtk-endpoint",(function(e){a(t,e,"endpoint")})),o(t,".jtk-overlay",(function(e){a(t,e)}))},l=0;l<r.length;l++)s(r[l]);for(var u in _){var c=_[u].el;c.parentNode===e&&(e.removeChild(c),f.appendChild(c))}},this.getContainer=function(){return f},this.bind=function(t,e){"ready"===t&&v?e():o.apply(i,[t,e])},i.importDefaults=function(t){for(var e in t)i.Defaults[e]=t[e];return t.Container&&i.setContainer(t.Container),i},i.restoreDefaults=function(){return i.Defaults=p.extend({},s),i};var m=null,v=!1,y=[],A={},b={},_={},w={},x={},S=!1,C=[],T=!1,M=null,k=this.Defaults.Scope,L=1,D=function(){return""+L++},E=function(t,e){f?f.appendChild(t):e?this.getElement(e).appendChild(t):this.appendToRoot(t)}.bind(this),B=function(t,e,n,r){var a={c:[],e:[]};if(!T&&(t=i.getElement(t),null!=t)){var o=Q(t),s=t.querySelectorAll(".jtk-managed");null==n&&(n=jsPlumbUtil.uuid());ft({elId:o,offset:e,recalc:!1,timestamp:n});for(var l=0;l<s.length;l++)ft({elId:s[l].getAttribute("id"),recalc:!0,timestamp:n});var u=i.router.redraw(o,e,n,null,r);if(Array.prototype.push.apply(a.c,u.c),Array.prototype.push.apply(a.e,u.e),s)for(var c=0;c<s.length;c++)u=i.router.redraw(s[c].getAttribute("id"),null,n,null,r,!0),Array.prototype.push.apply(a.c,u.c),Array.prototype.push.apply(a.e,u.e)}return a},I=function(t){return b[t]},O=function(t,e){for(var n=t.scope.split(/\s/),i=e.scope.split(/\s/),r=0;r<n.length;r++)for(var a=0;a<i.length;a++)if(i[a]===n[r])return!0;return!1},P=function(t,e){var n=p.extend({},t);for(var i in e)e[i]&&(n[i]=e[i]);return n},N=function(t,e){var r=p.extend({},t);if(e&&p.extend(r,e),r.source&&(r.source.endpoint?r.sourceEndpoint=r.source:r.source=i.getElement(r.source)),r.target&&(r.target.endpoint?r.targetEndpoint=r.target:r.target=i.getElement(r.target)),t.uuids&&(r.sourceEndpoint=I(t.uuids[0]),r.targetEndpoint=I(t.uuids[1])),r.sourceEndpoint&&r.sourceEndpoint.isFull())n.log(i,"could not add connection; source endpoint is full");else if(r.targetEndpoint&&r.targetEndpoint.isFull())n.log(i,"could not add connection; target endpoint is full");else{if(!r.type&&r.sourceEndpoint&&(r.type=r.sourceEndpoint.connectionType),r.sourceEndpoint&&r.sourceEndpoint.connectorOverlays){r.overlays=r.overlays||[];for(var a=0,o=r.sourceEndpoint.connectorOverlays.length;a<o;a++)r.overlays.push(r.sourceEndpoint.connectorOverlays[a])}r.sourceEndpoint&&r.sourceEndpoint.scope&&(r.scope=r.sourceEndpoint.scope),!r["pointer-events"]&&r.sourceEndpoint&&r.sourceEndpoint.connectorPointerEvents&&(r["pointer-events"]=r.sourceEndpoint.connectorPointerEvents);var s=function(t,e,n){var a=P(e,{anchor:r.anchors?r.anchors[n]:r.anchor,endpoint:r.endpoints?r.endpoints[n]:r.endpoint,paintStyle:r.endpointStyles?r.endpointStyles[n]:r.endpointStyle,hoverPaintStyle:r.endpointHoverStyles?r.endpointHoverStyles[n]:r.endpointHoverStyle});return i.addEndpoint(t,a)},l=function(t,e,n,i){if(r[t]&&!r[t].endpoint&&!r[t+"Endpoint"]&&!r.newConnection){var a=Q(r[t]),o=n[a];if(o=o?o[i]:null,o){if(!o.enabled)return!1;var l=p.extend({},o.def);delete l.label;var u=null!=o.endpoint&&o.endpoint._jsPlumb?o.endpoint:s(r[t],l,e);if(u.isFull())return!1;r[t+"Endpoint"]=u,!r.scope&&l.scope&&(r.scope=l.scope),o.uniqueEndpoint?o.endpoint?u.finalEndpoint=o.endpoint:(o.endpoint=u,u.setDeleteOnEmpty(!1)):u.setDeleteOnEmpty(!0),0===e&&o.def.connectorOverlays&&(r.overlays=r.overlays||[],Array.prototype.push.apply(r.overlays,o.def.connectorOverlays))}}};if(!1!==l("source",0,this.sourceEndpointDefinitions,r.type||"default")&&!1!==l("target",1,this.targetEndpointDefinitions,r.type||"default"))return r.sourceEndpoint&&r.targetEndpoint&&(O(r.sourceEndpoint,r.targetEndpoint)||(r=null)),r}}.bind(i),F=function(t){var e=i.Defaults.ConnectionType||i.getDefaultConnectionType();t._jsPlumb=i,t.newConnection=F,t.newEndpoint=R,t.endpointsByUUID=b,t.endpointsByElement=A,t.finaliseConnection=U,t.id="con_"+D();var n=new e(t);return n.isDetachable()&&(n.endpoints[0].initDraggable("_jsPlumbSource"),n.endpoints[1].initDraggable("_jsPlumbTarget")),n},U=i.finaliseConnection=function(t,e,n,r){if(e=e||{},t.suspendedEndpoint||y.push(t),t.pending=null,t.endpoints[0].isTemporarySource=!1,!1!==r&&i.router.newConnection(t),B(t.source),!e.doNotFireConnectionEvent&&!1!==e.fireEvent){var a={connection:t,source:t.source,target:t.target,sourceId:t.sourceId,targetId:t.targetId,sourceEndpoint:t.endpoints[0],targetEndpoint:t.endpoints[1]};i.fire("connection",a,n)}},R=function(t,e){var n=i.Defaults.EndpointType||p.Endpoint,r=p.extend({},t);r._jsPlumb=i,r.newConnection=F,r.newEndpoint=R,r.endpointsByUUID=b,r.endpointsByElement=A,r.fireDetachEvent=G,r.elementId=e||Q(r.source);var a=new n(r);return a.id="ep_"+D(),ht(r.elementId,r.source),p.headless||i.getDragManager().endpointAdded(r.source,e),a},j=function(t,e,n){var i=A[t];if(i&&i.length)for(var r=0,a=i.length;r<a;r++){for(var o=0,s=i[r].connections.length;o<s;o++){var l=e(i[r].connections[o]);if(l)return}n&&n(i[r])}},H=function(t,e,n){e="block"===e;var i=null;n&&(i=function(t){t.setVisible(e,!0,!0)});var r=c(t);j(r.id,(function(t){if(e&&n){var i=t.sourceId===r.id?1:0;t.endpoints[i].isVisible()&&t.setVisible(!0)}else t.setVisible(e)}),i)},Y=function(t,e){var n=null;e&&(n=function(t){var e=t.isVisible();t.setVisible(!e)}),j(t,(function(t){var e=t.isVisible();t.setVisible(!e)}),n)},z=function(t){var e=w[t];return e?{o:e,s:C[t]}:ft({elId:t})},Q=function(t,e,r){if(n.isString(t))return t;if(null==t)return null;var o=i.getAttribute(t,"id");return o&&"undefined"!==o||(2===arguments.length&&void 0!==arguments[1]?o=e:(1===arguments.length||3===arguments.length&&!arguments[2])&&(o="jsPlumb_"+a+"_"+D()),r||i.setAttribute(t,"id",o)),o};this.setConnectionBeingDragged=function(t){S=t},this.isConnectionBeingDragged=function(){return S},this.getManagedElements=function(){return _},this.connectorClass="jtk-connector",this.connectorOutlineClass="jtk-connector-outline",this.connectedClass="jtk-connected",this.hoverClass="jtk-hover",this.endpointClass="jtk-endpoint",this.endpointConnectedClass="jtk-endpoint-connected",this.endpointFullClass="jtk-endpoint-full",this.endpointDropAllowedClass="jtk-endpoint-drop-allowed",this.endpointDropForbiddenClass="jtk-endpoint-drop-forbidden",this.overlayClass="jtk-overlay",this.draggingClass="jtk-dragging",this.elementDraggingClass="jtk-element-dragging",this.sourceElementDraggingClass="jtk-source-element-dragging",this.targetElementDraggingClass="jtk-target-element-dragging",this.endpointAnchorClassPrefix="jtk-endpoint-anchor",this.hoverSourceClass="jtk-source-hover",this.hoverTargetClass="jtk-target-hover",this.dragSelectClass="jtk-drag-select",this.Anchors={},this.Connectors={svg:{}},this.Endpoints={svg:{}},this.Overlays={svg:{}},this.ConnectorRenderers={},this.SVG="svg",this.addEndpoint=function(t,e,r){r=r||{};var a=p.extend({},r);p.extend(a,e),a.endpoint=a.endpoint||i.Defaults.Endpoint,a.paintStyle=a.paintStyle||i.Defaults.EndpointStyle;for(var o=[],s=n.isArray(t)||null!=t.length&&!n.isString(t)?t:[t],l=0,u=s.length;l<u;l++){a.source=i.getElement(s[l]),ct(a.source);var c=Q(a.source),d=R(a,c),h=ht(c,a.source,null,!T).info.o;n.addToList(A,c,d),T||d.paint({anchorLoc:d.anchor.compute({xy:[h.left,h.top],wh:C[c],element:d,timestamp:M,rotation:this.getRotation(c)}),timestamp:M}),o.push(d)}return 1===o.length?o[0]:o},this.addEndpoints=function(t,e,r){for(var a=[],o=0,s=e.length;o<s;o++){var l=i.addEndpoint(t,e[o],r);n.isArray(l)?Array.prototype.push.apply(a,l):a.push(l)}return a},this.animate=function(t,e,r){if(!this.animationSupported)return!1;r=r||{};var a=i.getElement(t),o=Q(a),s=p.animEvents.step,l=p.animEvents.complete;r[s]=n.wrap(r[s],(function(){i.revalidate(o)})),r[l]=n.wrap(r[l],(function(){i.revalidate(o)})),i.doAnimate(a,e,r)},this.checkCondition=function(t,e){var r=i.getListener(t),a=!0;if(r&&r.length>0){var o=Array.prototype.slice.call(arguments,1);try{for(var s=0,l=r.length;s<l;s++)a=a&&r[s].apply(r[s],o)}catch(u){n.log(i,"cannot check condition ["+t+"]"+u)}}return a},this.connect=function(t,e){var i,r=N(t,e);if(r){if(null==r.source&&null==r.sourceEndpoint)return void n.log("Cannot establish connection - source does not exist");if(null==r.target&&null==r.targetEndpoint)return void n.log("Cannot establish connection - target does not exist");ct(r.source),i=F(r),U(i,r)}return i};var V=[{el:"source",elId:"sourceId",epDefs:"sourceEndpointDefinitions"},{el:"target",elId:"targetId",epDefs:"targetEndpointDefinitions"}],W=function(t,e,n,i){var r,a,o,s=V[n],l=t[s.elId],u=(t[s.el],t.endpoints[n]),c={index:n,originalSourceId:0===n?l:t.sourceId,newSourceId:t.sourceId,originalTargetId:1===n?l:t.targetId,newTargetId:t.targetId,connection:t};if(e.constructor===p.Endpoint)r=e,r.addConnection(t),e=r.element;else if(a=Q(e),o=this[s.epDefs][a],a===t[s.elId])r=null;else if(o)for(var d in o){if(!o[d].enabled)return;r=null!=o[d].endpoint&&o[d].endpoint._jsPlumb?o[d].endpoint:this.addEndpoint(e,o[d].def),o[d].uniqueEndpoint&&(o[d].endpoint=r),r.addConnection(t)}else r=t.makeEndpoint(0===n,e,a);return null!=r&&(u.detachFromConnection(t),t.endpoints[n]=r,t[s.el]=r.element,t[s.elId]=r.elementId,c[0===n?"newSourceId":"newTargetId"]=r.elementId,K(c),i||t.repaint()),c.element=e,c}.bind(this);this.setSource=function(t,e,n){var i=W(t,e,0,n);this.router.sourceOrTargetChanged(i.originalSourceId,i.newSourceId,t,i.el,0)},this.setTarget=function(t,e,n){var i=W(t,e,1,n);this.router.sourceOrTargetChanged(i.originalTargetId,i.newTargetId,t,i.el,1)},this.deleteEndpoint=function(t,e,n){var r="string"===typeof t?b[t]:t;return r&&i.deleteObject({endpoint:r,dontUpdateHover:e,deleteAttachedObjects:n}),i},this.deleteEveryEndpoint=function(){var t=i.setSuspendDrawing(!0);for(var e in A){var n=A[e];if(n&&n.length)for(var r=0,a=n.length;r<a;r++)i.deleteEndpoint(n[r],!0)}A={},_={},b={},w={},x={},i.router.reset();var o=i.getDragManager();return o&&o.reset(),t||i.setSuspendDrawing(!1),i};var G=function(t,e,n){var r=i.Defaults.ConnectionType||i.getDefaultConnectionType(),a=t.constructor===r,o=a?{connection:t,source:t.source,target:t.target,sourceId:t.sourceId,targetId:t.targetId,sourceEndpoint:t.endpoints[0],targetEndpoint:t.endpoints[1]}:t;e&&i.fire("connectionDetached",o,n),i.fire("internal.connectionDetached",o,n),i.router.connectionDetached(o)},K=i.fireMoveEvent=function(t,e){i.fire("connectionMoved",t,e)};this.unregisterEndpoint=function(t){for(var e in t._jsPlumb.uuid&&(b[t._jsPlumb.uuid]=null),i.router.deleteEndpoint(t),A){var n=A[e];if(n){for(var r=[],a=0,o=n.length;a<o;a++)n[a]!==t&&r.push(n[a]);A[e]=r}A[e].length<1&&delete A[e]}};var $="isDetachAllowed",q="beforeDetach",X="checkCondition";this.deleteConnection=function(t,e){return!(null==t||(e=e||{},!e.force&&!n.functionChain(!0,!1,[[t.endpoints[0],$,[t]],[t.endpoints[1],$,[t]],[t,$,[t]],[i,X,[q,t]]])))&&(t.setHover(!1),G(t,!t.pending&&!1!==e.fireEvent,e.originalEvent),t.endpoints[0].detachFromConnection(t),t.endpoints[1].detachFromConnection(t),n.removeWithFunction(y,(function(e){return t.id===e.id})),t.cleanup(),t.destroy(),!0)},this.deleteEveryConnection=function(t){t=t||{};var e=y.length,n=0;return i.batch((function(){for(var r=0;r<e;r++)n+=i.deleteConnection(y[0],t)?1:0})),n},this.deleteConnectionsForElement=function(t,e){e=e||{},t=i.getElement(t);var n=Q(t),r=A[n];if(r&&r.length)for(var a=0,o=r.length;a<o;a++)r[a].deleteEveryConnection(e);return i},this.deleteObject=function(t){var e={endpoints:{},connections:{},endpointCount:0,connectionCount:0},r=!1!==t.deleteAttachedObjects,a=function(n){null!=n&&null==e.connections[n.id]&&(t.dontUpdateHover||null==n._jsPlumb||n.setHover(!1),e.connections[n.id]=n,e.connectionCount++)},o=function(n){if(null!=n&&null==e.endpoints[n.id]&&(t.dontUpdateHover||null==n._jsPlumb||n.setHover(!1),e.endpoints[n.id]=n,e.endpointCount++,r))for(var i=0;i<n.connections.length;i++){var o=n.connections[i];a(o)}};for(var s in t.connection?a(t.connection):o(t.endpoint),e.connections){var l=e.connections[s];if(l._jsPlumb){n.removeWithFunction(y,(function(t){return l.id===t.id})),G(l,!1!==t.fireEvent&&!l.pending,t.originalEvent);var u=null==t.deleteAttachedObjects?null:!t.deleteAttachedObjects;l.endpoints[0].detachFromConnection(l,null,u),l.endpoints[1].detachFromConnection(l,null,u),l.cleanup(!0),l.destroy(!0)}}for(var c in e.endpoints){var d=e.endpoints[c];d._jsPlumb&&(i.unregisterEndpoint(d),d.cleanup(!0),d.destroy(!0))}return e};var J=function(t,e,n,i){for(var r=0,a=t.length;r<a;r++)t[r][e].apply(t[r],n);return i(t)},Z=function(t,e,n){for(var i=[],r=0,a=t.length;r<a;r++)i.push([t[r][e].apply(t[r],n),t[r]]);return i},tt=function(t,e,n){return function(){return J(t,e,arguments,n)}},et=function(t,e){return function(){return Z(t,e,arguments)}},nt=function(t,e){var n=[];if(t)if("string"===typeof t){if("*"===t)return t;n.push(t)}else if(e)n=t;else if(t.length)for(var i=0,r=t.length;i<r;i++)n.push(c(t[i]).id);else n.push(c(t).id);return n},it=function(t,e,n){return"*"===t||(t.length>0?-1!==t.indexOf(e):!n)};this.getConnections=function(t,e){t?t.constructor===String&&(t={scope:t}):t={};for(var n=t.scope||i.getDefaultScope(),r=nt(n,!0),a=nt(t.source),o=nt(t.target),s=!e&&r.length>1?{}:[],l=function(t,n){if(!e&&r.length>1){var i=s[t];null==i&&(i=s[t]=[]),i.push(n)}else s.push(n)},u=0,c=y.length;u<c;u++){var d=y[u],h=d.proxies&&d.proxies[0]?d.proxies[0].originalEp.elementId:d.sourceId,f=d.proxies&&d.proxies[1]?d.proxies[1].originalEp.elementId:d.targetId;it(r,d.scope)&&it(a,h)&&it(o,f)&&l(d.scope,d)}return s};var rt=function(t,e){return function(n){for(var i=0,r=t.length;i<r;i++)n(t[i]);return e(t)}},at=function(t){return function(e){return t[e]}},ot=function(t,e){var n,i,r={length:t.length,each:rt(t,e),get:at(t)},a=["setHover","removeAllOverlays","setLabel","addClass","addOverlay","removeOverlay","removeOverlays","showOverlay","hideOverlay","showOverlays","hideOverlays","setPaintStyle","setHoverPaintStyle","setSuspendEvents","setParameter","setParameters","setVisible","repaint","addType","toggleType","removeType","removeClass","setType","bind","unbind"],o=["getLabel","getOverlay","isHover","getParameter","getParameters","getPaintStyle","getHoverPaintStyle","isVisible","hasType","getType","isSuspendEvents"];for(n=0,i=a.length;n<i;n++)r[a[n]]=tt(t,a[n],e);for(n=0,i=o.length;n<i;n++)r[o[n]]=et(t,o[n]);return r},st=function(t){var e=ot(t,st);return p.extend(e,{setDetachable:tt(t,"setDetachable",st),setReattach:tt(t,"setReattach",st),setConnector:tt(t,"setConnector",st),delete:function(){for(var e=0,n=t.length;e<n;e++)i.deleteConnection(t[e])},isDetachable:et(t,"isDetachable"),isReattach:et(t,"isReattach")})},lt=function(t){var e=ot(t,lt);return p.extend(e,{setEnabled:tt(t,"setEnabled",lt),setAnchor:tt(t,"setAnchor",lt),isEnabled:et(t,"isEnabled"),deleteEveryConnection:function(){for(var e=0,n=t.length;e<n;e++)t[e].deleteEveryConnection()},delete:function(){for(var e=0,n=t.length;e<n;e++)i.deleteEndpoint(t[e])}})};this.select=function(t){return t=t||{},t.scope=t.scope||"*",st(t.connections||i.getConnections(t,!0))},this.selectEndpoints=function(t){t=t||{},t.scope=t.scope||"*";var e=!t.element&&!t.source&&!t.target,n=e?"*":nt(t.element),i=e?"*":nt(t.source),r=e?"*":nt(t.target),a=nt(t.scope,!0),o=[];for(var s in A){var l=it(n,s,!0),u=it(i,s,!0),c="*"!==i,d=it(r,s,!0),h="*"!==r;if(l||u||d)t:for(var f=0,p=A[s].length;f<p;f++){var g=A[s][f];if(it(a,g.scope,!0)){var m=c&&i.length>0&&!g.isSource,v=h&&r.length>0&&!g.isTarget;if(m||v)continue t;o.push(g)}}}return lt(o)},this.getAllConnections=function(){return y},this.getDefaultScope=function(){return k},this.getEndpoint=I,this.getEndpoints=function(t){return A[c(t).id]||[]},this.getDefaultEndpointType=function(){return p.Endpoint},this.getDefaultConnectionType=function(){return p.Connection},this.getId=Q,this.draw=B,this.info=c,this.appendElement=E;var ut=!1;this.isHoverSuspended=function(){return ut},this.setHoverSuspended=function(t){ut=t},this.hide=function(t,e){return H(t,"none",e),i},this.idstamp=D;var ct=function(t){if(!f&&t){var e=i.getElement(t);e.offsetParent&&i.setContainer(e.offsetParent)}},dt=function(){i.Defaults.Container&&i.setContainer(i.Defaults.Container)},ht=i.manage=function(t,e,n,r){return _[t]?r&&(_[t].info=ft({elId:t,timestamp:M,recalc:!0})):(_[t]={el:e,endpoints:[],connections:[],rotation:0},_[t].info=ft({elId:t,timestamp:M}),i.addClass(e,"jtk-managed"),n||i.fire("manageElement",{id:t,info:_[t].info,el:e})),_[t]};this.unmanage=function(t){if(_[t]){var e=_[t].el;i.removeClass(e,"jtk-managed"),delete _[t],i.fire("unmanageElement",{id:t,el:e})}},this.rotate=function(t,e,n){return _[t]&&(_[t].rotation=e,_[t].el.style.transform="rotate("+e+"deg)",_[t].el.style.transformOrigin="center center",!0!==n)?this.revalidate(t):{c:[],e:[]}},this.getRotation=function(t){return _[t]&&_[t].rotation||0};var ft=function(t){var e,n=t.timestamp,r=t.recalc,a=t.offset,o=t.elId;return T&&!n&&(n=M),!r&&n&&n===x[o]?{o:t.offset||w[o],s:C[o]}:(r||!a&&null==w[o]?(e=_[o]?_[o].el:null,null!=e&&(C[o]=i.getSize(e),w[o]=i.getOffset(e),x[o]=n)):(w[o]=a||w[o],null==C[o]&&(e=_[o].el,null!=e&&(C[o]=i.getSize(e))),x[o]=n),w[o]&&!w[o].right&&(w[o].right=w[o].left+C[o][0],w[o].bottom=w[o].top+C[o][1],w[o].width=C[o][0],w[o].height=C[o][1],w[o].centerx=w[o].left+w[o].width/2,w[o].centery=w[o].top+w[o].height/2),{o:w[o],s:C[o]})};this.updateOffset=ft,this.init=function(){v||(dt(),i.router=new t.jsPlumb.DefaultRouter(i),i.anchorManager=i.router.anchorManager,v=!0,i.fire("ready",i))}.bind(this),this.log=m,this.jsPlumbUIComponent=u,this.makeAnchor=function(){var e,r=function(e,n){if(t.jsPlumb.Anchors[e])return new t.jsPlumb.Anchors[e](n);if(!i.Defaults.DoNotThrowErrors)throw{msg:"jsPlumb: unknown anchor type '"+e+"'"}};if(0===arguments.length)return null;var a=arguments[0],o=arguments[1],s=null;if(a.compute&&a.getOrientation)return a;if("string"===typeof a)s=r(arguments[0],{elementId:o,jsPlumbInstance:i});else if(n.isArray(a))if(n.isArray(a[0])||n.isString(a[0]))2===a.length&&n.isObject(a[1])?n.isString(a[0])?(e=t.jsPlumb.extend({elementId:o,jsPlumbInstance:i},a[1]),s=r(a[0],e)):(e=t.jsPlumb.extend({elementId:o,jsPlumbInstance:i,anchors:a[0]},a[1]),s=new t.jsPlumb.DynamicAnchor(e)):s=new p.DynamicAnchor({anchors:a,selector:null,elementId:o,jsPlumbInstance:i});else{var l={x:a[0],y:a[1],orientation:a.length>=4?[a[2],a[3]]:[0,0],offsets:a.length>=6?[a[4],a[5]]:[0,0],elementId:o,jsPlumbInstance:i,cssClass:7===a.length?a[6]:null};s=new t.jsPlumb.Anchor(l),s.clone=function(){return new t.jsPlumb.Anchor(l)}}return s.id||(s.id="anchor_"+D()),s},this.makeAnchors=function(e,r,a){for(var o=[],s=0,l=e.length;s<l;s++)"string"===typeof e[s]?o.push(t.jsPlumb.Anchors[e[s]]({elementId:r,jsPlumbInstance:a})):n.isArray(e[s])&&o.push(i.makeAnchor(e[s],r,a));return o},this.makeDynamicAnchor=function(e,n){return new t.jsPlumb.DynamicAnchor({anchors:e,selector:n,elementId:null,jsPlumbInstance:i})},this.targetEndpointDefinitions={},this.sourceEndpointDefinitions={};var pt=function(t,e,n,i,r){for(var a=t.target||t.srcElement,o=!1,s=i.getSelector(e,n),l=0;l<s.length;l++)if(s[l]===a){o=!0;break}return r?!o:o},gt=function(e,r,a,o,s){var l=new u(r),c=r._jsPlumb.EndpointDropHandler({jsPlumb:i,enabled:function(){return e.def.enabled},isFull:function(){var t=i.select({target:e.id}).length;return e.def.maxConnections>0&&t>=e.def.maxConnections},element:e.el,elementId:e.id,isSource:o,isTarget:s,addClass:function(t){i.addClass(e.el,t)},removeClass:function(t){i.removeClass(e.el,t)},onDrop:function(t){var e=t.endpoints[0];e.anchor.locked=!1},isDropAllowed:function(){return l.isDropAllowed.apply(l,arguments)},isRedrop:function(t){return null!=t.suspendedElement&&null!=t.suspendedEndpoint&&t.suspendedEndpoint.element===e.el},getEndpoint:function(n){var a=e.def.endpoint;if(null==a||null==a._jsPlumb){var o=i.deriveEndpointAndAnchorSpec(n.getType().join(" "),!0),s=o.endpoints?t.jsPlumb.extend(r,{endpoint:e.def.def.endpoint||o.endpoints[1]}):r;o.anchors&&(s=t.jsPlumb.extend(s,{anchor:e.def.def.anchor||o.anchors[1]})),a=i.addEndpoint(e.el,s),a._mtNew=!0}if(r.uniqueEndpoint&&(e.def.endpoint=a),a.setDeleteOnEmpty(!0),n.isDetachable()&&a.initDraggable(),null!=a.anchor.positionFinder){var l=i.getUIPosition(arguments,i.getZoom()),u=i.getOffset(e.el),c=i.getSize(e.el),d=null==l?[0,0]:a.anchor.positionFinder(l,u,c,a.anchor.constructorParams);a.anchor.x=d[0],a.anchor.y=d[1]}return a},maybeCleanup:function(t){t._mtNew&&0===t.connections.length?i.deleteObject({endpoint:t}):delete t._mtNew}}),d=t.jsPlumb.dragEvents.drop;return a.scope=a.scope||r.scope||i.Defaults.Scope,a[d]=n.wrap(a[d],c,!0),a.rank=r.rank||0,s&&(a[t.jsPlumb.dragEvents.over]=function(){return!0}),!1===r.allowLoopback&&(a.canDrop=function(t){var n=t.getDragElement()._jsPlumbRelatedElement;return n!==e.el}),i.initDroppable(e.el,a,"internal"),c};this.makeTarget=function(e,n,r){var a=t.jsPlumb.extend({_jsPlumb:this},r);t.jsPlumb.extend(a,n);for(var o=a.maxConnections||-1,s=function(e){var n=c(e),r=n.id,s=t.jsPlumb.extend({},a.dropOptions||{}),l=a.connectionType||"default";this.targetEndpointDefinitions[r]=this.targetEndpointDefinitions[r]||{},ct(r),n.el._isJsPlumbGroup&&null==s.rank&&(s.rank=-1);var u={def:t.jsPlumb.extend({},a),uniqueEndpoint:a.uniqueEndpoint,maxConnections:o,enabled:!0};a.createEndpoint&&(u.uniqueEndpoint=!0,u.endpoint=i.addEndpoint(e,u.def),u.endpoint.setDeleteOnEmpty(!1)),n.def=u,this.targetEndpointDefinitions[r][l]=u,gt(n,a,s,!0===a.isSource,!0),n.el._katavorioDrop[n.el._katavorioDrop.length-1].targetDef=u}.bind(this),l=e.length&&e.constructor!==String?e:[e],u=0,d=l.length;u<d;u++)s(l[u]);return this},this.unmakeTarget=function(t,e){var n=c(t);return i.destroyDroppable(n.el,"internal"),e||delete this.targetEndpointDefinitions[n.id],this},this.makeSource=function(e,r,a){var o=t.jsPlumb.extend({_jsPlumb:this},a);t.jsPlumb.extend(o,r);var s=o.connectionType||"default",u=i.deriveEndpointAndAnchorSpec(s);o.endpoint=o.endpoint||u.endpoints[0],o.anchor=o.anchor||u.anchors[0];for(var d=o.maxConnections||-1,h=o.onMaxConnections,f=function(r){var a=r.id,u=this.getElement(r.el);this.sourceEndpointDefinitions[a]=this.sourceEndpointDefinitions[a]||{},ct(a);var c={def:t.jsPlumb.extend({},o),uniqueEndpoint:o.uniqueEndpoint,maxConnections:d,enabled:!0};o.createEndpoint&&(c.uniqueEndpoint=!0,c.endpoint=i.addEndpoint(e,c.def),c.endpoint.setDeleteOnEmpty(!1)),this.sourceEndpointDefinitions[a][s]=c,r.def=c;var f=t.jsPlumb.dragEvents.stop,p=t.jsPlumb.dragEvents.drag,g=t.jsPlumb.extend({},o.dragOptions||{}),m=g.drag,v=g.stop,y=null,A=!1;g.scope=g.scope||o.scope,g[p]=n.wrap(g[p],(function(){m&&m.apply(this,arguments),A=!1})),g[f]=n.wrap(g[f],function(){if(v&&v.apply(this,arguments),this.currentlyDragging=!1,null!=y._jsPlumb){var t=o.anchor||this.Defaults.Anchor,e=y.anchor,n=y.connections[0],r=this.makeAnchor(t,a,this),s=y.element;if(null!=r.positionFinder){var l=i.getOffset(s),u=this.getSize(s),c={left:l.left+e.x*u[0],top:l.top+e.y*u[1]},d=r.positionFinder(c,l,u,r.constructorParams);r.x=d[0],r.y=d[1]}y.setAnchor(r,!0),y.repaint(),this.repaint(y.elementId),null!=n&&this.repaint(n.targetId)}}.bind(this));var b=function(e){if(3!==e.which&&2!==e.button){a=this.getId(this.getElement(r.el));var c=this.sourceEndpointDefinitions[a][s];if(c.enabled){if(o.filter){var f=n.isString(o.filter)?pt(e,r.el,o.filter,this,o.filterExclude):o.filter(e,r.el);if(!1===f)return}var p=this.select({source:a}).length;if(c.maxConnections>=0&&p>=c.maxConnections)return h&&h({element:r.el,maxConnections:d},e),!1;var m=t.jsPlumb.getPositionOnElement(e,u,l),v={};t.jsPlumb.extend(v,c.def),v.isTemporarySource=!0,v.anchor=[m[0],m[1],0,0],v.dragOptions=g,c.def.scope&&(v.scope=c.def.scope),y=this.addEndpoint(a,v),A=!0,y.setDeleteOnEmpty(!0),c.uniqueEndpoint&&(c.endpoint?y.finalEndpoint=c.endpoint:(c.endpoint=y,y.setDeleteOnEmpty(!1)));var b=function(){i.off(y.canvas,"mouseup",b),i.off(r.el,"mouseup",b),A&&(A=!1,i.deleteEndpoint(y))};i.on(y.canvas,"mouseup",b),i.on(r.el,"mouseup",b);var _={};if(c.def.extract)for(var w in c.def.extract){var x=(e.srcElement||e.target).getAttribute(w);x&&(_[c.def.extract[w]]=x)}i.trigger(y.canvas,"mousedown",e,_),n.consume(e)}}}.bind(this);this.on(r.el,"mousedown",b),c.trigger=b,o.filter&&(n.isString(o.filter)||n.isFunction(o.filter))&&i.setDragFilter(r.el,o.filter);var _=t.jsPlumb.extend({},o.dropOptions||{});gt(r,o,_,!0,!0===o.isTarget)}.bind(this),p=e.length&&e.constructor!==String?e:[e],g=0,m=p.length;g<m;g++)f(c(p[g]));return this},this.unmakeSource=function(t,e,n){var r=c(t);i.destroyDroppable(r.el,"internal");var a=this.sourceEndpointDefinitions[r.id];if(a)for(var o in a)if(null==e||e===o){var s=a[o].trigger;s&&i.off(r.el,"mousedown",s),n||delete this.sourceEndpointDefinitions[r.id][o]}return this},this.unmakeEverySource=function(){for(var t in this.sourceEndpointDefinitions)i.unmakeSource(t,null,!0);return this.sourceEndpointDefinitions={},this};var mt=function(t,e,i){e=n.isArray(e)?e:[e];var r=Q(t);i=i||"default";for(var a=0;a<e.length;a++){var o=this[e[a]][r];if(o&&o[i])return o[i].def.scope||this.Defaults.Scope}}.bind(this),vt=function(t,e,i,r){i=n.isArray(i)?i:[i];var a=Q(t);r=r||"default";for(var o=0;o<i.length;o++){var s=this[i[o]][a];s&&s[r]&&(s[r].def.scope=e)}}.bind(this);this.getScope=function(t,e){return mt(t,["sourceEndpointDefinitions","targetEndpointDefinitions"])},this.getSourceScope=function(t){return mt(t,"sourceEndpointDefinitions")},this.getTargetScope=function(t){return mt(t,"targetEndpointDefinitions")},this.setScope=function(t,e,n){this.setSourceScope(t,e,n),this.setTargetScope(t,e,n)},this.setSourceScope=function(t,e,n){vt(t,e,"sourceEndpointDefinitions",n),this.setDragScope(t,e)},this.setTargetScope=function(t,e,n){vt(t,e,"targetEndpointDefinitions",n),this.setDropScope(t,e)},this.unmakeEveryTarget=function(){for(var t in this.targetEndpointDefinitions)i.unmakeTarget(t,!0);return this.targetEndpointDefinitions={},this};var yt=function(t,e,r,a,o){var s,l,u,d="source"===t?this.sourceEndpointDefinitions:this.targetEndpointDefinitions;if(o=o||"default",e.length&&!n.isString(e)){s=[];for(var h=0,f=e.length;h<f;h++)l=c(e[h]),d[l.id]&&d[l.id][o]&&(s[h]=d[l.id][o].enabled,u=a?!s[h]:r,d[l.id][o].enabled=u,i[u?"removeClass":"addClass"](l.el,"jtk-"+t+"-disabled"))}else{l=c(e);var p=l.id;d[p]&&d[p][o]&&(s=d[p][o].enabled,u=a?!s:r,d[p][o].enabled=u,i[u?"removeClass":"addClass"](l.el,"jtk-"+t+"-disabled"))}return s}.bind(this),At=function(t,e){if(null!=t){if(n.isString(t)||!t.length)return e.apply(this,[t]);if(t.length)return e.apply(this,[t[0]])}}.bind(this);this.toggleSourceEnabled=function(t,e){return yt("source",t,null,!0,e),this.isSourceEnabled(t,e)},this.setSourceEnabled=function(t,e,n){return yt("source",t,e,null,n)},this.isSource=function(t,e){return e=e||"default",At(t,function(t){var n=this.sourceEndpointDefinitions[c(t).id];return null!=n&&null!=n[e]}.bind(this))},this.isSourceEnabled=function(t,e){return e=e||"default",At(t,function(t){var n=this.sourceEndpointDefinitions[c(t).id];return n&&n[e]&&!0===n[e].enabled}.bind(this))},this.toggleTargetEnabled=function(t,e){return yt("target",t,null,!0,e),this.isTargetEnabled(t,e)},this.isTarget=function(t,e){return e=e||"default",At(t,function(t){var n=this.targetEndpointDefinitions[c(t).id];return null!=n&&null!=n[e]}.bind(this))},this.isTargetEnabled=function(t,e){return e=e||"default",At(t,function(t){var n=this.targetEndpointDefinitions[c(t).id];return n&&n[e]&&!0===n[e].enabled}.bind(this))},this.setTargetEnabled=function(t,e,n){return yt("target",t,e,null,n)},this.ready=function(t){i.bind("ready",t)};var bt=function(t,e){if("object"===typeof t&&t.length)for(var n=0,r=t.length;n<r;n++)e(t[n]);else e(t);return i};this.repaint=function(t,e,n){return bt(t,(function(t){B(t,e,n)}))},this.revalidate=function(t,e,n){var r=n?t:i.getId(t);i.updateOffset({elId:r,recalc:!0,timestamp:e});var a=i.getDragManager();return a&&a.updateOffsets(r),B(t,null,e)},this.repaintEverything=function(){var t,e=jsPlumbUtil.uuid();for(t in A)i.updateOffset({elId:t,recalc:!0,timestamp:e});for(t in A)B(t,null,e);return this},this.removeAllEndpoints=function(t,e,n){n=n||[];var r=function(t){var a,o,s=c(t),l=A[s.id];if(l)for(n.push(s),a=0,o=l.length;a<o;a++)i.deleteEndpoint(l[a],!1);if(delete A[s.id],e&&s.el&&3!==s.el.nodeType&&8!==s.el.nodeType)for(a=0,o=s.el.childNodes.length;a<o;a++)r(s.el.childNodes[a])};return r(t),this};var _t=function(t,e){i.removeAllEndpoints(t.id,!0,e);for(var n=i.getDragManager(),r=function(t){n&&n.elementRemoved(t.id),i.router.elementRemoved(t.id),i.isSource(t.el)&&i.unmakeSource(t.el),i.isTarget(t.el)&&i.unmakeTarget(t.el),i.destroyDraggable(t.el),i.destroyDroppable(t.el),delete i.floatingConnections[t.id],delete _[t.id],delete w[t.id],t.el&&(i.removeElement(t.el),t.el._jsPlumb=null)},a=1;a<e.length;a++)r(e[a]);r(t)};this.remove=function(t,e){var n=c(t),r=[];return n.text&&n.el.parentNode?n.el.parentNode.removeChild(n.el):n.id&&i.batch((function(){_t(n,r)}),!0===e),i},this.empty=function(t,e){var n=[],r=function(t,e){var i=c(t);if(i.text)i.el.parentNode.removeChild(i.el);else if(i.el){while(i.el.childNodes.length>0)r(i.el.childNodes[0]);e||_t(i,n)}};return i.batch((function(){r(t,!0)}),!1===e),i},this.reset=function(t){i.silently(function(){ut=!1,i.removeAllGroups(),i.removeGroupManager(),i.deleteEveryEndpoint(),t||i.unbind(),this.targetEndpointDefinitions={},this.sourceEndpointDefinitions={},y.length=0,this.doReset&&this.doReset()}.bind(this))},this.destroy=function(){this.reset(),f=null,g=null};var wt=function(t){t.canvas&&t.canvas.parentNode&&t.canvas.parentNode.removeChild(t.canvas),t.cleanup(),t.destroy()};this.clear=function(){i.select().each(wt),i.selectEndpoints().each(wt),A={},b={}},this.setDefaultScope=function(t){return k=t,i},this.deriveEndpointAndAnchorSpec=function(t,e){for(var n=((e?"":"default ")+t).split(/[\s]/),r=null,a=null,o=null,s=null,l=0;l<n.length;l++){var u=i.getType(n[l],"connection");u&&(u.endpoints&&(r=u.endpoints),u.endpoint&&(a=u.endpoint),u.anchors&&(s=u.anchors),u.anchor&&(o=u.anchor))}return{endpoints:r||[a,a],anchors:s||[o,o]}},this.setId=function(t,e,i){var r;n.isString(t)?r=t:(t=this.getElement(t),r=this.getId(t));var a=this.getConnections({source:r,scope:"*"},!0),o=this.getConnections({target:r,scope:"*"},!0);e=""+e,i?t=this.getElement(e):(t=this.getElement(r),this.setAttribute(t,"id",e)),A[e]=A[r]||[];for(var s=0,l=A[e].length;s<l;s++)A[e][s].setElementId(e),A[e][s].setReferenceElement(t);delete A[r],this.sourceEndpointDefinitions[e]=this.sourceEndpointDefinitions[r],delete this.sourceEndpointDefinitions[r],this.targetEndpointDefinitions[e]=this.targetEndpointDefinitions[r],delete this.targetEndpointDefinitions[r],this.router.changeId(r,e);var u=this.getDragManager();u&&u.changeId(r,e),_[e]=_[r],delete _[r];var c=function(n,i,r){for(var a=0,o=n.length;a<o;a++)n[a].endpoints[i].setElementId(e),n[a].endpoints[i].setReferenceElement(t),n[a][r+"Id"]=e,n[a][r]=t};c(a,0,"source"),c(o,1,"target"),this.repaint(e)},this.setDebugLog=function(t){m=t},this.setSuspendDrawing=function(t,e){var n=T;return T=t,M=t?(new Date).getTime():null,e&&this.repaintEverything(),n},this.isSuspendDrawing=function(){return T},this.getSuspendedAt=function(){return M},this.batch=function(t,e){var i=this.isSuspendDrawing();i||this.setSuspendDrawing(!0);try{t()}catch(r){n.log("Function run while suspended failed",r)}i||this.setSuspendDrawing(!1,!e)},this.doWhileSuspended=this.batch,this.getCachedData=z,this.show=function(t,e){return H(t,"block",e),i},this.toggleVisible=Y,this.addListener=this.bind;var xt=[];this.registerFloatingConnection=function(t,e,i){xt[t.id]=e,n.addToList(A,t.id,i)},this.getFloatingConnectionFor=function(t){return xt[t]},this.listManager=new t.jsPlumbListManager(this,this.Defaults.ListStyle)};n.extend(t.jsPlumbInstance,n.EventGenerator,{setAttribute:function(t,e,n){this.setAttribute(t,e,n)},getAttribute:function(e,n){return this.getAttribute(t.jsPlumb.getElement(e),n)},convertToFullOverlaySpec:function(t){return n.isString(t)&&(t=[t,{}]),t[1].id=t[1].id||n.uuid(),t},registerConnectionType:function(e,n){if(this._connectionTypes[e]=t.jsPlumb.extend({},n),n.overlays){for(var i={},r=0;r<n.overlays.length;r++){var a=this.convertToFullOverlaySpec(n.overlays[r]);i[a[1].id]=a}this._connectionTypes[e].overlays=i}},registerConnectionTypes:function(t){for(var e in t)this.registerConnectionType(e,t[e])},registerEndpointType:function(e,n){if(this._endpointTypes[e]=t.jsPlumb.extend({},n),n.overlays){for(var i={},r=0;r<n.overlays.length;r++){var a=this.convertToFullOverlaySpec(n.overlays[r]);i[a[1].id]=a}this._endpointTypes[e].overlays=i}},registerEndpointTypes:function(t){for(var e in t)this.registerEndpointType(e,t[e])},getType:function(t,e){return"connection"===e?this._connectionTypes[t]:this._endpointTypes[t]},setIdChanged:function(t,e){this.setId(t,e,!0)},setParent:function(t,e){var n=this.getElement(t),i=this.getId(n),r=this.getElement(e),a=this.getId(r),o=this.getDragManager();n.parentNode.removeChild(n),r.appendChild(n),o&&o.setParent(n,i,r,a)},extend:function(t,e,n){var i;if(n)for(i=0;i<n.length;i++)t[n[i]]=e[n[i]];else for(i in e)t[i]=e[i];return t},floatingConnections:{},getFloatingAnchorIndex:function(t){return t.endpoints[0].isFloating()?0:t.endpoints[1].isFloating()?1:-1},proxyConnection:function(t,e,n,i,r,a){var o,s=t.endpoints[e].elementId,l=t.endpoints[e];t.proxies=t.proxies||[],o=t.proxies[e]?t.proxies[e].ep:this.addEndpoint(n,{endpoint:r(t,e),anchor:a(t,e),parameters:{isProxyEndpoint:!0}}),o.setDeleteOnEmpty(!0),t.proxies[e]={ep:o,originalEp:l},0===e?this.router.sourceOrTargetChanged(s,i,t,n,0):this.router.sourceOrTargetChanged(s,i,t,n,1),l.detachFromConnection(t,null,!0),o.connections=[t],t.endpoints[e]=o,l.setVisible(!1),t.setVisible(!0),this.revalidate(n)},unproxyConnection:function(t,e,n){if(null!=t._jsPlumb&&null!=t.proxies&&null!=t.proxies[e]){var i=t.proxies[e].originalEp.element,r=t.proxies[e].originalEp.elementId;t.endpoints[e]=t.proxies[e].originalEp,0===e?this.router.sourceOrTargetChanged(n,r,t,i,0):this.router.sourceOrTargetChanged(n,r,t,i,1),t.proxies[e].ep.detachFromConnection(t,null),t.proxies[e].originalEp.addConnection(t),t.isVisible()&&t.proxies[e].originalEp.setVisible(!0),delete t.proxies[e]}}});var p=new f;t.jsPlumb=p,p.getInstance=function(t,e){var n=new f(t);if(e)for(var i in e)n[i]=e[i];return n.init(),n},p.each=function(t,e){if(null!=t)if("string"===typeof t)e(p.getElement(t));else if(null!=t.length)for(var n=0;n<t.length;n++)e(p.getElement(t[n]));else e(t)},e.jsPlumb=p}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i="__label",r=function(t,n){var r={cssClass:n.cssClass,labelStyle:t.labelStyle,id:i,component:t,_jsPlumb:t._jsPlumb.instance},a=e.extend(r,n);return new(e.Overlays[t._jsPlumb.instance.getRenderMode()].Label)(a)},a=function(t,i){var r=null;if(n.isArray(i)){var a=i[0],o=e.extend({component:t,_jsPlumb:t._jsPlumb.instance},i[1]);3===i.length&&e.extend(o,i[2]),r=new(e.Overlays[t._jsPlumb.instance.getRenderMode()][a])(o)}else r=i.constructor===String?new(e.Overlays[t._jsPlumb.instance.getRenderMode()][i])({component:t,_jsPlumb:t._jsPlumb.instance}):i;return r.id=r.id||n.uuid(),t.cacheTypeItem("overlay",r,r.id),t._jsPlumb.overlays[r.id]=r,r};e.OverlayCapableJsPlumbUIComponent=function(e){t.jsPlumbUIComponent.apply(this,arguments),this._jsPlumb.overlays={},this._jsPlumb.overlayPositions={},e.label&&(this.getDefaultType().overlays[i]=["Label",{label:e.label,location:e.labelLocation||this.defaultLabelLocation||.5,labelStyle:e.labelStyle||this._jsPlumb.instance.Defaults.LabelStyle,id:i}]),this.setListenerComponent=function(t){if(this._jsPlumb)for(var e in this._jsPlumb.overlays)this._jsPlumb.overlays[e].setListenerComponent(t)}},e.OverlayCapableJsPlumbUIComponent.applyType=function(t,e){if(e.overlays){var n,i={};for(n in e.overlays){var r=t._jsPlumb.overlays[e.overlays[n][1].id];if(r)r.updateFrom(e.overlays[n][1]),i[e.overlays[n][1].id]=!0,r.reattach(t._jsPlumb.instance,t);else{var a=t.getCachedTypeItem("overlay",e.overlays[n][1].id);null!=a?(a.reattach(t._jsPlumb.instance,t),a.setVisible(!0),a.updateFrom(e.overlays[n][1]),t._jsPlumb.overlays[a.id]=a):a=t.addOverlay(e.overlays[n],!0),i[a.id]=!0}}for(n in t._jsPlumb.overlays)null==i[t._jsPlumb.overlays[n].id]&&t.removeOverlay(t._jsPlumb.overlays[n].id,!0)}},n.extend(e.OverlayCapableJsPlumbUIComponent,t.jsPlumbUIComponent,{setHover:function(t,e){if(this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged())for(var n in this._jsPlumb.overlays)this._jsPlumb.overlays[n][t?"addClass":"removeClass"](this._jsPlumb.instance.hoverClass)},addOverlay:function(t,e){var i=a(this,t);if(this.getData&&"Label"===i.type&&n.isArray(t)){var r=this.getData(),o=t[1];if(r){var s=o.labelLocationAttribute||"labelLocation",l=r?r[s]:null;l&&(i.loc=l)}}return e||this.repaint(),i},getOverlay:function(t){return this._jsPlumb.overlays[t]},getOverlays:function(){return this._jsPlumb.overlays},hideOverlay:function(t){var e=this.getOverlay(t);e&&e.hide()},hideOverlays:function(){for(var t in this._jsPlumb.overlays)this._jsPlumb.overlays[t].hide()},showOverlay:function(t){var e=this.getOverlay(t);e&&e.show()},showOverlays:function(){for(var t in this._jsPlumb.overlays)this._jsPlumb.overlays[t].show()},removeAllOverlays:function(t){for(var e in this._jsPlumb.overlays)this._jsPlumb.overlays[e].cleanup&&this._jsPlumb.overlays[e].cleanup();this._jsPlumb.overlays={},this._jsPlumb.overlayPositions=null,this._jsPlumb.overlayPlacements={},t||this.repaint()},removeOverlay:function(t,e){var n=this._jsPlumb.overlays[t];n&&(n.setVisible(!1),!e&&n.cleanup&&n.cleanup(),delete this._jsPlumb.overlays[t],this._jsPlumb.overlayPositions&&delete this._jsPlumb.overlayPositions[t],this._jsPlumb.overlayPlacements&&delete this._jsPlumb.overlayPlacements[t])},removeOverlays:function(){for(var t=0,e=arguments.length;t<e;t++)this.removeOverlay(arguments[t])},moveParent:function(t){if(this.bgCanvas&&(this.bgCanvas.parentNode.removeChild(this.bgCanvas),t.appendChild(this.bgCanvas)),this.canvas&&this.canvas.parentNode)for(var e in this.canvas.parentNode.removeChild(this.canvas),t.appendChild(this.canvas),this._jsPlumb.overlays)if(this._jsPlumb.overlays[e].isAppendedAtTopLevel){var n=this._jsPlumb.overlays[e].getElement();n.parentNode.removeChild(n),t.appendChild(n)}},getLabel:function(){var t=this.getOverlay(i);return null!=t?t.getLabel():null},getLabelOverlay:function(){return this.getOverlay(i)},setLabel:function(t){var e=this.getOverlay(i);if(e)t.constructor===String||t.constructor===Function?e.setLabel(t):(t.label&&e.setLabel(t.label),t.location&&e.setLocation(t.location));else{var n=t.constructor===String||t.constructor===Function?{label:t}:t;e=r(this,n),this._jsPlumb.overlays[i]=e}this._jsPlumb.instance.isSuspendDrawing()||this.repaint()},cleanup:function(t){for(var e in this._jsPlumb.overlays)this._jsPlumb.overlays[e].cleanup(t),this._jsPlumb.overlays[e].destroy(t);t&&(this._jsPlumb.overlays={},this._jsPlumb.overlayPositions=null)},setVisible:function(t){this[t?"showOverlays":"hideOverlays"]()},setAbsoluteOverlayPosition:function(t,e){this._jsPlumb.overlayPositions[t.id]=e},getAbsoluteOverlayPosition:function(t){return this._jsPlumb.overlayPositions?this._jsPlumb.overlayPositions[t.id]:null},_clazzManip:function(t,e,n){if(!n)for(var i in this._jsPlumb.overlays)this._jsPlumb.overlays[i][t+"Class"](e)},addClass:function(t,e){this._clazzManip("add",t,e)},removeClass:function(t,e){this._clazzManip("remove",t,e)}})}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i=function(t,e,n){var i=!1;return{drag:function(){if(i)return i=!1,!0;if(e.element){var r=n.getUIPosition(arguments,n.getZoom());null!=r&&n.setPosition(e.element,r),n.repaint(e.element,r),t.paint({anchorPoint:t.anchor.getCurrentLocation({element:t})})}},stopDrag:function(){i=!0}}},r=function(t,e,n,i){var r=e.createElement("div",{position:"absolute"});e.appendElement(r);var a=e.getId(r);e.setPosition(r,n),r.style.width=i[0]+"px",r.style.height=i[1]+"px",e.manage(a,r,!0),t.id=a,t.element=r},a=function(t,n,i,r,a,o,s,l){var u=new e.FloatingAnchor({reference:n,referenceCanvas:r,jsPlumbInstance:o});return s({paintStyle:t,endpoint:i,anchor:u,source:a,scope:l})},o=["connectorStyle","connectorHoverStyle","connectorOverlays","connector","connectionType","connectorClass","connectorHoverClass"],s=function(t,e){var n=0;if(null!=e)for(var i=0;i<t.connections.length;i++)if(t.connections[i].sourceId===e||t.connections[i].targetId===e){n=i;break}return t.connections[n]};e.Endpoint=function(t){var l=t._jsPlumb,u=t.newConnection,c=t.newEndpoint;this.idPrefix="_jsplumb_e_",this.defaultLabelLocation=[.5,.5],this.defaultOverlayKeys=["Overlays","EndpointOverlays"],e.OverlayCapableJsPlumbUIComponent.apply(this,arguments),this.appendToDefaultType({connectionType:t.connectionType,maxConnections:null==t.maxConnections?this._jsPlumb.instance.Defaults.MaxConnections:t.maxConnections,paintStyle:t.endpointStyle||t.paintStyle||t.style||this._jsPlumb.instance.Defaults.EndpointStyle||e.Defaults.EndpointStyle,hoverPaintStyle:t.endpointHoverStyle||t.hoverPaintStyle||this._jsPlumb.instance.Defaults.EndpointHoverStyle||e.Defaults.EndpointHoverStyle,connectorStyle:t.connectorStyle,connectorHoverStyle:t.connectorHoverStyle,connectorClass:t.connectorClass,connectorHoverClass:t.connectorHoverClass,connectorOverlays:t.connectorOverlays,connector:t.connector,connectorTooltip:t.connectorTooltip}),this._jsPlumb.enabled=!(!1===t.enabled),this._jsPlumb.visible=!0,this.element=e.getElement(t.source),this._jsPlumb.uuid=t.uuid,this._jsPlumb.floatingEndpoint=null;var d=null;this._jsPlumb.uuid&&(t.endpointsByUUID[this._jsPlumb.uuid]=this),this.elementId=t.elementId,this.dragProxy=t.dragProxy,this._jsPlumb.connectionCost=t.connectionCost,this._jsPlumb.connectionsDirected=t.connectionsDirected,this._jsPlumb.currentAnchorClass="",this._jsPlumb.events={};var h=!0===t.deleteOnEmpty;this.setDeleteOnEmpty=function(t){h=t};var f=function(){var t=l.endpointAnchorClassPrefix+"-"+this._jsPlumb.currentAnchorClass;this._jsPlumb.currentAnchorClass=this.anchor.getCssClass();var n=l.endpointAnchorClassPrefix+(this._jsPlumb.currentAnchorClass?"-"+this._jsPlumb.currentAnchorClass:"");this.removeClass(t),this.addClass(n),e.updateClasses(this.element,n,t)}.bind(this);this.prepareAnchor=function(t){var e=this._jsPlumb.instance.makeAnchor(t,this.elementId,l);return e.bind("anchorChanged",function(t){this.fire("anchorChanged",{endpoint:this,anchor:t}),f()}.bind(this)),e},this.setPreparedAnchor=function(t,e){return this._jsPlumb.instance.continuousAnchorFactory.clear(this.elementId),this.anchor=t,f(),e||this._jsPlumb.instance.repaint(this.elementId),this},this.setAnchor=function(t,e){var n=this.prepareAnchor(t);return this.setPreparedAnchor(n,e),this};var p=function(t){if(this.connections.length>0)for(var e=0;e<this.connections.length;e++)this.connections[e].setHover(t,!1);else this.setHover(t)}.bind(this);this.bind("mouseover",(function(){p(!0)})),this.bind("mouseout",(function(){p(!1)})),t._transient||this._jsPlumb.instance.router.addEndpoint(this,this.elementId),this.prepareEndpoint=function(i,r){var a,o=function(t,n){var i=l.getRenderMode();if(e.Endpoints[i][t])return new e.Endpoints[i][t](n);if(!l.Defaults.DoNotThrowErrors)throw{msg:"jsPlumb: unknown endpoint type '"+t+"'"}},s={_jsPlumb:this._jsPlumb.instance,cssClass:t.cssClass,container:t.container,tooltip:t.tooltip,connectorTooltip:t.connectorTooltip,endpoint:this};return n.isString(i)?a=o(i,s):n.isArray(i)?(s=n.merge(i[1],s),a=o(i[0],s)):a=i.clone(),a.clone=function(){return n.isString(i)?o(i,s):n.isArray(i)?(s=n.merge(i[1],s),o(i[0],s)):void 0}.bind(this),a.typeId=r,a},this.setEndpoint=function(t,e){var n=this.prepareEndpoint(t);this.setPreparedEndpoint(n,!0)},this.setPreparedEndpoint=function(t,e){null!=this.endpoint&&(this.endpoint.cleanup(),this.endpoint.destroy()),this.endpoint=t,this.type=this.endpoint.type,this.canvas=this.endpoint.canvas},e.extend(this,t,o),this.isSource=t.isSource||!1,this.isTemporarySource=t.isTemporarySource||!1,this.isTarget=t.isTarget||!1,this.connections=t.connections||[],this.connectorPointerEvents=t["connector-pointer-events"],this.scope=t.scope||l.getDefaultScope(),this.timestamp=null,this.reattachConnections=t.reattach||l.Defaults.ReattachConnections,this.connectionsDetachable=l.Defaults.ConnectionsDetachable,!1!==t.connectionsDetachable&&!1!==t.detachable||(this.connectionsDetachable=!1),this.dragAllowedWhenFull=!1!==t.dragAllowedWhenFull,t.onMaxConnections&&this.bind("maxConnections",t.onMaxConnections),this.addConnection=function(t){this.connections.push(t),this[(this.connections.length>0?"add":"remove")+"Class"](l.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](l.endpointFullClass)},this.detachFromConnection=function(t,e,n){e=null==e?this.connections.indexOf(t):e,e>=0&&(this.connections.splice(e,1),this[(this.connections.length>0?"add":"remove")+"Class"](l.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](l.endpointFullClass)),!n&&h&&0===this.connections.length&&l.deleteObject({endpoint:this,fireEvent:!1,deleteAttachedObjects:!0!==n})},this.deleteEveryConnection=function(t){for(var e=this.connections.length,n=0;n<e;n++)l.deleteConnection(this.connections[0],t)},this.detachFrom=function(t,e,n){for(var i=[],r=0;r<this.connections.length;r++)this.connections[r].endpoints[1]!==t&&this.connections[r].endpoints[0]!==t||i.push(this.connections[r]);for(var a=0,o=i.length;a<o;a++)l.deleteConnection(i[0]);return this},this.getElement=function(){return this.element},this.setElement=function(i){var r=this._jsPlumb.instance.getId(i),a=this.elementId;return n.removeWithFunction(t.endpointsByElement[this.elementId],function(t){return t.id===this.id}.bind(this)),this.element=e.getElement(i),this.elementId=l.getId(this.element),l.router.rehomeEndpoint(this,a,this.element),l.dragManager.endpointAdded(this.element),n.addToList(t.endpointsByElement,r,this),this},this.makeInPlaceCopy=function(){var e=this.anchor.getCurrentLocation({element:this}),n=this.anchor.getOrientation(this),i=this.anchor.getCssClass(),r={bind:function(){},compute:function(){return[e[0],e[1]]},getCurrentLocation:function(){return[e[0],e[1]]},getOrientation:function(){return n},getCssClass:function(){return i}};return c({dropOptions:t.dropOptions,anchor:r,source:this.element,paintStyle:this.getPaintStyle(),endpoint:t.hideOnDrag?"Blank":this.endpoint,_transient:!0,scope:this.scope,reference:this})},this.connectorSelector=function(){return this.connections[0]},this.setStyle=this.setPaintStyle,this.paint=function(t){t=t||{};var e=t.timestamp,n=!(!1===t.recalc);if(!e||this.timestamp!==e){var i=l.updateOffset({elId:this.elementId,timestamp:e}),r=t.offset?t.offset.o:i.o;if(null!=r){var a=t.anchorPoint,o=t.connectorPaintStyle;if(null==a){var u=t.dimensions||i.s,c={xy:[r.left,r.top],wh:u,element:this,timestamp:e};if(n&&this.anchor.isDynamic&&this.connections.length>0){var d=s(this,t.elementWithPrecedence),h=d.endpoints[0]===this?1:0,f=0===h?d.sourceId:d.targetId,p=l.getCachedData(f),g=p.o,m=p.s;c.index=0===h?1:0,c.connection=d,c.txy=[g.left,g.top],c.twh=m,c.tElement=d.endpoints[h],c.tRotation=l.getRotation(f)}else this.connections.length>0&&(c.connection=this.connections[0]);c.rotation=l.getRotation(this.elementId),a=this.anchor.compute(c)}for(var v in this.endpoint.compute(a,this.anchor.getOrientation(this),this._jsPlumb.paintStyleInUse,o||this.paintStyleInUse),this.endpoint.paint(this._jsPlumb.paintStyleInUse,this.anchor),this.timestamp=e,this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(v)){var y=this._jsPlumb.overlays[v];y.isVisible()&&(this._jsPlumb.overlayPlacements[v]=y.draw(this.endpoint,this._jsPlumb.paintStyleInUse),y.paint(this._jsPlumb.overlayPlacements[v]))}}}},this.getTypeDescriptor=function(){return"endpoint"},this.isVisible=function(){return this._jsPlumb.visible},this.repaint=this.paint;var g=!1;this.initDraggable=function(){if(!g&&e.isDragSupported(this.element)){var o,s={id:null,element:null},h=null,f=!1,p=null,m=i(this,s,l),v=t.dragOptions||{},y={},A=e.dragEvents.start,b=e.dragEvents.stop,_=e.dragEvents.drag,w=e.dragEvents.beforeStart,x=function(t){o=t.e.payload||{}},S=function(n){h=this.connectorSelector();var i=!0;this.isEnabled()||(i=!1),null!=h||this.isSource||this.isTemporarySource||(i=!1),!this.isSource||!this.isFull()||null!=h&&this.dragAllowedWhenFull||(i=!1),null==h||h.isDetachable(this)||(this.isFull()?i=!1:h=null);var d=l.checkCondition(null==h?"beforeDrag":"beforeStartDetach",{endpoint:this,source:this.element,sourceId:this.elementId,connection:h});if(!1===d?i=!1:"object"===typeof d?e.extend(d,o||{}):d=o||{},!1===i)return l.stopDrag&&l.stopDrag(this.canvas),m.stopDrag(),!1;for(var g=0;g<this.connections.length;g++)this.connections[g].setHover(!1);this.addClass("endpointDrag"),l.setConnectionBeingDragged(!0),h&&!this.isFull()&&this.isSource&&(h=null),l.updateOffset({elId:this.elementId});var v=this._jsPlumb.instance.getOffset(this.canvas),y=this.canvas,A=this._jsPlumb.instance.getSize(this.canvas);r(s,l,v,A),l.setAttributes(this.canvas,{dragId:s.id,elId:this.elementId});var b=this.dragProxy||this.endpoint;if(null==this.dragProxy&&null!=this.connectionType){var _=this._jsPlumb.instance.deriveEndpointAndAnchorSpec(this.connectionType);_.endpoints[1]&&(b=_.endpoints[1])}var w=this._jsPlumb.instance.makeAnchor("Center");w.isFloating=!0,this._jsPlumb.floatingEndpoint=a(this.getPaintStyle(),w,b,this.canvas,s.element,l,c,this.scope);var x=this._jsPlumb.floatingEndpoint.anchor;if(null==h)this.setHover(!1,!1),h=u({sourceEndpoint:this,targetEndpoint:this._jsPlumb.floatingEndpoint,source:this.element,target:s.element,anchors:[this.anchor,this._jsPlumb.floatingEndpoint.anchor],paintStyle:t.connectorStyle,hoverPaintStyle:t.connectorHoverStyle,connector:t.connector,overlays:t.connectorOverlays,type:this.connectionType,cssClass:this.connectorClass,hoverClass:this.connectorHoverClass,scope:t.scope,data:d}),h.pending=!0,h.addClass(l.draggingClass),this._jsPlumb.floatingEndpoint.addClass(l.draggingClass),this._jsPlumb.floatingEndpoint.anchor=x,l.fire("connectionDrag",h),l.router.newConnection(h);else{f=!0,h.setHover(!1);var S=h.endpoints[0].id===this.id?0:1;this.detachFromConnection(h,null,!0);var C=l.getDragScope(y);l.setAttribute(this.canvas,"originalScope",C),l.fire("connectionDrag",h),0===S?(p=[h.source,h.sourceId,y,C],l.router.sourceOrTargetChanged(h.endpoints[S].elementId,s.id,h,s.element,0)):(p=[h.target,h.targetId,y,C],l.router.sourceOrTargetChanged(h.endpoints[S].elementId,s.id,h,s.element,1)),h.suspendedEndpoint=h.endpoints[S],h.suspendedElement=h.endpoints[S].getElement(),h.suspendedElementId=h.endpoints[S].elementId,h.suspendedElementType=0===S?"source":"target",h.suspendedEndpoint.setHover(!1),this._jsPlumb.floatingEndpoint.referenceEndpoint=h.suspendedEndpoint,h.endpoints[S]=this._jsPlumb.floatingEndpoint,h.addClass(l.draggingClass),this._jsPlumb.floatingEndpoint.addClass(l.draggingClass)}l.registerFloatingConnection(s,h,this._jsPlumb.floatingEndpoint),l.currentlyDragging=!0}.bind(this),C=function(){if(l.setConnectionBeingDragged(!1),h&&null!=h.endpoints){var t=l.getDropEvent(arguments),e=l.getFloatingAnchorIndex(h);if(h.endpoints[0===e?1:0].anchor.locked=!1,h.removeClass(l.draggingClass),this._jsPlumb&&(h.deleteConnectionNow||h.endpoints[e]===this._jsPlumb.floatingEndpoint)&&f&&h.suspendedEndpoint){0===e?(h.floatingElement=h.source,h.floatingId=h.sourceId,h.floatingEndpoint=h.endpoints[0],h.floatingIndex=0,h.source=p[0],h.sourceId=p[1]):(h.floatingElement=h.target,h.floatingId=h.targetId,h.floatingEndpoint=h.endpoints[1],h.floatingIndex=1,h.target=p[0],h.targetId=p[1]);var n=this._jsPlumb.floatingEndpoint;l.setDragScope(p[2],p[3]),h.endpoints[e]=h.suspendedEndpoint,h.isReattach()||h._forceReattach||h._forceDetach||!l.deleteConnection(h,{originalEvent:t})?(h.setHover(!1),h._forceDetach=null,h._forceReattach=null,this._jsPlumb.floatingEndpoint.detachFromConnection(h),h.suspendedEndpoint.addConnection(h),1===e?l.router.sourceOrTargetChanged(h.floatingId,h.targetId,h,h.target,e):l.router.sourceOrTargetChanged(h.floatingId,h.sourceId,h,h.source,e),l.repaint(p[1])):l.deleteObject({endpoint:n})}this.deleteAfterDragStop?l.deleteObject({endpoint:this}):this._jsPlumb&&this.paint({recalc:!1}),l.fire("connectionDragStop",h,t),h.pending&&l.fire("connectionAborted",h,t),l.currentlyDragging=!1,h.suspendedElement=null,h.suspendedEndpoint=null,h=null}s&&s.element&&l.remove(s.element,!1,!1),d&&l.deleteObject({endpoint:d}),this._jsPlumb&&(this.canvas.style.visibility="visible",this.anchor.locked=!1,this._jsPlumb.floatingEndpoint=null)}.bind(this);v=e.extend(y,v),v.scope=this.scope||v.scope,v[w]=n.wrap(v[w],x,!1),v[A]=n.wrap(v[A],S,!1),v[_]=n.wrap(v[_],m.drag),v[b]=n.wrap(v[b],C),v.multipleDrop=!1,v.canDrag=function(){return this.isSource||this.isTemporarySource||this.connections.length>0&&!1!==this.connectionsDetachable}.bind(this),l.initDraggable(this.canvas,v,"internal"),this.canvas._jsPlumbRelatedElement=this.element,g=!0}};var m=t.endpoint||this._jsPlumb.instance.Defaults.Endpoint||e.Defaults.Endpoint;this.setEndpoint(m,!0);var v=t.anchor?t.anchor:t.anchors?t.anchors:l.Defaults.Anchor||"Top";this.setAnchor(v,!0);var y=["default",t.type||""].join(" ");this.addType(y,t.data,!0),this.canvas=this.endpoint.canvas,this.canvas._jsPlumb=this,this.initDraggable();var A=function(i,r,a,o){if(e.isDropSupported(this.element)){var s=t.dropOptions||l.Defaults.DropOptions||e.Defaults.DropOptions;s=e.extend({},s),s.scope=s.scope||this.scope;var u=e.dragEvents.drop,c=e.dragEvents.over,d=e.dragEvents.out,h=this,f=l.EndpointDropHandler({getEndpoint:function(){return h},jsPlumb:l,enabled:function(){return null==a||a.isEnabled()},isFull:function(){return a.isFull()},element:this.element,elementId:this.elementId,isSource:this.isSource,isTarget:this.isTarget,addClass:function(t){h.addClass(t)},removeClass:function(t){h.removeClass(t)},isDropAllowed:function(){return h.isDropAllowed.apply(h,arguments)},reference:o,isRedrop:function(t,e){return t.suspendedEndpoint&&e.reference&&t.suspendedEndpoint.id===e.reference.id}});s[u]=n.wrap(s[u],f,!0),s[c]=n.wrap(s[c],function(){var t=e.getDragObject(arguments),n=l.getAttribute(e.getElement(t),"dragId"),i=l.getFloatingConnectionFor(n);if(null!=i){var r=l.getFloatingAnchorIndex(i),a=this.isTarget&&0!==r||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===i.suspendedEndpoint.id;if(a){var o=l.checkCondition("checkDropAllowed",{sourceEndpoint:i.endpoints[r],targetEndpoint:this,connection:i});this[(o?"add":"remove")+"Class"](l.endpointDropAllowedClass),this[(o?"remove":"add")+"Class"](l.endpointDropForbiddenClass),i.endpoints[r].anchor.over(this.anchor,this)}}}.bind(this)),s[d]=n.wrap(s[d],function(){var t=e.getDragObject(arguments),n=null==t?null:l.getAttribute(e.getElement(t),"dragId"),i=n?l.getFloatingConnectionFor(n):null;if(null!=i){var r=l.getFloatingAnchorIndex(i),a=this.isTarget&&0!==r||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===i.suspendedEndpoint.id;a&&(this.removeClass(l.endpointDropAllowedClass),this.removeClass(l.endpointDropForbiddenClass),i.endpoints[r].anchor.out())}}.bind(this)),l.initDroppable(i,s,"internal",r)}}.bind(this);return this.anchor.isFloating||A(this.canvas,!(t._transient||this.anchor.isFloating),this,t.reference),this},n.extend(e.Endpoint,e.OverlayCapableJsPlumbUIComponent,{setVisible:function(t,e,n){if(this._jsPlumb.visible=t,this.canvas&&(this.canvas.style.display=t?"block":"none"),this[t?"showOverlays":"hideOverlays"](),!e)for(var i=0;i<this.connections.length;i++)if(this.connections[i].setVisible(t),!n){var r=this===this.connections[i].endpoints[0]?1:0;1===this.connections[i].endpoints[r].connections.length&&this.connections[i].endpoints[r].setVisible(t,!0,!0)}},getAttachedElements:function(){return this.connections},applyType:function(t,n){this.setPaintStyle(t.endpointStyle||t.paintStyle,n),this.setHoverPaintStyle(t.endpointHoverStyle||t.hoverPaintStyle,n),null!=t.maxConnections&&(this._jsPlumb.maxConnections=t.maxConnections),t.scope&&(this.scope=t.scope),e.extend(this,t,o),null!=t.cssClass&&this.canvas&&this._jsPlumb.instance.addClass(this.canvas,t.cssClass),e.OverlayCapableJsPlumbUIComponent.applyType(this,t)},isEnabled:function(){return this._jsPlumb.enabled},setEnabled:function(t){this._jsPlumb.enabled=t},cleanup:function(){var t=this._jsPlumb.instance.endpointAnchorClassPrefix+(this._jsPlumb.currentAnchorClass?"-"+this._jsPlumb.currentAnchorClass:"");e.removeClass(this.element,t),this.anchor=null,this.endpoint.cleanup(!0),this.endpoint.destroy(),this.endpoint=null,this._jsPlumb.instance.destroyDraggable(this.canvas,"internal"),this._jsPlumb.instance.destroyDroppable(this.canvas,"internal")},setHover:function(t){this.endpoint&&this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged()&&this.endpoint.setHover(t)},isFull:function(){return 0===this._jsPlumb.maxConnections||!(this.isFloating()||this._jsPlumb.maxConnections<0||this.connections.length<this._jsPlumb.maxConnections)},isFloating:function(){return null!=this.anchor&&this.anchor.isFloating},isConnectedTo:function(t){var e=!1;if(t)for(var n=0;n<this.connections.length;n++)if(this.connections[n].endpoints[1]===t||this.connections[n].endpoints[0]===t){e=!0;break}return e},getConnectionCost:function(){return this._jsPlumb.connectionCost},setConnectionCost:function(t){this._jsPlumb.connectionCost=t},areConnectionsDirected:function(){return this._jsPlumb.connectionsDirected},setConnectionsDirected:function(t){this._jsPlumb.connectionsDirected=t},setElementId:function(t){this.elementId=t,this.anchor.elementId=t},setReferenceElement:function(t){this.element=e.getElement(t)},setDragAllowedWhenFull:function(t){this.dragAllowedWhenFull=t},equals:function(t){return this.anchor.equals(t.anchor)},getUuid:function(){return this._jsPlumb.uuid},computeAnchor:function(t){return this.anchor.compute(t)}}),t.jsPlumbInstance.prototype.EndpointDropHandler=function(t){return function(e){var i=t.jsPlumb;t.removeClass(i.endpointDropAllowedClass),t.removeClass(i.endpointDropForbiddenClass);var r=i.getDropEvent(arguments),a=i.getDragObject(arguments),o=i.getAttribute(a,"dragId"),s=(i.getAttribute(a,"elId"),i.getAttribute(a,"originalScope")),l=i.getFloatingConnectionFor(o);if(null!=l){var u=null!=l.suspendedEndpoint;if(!u||null!=l.suspendedEndpoint._jsPlumb){var c=t.getEndpoint(l);if(null!=c){if(t.isRedrop(l,t))return l._forceReattach=!0,l.setHover(!1),void(t.maybeCleanup&&t.maybeCleanup(c));var d=i.getFloatingAnchorIndex(l);if(0===d&&!t.isSource||1===d&&!t.isTarget)t.maybeCleanup&&t.maybeCleanup(c);else{t.onDrop&&t.onDrop(l),s&&i.setDragScope(a,s);var h=t.isFull(e);if(h&&c.fire("maxConnections",{endpoint:this,connection:l,maxConnections:c._jsPlumb.maxConnections},r),!h&&t.enabled()){var f=!0;0===d?(l.floatingElement=l.source,l.floatingId=l.sourceId,l.floatingEndpoint=l.endpoints[0],l.floatingIndex=0,l.source=t.element,l.sourceId=i.getId(t.element)):(l.floatingElement=l.target,l.floatingId=l.targetId,l.floatingEndpoint=l.endpoints[1],l.floatingIndex=1,l.target=t.element,l.targetId=i.getId(t.element)),u&&l.suspendedEndpoint.id!==c.id&&(l.isDetachAllowed(l)&&l.endpoints[d].isDetachAllowed(l)&&l.suspendedEndpoint.isDetachAllowed(l)&&i.checkCondition("beforeDetach",l)||(f=!1));var p=function(e){l.endpoints[d].detachFromConnection(l),l.suspendedEndpoint&&l.suspendedEndpoint.detachFromConnection(l),l.endpoints[d]=c,c.addConnection(l);var a=c.getParameters();for(var o in a)l.setParameter(o,a[o]);if(u){var s=l.suspendedEndpoint.elementId;i.fireMoveEvent({index:d,originalSourceId:0===d?s:l.sourceId,newSourceId:0===d?c.elementId:l.sourceId,originalTargetId:1===d?s:l.targetId,newTargetId:1===d?c.elementId:l.targetId,originalSourceEndpoint:0===d?l.suspendedEndpoint:l.endpoints[0],newSourceEndpoint:0===d?c:l.endpoints[0],originalTargetEndpoint:1===d?l.suspendedEndpoint:l.endpoints[1],newTargetEndpoint:1===d?c:l.endpoints[1],connection:l},r)}else a.draggable&&i.initDraggable(this.element,t.dragOptions,"internal",i);if(1===d?i.router.sourceOrTargetChanged(l.floatingId,l.targetId,l,l.target,1):i.router.sourceOrTargetChanged(l.floatingId,l.sourceId,l,l.source,0),l.endpoints[0].finalEndpoint){var h=l.endpoints[0];h.detachFromConnection(l),l.endpoints[0]=l.endpoints[0].finalEndpoint,l.endpoints[0].addConnection(l)}n.isObject(e)&&l.mergeData(e),i.finaliseConnection(l,null,r,!1),l.setHover(!1),i.revalidate(l.endpoints[0].element)}.bind(this),g=function(){l.suspendedEndpoint&&(l.endpoints[d]=l.suspendedEndpoint,l.setHover(!1),l._forceDetach=!0,0===d?(l.source=l.suspendedEndpoint.element,l.sourceId=l.suspendedEndpoint.elementId):(l.target=l.suspendedEndpoint.element,l.targetId=l.suspendedEndpoint.elementId),l.suspendedEndpoint.addConnection(l),1===d?i.router.sourceOrTargetChanged(l.floatingId,l.targetId,l,l.target,1):i.router.sourceOrTargetChanged(l.floatingId,l.sourceId,l,l.source,0),i.repaint(l.sourceId),l._forceDetach=!1)};if(f=f&&t.isDropAllowed(l.sourceId,l.targetId,l.scope,l,c),f)return p(f),!0;g()}t.maybeCleanup&&t.maybeCleanup(c),i.currentlyDragging=!1}}}}}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i=function(t,i,r,a,o){if(e.Connectors[i]=e.Connectors[i]||{},null==e.Connectors[i][r]){if(null==e.Connectors[r]){if(t.Defaults.DoNotThrowErrors)return null;throw new TypeError("jsPlumb: unknown connector type '"+r+"'")}e.Connectors[i][r]=function(){e.Connectors[r].apply(this,arguments),e.ConnectorRenderers[i].apply(this,arguments)},n.extend(e.Connectors[i][r],[e.Connectors[r],e.ConnectorRenderers[i]])}return new e.Connectors[i][r](a,o)},r=function(t,e,n){return t?n.makeAnchor(t,e,n):null},a=function(t,e,i,r){null!=e&&(e._jsPlumbConnections=e._jsPlumbConnections||{},r?delete e._jsPlumbConnections[t.id]:e._jsPlumbConnections[t.id]=!0,n.isEmpty(e._jsPlumbConnections)?i.removeClass(e,i.connectedClass):i.addClass(e,i.connectedClass))};e.Connection=function(t){var i=t.newEndpoint;this.id=t.id,this.connector=null,this.idPrefix="_jsplumb_c_",this.defaultLabelLocation=.5,this.defaultOverlayKeys=["Overlays","ConnectionOverlays"],this.previousConnection=t.previousConnection,this.source=e.getElement(t.source),this.target=e.getElement(t.target),e.OverlayCapableJsPlumbUIComponent.apply(this,arguments),t.sourceEndpoint?(this.source=t.sourceEndpoint.getElement(),this.sourceId=t.sourceEndpoint.elementId):this.sourceId=this._jsPlumb.instance.getId(this.source),t.targetEndpoint?(this.target=t.targetEndpoint.getElement(),this.targetId=t.targetEndpoint.elementId):this.targetId=this._jsPlumb.instance.getId(this.target),this.scope=t.scope,this.endpoints=[],this.endpointStyles=[];var r=this._jsPlumb.instance;r.manage(this.sourceId,this.source),r.manage(this.targetId,this.target),this._jsPlumb.visible=!0,this._jsPlumb.params={cssClass:t.cssClass,container:t.container,"pointer-events":t["pointer-events"],editorParams:t.editorParams,overlays:t.overlays},this._jsPlumb.lastPaintedAt=null,this.bind("mouseover",function(){this.setHover(!0)}.bind(this)),this.bind("mouseout",function(){this.setHover(!1)}.bind(this)),this.makeEndpoint=function(e,n,a,o,s){return a=a||this._jsPlumb.instance.getId(n),this.prepareEndpoint(r,i,this,o,e?0:1,t,n,a,s)},t.type&&(t.endpoints=t.endpoints||this._jsPlumb.instance.deriveEndpointAndAnchorSpec(t.type).endpoints);var a=this.makeEndpoint(!0,this.source,this.sourceId,t.sourceEndpoint),o=this.makeEndpoint(!1,this.target,this.targetId,t.targetEndpoint);a&&n.addToList(t.endpointsByElement,this.sourceId,a),o&&n.addToList(t.endpointsByElement,this.targetId,o),this.scope||(this.scope=this.endpoints[0].scope),null!=t.deleteEndpointsOnEmpty&&(this.endpoints[0].setDeleteOnEmpty(t.deleteEndpointsOnEmpty),this.endpoints[1].setDeleteOnEmpty(t.deleteEndpointsOnEmpty));var s=r.Defaults.ConnectionsDetachable;!1===t.detachable&&(s=!1),!1===this.endpoints[0].connectionsDetachable&&(s=!1),!1===this.endpoints[1].connectionsDetachable&&(s=!1);var l=t.reattach||this.endpoints[0].reattachConnections||this.endpoints[1].reattachConnections||r.Defaults.ReattachConnections;this.appendToDefaultType({detachable:s,reattach:l,paintStyle:this.endpoints[0].connectorStyle||this.endpoints[1].connectorStyle||t.paintStyle||r.Defaults.PaintStyle||e.Defaults.PaintStyle,hoverPaintStyle:this.endpoints[0].connectorHoverStyle||this.endpoints[1].connectorHoverStyle||t.hoverPaintStyle||r.Defaults.HoverPaintStyle||e.Defaults.HoverPaintStyle});var u=r.getSuspendedAt();if(!r.isSuspendDrawing()){var c=r.getCachedData(this.sourceId),d=c.o,h=c.s,f=r.getCachedData(this.targetId),p=f.o,g=f.s,m=u||jsPlumbUtil.uuid(),v=this.endpoints[0].anchor.compute({xy:[d.left,d.top],wh:h,element:this.endpoints[0],elementId:this.endpoints[0].elementId,txy:[p.left,p.top],twh:g,tElement:this.endpoints[1],timestamp:m,rotation:r.getRotation(this.endpoints[0].elementId)});this.endpoints[0].paint({anchorLoc:v,timestamp:m}),v=this.endpoints[1].anchor.compute({xy:[p.left,p.top],wh:g,element:this.endpoints[1],elementId:this.endpoints[1].elementId,txy:[d.left,d.top],twh:h,tElement:this.endpoints[0],timestamp:m,rotation:r.getRotation(this.endpoints[1].elementId)}),this.endpoints[1].paint({anchorLoc:v,timestamp:m})}this.getTypeDescriptor=function(){return"connection"},this.getAttachedElements=function(){return this.endpoints},this.isDetachable=function(t){return!1!==this._jsPlumb.detachable&&(null!=t?!0===t.connectionsDetachable:!0===this._jsPlumb.detachable)},this.setDetachable=function(t){this._jsPlumb.detachable=!0===t},this.isReattach=function(){return!0===this._jsPlumb.reattach||!0===this.endpoints[0].reattachConnections||!0===this.endpoints[1].reattachConnections},this.setReattach=function(t){this._jsPlumb.reattach=!0===t},this._jsPlumb.cost=t.cost||this.endpoints[0].getConnectionCost(),this._jsPlumb.directed=t.directed,null==t.directed&&(this._jsPlumb.directed=this.endpoints[0].areConnectionsDirected());var y=e.extend({},this.endpoints[1].getParameters());e.extend(y,this.endpoints[0].getParameters()),e.extend(y,this.getParameters()),this.setParameters(y),this.setConnector(this.endpoints[0].connector||this.endpoints[1].connector||t.connector||r.Defaults.Connector||e.Defaults.Connector,!0);var A=null!=t.data&&n.isObject(t.data)?t.data:{};this.getData=function(){return A},this.setData=function(t){A=t||{}},this.mergeData=function(t){A=e.extend(A,t)};var b=["default",this.endpoints[0].connectionType,this.endpoints[1].connectionType,t.type].join(" ");/[^\s]/.test(b)&&this.addType(b,t.data,!0),this.updateConnectedClass()},n.extend(e.Connection,e.OverlayCapableJsPlumbUIComponent,{applyType:function(t,n,i){var r=null;null!=t.connector&&(r=this.getCachedTypeItem("connector",i.connector),null==r&&(r=this.prepareConnector(t.connector,i.connector),this.cacheTypeItem("connector",r,i.connector)),this.setPreparedConnector(r)),null!=t.detachable&&this.setDetachable(t.detachable),null!=t.reattach&&this.setReattach(t.reattach),t.scope&&(this.scope=t.scope),null!=t.cssClass&&this.canvas&&this._jsPlumb.instance.addClass(this.canvas,t.cssClass);var a=null;t.anchor?(a=this.getCachedTypeItem("anchors",i.anchor),null==a&&(a=[this._jsPlumb.instance.makeAnchor(t.anchor),this._jsPlumb.instance.makeAnchor(t.anchor)],this.cacheTypeItem("anchors",a,i.anchor))):t.anchors&&(a=this.getCachedTypeItem("anchors",i.anchors),null==a&&(a=[this._jsPlumb.instance.makeAnchor(t.anchors[0]),this._jsPlumb.instance.makeAnchor(t.anchors[1])],this.cacheTypeItem("anchors",a,i.anchors))),null!=a&&(this.endpoints[0].anchor=a[0],this.endpoints[1].anchor=a[1],this.endpoints[1].anchor.isDynamic&&this._jsPlumb.instance.repaint(this.endpoints[1].elementId)),e.OverlayCapableJsPlumbUIComponent.applyType(this,t)},addClass:function(t,e){e&&(this.endpoints[0].addClass(t),this.endpoints[1].addClass(t),this.suspendedEndpoint&&this.suspendedEndpoint.addClass(t)),this.connector&&this.connector.addClass(t)},removeClass:function(t,e){e&&(this.endpoints[0].removeClass(t),this.endpoints[1].removeClass(t),this.suspendedEndpoint&&this.suspendedEndpoint.removeClass(t)),this.connector&&this.connector.removeClass(t)},isVisible:function(){return this._jsPlumb.visible},setVisible:function(t){this._jsPlumb.visible=t,this.connector&&this.connector.setVisible(t),this.repaint()},cleanup:function(){this.updateConnectedClass(!0),this.endpoints=null,this.source=null,this.target=null,null!=this.connector&&(this.connector.cleanup(!0),this.connector.destroy(!0)),this.connector=null},updateConnectedClass:function(t){this._jsPlumb&&(a(this,this.source,this._jsPlumb.instance,t),a(this,this.target,this._jsPlumb.instance,t))},setHover:function(e){this.connector&&this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged()&&(this.connector.setHover(e),t.jsPlumb[e?"addClass":"removeClass"](this.source,this._jsPlumb.instance.hoverSourceClass),t.jsPlumb[e?"addClass":"removeClass"](this.target,this._jsPlumb.instance.hoverTargetClass))},getUuids:function(){return[this.endpoints[0].getUuid(),this.endpoints[1].getUuid()]},getCost:function(){return this._jsPlumb?this._jsPlumb.cost:-1/0},setCost:function(t){this._jsPlumb.cost=t},isDirected:function(){return this._jsPlumb.directed},getConnector:function(){return this.connector},prepareConnector:function(t,e){var r,a={_jsPlumb:this._jsPlumb.instance,cssClass:this._jsPlumb.params.cssClass,container:this._jsPlumb.params.container,"pointer-events":this._jsPlumb.params["pointer-events"]},o=this._jsPlumb.instance.getRenderMode();return n.isString(t)?r=i(this._jsPlumb.instance,o,t,a,this):n.isArray(t)&&(r=1===t.length?i(this._jsPlumb.instance,o,t[0],a,this):i(this._jsPlumb.instance,o,t[0],n.merge(t[1],a),this)),null!=e&&(r.typeId=e),r},setPreparedConnector:function(t,e,n,i){if(this.connector!==t){var r,a="";if(null!=this.connector&&(r=this.connector,a=r.getClass(),this.connector.cleanup(),this.connector.destroy()),this.connector=t,i&&this.cacheTypeItem("connector",t,i),this.canvas=this.connector.canvas,this.bgCanvas=this.connector.bgCanvas,this.connector.reattach(this._jsPlumb.instance),this.addClass(a),this.canvas&&(this.canvas._jsPlumb=this),this.bgCanvas&&(this.bgCanvas._jsPlumb=this),null!=r)for(var o=this.getOverlays(),s=0;s<o.length;s++)o[s].transfer&&o[s].transfer(this.connector);n||this.setListenerComponent(this.connector),e||this.repaint()}},setConnector:function(t,e,n,i){var r=this.prepareConnector(t,i);this.setPreparedConnector(r,e,n,i)},paint:function(t){if(!this._jsPlumb.instance.isSuspendDrawing()&&this._jsPlumb.visible){t=t||{};var e=t.timestamp,n=!1,i=n?this.sourceId:this.targetId,r=n?this.targetId:this.sourceId,a=n?0:1,o=n?1:0;if(null==e||e!==this._jsPlumb.lastPaintedAt){var s=this._jsPlumb.instance.updateOffset({elId:r}).o,l=this._jsPlumb.instance.updateOffset({elId:i}).o,u=this.endpoints[o],c=this.endpoints[a],d=u.anchor.getCurrentLocation({xy:[s.left,s.top],wh:[s.width,s.height],element:u,timestamp:e,rotation:this._jsPlumb.instance.getRotation(this.sourceId)}),h=c.anchor.getCurrentLocation({xy:[l.left,l.top],wh:[l.width,l.height],element:c,timestamp:e,rotation:this._jsPlumb.instance.getRotation(this.targetId)});this.connector.resetBounds(),this.connector.compute({sourcePos:d,targetPos:h,sourceOrientation:u.anchor.getOrientation(u),targetOrientation:c.anchor.getOrientation(c),sourceEndpoint:this.endpoints[o],targetEndpoint:this.endpoints[a],"stroke-width":this._jsPlumb.paintStyleInUse.strokeWidth,sourceInfo:s,targetInfo:l});var f={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};for(var p in this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(p)){var g=this._jsPlumb.overlays[p];g.isVisible()&&(this._jsPlumb.overlayPlacements[p]=g.draw(this.connector,this._jsPlumb.paintStyleInUse,this.getAbsoluteOverlayPosition(g)),f.minX=Math.min(f.minX,this._jsPlumb.overlayPlacements[p].minX),f.maxX=Math.max(f.maxX,this._jsPlumb.overlayPlacements[p].maxX),f.minY=Math.min(f.minY,this._jsPlumb.overlayPlacements[p].minY),f.maxY=Math.max(f.maxY,this._jsPlumb.overlayPlacements[p].maxY))}var m=parseFloat(this._jsPlumb.paintStyleInUse.strokeWidth||1)/2,v=parseFloat(this._jsPlumb.paintStyleInUse.strokeWidth||0),y={xmin:Math.min(this.connector.bounds.minX-(m+v),f.minX),ymin:Math.min(this.connector.bounds.minY-(m+v),f.minY),xmax:Math.max(this.connector.bounds.maxX+(m+v),f.maxX),ymax:Math.max(this.connector.bounds.maxY+(m+v),f.maxY)};for(var A in this.connector.paintExtents=y,this.connector.paint(this._jsPlumb.paintStyleInUse,null,y),this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(A)){var b=this._jsPlumb.overlays[A];b.isVisible()&&b.paint(this._jsPlumb.overlayPlacements[A],y)}}this._jsPlumb.lastPaintedAt=e}},repaint:function(t){var e=jsPlumb.extend(t||{},{});e.elId=this.sourceId,this.paint(e)},prepareEndpoint:function(t,n,i,a,o,s,l,u,c){var d;if(a)i.endpoints[o]=a,a.addConnection(i);else{s.endpoints||(s.endpoints=[null,null]);var h=c||s.endpoints[o]||s.endpoint||t.Defaults.Endpoints[o]||e.Defaults.Endpoints[o]||t.Defaults.Endpoint||e.Defaults.Endpoint;s.endpointStyles||(s.endpointStyles=[null,null]),s.endpointHoverStyles||(s.endpointHoverStyles=[null,null]);var f=s.endpointStyles[o]||s.endpointStyle||t.Defaults.EndpointStyles[o]||e.Defaults.EndpointStyles[o]||t.Defaults.EndpointStyle||e.Defaults.EndpointStyle;null==f.fill&&null!=s.paintStyle&&(f.fill=s.paintStyle.stroke),null==f.outlineStroke&&null!=s.paintStyle&&(f.outlineStroke=s.paintStyle.outlineStroke),null==f.outlineWidth&&null!=s.paintStyle&&(f.outlineWidth=s.paintStyle.outlineWidth);var p=s.endpointHoverStyles[o]||s.endpointHoverStyle||t.Defaults.EndpointHoverStyles[o]||e.Defaults.EndpointHoverStyles[o]||t.Defaults.EndpointHoverStyle||e.Defaults.EndpointHoverStyle;null!=s.hoverPaintStyle&&(null==p&&(p={}),null==p.fill&&(p.fill=s.hoverPaintStyle.stroke));var g=s.anchors?s.anchors[o]:s.anchor?s.anchor:r(t.Defaults.Anchors[o],u,t)||r(e.Defaults.Anchors[o],u,t)||r(t.Defaults.Anchor,u,t)||r(e.Defaults.Anchor,u,t),m=s.uuids?s.uuids[o]:null;d=n({paintStyle:f,hoverPaintStyle:p,endpoint:h,connections:[i],uuid:m,anchor:g,source:l,scope:s.scope,reattach:s.reattach||t.Defaults.ReattachConnections,detachable:s.detachable||t.Defaults.ConnectionsDetachable}),null==a&&d.setDeleteOnEmpty(!0),i.endpoints[o]=d,!1===s.drawEndpoints&&d.setVisible(!1,!0,!0)}return d},replaceEndpoint:function(t,e){var n=this.endpoints[t],i=n.elementId,r=this._jsPlumb.instance.getEndpoints(i),a=r.indexOf(n),o=this.makeEndpoint(0===t,n.element,i,null,e);this.endpoints[t]=o,r.splice(a,1,o),this._jsPlumb.instance.deleteObject({endpoint:n,deleteAttachedObjects:!1}),this._jsPlumb.instance.fire("endpointReplaced",{previous:n,current:o}),this._jsPlumb.instance.router.sourceOrTargetChanged(this.endpoints[1].elementId,this.endpoints[1].elementId,this,this.endpoints[1].element,1)}})}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumbUtil,n=t.jsPlumb;n.AnchorManager=function(t){var i={},r={},a={},o={},s=this,l={},u=t.jsPlumbInstance,c={},d=function(t,e,n,i,r,a,o,s){for(var l=[],u=e[r?0:1]/(i.length+1),c=0;c<i.length;c++){var d=(c+1)*u,h=a*e[r?1:0];o&&(d=e[r?0:1]-d);var f=r?d:h,p=n.left+f,g=f/e[0],m=r?h:d,v=n.top+m,y=m/e[1];if(0!==s){var A=jsPlumbUtil.rotatePoint([p,v],[n.centerx,n.centery],s);p=A[0],v=A[1]}l.push([p,v,g,y,i[c][1],i[c][2]])}return l},h=function(t,e){return e[0][0]-t[0][0]},f=function(t,e){var n=t[0][0]<0?-Math.PI-t[0][0]:Math.PI-t[0][0],i=e[0][0]<0?-Math.PI-e[0][0]:Math.PI-e[0][0];return n-i},p={top:f,right:h,bottom:h,left:f},g=function(t,e){return t.sort(e)},m=function(t,e){var n=u.getCachedData(t),i=n.s,o=n.o,s=function(e,n,i,o,s,l,c){if(o.length>0)for(var h=g(o,p[e]),f="right"===e||"top"===e,m=u.getRotation(t),v=d(e,n,i,h,s,l,f,m),y=function(t,e){r[t.id]=[e[0],e[1],e[2],e[3]],a[t.id]=c},A=0;A<v.length;A++){var b=v[A][4],_=b.endpoints[0].elementId===t,w=b.endpoints[1].elementId===t;_&&y(b.endpoints[0],v[A]),w&&y(b.endpoints[1],v[A])}};s("bottom",i,o,e.bottom,!0,1,[0,1]),s("top",i,o,e.top,!0,0,[0,-1]),s("left",i,o,e.left,!1,0,[-1,0]),s("right",i,o,e.right,!1,1,[1,0])};this.reset=function(){i={},o={},l={}},this.addFloatingConnection=function(t,e){c[t]=e},this.newConnection=function(t){var i=t.sourceId,r=t.targetId,a=t.endpoints,s=!0,l=function(l,u,c,d,h){i===r&&c.isContinuous&&(t._jsPlumb.instance.removeElement(a[1].canvas),s=!1),e.addToList(o,d,[h,u,c.constructor===n.DynamicAnchor])};l(0,a[0],a[0].anchor,r,t),s&&l(1,a[1],a[1].anchor,i,t)};var v=function(t){(function(t,n){if(t){var i=function(t){return t[4]===n};e.removeWithFunction(t.top,i),e.removeWithFunction(t.left,i),e.removeWithFunction(t.bottom,i),e.removeWithFunction(t.right,i)}})(l[t.elementId],t.id)};this.connectionDetached=function(t,n){var i=t.connection||t,r=t.sourceId,a=t.targetId,l=i.endpoints,u=function(t,n,i,r,a){e.removeWithFunction(o[r],(function(t){return t[0].id===a.id}))};u(1,l[1],l[1].anchor,r,i),u(0,l[0],l[0].anchor,a,i),i.floatingId&&(u(i.floatingIndex,i.floatingEndpoint,i.floatingEndpoint.anchor,i.floatingId,i),v(i.floatingEndpoint)),v(i.endpoints[0]),v(i.endpoints[1]),n||(s.redraw(i.sourceId),i.targetId!==i.sourceId&&s.redraw(i.targetId))},this.addEndpoint=function(t,n){e.addToList(i,n,t)},this.changeId=function(t,e){o[e]=o[t],i[e]=i[t],delete o[t],delete i[t]},this.getConnectionsFor=function(t){return o[t]||[]},this.getEndpointsFor=function(t){return i[t]||[]},this.deleteEndpoint=function(t){e.removeWithFunction(i[t.elementId],(function(e){return e.id===t.id})),v(t)},this.elementRemoved=function(t){delete c[t],delete i[t],i[t]=[]};var y=function(n,i,r,a,o,s,l,u,c,d,h,f){var p,g,m=-1,v=-1,y=a.endpoints[l],A=y.id,b=[1,0][l],_=[[i,r],a,o,s,A],w=n[c],x=y._continuousAnchorEdge?n[y._continuousAnchorEdge]:null;if(x){var S=e.findWithFunction(x,(function(t){return t[4]===A}));if(-1!==S)for(x.splice(S,1),p=0;p<x.length;p++)g=x[p][1],e.addWithFunction(h,g,(function(t){return t.id===g.id})),e.addWithFunction(f,x[p][1].endpoints[l],(function(t){return t.id===g.endpoints[l].id})),e.addWithFunction(f,x[p][1].endpoints[b],(function(t){return t.id===g.endpoints[b].id}))}for(p=0;p<w.length;p++)g=w[p][1],1===t.idx&&w[p][3]===s&&-1===v&&(v=p),e.addWithFunction(h,g,(function(t){return t.id===g.id})),e.addWithFunction(f,w[p][1].endpoints[l],(function(t){return t.id===g.endpoints[l].id})),e.addWithFunction(f,w[p][1].endpoints[b],(function(t){return t.id===g.endpoints[b].id}));if(-1!==m)w[m]=_;else{var C=u?-1!==v?v:0:w.length;w.splice(C,0,_)}y._continuousAnchorEdge=c};this.sourceOrTargetChanged=function(t,i,r,a,s){if(0===s){if(t!==i){r.sourceId=i,r.source=a,e.removeWithFunction(o[t],(function(t){return t[0].id===r.id}));var l=e.findWithFunction(o[r.targetId],(function(t){return t[0].id===r.id}));l>-1&&(o[r.targetId][l][0]=r,o[r.targetId][l][1]=r.endpoints[0],o[r.targetId][l][2]=r.endpoints[0].anchor.constructor===n.DynamicAnchor),e.addToList(o,i,[r,r.endpoints[1],r.endpoints[1].anchor.constructor===n.DynamicAnchor]),r.endpoints[1].anchor.isContinuous&&(r.source===r.target?r._jsPlumb.instance.removeElement(r.endpoints[1].canvas):null==r.endpoints[1].canvas.parentNode&&r._jsPlumb.instance.appendElement(r.endpoints[1].canvas)),r.updateConnectedClass()}}else if(1===s){var u=r.endpoints[0].elementId;r.target=a,r.targetId=i;var c=e.findWithFunction(o[u],(function(t){return t[0].id===r.id})),d=e.findWithFunction(o[t],(function(t){return t[0].id===r.id}));-1!==c&&(o[u][c][0]=r,o[u][c][1]=r.endpoints[1],o[u][c][2]=r.endpoints[1].anchor.constructor===n.DynamicAnchor),d>-1&&(o[t].splice(d,1),e.addToList(o,i,[r,r.endpoints[0],r.endpoints[0].anchor.constructor===n.DynamicAnchor])),r.updateConnectedClass()}},this.rehomeEndpoint=function(t,e,n){var r=i[e]||[],a=u.getId(n);if(a!==e){var o=r.indexOf(t);if(o>-1){var l=r.splice(o,1)[0];s.add(l,a)}}for(var c=0;c<t.connections.length;c++)t.connections[c].sourceId===e?s.sourceOrTargetChanged(e,t.elementId,t.connections[c],t.element,0):t.connections[c].targetId===e&&s.sourceOrTargetChanged(e,t.elementId,t.connections[c],t.element,1)},this.redraw=function(t,r,a,s,d,h){var f=[],p=[],g=[];if(!u.isSuspendDrawing()){var v=i[t]||[],A=o[t]||[];a=a||jsPlumbUtil.uuid(),s=s||{left:0,top:0},r&&(r={left:r.left+s.left,top:r.top+s.top});for(var b=u.updateOffset({elId:t,offset:r,recalc:!1,timestamp:a}),_={},w=0;w<A.length;w++){var x=A[w][0],S=x.sourceId,C=x.targetId,T=x.endpoints[0].anchor.isContinuous,M=x.endpoints[1].anchor.isContinuous;if(T||M){var k=S+"_"+C,L=_[k],D=x.sourceId===t?1:0,E=u.getRotation(C),B=u.getRotation(S);T&&!l[S]&&(l[S]={top:[],right:[],bottom:[],left:[]}),M&&!l[C]&&(l[C]={top:[],right:[],bottom:[],left:[]}),t!==C&&u.updateOffset({elId:C,timestamp:a}),t!==S&&u.updateOffset({elId:S,timestamp:a});var I=u.getCachedData(C),O=u.getCachedData(S);C===S&&(T||M)?(y(l[S],-Math.PI/2,0,x,!1,C,0,!1,"top",S,f,p),y(l[C],-Math.PI/2,0,x,!1,S,1,!1,"top",C,f,p)):(L||(L=this.calculateOrientation(S,C,O.o,I.o,x.endpoints[0].anchor,x.endpoints[1].anchor,x,B,E),_[k]=L),T&&y(l[S],L.theta,0,x,!1,C,0,!1,L.a[0],S,f,p),M&&y(l[C],L.theta2,-1,x,!0,S,1,!0,L.a[1],C,f,p)),T&&e.addWithFunction(g,S,(function(t){return t===S})),M&&e.addWithFunction(g,C,(function(t){return t===C})),e.addWithFunction(f,x,(function(t){return t.id===x.id})),(T&&0===D||M&&1===D)&&e.addWithFunction(p,x.endpoints[D],(function(t){return t.id===x.endpoints[D].id}))}}for(w=0;w<v.length;w++)0===v[w].connections.length&&v[w].anchor.isContinuous&&(l[t]||(l[t]={top:[],right:[],bottom:[],left:[]}),y(l[t],-Math.PI/2,0,{endpoints:[v[w],v[w]],paint:function(){}},!1,t,0,!1,v[w].anchor.getDefaultFace(),t,f,p),e.addWithFunction(g,t,(function(e){return e===t})));for(w=0;w<g.length;w++)m(g[w],l[g[w]]);for(w=0;w<v.length;w++)v[w].paint({timestamp:a,offset:b,dimensions:b.s,recalc:!0!==h});for(w=0;w<p.length;w++){var P=u.getCachedData(p[w].elementId);p[w].paint({timestamp:null,offset:P,dimensions:P.s})}for(w=0;w<A.length;w++){var N=A[w][1];if(N.anchor.constructor===n.DynamicAnchor){N.paint({elementWithPrecedence:t,timestamp:a}),e.addWithFunction(f,A[w][0],(function(t){return t.id===A[w][0].id}));for(var F=0;F<N.connections.length;F++)N.connections[F]!==A[w][0]&&e.addWithFunction(f,N.connections[F],(function(t){return t.id===N.connections[F].id}))}else e.addWithFunction(f,A[w][0],(function(t){return t.id===A[w][0].id}))}var U=c[t];for(U&&U.paint({timestamp:a,recalc:!1,elId:t}),w=0;w<f.length;w++)f[w].paint({elId:t,timestamp:null,recalc:!1,clearEdits:d})}return{c:f,e:p}};var A=function(t){e.EventGenerator.apply(this),this.type="Continuous",this.isDynamic=!0,this.isContinuous=!0;for(var n=t.faces||["top","right","bottom","left"],i=!(!1===t.clockwise),o={},s={top:"bottom",right:"left",left:"right",bottom:"top"},l={top:"right",right:"bottom",left:"top",bottom:"left"},u={top:"left",right:"top",left:"bottom",bottom:"right"},c=i?l:u,d=i?u:l,h=t.cssClass||"",f=null,p=null,g=["left","right"],m=["top","bottom"],v=null,y=0;y<n.length;y++)o[n[y]]=!0;this.getDefaultFace=function(){return 0===n.length?"top":n[0]},this.isRelocatable=function(){return!0},this.isSnapOnRelocate=function(){return!0},this.verifyEdge=function(t){return o[t]?t:o[s[t]]?s[t]:o[c[t]]?c[t]:o[d[t]]?d[t]:t},this.isEdgeSupported=function(t){return null==v?null==p?!0===o[t]:p===t:-1!==v.indexOf(t)},this.setCurrentFace=function(t,e){f=t,e&&null!=p&&(p=f)},this.getCurrentFace=function(){return f},this.getSupportedFaces=function(){var t=[];for(var e in o)o[e]&&t.push(e);return t},this.lock=function(){p=f},this.unlock=function(){p=null},this.isLocked=function(){return null!=p},this.lockCurrentAxis=function(){null!=f&&(v="left"===f||"right"===f?g:m)},this.unlockCurrentAxis=function(){v=null},this.compute=function(t){return r[t.element.id]||[0,0]},this.getCurrentLocation=function(t){return r[t.element.id]||[0,0]},this.getOrientation=function(t){return a[t.id]||[0,0]},this.getCssClass=function(){return h}};u.continuousAnchorFactory={get:function(t){return new A(t)},clear:function(t){delete r[t]}}},n.AnchorManager.prototype.calculateOrientation=function(t,e,n,i,r,a,o,s,l){var u={HORIZONTAL:"horizontal",VERTICAL:"vertical",DIAGONAL:"diagonal",IDENTITY:"identity"},c=["left","top","right","bottom"];if(t===e)return{orientation:u.IDENTITY,a:["top","top"]};var d=Math.atan2(i.centery-n.centery,i.centerx-n.centerx),h=Math.atan2(n.centery-i.centery,n.centerx-i.centerx),f=[],p={};(function(t,e){for(var n=0;n<t.length;n++)if(p[t[n]]={left:[e[n][0].left,e[n][0].centery],right:[e[n][0].right,e[n][0].centery],top:[e[n][0].centerx,e[n][0].top],bottom:[e[n][0].centerx,e[n][0].bottom]},0!==e[n][1])for(var i in p[t[n]])p[t[n]][i]=jsPlumbUtil.rotatePoint(p[t[n]][i],[e[n][0].centerx,e[n][0].centery],e[n][1])})(["source","target"],[[n,s],[i,l]]);for(var g=0;g<c.length;g++)for(var m=0;m<c.length;m++)f.push({source:c[g],target:c[m],dist:Biltong.lineLength(p.source[c[g]],p.target[c[m]])});f.sort((function(t,e){return t.dist<e.dist?-1:t.dist>e.dist?1:0}));for(var v=f[0].source,y=f[0].target,A=0;A<f.length;A++)if(v=r.isContinuous&&r.locked?r.getCurrentFace():!r.isContinuous||r.isEdgeSupported(f[A].source)?f[A].source:null,y=a.isContinuous&&a.locked?a.getCurrentFace():!a.isContinuous||a.isEdgeSupported(f[A].target)?f[A].target:null,null!=v&&null!=y)break;return r.isContinuous&&r.setCurrentFace(v),a.isContinuous&&a.setCurrentFace(y),{a:[v,y],theta:d,theta2:h}},n.Anchor=function(t){this.x=t.x||0,this.y=t.y||0,this.elementId=t.elementId,this.cssClass=t.cssClass||"",this.orientation=t.orientation||[0,0],this.lastReturnValue=null,this.offsets=t.offsets||[0,0],this.timestamp=null,this._unrotatedOrientation=[this.orientation[0],this.orientation[1]],this.relocatable=!1!==t.relocatable,this.snapOnRelocate=!1!==t.snapOnRelocate,this.locked=!1,e.EventGenerator.apply(this),this.compute=function(t){var e=t.xy,n=t.wh,i=t.timestamp;if(i&&i===this.timestamp)return this.lastReturnValue;var r=[e[0]+this.x*n[0]+this.offsets[0],e[1]+this.y*n[1]+this.offsets[1],this.x,this.y],a=t.rotation;if(null!=a&&0!==a){var o=jsPlumbUtil.rotatePoint(r,[e[0]+n[0]/2,e[1]+n[1]/2],a);this.orientation[0]=Math.round(this._unrotatedOrientation[0]*o[2]-this._unrotatedOrientation[1]*o[3]),this.orientation[1]=Math.round(this._unrotatedOrientation[1]*o[2]+this._unrotatedOrientation[0]*o[3]),this.lastReturnValue=[o[0],o[1],this.x,this.y]}else this.orientation[0]=this._unrotatedOrientation[0],this.orientation[1]=this._unrotatedOrientation[1],this.lastReturnValue=r;return this.timestamp=i,this.lastReturnValue},this.getCurrentLocation=function(t){return t=t||{},null==this.lastReturnValue||null!=t.timestamp&&this.timestamp!==t.timestamp?this.compute(t):this.lastReturnValue},this.setPosition=function(t,e,n,i,r){this.locked&&!r||(this.x=t,this.y=e,this.orientation=[n,i],this.lastReturnValue=null)}},e.extend(n.Anchor,e.EventGenerator,{equals:function(t){if(!t)return!1;var e=t.getOrientation(),n=this.getOrientation();return this.x===t.x&&this.y===t.y&&this.offsets[0]===t.offsets[0]&&this.offsets[1]===t.offsets[1]&&n[0]===e[0]&&n[1]===e[1]},getOrientation:function(){return this.orientation},getCssClass:function(){return this.cssClass}}),n.FloatingAnchor=function(t){n.Anchor.apply(this,arguments);var e=t.reference,i=t.referenceCanvas,r=n.getSize(i),a=0,o=0,s=null,l=null;this.orientation=null,this.x=0,this.y=0,this.isFloating=!0,this.compute=function(t){var e=t.xy,n=[e[0]+r[0]/2,e[1]+r[1]/2];return l=n,n},this.getOrientation=function(t){if(s)return s;var n=e.getOrientation(t);return[Math.abs(n[0])*a*-1,Math.abs(n[1])*o*-1]},this.over=function(t,e){s=t.getOrientation(e)},this.out=function(){s=null},this.getCurrentLocation=function(t){return null==l?this.compute(t):l}},e.extend(n.FloatingAnchor,n.Anchor);var i=function(t,e,i){return t.constructor===n.Anchor?t:e.makeAnchor(t,i,e)};n.DynamicAnchor=function(t){n.Anchor.apply(this,arguments),this.isDynamic=!0,this.anchors=[],this.elementId=t.elementId,this.jsPlumbInstance=t.jsPlumbInstance;for(var e=0;e<t.anchors.length;e++)this.anchors[e]=i(t.anchors[e],this.jsPlumbInstance,this.elementId);this.getAnchors=function(){return this.anchors};var r=this.anchors.length>0?this.anchors[0]:null,a=r,o=function(t,e,n,i,r,a,o){var s=i[0]+t.x*r[0],l=i[1]+t.y*r[1],u=i[0]+r[0]/2,c=i[1]+r[1]/2;if(null!=a&&0!==a){var d=jsPlumbUtil.rotatePoint([s,l],[u,c],a);s=d[0],l=d[1]}return Math.sqrt(Math.pow(e-s,2)+Math.pow(n-l,2))+Math.sqrt(Math.pow(u-s,2)+Math.pow(c-l,2))},s=t.selector||function(t,e,n,i,r,a,s){for(var l=n[0]+i[0]/2,u=n[1]+i[1]/2,c=-1,d=1/0,h=0;h<s.length;h++){var f=o(s[h],l,u,t,e,r,a);f<d&&(c=h+0,d=f)}return s[c]};this.compute=function(t){var e=t.xy,n=t.wh,i=t.txy,o=t.twh,l=t.rotation,u=t.tRotation;return this.timestamp=t.timestamp,this.locked||null==i||null==o?(this.lastReturnValue=r.compute(t),this.lastReturnValue):(t.timestamp=null,r=s(e,n,i,o,l,u,this.anchors),this.x=r.x,this.y=r.y,r!==a&&this.fire("anchorChanged",r),a=r,this.lastReturnValue=r.compute(t),this.lastReturnValue)},this.getCurrentLocation=function(t){return null!=r?r.getCurrentLocation(t):null},this.getOrientation=function(t){return null!=r?r.getOrientation(t):[0,0]},this.over=function(t,e){null!=r&&r.over(t,e)},this.out=function(){null!=r&&r.out()},this.setAnchor=function(t){r=t},this.getCssClass=function(){return r&&r.getCssClass()||""},this.setAnchorCoordinates=function(t){var e=jsPlumbUtil.findWithFunction(this.anchors,(function(e){return e.x===t[0]&&e.y===t[1]}));return-1!==e&&(this.setAnchor(this.anchors[e]),!0)}},e.extend(n.DynamicAnchor,n.Anchor);var r=function(t,e,i,r,a,o){n.Anchors[a]=function(n){var s=n.jsPlumbInstance.makeAnchor([t,e,i,r,0,0],n.elementId,n.jsPlumbInstance);return s.type=a,o&&o(s,n),s}};r(.5,0,0,-1,"TopCenter"),r(.5,1,0,1,"BottomCenter"),r(0,.5,-1,0,"LeftMiddle"),r(1,.5,1,0,"RightMiddle"),r(.5,0,0,-1,"Top"),r(.5,1,0,1,"Bottom"),r(0,.5,-1,0,"Left"),r(1,.5,1,0,"Right"),r(.5,.5,0,0,"Center"),r(1,0,0,-1,"TopRight"),r(1,1,0,1,"BottomRight"),r(0,0,0,-1,"TopLeft"),r(0,1,0,1,"BottomLeft"),n.Defaults.DynamicAnchors=function(t){return t.jsPlumbInstance.makeAnchors(["TopCenter","RightMiddle","BottomCenter","LeftMiddle"],t.elementId,t.jsPlumbInstance)},n.Anchors.AutoDefault=function(t){var e=t.jsPlumbInstance.makeDynamicAnchor(n.Defaults.DynamicAnchors(t));return e.type="AutoDefault",e};var a=function(t,e){n.Anchors[t]=function(n){var i=n.jsPlumbInstance.makeAnchor(["Continuous",{faces:e}],n.elementId,n.jsPlumbInstance);return i.type=t,i}};n.Anchors.Continuous=function(t){return t.jsPlumbInstance.continuousAnchorFactory.get(t)},a("ContinuousLeft",["left"]),a("ContinuousTop",["top"]),a("ContinuousBottom",["bottom"]),a("ContinuousRight",["right"]),r(0,0,0,0,"Assign",(function(t,e){var n=e.position||"Fixed";t.positionFinder=n.constructor===String?e.jsPlumbInstance.AnchorPositionFinders[n]:n,t.constructorParams=e})),t.jsPlumbInstance.prototype.AnchorPositionFinders={Fixed:function(t,e,n){return[(t.left-e.left)/n[0],(t.top-e.top)/n[1]]},Grid:function(t,e,n,i){var r=t.left-e.left,a=t.top-e.top,o=n[0]/i.grid[0],s=n[1]/i.grid[1],l=Math.floor(r/o),u=Math.floor(a/s);return[(l*o+o/2)/n[0],(u*s+s/2)/n[1]]}},n.Anchors.Perimeter=function(t){t=t||{};var e=t.anchorCount||60,n=t.shape;if(!n)throw new Error("no shape supplied to Perimeter Anchor type");var i=function(){for(var t=.5,n=2*Math.PI/e,i=0,r=[],a=0;a<e;a++){var o=t+t*Math.sin(i),s=t+t*Math.cos(i);r.push([o,s,0,0]),i+=n}return r},r=function(t){for(var n=e/t.length,i=[],r=function(t,r,a,o,s,l,u){n=e*s;for(var c=(a-t)/n,d=(o-r)/n,h=0;h<n;h++)i.push([t+c*h,r+d*h,null==l?0:l,null==u?0:u])},a=0;a<t.length;a++)r.apply(null,t[a]);return i},a=function(t){for(var e=[],n=0;n<t.length;n++)e.push([t[n][0],t[n][1],t[n][2],t[n][3],1/t.length,t[n][4],t[n][5]]);return r(e)},o=function(){return a([[0,0,1,0,0,-1],[1,0,1,1,1,0],[1,1,0,1,0,1],[0,1,0,0,-1,0]])},s={Circle:i,Ellipse:i,Diamond:function(){return a([[.5,0,1,.5],[1,.5,.5,1],[.5,1,0,.5],[0,.5,.5,0]])},Rectangle:o,Square:o,Triangle:function(){return a([[.5,0,1,1],[1,1,0,1],[0,1,.5,0]])},Path:function(t){for(var e=t.points,n=[],i=0,a=0;a<e.length-1;a++){var o=Math.sqrt(Math.pow(e[a][2]-e[a][0])+Math.pow(e[a][3]-e[a][1]));i+=o,n.push([e[a][0],e[a][1],e[a+1][0],e[a+1][1],o])}for(var s=0;s<n.length;s++)n[s][4]=n[s][4]/i;return r(n)}},l=function(t,e){for(var n=[],i=e/180*Math.PI,r=0;r<t.length;r++){var a=t[r][0]-.5,o=t[r][1]-.5;n.push([a*Math.cos(i)-o*Math.sin(i)+.5,a*Math.sin(i)+o*Math.cos(i)+.5,t[r][2],t[r][3]])}return n};if(!s[n])throw new Error("Shape ["+n+"] is unknown by Perimeter Anchor type");var u=s[n](t);t.rotation&&(u=l(u,t.rotation));var c=t.jsPlumbInstance.makeDynamicAnchor(u);return c.type="Perimeter",c}}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=(t.jsPlumbUtil,t.jsPlumb);e.DefaultRouter=function(t){this.jsPlumbInstance=t,this.anchorManager=new e.AnchorManager({jsPlumbInstance:t}),this.sourceOrTargetChanged=function(t,e,n,i,r){this.anchorManager.sourceOrTargetChanged(t,e,n,i,r)},this.reset=function(){this.anchorManager.reset()},this.changeId=function(t,e){this.anchorManager.changeId(t,e)},this.elementRemoved=function(t){this.anchorManager.elementRemoved(t)},this.newConnection=function(t){this.anchorManager.newConnection(t)},this.connectionDetached=function(t,e){this.anchorManager.connectionDetached(t,e)},this.redraw=function(t,e,n,i,r,a){return this.anchorManager.redraw(t,e,n,i,r,a)},this.deleteEndpoint=function(t){this.anchorManager.deleteEndpoint(t)},this.rehomeEndpoint=function(t,e,n){this.anchorManager.rehomeEndpoint(t,e,n)},this.addEndpoint=function(t,e){this.anchorManager.addEndpoint(t,e)}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i=t.Biltong;e.Segments={AbstractSegment:function(t){this.params=t,this.findClosestPointOnPath=function(t,e){return{d:1/0,x:null,y:null,l:null}},this.getBounds=function(){return{minX:Math.min(t.x1,t.x2),minY:Math.min(t.y1,t.y2),maxX:Math.max(t.x1,t.x2),maxY:Math.max(t.y1,t.y2)}},this.lineIntersection=function(t,e,n,i){return[]},this.boxIntersection=function(t,e,n,i){var r=[];return r.push.apply(r,this.lineIntersection(t,e,t+n,e)),r.push.apply(r,this.lineIntersection(t+n,e,t+n,e+i)),r.push.apply(r,this.lineIntersection(t+n,e+i,t,e+i)),r.push.apply(r,this.lineIntersection(t,e+i,t,e)),r},this.boundingBoxIntersection=function(t){return this.boxIntersection(t.x,t.y,t.w,t.y)}},Straight:function(t){e.Segments.AbstractSegment.apply(this,arguments);var n,r,a,o,s,l,u,c=function(){n=Math.sqrt(Math.pow(s-o,2)+Math.pow(u-l,2)),r=i.gradient({x:o,y:l},{x:s,y:u}),a=-1/r};this.type="Straight",this.getLength=function(){return n},this.getGradient=function(){return r},this.getCoordinates=function(){return{x1:o,y1:l,x2:s,y2:u}},this.setCoordinates=function(t){o=t.x1,l=t.y1,s=t.x2,u=t.y2,c()},this.setCoordinates({x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2}),this.getBounds=function(){return{minX:Math.min(o,s),minY:Math.min(l,u),maxX:Math.max(o,s),maxY:Math.max(l,u)}},this.pointOnPath=function(t,e){if(0!==t||e){if(1!==t||e){var r=e?t>0?t:n+t:t*n;return i.pointOnLine({x:o,y:l},{x:s,y:u},r)}return{x:s,y:u}}return{x:o,y:l}},this.gradientAtPoint=function(t){return r},this.pointAlongPathFrom=function(t,e,n){var r=this.pointOnPath(t,n),a=e<=0?{x:o,y:l}:{x:s,y:u};return e<=0&&Math.abs(e)>1&&(e*=-1),i.pointOnLine(r,a,e)};var d=function(t,e,n){return n>=Math.min(t,e)&&n<=Math.max(t,e)},h=function(t,e,n){return Math.abs(n-t)<Math.abs(n-e)?t:e};this.findClosestPointOnPath=function(t,e){var c={d:1/0,x:null,y:null,l:null,x1:o,x2:s,y1:l,y2:u};if(0===r)c.y=l,c.x=d(o,s,t)?t:h(o,s,t);else if(r===1/0||r===-1/0)c.x=o,c.y=d(l,u,e)?e:h(l,u,e);else{var f=l-r*o,p=e-a*t,g=(p-f)/(r-a),m=r*g+f;c.x=d(o,s,g)?g:h(o,s,g),c.y=d(l,u,m)?m:h(l,u,m)}var v=i.lineLength([c.x,c.y],[o,l]);return c.d=i.lineLength([t,e],[c.x,c.y]),c.l=v/n,c};var f=function(t,e,n){return n>e?e<=t&&t<=n:e>=t&&t>=n},p=f;this.lineIntersection=function(t,e,n,a){var c=Math.abs(i.gradient({x:t,y:e},{x:n,y:a})),d=Math.abs(r),h=d===1/0?o:l-d*o,f=[],g=c===1/0?t:e-c*t;if(c!==d)if(c===1/0&&0===d)p(t,o,s)&&p(l,e,a)&&(f=[t,l]);else if(0===c&&d===1/0)p(e,l,u)&&p(o,t,n)&&(f=[o,e]);else{var m,v;c===1/0?(m=t,p(m,o,s)&&(v=d*t+h,p(v,e,a)&&(f=[m,v]))):0===c?(v=e,p(v,l,u)&&(m=(e-h)/d,p(m,t,n)&&(f=[m,v]))):(m=(g-h)/(d-c),v=d*m+h,p(m,o,s)&&p(v,l,u)&&(f=[m,v]))}return f},this.boxIntersection=function(t,e,n,i){var r=[];return r.push.apply(r,this.lineIntersection(t,e,t+n,e)),r.push.apply(r,this.lineIntersection(t+n,e,t+n,e+i)),r.push.apply(r,this.lineIntersection(t+n,e+i,t,e+i)),r.push.apply(r,this.lineIntersection(t,e+i,t,e)),r},this.boundingBoxIntersection=function(t){return this.boxIntersection(t.x,t.y,t.w,t.h)}},Arc:function(t){e.Segments.AbstractSegment.apply(this,arguments);var n=function(e,n){return i.theta([t.cx,t.cy],[e,n])},r=function(t,e){if(t.anticlockwise){var n=t.startAngle<t.endAngle?t.startAngle+a:t.startAngle,i=Math.abs(n-t.endAngle);return n-i*e}var r=t.endAngle<t.startAngle?t.endAngle+a:t.endAngle,o=Math.abs(r-t.startAngle);return t.startAngle+o*e},a=2*Math.PI;this.radius=t.r,this.anticlockwise=t.ac,this.type="Arc",t.startAngle&&t.endAngle?(this.startAngle=t.startAngle,this.endAngle=t.endAngle,this.x1=t.cx+this.radius*Math.cos(t.startAngle),this.y1=t.cy+this.radius*Math.sin(t.startAngle),this.x2=t.cx+this.radius*Math.cos(t.endAngle),this.y2=t.cy+this.radius*Math.sin(t.endAngle)):(this.startAngle=n(t.x1,t.y1),this.endAngle=n(t.x2,t.y2),this.x1=t.x1,this.y1=t.y1,this.x2=t.x2,this.y2=t.y2),this.endAngle<0&&(this.endAngle+=a),this.startAngle<0&&(this.startAngle+=a);var o=this.endAngle<this.startAngle?this.endAngle+a:this.endAngle;this.sweep=Math.abs(o-this.startAngle),this.anticlockwise&&(this.sweep=a-this.sweep);var s=2*Math.PI*this.radius,l=this.sweep/a,u=s*l;this.getLength=function(){return u},this.getBounds=function(){return{minX:t.cx-t.r,maxX:t.cx+t.r,minY:t.cy-t.r,maxY:t.cy+t.r}};var c=1e-10,d=function(t){var e=Math.floor(t),n=Math.ceil(t);return t-e<c?e:n-t<c?n:t};this.pointOnPath=function(e,n){if(0===e)return{x:this.x1,y:this.y1,theta:this.startAngle};if(1===e)return{x:this.x2,y:this.y2,theta:this.endAngle};n&&(e/=u);var i=r(this,e),a=t.cx+t.r*Math.cos(i),o=t.cy+t.r*Math.sin(i);return{x:d(a),y:d(o),theta:i}},this.gradientAtPoint=function(e,n){var r=this.pointOnPath(e,n),a=i.normal([t.cx,t.cy],[r.x,r.y]);return this.anticlockwise||a!==1/0&&a!==-1/0||(a*=-1),a},this.pointAlongPathFrom=function(e,n,i){var r=this.pointOnPath(e,i),a=n/s*2*Math.PI,o=this.anticlockwise?-1:1,l=r.theta+o*a,u=t.cx+this.radius*Math.cos(l),c=t.cy+this.radius*Math.sin(l);return{x:u,y:c}}},Bezier:function(n){this.curve=[{x:n.x1,y:n.y1},{x:n.cp1x,y:n.cp1y},{x:n.cp2x,y:n.cp2y},{x:n.x2,y:n.y2}];var i=function(t){return t[0].x===t[1].x&&t[0].y===t[1].y},r=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},a=function(t){var e={x:0,y:0};if(0===t)return this.curve[0];var n=this.curve.length-1;if(1===t)return this.curve[n];var i=this.curve,r=1-t;if(0===n)return this.curve[0];if(1===n)return{x:r*i[0].x+t*i[1].x,y:r*i[0].y+t*i[1].y};if(n<4){var a,o,s,l=r*r,u=t*t,c=0;return 2===n?(i=[i[0],i[1],i[2],e],a=l,o=r*t*2,s=u):3===n&&(a=l*r,o=l*t*3,s=r*u*3,c=t*u),{x:a*i[0].x+o*i[1].x+s*i[2].x+c*i[3].x,y:a*i[0].y+o*i[1].y+s*i[2].y+c*i[3].y}}return e}.bind(this),o=function(t){var e=[];t--;for(var n=0;n<=t;n++)e.push(a(n/t));return e},s=function(){i(this.curve)&&(this.length=0);var t=16,e=o(t);this.length=0;for(var n=0;n<t-1;n++){var a=e[n],s=e[n+1];this.length+=r(a,s)}}.bind(this);e.Segments.AbstractSegment.apply(this,arguments);this.bounds={minX:Math.min(n.x1,n.x2,n.cp1x,n.cp2x),minY:Math.min(n.y1,n.y2,n.cp1y,n.cp2y),maxX:Math.max(n.x1,n.x2,n.cp1x,n.cp2x),maxY:Math.max(n.y1,n.y2,n.cp1y,n.cp2y)},this.type="Bezier",s();var l=function(e,n,i){return i&&(n=t.jsBezier.locationAlongCurveFrom(e,n>0?0:1,n)),n};this.pointOnPath=function(e,n){return e=l(this.curve,e,n),t.jsBezier.pointOnCurve(this.curve,e)},this.gradientAtPoint=function(e,n){return e=l(this.curve,e,n),t.jsBezier.gradientAtPoint(this.curve,e)},this.pointAlongPathFrom=function(e,n,i){return e=l(this.curve,e,i),t.jsBezier.pointAlongCurveFrom(this.curve,e,n)},this.getLength=function(){return this.length},this.getBounds=function(){return this.bounds},this.findClosestPointOnPath=function(e,n){var i=t.jsBezier.nearestPointOnCurve({x:e,y:n},this.curve);return{d:Math.sqrt(Math.pow(i.point.x-e,2)+Math.pow(i.point.y-n,2)),x:i.point.x,y:i.point.y,l:1-i.location,s:this}},this.lineIntersection=function(e,n,i,r){return t.jsBezier.lineIntersection(e,n,i,r,this.curve)}}},e.SegmentRenderer={getPath:function(t,e){return{Straight:function(e){var n=t.getCoordinates();return(e?"M "+n.x1+" "+n.y1+" ":"")+"L "+n.x2+" "+n.y2},Bezier:function(e){var n=t.params;return(e?"M "+n.x2+" "+n.y2+" ":"")+"C "+n.cp2x+" "+n.cp2y+" "+n.cp1x+" "+n.cp1y+" "+n.x1+" "+n.y1},Arc:function(e){var n=t.params,i=t.sweep>Math.PI?1:0,r=t.anticlockwise?0:1;return(e?"M"+t.x1+" "+t.y1+" ":"")+"A "+t.radius+" "+n.r+" 0 "+i+","+r+" "+t.x2+" "+t.y2}}[t.type](e)}};var r=function(){this.resetBounds=function(){this.bounds={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}},this.resetBounds()};e.Connectors.AbstractConnector=function(t){r.apply(this,arguments);var a=[],o=0,s=[],l=[],u=t.stub||0,c=n.isArray(u)?u[0]:u,d=n.isArray(u)?u[1]:u,h=t.gap||0,f=n.isArray(h)?h[0]:h,p=n.isArray(h)?h[1]:h,g=null,m=null;this.getPathData=function(){for(var t="",n=0;n<a.length;n++)t+=e.SegmentRenderer.getPath(a[n],0===n),t+=" ";return t},this.findSegmentForPoint=function(t,e){for(var n={d:1/0,s:null,x:null,y:null,l:null},i=0;i<a.length;i++){var r=a[i].findClosestPointOnPath(t,e);r.d<n.d&&(n.d=r.d,n.l=r.l,n.x=r.x,n.y=r.y,n.s=a[i],n.x1=r.x1,n.x2=r.x2,n.y1=r.y1,n.y2=r.y2,n.index=i,n.connectorLocation=s[i][0]+r.l*(s[i][1]-s[i][0]))}return n},this.lineIntersection=function(t,e,n,i){for(var r=[],o=0;o<a.length;o++)r.push.apply(r,a[o].lineIntersection(t,e,n,i));return r},this.boxIntersection=function(t,e,n,i){for(var r=[],o=0;o<a.length;o++)r.push.apply(r,a[o].boxIntersection(t,e,n,i));return r},this.boundingBoxIntersection=function(t){for(var e=[],n=0;n<a.length;n++)e.push.apply(e,a[n].boundingBoxIntersection(t));return e};var v=function(){for(var t=0,e=0;e<a.length;e++){var n=a[e].getLength();l[e]=n/o,s[e]=[t,t+=n/o]}},y=function(t,e){var n,i,r;if(e&&(t=t>0?t/o:(o+t)/o),1===t)n=a.length-1,r=1;else if(0===t)r=0,n=0;else if(t>=.5){for(n=0,r=0,i=s.length-1;i>-1;i--)if(s[i][1]>=t&&s[i][0]<=t){n=i,r=(t-s[i][0])/l[i];break}}else for(n=s.length-1,r=1,i=0;i<s.length;i++)if(s[i][1]>=t){n=i,r=(t-s[i][0])/l[i];break}return{segment:a[n],proportion:r,index:n}},A=function(t,n,i){if(i.x1!==i.x2||i.y1!==i.y2){var r=new e.Segments[n](i);a.push(r),o+=r.getLength(),t.updateBounds(r)}},b=function(){o=a.length=s.length=l.length=0};this.setSegments=function(t){g=[],o=0;for(var e=0;e<t.length;e++)g.push(t[e]),o+=t[e].getLength()},this.getLength=function(){return o};var _=function(t){this.strokeWidth=t.strokeWidth;var e=i.quadrant(t.sourcePos,t.targetPos),n=t.targetPos[0]<t.sourcePos[0],r=t.targetPos[1]<t.sourcePos[1],a=t.strokeWidth||1,o=t.sourceEndpoint.anchor.getOrientation(t.sourceEndpoint),s=t.targetEndpoint.anchor.getOrientation(t.targetEndpoint),l=n?t.targetPos[0]:t.sourcePos[0],u=r?t.targetPos[1]:t.sourcePos[1],h=Math.abs(t.targetPos[0]-t.sourcePos[0]),g=Math.abs(t.targetPos[1]-t.sourcePos[1]);if(0===o[0]&&0===o[1]||0===s[0]&&0===s[1]){var m=h>g?0:1,v=[1,0][m];o=[],s=[],o[m]=t.sourcePos[m]>t.targetPos[m]?-1:1,s[m]=t.sourcePos[m]>t.targetPos[m]?1:-1,o[v]=0,s[v]=0}var y=n?h+f*o[0]:f*o[0],A=r?g+f*o[1]:f*o[1],b=n?p*s[0]:h+p*s[0],_=r?p*s[1]:g+p*s[1],w=o[0]*s[0]+o[1]*s[1],x={sx:y,sy:A,tx:b,ty:_,lw:a,xSpan:Math.abs(b-y),ySpan:Math.abs(_-A),mx:(y+b)/2,my:(A+_)/2,so:o,to:s,x:l,y:u,w:h,h:g,segment:e,startStubX:y+o[0]*c,startStubY:A+o[1]*c,endStubX:b+s[0]*d,endStubY:_+s[1]*d,isXGreaterThanStubTimes2:Math.abs(y-b)>c+d,isYGreaterThanStubTimes2:Math.abs(A-_)>c+d,opposite:-1===w,perpendicular:0===w,orthogonal:1===w,sourceAxis:0===o[0]?"y":"x",points:[l,u,h,g,y,A,b,_],stubs:[c,d]};return x.anchorOrientation=x.opposite?"opposite":x.orthogonal?"orthogonal":"perpendicular",x};this.getSegments=function(){return a},this.updateBounds=function(t){var e=t.getBounds();this.bounds.minX=Math.min(this.bounds.minX,e.minX),this.bounds.maxX=Math.max(this.bounds.maxX,e.maxX),this.bounds.minY=Math.min(this.bounds.minY,e.minY),this.bounds.maxY=Math.max(this.bounds.maxY,e.maxY)};return this.pointOnPath=function(t,e){var n=y(t,e);return n.segment&&n.segment.pointOnPath(n.proportion,!1)||[0,0]},this.gradientAtPoint=function(t,e){var n=y(t,e);return n.segment&&n.segment.gradientAtPoint(n.proportion,!1)||0},this.pointAlongPathFrom=function(t,e,n){var i=y(t,n);return i.segment&&i.segment.pointAlongPathFrom(i.proportion,e,!1)||[0,0]},this.compute=function(t){m=_.call(this,t),b(),this._compute(m,t),this.x=m.points[0],this.y=m.points[1],this.w=m.points[2],this.h=m.points[3],this.segment=m.segment,v()},{addSegment:A,prepareCompute:_,sourceStub:c,targetStub:d,maxStub:Math.max(c,d),sourceGap:f,targetGap:p,maxGap:Math.max(f,p)}},n.extend(e.Connectors.AbstractConnector,r),e.Endpoints.AbstractEndpoint=function(t){r.apply(this,arguments);var e=this.compute=function(t,e,n,i){var r=this._compute.apply(this,arguments);return this.x=r[0],this.y=r[1],this.w=r[2],this.h=r[3],this.bounds.minX=this.x,this.bounds.minY=this.y,this.bounds.maxX=this.x+this.w,this.bounds.maxY=this.y+this.h,r};return{compute:e,cssClass:t.cssClass}},n.extend(e.Endpoints.AbstractEndpoint,r),e.Endpoints.Dot=function(t){this.type="Dot";e.Endpoints.AbstractEndpoint.apply(this,arguments);t=t||{},this.radius=t.radius||10,this.defaultOffset=.5*this.radius,this.defaultInnerRadius=this.radius/3,this._compute=function(t,e,n,i){this.radius=n.radius||this.radius;var r=t[0]-this.radius,a=t[1]-this.radius,o=2*this.radius,s=2*this.radius;if(n.stroke){var l=n.strokeWidth||1;r-=l,a-=l,o+=2*l,s+=2*l}return[r,a,o,s,this.radius]}},n.extend(e.Endpoints.Dot,e.Endpoints.AbstractEndpoint),e.Endpoints.Rectangle=function(t){this.type="Rectangle";e.Endpoints.AbstractEndpoint.apply(this,arguments);t=t||{},this.width=t.width||20,this.height=t.height||20,this._compute=function(t,e,n,i){var r=n.width||this.width,a=n.height||this.height,o=t[0]-r/2,s=t[1]-a/2;return[o,s,r,a]}},n.extend(e.Endpoints.Rectangle,e.Endpoints.AbstractEndpoint);var a=function(t){e.jsPlumbUIComponent.apply(this,arguments),this._jsPlumb.displayElements=[]};n.extend(a,e.jsPlumbUIComponent,{getDisplayElements:function(){return this._jsPlumb.displayElements},appendDisplayElement:function(t){this._jsPlumb.displayElements.push(t)}}),e.Endpoints.Image=function(i){this.type="Image",a.apply(this,arguments),e.Endpoints.AbstractEndpoint.apply(this,arguments);var r=i.onload,o=i.src||i.url,s=i.cssClass?" "+i.cssClass:"";this._jsPlumb.img=new Image,this._jsPlumb.ready=!1,this._jsPlumb.initialized=!1,this._jsPlumb.deleted=!1,this._jsPlumb.widthToUse=i.width,this._jsPlumb.heightToUse=i.height,this._jsPlumb.endpoint=i.endpoint,this._jsPlumb.img.onload=function(){null!=this._jsPlumb&&(this._jsPlumb.ready=!0,this._jsPlumb.widthToUse=this._jsPlumb.widthToUse||this._jsPlumb.img.width,this._jsPlumb.heightToUse=this._jsPlumb.heightToUse||this._jsPlumb.img.height,r&&r(this))}.bind(this),this._jsPlumb.endpoint.setImage=function(t,e){var n=t.constructor===String?t:t.src;r=e,this._jsPlumb.img.src=n,null!=this.canvas&&this.canvas.setAttribute("src",this._jsPlumb.img.src)}.bind(this),this._jsPlumb.endpoint.setImage(o,r),this._compute=function(t,e,n,i){return this.anchorPoint=t,this._jsPlumb.ready?[t[0]-this._jsPlumb.widthToUse/2,t[1]-this._jsPlumb.heightToUse/2,this._jsPlumb.widthToUse,this._jsPlumb.heightToUse]:[0,0,0,0]},this.canvas=e.createElement("img",{position:"absolute",margin:0,padding:0,outline:0},this._jsPlumb.instance.endpointClass+s),this._jsPlumb.widthToUse&&this.canvas.setAttribute("width",this._jsPlumb.widthToUse),this._jsPlumb.heightToUse&&this.canvas.setAttribute("height",this._jsPlumb.heightToUse),this._jsPlumb.instance.appendElement(this.canvas),this.actuallyPaint=function(t,e,i){if(!this._jsPlumb.deleted){this._jsPlumb.initialized||(this.canvas.setAttribute("src",this._jsPlumb.img.src),this.appendDisplayElement(this.canvas),this._jsPlumb.initialized=!0);var r=this.anchorPoint[0]-this._jsPlumb.widthToUse/2,a=this.anchorPoint[1]-this._jsPlumb.heightToUse/2;n.sizeElement(this.canvas,r,a,this._jsPlumb.widthToUse,this._jsPlumb.heightToUse)}},this.paint=function(e,n){null!=this._jsPlumb&&(this._jsPlumb.ready?this.actuallyPaint(e,n):t.setTimeout(function(){this.paint(e,n)}.bind(this),200))}},n.extend(e.Endpoints.Image,[a,e.Endpoints.AbstractEndpoint],{cleanup:function(t){t&&(this._jsPlumb.deleted=!0,this.canvas&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null)}}),e.Endpoints.Blank=function(t){e.Endpoints.AbstractEndpoint.apply(this,arguments);this.type="Blank",a.apply(this,arguments),this._compute=function(t,e,n,i){return[t[0],t[1],10,0]};var i=t.cssClass?" "+t.cssClass:"";this.canvas=e.createElement("div",{display:"block",width:"1px",height:"1px",background:"transparent",position:"absolute"},this._jsPlumb.instance.endpointClass+i),this._jsPlumb.instance.appendElement(this.canvas),this.paint=function(t,e){n.sizeElement(this.canvas,this.x,this.y,this.w,this.h)}},n.extend(e.Endpoints.Blank,[e.Endpoints.AbstractEndpoint,a],{cleanup:function(){this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)}}),e.Endpoints.Triangle=function(t){this.type="Triangle",e.Endpoints.AbstractEndpoint.apply(this,arguments);var n=this;t=t||{},t.width=t.width||55,t.height=t.height||55,this.width=t.width,this.height=t.height,this._compute=function(t,e,i,r){var a=i.width||n.width,o=i.height||n.height,s=t[0]-a/2,l=t[1]-o/2;return[s,l,a,o]}};var o=e.Overlays.AbstractOverlay=function(t){this.visible=!0,this.isAppendedAtTopLevel=!0,this.component=t.component,this.loc=null==t.location?.5:t.location,this.endpointLoc=null==t.endpointLocation?[.5,.5]:t.endpointLocation,this.visible=!1!==t.visible};o.prototype={cleanup:function(t){t&&(this.component=null,this.canvas=null,this.endpointLoc=null)},reattach:function(t,e){},setVisible:function(t){this.visible=t,this.component.repaint()},isVisible:function(){return this.visible},hide:function(){this.setVisible(!1)},show:function(){this.setVisible(!0)},incrementLocation:function(t){this.loc+=t,this.component.repaint()},setLocation:function(t){this.loc=t,this.component.repaint()},getLocation:function(){return this.loc},updateFrom:function(){}},e.Overlays.Arrow=function(t){this.type="Arrow",o.apply(this,arguments),this.isAppendedAtTopLevel=!1,t=t||{};var r=this;this.length=t.length||20,this.width=t.width||20,this.id=t.id,this.direction=(t.direction||1)<0?-1:1;var a=t.paintStyle||{"stroke-width":1},s=t.foldback||.623;this.computeMaxSize=function(){return 1.5*r.width},this.elementCreated=function(n,i){if(this.path=n,t.events)for(var r in t.events)e.on(n,r,t.events[r])},this.draw=function(t,e){var r,o,l,u,c;if(t.pointAlongPathFrom){if(n.isString(this.loc)||this.loc>1||this.loc<0){var d=parseInt(this.loc,10),h=this.loc<0?1:0;r=t.pointAlongPathFrom(h,d,!1),o=t.pointAlongPathFrom(h,d-this.direction*this.length/2,!1),l=i.pointOnLine(r,o,this.length)}else if(1===this.loc){if(r=t.pointOnPath(this.loc),o=t.pointAlongPathFrom(this.loc,-this.length),l=i.pointOnLine(r,o,this.length),-1===this.direction){var f=l;l=r,r=f}}else if(0===this.loc){if(l=t.pointOnPath(this.loc),o=t.pointAlongPathFrom(this.loc,this.length),r=i.pointOnLine(l,o,this.length),-1===this.direction){var p=l;l=r,r=p}}else r=t.pointAlongPathFrom(this.loc,this.direction*this.length/2),o=t.pointOnPath(this.loc),l=i.pointOnLine(r,o,this.length);u=i.perpendicularLineTo(r,l,this.width),c=i.pointOnLine(r,l,s*this.length);var g={hxy:r,tail:u,cxy:c},m=a.stroke||e.stroke,v=a.fill||e.stroke,y=a.strokeWidth||e.strokeWidth;return{component:t,d:g,"stroke-width":y,stroke:m,fill:v,minX:Math.min(r.x,u[0].x,u[1].x),maxX:Math.max(r.x,u[0].x,u[1].x),minY:Math.min(r.y,u[0].y,u[1].y),maxY:Math.max(r.y,u[0].y,u[1].y)}}return{component:t,minX:0,maxX:0,minY:0,maxY:0}}},n.extend(e.Overlays.Arrow,o,{updateFrom:function(t){this.length=t.length||this.length,this.width=t.width||this.width,this.direction=null!=t.direction?t.direction:this.direction,this.foldback=t.foldback||this.foldback},cleanup:function(){this.path&&this.path.parentNode&&this.path.parentNode.removeChild(this.path)}}),e.Overlays.PlainArrow=function(t){t=t||{};var n=e.extend(t,{foldback:1});e.Overlays.Arrow.call(this,n),this.type="PlainArrow"},n.extend(e.Overlays.PlainArrow,e.Overlays.Arrow),e.Overlays.Diamond=function(t){t=t||{};var n=t.length||40,i=e.extend(t,{length:n/2,foldback:2});e.Overlays.Arrow.call(this,i),this.type="Diamond"},n.extend(e.Overlays.Diamond,e.Overlays.Arrow);var s=function(t,e){return(null==t._jsPlumb.cachedDimensions||e)&&(t._jsPlumb.cachedDimensions=t.getDimensions()),t._jsPlumb.cachedDimensions},l=function(t){e.jsPlumbUIComponent.apply(this,arguments),o.apply(this,arguments);var i=this.fire;this.fire=function(){i.apply(this,arguments),this.component&&this.component.fire.apply(this.component,arguments)},this.detached=!1,this.id=t.id,this._jsPlumb.div=null,this._jsPlumb.initialised=!1,this._jsPlumb.component=t.component,this._jsPlumb.cachedDimensions=null,this._jsPlumb.create=t.create,this._jsPlumb.initiallyInvisible=!1===t.visible,this.getElement=function(){if(null==this._jsPlumb.div){var n=this._jsPlumb.div=e.getElement(this._jsPlumb.create(this._jsPlumb.component));n.style.position="absolute",jsPlumb.addClass(n,this._jsPlumb.instance.overlayClass+" "+(this.cssClass?this.cssClass:t.cssClass?t.cssClass:"")),this._jsPlumb.instance.appendElement(n),this._jsPlumb.instance.getId(n),this.canvas=n;var i="translate(-50%, -50%)";n.style.webkitTransform=i,n.style.mozTransform=i,n.style.msTransform=i,n.style.oTransform=i,n.style.transform=i,n._jsPlumb=this,!1===t.visible&&(n.style.display="none")}return this._jsPlumb.div},this.draw=function(t,e,i){var r=s(this);if(null!=r&&2===r.length){var a={x:0,y:0};if(i)a={x:i[0],y:i[1]};else if(t.pointOnPath){var o=this.loc,l=!1;(n.isString(this.loc)||this.loc<0||this.loc>1)&&(o=parseInt(this.loc,10),l=!0),a=t.pointOnPath(o,l)}else{var u=this.loc.constructor===Array?this.loc:this.endpointLoc;a={x:u[0]*t.w,y:u[1]*t.h}}var c=a.x-r[0]/2,d=a.y-r[1]/2;return{component:t,d:{minx:c,miny:d,td:r,cxy:a},minX:c,maxX:c+r[0],minY:d,maxY:d+r[1]}}return{minX:0,maxX:0,minY:0,maxY:0}}};n.extend(l,[e.jsPlumbUIComponent,o],{getDimensions:function(){return[1,1]},setVisible:function(t){this._jsPlumb.div&&(this._jsPlumb.div.style.display=t?"block":"none",t&&this._jsPlumb.initiallyInvisible&&(s(this,!0),this.component.repaint(),this._jsPlumb.initiallyInvisible=!1))},clearCachedDimensions:function(){this._jsPlumb.cachedDimensions=null},cleanup:function(t){t?null!=this._jsPlumb.div&&(this._jsPlumb.div._jsPlumb=null,this._jsPlumb.instance.removeElement(this._jsPlumb.div)):(this._jsPlumb&&this._jsPlumb.div&&this._jsPlumb.div.parentNode&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div),this.detached=!0)},reattach:function(t,e){null!=this._jsPlumb.div&&t.getContainer().appendChild(this._jsPlumb.div),this.detached=!1},computeMaxSize:function(){var t=s(this);return Math.max(t[0],t[1])},paint:function(t,e){this._jsPlumb.initialised||(this.getElement(),t.component.appendDisplayElement(this._jsPlumb.div),this._jsPlumb.initialised=!0,this.detached&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div)),this._jsPlumb.div.style.left=t.component.x+t.d.minx+"px",this._jsPlumb.div.style.top=t.component.y+t.d.miny+"px"}}),e.Overlays.Custom=function(t){this.type="Custom",l.apply(this,arguments)},n.extend(e.Overlays.Custom,l),e.Overlays.GuideLines=function(){var t=this;t.length=50,t.strokeWidth=5,this.type="GuideLines",o.apply(this,arguments),e.jsPlumbUIComponent.apply(this,arguments),this.draw=function(e,n){var r=e.pointAlongPathFrom(t.loc,t.length/2),a=e.pointOnPath(t.loc),o=i.pointOnLine(r,a,t.length),s=i.perpendicularLineTo(r,o,40),l=i.perpendicularLineTo(o,r,20);return{connector:e,head:r,tail:o,headLine:l,tailLine:s,minX:Math.min(r.x,o.x,l[0].x,l[1].x),minY:Math.min(r.y,o.y,l[0].y,l[1].y),maxX:Math.max(r.x,o.x,l[0].x,l[1].x),maxY:Math.max(r.y,o.y,l[0].y,l[1].y)}}},e.Overlays.Label=function(t){this.labelStyle=t.labelStyle;this.cssClass=null!=this.labelStyle?this.labelStyle.cssClass:null;var n=e.extend({create:function(){return e.createElement("div")}},t);if(e.Overlays.Custom.call(this,n),this.type="Label",this.label=t.label||"",this.labelText=null,this.labelStyle){var i=this.getElement();if(this.labelStyle.font=this.labelStyle.font||"12px sans-serif",i.style.font=this.labelStyle.font,i.style.color=this.labelStyle.color||"black",this.labelStyle.fill&&(i.style.background=this.labelStyle.fill),this.labelStyle.borderWidth>0){var r=this.labelStyle.borderStyle?this.labelStyle.borderStyle:"black";i.style.border=this.labelStyle.borderWidth+"px solid "+r}this.labelStyle.padding&&(i.style.padding=this.labelStyle.padding)}},n.extend(e.Overlays.Label,e.Overlays.Custom,{cleanup:function(t){t&&(this.div=null,this.label=null,this.labelText=null,this.cssClass=null,this.labelStyle=null)},getLabel:function(){return this.label},setLabel:function(t){this.label=t,this.labelText=null,this.clearCachedDimensions(),this.update(),this.component.repaint()},getDimensions:function(){return this.update(),l.prototype.getDimensions.apply(this,arguments)},update:function(){if("function"===typeof this.label){var t=this.label(this);this.getElement().innerHTML=t.replace(/\r\n/g,"<br/>")}else null==this.labelText&&(this.labelText=this.label,this.getElement().innerHTML=this.labelText.replace(/\r\n/g,"<br/>"))},updateFrom:function(t){null!=t.label&&this.setLabel(t.label)}})}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumbUtil,n=t.jsPlumbInstance,i="jtk-group-collapsed",r="jtk-group-expanded",a="[jtk-group-content]",o="elementDraggable",s="stop",l="revert",u="_groupManager",c="_jsPlumbGroup",d="_jsPlumbGroupDrag",h="group:addMember",f="group:removeMember",p="group:add",g="group:remove",m="group:expand",v="group:collapse",y="groupDragStop",A="connectionMoved",b="internal.connectionDetached",_="removeAll",w="orphanAll",x="show",S="hide",C=function(t){var n={},a={},o={},s=this;function l(e,n){var i=t.getContainer(),r=!1;while(!r){if(null==e||e===i)return!1;if(e===n)return!0;e=e.parentNode}}function u(t){delete t.proxies;var n,i=a[t.id];null!=i&&(n=function(e){return e.id===t.id},e.removeWithFunction(i.connections.source,n),e.removeWithFunction(i.connections.target,n),delete a[t.id]),i=o[t.id],null!=i&&(n=function(e){return e.id===t.id},e.removeWithFunction(i.connections.source,n),e.removeWithFunction(i.connections.target,n),delete o[t.id])}function d(e,n){for(var i=e.getEl().querySelectorAll(".jtk-managed"),r=0;r<i.length;r++)t[n?x:S](i[r],!0)}t.bind("connection",(function(n){var i=t.getGroupFor(n.source),r=t.getGroupFor(n.target);null!=i&&null!=r&&i===r?(a[n.connection.id]=i,o[n.connection.id]=i):(null!=i&&(e.suggest(i.connections.source,n.connection),a[n.connection.id]=i),null!=r&&(e.suggest(r.connections.target,n.connection),o[n.connection.id]=r))})),t.bind(b,(function(t){u(t.connection)})),t.bind(A,(function(t){var e=0===t.index?a:o,n=e[t.connection.id];if(n){var i=n.connections[0===t.index?"source":"target"],r=i.indexOf(t.connection);-1!==r&&i.splice(r,1)}})),this.addGroup=function(e){t.addClass(e.getEl(),r),n[e.id]=e,e.manager=this,C(e),t.fire(p,{group:e})},this.addToGroup=function(e,n,i){if(e=this.getGroup(e),e){var r=e.getEl();if(n._isJsPlumbGroup)return;var a=n._jsPlumbGroup;if(a!==e){t.removeFromDragSelection(n);var o=t.getOffset(n,!0),l=e.collapsed?t.getOffset(r,!0):t.getOffset(e.getDragArea(),!0);null!=a&&(a.remove(n,!1,i,!1,e),s.updateConnectionsForGroup(a)),e.add(n,i);var u=function(t,n){var i=0===n?1:0;t.each((function(t){t.setVisible(!1),t.endpoints[i].element._jsPlumbGroup===e?(t.endpoints[i].setVisible(!1),y(t,i,e)):(t.endpoints[n].setVisible(!1),f(t,n,e))}))};e.collapsed&&(u(t.select({source:n}),0),u(t.select({target:n}),1));var c=t.getId(n);t.dragManager.setParent(n,c,r,t.getId(r),o);var d={left:o.left-l.left,top:o.top-l.top};if(t.setPosition(n,d),t.dragManager.revalidateParent(n,c,o),s.updateConnectionsForGroup(e),t.revalidate(c),!i){var p={group:e,el:n,pos:d};a&&(p.sourceGroup=a),t.fire(h,p)}}}},this.removeFromGroup=function(t,e,n){if(t=this.getGroup(t),t){if(t.collapsed){var i=function(n,i){for(var r=0;r<n.length;r++){var a=n[r];if(a.proxies)for(var o=0;o<a.proxies.length;o++)if(null!=a.proxies[o]){var s=a.proxies[o].originalEp.element;(s===e||l(s,e))&&y(a,i,t)}}};i(t.connections.source.slice(),0),i(t.connections.target.slice(),1)}t.remove(e,null,n)}},this.getGroup=function(t){var i=t;if(e.isString(t)&&(i=n[t],null==i))throw new TypeError("No such group ["+t+"]");return i},this.getGroups=function(){var t=[];for(var e in n)t.push(n[e]);return t},this.removeGroup=function(e,i,r,a){e=this.getGroup(e),this.expandGroup(e,!0);var o=e[i?_:w](r,a);return t.remove(e.getEl()),delete n[e.id],delete t._groups[e.id],t.fire(g,{group:e}),o},this.removeAllGroups=function(t,e,i){for(var r in n)this.removeGroup(n[r],t,e,i)};var f=function(e,n,i){var r=e.endpoints[0===n?1:0].element;if(!r[c]||r[c].shouldProxy()||!r[c].collapsed){var a=i.getEl(),o=t.getId(a);t.proxyConnection(e,n,a,o,(function(t,e){return i.getEndpoint(t,e)}),(function(t,e){return i.getAnchor(t,e)}))}};this.collapseGroup=function(e){if(e=this.getGroup(e),null!=e&&!e.collapsed){var n=e.getEl();if(d(e,!1),e.shouldProxy()){var a=function(t,n){for(var i=0;i<t.length;i++){var r=t[i];f(r,n,e)}};a(e.connections.source,0),a(e.connections.target,1)}e.collapsed=!0,t.removeClass(n,r),t.addClass(n,i),t.revalidate(n),t.fire(v,{group:e})}};var y=function(e,n,i){t.unproxyConnection(e,n,t.getId(i.getEl()))};function C(e){for(var n=e.getMembers().slice(),i=[],r=0;r<n.length;r++)Array.prototype.push.apply(i,n[r].querySelectorAll(".jtk-managed"));Array.prototype.push.apply(n,i);var s=t.getConnections({source:n,scope:"*"},!0),l=t.getConnections({target:n,scope:"*"},!0),u={};e.connections.source.length=0,e.connections.target.length=0;var c=function(n){for(var i=0;i<n.length;i++)if(!u[n[i].id]){u[n[i].id]=!0;var r=t.getGroupFor(n[i].source),s=t.getGroupFor(n[i].target);r===e?(s!==e&&e.connections.source.push(n[i]),a[n[i].id]=e):s===e&&(e.connections.target.push(n[i]),o[n[i].id]=e)}};c(s),c(l)}this.expandGroup=function(e,n){if(e=this.getGroup(e),null!=e&&e.collapsed){var a=e.getEl();if(d(e,!0),e.shouldProxy()){var o=function(t,n){for(var i=0;i<t.length;i++){var r=t[i];y(r,n,e)}};o(e.connections.source,0),o(e.connections.target,1)}e.collapsed=!1,t.addClass(a,r),t.removeClass(a,i),t.revalidate(a),this.repaintGroup(e),n||t.fire(m,{group:e})}},this.repaintGroup=function(e){e=this.getGroup(e);for(var n=e.getMembers(),i=0;i<n.length;i++)t.revalidate(n[i])},this.updateConnectionsForGroup=C,this.refreshAllGroups=function(){for(var e in n)C(n[e]),t.dragManager.updateOffsets(t.getId(n[e].getEl()))}},T=function(n,i){var r=this,u=i.el;this.getEl=function(){return u},this.id=i.id||e.uuid(),u._isJsPlumbGroup=!0;var h=this.getDragArea=function(){var t=n.getSelector(u,a);return t&&t.length>0?t[0]:u},p=!0===i.ghost,g=p||!0===i.constrain,m=!1!==i.revert,v=!0===i.orphan,A=!0===i.prune,b=!0===i.dropOverride,_=!1!==i.proxied,w=[];if(this.connections={source:[],target:[],internal:[]},this.getAnchor=function(t,e){return i.anchor||"Continuous"},this.getEndpoint=function(t,e){return i.endpoint||["Dot",{radius:10}]},this.collapsed=!1,!1!==i.draggable){var x={drag:function(){for(var t=0;t<w.length;t++)n.draw(w[t])},stop:function(t){n.fire(y,jsPlumb.extend(t,{group:r}))},scope:d};i.dragOptions&&t.jsPlumb.extend(x,i.dragOptions),n.draggable(i.el,x)}!1!==i.droppable&&n.droppable(i.el,{drop:function(t){var e=t.drag.el;if(!e._isJsPlumbGroup){var i=e._jsPlumbGroup;if(i!==r){if(null!=i&&i.overrideDrop(e,r))return;n.getGroupManager().addToGroup(r,e,!1)}}}});var S=function(t,e){for(var n=null==t.nodeType?t:[t],i=0;i<n.length;i++)e(n[i])};function C(t){return t.offsetParent}function T(t,e){var i=C(t),r=n.getSize(i),a=n.getSize(t),o=e[0],s=o+a[0],l=e[1],u=l+a[1];return s>0&&o<r[0]&&u>0&&l<r[1]}function M(t){var e=n.getId(t),i=n.getOffset(t);return t.parentNode.removeChild(t),n.getContainer().appendChild(t),n.setPosition(t,i),D(t),n.dragManager.clearParent(t,e),[e,i]}function k(t){var e=[];function i(t,e,i){var r=null;if(!T(t,[e,i])){var a=t._jsPlumbGroup;A?n.remove(t):r=M(t),a.remove(t)}return r}for(var r=0;r<t.selection.length;r++)e.push(i(t.selection[r][0],t.selection[r][1].left,t.selection[r][1].top));return 1===e.length?e[0]:e}function L(t){var e=n.getId(t);n.revalidate(t),n.dragManager.revalidateParent(t,e)}function D(t){t._katavorioDrag&&((A||v)&&t._katavorioDrag.off(s,k),A||v||!m||(t._katavorioDrag.off(l,L),t._katavorioDrag.setRevert(null)))}function E(t){t._katavorioDrag&&((A||v)&&t._katavorioDrag.on(s,k),g&&t._katavorioDrag.setConstrain(!0),p&&t._katavorioDrag.setUseGhostProxy(!0),A||v||!m||(t._katavorioDrag.on(l,L),t._katavorioDrag.setRevert((function(t,e){return!T(t,e)}))))}this.overrideDrop=function(t,e){return b&&(m||A||v)},this.add=function(t,e){var i=h();S(t,(function(t){if(null!=t._jsPlumbGroup){if(t._jsPlumbGroup===r)return;t._jsPlumbGroup.remove(t,!0,e,!1)}t._jsPlumbGroup=r,w.push(t),n.isAlreadyDraggable(t)&&E(t),t.parentNode!==i&&i.appendChild(t)})),n.getGroupManager().updateConnectionsForGroup(r)},this.remove=function(t,i,a,o,s){S(t,(function(t){if(t._jsPlumbGroup===r){if(delete t._jsPlumbGroup,e.removeWithFunction(w,(function(e){return e===t})),i)try{r.getDragArea().removeChild(t)}catch(l){jsPlumbUtil.log("Could not remove element from Group "+l)}if(D(t),!a){var o={group:r,el:t};s&&(o.targetGroup=s),n.fire(f,o)}}})),o||n.getGroupManager().updateConnectionsForGroup(r)},this.removeAll=function(t,e){for(var i=0,a=w.length;i<a;i++){var o=w[0];r.remove(o,t,e,!0),n.remove(o,!0)}w.length=0,n.getGroupManager().updateConnectionsForGroup(r)},this.orphanAll=function(){for(var t={},e=0;e<w.length;e++){var n=M(w[e]);t[n[0]]=n[1]}return w.length=0,t},this.getMembers=function(){return w},u[c]=this,n.bind(o,function(t){t.el._jsPlumbGroup===this&&E(t.el)}.bind(this)),this.shouldProxy=function(){return _},n.getGroupManager().addGroup(this)};n.prototype.addGroup=function(t){var e=this;if(e._groups=e._groups||{},null!=e._groups[t.id])throw new TypeError("cannot create Group ["+t.id+"]; a Group with that ID exists");if(null!=t.el[c])throw new TypeError("cannot create Group ["+t.id+"]; the given element is already a Group");var n=new T(e,t);return e._groups[n.id]=n,t.collapsed&&this.collapseGroup(n),n},n.prototype.addToGroup=function(t,e,n){var i=function(e){var i=this.getId(e);this.manage(i,e),this.getGroupManager().addToGroup(t,e,n)}.bind(this);if(Array.isArray(e))for(var r=0;r<e.length;r++)i(e[r]);else i(e)},n.prototype.removeFromGroup=function(t,e,n){this.getGroupManager().removeFromGroup(t,e,n),this.getContainer().appendChild(e)},n.prototype.removeGroup=function(t,e,n,i){return this.getGroupManager().removeGroup(t,e,n,i)},n.prototype.removeAllGroups=function(t,e,n){this.getGroupManager().removeAllGroups(t,e,n)},n.prototype.getGroup=function(t){return this.getGroupManager().getGroup(t)},n.prototype.getGroups=function(){return this.getGroupManager().getGroups()},n.prototype.expandGroup=function(t){this.getGroupManager().expandGroup(t)},n.prototype.collapseGroup=function(t){this.getGroupManager().collapseGroup(t)},n.prototype.repaintGroup=function(t){this.getGroupManager().repaintGroup(t)},n.prototype.toggleGroup=function(t){t=this.getGroupManager().getGroup(t),null!=t&&this.getGroupManager()[t.collapsed?"expandGroup":"collapseGroup"](t)},n.prototype.getGroupManager=function(){var t=this[u];return null==t&&(t=this[u]=new C(this)),t},n.prototype.removeGroupManager=function(){delete this[u]},n.prototype.getGroupFor=function(t){if(t=this.getElement(t),t){var e=this.getContainer(),n=!1,i=null;while(!n)null==t||t===e?n=!0:t[c]?(i=t[c],t,n=!0):t=t.parentNode;return i}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i="Straight",r="Arc",a=function(t){this.type="Flowchart",t=t||{},t.stub=null==t.stub?30:t.stub;var n,a=e.Connectors.AbstractConnector.apply(this,arguments),o=null==t.midpoint||isNaN(t.midpoint)?.5:t.midpoint,s=!0===t.alwaysRespectStubs,l=null,u=null,c=null!=t.cornerRadius?t.cornerRadius:0,d=(t.loopbackRadius,function(t){return t<0?-1:0===t?0:1}),h=function(t){return[d(t[2]-t[0]),d(t[3]-t[1])]},f=function(t,e,n,i){if(l!==e||u!==n){var r=null==l?i.sx:l,a=null==u?i.sy:u,o=r===e?"v":"h";l=e,u=n,t.push([r,a,e,n,o])}},p=function(t){return Math.sqrt(Math.pow(t[0]-t[2],2)+Math.pow(t[1]-t[3],2))},g=function(t){var e=[];return e.push.apply(e,t),e},m=function(t,e,n){for(var o,s,l,u=null,d=0;d<e.length-1;d++){if(u=u||g(e[d]),o=g(e[d+1]),s=h(u),l=h(o),c>0&&u[4]!==o[4]){var f=Math.min(p(u),p(o)),m=Math.min(c,f/2);u[2]-=s[0]*m,u[3]-=s[1]*m,o[0]+=l[0]*m,o[1]+=l[1]*m;var v=s[1]===l[0]&&1===l[0]||s[1]===l[0]&&0===l[0]&&s[0]!==l[1]||s[1]===l[0]&&-1===l[0],y=o[1]>u[3]?1:-1,A=o[0]>u[2]?1:-1,b=y===A,_=b&&v||!b&&!v?o[0]:u[2],w=b&&v||!b&&!v?u[3]:o[1];a.addSegment(t,i,{x1:u[0],y1:u[1],x2:u[2],y2:u[3]}),a.addSegment(t,r,{r:m,x1:u[2],y1:u[3],x2:o[0],y2:o[1],cx:_,cy:w,ac:v})}else{var x=u[2]===u[0]?0:u[2]>u[0]?n.lw/2:-n.lw/2,S=u[3]===u[1]?0:u[3]>u[1]?n.lw/2:-n.lw/2;a.addSegment(t,i,{x1:u[0]-x,y1:u[1]-S,x2:u[2]+x,y2:u[3]+S})}u=o}null!=o&&a.addSegment(t,i,{x1:o[0],y1:o[1],x2:o[2],y2:o[3]})};this.midpoint=o,this._compute=function(t,e){n=[],l=null,u=null,null;var i=function(){return[t.startStubX,t.startStubY,t.endStubX,t.endStubY]},r={perpendicular:i,orthogonal:i,opposite:function(e){var n=t,i="x"===e?0:1,r={x:function(){return 1===n.so[i]&&(n.startStubX>n.endStubX&&n.tx>n.startStubX||n.sx>n.endStubX&&n.tx>n.sx)||-1===n.so[i]&&(n.startStubX<n.endStubX&&n.tx<n.startStubX||n.sx<n.endStubX&&n.tx<n.sx)},y:function(){return 1===n.so[i]&&(n.startStubY>n.endStubY&&n.ty>n.startStubY||n.sy>n.endStubY&&n.ty>n.sy)||-1===n.so[i]&&(n.startStubY<n.endStubY&&n.ty<n.startStubY||n.sy<n.endStubY&&n.ty<n.sy)}};return!s&&r[e]()?{x:[(t.sx+t.tx)/2,t.startStubY,(t.sx+t.tx)/2,t.endStubY],y:[t.startStubX,(t.sy+t.ty)/2,t.endStubX,(t.sy+t.ty)/2]}[e]:[t.startStubX,t.startStubY,t.endStubX,t.endStubY]}},c=r[t.anchorOrientation](t.sourceAxis),d="x"===t.sourceAxis?0:1,h="x"===t.sourceAxis?1:0,p=c[d],g=c[h],v=c[d+2],y=c[h+2];f(n,c[0],c[1],t);var A=t.startStubX+(t.endStubX-t.startStubX)*o,b=t.startStubY+(t.endStubY-t.startStubY)*o,_={x:[0,1],y:[1,0]},w={perpendicular:function(e){var n=t,i={x:[[[1,2,3,4],null,[2,1,4,3]],null,[[4,3,2,1],null,[3,4,1,2]]],y:[[[3,2,1,4],null,[2,3,4,1]],null,[[4,1,2,3],null,[1,4,3,2]]]},r={x:[[n.startStubX,n.endStubX],null,[n.endStubX,n.startStubX]],y:[[n.startStubY,n.endStubY],null,[n.endStubY,n.startStubY]]},a={x:[[A,n.startStubY],[A,n.endStubY]],y:[[n.startStubX,b],[n.endStubX,b]]},o={x:[[n.endStubX,n.startStubY]],y:[[n.startStubX,n.endStubY]]},s={x:[[n.startStubX,n.endStubY],[n.endStubX,n.endStubY]],y:[[n.endStubX,n.startStubY],[n.endStubX,n.endStubY]]},l={x:[[n.startStubX,b],[n.endStubX,b],[n.endStubX,n.endStubY]],y:[[A,n.startStubY],[A,n.endStubY],[n.endStubX,n.endStubY]]},u={x:[n.startStubY,n.endStubY],y:[n.startStubX,n.endStubX]},c=_[e][0],d=_[e][1],h=n.so[c]+1,f=n.to[d]+1,p=-1===n.to[d]&&u[e][1]<u[e][0]||1===n.to[d]&&u[e][1]>u[e][0],g=r[e][h][0],m=r[e][h][1],v=i[e][h][f];return n.segment===v[3]||n.segment===v[2]&&p?a[e]:n.segment===v[2]&&m<g?o[e]:n.segment===v[2]&&m>=g||n.segment===v[1]&&!p?l[e]:n.segment===v[0]||n.segment===v[1]&&p?s[e]:void 0},orthogonal:function(e,n,i,r,a){var o=t,s={x:-1===o.so[0]?Math.min(n,r):Math.max(n,r),y:-1===o.so[1]?Math.min(n,r):Math.max(n,r)}[e];return{x:[[s,i],[s,a],[r,a]],y:[[i,s],[a,s],[a,r]]}[e]},opposite:function(n,i,r,o){var s=t,l={x:"y",y:"x"}[n],u={x:"height",y:"width"}[n],c=s["is"+n.toUpperCase()+"GreaterThanStubTimes2"];if(e.sourceEndpoint.elementId===e.targetEndpoint.elementId){var h=r+(1-e.sourceEndpoint.anchor[l])*e.sourceInfo[u]+a.maxStub;return{x:[[i,h],[o,h]],y:[[h,i],[h,o]]}[n]}return!c||1===s.so[d]&&i>o||-1===s.so[d]&&i<o?{x:[[i,b],[o,b]],y:[[A,i],[A,o]]}[n]:1===s.so[d]&&i<o||-1===s.so[d]&&i>o?{x:[[A,s.sy],[A,s.ty]],y:[[s.sx,b],[s.tx,b]]}[n]:void 0}},x=w[t.anchorOrientation](t.sourceAxis,p,g,v,y);if(x)for(var S=0;S<x.length;S++)f(n,x[S][0],x[S][1],t);f(n,c[2],c[3],t),f(n,t.tx,t.ty,t),m(this,n,t)}};e.Connectors.Flowchart=a,n.extend(e.Connectors.Flowchart,e.Connectors.AbstractConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil;e.Connectors.AbstractBezierConnector=function(t){t=t||{};var n,i=!1!==t.showLoopback,r=(t.curviness,t.margin||5),a=(t.proximityLimit,t.orientation&&"clockwise"===t.orientation),o=t.loopbackRadius||25;return this._compute=function(t,e){var s=e.sourcePos,l=e.targetPos,u=Math.abs(s[0]-l[0]),c=Math.abs(s[1]-l[1]);if(i&&e.sourceEndpoint.elementId===e.targetEndpoint.elementId){!0;var d=e.sourcePos[0],h=e.sourcePos[1]-r,f=d,p=h-o,g=f-o,m=p-o;u=2*o,c=2*o,t.points[0]=g,t.points[1]=m,t.points[2]=u,t.points[3]=c,n.addSegment(this,"Arc",{loopback:!0,x1:d-g+4,y1:h-m,startAngle:0,endAngle:2*Math.PI,r:o,ac:!a,x2:d-g-4,y2:h-m,cx:f-g,cy:p-m})}else!1,this._computeBezier(t,e,s,l,u,c)},n=e.Connectors.AbstractConnector.apply(this,arguments),n},n.extend(e.Connectors.AbstractBezierConnector,e.Connectors.AbstractConnector);var i=function(t){t=t||{},this.type="Bezier";var n=e.Connectors.AbstractBezierConnector.apply(this,arguments),i=t.curviness||150,r=10;this.getCurviness=function(){return i},this._findControlPoint=function(t,e,n,a,o,s,l){var u=s[0]!==l[0]||s[1]===l[1],c=[];return u?(0===l[0]?c.push(n[0]<e[0]?t[0]+r:t[0]-r):c.push(t[0]+i*l[0]),0===l[1]?c.push(n[1]<e[1]?t[1]+r:t[1]-r):c.push(t[1]+i*s[1])):(0===s[0]?c.push(e[0]<n[0]?t[0]+r:t[0]-r):c.push(t[0]-i*s[0]),0===s[1]?c.push(e[1]<n[1]?t[1]+r:t[1]-r):c.push(t[1]+i*l[1])),c},this._computeBezier=function(t,e,i,r,a,o){var s,l,u=i[0]<r[0]?a:0,c=i[1]<r[1]?o:0,d=i[0]<r[0]?0:a,h=i[1]<r[1]?0:o;s=this._findControlPoint([u,c],i,r,e.sourceEndpoint,e.targetEndpoint,t.so,t.to),l=this._findControlPoint([d,h],r,i,e.targetEndpoint,e.sourceEndpoint,t.to,t.so),n.addSegment(this,"Bezier",{x1:u,y1:c,x2:d,y2:h,cp1x:s[0],cp1y:s[1],cp2x:l[0],cp2y:l[1]})}};e.Connectors.Bezier=i,n.extend(i,e.Connectors.AbstractBezierConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i=function(t,e,n,i){return t<=n&&i<=e?1:t<=n&&e<=i?2:n<=t&&i>=e?3:4},r=function(t,e,n,i,r,a,o,s,l){return s<=l?[t,e]:1===n?i[3]<=0&&r[3]>=1?[t+(i[2]<.5?-1*a:a),e]:i[2]>=1&&r[2]<=0?[t,e+(i[3]<.5?-1*o:o)]:[t+-1*a,e+-1*o]:2===n?i[3]>=1&&r[3]<=0?[t+(i[2]<.5?-1*a:a),e]:i[2]>=1&&r[2]<=0?[t,e+(i[3]<.5?-1*o:o)]:[t+a,e+-1*o]:3===n?i[3]>=1&&r[3]<=0?[t+(i[2]<.5?-1*a:a),e]:i[2]<=0&&r[2]>=1?[t,e+(i[3]<.5?-1*o:o)]:[t+-1*a,e+-1*o]:4===n?i[3]<=0&&r[3]>=1?[t+(i[2]<.5?-1*a:a),e]:i[2]<=0&&r[2]>=1?[t,e+(i[3]<.5?-1*o:o)]:[t+a,e+-1*o]:void 0},a=function(t){t=t||{},this.type="StateMachine";var n,a=e.Connectors.AbstractBezierConnector.apply(this,arguments),o=t.curviness||10,s=t.margin||5,l=t.proximityLimit||80;t.orientation&&t.orientation;this._computeBezier=function(t,e,u,c,d,h){var f=e.sourcePos[0]<e.targetPos[0]?0:d,p=e.sourcePos[1]<e.targetPos[1]?0:h,g=e.sourcePos[0]<e.targetPos[0]?d:0,m=e.sourcePos[1]<e.targetPos[1]?h:0;0===e.sourcePos[2]&&(f-=s),1===e.sourcePos[2]&&(f+=s),0===e.sourcePos[3]&&(p-=s),1===e.sourcePos[3]&&(p+=s),0===e.targetPos[2]&&(g-=s),1===e.targetPos[2]&&(g+=s),0===e.targetPos[3]&&(m-=s),1===e.targetPos[3]&&(m+=s);var v,y,A,b,_=(f+g)/2,w=(p+m)/2,x=i(f,p,g,m),S=Math.sqrt(Math.pow(g-f,2)+Math.pow(m-p,2));n=r(_,w,x,e.sourcePos,e.targetPos,o,o,S,l),v=n[0],y=n[0],A=n[1],b=n[1],a.addSegment(this,"Bezier",{x1:g,y1:m,x2:f,y2:p,cp1x:v,cp1y:A,cp2x:y,cp2y:b})}};e.Connectors.StateMachine=a,n.extend(a,e.Connectors.AbstractBezierConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i="Straight",r=function(t){this.type=i;var n=e.Connectors.AbstractConnector.apply(this,arguments);this._compute=function(t,e){n.addSegment(this,i,{x1:t.sx,y1:t.sy,x2:t.startStubX,y2:t.startStubY}),n.addSegment(this,i,{x1:t.startStubX,y1:t.startStubY,x2:t.endStubX,y2:t.endStubY}),n.addSegment(this,i,{x1:t.endStubX,y1:t.endStubY,x2:t.tx,y2:t.ty})}};e.Connectors.Straight=r,n.extend(r,e.Connectors.AbstractConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i={"stroke-linejoin":"stroke-linejoin","stroke-dashoffset":"stroke-dashoffset","stroke-linecap":"stroke-linecap"},r="stroke-dasharray",a="dashstyle",o="linearGradient",s="radialGradient",l="defs",u="fill",c="stop",d="stroke",h="stroke-width",f="style",p="none",g="jsplumb_gradient_",m="strokeWidth",v={svg:"http://www.w3.org/2000/svg"},y=function(t,e){for(var n in e)t.setAttribute(n,""+e[n])},A=function(t,n){return n=n||{},n.version="1.1",n.xmlns=v.svg,e.createElementNS(v.svg,t,null,null,n)},b=function(t){return"position:absolute;left:"+t[0]+"px;top:"+t[1]+"px"},_=function(t){for(var e=t.querySelectorAll(" defs,linearGradient,radialGradient"),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n])},w=function(t,e,n,i,r){var a,h=g+r._jsPlumb.instance.idstamp();_(t),a=n.gradient.offset?A(s,{id:h}):A(o,{id:h,gradientUnits:"userSpaceOnUse"});var f=A(l);t.appendChild(f),f.appendChild(a);for(var p=0;p<n.gradient.stops.length;p++){var m=1===r.segment||2===r.segment?p:n.gradient.stops.length-1-p,v=n.gradient.stops[m][1],y=A(c,{offset:Math.floor(100*n.gradient.stops[p][0])+"%","stop-color":v});a.appendChild(y)}var b=n.stroke?d:u;e.setAttribute(b,"url(#"+h+")")},x=function(t,e,n,o,s){if(e.setAttribute(u,n.fill?n.fill:p),e.setAttribute(d,n.stroke?n.stroke:p),n.gradient?w(t,e,n,o,s):(_(t),e.setAttribute(f,"")),n.strokeWidth&&e.setAttribute(h,n.strokeWidth),n[a]&&n[m]&&!n[r]){var l=-1===n[a].indexOf(",")?" ":",",c=n[a].split(l),g="";c.forEach((function(t){g+=Math.floor(t*n.strokeWidth)+l})),e.setAttribute(r,g)}else n[r]&&e.setAttribute(r,n[r]);for(var v in i)n[v]&&e.setAttribute(i[v],n[v])},S=function(t,e,n){t.childNodes.length>n?t.insertBefore(e,t.childNodes[n]):t.appendChild(e)};n.svg={node:A,attr:y,pos:b};var C=function(t){var i=t.pointerEventsSpec||"all",r={};e.jsPlumbUIComponent.apply(this,t.originalArgs),this.canvas=null,this.path=null,this.svg=null,this.bgCanvas=null;var a=t.cssClass+" "+(t.originalArgs[0].cssClass||""),o={style:"",width:0,height:0,"pointer-events":i,position:"absolute"};this.svg=A("svg",o),t.useDivWrapper?(this.canvas=e.createElement("div",{position:"absolute"}),n.sizeElement(this.canvas,0,0,1,1),this.canvas.className=a):(y(this.svg,{class:a}),this.canvas=this.svg),t._jsPlumb.appendElement(this.canvas,t.originalArgs[0].parent),t.useDivWrapper&&this.canvas.appendChild(this.svg);var s=[this.canvas];return this.getDisplayElements=function(){return s},this.appendDisplayElement=function(t){s.push(t)},this.paint=function(e,i,a){if(null!=e){var o,s=[this.x,this.y],l=[this.w,this.h];null!=a&&(a.xmin<0&&(s[0]+=a.xmin),a.ymin<0&&(s[1]+=a.ymin),l[0]=a.xmax+(a.xmin<0?-a.xmin:0),l[1]=a.ymax+(a.ymin<0?-a.ymin:0)),t.useDivWrapper?(n.sizeElement(this.canvas,s[0],s[1],l[0]>0?l[0]:1,l[1]>0?l[1]:1),s[0]=0,s[1]=0,o=b([0,0])):o=b([s[0],s[1]]),r.paint.apply(this,arguments),y(this.svg,{style:o,width:l[0]||1,height:l[1]||1})}},{renderer:r}};n.extend(C,e.jsPlumbUIComponent,{cleanup:function(t){t||null==this.typeId?(this.canvas&&(this.canvas._jsPlumb=null),this.svg&&(this.svg._jsPlumb=null),this.bgCanvas&&(this.bgCanvas._jsPlumb=null),this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.svg=null,this.canvas=null,this.path=null,this.group=null,this._jsPlumb=null):(this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.bgCanvas.parentNode.removeChild(this.bgCanvas))},reattach:function(t){var e=t.getContainer();this.canvas&&null==this.canvas.parentNode&&e.appendChild(this.canvas),this.bgCanvas&&null==this.bgCanvas.parentNode&&e.appendChild(this.bgCanvas)},setVisible:function(t){this.canvas&&(this.canvas.style.display=t?"block":"none")}}),e.ConnectorRenderers.svg=function(t){var n=this,i=C.apply(this,[{cssClass:t._jsPlumb.connectorClass,originalArgs:arguments,pointerEventsSpec:"none",_jsPlumb:t._jsPlumb}]);i.renderer.paint=function(i,r,a){var o=n.getSegments(),s="",l=[0,0];if(a.xmin<0&&(l[0]=-a.xmin),a.ymin<0&&(l[1]=-a.ymin),o.length>0){s=n.getPathData();var u={d:s,transform:"translate("+l[0]+","+l[1]+")","pointer-events":t["pointer-events"]||"visibleStroke"},c=null,d=[n.x,n.y,n.w,n.h];if(i.outlineStroke){var h=i.outlineWidth||1,f=i.strokeWidth+2*h;c=e.extend({},i),delete c.gradient,c.stroke=i.outlineStroke,c.strokeWidth=f,null==n.bgPath?(n.bgPath=A("path",u),e.addClass(n.bgPath,e.connectorOutlineClass),S(n.svg,n.bgPath,0)):y(n.bgPath,u),x(n.svg,n.bgPath,c,d,n)}null==n.path?(n.path=A("path",u),S(n.svg,n.path,i.outlineStroke?1:0)):y(n.path,u),x(n.svg,n.path,i,d,n)}}},n.extend(e.ConnectorRenderers.svg,C);var T=e.SvgEndpoint=function(t){var n=C.apply(this,[{cssClass:t._jsPlumb.endpointClass,originalArgs:arguments,pointerEventsSpec:"all",useDivWrapper:!0,_jsPlumb:t._jsPlumb}]);n.renderer.paint=function(t){var n=e.extend({},t);n.outlineStroke&&(n.stroke=n.outlineStroke),null==this.node?(this.node=this.makeNode(n),this.svg.appendChild(this.node)):null!=this.updateNode&&this.updateNode(this.node),x(this.svg,this.node,n,[this.x,this.y,this.w,this.h],this),b(this.node,[this.x,this.y])}.bind(this)};n.extend(T,C),e.Endpoints.svg.Dot=function(){e.Endpoints.Dot.apply(this,arguments),T.apply(this,arguments),this.makeNode=function(t){return A("circle",{cx:this.w/2,cy:this.h/2,r:this.radius})},this.updateNode=function(t){y(t,{cx:this.w/2,cy:this.h/2,r:this.radius})}},n.extend(e.Endpoints.svg.Dot,[e.Endpoints.Dot,T]),e.Endpoints.svg.Rectangle=function(){e.Endpoints.Rectangle.apply(this,arguments),T.apply(this,arguments),this.makeNode=function(t){return A("rect",{width:this.w,height:this.h})},this.updateNode=function(t){y(t,{width:this.w,height:this.h})}},n.extend(e.Endpoints.svg.Rectangle,[e.Endpoints.Rectangle,T]),e.Endpoints.svg.Image=e.Endpoints.Image,e.Endpoints.svg.Blank=e.Endpoints.Blank,e.Overlays.svg.Label=e.Overlays.Label,e.Overlays.svg.Custom=e.Overlays.Custom;var M=function(t,n){t.apply(this,n),e.jsPlumbUIComponent.apply(this,n),this.isAppendedAtTopLevel=!1;this.path=null,this.paint=function(t,e){if(t.component.svg&&e){null==this.path&&(this.path=A("path",{"pointer-events":"all"}),t.component.svg.appendChild(this.path),this.elementCreated&&this.elementCreated(this.path,t.component),this.canvas=t.component.svg);var r=n&&1===n.length&&n[0].cssClass||"",a=[0,0];e.xmin<0&&(a[0]=-e.xmin),e.ymin<0&&(a[1]=-e.ymin),y(this.path,{d:i(t.d),class:r,stroke:t.stroke?t.stroke:null,fill:t.fill?t.fill:null,transform:"translate("+a[0]+","+a[1]+")"})}};var i=function(t){return isNaN(t.cxy.x)||isNaN(t.cxy.y)?"":"M"+t.hxy.x+","+t.hxy.y+" L"+t.tail[0].x+","+t.tail[0].y+" L"+t.cxy.x+","+t.cxy.y+" L"+t.tail[1].x+","+t.tail[1].y+" L"+t.hxy.x+","+t.hxy.y};this.transfer=function(t){t.canvas&&this.path&&this.path.parentNode&&(this.path.parentNode.removeChild(this.path),t.canvas.appendChild(this.path))}},k={cleanup:function(t){null!=this.path&&(t?this._jsPlumb.instance.removeElement(this.path):this.path.parentNode&&this.path.parentNode.removeChild(this.path))},reattach:function(t,e){this.path&&e.canvas&&e.canvas.appendChild(this.path)},setVisible:function(t){null!=this.path&&(this.path.style.display=t?"block":"none")}};n.extend(M,[e.jsPlumbUIComponent,e.Overlays.AbstractOverlay]),e.Overlays.svg.Arrow=function(){M.apply(this,[e.Overlays.Arrow,arguments])},n.extend(e.Overlays.svg.Arrow,[e.Overlays.Arrow,M],k),e.Overlays.svg.PlainArrow=function(){M.apply(this,[e.Overlays.PlainArrow,arguments])},n.extend(e.Overlays.svg.PlainArrow,[e.Overlays.PlainArrow,M],k),e.Overlays.svg.Diamond=function(){M.apply(this,[e.Overlays.Diamond,arguments])},n.extend(e.Overlays.svg.Diamond,[e.Overlays.Diamond,M],k),e.Overlays.svg.GuideLines=function(){var t,n,i=null,r=this;e.Overlays.GuideLines.apply(this,arguments),this.paint=function(e,o){null==i&&(i=A("path"),e.connector.svg.appendChild(i),r.attachListeners(i,e.connector),r.attachListeners(i,r),t=A("path"),e.connector.svg.appendChild(t),r.attachListeners(t,e.connector),r.attachListeners(t,r),n=A("path"),e.connector.svg.appendChild(n),r.attachListeners(n,e.connector),r.attachListeners(n,r));var s=[0,0];o.xmin<0&&(s[0]=-o.xmin),o.ymin<0&&(s[1]=-o.ymin),y(i,{d:a(e.head,e.tail),stroke:"red",fill:null,transform:"translate("+s[0]+","+s[1]+")"}),y(t,{d:a(e.tailLine[0],e.tailLine[1]),stroke:"blue",fill:null,transform:"translate("+s[0]+","+s[1]+")"}),y(n,{d:a(e.headLine[0],e.headLine[1]),stroke:"green",fill:null,transform:"translate("+s[0]+","+s[1]+")"})};var a=function(t,e){return"M "+t.x+","+t.y+" L"+e.x+","+e.y}},n.extend(e.Overlays.svg.GuideLines,e.Overlays.GuideLines)}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i=t.Katavorio,r=t.Biltong,a=function(e){var n=e._mottle;return n||(n=e._mottle=new t.Mottle),n},o=function(t,n){n=n||"main";var a="_katavorio_"+n,o=t[a],s=t.getEventManager();return o||(o=new i({bind:s.on,unbind:s.off,getSize:e.getSize,getConstrainingRectangle:function(t){return[t.parentNode.scrollWidth,t.parentNode.scrollHeight]},getPosition:function(e,n){var i=t.getOffset(e,n,e._katavorioDrag?e.offsetParent:null);return[i.left,i.top]},setPosition:function(t,e){t.style.left=e[0]+"px",t.style.top=e[1]+"px"},addClass:e.addClass,removeClass:e.removeClass,intersects:r.intersects,indexOf:function(t,e){return t.indexOf(e)},scope:t.getDefaultScope(),css:{noSelect:t.dragSelectClass,droppable:"jtk-droppable",draggable:"jtk-draggable",drag:"jtk-drag",selected:"jtk-drag-selected",active:"jtk-drag-active",hover:"jtk-drag-hover",ghostProxy:"jtk-ghost-proxy"}}),o.setZoom(t.getZoom()),t[a]=o,t.bind("zoom",o.setZoom)),o},s=function(t){var e=t.el._jsPlumbDragOptions,n=!0;return e.canDrag&&(n=e.canDrag()),n&&(this.setHoverSuspended(!0),this.select({source:t.el}).addClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:t.el}).addClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),this.setConnectionBeingDragged(!0)),n},l=function(t){var e=this.getUIPosition(arguments,this.getZoom());if(null!=e){var n=t.el._jsPlumbDragOptions;this.draw(t.el,e,null,!0),n._dragging&&this.addClass(t.el,"jtk-dragged"),n._dragging=!0}},u=function(t){for(var e,n=t.selection,i=function(n){var i;null!=n[1]&&(e=this.getUIPosition([{el:n[2].el,pos:[n[1].left,n[1].top]}]),i=this.draw(n[2].el,e)),null!=n[0]._jsPlumbDragOptions&&delete n[0]._jsPlumbDragOptions._dragging,this.removeClass(n[0],"jtk-dragged"),this.select({source:n[2].el}).removeClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:n[2].el}).removeClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),t.e._drawResult=t.e._drawResult||{c:[],e:[],a:[]},Array.prototype.push.apply(t.e._drawResult.c,i.c),Array.prototype.push.apply(t.e._drawResult.e,i.e),Array.prototype.push.apply(t.e._drawResult.a,i.a),this.getDragManager().dragEnded(n[2].el)}.bind(this),r=0;r<n.length;r++)i(n[r]);this.setHoverSuspended(!1),this.setConnectionBeingDragged(!1)},c=function(t,e){var i=function(i){if(null!=e[i]){if(n.isString(e[i])){var r=e[i].match(/-=/)?-1:1,a=e[i].substring(2);return t[i]+r*a}return e[i]}return t[i]};return[i("left"),i("top")]},d=function(t,e){if(null==e)return[0,0];var n=m(e),i=g(n,0);return[i[t+"X"],i[t+"Y"]]},h=d.bind(this,"page"),f=d.bind(this,"screen"),p=d.bind(this,"client"),g=function(t,e){return t.item?t.item(e):t[e]},m=function(t){return t.touches&&t.touches.length>0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},v=function(t){var e={},n=[],i={},r={},a={};this.register=function(o){var s,l=t.getId(o);e[l]||(e[l]=o,n.push(o),i[l]={});var u=function(e){if(e)for(var n=0;n<e.childNodes.length;n++)if(3!==e.childNodes[n].nodeType&&8!==e.childNodes[n].nodeType){var c=jsPlumb.getElement(e.childNodes[n]),d=t.getId(e.childNodes[n],null,!0);if(d&&r[d]&&r[d]>0){s||(s=t.getOffset(o));var h=t.getOffset(c);i[l][d]={id:d,offset:{left:h.left-s.left,top:h.top-s.top}},a[d]=l}u(e.childNodes[n])}};u(o)},this.updateOffsets=function(e,n){if(null!=e){n=n||{};var r,o=jsPlumb.getElement(e),s=t.getId(o),l=i[s];if(l)for(var u in l)if(l.hasOwnProperty(u)){var c=jsPlumb.getElement(u),d=n[u]||t.getOffset(c);if(null==c.offsetParent&&null!=i[s][u])continue;r||(r=t.getOffset(o)),i[s][u]={id:u,offset:{left:d.left-r.left,top:d.top-r.top}},a[u]=s}}},this.endpointAdded=function(n,o){o=o||t.getId(n);var s=document.body,l=n.parentNode;r[o]=r[o]?r[o]+1:1;while(null!=l&&l!==s){var u=t.getId(l,null,!0);if(u&&e[u]){var c=t.getOffset(l);if(null==i[u][o]){var d=t.getOffset(n);i[u][o]={id:o,offset:{left:d.left-c.left,top:d.top-c.top}},a[o]=u}break}l=l.parentNode}},this.endpointDeleted=function(t){if(r[t.elementId]&&(r[t.elementId]--,r[t.elementId]<=0))for(var e in i)i.hasOwnProperty(e)&&i[e]&&(delete i[e][t.elementId],delete a[t.elementId])},this.changeId=function(t,e){i[e]=i[t],i[t]={},a[e]=a[t],a[t]=null},this.getElementsForDraggable=function(t){return i[t]},this.elementRemoved=function(t){var e=a[t];e&&(i[e]&&delete i[e][t],delete a[t])},this.reset=function(){e={},n=[],i={},r={}},this.dragEnded=function(e){if(null!=e.offsetParent){var n=t.getId(e),i=a[n];i&&this.updateOffsets(i)}},this.setParent=function(e,n,r,o,s){var l=a[n];i[o]||(i[o]={});var u=t.getOffset(r),c=s||t.getOffset(e);l&&i[l]&&delete i[l][n],i[o][n]={id:n,offset:{left:c.left-u.left,top:c.top-u.top}},a[n]=o},this.clearParent=function(t,e){var n=a[e];n&&(delete i[n][e],delete a[e])},this.revalidateParent=function(e,n,i){var r=a[n];if(r){var o={};o[n]=i,this.updateOffsets(r,o),t.revalidate(r)}},this.getDragAncestor=function(e){var n=jsPlumb.getElement(e),i=t.getId(n),r=a[i];return r?jsPlumb.getElement(r):null}},y=function(t,e,i){e=n.fastTrim(e),"undefined"!==typeof t.className.baseVal?t.className.baseVal=e:t.className=e;try{var r=t.classList;if(null!=r){while(r.length>0)r.remove(r.item(0));for(var a=0;a<i.length;a++)i[a]&&r.add(i[a])}}catch(o){n.log("JSPLUMB: cannot set class list",o)}},A=function(t){return"undefined"===typeof t.className.baseVal?t.className:t.className.baseVal},b=function(t,e,i){e=null==e?[]:n.isArray(e)?e:e.split(/\s+/),i=null==i?[]:n.isArray(i)?i:i.split(/\s+/);var r=A(t),a=r.split(/\s+/),o=function(t,e){for(var n=0;n<e.length;n++)if(t)-1===a.indexOf(e[n])&&a.push(e[n]);else{var i=a.indexOf(e[n]);-1!==i&&a.splice(i,1)}};o(!0,e),o(!1,i),y(t,a.join(" "),a)};t.jsPlumb.extend(t.jsPlumbInstance.prototype,{headless:!1,pageLocation:h,screenLocation:f,clientLocation:p,getDragManager:function(){return null==this.dragManager&&(this.dragManager=new v(this)),this.dragManager},recalculateOffsets:function(t){this.getDragManager().updateOffsets(t)},createElement:function(t,e,n,i){return this.createElementNS(null,t,e,n,i)},createElementNS:function(t,e,n,i,r){var a,o=null==t?document.createElement(e):document.createElementNS(t,e);for(a in n=n||{},n)o.style[a]=n[a];for(a in i&&(o.className=i),r=r||{},r)o.setAttribute(a,""+r[a]);return o},getAttribute:function(t,e){return null!=t.getAttribute?t.getAttribute(e):null},setAttribute:function(t,e,n){null!=t.setAttribute&&t.setAttribute(e,n)},setAttributes:function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setAttribute(n,e[n])},appendToRoot:function(t){document.body.appendChild(t)},getRenderModes:function(){return["svg"]},getClass:A,addClass:function(t,e){jsPlumb.each(t,(function(t){b(t,e)}))},hasClass:function(t,e){return t=jsPlumb.getElement(t),t.classList?t.classList.contains(e):-1!==A(t).indexOf(e)},removeClass:function(t,e){jsPlumb.each(t,(function(t){b(t,null,e)}))},toggleClass:function(t,e){jsPlumb.hasClass(t,e)?jsPlumb.removeClass(t,e):jsPlumb.addClass(t,e)},updateClasses:function(t,e,n){jsPlumb.each(t,(function(t){b(t,e,n)}))},setClass:function(t,e){null!=e&&jsPlumb.each(t,(function(t){y(t,e,e.split(/\s+/))}))},setPosition:function(t,e){t.style.left=e.left+"px",t.style.top=e.top+"px"},getPosition:function(t){var e=function(e){var n=t.style[e];return n?n.substring(0,n.length-2):0};return{left:e("left"),top:e("top")}},getStyle:function(t,e){return"undefined"!==typeof window.getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.currentStyle[e]},getSelector:function(t,e){var n=null;return n=1===arguments.length?null!=t.nodeType?t:document.querySelectorAll(t):t.querySelectorAll(e),n},getOffset:function(t,e,n){t=jsPlumb.getElement(t),n=n||this.getContainer();var i={left:t.offsetLeft,top:t.offsetTop},r=e||null!=n&&t!==n&&t.offsetParent!==n?t.offsetParent:null,a=function(t){null!=t&&t!==document.body&&(t.scrollTop>0||t.scrollLeft>0)&&(i.left-=t.scrollLeft,i.top-=t.scrollTop)}.bind(this);while(null!=r)i.left+=r.offsetLeft,i.top+=r.offsetTop,a(r),r=e?r.offsetParent:r.offsetParent===n?null:r.offsetParent;if(null!=n&&!e&&(n.scrollTop>0||n.scrollLeft>0)){var o=null!=t.offsetParent?this.getStyle(t.offsetParent,"position"):"static",s=this.getStyle(t,"position");"absolute"!==s&&"fixed"!==s&&"absolute"!==o&&"fixed"!==o&&(i.left-=n.scrollLeft,i.top-=n.scrollTop)}return i},getPositionOnElement:function(t,e,n){var i="undefined"!==typeof e.getBoundingClientRect?e.getBoundingClientRect():{left:0,top:0,width:0,height:0},r=document.body,a=document.documentElement,o=window.pageYOffset||a.scrollTop||r.scrollTop,s=window.pageXOffset||a.scrollLeft||r.scrollLeft,l=a.clientTop||r.clientTop||0,u=a.clientLeft||r.clientLeft||0,c=0,d=0,h=i.top+o-l+c*n,f=i.left+s-u+d*n,p=jsPlumb.pageLocation(t),g=i.width||e.offsetWidth*n,m=i.height||e.offsetHeight*n,v=(p[0]-f)/g,y=(p[1]-h)/m;return[v,y]},getAbsolutePosition:function(t){var e=function(e){var n=t.style[e];if(n)return parseFloat(n.substring(0,n.length-2))};return[e("left"),e("top")]},setAbsolutePosition:function(t,e,n,i){n?this.animate(t,{left:"+="+(e[0]-n[0]),top:"+="+(e[1]-n[1])},i):(t.style.left=e[0]+"px",t.style.top=e[1]+"px")},getSize:function(t){return[t.offsetWidth,t.offsetHeight]},getWidth:function(t){return t.offsetWidth},getHeight:function(t){return t.offsetHeight},getRenderMode:function(){return"svg"},draggable:function(t,e){var i;return t=n.isArray(t)||null!=t.length&&!n.isString(t)?t:[t],Array.prototype.slice.call(t).forEach(function(t){i=this.info(t),i.el&&this._initDraggableIfNecessary(i.el,!0,e,i.id,!0)}.bind(this)),this},snapToGrid:function(t,e,n){var i=[],r=function(t){var r=this.info(t);if(null!=r.el&&r.el._katavorioDrag){var a=r.el._katavorioDrag.snap(e,n);this.revalidate(r.el),i.push([r.el,a])}}.bind(this);if(1===arguments.length||3===arguments.length)r(t,e,n);else{var a=this.getManagedElements();for(var o in a)r(o,arguments[0],arguments[1])}return i},initDraggable:function(t,e,n){o(this,n).draggable(t,e),t._jsPlumbDragOptions=e},destroyDraggable:function(t,e){o(this,e).destroyDraggable(t),t._jsPlumbDragOptions=null,t._jsPlumbRelatedElement=null},unbindDraggable:function(t,e,n,i){o(this,i).destroyDraggable(t,e,n)},setDraggable:function(t,e){return jsPlumb.each(t,function(t){this.isDragSupported(t)&&(this._draggableStates[this.getAttribute(t,"id")]=e,this.setElementDraggable(t,e))}.bind(this))},_draggableStates:{},toggleDraggable:function(t){var e;return jsPlumb.each(t,function(t){var n=this.getAttribute(t,"id");return e=null!=this._draggableStates[n]&&this._draggableStates[n],e=!e,this._draggableStates[n]=e,this.setDraggable(t,e),e}.bind(this)),e},_initDraggableIfNecessary:function(t,e,i,r,a){if(!jsPlumb.headless){var o=null!=e&&e;if(o&&jsPlumb.isDragSupported(t,this)){var c=i||this.Defaults.DragOptions;if(c=jsPlumb.extend({},c),jsPlumb.isAlreadyDraggable(t,this))i.force&&this.initDraggable(t,c);else{var d=jsPlumb.dragEvents.drag,h=jsPlumb.dragEvents.stop,f=jsPlumb.dragEvents.start;this.manage(r,t),c[f]=n.wrap(c[f],s.bind(this)),c[d]=n.wrap(c[d],l.bind(this)),c[h]=n.wrap(c[h],u.bind(this));var p=this.getId(t);this._draggableStates[p]=!0;var g=this._draggableStates[p];c.disabled=null!=g&&!g,this.initDraggable(t,c),this.getDragManager().register(t),a&&this.fire("elementDraggable",{el:t,options:c})}}}},animationSupported:!0,getElement:function(t){return null==t?null:(t="string"===typeof t?t:null==t.tagName&&null!=t.length&&null==t.enctype?t[0]:t,"string"===typeof t?document.getElementById(t):t)},removeElement:function(t){o(this).elementRemoved(t),this.getEventManager().remove(t)},doAnimate:function(t,n,i){i=i||{};var r=this.getOffset(t),a=c(r,n),o=a[0]-r.left,s=a[1]-r.top,l=i.duration||250,u=15,d=l/u,h=u/l*o,f=u/l*s,p=0,g=setInterval((function(){e.setPosition(t,{left:r.left+h*(p+1),top:r.top+f*(p+1)}),null!=i.step&&i.step(p,Math.ceil(d)),p++,p>=d&&(window.clearInterval(g),null!=i.complete&&i.complete())}),u)},destroyDroppable:function(t,e){o(this,e).destroyDroppable(t)},unbindDroppable:function(t,e,n,i){o(this,i).destroyDroppable(t,e,n)},droppable:function(t,e){var i;return t=n.isArray(t)||null!=t.length&&!n.isString(t)?t:[t],e=e||{},e.allowLoopback=!1,Array.prototype.slice.call(t).forEach(function(t){i=this.info(t),i.el&&this.initDroppable(i.el,e)}.bind(this)),this},initDroppable:function(t,e,n){o(this,n).droppable(t,e)},isAlreadyDraggable:function(t){return null!=t._katavorioDrag},isDragSupported:function(t,e){return!0},isDropSupported:function(t,e){return!0},isElementDraggable:function(t){return t=e.getElement(t),t._katavorioDrag&&t._katavorioDrag.isEnabled()},getDragObject:function(t){return t[0].drag.getDragElement()},getDragScope:function(t){return t._katavorioDrag&&t._katavorioDrag.scopes.join(" ")||""},getDropEvent:function(t){return t[0].e},getUIPosition:function(t,e){var n=t[0].el;if(null==n.offsetParent)return null;var i=t[0].finalPos||t[0].pos,r={left:i[0],top:i[1]};if(n._katavorioDrag&&n.offsetParent!==this.getContainer()){var a=this.getOffset(n.offsetParent);r.left+=a.left,r.top+=a.top}return r},setDragFilter:function(t,e,n){t._katavorioDrag&&t._katavorioDrag.setFilter(e,n)},setElementDraggable:function(t,n){t=e.getElement(t),t._katavorioDrag&&t._katavorioDrag.setEnabled(n)},setDragScope:function(t,e){t._katavorioDrag&&t._katavorioDrag.k.setDragScope(t,e)},setDropScope:function(t,e){t._katavorioDrop&&t._katavorioDrop.length>0&&t._katavorioDrop[0].k.setDropScope(t,e)},addToPosse:function(t,n){var i=Array.prototype.slice.call(arguments,1),r=o(this);e.each(t,(function(t){t=[e.getElement(t)],t.push.apply(t,i),r.addToPosse.apply(r,t)}))},setPosse:function(t,n){var i=Array.prototype.slice.call(arguments,1),r=o(this);e.each(t,(function(t){t=[e.getElement(t)],t.push.apply(t,i),r.setPosse.apply(r,t)}))},removeFromPosse:function(t,n){var i=Array.prototype.slice.call(arguments,1),r=o(this);e.each(t,(function(t){t=[e.getElement(t)],t.push.apply(t,i),r.removeFromPosse.apply(r,t)}))},removeFromAllPosses:function(t){var n=o(this);e.each(t,(function(t){n.removeFromAllPosses(e.getElement(t))}))},setPosseState:function(t,n,i){var r=o(this);e.each(t,(function(t){r.setPosseState(e.getElement(t),n,i)}))},dragEvents:{start:"start",stop:"stop",drag:"drag",step:"step",over:"over",out:"out",drop:"drop",complete:"complete",beforeStart:"beforeStart"},animEvents:{step:"step",complete:"complete"},stopDrag:function(t){t._katavorioDrag&&t._katavorioDrag.abort()},addToDragSelection:function(t){var e=this.getElement(t);null==e||!e._isJsPlumbGroup&&null!=e._jsPlumbGroup||o(this).select(t)},removeFromDragSelection:function(t){o(this).deselect(t)},getDragSelection:function(){return o(this).getSelection()},clearDragSelection:function(){o(this).deselectAll()},trigger:function(t,e,n,i){this.getEventManager().trigger(t,e,n,i)},doReset:function(){for(var t in this)0===t.indexOf("_katavorio_")&&this[t].reset()},getEventManager:function(){return a(this)},on:function(t,e,n){return this.getEventManager().on.apply(this,arguments),this},off:function(t,e,n){return this.getEventManager().off.apply(this,arguments),this}});var _=function(t){var e=function(){/complete|loaded|interactive/.test(document.readyState)&&"undefined"!==typeof document.body&&null!=document.body?t():setTimeout(e,9)};e()};_(e.init)}.call("undefined"!==typeof window?window:this)},e1d3:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}});return e}))},e204:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel-block"},[e("PanelCard",{attrs:{"panel-name":"注册用户趋势图","card-id":"reg-user"},on:{dateChange:t.dateChange},scopedSlots:t._u([{key:"default",fn:function(){return[e("div",[e("div",{staticStyle:{height:"320px",width:"100%"}},[t.xdata.length>0?e("EchartColumnar",{attrs:{"chart-id":"register-user","chart-type":[{type:"line",yAxisIndex:0}],"x-data":t.xdata,"y-data":t.ydata,"y-unit":t.yunit,"x-unit":t.xunit,left:"30",right:"30",top:"30"}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{attrs:{src:"images/w-imgs/nomessage.png"}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])]},proxy:!0}])})],1)},r=[],a=n("76a6"),o={components:{PanelCard:a["a"]},props:{},data:function(){return{dateArr:[],xdata:[],ydata:[[]],xunit:{name:"",align:"end",size:"13"},yunit:{name:"",align:"center",size:"13"}}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{dateChange:function(t){this.dateArr=t,this.getStatData(this.dateArr[0],this.dateArr[1])},getStatData:function(t,e){var n=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{startTime:t,endTime:e},url:"platStatistics/BusinessOpen/getOrgOpenTrend"}).then((function(t){if("success"===t.code){var e=t.body.listdata,i=[],r=[];e.forEach((function(t,e){t.month=t.month.replace("-","/"),i.push(t.month),r.push(t.totalNum)})),n.xdata=i,n.ydata=[r]}else n.$message({message:t.message,type:"warning"})}),(function(t){n.$message.error(t)}))}}},s=o,l=n("2877"),u=Object(l["a"])(s,i,r,!1,null,"2b0831e8",null);e["a"]=u.exports},e246:function(t,e,n){var i=n("b1ee");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("972b1f6a",i,!0,{sourceMap:!1,shadowMode:!1})},e2bf:function(t,e,n){var i=n("7b83");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("bcf48078",i,!0,{sourceMap:!1,shadowMode:!1})},e331:function(t,e,n){var i=n("2961");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("0d8b2cfe",i,!0,{sourceMap:!1,shadowMode:!1})},e33d:function(t,e,n){"use strict";n("803a")},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e4ae:function(t,e,n){var i=n("f772");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},e4f7:function(t,e,n){var i=n("4bf8"),r=n("38fd");n("5eda")("getPrototypeOf",(function(){return function(t){return r(i(t))}}))},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e5c1:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".content[data-v-72bcc38a]{color:red;font-size:32px;font-weight:700;text-align:center;margin-bottom:32px;margin-top:42px}",""]),t.exports=e},e792:function(t,e,n){"use strict";n("8366");var i=r(n("56c5"));function r(t){return t&&t.__esModule?t:{default:t}}i["default"]._babelPolyfill&&"undefined"!==typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),i["default"]._babelPolyfill=!0},e804:function(t,e,n){"use strict";var i=n("5ca1"),r=n("f1ae");i(i.S+i.F*n("79e5")((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);while(e>t)r(n,t,arguments[t++]);return n.length=e,n}})},e81d:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"},i=t.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(t){return"ល្ងាច"===t},meridiem:function(t,e,n){return t<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(t){return t.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}});return i}))},e853:function(t,e,n){var i=n("d3f4"),r=n("1169"),a=n("2b4c")("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&(e=e[a],null===e&&(e=void 0))),void 0===e?Array:e}},e8ae:function(t,e,n){var i=n("858e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("122e35a4",i,!0,{sourceMap:!1,shadowMode:!1})},e8e6:function(t,e,n){"use strict";n("172d")},e92c:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".item[data-v-13cf3391]{height:33%;min-height:220px;background-size:100% 100%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative}.item .ititle[data-v-13cf3391]{position:absolute;top:-7px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);color:#fff;font-size:14px;font-family:SourceHanSansCN-Bold,SourceHanSansCN;font-weight:700;color:#19ecff}",""]),t.exports=e},e956:function(t,e,n){"use strict";var i=n("5ca1"),r=n("c45f"),a=n("4bf8"),o=n("9def"),s=n("d8e8"),l=n("cd1c");i(i.P,"Array",{flatMap:function(t){var e,n,i=a(this);return s(t),e=o(i.length),n=l(i,0),r(n,i,i,e,0,1,t,arguments[1]),n}}),n("9c6c")("flatMap")},e9c0:function(t,e,n){"use strict";n("54b0")},eb13:function(t,e,n){"use strict";n("08e9")},ebd6:function(t,e,n){var i=n("cb7c"),r=n("d8e8"),a=n("2b4c")("species");t.exports=function(t,e){var n,o=i(t).constructor;return void 0===o||void 0==(n=i(o)[a])?e:r(n)}},ebde:function(t,e,n){var i=n("11e9"),r=n("5ca1"),a=n("cb7c");r(r.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return i.f(a(t),e)}})},ebe4:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return e}))},ec18:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t,e,n,i){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["ühe minuti","üks minut"],mm:[t+" minuti",t+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[t+" tunni",t+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[t+" kuu",t+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[t+" aasta",t+" aastat"]};return e?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}var n=t.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d päeva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},ec30:function(t,e,n){"use strict";if(n("9e1e")){var i=n("2d00"),r=n("7726"),a=n("79e5"),o=n("5ca1"),s=n("0f88"),l=n("ed0b"),u=n("9b43"),c=n("f605"),d=n("4630"),h=n("32e9"),f=n("dcbc"),p=n("4588"),g=n("9def"),m=n("09fa"),v=n("77f1"),y=n("6a99"),A=n("69a8"),b=n("23c6"),_=n("d3f4"),w=n("4bf8"),x=n("33a4"),S=n("2aeb"),C=n("38fd"),T=n("9093").f,M=n("27ee"),k=n("ca5a"),L=n("2b4c"),D=n("0a49"),E=n("c366"),B=n("ebd6"),I=n("cadf"),O=n("84f2"),P=n("5cc5"),N=n("7a56"),F=n("36bd"),U=n("ba92"),R=n("86cc"),j=n("11e9"),H=R.f,Y=j.f,z=r.RangeError,Q=r.TypeError,V=r.Uint8Array,W="ArrayBuffer",G="Shared"+W,K="BYTES_PER_ELEMENT",$="prototype",q=Array[$],X=l.ArrayBuffer,J=l.DataView,Z=D(0),tt=D(2),et=D(3),nt=D(4),it=D(5),rt=D(6),at=E(!0),ot=E(!1),st=I.values,lt=I.keys,ut=I.entries,ct=q.lastIndexOf,dt=q.reduce,ht=q.reduceRight,ft=q.join,pt=q.sort,gt=q.slice,mt=q.toString,vt=q.toLocaleString,yt=L("iterator"),At=L("toStringTag"),bt=k("typed_constructor"),_t=k("def_constructor"),wt=s.CONSTR,xt=s.TYPED,St=s.VIEW,Ct="Wrong length!",Tt=D(1,(function(t,e){return Et(B(t,t[_t]),e)})),Mt=a((function(){return 1===new V(new Uint16Array([1]).buffer)[0]})),kt=!!V&&!!V[$].set&&a((function(){new V(1).set({})})),Lt=function(t,e){var n=p(t);if(n<0||n%e)throw z("Wrong offset!");return n},Dt=function(t){if(_(t)&&xt in t)return t;throw Q(t+" is not a typed array!")},Et=function(t,e){if(!_(t)||!(bt in t))throw Q("It is not a typed array constructor!");return new t(e)},Bt=function(t,e){return It(B(t,t[_t]),e)},It=function(t,e){var n=0,i=e.length,r=Et(t,i);while(i>n)r[n]=e[n++];return r},Ot=function(t,e,n){H(t,e,{get:function(){return this._d[n]}})},Pt=function(t){var e,n,i,r,a,o,s=w(t),l=arguments.length,c=l>1?arguments[1]:void 0,d=void 0!==c,h=M(s);if(void 0!=h&&!x(h)){for(o=h.call(s),i=[],e=0;!(a=o.next()).done;e++)i.push(a.value);s=i}for(d&&l>2&&(c=u(c,arguments[2],2)),e=0,n=g(s.length),r=Et(this,n);n>e;e++)r[e]=d?c(s[e],e):s[e];return r},Nt=function(){var t=0,e=arguments.length,n=Et(this,e);while(e>t)n[t]=arguments[t++];return n},Ft=!!V&&a((function(){vt.call(new V(1))})),Ut=function(){return vt.apply(Ft?gt.call(Dt(this)):Dt(this),arguments)},Rt={copyWithin:function(t,e){return U.call(Dt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(Dt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return F.apply(Dt(this),arguments)},filter:function(t){return Bt(this,tt(Dt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return it(Dt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return rt(Dt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Z(Dt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return ot(Dt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return at(Dt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(Dt(this),arguments)},lastIndexOf:function(t){return ct.apply(Dt(this),arguments)},map:function(t){return Tt(Dt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return dt.apply(Dt(this),arguments)},reduceRight:function(t){return ht.apply(Dt(this),arguments)},reverse:function(){var t,e=this,n=Dt(e).length,i=Math.floor(n/2),r=0;while(r<i)t=e[r],e[r++]=e[--n],e[n]=t;return e},some:function(t){return et(Dt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return pt.call(Dt(this),t)},subarray:function(t,e){var n=Dt(this),i=n.length,r=v(t,i);return new(B(n,n[_t]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,g((void 0===e?i:v(e,i))-r))}},jt=function(t,e){return Bt(this,gt.call(Dt(this),t,e))},Ht=function(t){Dt(this);var e=Lt(arguments[1],1),n=this.length,i=w(t),r=g(i.length),a=0;if(r+e>n)throw z(Ct);while(a<r)this[e+a]=i[a++]},Yt={entries:function(){return ut.call(Dt(this))},keys:function(){return lt.call(Dt(this))},values:function(){return st.call(Dt(this))}},zt=function(t,e){return _(t)&&t[xt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Qt=function(t,e){return zt(t,e=y(e,!0))?d(2,t[e]):Y(t,e)},Vt=function(t,e,n){return!(zt(t,e=y(e,!0))&&_(n)&&A(n,"value"))||A(n,"get")||A(n,"set")||n.configurable||A(n,"writable")&&!n.writable||A(n,"enumerable")&&!n.enumerable?H(t,e,n):(t[e]=n.value,t)};wt||(j.f=Qt,R.f=Vt),o(o.S+o.F*!wt,"Object",{getOwnPropertyDescriptor:Qt,defineProperty:Vt}),a((function(){mt.call({})}))&&(mt=vt=function(){return ft.call(this)});var Wt=f({},Rt);f(Wt,Yt),h(Wt,yt,Yt.values),f(Wt,{slice:jt,set:Ht,constructor:function(){},toString:mt,toLocaleString:Ut}),Ot(Wt,"buffer","b"),Ot(Wt,"byteOffset","o"),Ot(Wt,"byteLength","l"),Ot(Wt,"length","e"),H(Wt,At,{get:function(){return this[xt]}}),t.exports=function(t,e,n,l){l=!!l;var u=t+(l?"Clamped":"")+"Array",d="get"+t,f="set"+t,p=r[u],v=p||{},y=p&&C(p),A=!p||!s.ABV,w={},x=p&&p[$],M=function(t,n){var i=t._d;return i.v[d](n*e+i.o,Mt)},k=function(t,n,i){var r=t._d;l&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),r.v[f](n*e+r.o,i,Mt)},L=function(t,e){H(t,e,{get:function(){return M(this,e)},set:function(t){return k(this,e,t)},enumerable:!0})};A?(p=n((function(t,n,i,r){c(t,p,u,"_d");var a,o,s,l,d=0,f=0;if(_(n)){if(!(n instanceof X||(l=b(n))==W||l==G))return xt in n?It(p,n):Pt.call(p,n);a=n,f=Lt(i,e);var v=n.byteLength;if(void 0===r){if(v%e)throw z(Ct);if(o=v-f,o<0)throw z(Ct)}else if(o=g(r)*e,o+f>v)throw z(Ct);s=o/e}else s=m(n),o=s*e,a=new X(o);h(t,"_d",{b:a,o:f,l:o,e:s,v:new J(a)});while(d<s)L(t,d++)})),x=p[$]=S(Wt),h(x,"constructor",p)):a((function(){p(1)}))&&a((function(){new p(-1)}))&&P((function(t){new p,new p(null),new p(1.5),new p(t)}),!0)||(p=n((function(t,n,i,r){var a;return c(t,p,u),_(n)?n instanceof X||(a=b(n))==W||a==G?void 0!==r?new v(n,Lt(i,e),r):void 0!==i?new v(n,Lt(i,e)):new v(n):xt in n?It(p,n):Pt.call(p,n):new v(m(n))})),Z(y!==Function.prototype?T(v).concat(T(y)):T(v),(function(t){t in p||h(p,t,v[t])})),p[$]=x,i||(x.constructor=p));var D=x[yt],E=!!D&&("values"==D.name||void 0==D.name),B=Yt.values;h(p,bt,!0),h(x,xt,u),h(x,St,!0),h(x,_t,p),(l?new p(1)[At]==u:At in x)||H(x,At,{get:function(){return u}}),w[u]=p,o(o.G+o.W+o.F*(p!=v),w),o(o.S,u,{BYTES_PER_ELEMENT:e}),o(o.S+o.F*a((function(){v.of.call(p,1)})),u,{from:Pt,of:Nt}),K in x||h(x,K,e),o(o.P,u,Rt),N(u),o(o.P+o.F*kt,u,{set:Ht}),o(o.P+o.F*!E,u,Yt),i||x.toString==mt||(x.toString=mt),o(o.P+o.F*a((function(){new p(1).slice()})),u,{slice:jt}),o(o.P+o.F*(a((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!a((function(){x.toLocaleString.call([1,2])}))),u,{toLocaleString:Ut}),O[u]=E?D:B,i||E||h(x,yt,B)}}else t.exports=function(){}},ecdd:function(t,e,n){"use strict";n("efc2")},ecf2:function(t,e,n){var i=n("63b6");i(i.G,{global:n("e53d")})},ed01:function(t,e,n){var i=n("b071");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("fec886a4",i,!0,{sourceMap:!1,shadowMode:!1})},ed0b:function(t,e,n){"use strict";var i=n("7726"),r=n("9e1e"),a=n("2d00"),o=n("0f88"),s=n("32e9"),l=n("dcbc"),u=n("79e5"),c=n("f605"),d=n("4588"),h=n("9def"),f=n("09fa"),p=n("9093").f,g=n("86cc").f,m=n("36bd"),v=n("7f20"),y="ArrayBuffer",A="DataView",b="prototype",_="Wrong length!",w="Wrong index!",x=i[y],S=i[A],C=i.Math,T=i.RangeError,M=i.Infinity,k=x,L=C.abs,D=C.pow,E=C.floor,B=C.log,I=C.LN2,O="buffer",P="byteLength",N="byteOffset",F=r?"_b":O,U=r?"_l":P,R=r?"_o":N;function j(t,e,n){var i,r,a,o=new Array(n),s=8*n-e-1,l=(1<<s)-1,u=l>>1,c=23===e?D(2,-24)-D(2,-77):0,d=0,h=t<0||0===t&&1/t<0?1:0;for(t=L(t),t!=t||t===M?(r=t!=t?1:0,i=l):(i=E(B(t)/I),t*(a=D(2,-i))<1&&(i--,a*=2),t+=i+u>=1?c/a:c*D(2,1-u),t*a>=2&&(i++,a/=2),i+u>=l?(r=0,i=l):i+u>=1?(r=(t*a-1)*D(2,e),i+=u):(r=t*D(2,u-1)*D(2,e),i=0));e>=8;o[d++]=255&r,r/=256,e-=8);for(i=i<<e|r,s+=e;s>0;o[d++]=255&i,i/=256,s-=8);return o[--d]|=128*h,o}function H(t,e,n){var i,r=8*n-e-1,a=(1<<r)-1,o=a>>1,s=r-7,l=n-1,u=t[l--],c=127&u;for(u>>=7;s>0;c=256*c+t[l],l--,s-=8);for(i=c&(1<<-s)-1,c>>=-s,s+=e;s>0;i=256*i+t[l],l--,s-=8);if(0===c)c=1-o;else{if(c===a)return i?NaN:u?-M:M;i+=D(2,e),c-=o}return(u?-1:1)*i*D(2,c-e)}function Y(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function z(t){return[255&t]}function Q(t){return[255&t,t>>8&255]}function V(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function W(t){return j(t,52,8)}function G(t){return j(t,23,4)}function K(t,e,n){g(t[b],e,{get:function(){return this[n]}})}function $(t,e,n,i){var r=+n,a=f(r);if(a+e>t[U])throw T(w);var o=t[F]._b,s=a+t[R],l=o.slice(s,s+e);return i?l:l.reverse()}function q(t,e,n,i,r,a){var o=+n,s=f(o);if(s+e>t[U])throw T(w);for(var l=t[F]._b,u=s+t[R],c=i(+r),d=0;d<e;d++)l[u+d]=c[a?d:e-d-1]}if(o.ABV){if(!u((function(){x(1)}))||!u((function(){new x(-1)}))||u((function(){return new x,new x(1.5),new x(NaN),x.name!=y}))){x=function(t){return c(this,x),new k(f(t))};for(var X,J=x[b]=k[b],Z=p(k),tt=0;Z.length>tt;)(X=Z[tt++])in x||s(x,X,k[X]);a||(J.constructor=x)}var et=new S(new x(2)),nt=S[b].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||l(S[b],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else x=function(t){c(this,x,y);var e=f(t);this._b=m.call(new Array(e),0),this[U]=e},S=function(t,e,n){c(this,S,A),c(t,x,A);var i=t[U],r=d(e);if(r<0||r>i)throw T("Wrong offset!");if(n=void 0===n?i-r:h(n),r+n>i)throw T(_);this[F]=t,this[R]=r,this[U]=n},r&&(K(x,P,"_l"),K(S,O,"_b"),K(S,P,"_l"),K(S,N,"_o")),l(S[b],{getInt8:function(t){return $(this,1,t)[0]<<24>>24},getUint8:function(t){return $(this,1,t)[0]},getInt16:function(t){var e=$(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=$(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return Y($(this,4,t,arguments[1]))},getUint32:function(t){return Y($(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return H($(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return H($(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){q(this,1,t,z,e)},setUint8:function(t,e){q(this,1,t,z,e)},setInt16:function(t,e){q(this,2,t,Q,e,arguments[2])},setUint16:function(t,e){q(this,2,t,Q,e,arguments[2])},setInt32:function(t,e){q(this,4,t,V,e,arguments[2])},setUint32:function(t,e){q(this,4,t,V,e,arguments[2])},setFloat32:function(t,e){q(this,4,t,G,e,arguments[2])},setFloat64:function(t,e){q(this,8,t,W,e,arguments[2])}});v(x,y),v(S,A),s(S[b],o.VIEW,!0),e[y]=x,e[A]=S},ed50:function(t,e,n){"use strict";var i=n("5ca1"),r=n("2e08"),a=n("a25f"),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);i(i.P+i.F*o,"String",{padEnd:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},ed58:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wflow-container"},[e("SidebarLogo",{staticStyle:{background:"#fff"}},[e("div",{staticClass:"top_title"},[t._l(t.logoTitle,(function(n,i){return[e("span",{key:i,class:{main_head:0===i,sub_head:i>0,main_head_slicer:t.logoTitle.length>1}},[t._v(" "+t._s(n)+" "),i>0&&t.logoTitle.length-1>i?e("i",{staticClass:"el-icon-d-arrow-right"}):t._e(),0==i?e("svg",t._g({staticClass:"svg-icon",staticStyle:{height:"10px",width:"16px"},attrs:{"aria-hidden":"true"}},t.$listeners),[e("use",{attrs:{"xlink:href":"#icon-doublearrow"}})]):t._e()])]}))],2)]),e("div",{staticClass:"content"},[e("div",{staticClass:"name"},[t._v(t._s(t.name))]),e("div",{staticStyle:{margin:"30px 0"}},[e("el-skeleton")],1),e("div",{staticStyle:{"text-align":"center","font-size":"16px","margin-top":"20px"}},[t._v("正在建设中,敬请稍候。。。")])])],1)},r=[],a=n("b8fb"),o=a.title,s={data:function(){return{logoTitle:[],name:"文章详情"}},mounted:function(){this.$route.query.name&&(this.name=this.$route.query.name),this.logoTitle=[o,this.name]},methods:{}},l=s,u=(n("51f8"),n("2877")),c=Object(u["a"])(l,i,r,!1,null,"6ad4aa7f",null);e["a"]=c.exports},ed6d:function(t,e,n){var i=n("4a4b");function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},eda5:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(t){return t+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(t){return"ප.ව."===t||"පස් වරු"===t},meridiem:function(t,e,n){return t>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}});return e}))},ee03:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",[e("section",{staticClass:"wh_container"},[e("div",{staticClass:"wh_content_all"},[t.isSwitchover?t._e():e("div",{staticClass:"wh_top_title"},[e("div",{staticStyle:{width:"40%"},on:{click:function(e){return t.selectMonthClick(t.nowYear,t.nowMonth)}}},[t._v(t._s(t.dateTop))]),e("div",{staticStyle:{width:"60%","text-align":"right"}},[t._t("right")],2)]),t.isSwitchover?e("div",{staticClass:"wh_top_changge"},[e("li",{staticClass:"wh_content_li",on:{click:function(e){return t.selectMonthClick(t.nowYear,t.nowMonth)}}},[t._v(t._s(t.dateTop))]),e("div",[e("li",{staticStyle:{padding:"10px 10px 10px 14px",background:"#f5f5f5","margin-right":"10px"},on:{click:function(e){return t.PreMonth(t.myDate,!1)}}},[e("div",{staticClass:"wh_jiantou1"})]),e("li",{staticStyle:{padding:"10px 14px 10px 10px",background:"#f5f5f5"},on:{click:function(e){return t.NextMonth(t.myDate,!1)}}},[e("div",{staticClass:"wh_jiantou2"})])])]):t._e(),e("div",{staticClass:"wh_content"},t._l(t.textTop,(function(n,i){return e("div",{key:i,staticClass:"wh_content_item"},[e("div",{staticClass:"wh_top_tag"},[t._v(t._s(n))])])})),0),"month"===t.userType?e("div",{staticClass:"clendar_inner"},[e("div",{staticClass:"wh_content wh_content-day"},t._l(t.list.nowMonth,(function(n,i){return e("div",{key:i,staticClass:"wh_content_item",class:t.errorDay[n.id]&&t.errorDay[n.id].month===n.date?0===t.errorDay[n.id].flag?"succFlag":"errorFlag":"",on:{click:function(e){return t.clickDay(n,i)}}},[e("div",{staticClass:"wh_item_date",class:[{wh_isMark:n.isMark},{wh_want_dayhide:n.dayHide},{wh_isToday:n.isToday&&!t.choseOtherDay},{wh_chose_day:n.chooseDay},t.setClass(n)]},[t._v(t._s(n.id))])])})),0)]):t._e()])])])},r=[];function a(t){return u(t)||l(t)||s(t)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){if(t){if("string"===typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function l(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function u(t){if(Array.isArray(t))return c(t)}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var d={getDaysInOneMonth:function(t){var e=t.getFullYear(),n=t.getMonth()+1,i=new Date(e,n,0);return i.getDate()},getMonthweek:function(t){var e=t.getFullYear(),n=t.getMonth()+1,i=new Date(e+"/"+n+"/1");return this.sundayStart?0===i.getDay()?7:i.getDay():0===i.getDay()?6:i.getDay()-1},getOtherMonth:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nextMonth",i=this.dateFormat(t).split("/"),r=i[0],a=i[1],o=i[2],s=r;"nextMonth"===n?(e=parseInt(a)+1,13===e&&(s=parseInt(s)+1,e=1)):(e=parseInt(a)-1,0===e&&(s=parseInt(s)-1,e=12));var l=o,u=new Date(s,e,0).getDate();l>u&&(l=u),e<10&&(e="0"+e),l<10&&(l="0"+l);var c=s+"/"+e+"/"+l;return new Date(c)},getOtherWeek:function(t,e){var n=new Date(t);return"preWeek"===e?new Date(new Date(n).getTime()-6048e5):new Date(new Date(n).getTime()+6048e5)},getLeftArr:function(t){for(var e=[],n=this.getMonthweek(t),i=this.getDaysInOneMonth(this.getOtherMonth(t,"preMonth"))-n+1,r=this.getOtherMonth(t,"preMonth"),a=0;a<n;a++){var o=r.getFullYear()+"/"+(r.getMonth()+1)+"/"+(i+a);e.push({id:i+a,date:o,isToday:!1,otherMonth:"preMonth"})}return e},getRightArr:function(t){for(var e=[],n=this.getOtherMonth(t,"nextMonth"),i=this.getDaysInOneMonth(t)+this.getMonthweek(t),r=7-i%7,a=0;a<r;a++){var o=n.getFullYear()+"/"+(n.getMonth()+1)+"/"+(a+1);e.push({id:a+1,date:o,isToday:!1,otherMonth:"nextMonth"})}return e},dateFormat:function(t){return t="string"===typeof t?new Date(t.replace(/\-/g,"/")):t,t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate()},getMonthListNoOther:function(t){for(var e=[],n=this.getDaysInOneMonth(t),i=t.getFullYear(),r=t.getMonth()+1,a=this.dateFormat(new Date),o=0;o<n;o++){var s=i+"/"+r+"/"+(o+1);e.push({id:o+1,date:s,isToday:a===s,otherMonth:"nowMonth"})}return e},getMonthList:function(t){var e=new Date(t.getFullYear(),t.getMonth()-1),n=new Date(t.getFullYear(),t.getMonth()+1),i={};return i.lastMonth=[].concat(a(this.getLeftArr(e)),a(this.getMonthListNoOther(e)),a(this.getRightArr(e))),i.nowMonth=[].concat(a(this.getLeftArr(t)),a(this.getMonthListNoOther(t)),a(this.getRightArr(t))),i.nextMonth=[].concat(a(this.getLeftArr(n)),a(this.getMonthListNoOther(n)),a(this.getRightArr(n))),i},createClendar:function(t,e,i){for(var r=new Date(e),a=n("c1df"),o=new Date,s=[],l=0;l<7;l++){var u=new Date(t.getTime()+24*l*60*60*1e3),c=null;c=u.getFullYear()===r.getFullYear()?u.getMonth()===r.getMonth()?"nowMonth":u.getMonth()<r.getMonth()?"preMonth":"nextMonth":u.getFullYear()<r.getFullYear()?"preMonth":"nextMonth",s.push({id:u.getDate(),date:a(u).format(i?"YYYY/MM/DD":"YYYY/M/D"),isToday:a(u).format(i?"YYYY/MM/DD":"YYYY/M/D")===a(o).format(i?"YYYY/MM/DD":"YYYY/M/D"),otherMonth:c})}return s},getNowWeek:function(t,e){var n=t.getDay(),i=null,r=null,a=null;return this.sundayStart?(i=new Date(new Date(t).getTime()-24*n*60*60*1e3),r=new Date(new Date(i).getTime()-6048e5),a=new Date(new Date(i).getTime()+6048e5)):(i=new Date(new Date(t).getTime()-24*(0===n?6:n-1)*60*60*1e3),r=new Date(new Date(i).getTime()-6048e5),a=new Date(new Date(i).getTime()+6048e5)),{lastWeek:this.createClendar(r,t,e),nowWeek:this.createClendar(i,t,e),nextWeek:this.createClendar(a,t,e)}},getYearlist:function(t){for(var e=[],n=Number(t.toString().substr(0,3)+0),i=0;i<10;i++)e.push(n++);return e},getLeftAfteryear:function(t){for(var e=[],n=t-20;n<=t;n++)e.push(n);return e},getWeeklist:function(t,e){for(var n=new Date(t,e-1),i=n.getDay(),r=n.getTime()-24*(0===i?6:i-1)*60*60*1e3,a=r+5184e5,o=new Date(new Date(t,e).setDate(0)).getDate(),s=n.getTime()+24*(o-1)*60*60*1e3,l=new Date(s).getDay(),u=s+24*(7-(0===l?7:l))*60*60*1e3,c=(u-r+864e5)/1e3/60/60/24/7,d=[],h=0;h<c;h++)0!==h&&(r+=6048e5,a+=6048e5),d.push({start:new Date(r),end:new Date(a),num:h+1,month:e});return d},sundayStart:!1};function h(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=g(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function f(t,e){return y(t)||v(t,e)||g(t,e)||p()}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(t,e){if(t){if("string"===typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function v(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw r}}return s}}function y(t){if(Array.isArray(t))return t}var A=n("c1df"),b={props:{markDate:{type:Array,default:function(){return""}},markDateMore:{type:Array,default:function(){return[]}},textTop:{type:Array,default:function(){return["日","一","二","三","四","五","六"]}},sundayStart:{type:Boolean,default:!0},agoDayHide:{type:String,default:"0"},futureDayHide:{type:String,default:"2554387200"},getDayDetails:{type:Function,default:function(){return null}},errorDay:{type:Array,default:function(){return[]}},changeDate:{type:Function,default:function(){return null}},isSwitchover:{type:Boolean,default:!0},defaultType:{type:String,default:"month"}},data:function(){return{montype:"",myDate:[],list:{},historyChose:[],dateTop:"",choseOtherDay:!1,dialogVisible:!1,vueMoves:!1,vueLeave:!1,longTouch:!1,vueTouches:{},updateDate:!1,dialogTitle:"",allMonth:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],options:[],isFirst:!0,selectMonth:"",selectYear:"",selectType:"month",userType:""}},watch:{markDate:{handler:function(t,e){this.getList(this.myDate)},deep:!0},markDateMore:{handler:function(t,e){this.getList(this.myDate)},deep:!0},agoDayHide:{handler:function(t,e){this.getList(this.myDate)},deep:!0},futureDayHide:{handler:function(t,e){this.getList(this.myDate)},deep:!0},sundayStart:{handler:function(t,e){this.intStart(),this.getList(this.myDate)},deep:!0}},created:function(){var t=new Date;this.myDate=t,this.nowMonth=t.getMonth()+1,this.nowYear=t.getFullYear(),this.currerYear=t.getFullYear(),this.intStart()},mounted:function(){this.userType="month",console.log(this.userType),this.getList(this.myDate)},methods:{intStart:function(){d.sundayStart=this.sundayStart},setClass:function(t){var e={};return e[t.markClassName]=t.markClassName,e},clickDay:function(t,e){if(null!==this.getDayDetails&&this.getDayDetails(t,e),this.$emit("getDayDetails",t,e),"month"===this.userType)"nowMonth"!==t.otherMonth||t.dayHide||this.getList(this.myDate,t.date,!1,this.userType),"nowMonth"!==t.otherMonth&&("preMonth"===t.otherMonth?this.PreMonth(t.date,!0):this.NextMonth(t.date,!0));else{var n=new Date(t.date);this.getList(n,t.date,!0,this.userType)}},selectMonthClick:function(t,e){this.dialogTitle=t+"年",this.options=this.allMonth,this.selectMonth=e,this.selectYear=t,this.dialogVisible=!0},selectYearClick:function(t){this.selectType="year",this.options=d.getYearlist(t),this.dialogTitle=this.options[0]+"年 - "+this.options[9]+"年"},choose:function(t,e){"month"===this.selectType?(this.selectMonth=t+1,this.myDate=new Date(this.selectYear,t,1),this.nowMonth=this.selectMonth,this.nowYear=this.selectYear,this.getList(this.myDate),this.dialogVisible=!1):"year"===this.selectType&&(this.selectYear=e,e===(new Date).getFullYear()&&(this.selectMonth=(new Date).getMonth()+1),this.dialogTitle=e+"年",this.selectType="month",this.options=this.allMonth)},PreMonth:function(t,e){this.montype="last","string"===typeof t&&(t=new Date(t)),1970===t.getFullYear()&&t.getMonth()+1===1||(t=d.dateFormat(t),this.myDate="month"===this.userType?d.getOtherMonth(this.myDate,"preMonth"):d.getOtherWeek(this.myDate,"preWeek"),this.nowMonth=this.myDate.getMonth()+1,this.nowYear=this.myDate.getFullYear(),this.isFirst=!0,e?this.getList(this.myDate,t,e):this.getList(this.myDate),this.$emit("getmonth",this.myDate),console.log(22222,this.myDate))},NextMonth:function(t,e){this.montype="next","string"===typeof t&&(t=new Date(t)),t.getFullYear()===(new Date).getFullYear()+19&&t.getMonth()+1===12||(t=d.dateFormat(t),this.myDate="month"===this.userType?d.getOtherMonth(this.myDate,"nextMonth"):d.getOtherWeek(this.myDate,"nextWeek"),this.nowMonth=this.myDate.getMonth()+1,this.nowYear=this.myDate.getFullYear(),this.isFirst=!0,e?this.getList(this.myDate,t,e):this.getList(this.myDate),this.$emit("getmonth",this.myDate),console.log(11111,this.myDate))},forMatArgs:function(){var t=this.markDate,e=this.markDateMore;return e=e.map((function(t){return t.date=d.dateFormat(t.date),t})),[t,e]},getList:function(t,e){var n=this,i=this.forMatArgs(),r=f(i,2),a=r[0],o=r[1];this.dateTop="".concat(t.getFullYear(),"年").concat(t.getMonth()+1,"月");var s="".concat(t.getFullYear(),"/").concat(t.getMonth()+1,"/1");this.$emit("dataChuang",s);var l=null;for(var u in l="month"===this.userType?d.getMonthList(this.myDate):d.getNowWeek(this.myDate,!1),this.isFirst&&(this.isFirst=!1,console.log(77777,l),this.$emit("setWeek",l.monthlist)),l)for(var c=l[u],p=0;p<c.length;p++){var g="",m=c[p];m.chooseDay=!1;var v,y=m.date,b=new Date(y).getTime()/1e3,_=h(o);try{for(_.s();!(v=_.n()).done;){var w=v.value;w.date===y&&(g=w.className||"")}}catch(k){_.e(k)}finally{_.f()}m.markClassName=g;var x=a.split(",");m.isMark=!1;for(var S=0;S<x.length;S++){var C=A(new Date(x[S])).format("YYYY-MM-DD"),T=A(new Date(y)).format("YYYY-MM-DD");C===T&&(m.isMark=!0)}m.dayHide=b<this.agoDayHide||b>this.futureDayHide,m.isToday&&this.$emit("isToday",y);var M=!m.dayHide&&"nowMonth"===m.otherMonth||"week"===this.userType;e&&e===y&&M?(this.$emit("choseDay",y),this.historyChose.push(y),m.chooseDay=!0,m.isToday?this.choseOtherDay=!1:this.choseOtherDay=!0):this.historyChose[this.historyChose.length-1]===y&&!e&&M&&(m.chooseDay=!0,m.isToday?this.choseOtherDay=!1:this.choseOtherDay=!0)}this.list=l,this.$nextTick((function(){n.updateDate=!0}))}}},_=b,w=(n("476d"),n("838d"),n("2877")),x=Object(w["a"])(_,i,r,!1,null,"b50f2cd2",null);e["a"]=x.exports},ee1d:function(t,e,n){var i=n("5ca1");i(i.S,"Number",{isNaN:function(t){return t!=t}})},ee1e:function(t,e,n){var i=n("e010");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("29180de8",i,!0,{sourceMap:!1,shadowMode:!1})},ee5e:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@media screen and (min-width:460px){.wh_item_date[data-v-b50f2cd2]:hover{background:#1989fa;border-radius:4px;color:#fff;cursor:pointer}.wh_item_date[data-v-b50f2cd2]:hover:after{background:#fff!important}}*[data-v-b50f2cd2]{margin:0;padding:0}.wh_container[data-v-b50f2cd2]{position:relative;width:100%;margin:auto}li[data-v-b50f2cd2]{list-style-type:none}.wh_top_changge[data-v-b50f2cd2]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:15px}.wh_top_changge[data-v-b50f2cd2],.wh_top_changge div[data-v-b50f2cd2],.wh_top_changge li[data-v-b50f2cd2]{display:-webkit-box;display:-ms-flexbox;display:flex}.wh_top_changge li[data-v-b50f2cd2]{cursor:pointer;color:#323233;font-size:16px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#f5f5f5}.wh_top_changge .wh_content_li[data-v-b50f2cd2]{cursor:auto;background:#fff}.wh_top_title[data-v-b50f2cd2]{position:relative;font-size:16px;padding-left:30px;line-height:55px;background:#fff;display:-webkit-box;display:-ms-flexbox;display:flex}.wh_top_title[data-v-b50f2cd2]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.wh_content_all[data-v-b50f2cd2]{font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Helvetica Neue,STHeiti,Microsoft Yahei,Tahoma,Simsun,sans-serif;background:#fff;width:100%;overflow:hidden;padding-bottom:8px}.wh_content[data-v-b50f2cd2]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around;padding:0 3% 0 3%;width:100%}.wh_content:first-child .wh_content_item[data-v-b50f2cd2],.wh_content:first-child .wh_content_item_tag[data-v-b50f2cd2]{font-size:14px}.wh_content_item[data-v-b50f2cd2],.wh_content_item_tag[data-v-b50f2cd2]{font-size:14px;width:13.4%;text-align:center;color:#323233;position:relative}.wh_content_item[data-v-b50f2cd2]{height:40px}.wh_top_tag[data-v-b50f2cd2]{color:#999}.wh_item_date[data-v-b50f2cd2],.wh_top_tag[data-v-b50f2cd2]{width:40px;height:40px;line-height:40px;margin:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wh_jiantou1[data-v-b50f2cd2]{width:8px;height:8px;border-top:2px solid #323233;border-left:2px solid #323233;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:.6}.wh_jiantou1[data-v-b50f2cd2]:active,.wh_jiantou2[data-v-b50f2cd2]:active{border-color:#323233}.wh_jiantou2[data-v-b50f2cd2]{width:8px;height:8px;border-top:2px solid #323233;border-right:2px solid #323233;-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:.6}.wh_content_item>.wh_isMark[data-v-b50f2cd2]{margin:auto;z-index:2;position:relative}.wh_content_item>.wh_isMark[data-v-b50f2cd2]:after{content:"";position:absolute;width:6px;height:6px;border-radius:50%;background:red;left:calc(50% - 3px);bottom:4px}.wh_content_item .wh_other_dayhide[data-v-b50f2cd2],.wh_content_item .wh_want_dayhide[data-v-b50f2cd2]{color:#bfbfbf}.wh_content_item .wh_chose_day[data-v-b50f2cd2]{background:#1989fa;border-radius:4px;color:#fff}.wh_content_item .wh_chose_day[data-v-b50f2cd2]:after{background:#fff}.wh_content_item .wh_isToday[data-v-b50f2cd2]{background:var(--subjectColor);border-radius:4px;color:#fff}.wh_content_item .wh_choseOtherDay[data-v-b50f2cd2]{background:#d1d1d1;border-radius:4px;color:#000}.succFlag[data-v-b50f2cd2]{position:relative}.succFlag[data-v-b50f2cd2]:after{content:"";position:absolute;bottom:2px;background:#1989fa;width:7px;left:46%;height:7px;border-radius:100px}.errorFlag[data-v-b50f2cd2]{position:relative}.errorFlag[data-v-b50f2cd2]:after{content:"";position:absolute;bottom:2px;background:#ee0a24;width:7px;left:46%;height:7px;border-radius:100px}',""]),t.exports=e},ee98:function(t,e,n){var i=n("baef");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("01843631",i,!0,{sourceMap:!1,shadowMode:!1})},ef34:function(t,e,n){(function(e){var i,r="undefined"!==typeof e?e:"undefined"!==typeof window?window:{},a=n(0);"undefined"!==typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"],i||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=a)),t.exports=i}).call(this,n("c8ba"))},ef8d:function(t,e,n){"use strict";n.r(e),e["default"]={pinyin:{a:"啊阿锕",ai:"埃挨哎唉哀皑癌蔼矮艾碍爱隘诶捱嗳嗌嫒瑷暧砹锿霭",an:"鞍氨安俺按暗岸胺案谙埯揞犴庵桉铵鹌顸黯",ang:"肮昂盎",ao:"凹敖熬翱袄傲奥懊澳坳拗嗷噢岙廒遨媪骜聱螯鏊鳌鏖",ba:"芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸茇菝萆捭岜灞杷钯粑鲅魃",bai:"白柏百摆佰败拜稗薜掰鞴",ban:"斑班搬扳般颁板版扮拌伴瓣半办绊阪坂豳钣瘢癍舨",bang:"邦帮梆榜膀绑棒磅蚌镑傍谤蒡螃",bao:"苞胞包褒雹保堡饱宝抱报暴豹鲍爆勹葆宀孢煲鸨褓趵龅",bo:"剥薄玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳亳蕃啵饽檗擘礴钹鹁簸跛",bei:"杯碑悲卑北辈背贝钡倍狈备惫焙被孛陂邶埤蓓呗怫悖碚鹎褙鐾",ben:"奔苯本笨畚坌锛",beng:"崩绷甭泵蹦迸唪嘣甏",bi:"逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛匕仳俾芘荜荸吡哔狴庳愎滗濞弼妣婢嬖璧贲畀铋秕裨筚箅篦舭襞跸髀",bian:"鞭边编贬扁便变卞辨辩辫遍匾弁苄忭汴缏煸砭碥稹窆蝙笾鳊",biao:"标彪膘表婊骠飑飙飚灬镖镳瘭裱鳔",bie:"鳖憋别瘪蹩鳘",bin:"彬斌濒滨宾摈傧浜缤玢殡膑镔髌鬓",bing:"兵冰柄丙秉饼炳病并禀邴摒绠枋槟燹",bu:"捕卜哺补埠不布步簿部怖拊卟逋瓿晡钚醭",ca:"擦嚓礤",cai:"猜裁材才财睬踩采彩菜蔡",can:"餐参蚕残惭惨灿骖璨粲黪",cang:"苍舱仓沧藏伧",cao:"操糙槽曹草艹嘈漕螬艚",ce:"厕策侧册测刂帻恻",ceng:"层蹭噌",cha:"插叉茬茶查碴搽察岔差诧猹馇汊姹杈楂槎檫钗锸镲衩",chai:"拆柴豺侪茈瘥虿龇",chan:"搀掺蝉馋谗缠铲产阐颤冁谄谶蒇廛忏潺澶孱羼婵嬗骣觇禅镡裣蟾躔",chang:"昌猖场尝常长偿肠厂敞畅唱倡伥鬯苌菖徜怅惝阊娼嫦昶氅鲳",chao:"超抄钞朝嘲潮巢吵炒怊绉晁耖",che:"车扯撤掣彻澈坼屮砗",chen:"郴臣辰尘晨忱沉陈趁衬称谌抻嗔宸琛榇肜胂碜龀",cheng:"撑城橙成呈乘程惩澄诚承逞骋秤埕嵊徵浈枨柽樘晟塍瞠铖裎蛏酲",chi:"吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽傺墀芪茌搋叱哧啻嗤彳饬沲媸敕胝眙眵鸱瘛褫蚩螭笞篪豉踅踟魑",chong:"充冲虫崇宠茺忡憧铳艟",chou:"抽酬畴踌稠愁筹仇绸瞅丑俦圳帱惆溴妯瘳雠鲋",chu:"臭初出橱厨躇锄雏滁除楚础储矗搐触处亍刍憷绌杵楮樗蜍蹰黜",chuan:"揣川穿椽传船喘串掾舛惴遄巛氚钏镩舡",chuang:"疮窗幢床闯创怆",chui:"吹炊捶锤垂陲棰槌",chun:"春椿醇唇淳纯蠢促莼沌肫朐鹑蝽",chuo:"戳绰蔟辶辍镞踔龊",ci:"疵茨磁雌辞慈瓷词此刺赐次荠呲嵯鹚螅糍趑",cong:"聪葱囱匆从丛偬苁淙骢琮璁枞",cu:"凑粗醋簇猝殂蹙",cuan:"蹿篡窜汆撺昕爨",cui:"摧崔催脆瘁粹淬翠萃悴璀榱隹",cun:"村存寸磋忖皴",cuo:"撮搓措挫错厝脞锉矬痤鹾蹉躜",da:"搭达答瘩打大耷哒嗒怛妲疸褡笪靼鞑",dai:"呆歹傣戴带殆代贷袋待逮怠埭甙呔岱迨逯骀绐玳黛",dan:"耽担丹单郸掸胆旦氮但惮淡诞弹蛋亻儋卩萏啖澹檐殚赕眈瘅聃箪",dang:"当挡党荡档谠凼菪宕砀铛裆",dao:"刀捣蹈倒岛祷导到稻悼道盗叨啁忉洮氘焘忑纛",de:"德得的锝",deng:"蹬灯登等瞪凳邓噔嶝戥磴镫簦",di:"堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔氐籴诋谛邸坻莜荻嘀娣柢棣觌砥碲睇镝羝骶",dian:"颠掂滇碘点典靛垫电佃甸店惦奠淀殿丶阽坫埝巅玷癜癫簟踮",diao:"碉叼雕凋刁掉吊钓调轺铞蜩粜貂",die:"跌爹碟蝶迭谍叠佚垤堞揲喋渫轶牒瓞褶耋蹀鲽鳎",ding:"丁盯叮钉顶鼎锭定订丢仃啶玎腚碇町铤疔耵酊",dong:"东冬董懂动栋侗恫冻洞垌咚岽峒夂氡胨胴硐鸫",dou:"兜抖斗陡豆逗痘蔸钭窦窬蚪篼酡",du:"都督毒犊独读堵睹赌杜镀肚度渡妒芏嘟渎椟橐牍蠹笃髑黩",duan:"端短锻段断缎彖椴煅簖",dui:"堆兑队对怼憝碓",dun:"墩吨蹲敦顿囤钝盾遁炖砘礅盹镦趸",duo:"掇哆多夺垛躲朵跺舵剁惰堕咄哚缍柁铎裰踱",e:"蛾峨鹅俄额讹娥恶厄扼遏鄂饿噩谔垩垭苊莪萼呃愕屙婀轭曷腭硪锇锷鹗颚鳄",en:"恩蒽摁唔嗯",er:"而儿耳尔饵洱二贰迩珥铒鸸鲕",fa:"发罚筏伐乏阀法珐垡砝",fan:"藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛蘩幡犭梵攵燔畈蹯",fang:"坊芳方肪房防妨仿访纺放匚邡彷钫舫鲂",fei:"菲非啡飞肥匪诽吠肺废沸费芾狒悱淝妃绋绯榧腓斐扉祓砩镄痱蜚篚翡霏鲱",fen:"芬酚吩氛分纷坟焚汾粉奋份忿愤粪偾瀵棼愍鲼鼢",feng:"丰封枫蜂峰锋风疯烽逢冯缝讽奉凤俸酆葑沣砜",fu:"佛否夫敷肤孵扶拂辐幅氟符伏俘服浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐匐凫郛芙苻茯莩菔呋幞滏艴孚驸绂桴赙黻黼罘稃馥虍蚨蜉蝠蝮麸趺跗鳆",ga:"噶嘎蛤尬呷尕尜旮钆",gai:"该改概钙盖溉丐陔垓戤赅胲",gan:"干甘杆柑竿肝赶感秆敢赣坩苷尴擀泔淦澉绀橄旰矸疳酐",gang:"冈刚钢缸肛纲岗港戆罡颃筻",gong:"杠工攻功恭龚供躬公宫弓巩汞拱贡共蕻廾咣珙肱蚣蛩觥",gao:"篙皋高膏羔糕搞镐稿告睾诰郜蒿藁缟槔槁杲锆",ge:"哥歌搁戈鸽胳疙割革葛格阁隔铬个各鬲仡哿塥嗝纥搿膈硌铪镉袼颌虼舸骼髂",gei:"给",gen:"根跟亘茛哏艮",geng:"耕更庚羹埂耿梗哽赓鲠",gou:"钩勾沟苟狗垢构购够佝诟岣遘媾缑觏彀鸲笱篝鞲",gu:"辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇嘏诂菰哌崮汩梏轱牯牿胍臌毂瞽罟钴锢瓠鸪鹄痼蛄酤觚鲴骰鹘",gua:"刮瓜剐寡挂褂卦诖呱栝鸹",guai:"乖拐怪哙",guan:"棺关官冠观管馆罐惯灌贯倌莞掼涫盥鹳鳏",guang:"光广逛犷桄胱疒",gui:"瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽匦刿庋宄妫桧炅晷皈簋鲑鳜",gun:"辊滚棍丨衮绲磙鲧",guo:"锅郭国果裹过馘蠃埚掴呙囗帼崞猓椁虢锞聒蜮蜾蝈",ha:"哈",hai:"骸孩海氦亥害骇咴嗨颏醢",han:"酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉邗菡撖阚瀚晗焓颔蚶鼾",hen:"夯痕很狠恨",hang:"杭航沆绗珩桁",hao:"壕嚎豪毫郝好耗号浩薅嗥嚆濠灏昊皓颢蚝",he:"呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺诃劾壑藿嗑嗬阖盍蚵翮",hei:"嘿黑",heng:"哼亨横衡恒訇蘅",hong:"轰哄烘虹鸿洪宏弘红黉讧荭薨闳泓",hou:"喉侯猴吼厚候后堠後逅瘊篌糇鲎骺",hu:"呼乎忽瑚壶葫胡蝴狐糊湖弧虎唬护互沪户冱唿囫岵猢怙惚浒滹琥槲轷觳烀煳戽扈祜鹕鹱笏醐斛",hua:"花哗华猾滑画划化话劐浍骅桦铧稞",huai:"槐徊怀淮坏还踝",huan:"欢环桓缓换患唤痪豢焕涣宦幻郇奂垸擐圜洹浣漶寰逭缳锾鲩鬟",huang:"荒慌黄磺蝗簧皇凰惶煌晃幌恍谎隍徨湟潢遑璜肓癀蟥篁鳇",hui:"灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘诙茴荟蕙哕喙隳洄彗缋珲晖恚虺蟪麾",hun:"荤昏婚魂浑混诨馄阍溷缗",huo:"豁活伙火获或惑霍货祸攉嚯夥钬锪镬耠蠖",ji:"击圾基机畸稽积箕肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪居丌乩剞佶佴脔墼芨芰萁蒺蕺掎叽咭哜唧岌嵴洎彐屐骥畿玑楫殛戟戢赍觊犄齑矶羁嵇稷瘠瘵虮笈笄暨跻跽霁鲚鲫髻麂",jia:"嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁伽郏拮岬浃迦珈戛胛恝铗镓痂蛱笳袈跏",jian:"歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件健舰剑饯渐溅涧建僭谏谫菅蒹搛囝湔蹇謇缣枧柙楗戋戬牮犍毽腱睑锏鹣裥笕箴翦趼踺鲣鞯",jiang:"僵姜将浆江疆蒋桨奖讲匠酱降茳洚绛缰犟礓耩糨豇",jiao:"蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫佼僬茭挢噍峤徼姣纟敫皎鹪蛟醮跤鲛",jie:"窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届偈讦诘喈嗟獬婕孑桀獒碣锴疖袷颉蚧羯鲒骱髫",jin:"巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸尽卺荩堇噤馑廑妗缙瑾槿赆觐钅锓衿矜",jing:"劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净刭儆阱菁獍憬泾迳弪婧肼胫腈旌",jiong:"炯窘冂迥扃",jiu:"揪究纠玖韭久灸九酒厩救旧臼舅咎就疚僦啾阄柩桕鹫赳鬏",ju:"鞠拘狙疽驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧倨讵苣苴莒掬遽屦琚枸椐榘榉橘犋飓钜锔窭裾趄醵踽龃雎鞫",juan:"捐鹃娟倦眷卷绢鄄狷涓桊蠲锩镌隽",jue:"撅攫抉掘倔爵觉决诀绝厥劂谲矍蕨噘崛獗孓珏桷橛爝镢蹶觖",jun:"均菌钧军君峻俊竣浚郡骏捃狻皲筠麇",ka:"喀咖卡佧咔胩",ke:"咯坷苛柯棵磕颗科壳咳可渴克刻客课岢恪溘骒缂珂轲氪瞌钶疴窠蝌髁",kai:"开揩楷凯慨剀垲蒈忾恺铠锎",kan:"刊堪勘坎砍看侃凵莰莶戡龛瞰",kang:"康慷糠扛抗亢炕坑伉闶钪",kao:"考拷烤靠尻栲犒铐",ken:"肯啃垦恳垠裉颀",keng:"吭忐铿",kong:"空恐孔控倥崆箜",kou:"抠口扣寇芤蔻叩眍筘",ku:"枯哭窟苦酷库裤刳堀喾绔骷",kua:"夸垮挎跨胯侉",kuai:"块筷侩快蒯郐蒉狯脍",kuan:"宽款髋",kuang:"匡筐狂框矿眶旷况诓诳邝圹夼哐纩贶",kui:"亏盔岿窥葵奎魁傀馈愧溃馗匮夔隗揆喹喟悝愦阕逵暌睽聩蝰篑臾跬",kun:"坤昆捆困悃阃琨锟醌鲲髡",kuo:"括扩廓阔蛞",la:"垃拉喇蜡腊辣啦剌摺邋旯砬瘌",lai:"莱来赖崃徕涞濑赉睐铼癞籁",lan:"蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥啉岚懔漤榄斓罱镧褴",lang:"琅榔狼廊郎朗浪莨蒗啷阆锒稂螂",lao:"捞劳牢老佬姥酪烙涝唠崂栳铑铹痨醪",le:"勒乐肋仂叻嘞泐鳓",lei:"雷镭蕾磊累儡垒擂类泪羸诔荽咧漯嫘缧檑耒酹",ling:"棱冷拎玲菱零龄铃伶羚凌灵陵岭领另令酃塄苓呤囹泠绫柃棂瓴聆蛉翎鲮",leng:"楞愣",li:"厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐痢立粒沥隶力璃哩俪俚郦坜苈莅蓠藜捩呖唳喱猁溧澧逦娌嫠骊缡珞枥栎轹戾砺詈罹锂鹂疠疬蛎蜊蠡笠篥粝醴跞雳鲡鳢黧",lian:"俩联莲连镰廉怜涟帘敛脸链恋炼练挛蔹奁潋濂娈琏楝殓臁膦裢蠊鲢",liang:"粮凉梁粱良两辆量晾亮谅墚椋踉靓魉",liao:"撩聊僚疗燎寥辽潦了撂镣廖料蓼尥嘹獠寮缭钌鹩耢",lie:"列裂烈劣猎冽埒洌趔躐鬣",lin:"琳林磷霖临邻鳞淋凛赁吝蔺嶙廪遴檩辚瞵粼躏麟",liu:"溜琉榴硫馏留刘瘤流柳六抡偻蒌泖浏遛骝绺旒熘锍镏鹨鎏",long:"龙聋咙笼窿隆垄拢陇弄垅茏泷珑栊胧砻癃",lou:"楼娄搂篓漏陋喽嵝镂瘘耧蝼髅",lu:"芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮垆摅撸噜泸渌漉璐栌橹轳辂辘氇胪镥鸬鹭簏舻鲈",lv:"驴吕铝侣旅履屡缕虑氯律率滤绿捋闾榈膂稆褛",luan:"峦孪滦卵乱栾鸾銮",lue:"掠略锊",lun:"轮伦仑沦纶论囵",luo:"萝螺罗逻锣箩骡裸落洛骆络倮荦摞猡泺椤脶镙瘰雒",ma:"妈麻玛码蚂马骂嘛吗唛犸嬷杩麽",mai:"埋买麦卖迈脉劢荬咪霾",man:"瞒馒蛮满蔓曼慢漫谩墁幔缦熳镘颟螨鳗鞔",mang:"芒茫盲忙莽邙漭朦硭蟒",meng:"氓萌蒙檬盟锰猛梦孟勐甍瞢懵礞虻蜢蠓艋艨黾",miao:"猫苗描瞄藐秒渺庙妙喵邈缈缪杪淼眇鹋蜱",mao:"茅锚毛矛铆卯茂冒帽貌贸侔袤勖茆峁瑁昴牦耄旄懋瞀蛑蝥蟊髦",me:"么",mei:"玫枚梅酶霉煤没眉媒镁每美昧寐妹媚坶莓嵋猸浼湄楣镅鹛袂魅",men:"门闷们扪玟焖懑钔",mi:"眯醚靡糜迷谜弥米秘觅泌蜜密幂芈冖谧蘼嘧猕獯汨宓弭脒敉糸縻麋",mian:"棉眠绵冕免勉娩缅面沔湎腼眄",mie:"蔑灭咩蠛篾",min:"民抿皿敏悯闽苠岷闵泯珉",ming:"明螟鸣铭名命冥茗溟暝瞑酩",miu:"谬",mo:"摸摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谟茉蓦馍嫫镆秣瘼耱蟆貊貘",mou:"谋牟某厶哞婺眸鍪",mu:"拇牡亩姆母墓暮幕募慕木目睦牧穆仫苜呒沐毪钼",na:"拿哪呐钠那娜纳内捺肭镎衲箬",nai:"氖乃奶耐奈鼐艿萘柰",nan:"南男难囊喃囡楠腩蝻赧",nao:"挠脑恼闹孬垴猱瑙硇铙蛲",ne:"淖呢讷",nei:"馁",nen:"嫩能枘恁",ni:"妮霓倪泥尼拟你匿腻逆溺伲坭猊怩滠昵旎祢慝睨铌鲵",nian:"蔫拈年碾撵捻念廿辇黏鲇鲶",niang:"娘酿",niao:"鸟尿茑嬲脲袅",nie:"捏聂孽啮镊镍涅乜陧蘖嗫肀颞臬蹑",nin:"您柠",ning:"狞凝宁拧泞佞蓥咛甯聍",niu:"牛扭钮纽狃忸妞蚴",nong:"脓浓农侬",nu:"奴努怒呶帑弩胬孥驽",nv:"女恧钕衄",nuan:"暖",nuenue:"虐",nue:"疟谑",nuo:"挪懦糯诺傩搦喏锘",ou:"哦欧鸥殴藕呕偶沤怄瓯耦",pa:"啪趴爬帕怕琶葩筢",pai:"拍排牌徘湃派俳蒎",pan:"攀潘盘磐盼畔判叛爿泮袢襻蟠蹒",pang:"乓庞旁耪胖滂逄",pao:"抛咆刨炮袍跑泡匏狍庖脬疱",pei:"呸胚培裴赔陪配佩沛掊辔帔淠旆锫醅霈",pen:"喷盆湓",peng:"砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯堋嘭怦蟛",pi:"砒霹批披劈琵毗啤脾疲皮匹痞僻屁譬丕陴邳郫圮鼙擗噼庀媲纰枇甓睥罴铍痦癖疋蚍貔",pian:"篇偏片骗谝骈犏胼褊翩蹁",piao:"飘漂瓢票剽嘌嫖缥殍瞟螵",pie:"撇瞥丿苤氕",pin:"拼频贫品聘拚姘嫔榀牝颦",ping:"乒坪苹萍平凭瓶评屏俜娉枰鲆",po:"坡泼颇婆破魄迫粕叵鄱溥珀钋钷皤笸",pou:"剖裒踣",pu:"扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑匍噗濮璞氆镤镨蹼",qi:"期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫亟亓圻芑萋葺嘁屺岐汔淇骐绮琪琦杞桤槭欹祺憩碛蛴蜞綦綮趿蹊鳍麒",qia:"掐恰洽葜",qian:"牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉佥阡芊芡荨掮岍悭慊骞搴褰缱椠肷愆钤虔箝",qiang:"枪呛腔羌墙蔷强抢嫱樯戗炝锖锵镪襁蜣羟跫跄",qiao:"橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍劁诮谯荞愀憔缲樵毳硗跷鞒",qie:"切茄且怯窃郄唼惬妾挈锲箧",qin:"钦侵亲秦琴勤芹擒禽寝沁芩蓁蕲揿吣嗪噙溱檎螓衾",qing:"青轻氢倾卿清擎晴氰情顷请庆倩苘圊檠磬蜻罄箐謦鲭黥",qiong:"琼穷邛茕穹筇銎",qiu:"秋丘邱球求囚酋泅俅氽巯艽犰湫逑遒楸赇鸠虬蚯蝤裘糗鳅鼽",qu:"趋区蛆曲躯屈驱渠取娶龋趣去诎劬蕖蘧岖衢阒璩觑氍祛磲癯蛐蠼麴瞿黢",quan:"圈颧权醛泉全痊拳犬券劝诠荃獾悛绻辁畎铨蜷筌鬈",que:"缺炔瘸却鹊榷确雀阙悫",qun:"裙群逡",ran:"然燃冉染苒髯",rang:"瓤壤攘嚷让禳穰",rao:"饶扰绕荛娆桡",ruo:"惹若弱",re:"热偌",ren:"壬仁人忍韧任认刃妊纫仞荏葚饪轫稔衽",reng:"扔仍",ri:"日",rong:"戎茸蓉荣融熔溶容绒冗嵘狨缛榕蝾",rou:"揉柔肉糅蹂鞣",ru:"茹蠕儒孺如辱乳汝入褥蓐薷嚅洳溽濡铷襦颥",ruan:"软阮朊",rui:"蕊瑞锐芮蕤睿蚋",run:"闰润",sa:"撒洒萨卅仨挲飒",sai:"腮鳃塞赛噻",san:"三叁伞散彡馓氵毵糁霰",sang:"桑嗓丧搡磉颡",sao:"搔骚扫嫂埽臊瘙鳋",se:"瑟色涩啬铩铯穑",sen:"森",seng:"僧",sha:"莎砂杀刹沙纱傻啥煞脎歃痧裟霎鲨",shai:"筛晒酾",shan:"珊苫杉山删煽衫闪陕擅赡膳善汕扇缮剡讪鄯埏芟潸姗骟膻钐疝蟮舢跚鳝",shang:"墒伤商赏晌上尚裳垧绱殇熵觞",shao:"梢捎稍烧芍勺韶少哨邵绍劭苕潲蛸笤筲艄",she:"奢赊蛇舌舍赦摄射慑涉社设厍佘猞畲麝",shen:"砷申呻伸身深娠绅神沈审婶甚肾慎渗诜谂吲哂渖椹矧蜃",sheng:"声生甥牲升绳省盛剩胜圣丞渑媵眚笙",shi:"师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试谥埘莳蓍弑唑饣轼耆贳炻礻铈铊螫舐筮豕鲥鲺",shou:"收手首守寿授售受瘦兽扌狩绶艏",shu:"蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱恕倏塾菽忄沭涑澍姝纾毹腧殳镯秫鹬",shua:"刷耍唰涮",shuai:"摔衰甩帅蟀",shuan:"栓拴闩",shuang:"霜双爽孀",shui:"谁水睡税",shun:"吮瞬顺舜恂",shuo:"说硕朔烁蒴搠嗍濯妁槊铄",si:"斯撕嘶思私司丝死肆寺嗣四伺似饲巳厮俟兕菥咝汜泗澌姒驷缌祀祠锶鸶耜蛳笥",song:"松耸怂颂送宋讼诵凇菘崧嵩忪悚淞竦",sou:"搜艘擞嗽叟嗖嗾馊溲飕瞍锼螋",su:"苏酥俗素速粟僳塑溯宿诉肃夙谡蔌嗉愫簌觫稣",suan:"酸蒜算",sui:"虽隋随绥髓碎岁穗遂隧祟蓑冫谇濉邃燧眭睢",sun:"孙损笋荪狲飧榫跣隼",suo:"梭唆缩琐索锁所唢嗦娑桫睃羧",ta:"塌他它她塔獭挞蹋踏闼溻遢榻沓",tai:"胎苔抬台泰酞太态汰邰薹肽炱钛跆鲐",tan:"坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭郯蕈昙钽锬覃",tang:"汤塘搪堂棠膛唐糖傥饧溏瑭铴镗耥螗螳羰醣",thang:"倘躺淌",theng:"趟烫",tao:"掏涛滔绦萄桃逃淘陶讨套挑鼗啕韬饕",te:"特",teng:"藤腾疼誊滕",ti:"梯剔踢锑提题蹄啼体替嚏惕涕剃屉荑悌逖绨缇鹈裼醍",tian:"天添填田甜恬舔腆掭忝阗殄畋钿蚺",tiao:"条迢眺跳佻祧铫窕龆鲦",tie:"贴铁帖萜餮",ting:"厅听烃汀廷停亭庭挺艇莛葶婷梃蜓霆",tong:"通桐酮瞳同铜彤童桶捅筒统痛佟僮仝茼嗵恸潼砼",tou:"偷投头透亠",tu:"凸秃突图徒途涂屠土吐兔堍荼菟钍酴",tuan:"湍团疃",tui:"推颓腿蜕褪退忒煺",tun:"吞屯臀饨暾豚窀",tuo:"拖托脱鸵陀驮驼椭妥拓唾乇佗坨庹沱柝砣箨舄跎鼍",wa:"挖哇蛙洼娃瓦袜佤娲腽",wai:"歪外",wan:"豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕剜芄苋菀纨绾琬脘畹蜿箢",wang:"汪王亡枉网往旺望忘妄罔尢惘辋魍",wei:"威巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫倭偎诿隈葳薇帏帷崴嵬猥猬闱沩洧涠逶娓玮韪軎炜煨熨痿艉鲔",wen:"瘟温蚊文闻纹吻稳紊问刎愠阌汶璺韫殁雯",weng:"嗡翁瓮蓊蕹",wo:"挝蜗涡窝我斡卧握沃莴幄渥杌肟龌",wu:"巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误兀仵阢邬圬芴庑怃忤浯寤迕妩骛牾焐鹉鹜蜈鋈鼯",xi:"昔熙析西硒矽晰嘻吸锡牺稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细僖兮隰郗茜葸蓰奚唏徙饩阋浠淅屣嬉玺樨曦觋欷熹禊禧钸皙穸蜥蟋舾羲粞翕醯鼷",xia:"瞎虾匣霞辖暇峡侠狭下厦夏吓掀葭嗄狎遐瑕硖瘕罅黠",xian:"锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线冼藓岘猃暹娴氙祆鹇痫蚬筅籼酰跹",xiang:"相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象芗葙饷庠骧缃蟓鲞飨",xiao:"萧硝霄削哮嚣销消宵淆晓小孝校肖啸笑效哓咻崤潇逍骁绡枭枵筱箫魈",xie:"楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑偕亵勰燮薤撷廨瀣邂绁缬榭榍歙躞",xin:"薪芯锌欣辛新忻心信衅囟馨莘歆铽鑫",xing:"星腥猩惺兴刑型形邢行醒幸杏性姓陉荇荥擤悻硎",xiong:"兄凶胸匈汹雄熊芎",xiu:"休修羞朽嗅锈秀袖绣莠岫馐庥鸺貅髹",xu:"墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续讴诩圩蓿怵洫溆顼栩煦砉盱胥糈醑",xuan:"轩喧宣悬旋玄选癣眩绚儇谖萱揎馔泫洵渲漩璇楦暄炫煊碹铉镟痃",xue:"靴薛学穴雪血噱泶鳕",xun:"勋熏循旬询寻驯巡殉汛训讯逊迅巽埙荀薰峋徇浔曛窨醺鲟",ya:"压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶伢揠吖岈迓娅琊桠氩砑睚痖",yan:"焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验厣靥赝俨偃兖讠谳郾鄢芫菸崦恹闫阏洇湮滟妍嫣琰晏胭腌焱罨筵酽魇餍鼹",yang:"殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾徉怏泱炀烊恙蛘鞅",yao:"邀腰妖瑶摇尧遥窑谣姚咬舀药要耀夭爻吆崾徭瀹幺珧杳曜肴鹞窈繇鳐",ye:"椰噎耶爷野冶也页掖业叶曳腋夜液谒邺揶馀晔烨铘",yi:"一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎刈劓佾诒圪圯埸懿苡薏弈奕挹弋呓咦咿噫峄嶷猗饴怿怡悒漪迤驿缢殪贻旖熠钇镒镱痍瘗癔翊衤蜴舣羿翳酏黟",yin:"茵荫因殷音阴姻吟银淫寅饮尹引隐印胤鄞堙茚喑狺夤氤铟瘾蚓霪龈",ying:"英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映嬴郢茔莺萦撄嘤膺滢潆瀛瑛璎楹鹦瘿颍罂",yo:"哟唷",yong:"拥佣臃痈庸雍踊蛹咏泳涌永恿勇用俑壅墉慵邕镛甬鳙饔",you:"幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼卣攸侑莸呦囿宥柚猷牖铕疣蝣鱿黝鼬",yu:"迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉浴寓裕预豫驭禺毓伛俣谀谕萸蓣揄喁圄圉嵛狳饫庾阈妪妤纡瑜昱觎腴欤於煜燠聿钰鹆瘐瘀窳蝓竽舁雩龉",yuan:"鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院塬沅媛瑗橼爰眢鸢螈鼋",yue:"曰约越跃钥岳粤月悦阅龠樾刖钺",yun:"耘云郧匀陨允运蕴酝晕韵孕郓芸狁恽纭殒昀氲",za:"匝砸杂拶咂",zai:"栽哉灾宰载再在咱崽甾",zan:"攒暂赞瓒昝簪糌趱錾",zang:"赃脏葬奘戕臧",zao:"遭糟凿藻枣早澡蚤躁噪造皂灶燥唣缫",ze:"责择则泽仄赜啧迮昃笮箦舴",zei:"贼",zen:"怎谮",zeng:"增憎曾赠缯甑罾锃",zha:"扎喳渣札轧铡闸眨栅榨咋乍炸诈揸吒咤哳怍砟痄蚱齄",zhai:"摘斋宅窄债寨砦",zhan:"瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽谵搌旃",zhang:"樟章彰漳张掌涨杖丈帐账仗胀瘴障仉鄣幛嶂獐嫜璋蟑",zhao:"招昭找沼赵照罩兆肇召爪诏棹钊笊",zhe:"遮折哲蛰辙者锗蔗这浙谪陬柘辄磔鹧褚蜇赭",zhen:"珍斟真甄砧臻贞针侦枕疹诊震振镇阵缜桢榛轸赈胗朕祯畛鸩",zheng:"蒸挣睁征狰争怔整拯正政帧症郑证诤峥钲铮筝",zhi:"芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒卮陟郅埴芷摭帙忮彘咫骘栉枳栀桎轵轾攴贽膣祉祗黹雉鸷痣蛭絷酯跖踬踯豸觯",zhong:"中盅忠钟衷终种肿重仲众冢锺螽舂舯踵",zhou:"舟周州洲诌粥轴肘帚咒皱宙昼骤啄着倜诹荮鬻纣胄碡籀舳酎鲷",zhu:"珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑住注祝驻伫侏邾苎茱洙渚潴驺杼槠橥炷铢疰瘃蚰竺箸翥躅麈",zhua:"抓",zhuai:"拽",zhuan:"专砖转撰赚篆抟啭颛",zhuang:"桩庄装妆撞壮状丬",zhui:"椎锥追赘坠缀萑骓缒",zhun:"谆准",zhuo:"捉拙卓桌琢茁酌灼浊倬诼廴蕞擢啜浞涿杓焯禚斫",zi:"兹咨资姿滋淄孜紫仔籽滓子自渍字谘嵫姊孳缁梓辎赀恣眦锱秭耔笫粢觜訾鲻髭",zong:"鬃棕踪宗综总纵腙粽",zou:"邹走奏揍鄹鲰",zu:"租足卒族祖诅阻组俎菹啐徂驵蹴",zuan:"钻纂攥缵",zui:"嘴醉最罪",zun:"尊遵撙樽鳟",zuo:"昨左佐柞做作坐座阝阼胙祚酢",cou:"薮楱辏腠",nang:"攮哝囔馕曩",o:"喔",dia:"嗲",chuai:"嘬膪踹",cen:"岑涔",diu:"铥",nou:"耨",fou:"缶",bia:"髟"},chineseToPinYin:function(t){for(var e=t.length,n="",i=new RegExp("[a-zA-Z0-9]"),r=0;r<e;r++){var a=t.substr(r,1),o=this.arraySearch(a,this.pinyin);i.test(a)?n+=a:!1!==o&&(n+=o)}n=n.replace(/ /g,"-");while(n.indexOf("--")>0)n=n.replace("--","-");return n},arraySearch:function(t,e){for(var n in this.pinyin)if(-1!==this.pinyin[n].indexOf(t))return this.ucfirst(n);return!1},ucfirst:function(t){if(t.length>0){var e=t.substr(0,1).toUpperCase(),n=t.substr(1,t.length);return e+n}},initial:function(t){for(var e=this.chineseToPinYin(t),n="",i=0;i<e.length;i++){var r=e.charAt(i);/^[A-Z]+$/.test(r)&&(n+=r)}return n},getInitialColor:function(t){var e=this.initial(t);return"A"===e||"G"===e||"M"===e||"S"===e||"Y"===e?"#759EFE":"B"===e||"H"===e||"N"===e||"T"===e||"Z"===e?"#81DDA3":"C"===e||"I"===e||"O"===e||"U"===e?"#BEDF85":"D"===e||"J"===e||"P"===e||"V"===e?"#FCB076":"E"===e||"K"===e||"Q"===e||"W"===e?"#F99780":"#FF9494"}}},efc2:function(t,e,n){var i=n("471a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("515ce22e",i,!0,{sourceMap:!1,shadowMode:!1})},efd3:function(t,e,n){var i=n("db38");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("3ab693fd",i,!0,{sourceMap:!1,shadowMode:!1})},f010:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'#TextRecognition[data-v-44edd521]{position:fixed;width:100vw;height:100vh;z-index:2000;top:0;left:0}#TextRecognition .pager[data-v-44edd521]{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;width:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}#TextRecognition .page-header[data-v-44edd521]{width:100%;padding:14px 20px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;border-bottom:1px solid #e6e6e6;background:#fff}#TextRecognition .page-header[data-v-44edd521],#TextRecognition .page-header-left[data-v-44edd521],#TextRecognition .page-header-right[data-v-44edd521]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}#TextRecognition .page-container[data-v-44edd521]{height:100%;-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden}#TextRecognition .page-container .left-content[data-v-44edd521]{position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1;height:100%;text-align:center;min-height:300px;background:#525659;padding:20px 150px}#TextRecognition .page-container .right-content[data-v-44edd521]{width:500px;height:100%;background:#fff;border-left:1px solid #e6e6e6}#TextRecognition .page-container .right-content[data-v-44edd521],#TextRecognition .page-container .right-content-header[data-v-44edd521]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}#TextRecognition .page-container .right-content-header[data-v-44edd521]{margin:0 10px;border-top:1px solid #e8e8e8;border-bottom:1px solid #e8e8e8;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:10px 0;font-size:14px}#TextRecognition .page-container .right-content-text[data-v-44edd521]{padding:10px;white-space:pre-wrap;overflow:auto;-webkit-box-flex:1;-ms-flex:1;flex:1;color:#000;font-size:14px}#TextRecognition .page-container .right-content-text[data-v-44edd521]::-webkit-scrollbar{width:6px}#TextRecognition .page-container .right-content-text[data-v-44edd521]::-webkit-scrollbar-thumb{background-color:rgba(144,147,153,.3);border-radius:6px}#TextRecognition .page-container .right-content-text[data-v-44edd521]::-webkit-scrollbar-track{background-color:#fff;border-radius:6px}#TextRecognition .app-logo[data-v-44edd521]{width:44px;margin-right:10px}#TextRecognition .title[data-v-44edd521]{font-size:22px;font-family:MicrosoftYaHei;color:#333;position:relative}#TextRecognition .title[data-v-44edd521]:after{content:"";position:absolute;width:1px;right:-10px;top:3px;height:80%;background:#999}#TextRecognition .sec-title[data-v-44edd521]{font-size:16px;color:#999;margin-left:20px}#TextRecognition .upload-images[data-v-44edd521]{margin-top:100px;margin-bottom:20px}#TextRecognition .upload-images img[data-v-44edd521]{width:76px}#TextRecognition #ImageView[data-v-44edd521]{max-width:100%}#TextRecognition .uploadOCRButton[data-v-44edd521]{height:35px;margin-right:10px}#TextRecognition .page-close[data-v-44edd521]{margin-left:25px;cursor:pointer}#TextRecognition .position[data-v-44edd521]{display:-webkit-box;display:-ms-flexbox;display:flex;line-height:20px;margin-bottom:15px}#TextRecognition .position-content[data-v-44edd521]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}#TextRecognition[data-v-44edd521] .el-upload{display:block}#TextRecognition[data-v-44edd521] .el-form-item__error{top:70%;left:-30px}',""]),t.exports=e},f086:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-container"},[e("div",{staticClass:"app-content"},[e("DepartStat"),e("SysVisit"),e("RegisterUser"),e("OrgOpen"),e("AreasActive"),e("ServiceState"),e("HourMoniTorings"),e("MonthMoniToring")],1)])},r=[],a=n("84ce"),o=n("c7de"),s=n("e204"),l=n("c6fa"),u=n("70ee"),c=n("b5c1"),d=n("2658"),h=n("c357"),f={components:{DepartStat:a["a"],SysVisit:o["a"],RegisterUser:s["a"],OrgOpen:l["a"],AreasActive:u["a"],ServiceState:c["a"],HourMoniTorings:d["a"],MonthMoniToring:h["a"]},props:{},data:function(){return{appMain:""}},computed:{},watch:{},created:function(){this.$bus.emit("showNavSearch",!1)},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0),this.appMain.style.minWidth="auto"},mounted:function(){this.appMain=document.querySelector(".app-main"),this.appMain.style.minWidth="1252px"},methods:{}},p=f,g=(n("fdaf"),n("2877")),m=Object(g["a"])(p,i,r,!1,null,"30f381e6",null);e["a"]=m.exports},f0c1:function(t,e,n){"use strict";var i=n("d8e8"),r=n("d3f4"),a=n("31f4"),o=[].slice,s={},l=function(t,e,n){if(!(e in s)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";s[e]=Function("F,a","return new F("+i.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=i(this),n=o.call(arguments,1),s=function(){var i=n.concat(o.call(arguments));return this instanceof s?l(e,i.length,i):a(e,i,t)};return r(e.prototype)&&(s.prototype=e.prototype),s}},f1ae:function(t,e,n){"use strict";var i=n("86cc"),r=n("4630");t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},f1b2:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-container"},[e("div",[e("el-radio-group",{attrs:{size:"mini"},on:{change:t.tabClickHandler},model:{value:t.radio1,callback:function(e){t.radio1=e},expression:"radio1"}},[e("el-radio-button",{attrs:{label:"0"}},[t._v("按区域")]),e("el-radio-button",{attrs:{label:"1"}},[t._v("按产品")]),e("el-radio-button",{attrs:{label:"2"}},[t._v("按终端")])],1)],1),e("div",{staticClass:"box",staticStyle:{"padding-top":"16px"}},[e("statistics-search",{attrs:{"search-type":t.searchType,"default-node-id":t.yijiId,"whole-country":t.wholeCountry,"search-value":t.searchValue,radio1:t.radio1},on:{statisticsClick:t.statistics}})],1),e("div",[e("data-table",{attrs:{"list-tb":t.listTb,"list-data":t.listData,"span-method":t.spanMethod,"file-name":"用户访问统计"},on:{onRowClick:t.rowclick}})],1)])},r=[],a=n("a94b"),o=n("ba77"),s=n("c1df"),l={components:{StatisticsSearch:a["a"],dataTable:o["a"]},props:{},data:function(){return{listTb:[{prop:"index"},{prop:"name",width:"",align:"left",title:"区域"},{prop:"loginNumber",width:"100px",align:"center",title:"登录人数"},{prop:"loginSum",width:"100px",align:"center",title:"登录次数"}],listData:[],searchType:[{type:"treeNode",title:"区域"},{type:"range",title:"统计周期",rangeType:"daterange",rangeSeparator:"至",dateFormat:"yyyy-MM-dd"}],searchValue:{},datevalue:[],listType:"product",radio1:"0",options:[],value:"",options1:[{value:"",label:"全部"},{value:"Windows",label:"Windows"},{value:"Android",label:"Android"},{value:"iPad",label:"iPad"},{value:"iPhone",label:"iPhone"},{value:"Linux",label:"Linux"},{value:"macOS",label:"macOS"},{value:"WeChat",label:"WeChat"},{value:"其它",label:"其它"}],value1:"",showSummary:!0,form:{startTime:"",endTime:"",id:"",productId:"",clientType:"",type:"0",orgcode:null},quyuname:"",yijiId:"",firstNlevel:0,flat:!1,liebiao:!1}},computed:{},watch:{radio1:function(t){var e={id:"",name:""};this.$set(this.searchValue,"treeNode",e),this.form.type=t,"1"===t?(this.form.productId=null,this.form.clientType="",this.form.orgcode=null,this.searchType=[{type:"treeNode",title:"区域"},{type:"rootOrg",title:"单位",parentType:"treeNode"},{type:"range",title:"统计周期",rangeType:"daterange",rangeSeparator:"至",dateFormat:"yyyy-MM-dd"}],this.listTb=[{prop:"index"},{prop:"name",width:"",align:"left",title:"产品"},{prop:"loginNumber",width:"100px",align:"center",title:"登录人数"},{prop:"loginSum",width:"100px",align:"center",title:"登录次数"}]):"2"===t?(this.form.productId="",this.form.clientType=null,this.form.orgcode="",this.listTb=[{prop:"index"},{prop:"clientType",width:"",align:"left",title:"终端"},{prop:"loginNumber",width:"100px",align:"center",title:"登录人数"},{prop:"loginSum",width:"100px",align:"center",title:"登录次数"}],this.searchType=[{type:"treeNode",title:"区域"},{type:"rootOrg",title:"单位",parentType:"treeNode"},{type:"range",title:"统计周期",rangeType:"daterange",rangeSeparator:"至",dateFormat:"yyyy-MM-dd"}]):"0"===t&&(this.form.productId="",this.form.clientType="",this.form.orgcode="",this.searchType=[{type:"treeNode",title:"区域"},{type:"range",title:"统计周期",rangeType:"daterange",rangeSeparator:"至",dateFormat:"yyyy-MM-dd"}],this.listTb=[{prop:"index"},{prop:"name",width:"",align:"left",title:"区域"},{prop:"loginNumber",width:"100px",align:"center",title:"登录人数"},{prop:"loginSum",width:"100px",align:"center",title:"登录次数"}])}},created:function(){this.$bus.emit("showNavSearch",!1)},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0)},mounted:function(){this.flat=!0},methods:{getData:function(t){var e=this;this.$http({method:"POST",url:"/platStatistics/BusinessOpen/fwStatistics",params:this.form}).then((function(t){if("success"===t.code){var n=t.body.listdata,i={};if("2"===e.radio1?(i={clientType:"合计",loginNumber:0,loginSum:0},n.forEach((function(t){i.loginNumber+=t.loginNumber,i.loginSum+=t.loginSum}))):(i={name:"合计",loginNumber:0,loginSum:0},n.forEach((function(t){i.loginNumber+=t.loginNumber,i.loginSum+=t.loginSum}))),n.length>0&&n.push(i),e.listData=n,0===t.body.map.level?e.wholeCountry=!0:e.wholeCountry=!1,console.log("是否传值",e.flat),e.flat){var r={id:t.body.map.quId,name:t.body.map.quName,nLevel:t.body.map.level};e.$set(e.searchValue,"treeNode",r),t.body.map.quId&&(e.yijiId="/"===t.body.map.quId?"":t.body.map.quId,e.firstNlevel=t.body.map.level)}}else e.$message.error(t.message)}))},statistics:function(t){console.log("区域、单位",t),t.treeNode.id?(this.form.id=t.treeNode.id,this.flat=!1):(this.form.id="",this.flat=!0),this.form.startTime=s(t.range[0]).format("YYYY-MM-DD"),this.form.endTime=s(t.range[1]).format("YYYY-MM-DD"),"0"===this.radio1?(this.form.productId=t.productId,this.form.clientType=t.terminal):"1"===this.radio1?(this.form.clientType=t.terminal,t.rootOrg.ocode?this.form.orgcode=t.rootOrg.ocode:this.form.orgcode=null):"2"===this.radio1&&(this.form.productId=t.productId,t.rootOrg.ocode?this.form.orgcode=t.rootOrg.ocode:this.form.orgcode=null),this.getData()},tabClickHandler:function(t){this.flat=!0,this.form.startTime=s(new Date).subtract(1,"months").format("YYYY-MM-DD"),this.form.endTime=s().format("YYYY-MM-DD"),this.form.id="",this.getData(t)},rowclick:function(t,e,n){var i=this;t.N_Level>3||!t.ID||"0"!==this.radio1||(this.form.id=t.ID,this.$http({method:"POST",url:"/platStatistics/BusinessOpen/fwStatistics",params:this.form}).then((function(e){if("success"===e.code){if(e.body.map.FullName){var n=e.body.map.FullName.slice(1),r={id:t.ID,name:n,nLevel:t.N_Level};i.$set(i.searchValue,"treeNode",r)}var a=e.body.listdata,o={};"2"===i.radio1?(o={clientType:"合计",loginNumber:0,loginSum:0},a.forEach((function(t){o.loginNumber+=t.loginNumber,o.loginSum+=t.loginSum}))):(o={name:"合计",loginNumber:0,loginSum:0},a.forEach((function(t){o.loginNumber+=t.loginNumber,o.loginSum+=t.loginSum}))),a.length>0&&a.push(o),i.listData=a,0===e.body.map.level?i.wholeCountry=!0:i.wholeCountry=!1}})))},spanMethod:function(t){if(t.rowIndex===this.listData.length-1){if(0===t.columnIndex)return[0,0];if(1===t.columnIndex)return[1,2]}}}},u=l,c=(n("6f63"),n("2877")),d=Object(c["a"])(u,i,r,!1,null,"5cd5cbcb",null);e["a"]=d.exports},f1b7:function(t,e,n){"use strict";n("7303")},f1bd:function(t,e,n){var i=n("349d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("60ed92b9",i,!0,{sourceMap:!1,shadowMode:!1})},f1da:function(t,e,n){"use strict";n("8d7b")},f260:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return e}))},f386:function(t,e,n){"use strict";n("386b")("small",(function(t){return function(){return t(this,"small","","")}}))},f3e2:function(t,e,n){"use strict";var i=n("5ca1"),r=n("0a49")(0),a=n("2f21")([].forEach,!0);i(i.P+i.F*!a,"Array",{forEach:function(t){return r(this,t,arguments[1])}})},f3ff:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"},i=t.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(t){return t.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ਰਾਤ"===e?t<4?t:t+12:"ਸਵੇਰ"===e?t:"ਦੁਪਹਿਰ"===e?t>=10?t:t+12:"ਸ਼ਾਮ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"ਰਾਤ":t<10?"ਸਵੇਰ":t<17?"ਦੁਪਹਿਰ":t<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});return i}))},f400:function(t,e,n){"use strict";var i=n("c26b"),r=n("b39a"),a="Map";t.exports=n("e0b8")(a,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=i.getEntry(r(this,a),t);return e&&e.v},set:function(t,e){return i.def(r(this,a),0===t?0:t,e)}},i,!0)},f4ff:function(t,e,n){var i=n("5ca1"),r=Math.imul;i(i.S+i.F*n("79e5")((function(){return-5!=r(4294967295,5)||2!=r.length})),"Math",{imul:function(t,e){var n=65535,i=+t,r=+e,a=n&i,o=n&r;return 0|a*o+((n&i>>>16)*o+a*(n&r>>>16)<<16>>>0)}})},f52d:function(t,e,n){"use strict";n("8a7b9")},f559:function(t,e,n){"use strict";var i=n("5ca1"),r=n("9def"),a=n("d2c8"),o="startsWith",s=""[o];i(i.P+i.F*n("5147")(o),"String",{startsWith:function(t){var e=a(this,t,o),n=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return s?s.call(e,i,n):e.slice(n,n+i.length)===i}})},f576:function(t,e,n){"use strict";var i=n("5ca1"),r=n("2e08"),a=n("a25f"),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);i(i.P+i.F*o,"String",{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},f585:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{overflow:"hidden"}},[t.required?e("span",{staticClass:"headSelect-required"},[t._v("*")]):t._e(),"region"===t.type?e("div",{staticClass:"head-box"},[e("span",[t._v(t._s(t.text)+":")]),e("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"treeNode",expression:"'treeNode'"}],attrs:{"node-id":t.nodeId,"node-level":t.nodeLevel,readonly:!0,"dialog-title":"选择区域",name:"region",placeholder:"请选择"+t.text},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1):t._e(),"rootorg"===t.type?e("div",{staticClass:"head-box"},[e("span",[t._v(t._s(t.text)+":")]),t.update?e("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"rootorg",expression:"'rootorg'"}],attrs:{"node-id":t.nodeId,"node-level":t.nodeLevel,readonly:!0,"dialog-title":"选择单位",name:"rootorg",placeholder:"请选择"+t.text},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}}):t._e()],1):t._e(),"suborg"===t.type?e("div",{staticClass:"head-box"},[e("span",[t._v(t._s(t.text)+":")]),t.update?e("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"suborg",expression:"'suborg'"}],attrs:{readonly:!0,"org-level":"2","dialog-title":"选择部门","root-org-code":t.rootOrgcode,name:"suborg",placeholder:"请选择"+t.text},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}}):t._e()],1):t._e(),"person"===t.type?e("div",{staticClass:"head-box"},[e("span",[t._v(t._s(t.text)+":")]),t.update?e("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"staff",expression:"'staff'"}],attrs:{readonly:!0,"org-id":t.suborgId,"dialog-title":"选择人员","root-org-code":t.subOrgcode,name:"person",placeholder:"请选择"+t.text},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}}):t._e()],1):t._e(),"data"===t.type?e("div",{staticClass:"head-box"},[e("span",[t._v(t._s(t.text)+":")]),e("el-date-picker",{attrs:{type:"daterange","value-format":t.formatter,format:t.formatter,clearable:!1,editable:!1,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.timeChange},model:{value:t.timevalue,callback:function(e){t.timevalue=e},expression:"timevalue"}})],1):t._e()])},r=[],a=n("c1df"),o={components:{},props:{type:{type:Object,default:function(){return""}},text:{type:Object,default:function(){return""}},rootOrgcode:{type:String,default:function(){}},subOrgcode:{type:String,default:function(){}},suborgId:{type:String,default:function(){}},value:{type:String,default:""},selectFunction:{type:Function,default:function(){return!0}},formatter:{type:String,default:"yyyy-MM-dd"},timevalue:{type:Array,default:function(){return[]}},nodeId:{type:String,default:function(){}},nodeLevel:{type:Number,default:function(){}},lazy:Boolean,required:{type:Boolean,default:!1}},data:function(){return{update:!0}},computed:{},watch:{rootOrgcode:function(t){var e=this;this.update=!1,this.$nextTick((function(){e.update=!0}))},subOrgcode:function(t){var e=this;this.update=!1,this.$nextTick((function(){e.update=!0}))},suborgId:function(t){var e=this;this.update=!1,this.$nextTick((function(){e.update=!0}))},nodeId:function(t){var e=this;this.update=!1,this.$nextTick((function(){e.update=!0}))}},created:function(){var t=new Date;if("data"===this.type){var e=this.formatter;e.indexOf("yyyy")>-1&&(e=this.formatter.replace("yyyy","YYYY")),e.indexOf("dd")>-1&&(e=e.replace("dd","DD")),0===this.timevalue.length&&(this.timevalue=[a(new Date(t.getTime()-2592e6)).format(e),a(t).format(e)]),"function"!==typeof this.selectFunction||this.lazy||this.selectFunction(this.timevalue,"data")}},beforeDestroy:function(){},mounted:function(){},methods:{onSelectTreeNodeCompleted:function(t,e){"function"===typeof this.selectFunction&&this.selectFunction(t,e.name)},onSelectRootorgCompleted:function(t,e){"function"===typeof this.selectFunction&&this.selectFunction(t,e.name)},onSelectSuborgCompleted:function(t,e){"function"===typeof this.selectFunction&&this.selectFunction(t,e.name)},onSelectStaffCompleted:function(t,e){"function"===typeof this.selectFunction&&this.selectFunction(t,e.name)},timeChange:function(t){"function"===typeof this.selectFunction&&this.selectFunction(t,"data")}}},s=o,l=(n("3348"),n("2877")),u=Object(l["a"])(s,i,r,!1,null,"f223dbde",null);e["a"]=u.exports},f59d:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,"table[data-v-9207951a]{border-collapse:collapse}table tr td[data-v-9207951a]{border:1px solid #e2e2e2;padding:5px;height:40px;color:#555;font-size:12px;line-height:30px}table tr td em[data-v-9207951a]{color:red}table tr .tdBg[data-v-9207951a]{font-weight:700}[data-v-9207951a] .el-input__inner{height:35px!important;line-height:35px!important;font-size:12px;-webkit-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important;user-select:text!important}[data-v-9207951a] .el-textarea__inner{font-size:12px}[data-v-9207951a] .el-select{width:100%;display:inline-block;position:relative}[data-v-9207951a] .el-checkbox__label,[data-v-9207951a] .el-radio__label{font-size:12px;padding-left:5px}#pane-first input[data-v-9207951a],[data-v-9207951a] .el-input__inner{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.right-form[data-v-9207951a]:not(input,textarea){-webkit-touch-callout:none!important;-webkit-user-select:none!important}.problem-list[data-v-9207951a]{margin-top:8px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.problem-list .delete-icon[data-v-9207951a]{font-size:18px;cursor:pointer;margin-left:6px}.problem-list .delete-icon[data-v-9207951a]:hover{color:#409eff}[data-v-9207951a] .el-date-editor .el-range-separator{width:10%}",""]),t.exports=e},f605:function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},f616:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'[data-v-30f381e6] .panel-block{float:left;margin-top:12px;margin-right:12px;width:calc(50% - 6px)}[data-v-30f381e6] .panel-block:nth-child(2n){margin-right:0}[data-v-30f381e6] .panel-block:first-child,[data-v-30f381e6] .panel-block:nth-child(2){margin-top:0}.app-container .app-content[data-v-30f381e6]:after{content:"";display:block;visibility:hidden;clear:both}',""]),t.exports=e},f6b3:function(t,e,n){var i=n("5ca1");i(i.S,"Reflect",{has:function(t,e){return e in t}})},f6b4:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],n=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],i=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],r=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],a=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],o=t.defineLocale("gd",{months:e,monthsShort:n,monthsParseExact:!0,weekdays:i,weekdaysShort:r,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){var e=1===t?"d":t%10===2?"na":"mh";return t+e},week:{dow:1,doy:4}});return o}))},f751:function(t,e,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},f790:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".custom_input_icon[data-v-5a3d6b08]{position:absolute;top:0;right:43px;z-index:1;font-size:13px;cursor:pointer;display:none}.search_out[data-v-5a3d6b08],.select_input:hover .custom_input_icon[data-v-5a3d6b08]{display:inline-block}.search_out div[data-v-5a3d6b08]{float:left}.search_out div span[data-v-5a3d6b08]{float:left;line-height:36px;font-size:14px}.search_out div[data-v-5a3d6b08]:not(:last-child){margin-right:15px}.search_out[data-v-5a3d6b08] .el-range-separator{width:30px}",""]),t.exports=e},f979:function(t,e,n){n("8e6e"),t.exports=n("8378").Object.getOwnPropertyDescriptors},f97d:function(t,e){var n={"":!0,up:!0};function i(t){if("string"!==typeof t)return!1;var e=n[t.toLowerCase()];return!!e&&t.toLowerCase()}function r(t){return"number"===typeof t&&t>=0&&t<=100}function a(){var t=100,e=3,n=0,a=100,o=0,s=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!r(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!==typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!r(t))throw new Error("RegionAnchorX must be between 0 and 100.");a=t}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(t){if(!r(t))throw new Error("RegionAnchorY must be between 0 and 100.");n=t}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!r(t))throw new Error("ViewportAnchorY must be between 0 and 100.");s=t}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!r(t))throw new Error("ViewportAnchorX must be between 0 and 100.");o=t}},scroll:{enumerable:!0,get:function(){return l},set:function(t){var e=i(t);!1===e?console.warn("Scroll: an invalid or illegal string was specified."):l=e}}})}t.exports=a},f9ab:function(t,e,n){var i=n("5ca1"),r=n("96fb");i(i.S,"Math",{cbrt:function(t){return r(t=+t)*Math.pow(Math.abs(t),1/3)}})},f9b2:function(t,e,n){var i=n("c739");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("f76ee05c",i,!0,{sourceMap:!1,shadowMode:!1})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fa65:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".water[data-v-376ba417]{display:none}",""]),t.exports=e},fa83:function(t,e,n){"use strict";n("386b")("blink",(function(t){return function(){return t(this,"blink","","")}}))},fab2:function(t,e,n){var i=n("7726").document;t.exports=i&&i.documentElement},fabb:function(t,e,n){"use strict";n("af35")},facd:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,a=t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}});return a}))},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var i=window.document.currentScript,r=n("8875");i=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var a=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}var o=function(){var t=this,e=t._self._c;return e("LRLayout",[e("LeftPanel",[e("GiantTree",{attrs:{nodes:t.treeData},on:{onCreated:t.onTreeCreated,onClick:t.onTreeNodeClick}})],1),e("RightPanel",[e("CityCode",{attrs:{vo:t.citycode,"z-tree":t.zTree,"is-click":t.isClick,"node-name":t.nodeName,level:t.level},on:{refuploadsuss:t.refuploadsuss}})],1)],1)},s=[],l=n("2f62"),u=function(){var t=this,e=t._self._c;return e("div",[e("PageContent",{attrs:{title:t.title}},[null!==t.vo&&t.isClick?e("CityCodeForm",{attrs:{vo:t.vo,"can-edit":0}}):t._e(),e("div",{attrs:{slot:"footer"},slot:"footer"},[""!==t.nodeName&&t.level<3?e("el-button",{attrs:{plain:"",icon:"el-icon-plus"},on:{click:t.addObject}},[t._v("添加子城市")]):t._e(),null!==t.vo&&t.level>0?e("el-button",{attrs:{plain:"",icon:"el-icon-edit"},on:{click:t.editObject}},[t._v("修改")]):t._e(),null!==t.vo&&t.level>0?e("el-button",{attrs:{plain:"",icon:"el-icon-close"},on:{click:function(e){return t.deleteObject(t.vo)}}},[t._v("删除")]):t._e()],1)],1),e("Basicform",{attrs:{title:t.title,"win-width":t.moduleInfo.winWidth,"win-height":t.moduleInfo.winHeight,"on-basic-form-before-open":t.onBasicFormBeforeOpen,"on-basic-form-opened":t.onBasicFormOpened,"on-basic-form-before-submit":t.onBasicFormBeforeSubmit,"on-basic-form-submited":t.onBasicFormSubmited},scopedSlots:t._u([{key:"default",fn:function(n){return[e("CityCodeForm",{attrs:{vo:n.vo,"can-edit":n.canEdit,"module-info":t.moduleInfo}})]}}])})],1)},c=[],d=function(){var t=this,e=t._self._c;return e("el-form",{attrs:{model:t.vo}},[e("div",{staticClass:"el-table el-table--fit el-table--border"},[e("div",{staticClass:"el-table__body-wrapper"},[e("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("tbody",[e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("城市名称")]),e("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[1===t.canEdit?e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"名称",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{attrs:{placeholder:"请输入城市名称"},model:{value:t.vo.name,callback:function(e){t.$set(t.vo,"name",e)},expression:"vo.name"}})],1)]}}],null,!1,1679013288)}):t._e(),0===t.canEdit?e("div",{domProps:{innerHTML:t._s(t.vo.name)}}):t._e()],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("城市代码")]),e("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[1===t.canEdit?e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"代码",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{attrs:{placeholder:"请输入城市代码"},model:{value:t.vo.cityCode,callback:function(e){t.$set(t.vo,"cityCode",e)},expression:"vo.cityCode"}})],1)]}}],null,!1,2585274170)}):t._e(),0===t.canEdit?e("div",{domProps:{innerHTML:t._s(t.vo.cityCode)}}):t._e()],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("分组代码")]),e("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[1===t.canEdit?e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"分组",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{attrs:{placeholder:"请输入分组代码"},model:{value:t.vo.grouNo,callback:function(e){t.$set(t.vo,"grouNo",e)},expression:"vo.grouNo"}})],1)]}}],null,!1,355093168)}):t._e(),0===t.canEdit?e("div",{domProps:{innerHTML:t._s(t.vo.grouNo)}}):t._e()],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("排序")]),e("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[1===t.canEdit?e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"排序",rules:"required|length:6"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{attrs:{placeholder:"请输入6位数字排序号"},model:{value:t.vo.orderNo,callback:function(e){t.$set(t.vo,"orderNo",e)},expression:"vo.orderNo"}})],1)]}}],null,!1,1764535559)}):t._e(),0===t.canEdit?e("div",{domProps:{innerHTML:t._s(t.vo.orderNo)}}):t._e()],1)])])])])])])},h=[],f={components:{},props:{vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1}},data:function(){return{rootName:"",statusOptions:[{value:1,text:"启用"},{value:2,text:"禁用"}]}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{}},p=f,g=(n("3caf"),n("2877")),m=Object(g["a"])(p,d,h,!1,null,"127072c9",null),v=m.exports,y={components:{CityCodeForm:v},props:{vo:{type:Object,default:function(){return{}}},zTree:{type:Object,default:function(){return{}}},isClick:{type:Boolean,default:!1},nodeName:{type:String,default:function(){return""}},level:{type:Number,default:function(){return 0}}},data:function(){return{title:"城市天气代码设置",moduleInfo:{moduleCode:"Module",addNewUrl:"base/cityCodeConfig/addNew",insertUrl:"base/cityCodeConfig/insert",getByIdUrl:"base/cityCodeConfig/getById",updateUrl:"base/cityCodeConfig/update",delUrl:"base/cityCodeConfig/delete",winWidth:900,winHeight:600},opearType:""}},computed:{},watch:{},created:function(){this.$bus.on("addMenu",this.addMenu),this.$bus.on("editMenu",this.editMenu),this.$bus.on("deleteMenu",this.deleteMenu)},beforeDestroy:function(){this.$bus.off("addMenu",this.addMenu),this.$bus.off("editMenu",this.editMenu),this.$bus.off("deleteMenu",this.deleteMenu)},mounted:function(){},methods:{addObject:function(){this.opearType="add";var t=this.moduleInfo.addNewUrl.split("?")[0];t+="?parentId=",null===this.vo||"sys"===this.vo.id?this.moduleInfo.addNewUrl=t:this.moduleInfo.addNewUrl=t+this.vo.id,this.$bus.emit("openBusiform",this.moduleInfo,null,1)},refupload:function(t){this.$emit("refuploadsuss",!0)},editObject:function(){this.opearType="edit",this.$bus.emit("openBusiform",this.moduleInfo,this.vo,1)},deleteObject:function(t){var e=this;console.log(t,"node"),console.log(this.zTree,"this.zTree"),this.opearType="delete";var n="确认删除“"+t.name+"”吗?";t.children&&t.children.length>0&&(n="确认删除“"+t.name+"”及下级全部类型吗?"),this.$confirm(n,{type:"warning"}).then((function(){e.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:t.id},url:e.moduleInfo.delUrl}).then((function(n){if("success"===n.code){var i=t.getParentNode();e.zTree.removeNode(t),e.zTree.selectNode(i),e.$bus.emit("updateTreeNode",i),e.$bus.emit("refreshTreeData",null),e.$message.success(n.message)}else e.$alert(n.message,{type:"error"})}))}))},onBasicFormBeforeOpen:function(t,e,n){"add"===this.opearType&&(e.status=1),n.resolve(!0)},onBasicFormOpened:function(t,e){$(".sel-icon .el-radio-button__orig-radio:checked").next(".el-radio-button__inner").css("background-color",e.iconColor)},onBasicFormBeforeSubmit:function(t,e,n){null!==this.vo&&("sys"===this.vo.id&&(e.parentId=this.vo.id),2===this.vo.tlevel&&(e.fullOrder=this.vo.fullOrder+"-"+e.orderNo,e.fullName=this.vo.fullName+"-"+e.name)),n.resolve(!0)},onBasicFormSubmited:function(t,e){e.title=e.name,void 0!==e.pId&&null!==e.pId||(e.pId=e.parentId||"sys"),this.$bus.emit("updateTreeNode",e)}}},A=y,b=Object(g["a"])(A,u,c,!1,null,"c50a7438",null),_=b.exports;function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function S(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){C(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function C(t,e,n){return e=T(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function T(t){var e=M(t,"string");return"symbol"==w(e)?e:e+""}function M(t,e){if("object"!=w(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=w(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var k={name:"CityCodeConfig",components:{CityCode:_},props:{},data:function(){return{moduleInfo:{getByIdUrl:"base/cityCodeConfig/getById",loadTreeNodeUrl:"base/cityCodeConfig/querydata"},root:null,citycode:null,treeData:[],zTree:{},nodeName:"",isClick:!1,level:0}},computed:S({},Object(l["a"])(["loginUser"])),watch:{},created:function(){this.root={id:"sys",name:"城市代码",open:!0,title:"城市代码"},this.loadExpenseThype(),this.$bus.emit("showNavSearch",!1),this.$bus.on("refreshTreeData",this.refreshTreeData)},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0),this.$bus.off("refreshTreeData",this.refreshTreeData)},mounted:function(){},methods:{loadExpenseThype:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{orderBy:"orderNo asc"},data:[{compare:"=",field:"orgCode",merge:!0,value:this.loginUser.orgCode}],url:this.moduleInfo.loadTreeNodeUrl}).then((function(e){"success"===e.code?t.treeData=t.treeDataAdapter([t.root].concat(e.body.listdata)):t.$alert(e.message,"操作提示",{type:"error"})}))},treeDataAdapter:function(t){var e=this;return t.forEach((function(t){null===t.parentId?t.pId=e.root.id:t.pId=t.parentId,t.title=t.name})),t},refuploadsuss:function(t){this.loadExpenseThype()},refreshTreeData:function(t){null===t?this.loadExpenseThype():this.treeData=this.treeDataAdapter([this.root].concat(t))},onTreeNodeClick:function(t,e,n){var i=this;console.log(n.level),this.level=n.level,"城市代码"!==n.name?this.isClick=!0:this.isClick=!1,this.nodeName=n.name;var r=JSON.parse(JSON.stringify(this.root));this.root=null,this.$nextTick((function(t){"城市代码"===n.name?i.citycode=r:i.citycode=n,i.root=r}))},onTreeCreated:function(t){this.zTree=t;var e=t.getNodes();if(0===e.length)return!1;void 0===e[0].children?(this.onTreeNodeClick("",e[0].id,e[0]),t.selectNode(e[0]),e[0].tlevel=1):e[0].children.length>=1?(this.onTreeNodeClick("",e[0].children[0].id,e[0].children[0]),t.selectNode(e[0].children[0])):(this.onTreeNodeClick("",e[0].id,e[0]),t.selectNode(e[0]),e[0].tlevel=1)},getCityCode:function(t,e){var n=this;this.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{id:t,canEdit:0},url:this.moduleInfo.getByIdUrl}).then((function(t){"success"===t.code?(n.$set(t.body.vo,"getParentNode",e.getParentNode),n.$set(t.body.vo,"parentId",e.parentId),n.citycode=t.body.vo):n.$alert(t.message,"操作提示",{type:"error"})}))}}},L=k,D=Object(g["a"])(L,o,s,!1,null,"09240392",null),E=D.exports,B=function(){var t=this,e=t._self._c;return e("CockpitIndex",{attrs:{title:t.title},scopedSlots:t._u([{key:"default",fn:function(){return[e("CockpitItem",{attrs:{"module-info":t.moduleInfo}})]},proxy:!0}])})},I=[],O=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-wrapper"},[e("Topbar"),e("div",{staticClass:"app-container"},[e("div",{staticClass:"header",staticStyle:{background:"url(./images/w-imgs/cockpit/title.png) no-repeat center"}},[e("div",{staticClass:"bg-header"},[e("div",{staticClass:"t_title"},[t._v(" "+t._s(t.title)+" ")])])]),t._t("default")],2)],1)},P=[],N={props:{title:{type:String,default:"运营管理驾驶舱"}},data:function(){return{}},created:function(){this.$options.components["Topbar"]=this.$loadComponent("@/wapp/common/layout/components/Topbar/index")}},F=N,U=(n("6833"),Object(g["a"])(F,O,P,!1,null,"20804068",null)),R=U.exports,j=function(){var t=this,e=t._self._c;return e("div",{staticClass:"data-main"},[e("div",{staticClass:"item-box"},[e("div",{staticClass:"left"},[e("BusinessOpen",{attrs:{"module-info":t.moduleInfo}}),e("RegisterUser",{attrs:{"module-info":t.moduleInfo}}),e("BanwenCompany",{attrs:{"module-info":t.moduleInfo}})],1),e("div",{staticClass:"middle"},[e("DayVisitsNumber",{attrs:{"module-info":t.moduleInfo}}),e("MonthDate",{attrs:{"module-info":t.moduleInfo}}),e("AreasActive",{attrs:{"module-info":t.moduleInfo}})],1),e("div",{staticClass:"right"},[e("TermTodayVsCount",{attrs:{"module-info":t.moduleInfo}}),e("AreaVisitorProdCount",{attrs:{"module-info":t.moduleInfo}}),e("ServiceRunStatistics",{attrs:{"module-info":t.moduleInfo}})],1)])])},H=[],Y=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/line_short.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v("区域开通分布")]),e("div",{staticClass:"box",staticStyle:{height:"90%",width:"90%"}},[t.chartData.length>0?e("EchartAnnular",{attrs:{"chart-id":"sys-visit",alldata:t.chartData,radius:["0","50%"],color:t.colorArr,formatter:"{b}: {c}次</br>{d}%","is-label":!0,"is-label-line":!0,"is-legend":!0,"legend-left":"right","legend-top":"middle","legend-icon":"circle","legend-orient":"vertical",title:t.titleName,"label-align":"top","circle-center":["35%","50%"],"legend-formatter":t.legendFormatter,"label-formatter":t.labelFormatter,"text-color":"#fff","legend-text-style":t.legendTextStyle}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"180px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},z=[],Q={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",legendTextStyle:{color:"#72F9FE",fontSize:"14px"},chartData:[],colorArr:["#379DD5","#FFBD00","#FF761B","#91BD3C","#2873C4","#AD4200","#636363","#A27100","#134578","#A5A5A5"],titleName:""}},created:function(){this.getStatData()},methods:{getStatData:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:this.moduleInfo.businessOpenUrl}).then((function(e){if("success"===e.code){var n=e.body.listdata,i=[];n.forEach((function(t,e){i.push({name:t.name,value:t.num})})),t.chartData=i}else t.$message({message:e.message,type:"warning"})}),(function(e){t.$message.error(e)}))},legendFormatter:function(t){return t},labelFormatter:function(t){return t.name.length>4&&(t.name=t.name.substr(0,4)+"..."),t.name}}},V=Q,W=(n("95f0"),Object(g["a"])(V,Y,z,!1,null,"861d7d8e",null)),G=W.exports,K=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/line_long.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v(" 日访问量 ")]),e("div",{staticStyle:{height:"90%",width:"90%"}},[t.alldata.length>0?e("EchartDashboard",{attrs:{"chart-id":"day-visite-echart",alldata:t.alldata,"circle-center":t.circleCenter,"start-angles":t.startAngle}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},q=[],X={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",circleCenter:[["13%","50%"],["50%","50%"],["87%","50%"]],alldata:[],startAngle:[],max:[]}},mounted:function(){this.getTerminalData()},methods:{getTerminalData:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:this.moduleInfo.DayVisitsNum}).then((function(e){"success"===e.code&&(t.alldata=[{value:e.body.listNumber[0].num,name:"注册用户数"},{value:e.body.onlinenumber,name:"在线用户数"},{value:16,name:"平均在线时长"}],t.alldata.forEach((function(e){var n=Math.pow(10,e.value.toString().length-1),i=e.value/n;t.startAngle.push(Math.ceil(i)*n),t.max.push(Math.ceil(e.value/n)*n<10?10:Math.ceil(e.value/n)*n)})))}),(function(e){t.$message.error(e)}))}}},J=X,Z=(n("95a2"),Object(g["a"])(J,K,q,!1,null,"0300b5d1",null)),tt=Z.exports,et=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/line_long.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v("区域活跃率")]),e("div",{staticStyle:{height:"90%",width:"90%"}},[t.xdata.length>0?e("EchartColumnar",{attrs:{"data-zoom":t.dataZoom,"chart-id":"active-area",title:t.title,"chart-type":[{type:"bar",yAxisIndex:0},{type:"line",yAxisIndex:0}],"x-data":t.xdata,"y-data":t.ydata,"y-unit":t.yunit,"x-unit":t.xunit,color:t.colorArr,left:"0",right:"30",top:"30","x-label-rotate":45,"xytext-style":t.textStyle,"bar-width":t.barWidth,"show-split-line":!1}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"180px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},nt=[],it={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{dataZoom:{type:"inside",minValueSpan:5,maxValueSpan:5},img:"./images/w-imgs/nomessage.png",barWidth:{type:!0,width:"8px"},textStyle:{xcolor:"#72F9FE",ycolor:"#fff"},title:{name:"",align:"center",size:"15",textStyle:{fontWeight:400}},dateArr:[],xdata:[],ydata:[],xunit:{name:"",align:"end",size:"12",lineColor:"#0C7CC5"},yunit:{name:"",align:"center",size:"12",lineColor:"#0C7CC5"}}},created:function(){this.dateChange()},methods:{initDate:function(){var t=new Date,e=new Date(t.getTime()-2592e6);return[e,t]},dateChange:function(){this.dateArr=this.initDate(),this.getStatData(this.dateArr[0],this.dateArr[1])},getStatData:function(t,e){var n=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{startTime:t,endTime:e},url:this.moduleInfo.areasActiveUrl}).then((function(t){if("success"===t.code){var e=t.body.listdata,i=[],r=[];for(var a in e)i.push(a),r.push(e[a]);n.xdata=i,n.ydata=[r]}else n.$message({message:t.message,type:"warning"})}),(function(t){n.$message.error(t)}))}}},rt=it,at=(n("449c"),Object(g["a"])(rt,et,nt,!1,null,"283d58b9",null)),ot=at.exports,st=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/line_short.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v("注册用户趋势图")]),e("div",{staticStyle:{height:"90%",width:"90%"}},[t.xdata.length>0?e("EchartColumnar",{attrs:{"chart-id":"register-user","chart-type":[{type:"line",yAxisIndex:0}],"x-data":t.xdata,"y-data":t.ydata,"y-unit":t.yunit,"x-unit":t.xunit,left:"50",right:"50",top:"60","xytext-style":t.textStyle,smooth:!0}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},lt=[],ut={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",textStyle:{xcolor:"#72F9FE",ycolor:"#fff"},dateArr:[],xdata:[],ydata:[[]],xunit:{name:"",align:"end",size:"13",lineColor:"#0C7CC5"},yunit:{name:"",align:"center",size:"13",lineColor:"#0C7CC5"}}},created:function(){this.dateChange()},methods:{initDate:function(){var t=new Date,e=new Date(t.getTime()-2592e6);return[e,t]},dateChange:function(){this.dateArr=this.initDate(),this.getStatData(this.dateArr[0],this.dateArr[1])},getStatData:function(t,e){var n=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{startTime:t,endTime:e},url:this.moduleInfo.RegisterUserUrl}).then((function(t){if("success"===t.code){var e=t.body.listdata,i=[],r=[];e.forEach((function(t,e){t.month=t.month.replace("-","/"),i.push(t.month),r.push(t.totalNum)})),n.xdata=i,n.ydata=[r]}else n.$message({message:t.message,type:"warning"})}),(function(t){n.$message.error(t)}))}}},ct=ut,dt=(n("6891"),Object(g["a"])(ct,st,lt,!1,null,"1e60c8bf",null)),ht=dt.exports,ft=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/line_short.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v("办文数量排行")]),t.stackXData.length>0?e("EchartStackColumnar",{attrs:{"chart-id":"stack-chart-ban",title:t.stackTitle,"x-data":t.stackXData,"y-data":t.stackYData,"is-legend":!1,"legend-data":t.stackLegendData,left:"30",right:"50",top:"80",bottom:"30","x-unit":t.xunit,"y-unit":t.yunit,"xytext-style":t.textStyle,"bar-width":"8px","bar-gradient":t.barGradient,"x-label-formatter":t.xLabelFormatter,"tooltip-format":t.tooltipFormat}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"180px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)},pt=[],gt={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",stackYData:[],stackXData:[],datevalue:[],stackLegendData:[],textStyle:{xcolor:"#fff",ycolor:"#72F9FE"},xunit:{name:"单位",align:"end",size:"12",lineColor:"#0C7CC5"},yunit:{name:"办文数量",align:"center",size:"12",postion:"left",lineColor:"#0C7CC5"},barGradient:{type:!0,color:[{offset:0,color:"rgba(88, 150, 252, 0.2)"},{offset:.5,color:"rgba(88, 150, 252, 0.67)"},{offset:1,color:"rgba(251, 70, 113, 0.9)"}]}}},created:function(){},mounted:function(){this.getTerminalData()},methods:{getTerminalData:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:this.moduleInfo.DayVisitsNum}).then((function(e){if("success"===e.code){var n=e.body.listBanwen,i=[],r=[],a=[];n.forEach((function(t){for(var e in r.push(t.orgname),t){for(var n=!0,a=0;a<i.length;a++)if(i[a]===e){n=!1;break}n&&"type"!==e&&i.push(e)}})),i.forEach((function(t,e){var i=[];n.forEach((function(e,n){i.push(e[t])})),a.push(i)})),t.stackYData=r,t.stackLegendData=i,t.stackXData=a}}),(function(e){t.$message.error(e)}))},xLabelFormatter:function(t,e){return t.length>4&&(t=t.substr(0,4)+"..."),t}}},mt=gt,vt=(n("7e2a"),Object(g["a"])(mt,ft,pt,!1,null,"61254cf1",null)),yt=vt.exports,At=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/line_short.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v(" 区域访问量统计 ")]),e("div",{staticStyle:{height:"90%",width:"90%"}},[t.xdata.length>0?e("EchartColumnar",{attrs:{"chart-id":"active-area-visitor",title:t.title,"data-zoom":t.dataZoom,"chart-type":[{type:"bar",yAxisIndex:0}],"x-chart-num":1,"x-data":t.xdata,"y-data":t.ydata,"y-unit":t.yunit,"x-unit":t.xunit,color:t.colorArr,left:"30",right:"30",top:"30","x-label-rotate":45,"bar-width":t.barwidth,"show-split-line":!1,"xytext-style":t.textStyle,"bar-gradient":t.barGradient}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"180px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},bt=[],_t={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{barwidth:{type:!0,width:"8px"},dataZoom:{type:"inside",minValueSpan:5,maxValueSpan:5},img:"./images/w-imgs/nomessage.png",textStyle:{xcolor:"#72F9FE",ycolor:"#fff"},colorArr:["#379DD5","#FFBD00","#FF761B","#91BD3C","#2873C4","#AD4200","#636363","#A27100","#134578","#A5A5A5"],title:{name:"",align:"center",size:"15",textStyle:{fontWeight:400}},dateArr:[],xdata:[],ydata:[],xunit:{name:"",align:"end",size:"13",lineColor:"#0C7CC5"},yunit:{name:"",align:"center",size:"13",lineColor:"#0C7CC5"},barGradient:{type:!0,color:[{offset:0,color:"rgba(251, 70, 113, 0.9)"},{offset:.5,color:"rgba(88, 150, 252, 0.67)"},{offset:1,color:"rgba(88, 150, 252, 0.2)"}]}}},created:function(){var t=new Date,e=new Date(t.getTime()-2592e6);this.datevalue=[this.getDateStr(e),this.getDateStr(t)],this.getStatData()},methods:{formatDate:function(t){return t<10?"0"+t:t},getDateStr:function(t){if(t){var e=t.getFullYear(),n=this.formatDate(t.getMonth()+1),i=this.formatDate(t.getDate()),r=e+"-"+n+"-"+i;return r}},getStatData:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{startTime:this.datevalue[0],endTime:this.datevalue[1],type:"Area"},url:"platStatistics/BusinessOpen/userAccessStatistics"}).then((function(e){if("success"===e.code){var n=e.body.listdata,i=[],r=[];n.forEach((function(t){var e=0;for(var n in t)"name"!==n&&"id"!==n&&"level"!==n&&"code"!==n&&-1!==n.indexOf("New")&&(e+=Number(t[n]));i.push(t.name),r.push(e)})),t.xdata=i,t.ydata=[r]}else t.$message({message:e.message,type:"warning"})}))}}},wt=_t,xt=(n("01dc"),Object(g["a"])(wt,At,bt,!1,null,"fa17f1bc",null)),St=xt.exports,Ct=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/line_short.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v(" 运行服务成功率 ")]),e("div",{staticClass:"box",staticStyle:{height:"90%",width:"90%"}},[t._m(0),t.chartData.length>0?e("EchartAnnular",{attrs:{"chart-id":"servuce-success",alldata:t.chartData,radius:["40%","50%"],color:t.colorArr,formatter:"{b}:{d}%","is-label":!1,"legend-left":"left","legend-top":"middle","legend-icon":"circle","legend-orient":"vertical",title:t.titleName,"label-align":"top","circle-center":["50%","50%"],"text-color":"#fff","graphic-text":t.graphicText,"graphic-left":"center","graphic-top":"middle","graphic-color":"#fff"}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},Tt=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"info"},[e("p",[e("span",[t._v("服务运行总数:")]),t._v("2300")]),e("p",[e("span",[t._v("服务运行成功数:")]),t._v("200")]),e("p",[e("span",[t._v("服务运行失败数:")]),t._v("300")])])}],Mt={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",chartData:[],legendTextStyle:{color:"#72F9FE",fontSize:"14px"},titleName:{name:"",align:"middle",size:"15",textStyle:{fontWeight:400}},colorArr:["#FAC920","#0A0D59"],graphicText:""}},created:function(){this.getStatData()},methods:{getStatData:function(){this.graphicText=(100*(2e3/2300).toFixed(4)).toFixed(2)+"%";var t=[{name:"服务运行成功数",num:2e3},{name:"服务运行失败数",num:300}],e=[];t.forEach((function(t,n){e.push({name:t.name,value:t.num})})),this.chartData=e}}},kt=Mt,Lt=(n("3f54"),Object(g["a"])(kt,Ct,Tt,!1,null,"80e8cba4",null)),Dt=Lt.exports,Et=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/line_long.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v(" 本月数据趋势 ")]),e("div",{staticClass:"box",staticStyle:{height:"90%",width:"90%"}},[t.xdata.length>0?e("EchartColumnar",{attrs:{"chart-id":"month-date","chart-type":[{type:"line",yAxisIndex:0},{type:"line",yAxisIndex:0}],"x-chart-num":2,"x-data":t.xdata,"y-data":t.ydata,"y-unit":t.yunit,"x-unit":t.xunit,left:"50",right:"50",top:"60","xytext-style":t.textStyle,"is-legend":!0,"legend-align":{location:"bottom",align:0},"legend-icon":"rect",color:t.colorArr,smooth:!1,"show-split-line":!1,"tooltip-format":t.tooltipFormat}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},Bt=[],It={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",textStyle:{xcolor:"#72F9FE",ycolor:"#fff"},colorArr:["#FB4671","#2CB0FF","#1E90FF"],title:{name:"",align:"center",size:"15",textStyle:{fontWeight:400}},dateArr:[],xdata:[],ydata:[],xunit:{name:"",align:"end",size:"12",lineColor:"#0C7CC5"},yunit:{name:"",align:"center",size:"12",lineColor:"#0C7CC5"}}},created:function(){this.getDate()},methods:{tooltipFormat:function(t){return"文件量:"+t[0].name+":"+t[0].value+"<br/>办理量:"+t[1].name+":"+t[1].value},getDate:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:this.moduleInfo.DayVisitsNum}).then((function(e){if("success"===e.code){var n=e.body.listdataDone,i=e.body.listdataFile,r=[],a=[],o=[];i.forEach((function(t){r.push(t.month),a.push(t.num)})),n.forEach((function(t){o.push(t.num)})),t.xdata=r,t.ydata=[a,o]}}),(function(e){t.$message.error(e)}))}}},Ot=It,Pt=(n("40d3"),Object(g["a"])(Ot,Et,Bt,!1,null,"a2004e2e",null)),Nt=Pt.exports,Ft=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/line_short.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v(" 系统访问分布 ")]),e("div",{staticClass:"box",staticStyle:{height:"90%",width:"90%"}},[t.chartData.length>0?e("EchartAnnular",{attrs:{"chart-id":"sys-visit2",alldata:t.chartData,radius:["40%","50%"],width:"60%",left:"30%",color:t.colorArr,formatter:"{b}:{d}%","is-label":!0,"is-label-line":!0,"is-legend":!0,"legend-left":"left","legend-top":"middle","legend-icon":"circle","legend-orient":"vertical",title:t.titleName,"circle-center":["40%","50%"],"text-color":"#fff","legend-text-style":t.legendTextStyle,"label-formatter":t.labelFormatter,"legend-formatter":t.legendFormatter,"graphic-text":"访问量","graphic-left":"46.5%","graphic-top":"middle","graphic-color":"#fff"}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},Ut=[],Rt={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",chartData:[],legendTextStyle:{color:"#72F9FE",fontSize:"14px"},titleName:{name:"",align:"middle",size:"15",textStyle:{fontWeight:400}},colorArr:["#379DD5","#FFBD00","#FF761B","#91BD3C","#2873C4","#AD4200","#636363","#A27100","#134578","#A5A5A5"]}},created:function(){var t=new Date,e=new Date(t.getTime()-2592e6);this.datevalue=[this.getDateStr(e),this.getDateStr(t)],this.getStatData()},methods:{formatDate:function(t){return t<10?"0"+t:t},getDateStr:function(t){if(t){var e=t.getFullYear(),n=this.formatDate(t.getMonth()+1),i=this.formatDate(t.getDate()),r=e+"-"+n+"-"+i;return r}},getStatData:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{startTime:this.datevalue[0]+" 00:00:00",endTime:this.datevalue[1]+" 23:59:59"},url:this.moduleInfo.PlatTermTodayVsCount}).then((function(e){if("success"===e.code){var n=e.body.data,i=[];n.forEach((function(t){var e=0;Object.keys(t).forEach((function(n){"type"!==n&&(e+=t[n])})),i.push({name:t.type,value:e})})),t.chartData=i}else t.$message({message:e.message,type:"warning"})}),(function(e){t.$message.error(e)}))},legendFormatter:function(t){return t},labelFormatter:function(t){return t.percent+"%"}}},jt=Rt,Ht=(n("a4c4"),Object(g["a"])(jt,Ft,Ut,!1,null,"31d71f51",null)),Yt=Ht.exports,zt={components:{TermTodayVsCount:Yt,MonthDate:Nt,BusinessOpen:G,DayVisitsNumber:tt,AreasActive:ot,RegisterUser:ht,BanwenCompany:yt,AreaVisitorProdCount:St,ServiceRunStatistics:Dt},props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{}},mounted:function(){}},Qt=zt,Vt=(n("e9c0"),Object(g["a"])(Qt,j,H,!1,null,"821ffdea",null)),Wt=Vt.exports,Gt={name:"Cockpit",components:{CockpitIndex:R,CockpitItem:Wt},data:function(){return{title:"运营管理驾驶舱",moduleInfo:{item_height:260,item_width_short:460,item_width_long:770,businessOpenUrl:"/platStatistics/BusinessOpen/getOrgOpenDistribute",areasActiveUrl:"/platStatistics/BusinessOpen/getRegionalActivityRate",RegisterUserUrl:"/platStatistics/BusinessOpen/getOrgOpenTrend",BanwenCompany:"/platStatistics/banwen/getBanwenByCompany",AreasVisitorProdCountUrl:"/platStatistics/platVisit/getPlatAreaVisitorProdCount",PlatTermTodayVsCount:"/platStatistics/platVisit/getPlatTermTodayVsCount",DayVisitsNum:"/platStatistics/doneAndtodo/getMainSysSetup",listdataDone:[],listNumber:[],onlinenumber:"",listBanwen:[],listdataFile:[]}}},created:function(){this.getDate()},methods:{getDate:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:this.moduleInfo.DayVisitsNum}).then((function(e){"success"===e.code&&(t.moduleInfo.listdataDone=e.body.listdataDone,t.moduleInfo.listNumber=e.body.listNumber,t.moduleInfo.onlinenumber=e.body.onlinenumber,t.moduleInfo.listBanwen=e.body.listBanwen,t.moduleInfo.listdataFile=e.body.listdataFile)}),(function(e){t.$message.error(e)}))}}},Kt=Gt,$t=Object(g["a"])(Kt,B,I,!1,null,null,null),qt=$t.exports,Xt=function(){var t=this,e=t._self._c;return e("CockpitIndex",{attrs:{title:t.title},scopedSlots:t._u([{key:"default",fn:function(){return[e("CockpitItem",{attrs:{"module-info":t.moduleInfo}})]},proxy:!0}])})},Jt=[],Zt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-wrapper"},[e("div",{staticClass:"app-bac"}),e("div",{staticClass:"app-container"},[e("div",{staticClass:"bac1 ZS"}),e("div",{staticClass:"bac2 ZS"}),e("div",{staticClass:"bac3 ZS"}),e("div",{staticClass:"bac4 ZS"}),e("div",{staticClass:"bac5 ZS"}),e("div",{staticClass:"bac6 ZS"}),e("div",{staticClass:"header",staticStyle:{background:"url(./images/w-imgs/cockpit/title-1.png) repeat center"}},[e("div",{staticClass:"bg-header"},[e("div",{staticClass:"t_title"},[t._v(" "+t._s(t.title)+" ")])])]),t._t("default")],2)])},te=[],ee={components:{},props:{title:{type:String,default:"运营管理驾驶舱"}},data:function(){return{}}},ne=ee,ie=(n("5aca"),Object(g["a"])(ne,Zt,te,!1,null,"27cb324c",null)),re=ie.exports,ae=function(){var t=this,e=t._self._c;return e("div",{staticClass:"data-main"},[e("div",{staticClass:"item-top",staticStyle:{background:"url(./images/w-imgs/cockpit/top-bar-bg.png) repeat center / 100% 100%"}},[t._m(0),e("div",{staticClass:"top_bar_data"},[e("div",{staticClass:"left"},[e("gw",{attrs:{"module-info":t.moduleInfo}})],1),e("div",{staticClass:"middle"},[e("db",{attrs:{"module-info":t.moduleInfo}})],1),e("div",{staticClass:"right"},[e("rs",{attrs:{"module-info":t.moduleInfo}})],1)])]),e("div",{staticClass:"item-box"},[e("div",{staticClass:"left"},[e("dbsw",{attrs:{"module-info":t.moduleInfo}}),e("bmrsfb",{attrs:{"module-info":t.moduleInfo}}),e("blqk",{attrs:{"module-info":t.moduleInfo}})],1),e("div",{staticClass:"middle"},[e("DayVisitsNumber",{attrs:{"module-info":t.moduleInfo}}),e("MonthDate",{attrs:{"module-info":t.moduleInfo}}),e("AreasActive",{attrs:{"module-info":t.moduleInfo}})],1),e("div",{staticClass:"right"},[e("AreaVisitorProdCount",{attrs:{"module-info":t.moduleInfo}}),e("TermTodayVsCount",{attrs:{"module-info":t.moduleInfo}}),e("ServiceRunStatistics",{attrs:{"module-info":t.moduleInfo}})],1)])])},oe=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"top-bar"},[e("div",{staticClass:"left"}),e("div",{staticClass:"middle"}),e("div",{staticClass:"right"})])}],se=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/echart_bg_small.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v("待办事项")]),t.stackXData.length>0?e("EchartStackColumnar",{attrs:{"chart-id":"stack-chart-dbsw",title:t.stackTitle,"x-data":t.stackXData,"y-data":t.stackYData,"is-legend":!1,"legend-data":t.stackLegendData,left:"30",right:"30",top:"30",bottom:"30","x-unit":t.xunit,"y-unit":t.yunit,"xytext-style":t.textStyle,"bar-width":"8px","bar-gradient":t.barGradient,"x-label-formatter":t.xLabelFormatter,"tooltip-format":t.tooltipFormat,"split-line-color":t.splitLineColor}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"180px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)},le=[],ue={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",stackYData:[],stackXData:[],datevalue:[],stackLegendData:[],textStyle:{xcolor:"#fff",ycolor:"#72F9FE"},xunit:{name:"单位",align:"end",size:"12",lineColor:"#0C7CC5"},yunit:{name:"办文数量",align:"center",size:"12",postion:"left",lineColor:"#0C7CC5"},barGradient:{type:!0,color:[{offset:0,color:"#e04478"},{offset:.59,color:"#3d788e"},{offset:1,color:"#162474"}]},splitLineColor:["#969cc0","#6e77a8","#e0e2ec","#adb2ce"]}},created:function(){},mounted:function(){this.getTerminalData()},methods:{getTerminalData:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"/platStatistics/banwen/getCockpitTodoListStatistics"}).then((function(e){if("success"===e.code){var n=e.body.vo.props;console.log("resList",n),t.stackYData=n.xData[0],t.stackLegendData=n.xTypeName,t.stackXData=n.yData}}),(function(e){t.$message.error(e)}))},xLabelFormatter:function(t,e){return t.length>4&&(t=t.substr(0,4)+"..."),t}}},ce=ue,de=(n("03e7"),Object(g["a"])(ce,se,le,!1,null,"0b61aa2b",null)),he=de.exports,fe=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/echart_bg_big.png') repeat center / 100% 100%",padding:"25px 0 0 0"}},[e("p",{staticClass:"ititle"},[t._v("日访问量")]),e("div",{staticStyle:{height:"90%",width:"90%"}},[t.alldata.length>0?e("EchartDashboard",{attrs:{"chart-id":"day-visite-echart",alldata:t.alldata,"circle-center":t.circleCenter,"start-angles":t.startAngle}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},pe=[];function ge(t){return ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ge(t)}function me(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */me=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),s=new D(i||[]);return r(o,"_invoke",{value:T(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function v(){}function y(){}function A(){}var b={};u(b,o,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==n&&i.call(w,o)&&(b=w);var x=A.prototype=v.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,a,o,s){var l=d(t[r],t,a);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==ge(c)&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var a;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return a=a?a.then(r,r):r()}})}function T(e,n,i){var r=h;return function(a,o){if(r===p)throw Error("Generator is already running");if(r===g){if("throw"===a)throw o;return{value:t,done:!0}}for(i.method=a,i.arg=o;;){var s=i.delegate;if(s){var l=M(s,i);if(l){if(l===m)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var u=d(e,n,i);if("normal"===u.type){if(r=i.done?g:f,u.arg===m)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=g,i.method="throw",i.arg=u.arg)}}}function M(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var a=d(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(ge(e)+" is not iterable")}return y.prototype=A,r(x,"constructor",{value:A,configurable:!0}),r(A,"constructor",{value:y,configurable:!0}),y.displayName=u(A,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var o=new C(c(t,n,i,r),a);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(x),u(x,l,"Generator"),u(x,o,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=E,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:E(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}function ve(t,e,n,i,r,a,o){try{var s=t[a](o),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(i,r)}function ye(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){ve(a,i,r,o,s,"next",t)}function s(t){ve(a,i,r,o,s,"throw",t)}o(void 0)}))}}var Ae={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",circleCenter:[["13%","50%"],["50%","50%"],["87%","50%"]],alldata:[],startAngle:[],max:[]}},mounted:function(){var t=this;this.getTerminalData(),setInterval((function(){t.getTerminalData()}),6e4)},methods:{getTerminalData:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:this.moduleInfo.DayVisitsNum}).then(function(){var e=ye(me().mark((function e(n){var i,r;return me().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("success"!==n.code){e.next=8;break}return i={},e.next=4,t.$http({method:"post",url:"/gwgl/sysLogStatistics"}).then((function(t){"success"===t.code&&(console.log("resp",t),i=t.body)}));case 4:r=n.body.zxyhsMax,t.max=300*Math.ceil(r/300),t.alldata=[{value:Number(i.rywl),name:"日业务量",min:0,max:300*Math.ceil(Number(i.rywlMax)/300),splitNumber:4},{value:n.body.zxyhs,name:"在线用户数",min:0,max:t.max,splitNumber:4},{value:(n.body.pjzxsc/60).toFixed(2),name:"平均在线时长(时)",min:0,max:(n.body.pjzxsc/60).toFixed(2)>6?12:6,splitNumber:6}],t.alldata.forEach((function(e){var n=Math.pow(10,e.value.toString().length-1),i=e.value/n;t.startAngle.push(Math.ceil(i)*n),t.max.push(Math.ceil(e.value/n)*n<10?10:Math.ceil(e.value/n)*n)}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){t.$message.error(e)}))}}},be=Ae,_e=(n("7d29"),Object(g["a"])(be,fe,pe,!1,null,"13cf3391",null)),we=_e.exports,xe=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/echart_bg_big.png') repeat center / 100% 100%"}},[e("p",{staticClass:"ititle"},[t._v("近三月办文数量")]),e("div",{staticStyle:{height:"90%",width:"90%"}},[t.xdata.length>0?e("EchartColumnar",{attrs:{"data-zoom":t.dataZoom,"chart-id":"active-area",title:t.title,"chart-type":[{type:"bar",yAxisIndex:0},{type:"bar",yAxisIndex:0}],"x-data":t.xdata,"y-data":t.ydata,"y-unit":t.yunit,"x-unit":t.xunit,color:t.color,left:"0",right:"30",top:"30",bottom:"20","x-label-rotate":45,"xytext-style":t.textStyle,"bar-width":t.barWidth,"show-split-line":!1,"x-type-name":t.xTypeName,"x-chart-num":2,"is-legend":!0,"legend-data":t.stackLegendData,"legend-align":{location:"bottom",align:0}}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"180px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},Se=[],Ce={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{dataZoom:{type:"inside",minValueSpan:5,maxValueSpan:5},img:"./images/w-imgs/nomessage.png",barWidth:{type:!0,width:"20px"},textStyle:{xcolor:"#fff",ycolor:"#19ECFF"},title:{name:"",align:"center",size:"15",textStyle:{fontWeight:400}},dateArr:[],xdata:[],ydata:[],xunit:{name:"",align:"end",size:"12",lineColor:"#0C7CC5"},yunit:{name:"",align:"center",size:"12",lineColor:"#0C7CC5"},xTypeName:[],color:["#546EC6","#92CA79"]}},created:function(){this.dateChange()},methods:{initDate:function(){var t=new Date,e=new Date(t.getTime()-2592e6);return[e,t]},dateChange:function(){this.dateArr=this.initDate(),this.getStatData(this.dateArr[0],this.dateArr[1])},getStatData:function(t,e){var n=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"/platStatistics/banwen/getCockpitNumberOfDocumentsStatistics"}).then((function(t){if("success"===t.code){console.log("待办三个月内办文数量",t);var e=t.body.vo.props;n.xdata=e.xData[0],n.xTypeName=e.xTypeName,n.ydata=e.yData}else n.$message({message:t.message,type:"warning"})}),(function(t){n.$message.error(t)}))}}},Te=Ce,Me=(n("d2b7"),Object(g["a"])(Te,xe,Se,!1,null,"c4f8ce54",null)),ke=Me.exports,Le=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/echart_bg_small.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v("部门人数分布")]),e("div",{staticStyle:{height:"90%",width:"90%"}},[0!==Object.keys(t.option).length?e("bmrsfb",{attrs:{"chart-id":"bmrsfb_echart",option:t.option}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},De=[],Ee=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{width:"100%",height:"100%"},attrs:{id:t.chartId}})},Be=[],Ie=n("313e"),Oe={name:"Bmrsfb",props:{chartId:{type:String,default:function(){return"myCharts"}},option:{type:Object,default:function(){return{}}}},data:function(){return{myChart:null}},watch:{alldata:function(t){this.creatEcharts()}},created:function(){var t=this;window.addEventListener("resize",this.onresize),this.$bus.on("toggleClick",(function(){setTimeout((function(){t.$nextTick((function(){t.onresize()}))}),300)}))},beforeDestroy:function(){window.removeEventListener("resize",this.onresize),this.$bus.off("toggleClick",this.onresize)},mounted:function(){var t=this;this.creatEcharts(),setTimeout((function(){t.onresize()}),300)},methods:{creatEcharts:function(){var t=Ie["b"](document.getElementById(this.chartId)),e=this.option;t.setOption(e,!0),this.myChart=t},onresize:function(){null!==this.myChart&&this.myChart.resize()}}},Pe=Oe,Ne=Object(g["a"])(Pe,Ee,Be,!1,null,"48c35286",null),Fe=Ne.exports,Ue={components:{bmrsfb:Fe},props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",option:{}}},created:function(){this.dateChange()},methods:{formatDate:function(){var t=new Date,e=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0");return"".concat(e,"-").concat(n,"-").concat(i)},initDate30:function(){var t=new Date,e=new Date(t.getTime()-2592e6);return[e,t]},initDate365:function(){var t=new Date,e=new Date(t.getTime()-31536e6);return[e,t]},dateChange:function(){this.getStatData()},getStatData:function(t,e){var n=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"rsgl/tjfx/getrRstj?type=1"}).then((function(t){if("success"===t.code){var e=t.body.json;n.getOption(e)}else n.$message({message:t.message,type:"warning"})}),(function(t){n.$message.error(t)}))},getOption:function(t){var e=this;this.option={title:{},tooltip:{trigger:"axis",backgroundColor:"rgba(255, 255, 255)",axisPointer:{lineStyle:{opacity:.2}}},legend:{bottom:"bottom",show:!1,data:["部门人数"]},radar:[{indicator:[],center:["50%","55%"],radius:"50%",axisLine:{show:!1},splitArea:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(30, 65, 124, 1)"}}}],series:[{type:"radar",tooltip:{trigger:"item"},areaStyle:{},color:"#5AD8A6",data:[{value:[],name:"部门人数"}]}]};var n=Object.keys(t.map);n.forEach((function(n,i){"合计"!==n&&i<8&&(e.option.radar[0].indicator.push({text:n}),e.option.series[0].data[0].value.push(t.map[n]["合计"]))}))}}},Re=Ue,je=(n("92ae"),Object(g["a"])(Re,Le,De,!1,null,"463eb39a",null)),He=je.exports,Ye=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/echart_bg_small.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v("办理情况")]),t.xdata.length>0?e("EchartColumnar",{attrs:{"chart-id":"month-date","chart-type":[{type:"line",yAxisIndex:0},{type:"line",yAxisIndex:0}],"x-chart-num":2,"x-data":t.xdata,"y-data":t.ydata,"y-unit":t.yunit,"x-unit":t.xunit,left:"50",right:"50",top:"60",bottom:"20","xytext-style":t.textStyle,"is-legend":!0,"legend-align":{location:"bottom",align:0},"legend-icon":"rect",color:t.colorArr,smooth:!1,"show-split-line":!1,"tooltip-format":t.tooltipFormat,"x-type-name":t.xTypeName}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"180px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)},ze=[],Qe={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",textStyle:{xcolor:"#72F9FE",ycolor:"#fff"},colorArr:["#FB4671","#2CB0FF","#1E90FF"],title:{name:"",align:"center",size:"15",textStyle:{fontWeight:400}},xdata:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],ydata:[["100.00","98.94","97.06","93.75","94.81","93.50","0.00","0.00","0.00","0.00","0.00","0.00"],["0.00","0.00","0.00","0.00","1.91","0.00","0.00","0.00","0.00","0.00","0.00","0.00"]],xunit:{name:"",align:"end",size:"12",lineColor:"#0C7CC5"},yunit:{name:"",align:"center",size:"12",lineColor:"#0C7CC5"},xTypeName:[{icon:"circle",name:"待办办结率"},{icon:"circle",name:"办理超期率"}]}},created:function(){this.getDate()},methods:{tooltipFormat:function(t){return t},getDate:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:this.moduleInfo.blqk}).then((function(e){"success"===e.code&&(console.log(119,e),t.xdata=e.body.vo.props.xData[0],t.ydata=e.body.vo.props.yData,t.xTypeName=e.body.vo.props.xTypeName)}),(function(e){t.$message.error(e)}))}}},Ve=Qe,We=(n("bdc9"),Object(g["a"])(Ve,Ye,ze,!1,null,"7ef1b8f4",null)),Ge=We.exports,Ke=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/echart_bg_small.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v(" 督办分析 ")]),e("div",{staticStyle:{height:"90%",width:"90%"}},[e("div",{staticClass:"top"},[e("div",{staticClass:"top_content"},[e("div",{staticClass:"num"},[t._v(t._s(t.data[0].count))]),e("div",{staticClass:"content"},[t._v(t._s(t.data[0].subject))])]),e("div",{staticClass:"top_content"},[e("div",{staticClass:"num"},[t._v(t._s(t.data[1].count))]),e("div",{staticClass:"content"},[t._v(t._s(t.data[1].subject))])]),e("div",{staticClass:"top_content"},[e("div",{staticClass:"num"},[t._v(t._s(t.data[2].count))]),e("div",{staticClass:"content"},[t._v(t._s(t.data[2].subject))])])]),e("div",{staticClass:"footer"},[e("div",{staticClass:"footer_content"},[e("div",{staticClass:"num"},[t._v(t._s(t.data[3].count))]),e("div",{staticClass:"title"},[t._v(t._s(t.data[3].subject))])]),e("div",{staticClass:"footer_content"},[e("div",{staticClass:"num"},[t._v(t._s(t.data[4].count))]),e("div",{staticClass:"title"},[t._v(t._s(t.data[4].subject))])]),e("div",{staticClass:"footer_content"},[e("div",{staticClass:"num"},[t._v(t._s(t.data[5].count))]),e("div",{staticClass:"title"},[t._v(t._s(t.data[5].subject))])]),e("div",{staticClass:"footer_content"},[e("div",{staticClass:"num"},[t._v(t._s(t.data[6].count))]),e("div",{staticClass:"title"},[t._v(t._s(t.data[6].subject))])])])])])},$e=[],qe={components:{},props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{data:[]}},created:function(){this.getData()},methods:{getData:function(){var t=this;this.$http({method:"post",url:"/dbgl/dbglStatistics/statictis/getCockpitSupervisoryAnalysisStatistics"}).then((function(e){"success"===e.code&&(console.log(e),t.data=e.body.data)}))}}},Xe=qe,Je=(n("0dc1"),Object(g["a"])(Xe,Ke,$e,!1,null,"79a91d08",null)),Ze=Je.exports,tn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/echart_bg_small.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v(" 运行服务成功率 ")]),t.chartData.length>0?e("div",{staticClass:"box",staticStyle:{height:"90%",width:"90%"}},[e("div",{staticClass:"info"},[e("p",{staticClass:"title"},[e("span",[t._v("服务运行总数:")]),t._v(t._s(t.total))]),e("p",{staticClass:"title"},[e("span",[t._v("服务运行成功数:")]),t._v(t._s(t.successNum))]),e("p",{staticClass:"title"},[e("span",[t._v("服务运行失败数:")]),t._v(t._s(t.exceptionNum))])]),t.chartData.length>0?e("EchartAnnular",{attrs:{"chart-id":"servuce-success",alldata:t.chartData,radius:["40%","50%"],color:t.colorArr,formatter:"{b}:{d}%","is-label":!1,"legend-left":"left","legend-top":"middle","legend-icon":"circle","legend-orient":"vertical",title:t.titleName,"label-align":"top","circle-center":["50%","50%"],"text-color":"#fff","graphic-text":t.graphicText,"graphic-left":"center","graphic-top":"middle","graphic-color":"#fff"}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1):t._e()])},en=[],nn={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",chartData:[],legendTextStyle:{color:"#72F9FE",fontSize:"14px"},titleName:{name:"",align:"middle",size:"15",textStyle:{fontWeight:400}},colorArr:["#FAC920","#0A0D59"],graphicText:"",total:0,exceptionNum:0,successNum:0}},created:function(){this.getStatData()},methods:{getStatData:function(){var t=this,e=new Date,n=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0"),a=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),s=String(e.getSeconds()).padStart(2,"0"),l=n+"-"+i+"-"+r+" "+a+":"+o+":"+s;this.$http({method:"post",url:"/platStatistics/BusinessOpen/getServiceRunStatistics?serviceName=&startTime=2022-06-01 00:00:00&endTime=".concat(l)}).then((function(e){if("success"===e.code){console.log(e);var n=0,i=0,r=0;e.body.listdata.forEach((function(t){n+=t.successNum,i+=t.exceptionNum,r+=t.total})),t.total=r,t.exceptionNum=i,t.successNum=n;var a=[{name:"服务运行成功数",num:n},{name:"服务运行失败数",num:i}],o=[];a.forEach((function(t,e){o.push({name:t.name,value:t.num})})),t.chartData=o,t.graphicText=(100*(n/r).toFixed(4)).toFixed(2)+"%"}}))}}},rn=nn,an=(n("b177"),Object(g["a"])(rn,tn,en,!1,null,"7cdb9555",null)),on=an.exports,sn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/echart_bg_big.png') repeat center / 100% 100%"}},[e("p",{staticClass:"ititle"},[t._v(" 员工画像 ")]),e("div",{staticClass:"box",staticStyle:{height:"90%",width:"90%"}},[e("gl",{attrs:{"module-info":t.moduleInfo}}),e("nl",{attrs:{"module-info":t.moduleInfo}}),e("xl",{attrs:{"module-info":t.moduleInfo}})],1)])},ln=[],un=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item_s"},[e("EchartStackColumnar",{attrs:{"chart-id":"stack-chart-ban",title:t.stackTitle,"x-data":t.stackXData,"y-data":t.stackYData,"is-legend":!0,"legend-data":t.stackLegendData,left:"10",right:"10",top:"27",bottom:"30","x-unit":t.xunit,"y-unit":t.yunit,"xytext-style":t.textStyle,"bar-width":"15px","bar-gradient":t.barGradient,"x-label-formatter":t.xLabelFormatter,color:t.color,"series-label-show":t.seriesLabelShow,"split-line-color":t.splitLineColor}}),e("p",{staticClass:"ititle"},[t._v("年龄")])],1)},cn=[],dn={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",stackYData:["18-25岁","26-30岁","30-45岁","45-50岁","50岁以上"],stackXData:[[333,46,55,2,10]],datevalue:[],stackLegendData:[{icon:"rect",name:"员工人数",textStyle:{color:"#8592A6",fontSize:"12px"}}],textStyle:{xcolor:"#fff",ycolor:"#19ECFF"},xunit:{align:"end",size:"12",lineColor:"#ffffff"},yunit:{align:"center",size:"12",postion:"left",lineColor:"#0669b5"},barGradient:{type:!1,color:[{offset:0,color:"rgba(88, 150, 252, 0.2)"},{offset:.5,color:"rgba(88, 150, 252, 0.67)"},{offset:1,color:"rgba(251, 70, 113, 0.9)"}]},color:"#09c9c5",seriesLabelShow:!1,splitLineColor:["#969cc0","#6e77a8","#e0e2ec","#adb2ce"]}},created:function(){},mounted:function(){this.getTerminalData()},methods:{getTerminalData:function(){var t=this;this.$http({method:"GET",contentType:"application/x-www-form-urlencoded",url:"rsgl/tjfx/getAgeStatistic"}).then((function(e){if("success"===e.code){var n=e.body.vo.props;t.stackYData=n.xData[0],t.stackXData=n.yData}}),(function(e){t.$message.error(e)}))},xLabelFormatter:function(t,e){return t}}},hn=dn,fn=(n("2ac1"),Object(g["a"])(hn,un,cn,!1,null,"2d171a31",null)),pn=fn.exports,gn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item_s"},[e("EchartAnnular",{attrs:{"chart-id":"gl_xl",alldata:t.alldata,radius:t.radius,color:t.colorpie,formatter:t.formatter,"is-label":t.isLabel,"is-label-line":t.isLabelLine,"is-legend":t.isLegend,"legend-left":t.legendLeft,"legend-top":t.legendTop,"legend-icon":t.legendIcon,"legend-orient":t.legendOrient,title:t.title,"label-align":t.labelAlign,"circle-center":t.circleCenter,"legend-formatter":t.legendFormatter,"label-formatter":t.labelFormatter,"label-text-style-text-color":t.textColor,"legend-text-style":t.legendTextStyle,margin:t.margin,"graphic-text":t.graphicText,"graphic-left":t.graphicLeft,"graphic-top":t.graphicTop,"legend-type":t.legendType,"legend-page-icon":t.legendPageIcon,"legend-page-text-style":t.legendPageTextStyle}}),e("div",{staticClass:"heji"},[e("div",{staticStyle:{"font-size":"12px",color:"#d1d4e3"}},[t._v("合计")]),e("div",{staticStyle:{"font-size":"20px"}},[t._v(t._s(t.numHeji))])]),e("p",{staticClass:"ititle"},[t._v("学历")])],1)},mn=[];function vn(t){return vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(t)}function yn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */yn=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),s=new D(i||[]);return r(o,"_invoke",{value:T(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function v(){}function y(){}function A(){}var b={};u(b,o,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==n&&i.call(w,o)&&(b=w);var x=A.prototype=v.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,a,o,s){var l=d(t[r],t,a);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==vn(c)&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var a;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return a=a?a.then(r,r):r()}})}function T(e,n,i){var r=h;return function(a,o){if(r===p)throw Error("Generator is already running");if(r===g){if("throw"===a)throw o;return{value:t,done:!0}}for(i.method=a,i.arg=o;;){var s=i.delegate;if(s){var l=M(s,i);if(l){if(l===m)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var u=d(e,n,i);if("normal"===u.type){if(r=i.done?g:f,u.arg===m)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=g,i.method="throw",i.arg=u.arg)}}}function M(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var a=d(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(vn(e)+" is not iterable")}return y.prototype=A,r(x,"constructor",{value:A,configurable:!0}),r(A,"constructor",{value:y,configurable:!0}),y.displayName=u(A,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var o=new C(c(t,n,i,r),a);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(x),u(x,l,"Generator"),u(x,o,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=E,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:E(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}function An(t,e,n,i,r,a,o){try{var s=t[a](o),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(i,r)}function bn(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){An(a,i,r,o,s,"next",t)}function s(t){An(a,i,r,o,s,"throw",t)}o(void 0)}))}}var _n={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",alldata:[],radius:["30%","50%"],colorpie:[],formatter:"{b}: {c}</br>{d}%",isLabel:!0,isLabelLine:!0,legendLeft:"center",legendTop:"bottom",legendOrient:"horizontal",labelAlign:"outside",circleCenter:["50%","50%"],textColor:"#FFFFFF",legendTextStyle:{color:"#8592a6",fontSize:"12px"},treemapColor:[],treeData:[],margin:{top:10,right:"2%",bottom:20,left:"2%"},graphicText:"",graphicType:"text",graphicLeft:"center",graphicTop:"middle",graphicColor:"#16cbe7",graphicFontSize:24,title:"工龄",isLegend:!0,legendIcon:"rect",legendType:"scroll",numHeji:0,legendPageIcon:{legendPageIconColor:"#8592A6",legendPageIconInactiveColor:"#8592A6"},legendPageTextStyle:{color:"#ffffff"}}},created:function(){},mounted:function(){this.getTerminalData()},methods:{formatDate:function(){var t=new Date,e=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0");return"".concat(e,"-").concat(n,"-").concat(i)},getTerminalData:function(){var t=this;return bn(yn().mark((function e(){return yn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$http({method:"get",contentType:"application/x-www-form-urlencoded",url:"rsgl/tjfx/getEducationStatistics"}).then((function(e){if("success"===e.code){var n=0;e.body.vo.props.alldata.forEach((function(t){t.value=Number(t.value),n+=t.value})),t.numHeji=n,t.alldata=e.body.vo.props.alldata}}),(function(e){t.$message.error(e)}));case 1:case"end":return e.stop()}}),e)})))()},legendFormatter:function(t){return t},labelFormatter:function(t){return t.percent+"%"}}},wn=_n,xn=(n("1830"),Object(g["a"])(wn,gn,mn,!1,null,"eb9bd830",null)),Sn=xn.exports,Cn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item_s"},[t.isShow?e("EchartAnnular",{attrs:{"chart-id":"gl_gl",alldata:t.alldata,radius:t.radius,color:t.colorpie,formatter:t.formatter,"is-label":t.isLabel,"is-label-line":t.isLabelLine,"is-legend":t.isLegend,"legend-left":t.legendLeft,"legend-top":t.legendTop,"legend-icon":t.legendIcon,"legend-orient":t.legendOrient,title:t.title,"label-align":t.labelAlign,"circle-center":t.circleCenter,"legend-formatter":t.legendFormatter,"label-formatter":t.labelFormatter,"label-text-style-text-color":t.textColor,"legend-text-style":t.legendTextStyle,margin:t.margin,"graphic-text":t.graphicText,"graphic-left":t.graphicLeft,"graphic-top":t.graphicTop,"legend-type":t.legendType,"legend-page-icon":t.legendPageIcon,"legend-page-text-style":t.legendPageTextStyle}}):t._e(),e("p",{staticClass:"ititle"},[t._v("工龄")])],1)},Tn=[];function Mn(t){return Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(t)}function kn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */kn=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),s=new D(i||[]);return r(o,"_invoke",{value:T(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function v(){}function y(){}function A(){}var b={};u(b,o,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==n&&i.call(w,o)&&(b=w);var x=A.prototype=v.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,a,o,s){var l=d(t[r],t,a);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==Mn(c)&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var a;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return a=a?a.then(r,r):r()}})}function T(e,n,i){var r=h;return function(a,o){if(r===p)throw Error("Generator is already running");if(r===g){if("throw"===a)throw o;return{value:t,done:!0}}for(i.method=a,i.arg=o;;){var s=i.delegate;if(s){var l=M(s,i);if(l){if(l===m)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var u=d(e,n,i);if("normal"===u.type){if(r=i.done?g:f,u.arg===m)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=g,i.method="throw",i.arg=u.arg)}}}function M(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var a=d(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(Mn(e)+" is not iterable")}return y.prototype=A,r(x,"constructor",{value:A,configurable:!0}),r(A,"constructor",{value:y,configurable:!0}),y.displayName=u(A,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var o=new C(c(t,n,i,r),a);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(x),u(x,l,"Generator"),u(x,o,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=E,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:E(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}function Ln(t,e,n,i,r,a,o){try{var s=t[a](o),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(i,r)}function Dn(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){Ln(a,i,r,o,s,"next",t)}function s(t){Ln(a,i,r,o,s,"throw",t)}o(void 0)}))}}var En={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{isShow:!1,img:"./images/w-imgs/nomessage.png",alldata:[{value:0,name:"1年以下"},{value:0,name:"1年-3年"},{value:0,name:"3年-5年"},{value:0,name:"5年-10年"},{value:0,name:"10年以上"}],radius:["0","50%"],colorpie:[],formatter:"{b}: {c}</br>{d}%",isLabel:!0,isLabelLine:!0,legendLeft:"center",legendTop:"bottom",legendOrient:"horizontal",labelAlign:"outside",circleCenter:["50%","50%"],textColor:"#FFFFFF",legendTextStyle:{color:"#8592a6",fontSize:"12px"},margin:{top:10,right:"2%",bottom:20,left:"2%"},graphicText:"",graphicType:"text",graphicLeft:"center",graphicTop:"middle",graphicColor:"#16cbe7",graphicFontSize:24,title:"工龄",isLegend:!0,legendIcon:"rect",legendType:"scroll",legendPageIcon:{legendPageIconColor:"#8592A6",legendPageIconInactiveColor:"#8592A6"},legendPageTextStyle:{color:"#ffffff"}}},created:function(){},mounted:function(){this.getTerminalData()},methods:{formatDate:function(){var t=new Date,e=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0");return"".concat(e,"-").concat(n,"-").concat(i)},getTerminalData:function(){var t=this;return Dn(kn().mark((function e(){var n;return kn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.formatDate();case 2:n=e.sent,t.$http({method:"GET",contentType:"application/x-www-form-urlencoded",url:"rsgl/tjfx/getSlStatistic?date="+n}).then((function(e){if("success"===e.code){for(var n=e.body.list,i=t.alldata,r=0;r<n.length;r++){var a=n[r],o=function(t){if("DEPARTMENT"!==t&&"TJORG_ID"!==t&&"合计"!==t){var e=i.findIndex((function(e){return e.name===t}));-1!==e&&(i[e].value=Number(Number(i[e].value)+a[t]))}};for(var s in a)o(s)}console.log("工龄",i),t.alldata=i,t.isShow=!0}}),(function(e){t.$message.error(e)}));case 4:case"end":return e.stop()}}),e)})))()},legendFormatter:function(t){return t},labelFormatter:function(t){return t.percent+"%"}}},Bn=En,In=(n("0c5f"),Object(g["a"])(Bn,Cn,Tn,!1,null,"3533d6b3",null)),On=In.exports,Pn={components:{nl:pn,xl:Sn,gl:On},props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{}},created:function(){},methods:{}},Nn=Pn,Fn=(n("6719"),Object(g["a"])(Nn,sn,ln,!1,null,"b77cfa44",null)),Un=Fn.exports,Rn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/echart_bg_small.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v(" 系统访问分布 ")]),e("div",{staticClass:"box",staticStyle:{height:"90%",width:"90%"}},[t.chartData.length>0?e("EchartAnnular",{attrs:{"chart-id":"sys-visit2",alldata:t.chartData,radius:["10%","60%"],color:t.colorArr,formatter:t.formatter,"is-label":!0,"is-label-line":!0,"is-legend":!0,"legend-left":"left","legend-top":"middle","legend-icon":"rect","legend-orient":"vertical","circle-center":["65%","50%"],"text-color":"#fff","legend-text-style":t.legendTextStyle,"label-formatter":t.labelFormatter,"legend-formatter":t.legendFormatter,"rose-type":"area","border-radius":3,"label-line-height":30,"label-line-length":{length1:10,length2:10},"align-to":t.alignTo,"label-text-style-text-color":t.textColor,"label-align":"outside"}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},jn=[],Hn={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",chartData:[],legendTextStyle:{color:"#ffffff",fontSize:"12px"},textColor:"#ffffff",colorArr:["#379DD5","#FFBD00","#FF761B","#91BD3C","#2873C4","#AD4200","#636363","#A27100","#134578","#A5A5A5"],alignTo:"labelLine",formatter:"{b}:{d}%"}},created:function(){var t=new Date,e=new Date(t.getTime()-2592e6);this.datevalue=[this.getDateStr(e),this.getDateStr(t)],this.getStatData()},methods:{formatDate:function(t){return t<10?"0"+t:t},getDateStr:function(t){if(t){var e=t.getFullYear(),n=this.formatDate(t.getMonth()+1),i=this.formatDate(t.getDate()),r=e+"-"+n+"-"+i;return r}},getStatData:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"/platStatistics/BusinessOpen/getCockpitSystemAccessDistributionStatistics"}).then((function(e){if("success"===e.code){var n=e.body.vo.props.alldata;n.forEach((function(t){t.value=Number(t.value)})),t.chartData=n}else t.$message({message:e.message,type:"warning"})}),(function(e){t.$message.error(e)}))},legendFormatter:function(t){return t},labelFormatter:function(t){return t.percent+"%"}}},Yn=Hn,zn=(n("6dad"),Object(g["a"])(Yn,Rn,jn,!1,null,"e541d240",null)),Qn=zn.exports,Vn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item"},[e("div",{staticClass:"gw_data"},[e("div",{staticClass:"count"},[t._v(t._s(t.dataList[0].count))]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[0].subject))])]),e("div",{staticClass:"topBar_border"}),e("div",{staticClass:"gw_data"},[e("div",{staticClass:"count"},[t._v(t._s(t.dataList[1].count))]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[1].subject))])]),e("div",{staticClass:"topBar_border"}),e("div",{staticClass:"gw_data"},[e("div",{staticClass:"commission count"},[t._v(t._s(t.dataList[2].count))]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[2].subject))])]),e("div",{staticClass:"topBar_border"}),e("div",{staticClass:"gw_data"},[e("div",{staticClass:"count"},[t._v(t._s(t.dataList[3].count)),e("span",{staticStyle:{"font-size":"14px"}},[t._v("%")])]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[3].subject))])])])},Wn=[],Gn={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",option:{},dataList:[{count:0,subject:"督办件数"},{count:0,subject:"已完成"},{count:0,subject:"待办"},{count:0,subject:"完成率"},{count:0,subject:"公文办结率"}]}},created:function(){this.dateChange()},methods:{initDate30:function(){var t=new Date,e=new Date(t.getTime()-2592e6);return[e,t]},initDate365:function(){var t=new Date,e=new Date(t.getTime()-31536e6);return[e,t]},dateChange:function(){this.getStatData()},getStatData:function(t,e){var n=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"/dbgl/dbglStatistics/statictis/getCockpitDBStatistics"}).then((function(t){"success"===t.code?(n.dataList=t.body.data,console.log(n.dataList,"this.dataList")):n.$message({message:t.message,type:"warning"})}),(function(t){n.$message.error(t)})),this.getOption()},getOption:function(){}}},Kn=Gn,$n=(n("ba75"),Object(g["a"])(Kn,Vn,Wn,!1,null,"006c2a84",null)),qn=$n.exports,Xn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item"},[e("div",{staticClass:"gw_data"},[e("div",{staticClass:"count"},[t._v(t._s(t.dataList[0].count))]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[0].subject))])]),e("div",{staticClass:"topBar_border"}),e("div",{staticClass:"gw_data"},[e("div",{staticClass:"count"},[t._v(t._s(t.dataList[1].count))]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[1].subject))])]),e("div",{staticClass:"topBar_border"}),e("div",{staticClass:"gw_data"},[e("div",{staticClass:"commission count"},[t._v(t._s(t.dataList[2].count))]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[2].subject))])]),e("div",{staticClass:"topBar_border"}),e("div",{staticClass:"gw_data"},[e("div",{staticClass:"count"},[t._v(t._s(t.dataList[3].count)),e("span",{staticStyle:{"font-size":"14px"}},[t._v("%")])]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[3].subject))])])])},Jn=[],Zn={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",option:{},dataList:[{count:0,subject:"公文数量"},{count:0,subject:"已办结"},{count:0,subject:"待办"},{count:0,subject:"公文办结率"},{count:0,subject:"公文办结率"}]}},created:function(){this.dateChange()},methods:{initDate30:function(){var t=new Date,e=new Date(t.getTime()-2592e6);return[e,t]},initDate365:function(){var t=new Date,e=new Date(t.getTime()-31536e6);return[e,t]},dateChange:function(){this.getStatData()},getStatData:function(t,e){var n=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"/platStatistics/banwen/getCockpitGWStatistics"}).then((function(t){"success"===t.code?(n.dataList=t.body.data,console.log(n.dataList,"this.dataList")):n.$message({message:t.message,type:"warning"})}),(function(t){n.$message.error(t)})),this.getOption()},getOption:function(){}}},ti=Zn,ei=(n("148b"),Object(g["a"])(ti,Xn,Jn,!1,null,"4dd8ee11",null)),ni=ei.exports,ii=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item"},[e("div",{staticClass:"gw_data"},[e("div",{staticClass:"count"},[t._v(t._s(t.dataList[0].count))]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[0].subject))])]),e("div",{staticClass:"topBar_border"}),e("div",{staticClass:"gw_data"},[e("div",{staticClass:"commission count"},[t._v(t._s(t.dataList[1].count))]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[1].subject))])]),e("div",{staticClass:"topBar_border"}),e("div",{staticClass:"gw_data"},[e("div",{staticClass:"commission count"},[t._v(t._s(t.dataList[2].count))]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[2].subject))])]),e("div",{staticClass:"topBar_border"}),e("div",{staticClass:"gw_data"},[e("div",{staticClass:"count"},[t._v(t._s(t.dataList[3].count)),e("span",{staticStyle:{"font-size":"14px"}},[t._v("岁")])]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[3].subject))])])])},ri=[],ai={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",option:{},dataList:[{count:0,subject:"在职人数"},{count:0,subject:"待入职"},{count:0,subject:"待转正"},{count:0,subject:"平均年龄"},{count:0,subject:"公文办结率"}]}},created:function(){this.dateChange()},methods:{initDate30:function(){var t=new Date,e=new Date(t.getTime()-2592e6);return[e,t]},initDate365:function(){var t=new Date,e=new Date(t.getTime()-31536e6);return[e,t]},dateChange:function(){this.getStatData()},getStatData:function(t,e){var n=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"/rsgl/archiveInfo/getCockpitRSStatistics"}).then((function(t){"success"===t.code?(n.dataList=t.body.data,console.log(n.dataList,"this.dataList")):n.$message({message:t.message,type:"warning"})}),(function(t){n.$message.error(t)})),this.getOption()},getOption:function(){}}},oi=ai,si=(n("115a"),Object(g["a"])(oi,ii,ri,!1,null,"34a3ca80",null)),li=si.exports,ui={components:{TermTodayVsCount:Qn,MonthDate:Un,dbsw:he,DayVisitsNumber:we,AreasActive:ke,bmrsfb:He,blqk:Ge,AreaVisitorProdCount:Ze,ServiceRunStatistics:on,db:qn,gw:ni,rs:li},props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{}},mounted:function(){}},ci=ui,di=(n("dca3"),Object(g["a"])(ci,ae,oe,!1,null,"42d38e3a",null)),hi=di.exports,fi={name:"Cockpit1",components:{CockpitIndex:re,CockpitItem:hi},data:function(){return{title:"运营管理驾驶舱",moduleInfo:{item_height:260,item_width_short:460,item_width_long:770,businessOpenUrl:"/platStatistics/BusinessOpen/getOrgOpenDistribute",areasActiveUrl:"/platStatistics/BusinessOpen/getRegionalActivityRate",RegisterUserUrl:"/platStatistics/BusinessOpen/getOrgOpenTrend",BanwenCompany:"/platStatistics/banwen/getBanwenByCompany",AreasVisitorProdCountUrl:"/platStatistics/platVisit/getPlatAreaVisitorProdCount",PlatTermTodayVsCount:"/platStatistics/platVisit/getPlatTermTodayVsCount",DayVisitsNum:"/platStatistics/doneAndtodo/getMainSysSetup",listdataDone:[],listNumber:[],onlinenumber:"",listBanwen:[],listdataFile:[],Bmrsfb:"",dbsw:"",blqk:"/platStatistics/banwen/getCockpitHandlingSituationStatistics"}}},created:function(){this.getDate()},mounted:function(){document.title="运营管理驾驶舱"},methods:{getDate:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:this.moduleInfo.DayVisitsNum}).then((function(e){"success"===e.code&&(t.moduleInfo.listdataDone=e.body.listdataDone,t.moduleInfo.listNumber=e.body.listNumber,t.moduleInfo.onlinenumber=e.body.onlinenumber,t.moduleInfo.listBanwen=e.body.listBanwen,t.moduleInfo.listdataFile=e.body.listdataFile)}),(function(e){t.$message.error(e)}))}}},pi=fi,gi=(n("2daf"),Object(g["a"])(pi,Xt,Jt,!1,null,"376ba417",null)),mi=gi.exports,vi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"simulateLeft"},["simulate"===t.pageType?e("div",[e("div",{staticClass:"leftTitle"},[t._v("场景基本信息")]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("场景名称")]),e("div",[t._v(t._s(t.scene.name||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("场景类型")]),e("div",[t._v(t._s(t.changeType(t.scene.type)||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("创建人")]),e("div",[t._v(t._s(t.scene.createName||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("创建时间")]),e("div",[t._v(t._s(t.scene.createTime||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("更新时间")]),e("div",[t._v(t._s(t.scene.updateTime||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("场景状态")]),e("div",[t._v(t._s(t.changeStatus(t.scene.status)||null))])]),e("div",{staticClass:"separate"}),e("div",{staticClass:"leftTitle"},[t._v("模拟测试信息")]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("测试时长")]),e("div",{staticStyle:{color:"#48BA79"}},[t._v(t._s(t.changeTime(t.time)||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("回合数")]),e("div",{staticStyle:{color:"#48BA79"}},[t._v(t._s(t.bout||0))])])]):"log"===t.pageType?e("div",{staticClass:"log"},[e("div",{staticClass:"leftTitle"},[t._v("用户信息")]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("用户姓名")]),e("div",[t._v(t._s(t.logVo.userName||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("部门")]),e("div",[t._v(t._s(t.logVo.userDept||null))])]),e("div",{staticClass:"separate"}),e("div",{staticClass:"leftTitle"},[t._v("交互信息")]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("交互时长")]),e("div",{staticStyle:{color:"#48BA79"}},[t._v(t._s(t.logVo.interactiveTime||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("开始时间")]),e("div",[t._v(t._s(t.logVo.startTime||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("结束时间")]),e("div",[t._v(t._s(t.logVo.endTime||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("回合数")]),e("div",[t._v(t._s(t.logVo.roundNumber||0))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("全局话术量")]),e("div",[t._v(t._s(t.logVo.speakNumber||0))])])]):t._e()])},yi=[],Ai=n("c1df"),bi={name:"ConversationSimulateLeft",components:{},props:{scene:{type:Object,default:function(){return{}}},logVo:{type:Object,default:function(){return{}}},bout:{type:Number,default:function(){return 0}}},data:function(){return{pageType:"",time:0}},computed:{changeType:function(){return function(t){switch(t){case 0:return"快速打开";case 1:return"沟通协作";case 2:return"查找信息";case 3:return"业务处理";case 6:return"查找日程";case 10:return"查找任务安排"}}},changeStatus:function(){return function(t){switch(t){case 0:return"草稿";case 1:return"已上线";case 2:return"已下线"}}},changeTime:function(){return function(t){return Ai.utc(t).format("HH:mm:ss")}}},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){var t=this;this.pageType=this.$route.query.pageType,"simulate"===this.pageType&&setInterval((function(){t.time+=1e3}),1e3)},methods:{}},_i=bi,wi=(n("2099"),Object(g["a"])(_i,vi,yi,!1,null,"5ab2a02e",null)),xi=wi.exports,Si=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pageOuter"},[e("div",{staticClass:"rightTitle"},[e("div",[t._v(t._s("simulate"===t.pageType?"场景模拟器":"交互详情"))])]),"simulate"===t.pageType?e("div",{staticClass:"simulateRight"},[e("div",{staticClass:"chatContent"},[e("div",{staticClass:"chatListBox"},[e("div",[e("img",{attrs:{src:t.xiaoyiPng,alt:"",width:"40px",height:"40px"}})]),e("div",{staticClass:"chatItemContent2"},[e("div",[t._v("您可以这样命令我:")]),e("div",{staticStyle:{color:"#0000ff","padding-left":"10px"}},[t._v(t._s(t.hintText))]),e("div",{staticStyle:{float:"right"}},[t._v("(点击"),e("span",{staticStyle:{color:"#0000ff",cursor:"pointer"},on:{click:t.changeHint}},[t._v("换一换")]),t._v(")")])])]),t._l(t.chatList,(function(n,i){return e("div",{key:i,staticClass:"chatListBox",style:{flexDirection:2===n.type?"":"row-reverse"}},[e("div",[2===n.type?e("el-avatar",{attrs:{src:t.xiaoyiPng,alt:""}}):1===n.type?e("el-avatar",{attrs:{size:40,src:t.base_api+"/base/user/download?id="+t.loginUser.userId+"&dataField=photoData&nameField=photoName&productCode=ecyoa"}},[e("img",{attrs:{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"}})]):t._e()],1),e("div",{class:2===n.type?"chatItemContent2":"chatItemContent1"},[n.content?e("div",{staticStyle:{"line-height":"30px"}},[t._v(t._s(n.content))]):n.content||0!==n.resultType?n.content||2!==n.resultType?t._e():e("div",t._l(n.listdata,(function(i,r){return e("div",{key:i.id,staticClass:"searchItem",class:r===n.listdata.length-1?"notLine":"hadLine"},[e("div",{staticStyle:{"margin-right":"10px","text-align":"center"}},[e("div",{staticClass:"headPortrait",style:{background:t.initPhoto(i.name.substr(0,1))}},[t._v(t._s(i.name.substr(0,1)))]),e("div",{staticStyle:{color:"#303133"}},[t._v(t._s(i.name))])]),e("div",{staticClass:"searchInfoMsg"},[i.mobile?e("div",[e("svg-icon",{staticStyle:{width:"15px",height:"15px"},attrs:{"icon-class":"voice_sj"}}),e("span",[t._v(t._s(i.mobile))])],1):t._e(),i.email?e("div",[e("svg-icon",{staticStyle:{width:"15px",height:"15px"},attrs:{"icon-class":"voice_email"}}),e("span",[t._v(t._s(i.email))])],1):t._e(),i.orgFullName?e("div",[e("svg-icon",{staticStyle:{width:"15px",height:"15px"},attrs:{"icon-class":"voice_dept"}}),e("span",[t._v(t._s(i.orgFullName.split("-")[1]))])],1):t._e(),i.shortTel?e("div",[e("svg-icon",{staticStyle:{width:"15px",height:"15px"},attrs:{"icon-class":"voice_dh"}}),e("span",[t._v(t._s(i.shortTel))])],1):t._e()])])})),0):e("div"),n.content||6!==n.resultType?t._e():e("div",t._l(n.listdata,(function(i,r){return e("div",{key:i.id,staticClass:"searchItem",class:r===n.listdata.length-1?"notLine":"hadLine"},[e("div",{staticClass:"searchInfoMsg2"},[i.title?e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("svg-icon",{staticStyle:{width:"25px",height:"20px"},attrs:{"icon-class":"ksgl_index2"}}),e("span",{staticStyle:{"font-size":"16px","margin-left":"10px",color:"#333333"}},[t._v(t._s(i.title))])],1):t._e(),e("div",{staticStyle:{"line-height":"25px"}},[e("span",{staticStyle:{"font-size":"12px",color:"#666666"}},[t._v(t._s(t.changeTime(i.startTime)+"~"+t.changeTime(i.endTime)))])]),i.address?e("div",{staticStyle:{"line-height":"25px"}},[e("span",{staticStyle:{"font-size":"12px",color:"#666666"}},[t._v(t._s(i.address))])]):t._e()])])})),0)])])}))],2),e("div",{staticClass:"inputContent"},[e("el-input",{staticClass:"inputText",attrs:{type:"textarea",placeholder:"请输入"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.sendMsg.apply(null,arguments)}},model:{value:t.textarea,callback:function(e){t.textarea=e},expression:"textarea"}}),e("div",{staticClass:"sendBtn"},[e("el-button",{attrs:{size:"small",type:"primary",disabled:t.btnLoading,loading:t.btnLoading},on:{click:t.sendMsg}},[t._v("发送")])],1)],1)]):t._e(),"log"===t.pageType?e("div",{staticClass:"simulateRight"},[e("div",{staticClass:"chatContent",staticStyle:{height:"100%"}},t._l(t.chatList,(function(n,i){return e("div",{key:i,staticClass:"chatListBox",style:{flexDirection:2===n.type?"":"row-reverse"}},[e("div",[2===n.type?e("el-avatar",{attrs:{src:t.xiaoyiPng,alt:""}}):1===n.type?e("el-avatar",{attrs:{size:40,src:t.base_api+"/base/user/download?id="+t.logVo.userId+"&dataField=photoData&nameField=photoName&productCode=ecyoa"}},[e("img",{attrs:{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"}})]):t._e()],1),e("div",{class:2===n.type?"chatItemContent2":"chatItemContent1"},[e("div",{staticStyle:{"line-height":"30px"}},[t._v(t._s(n.content||"抱歉,这个问题小易还不知道,小易正在快速成长,会努力追赶哒~"))]),n.children&&n.children.length>0?e("div",t._l(n.children,(function(n,i){return e("div",{key:i,staticStyle:{"line-height":"30px"}},[t._v(" "+t._s(n.answer||"抱歉,这个问题小易还不知道,小易正在快速成长,会努力追赶哒~")+" ")])})),0):t._e()])])})),0)]):t._e()])},Ci=[];function Ti(t){return Ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ti(t)}function Mi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ki(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mi(Object(n),!0).forEach((function(e){Li(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Li(t,e,n){return e=Di(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Di(t){var e=Ei(t,"string");return"symbol"==Ti(e)?e:e+""}function Ei(t,e){if("object"!=Ti(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=Ti(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Bi=n("ef8d"),Ii=n("c1df"),Oi={name:"ConversationSimulateRight",components:{},props:{scene:{type:Object,default:function(){return{}}},logVo:{type:Object,default:function(){return{}}}},data:function(){return{base_api:"",hintText:"",pageType:"",textarea:"",chatList:[],xiaoyiPng:"/images/w-imgs/xiaoyi.png",btnLoading:!1,bout:0,nodeIds:[]}},computed:ki(ki({},Object(l["a"])(["loginUser"])),{},{changeStatus:function(){return function(t){switch(t){case 0:return"草稿";case 1:return"已上线";case 2:return"已下线"}}},changeTime:function(){return function(t){return Ii(t).format("M月DD日 HH:mm")}}}),watch:{chatList:{handler:function(t){this.$nextTick((function(){var t=document.getElementsByClassName("chatContent")[0];t.scrollTop=t.scrollHeight}))},deep:!0}},created:function(){this.base_api="/apigw",this.pageType=this.$route.query.pageType,"simulate"===this.pageType?this.changeHint():"log"===this.pageType&&this.getLogList()},beforeDestroy:function(){},mounted:function(){},methods:{sendMsg:function(){var t=this;if(!this.btnLoading&&this.textarea){this.btnLoading=!0,this.chatList.push({type:1,content:this.textarea});var e=this.textarea;this.textarea="",this.$http({method:"POST",contentType:"application/json charset=utf-8",url:"/voice/node/queryNodes",data:{nodeIds:this.nodeIds,problem:e,type:0}}).then((function(e){t.btnLoading=!1,t.nodeIds.length>0&&(t.nodeIds=[]),"success"===e.code?4===e.body.module||5===e.body.module?(t.chatList.push({type:2,content:e.body.answerContent,children:e.body.listdata}),e.body.listdata.length>0&&e.body.listdata.map((function(e){t.nodeIds.push(e.nodeId)})),t.$emit("boutChange",t.bout+=1)):(t.chatList.push({type:2,content:e.body.answerContent}),t.getQueryResult(e.body.sessionId)):t.chatList.push({type:2,content:e.message})}))}},getQueryResult:function(t){var e=this;this.$http({method:"GET",contentType:"application/json charset=utf-8",url:"/voice/node/queryResult?sessionId="+t}).then((function(t){t.body&&t.body.type&&2===t.body.type?e.chatList.push({type:2,resultType:t.body.type,listdata:t.body.listdata}):t.body&&t.body.type&&0===t.body.type?e.chatList.push({type:2,content:t.body.openAppUrl}):t.body&&t.body.type&&6===t.body.type&&e.chatList.push({type:2,resultType:t.body.type,listdata:t.body.listdata}),"success"!==t.code||t.body||e.chatList.push({type:2,content:"小易还不明白,请您再说一遍"}),e.$emit("boutChange",e.bout+=1)}))},changeHint:function(){var t=this;this.$http({method:"POST",contentType:"application/json charset=utf-8",url:"/voice/log/queryInitialize",params:{}}).then((function(e){"success"===e.code&&(t.hintText=e.message)}))},getLogList:function(){var t=this;this.$http({method:"GET",contentType:"application/json charset=utf-8",url:"/voice/log/queryActiveLogs?id="+this.$route.query.logId}).then((function(e){"success"===e.code&&e.body.listdata.length>0&&e.body.listdata.map((function(e){t.chatList.push({type:1,content:e.activeContent}),t.chatList.push({type:2,content:e.backContent})}))}))},initPhoto:function(t){return Bi.getInitialColor(t)}}},Pi=Oi,Ni=(n("b5e3"),Object(g["a"])(Pi,Si,Ci,!1,null,"cc12a5ee",null)),Fi=Ni.exports,Ui=function(){var t=this,e=t._self._c;return e("div",{staticClass:"designer-container"},[e("div",{staticClass:"designer-header-container"},[e("SidebarLogo",{attrs:{logo:t.logo}},[e("div",[t._v(" "+t._s(t.title)+" ")])]),e("TopBtn",{attrs:{"from-page":"simulate"}})],1),e("div",{staticClass:"main"},[e("div",{staticClass:"sumulate-body"},[e("SimulateLeft",{attrs:{scene:t.simulateVo.scene,"log-vo":t.logVo,bout:t.bout}}),e("SimulateRight",{attrs:{scene:t.simulateVo.scene,"log-vo":t.logVo},on:{boutChange:t.getBout}})],1)])])},Ri=[],ji=function(){var t=this,e=t._self._c;return e("div",{staticClass:"right-menu"},["simulate"===t.fromPage?e("el-button-group",[e("el-button",{attrs:{icon:"el-icon-close"},on:{click:t.closeDialog}},[t._v("关 闭")])],1):e("el-button-group",[e("el-button",{attrs:{icon:"el-icon-close"},on:{click:t.closeDialog}},[t._v("关 闭")]),"plat"==t.loginUser.orgCode?e("el-button",{attrs:{disabled:t.doing,icon:"el-icon-finished"},on:{click:function(e){return t.saveListpageInfo("save")}}},[t._v("保存")]):t._e(),"plat"==t.loginUser.orgCode&&1!==t.process.status?e("el-button",{attrs:{disabled:t.doing,icon:"el-icon-check"},on:{click:function(e){return t.saveListpageInfo("online")}}},[t._v("上线")]):t._e(),"plat"==t.loginUser.orgCode&&1===t.process.status?e("el-button",{attrs:{disabled:t.doing,icon:"el-icon-check"},on:{click:function(e){return t.saveListpageInfo("outline")}}},[t._v("下线")]):t._e()],1)],1)},Hi=[],Yi={name:"ConversationTopBtn",components:{},props:{fromPage:{type:String,default:function(){return""}}},data:function(){return{loginUser:this.$store.getters.loginUser,process:{}}},computed:{},watch:{},created:function(){this.$bus.on("emitProcess",this.processhandler)},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){this.$bus.off("emitProcess",this.processhandler)},destroyed:function(){},activated:function(){},methods:{saveListpageInfo:function(t){this.$bus.emit("saveWorkflow",t)},closeDialog:function(){window.close()},processhandler:function(t){this.process=JSON.parse(JSON.stringify(t))}}},zi=Yi,Qi=(n("d2f6"),Object(g["a"])(zi,ji,Hi,!1,null,"5a90456d",null)),Vi=Qi.exports,Wi=n("b8fb"),Gi=Wi.title,Ki=Wi.logo,$i={name:"ConversationSimulateTest",components:{TopBtn:Vi,SimulateLeft:xi,SimulateRight:Fi},data:function(){return{simulateVo:{},logVo:{},title:Gi,logo:Ki,bout:0}},computed:{},watch:{},created:function(){this.getMsgInfo()},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{getMsgInfo:function(){var t=this;if(this.$route.query.id&&"simulate"===this.$route.query.pageType)this.$http({method:"GET",contentType:"application/json charset=utf-8",url:"/voice/scene/getById?id="+this.$route.query.id}).then((function(e){console.log("res",e),"success"===e.code&&(t.simulateVo=e.body.vo)}));else{if(!this.$route.query.logId||"log"!==this.$route.query.pageType)return void this.$message.error("页面加载错误,请退出重新进入");this.$http({method:"GET",contentType:"application/json charset=utf-8",url:"/voice/log/getById?id="+this.$route.query.logId}).then((function(e){console.log("res",e),"success"===e.code&&(t.logVo=e.body.vo)}))}},getBout:function(t){this.bout=t}}},qi=$i,Xi=(n("716a"),n("8cf1"),Object(g["a"])(qi,Ui,Ri,!1,null,"4efadffb",null)),Ji=Xi.exports,Zi=function(){var t=this,e=t._self._c;return e("div",[e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.openWflow(t.row)}}},[t._v("编辑")]),2===t.row.status?e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.changeLineStatus(t.row,1)}}},[t._v("上线")]):t._e(),1===t.row.status?e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.changeLineStatus(t.row,2)}}},[t._v("下线")]):t._e()],1)},tr=[];function er(t){return er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},er(t)}function nr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */nr=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),s=new D(i||[]);return r(o,"_invoke",{value:T(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function v(){}function y(){}function A(){}var b={};u(b,o,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==n&&i.call(w,o)&&(b=w);var x=A.prototype=v.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,a,o,s){var l=d(t[r],t,a);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==er(c)&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var a;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return a=a?a.then(r,r):r()}})}function T(e,n,i){var r=h;return function(a,o){if(r===p)throw Error("Generator is already running");if(r===g){if("throw"===a)throw o;return{value:t,done:!0}}for(i.method=a,i.arg=o;;){var s=i.delegate;if(s){var l=M(s,i);if(l){if(l===m)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var u=d(e,n,i);if("normal"===u.type){if(r=i.done?g:f,u.arg===m)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=g,i.method="throw",i.arg=u.arg)}}}function M(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var a=d(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(er(e)+" is not iterable")}return y.prototype=A,r(x,"constructor",{value:A,configurable:!0}),r(A,"constructor",{value:y,configurable:!0}),y.displayName=u(A,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var o=new C(c(t,n,i,r),a);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(x),u(x,l,"Generator"),u(x,o,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=E,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:E(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}function ir(t,e,n,i,r,a,o){try{var s=t[a](o),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(i,r)}function rr(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){ir(a,i,r,o,s,"next",t)}function s(t){ir(a,i,r,o,s,"throw",t)}o(void 0)}))}}var ar={name:"ConversationTbColumns",components:{},props:{row:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{openWflow:function(t){window.open("/#/designer/voice?id="+t.id)},changeLineStatus:function(t,e){var n=this;this.$confirm("将"+t.name+"改为 "+(1===e?"上线":"下线")+" 状态?","操作提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(rr(nr().mark((function i(){var r,a,o;return nr().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return r=JSON.parse(JSON.stringify(t)),r.status=e,i.next=4,n.$app.update("/voice/scene/update",r);case 4:a=i.sent,"success"===a.code?(n.$message.success(a.message),o=document.querySelector(".el-icon-refresh"),null!==o&&o.parentElement.click()):n.$message.error(a.message);case 6:case"end":return i.stop()}}),i)})))).catch((function(){}))}}},or=ar,sr=(n("6447"),Object(g["a"])(or,Zi,tr,!1,null,"524627ff",null)),lr=sr.exports,ur=n("b461"),cr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-container"},[e("menubar"),e("el-row",{staticClass:"min-clr-wr"},[e("mini-calendar",{attrs:{"father-month":1}}),e("mini-calendar",{attrs:{"father-month":2}}),e("mini-calendar",{attrs:{"father-month":3}}),e("mini-calendar",{attrs:{"father-month":4}}),e("mini-calendar",{attrs:{"father-month":5}}),e("mini-calendar",{attrs:{"father-month":6}}),e("mini-calendar",{attrs:{"father-month":7}}),e("mini-calendar",{attrs:{"father-month":8}}),e("mini-calendar",{attrs:{"father-month":9}}),e("mini-calendar",{attrs:{"father-month":10}}),e("mini-calendar",{attrs:{"father-month":11}}),e("mini-calendar",{attrs:{"father-month":12}})],1)],1)},dr=[],hr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"menu-bar"},[e("leftbar"),e("rightbar")],1)},fr=[],pr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"left-bar"},[e("el-select",{staticClass:"sel_year",attrs:{size:"small"},on:{change:t.changeCalendarView},model:{value:t.yearObj.curYear,callback:function(e){t.$set(t.yearObj,"curYear",e)},expression:"yearObj.curYear"}},t._l(t.yearObj.years,(function(t,n){return e("el-option",{key:n,attrs:{value:t}})})),1),e("span",{staticStyle:{"font-size":"13px"}},[t._v(" 年")])],1)},gr=[];function mr(t){return mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mr(t)}function vr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function yr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vr(Object(n),!0).forEach((function(e){Ar(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ar(t,e,n){return e=br(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function br(t){var e=_r(t,"string");return"symbol"==mr(e)?e:e+""}function _r(t,e){if("object"!=mr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=mr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var wr={components:{},props:{},data:function(){return{yearObj:{},curDataId:""}},computed:yr({},Object(l["a"])(["loginUser"])),watch:{},created:function(){this.createYearObj(),this.queryData(this.yearObj.curYear)},beforeDestroy:function(){},mounted:function(){this.$bus.emit("getCurYear",this.yearObj.curYear)},methods:{createYearObj:function(){for(var t=(new Date).getFullYear(),e=[],n=t-10;n<=t+10;n++)e.push(n);this.yearObj={curYear:t,years:e}},changeCalendarView:function(){this.$bus.emit("getCurYear",this.yearObj.curYear),this.queryData(this.yearObj.curYear)},queryData:function(t){var e=this;t=void 0===t||""===t?(new Date).getFullYear():t;var n=[{compare:"=",field:"orgCode",merge:!1,value:this.loginUser.orgCode},{compare:"=",field:"year",merge:!1,value:t}];this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:n,url:"base/holiday/querydata"}).then((function(t){var n=t.body.listdata;"success"===t.code?n.length>0?(e.curDataId=n[0].id,e.renderDay(n[0].day),e.$bus.emit("getCurDataId",e.curDataId)):e.$bus.emit("getCurDataId",""):e.$message({message:t.message,type:"warning"})}),(function(t){e.$message.error(t)}))},renderDay:function(t){for(var e,n=""===t?[]:t.split(","),i=0;i<n.length;i++)e=document.getElementById(n[i]),null!==e&&void 0!==e&&(e.classList.add("active"),e.setAttribute("title","设为工作日"))}}},xr=wr,Sr=(n("7d8a"),Object(g["a"])(xr,pr,gr,!1,null,"71439f8e",null)),Cr=Sr.exports,Tr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"right-bar"},[e("el-button-group",[e("el-button",{attrs:{plain:"",size:"small"},on:{click:t.initNonWorkday}},[t._v("初始化非工作日")]),e("el-button",{attrs:{plain:"",size:"small"},on:{click:t.clearNonWorkday}},[t._v("清理非工作日")]),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.saveNonWorkday}},[t._v("保 存")])],1)],1)},Mr=[];function kr(t){return kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kr(t)}function Lr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Dr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lr(Object(n),!0).forEach((function(e){Er(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Er(t,e,n){return e=Br(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Br(t){var e=Ir(t,"string");return"symbol"==kr(e)?e:e+""}function Ir(t,e){if("object"!=kr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=kr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Or={components:{},props:{},data:function(){return{curDataId:"",curYear:2e3,moduleInfo:{winWidth:800,winHeight:600,delUrl:"base/holiday/delete",addNewUrl:"base/holiday/addNew",insertUrl:"base/holiday/insert",updateUrl:"base/holiday/update",listDataUrl:"base/holiday/listdata",queryDataUrl:"base/holiday/querydata",getByIdUrl:"base/holiday/getById"}}},computed:Dr({},Object(l["a"])(["loginUser"])),watch:{},created:function(){this.$bus.$on("getCurDataId",this.handleCurDataId),this.$bus.$on("getCurYear",this.handleCurYear)},beforeDestroy:function(){this.$bus.$off("getCurDataId",this.handleCurDataId),this.$bus.$off("getCurYear",this.handleCurYear)},mounted:function(){},methods:{initNonWorkday:function(){for(var t=document.getElementsByClassName("weekend"),e=0;e<t.length;e++)t[e].classList.add("active")},clearNonWorkday:function(){for(var t=document.getElementsByClassName("date"),e=0;e<t.length;e++)t[e].classList.remove("active")},saveNonWorkday:function(){var t=this,e=this.curDataId;void 0===e||""===e||null===e?this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:this.moduleInfo.addNewUrl}).then((function(n){if("success"===n.code){var i=n.body.vo.id;t.saveData(e,i)}else t.$message({message:n.message,type:"warning"})}),(function(e){t.$message.error(e)})):this.saveData(e,void 0)},saveData:function(t,e){for(var n=this,i=[],r=document.getElementsByClassName("minicalendar"),a=0;a<r.length;a++)for(var o=r[a].getElementsByClassName("active"),s=0;s<o.length;s++)i.push(o[s].getAttribute("id"));var l=i.join(","),u={id:void 0===t?e:t,day:l,orgName:this.loginUser.orgName,orgCode:this.loginUser.orgCode,year:this.curYear};this.$http({method:void 0===t||""===t||null===t?"POST":"PUT",contentType:"application/x-www-form-urlencoded",data:u,url:void 0===t||""===t||null===t?this.moduleInfo.insertUrl:this.moduleInfo.updateUrl}).then((function(i){"success"===i.code?(n.curDataId=void 0===t||""===t||null===t?e:t,n.$message({message:i.message,type:"success"})):n.$message({message:i.message,type:"warning"})}),(function(t){n.$message.error(t)}))},handleCurDataId:function(t){this.curDataId=t},handleCurYear:function(t){this.curYear=t}}},Pr=Or,Nr=(n("0f6f"),Object(g["a"])(Pr,Tr,Mr,!1,null,"4759b942",null)),Fr=Nr.exports,Ur={components:{Leftbar:Cr,Rightbar:Fr},props:{},data:function(){return{}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{}},Rr=Ur,jr=(n("a06b"),Object(g["a"])(Rr,hr,fr,!1,null,"0def196c",null)),Hr=jr.exports,Yr=function(){var t=this,e=t._self._c;return e("el-col",{staticClass:"minicalendar",attrs:{xs:12,md:6},domProps:{innerHTML:t._s(t.createCalendarDirectiveHtml(t.year,t.sonMonth))},nativeOn:{click:function(e){return t.setWorkTime.apply(null,arguments)}}})},zr=[],Qr={components:{},props:{fatherMonth:{type:Number,default:1}},data:function(){return{year:2e3,sonMonth:this.fatherMonth}},computed:{},watch:{},created:function(){this.$bus.$on("getCurYear",this.handleCurYear)},beforeDestroy:function(){this.$bus.$off("getCurYear",this.handleCurYear)},mounted:function(){},methods:{formatDate:function(t,e,n){var i=t<10?"0"+t:t,r=e<10?"0"+e:e,a=n<10?"0"+n:n;return i+"-"+r+"-"+a},createCalendarDirectiveHtml:function(t,e){for(var n=new Date(t,e-1),i='<table><tr align="center"><th colspan="7">'+t+"年"+e+'月</th></tr><tr align="center" class="week-title">',r=["日","一","二","三","四","五","六"],a=0;a<7;a++)i=i+"<td>"+r[a]+"</td>";i+="</tr>",n.setMonth(e-1,1);var o=n.getDay();n.setMonth(e,0);for(var s=n.getDate(),l=1,u="",c=0;c<6;c++){u+='<tr align="center">';for(var d=0;d<7;d++)0===c&&d<o?u+="<td> </td>":7*c+d+1<=s+o?(u=d%6===0||d%7===0?u+"<td id="+this.formatDate(t,e,l)+' class="date weekend" title="设为非工作日">'+l+"</td>":u+"<td id="+this.formatDate(t,e,l)+' class="date" title="设为非工作日">'+l+"</td>",l++):u+="<td> </td>";u+="</tr>"}return u+="</table>",i+u},setWorkTime:function(t){var e=t.target;e.getAttribute("class")&&e.getAttribute("class").indexOf("date")>-1&&(e.getAttribute("class").indexOf("active")>-1?(e.classList.remove("active"),e.setAttribute("title","设为非工作日")):(e.classList.add("active"),e.setAttribute("title","设为工作日")))},handleCurYear:function(t){this.year=t}}},Vr=Qr,Wr=Object(g["a"])(Vr,Yr,zr,!1,null,"0569bc22",null),Gr=Wr.exports,Kr={components:{Menubar:Hr,MiniCalendar:Gr},props:{},data:function(){return{}},computed:{},watch:{},created:function(){this.$bus.emit("showNavSearch",!1)},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0)},mounted:function(){},methods:{}},$r=Kr,qr=(n("0182"),Object(g["a"])($r,cr,dr,!1,null,"46c71865",null)),Xr=qr.exports,Jr=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"TextRecognition"}},[e("div",{staticClass:"pager"},[e("div",{staticClass:"page-header"},[t._m(0),e("div",{staticClass:"page-header-right"},[e("el-upload",{attrs:{"show-file-list":!1,accept:".pdf","http-request":t.reloadInvoice}},[t.pageInfo.imageUrl?e("el-button",{staticClass:"uploadOCRButton",attrs:{icon:"el-icon-upload2"}},[t._v("重新上传")]):t._e()],1),e("el-button",{on:{click:t.saveTemplate}},[t._v("保存")])],1)]),e("div",{staticClass:"page-container"},[e("div",{staticClass:"left-content"},[t.pageInfo.imageUrl?[e("img",{attrs:{id:"ImageView",src:t.pageInfo.imageUrl,alt:""},on:{load:function(e){return t.initSelector()}}})]:[e("div",{staticClass:"upload"},[e("el-upload",{attrs:{"show-file-list":!1,accept:".pdf","http-request":t.handleUpload}},[e("div",{staticClass:"upload-images"},[e("img",{attrs:{src:n("60f2"),alt:""}})]),e("el-button",{attrs:{id:"fileUpload",icon:"el-icon-upload2"}},[t._v("上传要识别的文件")])],1)],1)]],2),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-content-header"},[t._m(1),e("el-input",{attrs:{placeholder:"请输入发票类型",size:"normal"},model:{value:t.invoiceType,callback:function(e){t.invoiceType=e},expression:"invoiceType"}})],1),e("div",{staticClass:"right-content-text"},[t._m(2),t._l(t.positionList,(function(n,i){return[e("div",{key:i,staticClass:"position"},[e("div",[t._v(t._s(i+1)+"、")]),e("div",{staticClass:"position-content"},[e("div",[t._v(t._s(n.name)+":")]),e("div",[t._v("坐标:"+t._s(n.x)+" * "+t._s(n.y)+",宽:"+t._s(n.width)+",高:"+t._s(n.height))])])])]}))],2)])])]),t.isVisible?e("el-scrollbar",{style:{top:t.menuPosition.top+"px",left:t.menuPosition.left+"px"},attrs:{id:"menu"}},[t._l(t.menus,(function(n){return[e("div",{key:n.type,staticClass:"menu-item",on:{click:function(e){return e.preventDefault(),t.handleMenuClick(n.type)}}},[e("span",[t._v(t._s(n.title))])])]}))],2):t._e()],1)},Zr=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-header-left"},[e("img",{staticClass:"app-logo",attrs:{src:n("3b09"),alt:""}}),e("span",{staticClass:"title"},[t._v(" 发票模板 ")])])},function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"margin-bottom":"5px"}},[e("i",{staticStyle:{color:"red"}},[t._v("* ")]),t._v("发票模板类型名称:")])},function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"margin-bottom":"10px"}},[e("i",{staticStyle:{color:"red"}},[t._v("* ")]),t._v("识别结果:")])}],ta=[{title:"识别为 “发票代码”",type:"invoiceCode",name:"发票代码"},{title:"识别为 “发票号码”",type:"invoiceSn",name:"发票号码"},{title:"识别为 “开票日期”",type:"invoiceDate",name:"开票日期"},{title:"识别为 “校验码”",type:"checkCode",name:"校验码"},{title:"识别为 “购买方名称”",type:"buyerName",name:"购买方名称"},{title:"识别为 “购买方纳税人识别号”",type:"buyerSn",name:"购买方纳税人识别号"},{title:"识别为 “货物或服务名称”",type:"buyGoods",name:"货物或服务名称"},{title:"识别为 “金额”",type:"amount",name:"金额"},{title:"识别为 “税额”",type:"tax",name:"税额"},{title:"识别为 “价税合计”",type:"total",name:"价税合计"},{title:"识别为 “销售方名称”",type:"sellerName",name:"销售方名称"},{title:"识别为 “销售方纳税人识别号”",type:"sellerSn",name:"销售方纳税人识别号"},{title:"识别为 “销售方地址及电话”",type:"sellerAddress",name:"销售方地址及电话"},{title:"识别为 “销售方开户行及账号”",type:"sellerBank",name:"销售方开户行及账号"},{title:"识别为 “备注”",type:"momo",name:"备注"}],ea=["invoiceDate:开票日期","amount:金额","tax:税额","total:价税合计"];function na(t){return na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},na(t)}function ia(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ra(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ia(Object(n),!0).forEach((function(e){aa(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ia(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function aa(t,e,n){return e=oa(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function oa(t){var e=sa(t,"string");return"symbol"==na(e)?e:e+""}function sa(t,e){if("object"!=na(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=na(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var la=function(t){return JSON.parse(JSON.stringify(t))},ua={name:"InvoiceRecognition",data:function(){return{menus:ta,pageInfo:{id:"",imageUrl:""},invoiceType:"",imageInfo:{invoiceWidth:0,invoiceHeight:0},shotConfig:{startPoint:null,endPoint:null,target:null,targetContext:null},menuConfig:{startPoint:null,endPoint:null},positions:{},vo:{},isVisible:!1,hadDrag:!1}},computed:{menuPosition:function(){var t=this.menuConfig,e=t.startPoint,n=t.endPoint,i=e[1]>n[1]?e[1]:n[1],r=e[0]>n[0]?e[0]:n[0],a=document.body.clientHeight,o=317;return i<a/2&&(o=317/3),null===e||null===n?{top:0,left:0}:{top:i-o,left:r}},positionList:function(){var t=this;return Object.keys(this.positions).reduce((function(e,n){var i=t.positions[n],r=t.menus.find((function(t){return t.type===n}));return e.push(ra({name:r.name},i)),e}),[])}},created:function(){var t=this.$route.query.id;this.pageInfo.id=t,this.getTemplate(t)},mounted:function(){document.addEventListener("mousedown",this.handleMouseClick)},beforeDestroy:function(){document.removeEventListener("mousedown",this.handleMouseClick),this.pageInfo.imageUrl&&URL.revokeObjectURL(this.pageInfo.imageUrl)},methods:{reloadInvoice:function(t){this.handleUpload(t,!0)},handleUpload:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=new FormData;i.append("file",t.file),i.append("fileName",t.file.name),this.$http({method:"POST",url:"fybx/invoiceOcrRange/getPDFTemplatePicture?id="+this.vo.id,responseType:"blob",data:i}).then((function(t){t instanceof Blob&&"image/png"===t.type?(e.pageInfo.imageUrl=URL.createObjectURL(t),e.$nextTick((function(){e.getImageNaturalSize(e.pageInfo.imageUrl)})),n&&(e.positions={})):e.$message.error("模板转换失败,请稍后再试!")})).catch((function(t){return e.$message.error(t)}))},getImageNaturalSize:function(t){var e=this,n=document.createElement("img");n.src=t,n.onload=function(){e.imageInfo.invoiceWidth=n.width,e.imageInfo.invoiceHeight=n.height}},initSelector:function(){var t=document.querySelector("#ImageView"),e=document.createElement("canvas");e.width=t.width,e.height=t.height,e.setAttribute("style","\n width: ".concat(t.width,"px;\n height: ").concat(t.height,"px;\n position: absolute;\n top: 20px;\n left: 150px;\n cursor: crosshair;\n z-index: 10;\n user-select: none;\n ")),t.parentElement.append(e),e.addEventListener("mousedown",this.startScreenshot),e.addEventListener("mouseup",this.stopScreenshot)},startScreenshot:function(t){var e=t.target;e.addEventListener("mousemove",this.handlingScreenshot);var n=this.getPoint(t),i=n.x,r=n.y,a=e.getContext("2d");this.shotConfig.target=e,this.shotConfig.targetContext=a,this.shotConfig.startPoint=[i,r],this.menuConfig.startPoint=[t.x,t.y],a.fillStyle="rgba(49, 129, 208, 0.2)"},stopScreenshot:function(t){var e=t.target;e.removeEventListener("mousemove",this.handlingScreenshot);var n=this.getPoint(t),i=n.x,r=n.y;this.shotConfig.endPoint=[i,r],this.menuConfig.endPoint=[t.x,t.y],this.shotConfig.target&&this.hadDrag&&(this.isVisible=!0),this.hadDrag=!1},handlingScreenshot:function(t){this.hadDrag=!0;var e=this.shotConfig,n=e.startPoint,i=e.targetContext,r=e.target,a=r.clientHeight,o=r.clientWidth,s=this.getPoint(t),l=s.x,u=s.y,c=l-n[0],d=u-n[1];i.clearRect(0,0,o,a),i.beginPath(),i.fillRect(n[0],n[1],c,d),i.closePath()},getPoint:function(t){return{x:t.offsetX,y:t.offsetY}},finished:function(){this.shotConfig.targetContext.clearRect(0,0,this.shotConfig.target.clientWidth,this.shotConfig.target.clientHeight),this.isVisible=!1},handleMouseClick:function(t){"menu-item"!==t.target.className&&this.isVisible&&this.finished()},getImageInfo:function(){var t=this.imageInfo.invoiceWidth/document.querySelector("#ImageView").width,e=this.shotConfig,n=e.startPoint,i=e.endPoint,r=Math.round((n[0]<i[0]?n[0]:i[0])*t),a=Math.round((n[1]<i[1]?n[1]:i[1])*t),o=Math.round((n[0]<i[0]?i[0]-n[0]:n[0]-i[0])*t),s=Math.round((n[1]<i[1]?i[1]-n[1]:n[1]-i[1])*t);return{x:r,y:a,width:o,height:s}},handleMenuClick:function(t){this.$set(this.positions,t,this.getImageInfo()),this.finished()},getTemplate:function(t){var e=this,n=t?"fybx/invoiceOcrRange/getById?id="+t:"fybx/invoiceOcrRange/addNew";this.$http({url:n,method:t?"GET":"POST"}).then((function(n){if("success"!==n.code)return e.$message.error(n.message);e.vo=n.body.vo,e.invoiceType=e.vo.invoiceType,e.imageInfo.invoiceHeight=e.vo.invoiceHeight,e.imageInfo.invoiceWidth=e.vo.invoiceWidth,e.renderPosition(e.vo),t&&e.getTemplateImage(t)})).catch((function(t){return e.$message.error(t)}))},getTemplateImage:function(t){var e=this;this.$http({url:"fybx/invoiceOcrRange/downloadImgById?id="+t,method:"GET",responseType:"blob"}).then((function(t){t instanceof Blob&&"image/png"===t.type?e.pageInfo.imageUrl=URL.createObjectURL(t):e.$message.error("获取发票模板图片失败!")})).catch((function(t){return e.$message.error(t)}))},renderPosition:function(t){var e=this.menus.map((function(t){return t.type}));this.positions=e.reduce((function(e,n){return t[n]&&(e[n]=JSON.parse(t[n])),e}),{})},getFormatPositions:function(){var t=this;return Object.keys(this.positions).reduce((function(e,n){return e[n]=JSON.stringify(t.positions[n]),e}),{})},checkSelectedData:function(){var t=la(ea),e=Object.keys(this.positions),n=t.reduce((function(t,n){var i=n.split(":");return e.includes(i[0])||(t+=t?"、"+i[1]:i[1]),t}),"");return this.invoiceType?!n||(this.$message.warning("缺少 "+n+" 模板参数"),!1):(this.$message.warning("发票类型不能为空!"),!1)},saveTemplate:function(){var t=this,e=this.checkSelectedData();if(e){var n=this.pageInfo.id,i=this.getFormatPositions(),r=Object.assign(this.vo,this.imageInfo,i,{invoiceType:this.invoiceType}),a=n?"fybx/invoiceOcrRange/update":"fybx/invoiceOcrRange/insert";this.$http({method:n?"PUT":"POST",url:a,data:r}).then((function(e){if("success"!==e.code)return t.$message.error(e.message);t.$message.success("保存成功"),setTimeout((function(){var e={path:"/IR"};e.query=n?{id:n}:{id:t.vo.id},window.close()}),1500)})).catch((function(e){return t.$message.error(e)}))}}}},ca=ua,da=(n("36b4"),Object(g["a"])(ca,Jr,Zr,!1,null,"6308c11f",null)),ha=da.exports,fa=function(){var t=this,e=t._self._c;return t.isVisible?e("div",{attrs:{id:"TextRecognition"}},[e("div",{staticClass:"pager"},[e("div",{staticClass:"page-header"},[t._m(0),e("div",{staticClass:"page-header-right"},[e("el-button",{staticStyle:{"margin-right":"10px"},on:{click:t.closeDialog}},[e("svg-icon",{staticStyle:{color:"red","margin-right":"5px"},attrs:{"icon-class":"glyphicon-off"}}),t._v("关闭")],1),e("el-upload",{attrs:{"show-file-list":!1,accept:".pdf","http-request":t.reloadInvoice}},[t.pageInfo.imageUrl?e("el-button",{staticClass:"uploadOCRButton",attrs:{icon:"el-icon-upload2"}},[t._v("重新上传")]):t._e()],1),e("el-button",{on:{click:function(e){return t.saveVo(!1)}}},[e("svg-icon",{staticStyle:{"margin-right":"5px"},attrs:{"icon-class":"save"}}),t._v("保存")],1),e("el-button",{on:{click:function(e){return t.saveVo(!0)}}},[e("svg-icon",{staticStyle:{"margin-right":"5px"},attrs:{"icon-class":"saved"}}),t._v("保存并关闭")],1)],1)]),e("div",{staticClass:"page-container"},[e("div",{staticClass:"left-content"},[t.pageInfo.imageUrl?[e("img",{attrs:{id:"ImageView",src:t.pageInfo.imageUrl,alt:""}})]:[e("div",{staticClass:"upload",on:{click:t.checkCannotUpload}},[e("el-upload",{attrs:{disabled:!t.vo.invoiceType,"show-file-list":!1,accept:".pdf","http-request":t.handleUpload}},[e("div",{staticClass:"upload-images"},[e("img",{attrs:{src:n("60f2"),alt:""}})]),e("el-button",{attrs:{id:"fileUpload",icon:"el-icon-upload2"}},[t._v("上传要识别的文件")])],1)],1)]],2),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-content-text"},[e("el-form",{ref:"voForm",attrs:{model:t.vo,rules:t.rules,"label-width":"120px",inline:!1,size:"normal"}},[e("el-form-item",{attrs:{label:"进销发票",prop:"invoiceJx"}},[e("el-radio-group",{model:{value:t.vo.invoiceJx,callback:function(e){t.$set(t.vo,"invoiceJx",e)},expression:"vo.invoiceJx"}},[e("el-radio",{attrs:{label:1}},[t._v("进销发票")]),e("el-radio",{attrs:{label:2}},[t._v("销项发票")])],1)],1),e("el-form-item",{attrs:{label:"发票类型",prop:"invoiceType"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择发票类型"},model:{value:t.vo.invoiceType,callback:function(e){t.$set(t.vo,"invoiceType",e)},expression:"vo.invoiceType"}},[t._l(t.invoiceOptions,(function(t,n){return[e("el-option",{key:n,attrs:{label:t.text,value:t.value}})]}))],2)],1),e("el-form-item",{attrs:{label:"发票代码"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.invoiceCode,callback:function(e){t.$set(t.vo,"invoiceCode",e)},expression:"vo.invoiceCode"}})],1),e("el-form-item",{attrs:{label:"发票号码"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.invoiceSn,callback:function(e){t.$set(t.vo,"invoiceSn",e)},expression:"vo.invoiceSn"}})],1),e("el-form-item",{attrs:{label:"开票日期"}},[e("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"上传成功后自动识别"},model:{value:t.vo.invoiceDate,callback:function(e){t.$set(t.vo,"invoiceDate",e)},expression:"vo.invoiceDate"}})],1),e("el-form-item",{attrs:{label:"校验码"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.checkCode,callback:function(e){t.$set(t.vo,"checkCode",e)},expression:"vo.checkCode"}})],1),e("el-form-item",{attrs:{label:"购买方名称"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.buyerName,callback:function(e){t.$set(t.vo,"buyerName",e)},expression:"vo.buyerName"}})],1),e("el-form-item",{attrs:{label:"购买方纳税人识别号"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.buyerSn,callback:function(e){t.$set(t.vo,"buyerSn",e)},expression:"vo.buyerSn"}})],1),e("el-form-item",{attrs:{label:"货物或服务名称"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.buyGoods,callback:function(e){t.$set(t.vo,"buyGoods",e)},expression:"vo.buyGoods"}})],1),e("el-form-item",{attrs:{label:"金额",prop:"amount"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.amount,callback:function(e){t.$set(t.vo,"amount",e)},expression:"vo.amount"}})],1),e("el-form-item",{attrs:{label:"税额",prop:"tax"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.tax,callback:function(e){t.$set(t.vo,"tax",e)},expression:"vo.tax"}})],1),e("el-form-item",{attrs:{label:"价税合计",prop:"total"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.total,callback:function(e){t.$set(t.vo,"total",e)},expression:"vo.total"}})],1),e("el-form-item",{attrs:{label:"销售方名称"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.sellerName,callback:function(e){t.$set(t.vo,"sellerName",e)},expression:"vo.sellerName"}})],1),e("el-form-item",{attrs:{label:"销售方地址及电话"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.sellerAddress,callback:function(e){t.$set(t.vo,"sellerAddress",e)},expression:"vo.sellerAddress"}})],1),e("el-form-item",{attrs:{label:"销售方开户行及账号"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.sellerBank,callback:function(e){t.$set(t.vo,"sellerBank",e)},expression:"vo.sellerBank"}})],1),e("el-form-item",{attrs:{label:"备注"}},[e("el-input",{attrs:{type:"textarea",placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.momo,callback:function(e){t.$set(t.vo,"momo",e)},expression:"vo.momo"}})],1)],1)],1)])])])]):t._e()},pa=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-header-left"},[e("img",{staticClass:"app-logo",attrs:{src:"/images/listHeadLogo.png",alt:""}}),e("span",{staticClass:"title"},[t._v(" 费用模板 ")]),e("span",{staticClass:"sec-title"},[t._v(" 发票登记 ")])])}],ga={name:"InvoiceRecognition",data:function(){return{isVisible:!1,pageInfo:{id:"",imageUrl:""},vo:{passenger:{invoiceTypeOptions:[]}},rules:{invoiceJx:[{required:!0,message:"请选择进销发票",trigger:"change"}],invoiceType:[{required:!0,message:"请选择发票类型",trigger:"blur"}],amount:[{required:!0,message:"请输入金额",trigger:"blur"}],tax:[{required:!0,message:"请输入税额",trigger:"blur"}],total:[{required:!0,message:"请输入税价税合计",trigger:"blur"}]}}},computed:{invoiceOptions:function(){return this.vo.passenger.invoiceTypeOptions||[]}},created:function(){},methods:{openDialog:function(t){this.resetPage(),t?(this.pageInfo.id=t,this.getVoById(t)):this.initVo(),this.isVisible=!0},closeDialog:function(){this.isVisible=!1,this.$bus.emit("refreshListData")},checkCannotUpload:function(){if(!this.vo.invoiceType)return this.$message.error("请先选择发票类型后再上传!")},reloadInvoice:function(t){this.handleUpload(t,!0)},handleUpload:function(t){var e=this,n=this.$loading({lock:!0,text:"发票识别中.....",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),i=new FormData;i.append("busiDataId",this.vo.id),i.append("file",t.file),i.append("attachsSize",t.file.size),i.append("attachsName",t.file.name),i.append("invoiceType",this.vo.invoiceType),this.$http({method:"POST",url:"fybx/myInvoice/upload",data:i}).then((function(t){if("success"===t.code){var i=t.body.vo;Object.keys(i).forEach((function(t){e.vo.hasOwnProperty(t)&&i[t]&&(e.vo[t]="string"===typeof i[t]?i[t].replace("\n",""):i[t])})),e.pageInfo.imageUrl="data:image/png;base64,"+t.body.imgBase64}else e.$message.error("模板转换失败,请稍后再试!");n.close()})).catch((function(t){return e.$message.error(t)}))},resetPage:function(){this.pageInfo={id:"",imageUrl:""},this.vo={passenger:{invoiceTypeOptions:[]}}},saveVo:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.voForm.validate((function(n){n&&t.$http({url:t.pageInfo.id?"/fybx/myInvoice/update":"/fybx/myInvoice/insert",method:"POST",data:t.vo}).then((function(n){if("success"!==n.code)return t.$message.error(n.message);t.$message.success("登记发票成功"),setTimeout((function(){t.resetPage(),e&&t.closeDialog()}),500)})).catch((function(t){console.error("err => ",t)}))}))},getVoById:function(t){var e=this,n=this.$loading({lock:!0,text:"加载中",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});this.$http({url:"/fybx/myInvoice/getById?id="+t,method:"GET"}).then((function(t){if("success"!==t.code)return e.$message.error(t.message);e.vo=t.body.vo,e.pageInfo.imageUrl="data:image/png;base64,"+t.body.imgBase64,n.close()})).catch((function(t){console.error("err => ",t)}))},initVo:function(){var t=this,e=this.$loading({lock:!0,text:"加载中",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});this.$http({url:"/fybx/myInvoice/addNew",method:"POST"}).then((function(n){if("success"!==n.code)return t.$message.error(n.message);t.vo=n.body.vo,e.close()})).catch((function(t){console.error("err => ",t)}))}}},ma=ga,va=(n("4f3f"),Object(g["a"])(ma,fa,pa,!1,null,"44edd521",null)),ya=va.exports,Aa=function(){var t=this,e=t._self._c;return e("PageContent",{attrs:{title:t.title}},[e("el-form",[e("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"824px","margin-top":"10px"}},[e("div",{staticClass:"el-table__body-wrapper"},[e("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("tbody",[e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t._v("APP类型")]),e("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[e("el-radio-group",{model:{value:t.imtype,callback:function(e){t.imtype=e},expression:"imtype"}},[e("el-radio",{attrs:{label:"ecmapp"}},[t._v("易办公")]),e("el-radio",{attrs:{label:"qywxh"}},[t._v("企业微信")]),e("el-radio",{attrs:{label:"ddqyh"}},[t._v("钉钉")])],1)],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t._v("企业应用ID")]),e("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"政务微信ID",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{directives:[{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"orgCode",listviewurl:t.listviewurl,dialogtitle:"移动应用接入配置",placeholder:"企业应用ID"},model:{value:t.corpId,callback:function(e){t.corpId=e},expression:"corpId"}})],1)]}}])})],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t._v("机构名称")]),e("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[e("div",{domProps:{innerHTML:t._s(t.orgName)}})])]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t._v("机构代码")]),e("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[e("div",{domProps:{innerHTML:t._s(t.orgCode)}})])])])])])])]),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{plain:""},on:{click:t.startSyncToWechat}},[e("svg-icon",{attrs:{"icon-class":"sync"}}),t._v("开始同步")],1)],1),e("DoingDialog")],1)},ba=[],_a={components:{},props:{},data:function(){return{title:"同步人员机构信息",imtype:"ecmapp",orgCode:"",orgName:"",corpId:"",loginUser:this.$store.getters.loginUser,dwadmin:0}},computed:{listviewurl:function(){return"ecmapp"===this.imtype?"mpp.wxqyh.list?urlsearch=imType:ECMAPP":"qywxh"===this.imtype?"mpp.wxqyh.list?urlsearch=imType:QYWXH":"ddqyh"===this.imtype?"mpp.wxqyh.list?urlsearch=imType:DDQYH":""}},watch:{},created:function(){this.$bus.emit("showNavSearch",!1)},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0)},mounted:function(){("plat"!==this.loginUser.orgCode||this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("dwadmin=1"))&&(this.dwadmin=1,this.orgName=this.loginUser.orgName,this.orgCode=this.loginUser.orgCode)},methods:{startSyncToWechat:function(){var t=this,e="ecmapp"===this.imtype?"base/friend/datatoim":"qywxh"===this.imtype?"wxqyh/txl/syncTxlToWeContactBook":"dingding/txl/syncTxlToDingding";this.$refs.ValidationProvider.validate().then((function(n){var i=document.querySelector(".invalid-field");null!==i&&""!==i.innerHTML||(t.$bus.emit("showDoingDialog"),t.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{corpId:t.corpId,orgCode:t.orgCode},url:e}).then((function(e){t.$bus.emit("closeDoingDialog"),"success"===e.code?t.$alert(e.message,"操作提示",{type:"success"}):t.$alert(e.message,"操作提示",{type:"error"})})))}))},onSelectListpageRowCompleted:function(t,e){this.orgName=t[0].orgName,this.orgCode=t[0].orgCode,this.corpId=t[0].corpId}}},wa=_a,xa=Object(g["a"])(wa,Aa,ba,!1,null,"10039030",null),Sa=xa.exports,Ca=function(){var t=this,e=t._self._c;return e("div",[e("PageContent",{attrs:{title:"密码策略设置"}},[e("el-form",[e("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"824px","margin-top":"10px"}},[e("div",{staticClass:"el-table__body-wrapper"},[e("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("tbody",[e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t._v("启用密码安全策略")]),e("td",{staticClass:"el-table__cell tdcont tdw83"},[e("el-radio-group",{model:{value:t.vo.status,callback:function(e){t.$set(t.vo,"status",e)},expression:"vo.status"}},t._l(t.statusOption,(function(n,i){return e("el-radio",{key:i,attrs:{label:n.val}},[t._v(t._s(n.text))])})),1)],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t._v("密码策略")]),e("td",{staticClass:"el-table__cell tdcont tdw83"},[e("div",{staticClass:"inner-box"},[e("el-checkbox",{attrs:{checked:1===t.vo.disableContainsAccount||t.vo.disableContainsAccount},model:{value:t.vo.disableContainsAccount,callback:function(e){t.$set(t.vo,"disableContainsAccount",e)},expression:"vo.disableContainsAccount"}}),t._v("密码不包含用户名"),e("br"),e("el-checkbox",{attrs:{checked:1===t.vo.disableEqualsLast||t.vo.disableEqualsLast},model:{value:t.vo.disableEqualsLast,callback:function(e){t.$set(t.vo,"disableEqualsLast",e)},expression:"vo.disableEqualsLast"}}),t._v("密码不能与上次的旧密码相同 "),e("div",[e("el-checkbox",{attrs:{checked:1===t.vo.checkLength||t.vo.checkLength,disabled:""},model:{value:t.vo.checkLength,callback:function(e){t.$set(t.vo,"checkLength",e)},expression:"vo.checkLength"}}),t._v("限定密码最小长度为: "),1===t.vo.checkLength||t.vo.checkLength?e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:" ",rules:"required|integer|min_value:1"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{model:{value:t.vo.minLength,callback:function(e){t.$set(t.vo,"minLength",e)},expression:"vo.minLength"}})],1)]}}],null,!1,2580305088)}):e("el-input",{model:{value:t.vo.minLength,callback:function(e){t.$set(t.vo,"minLength",e)},expression:"vo.minLength"}}),t._v(" 位 ")],1),e("div",[e("el-checkbox",{attrs:{checked:1===t.vo.checkValidity||t.vo.checkValidity},model:{value:t.vo.checkValidity,callback:function(e){t.$set(t.vo,"checkValidity",e)},expression:"vo.checkValidity"}}),t._v("每隔 "),1===t.vo.checkValidity||t.vo.checkValidity?e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:" ",rules:"required|integer|min_value:1"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{model:{value:t.vo.maxValidity,callback:function(e){t.$set(t.vo,"maxValidity",e)},expression:"vo.maxValidity"}})],1)]}}],null,!1,1771565264)}):e("el-input",{attrs:{disabled:!t.vo.checkValidity},model:{value:t.vo.maxValidity,callback:function(e){t.$set(t.vo,"maxValidity",e)},expression:"vo.maxValidity"}}),t._v(" 天必须修改密码,密码过期前 "),1===t.vo.checkValidity||t.vo.checkValidity?e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:" ",rules:"required|integer|min_value:1"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{model:{value:t.vo.beforeExpiryDay,callback:function(e){t.$set(t.vo,"beforeExpiryDay",e)},expression:"vo.beforeExpiryDay"}})],1)]}}],null,!1,3510628508)}):e("el-input",{attrs:{disabled:!t.vo.checkValidity},model:{value:t.vo.beforeExpiryDay,callback:function(e){t.$set(t.vo,"beforeExpiryDay",e)},expression:"vo.beforeExpiryDay"}}),t._v(" 天开始提醒用户修改密码 ")],1),e("el-checkbox",{attrs:{checked:1===t.vo.modifyInitPassword},model:{value:t.vo.modifyInitPassword,callback:function(e){t.$set(t.vo,"modifyInitPassword",e)},expression:"vo.modifyInitPassword"}}),t._v("强制修改初始密码"),e("br"),e("el-checkbox",{attrs:{checked:1===t.vo.checkContainsChar||t.vo.checkContainsChar},model:{value:t.vo.checkContainsChar,callback:function(e){t.$set(t.vo,"checkContainsChar",e)},expression:"vo.checkContainsChar"}}),t._v("密码必须包含 "),e("el-checkbox",{attrs:{checked:1===t.vo.mustContainsNum||t.vo.mustContainsNum,disabled:!t.vo.checkContainsChar},model:{value:t.vo.mustContainsNum,callback:function(e){t.$set(t.vo,"mustContainsNum",e)},expression:"vo.mustContainsNum"}},[t._v("数字")]),e("el-checkbox",{attrs:{checked:1===t.vo.mustContainsChar||t.vo.mustContainsChar,disabled:!t.vo.checkContainsChar},model:{value:t.vo.mustContainsChar,callback:function(e){t.$set(t.vo,"mustContainsChar",e)},expression:"vo.mustContainsChar"}},[t._v("字母")]),e("el-checkbox",{attrs:{checked:1===t.vo.mustContainsUpperChar||t.vo.mustContainsUpperChar,disabled:!t.vo.checkContainsChar},model:{value:t.vo.mustContainsUpperChar,callback:function(e){t.$set(t.vo,"mustContainsUpperChar",e)},expression:"vo.mustContainsUpperChar"}},[t._v("大写字母")]),e("el-checkbox",{attrs:{checked:1===t.vo.mustContainsShift||t.vo.mustContainsShift,disabled:!t.vo.checkContainsChar},model:{value:t.vo.mustContainsShift,callback:function(e){t.$set(t.vo,"mustContainsShift",e)},expression:"vo.mustContainsShift"}},[t._v("特殊符号(Shift+数字)")]),e("div",[e("el-checkbox",{attrs:{checked:1===t.vo.checkRepeatChar||t.vo.checkRepeatChar},model:{value:t.vo.checkRepeatChar,callback:function(e){t.$set(t.vo,"checkRepeatChar",e)},expression:"vo.checkRepeatChar"}}),t._v("密码不允许有 "),1===t.vo.checkRepeatChar||t.vo.checkRepeatChar?e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:" ",rules:"required|integer|min_value:1"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{model:{value:t.vo.disableRepeatLength,callback:function(e){t.$set(t.vo,"disableRepeatLength",e)},expression:"vo.disableRepeatLength"}})],1)]}}],null,!1,3788958185)}):e("el-input",{attrs:{disabled:!t.vo.checkRepeatChar},model:{value:t.vo.disableRepeatLength,callback:function(e){t.$set(t.vo,"disableRepeatLength",e)},expression:"vo.disableRepeatLength"}}),t._v(" 位连续与重复 ")],1),e("el-checkbox",{attrs:{checked:1===t.vo.checkDisableChar||t.vo.checkDisableChar},model:{value:t.vo.checkDisableChar,callback:function(e){t.$set(t.vo,"checkDisableChar",e)},expression:"vo.checkDisableChar"}}),t._v("密码中不允许包含的字符库(两个字符串间以;分隔开,如:abc;123)"),e("br"),1===t.vo.checkDisableChar||t.vo.checkDisableChar?e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:" ",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{attrs:{type:"textarea"},model:{value:t.vo.dsiablePassword,callback:function(e){t.$set(t.vo,"dsiablePassword",e)},expression:"vo.dsiablePassword"}})],1)]}}],null,!1,2837793253)}):e("el-input",{attrs:{type:"textarea",disabled:!t.vo.checkDisableChar},model:{value:t.vo.dsiablePassword,callback:function(e){t.$set(t.vo,"dsiablePassword",e)},expression:"vo.dsiablePassword"}})],1)])])])])])])]),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("div",{staticStyle:{"margin-bottom":"10px","font-size":"13px"}},[e("el-button",{attrs:{plain:"",icon:"el-icon-check"},on:{click:t.submitRule}},[t._v("保存")])],1)])],1)],1)},Ta=[],Ma={components:{},props:{},data:function(){return{moduleInfo:{addNew:"base/passwordPolicy/addNew",delete:"base/passwordPolicy/delete",getById:"base/passwordPolicy/getById",insert:"base/passwordPolicy/insert",listdata:"base/passwordPolicy/listdata",querydata:"base/passwordPolicy/querydata",update:"base/passwordPolicy/update"},vo:{},statusOption:[{val:1,text:"是"},{val:0,text:"否"}]}},computed:{},watch:{},created:function(){this.$bus.emit("showNavSearch",!1),this.findRule()},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0)},mounted:function(){},methods:{findRule:function(){var t=this;this.$http({method:"post",contentType:"application/x-www-form-urlencoded",data:[],url:this.moduleInfo.querydata}).then((function(e){"success"===e.code&&(e.body.listdata.length>0?(t.vo=e.body.listdata[0],t.formtype="updata"):t.$http({method:"post",contentType:"application/x-www-form-urlencoded",url:t.moduleInfo.addNew}).then((function(e){"success"===e.code&&(t.formtype="addnew",t.vo=t.initRule(e.body.vo))})))}))},initRule:function(t){return t.status=1,t.policyLevel=1,t.checkLength=!0,t},submitRule:function(){var t=this;this.formValidate((function(){var e={};"updata"===t.formtype?(e.method="PUT",e.url=t.moduleInfo.update):"addnew"===t.formtype&&(e.method="POST",e.url=t.moduleInfo.insert),t.$http({method:e.method,contentType:"application/x-www-form-urlencoded",data:t.vo,url:e.url}).then((function(e){"success"===e.code?t.$message({message:"保存成功",type:"success"}):t.$message.error(e.message)}))}))}}},ka=Ma,La=(n("2b9d"),Object(g["a"])(ka,Ca,Ta,!1,null,"14304b20",null)),Da=La.exports,Ea=n("016b"),Ba=function(){var t=this,e=t._self._c;return e("LRLayout",[e("LeftPanel",[e("GiantTree",{attrs:{nodes:t.treeData,multiple:!1,drag:!0,"tree-before-drop-node":t.treeBeforeDropNode},on:{onClick:t.onTreeNodeClick,onCreated:t.onTreeCreated,onDrop:t.treeDropNode},scopedSlots:t._u([{key:"context-menu",fn:function(n){return[null===n.contextNode.pId?e("ul",[e("li",{on:{click:function(e){return t.addModuleMenu(n.treeId,n.contextNode)}}},[t._v("新增栏目")])]):t._e(),null!==n.contextNode.pId?e("ul",[e("li",{on:{click:function(e){return t.addMenu(n.treeId,n.contextNode)}}},[t._v("新增子菜单")]),e("li",{on:{click:function(e){return t.editMenu(n.treeId,n.contextNode)}}},[t._v("修改菜单")]),e("li",{on:{click:function(e){return t.deleteMenu(n.treeId,n.contextNode)}}},[t._v("删除菜单")])]):t._e()]}}])})],1),e("RightPanel",[null!==t.sys&&null===t.menuItem?e("Product",{attrs:{vo:t.sys,"z-tree":t.zTree}}):t._e(),null!==t.sys&&null!==t.menuItem?e("ModuleMenu",{attrs:{vo:t.menuItem,"z-tree":t.zTree}}):t._e(),e("CopyMenu",{attrs:{"z-tree":t.zTree},on:{refreshTreeData:t.refreshTreeData}})],1)],1)},Ia=[];function Oa(t){return Oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oa(t)}function Pa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Na(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pa(Object(n),!0).forEach((function(e){Fa(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pa(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Fa(t,e,n){return e=Ua(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ua(t){var e=Ra(t,"string");return"symbol"==Oa(e)?e:e+""}function Ra(t,e){if("object"!=Oa(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=Oa(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ja={name:"ProductMenuMgr",components:{},props:{},data:function(){return{moduleInfo:{loadProductUrl:"base/product/querydata",loadTreeNodeUrl:"base/menuMgr/querydata",updateModuleUrl:"base/menuMgr/updateModuleAndPermissions"},sys:null,menuItem:null,treeData:[],zTree:{}}},computed:Na({},Object(l["a"])(["loginUser"])),watch:{},created:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:[{compare:"=",field:"status",value:1}],params:{orderBy:"orderNo"},url:this.moduleInfo.loadProductUrl}).then((function(e){if("success"===e.code){t.sys=e.body.listdata[0];var n=[];e.body.listdata.forEach((function(t){n.push(t.code)})),t.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:[{compare:"in",field:"sysCode",value:n.join(",")}],params:{orderBy:"moduleLevel asc,orderNo asc"},url:t.moduleInfo.loadTreeNodeUrl}).then((function(n){"success"===n.code?t.treeData=t.treeDataAdapter(e.body.listdata.concat(n.body.listdata)):t.$alert(n.message,{type:"error"})}))}else t.$alert(e.message,{type:"error"})})),this.$bus.$emit("showNavSearch",!1)},beforeDestroy:function(){this.$bus.$emit("showNavSearch",!0)},mounted:function(){},methods:{treeDataAdapter:function(t){var e={};return t.forEach((function(t){void 0!==t.chargeType?(t.pId=null,t.open=!0,t.title=t.name,e[t.code]=t.id):("0"===t.parentId?t.pId=e[t.sysCode]:t.pId=t.parentId,t.title="名称:"+t.name+"\r\n代码:"+t.code+"\r\n排序:"+t.orderNo)})),t},refreshTreeData:function(t){null===this.sys&&(this.sys=this.zTree.getNodes()[0]);var e=[this.sys];this.treeData=this.treeDataAdapter(e.concat(t))},onTreeNodeClick:function(t,e,n){var i=this,r=JSON.parse(JSON.stringify(this.sys));this.sys=null,this.$nextTick((function(t){void 0===n.pId||null===n.pId?(i.menuItem=null,i.sys=n):(i.setMenuItem(n),i.sys=r)}))},setMenuItem:function(t){var e=t.getParentNode(),n="";while(null!==e&&e.getParentNode)n=e.name+"/"+n,e=e.getParentNode();t.parentName=n,2===t.moduleLevel&&0===t.leafFlag&&"rightLabel"!==t.target&&(t.target="leftMenuItem"),this.menuItem=t},onTreeCreated:function(t){this.zTree=t},treeBeforeDropNode:function(t,e,n,i,r){return"inner"===i&&n.moduleLevel>1&&1===n.leafFlag?(this.$alert(n.name+"不是文件夹菜单,不能移入。",{type:"warning"}),!1):"inner"===i||(void 0===e.moduleLevel||void 0!==n.moduleLevel||(this.$alert("不能将模块菜单移出产品外。",{type:"warning"}),!1))},treeDropNode:function(t,e,n,i,r,a){var o=this,s=null,l=i.orderNo;if("inner"===r){s=i;var u=i.children;null!=u&&u.length>1&&(l=u[u.length-2].orderNo,isNaN(l)||(l=l-0+10))}else s=i.getParentNode(),isNaN(l)||("prev"===r?l-=1:l=l-0+1);var c=l+"",d=c.length;if(l>=0)if(c.length<4)for(var h=0;h<4-d;h++)c+="0";else c.length>4&&(c="9999");n.orderNo=c,n.pId=s.id,null==s.pId?(n.moduleLevel=1,n.parentId="0",n.sysCode=s.code):(n.moduleLevel=s.moduleLevel+1,n.parentId=s.id),this.$http({method:"put",data:n,url:this.moduleInfo.updateModuleUrl}).then((function(i){"success"===i.code?(o.onTreeNodeClick(t,e,n),o.$message.success("移动成功!")):o.$alert(i.message,{type:"error"})}))},addModuleMenu:function(t,e){var n=this;this.zTree.selectNode(e),this.sys=e,this.menuItem=null,this.$nextTick((function(){n.$bus.emit("addModuleMenu")}))},editSysSetup:function(t,e){var n=this;this.zTree.selectNode(e),this.sys=e,this.menuItem=null,this.$nextTick((function(){n.$bus.emit("editSysSetup")}))},addMenu:function(t,e){var n=this;this.zTree.selectNode(e),this.setMenuItem(e),this.$nextTick((function(){n.$bus.emit("addMenu")}))},editMenu:function(t,e){var n=this;this.zTree.selectNode(e),this.setMenuItem(e),this.$nextTick((function(){n.$bus.emit("editMenu")}))},deleteMenu:function(t,e){var n=this;null===this.menuItem&&(this.zTree.selectNode(e),this.setMenuItem(e)),this.$nextTick((function(){n.$bus.emit("deleteMenu",e)}))}}},Ha=ja,Ya=Object(g["a"])(Ha,Ba,Ia,!1,null,"3a5a5895",null),za=Ya.exports,Qa=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-container"},[e("data-table",{attrs:{"module-info":t.moduleInfo,"tb-columns":t.tbColumns,"toolbar-btns":t.listpageBtns,"on-list-data-before-load":t.onListDataBeforeLoad,"on-list-data-loaded":t.onListDataLoaded,"on-delete-successed":t.onDeleteSuccessed}}),e("Basicform",{attrs:{title:t.formTitle,"win-width":t.moduleInfo.winWidth,"win-height":t.moduleInfo.winHeight,"toolbar-btns":t.busiformBtns,"on-basic-form-before-open":t.onBasicFormBeforeOpen,"on-basic-form-opened":t.onBasicFormOpened,"on-basic-form-before-submit":t.onBasicFormBeforeSubmit,"on-basic-form-submited":t.onBasicFormSubmited,"fixed-height":!0},scopedSlots:t._u([{key:"default",fn:function(n){return[e("dynamic-form",{attrs:{vo:n.vo,"table-field-info":t.tableFieldInfo,"can-edit":n.canEdit,"module-info":t.moduleInfo}})]}}])})],1)},Va=[],Wa={data:function(){return{formTitle:"系统日志",moduleInfo:{listpageViewUrl:"base.sysLog.list.vue",getByIdUrl:"unifiedLog/getById",listDataUrl:"unifiedLog/listdata",delUrl:"unifiedLog/delete",listDefaultOrderBy:"operateTime desc",winWidth:1e3,winHeight:650},tbColumns:[{field:"state",checkbox:!0,width:"45px"},{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"sysName",title:"系统名称",width:"200px",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,sortable:!0},{field:"orgName",title:"单位名称",width:"200px",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,sortable:!0},{field:"personAccount",width:"100px",title:"操作账号",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,sortable:!0},{field:"personName",title:"操作人",width:"80px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"operateTime",title:"操作时间",width:"140px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,listAdvSearchElement:"date",propFormatter:"format:yyyy-MM-dd HH:mm:ss",propType:"java.util.Date",sortable:!0},{field:"clientIp",title:"操作IP",width:"100px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,sortable:!0},{field:"browserVersion",title:"浏览器版本",width:"100px",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,sortable:!0},{field:"clientType",title:"终端类型",width:"100px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,sortable:!0},{field:"operateDesc",title:"操作描述",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0}],listpageBtns:[{id:"btn_download",btnName:"导出",btnIcon:"download",btnClick:"exportWform",btnPermission:"download",btnType:"toolbar"}],tableFieldInfo:[{elementCanEdit:"{${canEdit}}",elementReadonly:0,elementType:"input",formTdColspan:12,isRequired:1,propComment:"系统名称",propName:"sysName",propType:"String",textFormatter:"textfield"},{elementCanEdit:"{${canEdit}}",elementReadonly:0,elementType:"input",formTdColspan:12,isRequired:1,propComment:"系统代码",propName:"sysCode",propType:"String",textFormatter:"textfield"},{elementCanEdit:"{${canEdit}}",elementReadonly:0,elementType:"input",formTdColspan:12,isRequired:1,propComment:"单位名称",propName:"orgName",propType:"String",textFormatter:"textfield"},{elementCanEdit:"{${canEdit}}",elementReadonly:0,elementType:"input",formTdColspan:12,isRequired:1,propComment:"单位代码",propName:"orgCode",propType:"String",textFormatter:"textfield"},{elementCanEdit:"{${canEdit}}",elementReadonly:0,elementType:"input",emptyMessage:"请输入操作帐号",formTdColspan:12,isRequired:1,propComment:"操作帐号",propName:"personAccount",propType:"String",textFormatter:"textfield"},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入操作人",errorMessage:"",formTdColspan:12,isRequired:1,propComment:"操作人",propName:"personName",propType:"String",textFormatter:"textfield",valueMaxLength:255,valueMinLength:null},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入模块代码",errorMessage:"",formTdColspan:12,isRequired:1,propComment:"模块代码",propName:"moduleCode",propType:"String",textFormatter:"textfield",valueMaxLength:50,valueMinLength:null},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入操作类型",errorMessage:"",formTdColspan:12,isRequired:1,propComment:"操作类型",propName:"operateType",propType:"String",textFormatter:"textfield",valueMaxLength:50,valueMinLength:null},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入操作IP",errorMessage:"",formTdColspan:12,isRequired:1,propComment:"操作IP",propName:"clientIp",propType:"String",textFormatter:"textfield",valueMaxLength:30,valueMinLength:null},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:"",elementReadonly:0,elementType:"date",emptyMessage:"请输入操作时间",errorMessage:"",formTdColspan:12,isRequired:1,propComment:"操作时间",propName:"operateTime",propType:"java.uti.Date",textFormatter:"yyyy-MM-dd HH:mm:ss",valueMaxLength:32,valueMinLength:null},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入浏览器版本",errorMessage:"",formTdColspan:12,isRequired:1,propComment:"浏览器版本",propName:"browserVersion",propType:"String",textFormatter:"",valueMaxLength:null,valueMinLength:null},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入终端类型",errorMessage:"",formTdColspan:12,isRequired:1,propComment:"终端类型",propName:"clientType",propType:"String",textFormatter:"",valueMaxLength:30,valueMinLength:null},{defaultValue:"1",elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:"1:成功\n0:失败",elementReadonly:null,elementType:"radio",emptyMessage:"请选择状态 ",errorMessage:"",formTdColspan:24,isRequired:1,propComment:"操作结果 ",propName:"result",propType:"Short",textFormatter:"",valueMaxLength:null,valueMinLength:null},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementCssHeight:70,elementCssWidth:null,elementFormatter:"",elementReadonly:0,elementType:"textarea",emptyMessage:"请输入操作描述",errorMessage:"",formTdColspan:24,isRequired:1,propComment:"操作描述",propName:"operateDesc",propType:"String",textFormatter:"textarea",valueMaxLength:2147483647,valueMinLength:null},{defaultValue:"",elementCanEdit:"0",elementCssHeight:70,elementCssWidth:null,elementFormatter:"",elementReadonly:0,elementType:"textarea",emptyMessage:"请输入异常跟踪",errorMessage:"",formTdColspan:24,isRequired:0,propComment:"异常跟踪",propName:"stackTrace",propType:"String",textFormatter:"textarea",valueMaxLength:2147483647,valueMinLength:null}],busiformBtns:[{id:"btn_close",btnName:"关 闭",btnIcon:"close",btnClick:"closeDialog",btnPermission:"",btnStyleType:"default"}]}},mounted:function(){},methods:{onListDataBeforeLoad:function(t,e){this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("dwadmin=1")&&(e.urlsearch?e.urlsearch+=";orgCode:"+t.loginUser.orgCode:e.urlsearch="orgCode:"+t.loginUser.orgCode),this.moduleInfo.getByIdUrl.indexOf("logType")<0&&(this.moduleInfo.getByIdUrl.indexOf("?")<0?this.moduleInfo.getByIdUrl=this.moduleInfo.getByIdUrl+"?logType="+e.logType:this.moduleInfo.getByIdUrl=this.moduleInfo.getByIdUrl+"&logType="+e.logType)},onListDataLoaded:function(t,e){0},onBasicFormBeforeOpen:function(t,e,n){n.resolve(!0)},onBasicFormOpened:function(t,e){0},onBasicFormBeforeSubmit:function(t,e,n){this.$confirm("您是否确认提交保存?","确认操作",{type:"warning"}).then((function(){n.resolve(!0)})).catch((function(t){n.reject(t)}))},onBasicFormSubmited:function(t,e){0},onDeleteSuccessed:function(t,e){0}}},Ga=Wa,Ka=Object(g["a"])(Ga,Qa,Va,!1,null,null,null),$a=Ka.exports,qa=function(){var t=this,e=t._self._c;return e("div",{staticClass:"system_summary"},[e("main",{staticClass:"sys_main"},[e("el-scrollbar",{attrs:{native:!1,tag:"div"}},[e("div",{staticClass:"sys_header"},[e("div",{staticClass:"item",staticStyle:{background:"#FDF3E9"}},[e("div",{staticClass:"count"},[e("span",[t._v(t._s(t.data.orgNum||0))]),e("span",[t._v(t._s(t.data.sysNum||0))])]),e("div",{staticClass:"title"},[e("span",{on:{click:function(e){return t.goNav(t.jgUrl)}}},[t._v("机构数 "),e("i",{staticClass:"el-icon-arrow-right"})]),e("span",{on:{click:function(e){return t.goNav(t.cpUrl)}}},[t._v("开通产品数 "),e("i",{staticClass:"el-icon-arrow-right"})])])]),e("div",{staticClass:"item",staticStyle:{background:"#EDF8F2"}},[e("div",{staticClass:"count"},[e("span",[t._v(t._s(t.data.registerNum||0))]),e("span",[t._v(t._s(t.data.onlineNum||0))])]),e("div",{staticClass:"title"},[e("span",{on:{click:function(e){return t.goNav(t.yhUrl)}}},[t._v("注册用户总数量 "),e("i",{staticClass:"el-icon-arrow-right"})]),e("span",[t._v("在线用户数")])])]),e("div",{staticClass:"item",staticStyle:{background:"#E6E0FA"}},[e("div",{staticClass:"count"},[e("span",[t._v(t._s(t.data.processNum||0))]),e("span",[t._v(t._s(t.data.wfInstanceNum||0))])]),e("div",{staticClass:"title"},[e("span",[t._v("流程配置数")]),e("span",[t._v("流程实例数")])])]),t.data.lastLogin?e("div",{staticClass:"item",staticStyle:{background:"#EBF7FF"}},[e("div",{staticClass:"count center",staticStyle:{"font-size":"20px"}},[t._v("IP:"+t._s(t.data.lastLogin.clientIp.split(",")[0]))]),e("div",{staticClass:"title center pad6"},[t._v(t._s(t.data.lastLogin.loginTime))]),e("div",{staticClass:"title center pad6"},[t._v("上次登录信息")])]):t._e(),e("div",{staticClass:"item",staticStyle:{background:"#F2EDF8"}},[e("div",{staticClass:"count center",staticStyle:{"font-size":"20px"}},[t._v("V"+t._s(t.data.osVersion||1))]),e("div",{staticClass:"title center"},[t._v("服务器版本号")])])]),e("div",{staticClass:"content"},[e("div",{staticClass:"search"},[e("div",{staticClass:"search_left"},[e("span",{staticClass:"once"},[t._v("快捷入口")]),e("span",[t._v("可快速搜索功能入口")])]),e("div",[e("el-input",{attrs:{placeholder:"搜索功能入口",clearable:!0},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.searchClick.apply(null,arguments)}},model:{value:t.searchText,callback:function(e){t.searchText=e},expression:"searchText"}},[e("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:t.searchClick},slot:"append"})],1)],1)]),t.show?e("div",{staticClass:"list"},t._l(t.list,(function(n,i){return e("div",{key:i,staticClass:"item"},[e("div",{staticClass:"item_left"},[e("img",{attrs:{src:"/images/w-imgs/xtgl/"+(n.meta&&n.meta.icon)+".png",alt:"",srcset:""}})]),e("div",{staticClass:"item_right"},[e("div",{staticClass:"name"},[t._v(t._s(n.alias))]),e("div",{staticClass:"nav"},t._l(n.children,(function(n,i){return e("div",{key:i,staticClass:"nav_item",on:{click:function(e){return t.goNav(n)}}},[t._v(t._s(n.meta.title))])})),0)])])})),0):t._e(),t.searchlist.length>0?e("div",{staticClass:"list"},t._l(t.searchlist,(function(n,i){return e("div",{key:i,staticClass:"item"},[e("div",{staticClass:"item_left"},[e("img",{attrs:{src:"/images/w-imgs/xtgl/"+(n.meta&&n.meta.icon)+".png",alt:"",srcset:""}})]),e("div",{staticClass:"item_right"},[e("div",{staticClass:"name"},[t._v(t._s(n.alias))]),e("div",{staticClass:"nav"},t._l(n.children,(function(n,i){return e("div",{key:i,staticClass:"nav_item",on:{click:function(e){return t.goNav(n)}}},[t._v(t._s(n.meta.title))])})),0)])])})),0):t._e(),t.searchText&&0===t.searchlist.length&&!t.show?e("div",{staticStyle:{"text-align":"center","margin-top":"80px"}},[e("img",{staticStyle:{"max-width":"180px"},attrs:{src:"images/w-imgs/nomessage.png"}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无搜索结果")])]):t._e()])])],1)])},Xa=[];function Ja(t){return Ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ja(t)}function Za(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function to(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Za(Object(n),!0).forEach((function(e){eo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Za(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function eo(t,e,n){return e=no(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function no(t){var e=io(t,"string");return"symbol"==Ja(e)?e:e+""}function io(t,e){if("object"!=Ja(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=Ja(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ro={components:{},props:{},data:function(){return{searchText:"",show:!0,list:[],jgUrl:{},cpUrl:{},yhUrl:{},searchlist:[],data:{},url:"./images/systemBg.png"}},computed:to({},Object(l["a"])(["routes"])),watch:{},created:function(){var t=this,e=[],n=[];this.routes.forEach((function(i){i.meta&&1===i.meta.level&&-1===t.$route.path.indexOf(i.path)?(i.children=[],e.push(i)):i.meta&&2===i.meta.level&&(n.push(i),i.meta.title.indexOf("组织机构")>-1?t.jgUrl=i:(i.meta.title.indexOf("单位产品")>-1||i.meta.title.indexOf("门户站点管理")>-1)&&(t.cpUrl=i),i.meta.title.indexOf("注册用户")>-1&&(t.yhUrl=i))})),e.forEach((function(t){n.forEach((function(e){t.meta.id===e.meta.parentId&&t.children.push(e)}))})),this.list=e,this.getNum()},beforeDestroy:function(){},mounted:function(){},methods:{getNum:function(){var t=this;this.$http({method:"post",url:"/platStatistics/platVisit/getOnlineNumAndRegisterNum"}).then((function(e){"success"===e.code&&(t.data=e.body.data)}))},searchClick:function(){var t=this;if(this.searchText){var e=[];this.list.forEach((function(n){var i=[];if(n.children.forEach((function(e){e.meta.title&&e.meta.title.indexOf(t.searchText)>-1&&i.push(e)})),i.length>0){var r=JSON.parse(JSON.stringify(n));r.children=i,e.push(r)}})),this.searchlist=e,this.show=!1}else this.searchlist=[],this.show=!0},goNav:function(t){t.children&&t.children[0]&&(t.children[0].meta.activeMenu?this.$router.push({path:t.children[0].meta.activeMenu}):this.$router.push({path:t.children[0].path}))}}},ao=ro,oo=(n("f1da"),Object(g["a"])(ao,qa,Xa,!1,null,"9d1078e6",null)),so=oo.exports,lo=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-container"},[e("data-table",{ref:"datatablelist",attrs:{"module-info":t.moduleInfo,"tb-columns":t.tbColumns,"toolbar-btns":t.listpageBtns,"on-list-data-before-load":t.onListDataBeforeLoad,"on-list-data-loaded":t.onListDataLoaded,"on-delete-successed":t.onDeleteSuccessed}},[e("div",{attrs:{slot:"toolbarLeft-slotLeft"},slot:"toolbarLeft-slotLeft"},[e("el-select",{attrs:{placeholder:"请选择"},model:{value:t.selectValue,callback:function(e){t.selectValue=e},expression:"selectValue"}},t._l(t.options,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)]),e("Basicform",{attrs:{title:t.formTitle,"win-width":t.moduleInfo.winWidth,"win-height":t.moduleInfo.winHeight,"toolbar-btns":t.busiformBtns,"on-basic-form-before-open":t.onBasicFormBeforeOpen,"on-basic-form-opened":t.onBasicFormOpened,"on-basic-form-before-submit":t.onBasicFormBeforeSubmit,"on-basic-form-submited":t.onBasicFormSubmited},scopedSlots:t._u([{key:"default",fn:function(n){return[e("SkinSet",{ref:"SkinSet",attrs:{vo:n.vo,"can-edit":n.canEdit,"module-info":t.moduleInfo}})]}}])})],1)},uo=[],co=function(){var t=this,e=t._self._c;return e("el-form",[e("div",{staticClass:"card_box"},[e("el-card",{staticClass:"box-card_left"},[e("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("tbody",[e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t.vo.isnew?e("span",{staticClass:"required"},[t._v("*")]):t._e(),t._v("主题名称")]),e("td",{staticClass:"el-table__cell tdcont tdw33"},[e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"主题名称",rules:{required:t.vo.isnew,maxlength:40}},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{placeholder:"请输入主题名称"},model:{value:t.vo.name,callback:function(e){t.$set(t.vo,"name",e)},expression:"vo.name"}})],1)]}}])})],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t.vo.isnew?e("span",{staticClass:"required"},[t._v("*")]):t._e(),t._v("主题代码")]),e("td",{staticClass:"el-table__cell tdcont tdw33"},[e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"主题代码",rules:{required:t.vo.isnew,maxlength:40}},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{attrs:{disabled:!t.moduleInfo.isAdd,placeholder:"请输入主题代码"},model:{value:t.vo.styleCode,callback:function(e){t.$set(t.vo,"styleCode",e)},expression:"vo.styleCode"}})],1)]}}])})],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("是否默认")]),e("td",{staticClass:"el-table__cell tdcont tdw33"},[e("el-radio-group",{attrs:{name:"moduleJavaCode",placeholder:"请选择是否默认"},model:{value:t.vo.isDefault,callback:function(e){t.$set(t.vo,"isDefault",e)},expression:"vo.isDefault"}},t._l(t.statusOptions,(function(n,i){return e("el-radio",{key:i,attrs:{disabled:0===t.canEdit,label:n.value}},[t._v(t._s(n.text))])})),1)],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("栏目菜单")]),e("td",{staticClass:"el-table__cell tdcont tdw33"},[e("el-radio-group",{attrs:{name:"moduleJavaCode",placeholder:"请选择导航栏布局"},model:{value:t.vo.columnMenu,callback:function(e){t.$set(t.vo,"columnMenu",e)},expression:"vo.columnMenu"}},t._l(t.layoutOptions,(function(n,i){return e("el-radio",{key:i,attrs:{disabled:0===t.canEdit,label:n.value}},[t._v(t._s(n.label))])})),1)],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("主题分类")]),e("td",{staticClass:"el-table__cell tdcont tdw33"},[e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"主题分类",rules:{required:t.vo.isnew,maxlength:40}},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-select",{attrs:{placeholder:"请选择分类",disabled:0===t.canEdit},model:{value:t.vo.styleType,callback:function(e){t.$set(t.vo,"styleType",e)},expression:"vo.styleType"}},t._l(t.styleOptions,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)]}}])})],1)]),e("el-collapse",{attrs:{accordion:""},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-collapse-item",{attrs:{title:"主题色",name:"0"}},[e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.subjectColor,callback:function(e){t.$set(t.vo,"subjectColor",e)},expression:"vo.subjectColor"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("主题色")])])]),e("el-collapse-item",{attrs:{title:"顶部Topbar颜色设置",name:"2"}},[e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.bg,callback:function(e){t.$set(t.vo,"bg",e)},expression:"vo.bg"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("背景颜色")])]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.bgActive,callback:function(e){t.$set(t.vo,"bgActive",e)},expression:"vo.bgActive"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("选中颜色")])]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.text,callback:function(e){t.$set(t.vo,"text",e)},expression:"vo.text"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("文字颜色")])]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.textActive,callback:function(e){t.$set(t.vo,"textActive",e)},expression:"vo.textActive"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("选中文字颜色")])])]),1===t.vo.columnMenu?e("el-collapse-item",{attrs:{title:"导航栏颜色设置",name:"5"}},[e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.leftToolbarBg,callback:function(e){t.$set(t.vo,"leftToolbarBg",e)},expression:"vo.leftToolbarBg"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("导航栏背景颜色")])]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.leftToolbarActive,callback:function(e){t.$set(t.vo,"leftToolbarActive",e)},expression:"vo.leftToolbarActive"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("导航栏选中颜色")])]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.leftToolbarText,callback:function(e){t.$set(t.vo,"leftToolbarText",e)},expression:"vo.leftToolbarText"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("导航栏文字颜色")])]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.leftToolbarTextActive,callback:function(e){t.$set(t.vo,"leftToolbarTextActive",e)},expression:"vo.leftToolbarTextActive"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("侧边栏选中文字颜色")])])]):t._e(),e("el-collapse-item",{attrs:{title:"侧边栏颜色设置",name:"3"}},[e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.lmBg,callback:function(e){t.$set(t.vo,"lmBg",e)},expression:"vo.lmBg"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("侧边栏背景颜色")])]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.lmActive,callback:function(e){t.$set(t.vo,"lmActive",e)},expression:"vo.lmActive"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("侧边栏选中颜色")])]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.lmText,callback:function(e){t.$set(t.vo,"lmText",e)},expression:"vo.lmText"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("侧边栏文字颜色")])]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.lmTextActive,callback:function(e){t.$set(t.vo,"lmTextActive",e)},expression:"vo.lmTextActive"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("侧边栏选中文字颜色")])])]),e("el-collapse-item",{attrs:{title:"背景图设置",name:"4"}},[e("tr",{staticStyle:{display:"flex","margin-left":"10px"}},[e("div",{staticClass:"block"},[e("el-upload",{ref:"uploadImg",staticClass:"avatar-uploader",attrs:{action:"","file-list":t.fileList,"show-file-list":!1,"on-change":t.handleUploadChange}},[t.fulUrl&&!t.file?e("div",{staticClass:"avatar-box"},[e("img",{staticClass:"avatar",attrs:{src:t.fulUrl}})]):t.file?e("div",{staticClass:"avatar-box"},[e("img",{staticClass:"avatar",attrs:{src:t.file}})]):e("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),e("div",{staticStyle:{"line-height":"calc(100px/1.778)","padding-left":"5px","font-weight":"700"}},[e("span",{staticClass:"required",staticStyle:{color:"#ff0000"}},[t._v("*")]),t._v("顶部导航背景图 ")])]),e("tr",{staticStyle:{display:"flex","margin-left":"10px"}},[e("div",{staticClass:"block"},[e("el-upload",{staticClass:"avatar-uploader",attrs:{action:"","file-list":t.fileListCb,"show-file-list":!1,"on-change":t.handleUploadChangeCb}},[t.fulUrlCb&&!t.fileCb?e("div",{staticClass:"avatar-box"},[e("img",{staticClass:"avatar",attrs:{src:t.fulUrlCb}})]):t.fileCb?e("div",{staticClass:"avatar-box"},[e("img",{staticClass:"avatar",attrs:{src:t.fileCb}})]):e("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),e("div",{staticStyle:{"line-height":"calc(100px/1.778)","padding-left":"5px","font-weight":"700"}},[e("span",{staticClass:"required",staticStyle:{color:"#ff0000"}},[t._v("*")]),t._v("侧边导航背景图 ")])]),e("tr",{staticStyle:{display:"flex","margin-left":"10px"}},[e("div",{staticClass:"block"},[e("el-upload",{staticClass:"avatar-uploader",attrs:{action:"","file-list":t.fileListWork,"show-file-list":!1,"on-change":t.handleUploadChangeWork}},[t.fulUrlWork&&!t.fileWork?e("div",{staticClass:"avatar-box"},[e("img",{staticClass:"avatar",attrs:{src:t.fulUrlWork}})]):t.fileWork?e("div",{staticClass:"avatar-box"},[e("img",{staticClass:"avatar",attrs:{src:t.fileWork}})]):e("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),e("div",{staticStyle:{"line-height":"calc(100px/1.778)","padding-left":"5px","font-weight":"700"}},[e("span",{staticClass:"required",staticStyle:{color:"#ff0000"}},[t._v("*")]),t._v("工作区背景图 ")])])])],1)],1)])]),e("div",[1==t.vo.styleType?e("el-card",{staticClass:"box-card_right",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("span",{staticStyle:{flex:"1","font-weight":"700",color:"#000"}},[t._v("生效时间段")]),e("el-date-picker",{staticStyle:{flex:"7"},attrs:{type:"datetimerange",format:"yyyy-MM-dd HH:mm","value-format":"yyyy-MM-dd HH:mm","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.vo.holidayTime,callback:function(e){t.$set(t.vo,"holidayTime",e)},expression:"vo.holidayTime"}})],1)]):t._e(),e("el-card",{staticClass:"box-card_right"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("span",[t._v("效果预览")])]),e("div",{staticClass:"text item location"},[e("div",{staticClass:"zs_top",style:{backgroundColor:t.vo.bg}},[e("div",{staticStyle:{height:"40px","align-items":"center",display:"flex","margin-left":"20px","font-size":"12px"}},[e("img",{staticStyle:{width:"20px"},attrs:{src:t.logo,alt:""}}),e("span",{style:{"font-weight":"700",margin:"0 10px",color:t.vo.text}},[t._v("易臣云办公")])]),0===t.vo.columnMenu?e("el-menu",{ref:"menu",staticClass:"el-menu-demo",attrs:{"background-color":t.vo.bg,"text-color":t.vo.text,"active-text-color":t.vo.textActive,"default-active":t.activeMenu,mode:"horizontal","unique-opened":""},on:{select:t.handleMenuSelect}},[e("el-menu-item",{style:{borderBottomColor:t.vo.bg},attrs:{index:"1"}},[t._v("导航栏1")]),e("el-menu-item",{style:{borderBottomColor:t.vo.bg},attrs:{index:"2"}},[t._v("导航栏2")])],1):t._e(),t.fulUrl?e("div",{staticStyle:{position:"absolute",height:"40px",right:"0",width:"385px"}},[e("img",{staticStyle:{height:"40px"},attrs:{src:t.fulUrl,alt:""}})]):t._e()],1),e("div",{staticStyle:{display:"flex"}},[1===t.vo.columnMenu?e("div",{staticClass:"daohang",style:{backgroundColor:t.vo.leftToolbarBg}},[e("div",{staticClass:"daohang-item",style:{backgroundColor:t.vo.leftToolbarActive}},[e("svg-icon",{style:{color:t.vo.leftToolbarTextActive?t.vo.leftToolbarTextActive:t.vo.leftToolbarText},attrs:{"icon-class":"bdpz"}}),e("span",{style:{color:t.vo.leftToolbarTextActive?t.vo.leftToolbarTextActive:t.vo.leftToolbarText}},[t._v("导航栏1")])],1),e("div",{staticClass:"daohang-item"},[e("svg-icon",{style:{color:t.vo.leftToolbarText},attrs:{"icon-class":"bdpz"}}),e("span",{style:{color:t.vo.leftToolbarText}},[t._v("导航栏2")])],1),t.fulUrlCb?e("div",{staticStyle:{position:"absolute",bottom:"0",width:"100%"}},[e("img",{attrs:{src:t.fulUrlCb,alt:""}})]):t._e()]):t._e(),e("div",{staticClass:"zs_right",style:{backgroundColor:t.vo.lmBg,width:"89px"}},[e("el-row",{staticClass:"tac"},[e("el-col",{attrs:{span:12}},[e("el-menu",{ref:"menu1",staticClass:"el-menu-vertical-demo",attrs:{"default-active":"activeMenu1","background-color":t.vo.lmBg,"text-color":t.vo.lmText,"active-text-color":t.vo.lmTextActive},on:{select:t.handleMenuSelect1}},[e("el-menu-item",{attrs:{index:"1"}},[e("svg-icon",{staticStyle:{"margin-right":"10px"},attrs:{"icon-class":"bdpz"}}),e("span",{attrs:{slot:"title"},slot:"title"},[t._v("菜单1")])],1),e("el-menu-item",{attrs:{index:"2"}},[e("svg-icon",{staticStyle:{"margin-right":"10px"},attrs:{"icon-class":"bdpz"}}),e("span",{attrs:{slot:"title"},slot:"title"},[t._v("菜单2")])],1)],1)],1)],1),t.fulUrlCb&&1===t.vo.nameField?e("div",{staticStyle:{position:"absolute",bottom:"0",width:"89px"}},[e("img",{attrs:{src:t.fulUrlCb,alt:""}})]):t._e()],1),e("div",[e("img",{staticStyle:{height:"420px"},attrs:{src:n("5715"),alt:""}})])])])])],1)],1),e("el-dialog",{attrs:{title:"请裁剪","append-to-body":"",visible:t.dialogVisible,width:"100%",top:"0"},on:{"update:visible":function(e){t.dialogVisible=e}}},[e("div",{staticClass:"btn"},[e("el-button",{on:{click:t.cancel}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.ok}},[t._v("确 定")])],1),e("div",{staticStyle:{width:"100%"},style:{height:t.vueHeight}},[e("vue-cropper",{ref:"cropper",attrs:{img:t.originImg,full:!0,"output-type":"png","auto-crop-width":"1900","auto-crop-height":"1900","center-box":!0,"can-scale":!0,"auto-crop":!0,fixed:!1,"can-move":!0}})],1)])],1)},ho=[];function fo(t){return fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fo(t)}function po(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */po=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),s=new D(i||[]);return r(o,"_invoke",{value:T(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function v(){}function y(){}function A(){}var b={};u(b,o,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==n&&i.call(w,o)&&(b=w);var x=A.prototype=v.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,a,o,s){var l=d(t[r],t,a);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==fo(c)&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var a;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return a=a?a.then(r,r):r()}})}function T(e,n,i){var r=h;return function(a,o){if(r===p)throw Error("Generator is already running");if(r===g){if("throw"===a)throw o;return{value:t,done:!0}}for(i.method=a,i.arg=o;;){var s=i.delegate;if(s){var l=M(s,i);if(l){if(l===m)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var u=d(e,n,i);if("normal"===u.type){if(r=i.done?g:f,u.arg===m)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=g,i.method="throw",i.arg=u.arg)}}}function M(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var a=d(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(fo(e)+" is not iterable")}return y.prototype=A,r(x,"constructor",{value:A,configurable:!0}),r(A,"constructor",{value:y,configurable:!0}),y.displayName=u(A,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var o=new C(c(t,n,i,r),a);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(x),u(x,l,"Generator"),u(x,o,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=E,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:E(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}function go(t,e,n,i,r,a,o){try{var s=t[a](o),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(i,r)}function mo(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){go(a,i,r,o,s,"next",t)}function s(t){go(a,i,r,o,s,"throw",t)}o(void 0)}))}}var vo=n("b8fb"),yo=(vo.title,vo.logo),Ao={props:{moduleInfo:{type:Object,default:function(){return{}}},vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1}},data:function(){return{statusOptions:[{value:1,text:"是"},{value:0,text:"否"}],styleOptions:[{value:0,label:"纯色主题"},{value:1,label:"四季节日"},{value:2,label:"商务主题"}],layoutOptions:[{value:0,label:"顶部"},{value:1,label:"左侧"}],activeName:"0",imageUrl:"",photoFile:null,base_api:"",fileList:[],fileListCb:[],fileListWork:[],originImg:"",fulUrl:"",fulUrlCb:"",fulUrlWork:"",dialogVisible:!1,file:"",vueHeight:"",fileCb:"",fileWork:"",imgType:"",activeMenu:"1",activeMenu1:"1",logo:yo}},watch:{"vo.columnMenu":function(t){1===t&&(this.vo.lmTextActive="#002767",this.vo.lmText="#303133",this.vo.lmActive="#E0E7F3",this.vo.lmBg="#FFFFFF")}},created:function(){console.log(this.vo,144),this.base_api="/apigw",this.vo.topbarBgImg&&(this.fulUrl="/apigw/base/styleConfig/download?nameField=topbarBgImg&dataField=topbarBgImgFile&id="+this.vo.id),this.vo.lmBgImg&&(this.fulUrlCb="/apigw/base/styleConfig/download?nameField=lmBgImg&dataField=lmBgImgFile&id="+this.vo.id),this.vo.workspaceBgImg&&(this.fulUrlWork="/apigw/base/styleConfig/download?nameField=workspaceBgImg&dataField=workspaceBgImgFile&id="+this.vo.id),this.logo="/apigw/base/sysSetup/downloadLogoBySysCode?sysCode="+this.loginUser.sysCode},beforeDestroy:function(){},mounted:function(){var t=this;this.vueHeight=document.body.clientHeight-100+"px";var e=document.querySelector(".img-rview");null!==e&&(1===this.canEdit?e.style.maxHeight="70px":e.style.maxHeight="115px"),this.$nextTick((function(){t.initializeDefaultActiveMenuItem(),t.initializeDefaultActiveMenuItem1()}))},methods:{handleOpen:function(t,e){console.log(t,e)},handleClose:function(t,e){console.log(t,e)},initializeDefaultActiveMenuItem:function(){var t=this.$refs.menu.$el.querySelector(".el-menu-item:first-child");t&&(t.style.backgroundColor=this.vo.bgActive,t.style.color=this.vo.textActive)},initializeDefaultActiveMenuItem1:function(){var t=this.$refs.menu1.$el.querySelector(".el-menu-item:first-child");t&&(t.style.backgroundColor=this.vo.lmActive,t.style.color=this.vo.lmTextActive)},handleMenuSelect:function(t){this.activeMenu=t},handleMenuSelect1:function(t){this.activeMenu1=t},getBase64:function(t,e){var n=new FileReader;n.addEventListener("load",(function(){return e(n.result)})),n.readAsDataURL(t)},cancel:function(){this.dialogVisible=!1,this.$refs.uploadImg.clearFiles()},ok:function(){var t=this;console.log(126,this),this.$refs.cropper.getCropData((function(e){if("top"===t.imgType){t.file=e;var n=t.dataURLtoBlob(e,t.vo.topbarBgImg);n.id=t.vo.id,t.fileList[0].raw=n}else if("cb"===t.imgType){t.fileCb=e;var i=t.dataURLtoBlob(e,t.vo.topbarBgImg);i.id=t.vo.id,t.fileListCb[0].raw=i}else if("work"===t.imgType){t.fileWork=e;var r=t.dataURLtoBlob(e,t.vo.topbarBgImg);r.id=t.vo.id,t.fileListWork[0].raw=r}console.log("data",e)})),this.dialogVisible=!1},dataURLtoBlob:function(t,e){var n=t.split(","),i=n[0].match(/:(.*?);/)[1],r=atob(n[1]),a=r.length,o=new Uint8Array(a);while(a--)o[a]=r.charCodeAt(a);return new File([o],e,{type:i})},blobToFile:function(t,e){return t.lastModifiedDate=new Date,t.name=e,t.uid=(new Date).getTime(),new window.File(t,e)},deleteImg:function(){this.file="",this.$refs.uploadImg.clearFiles()},handleUploadChange:function(t,e){var n=this;console.log(t,"filed"),console.log(e,"fileList"),-1!==t.name.indexOf(".jpg")||-1!==t.name.indexOf(".png")||-1!==t.name.indexOf(".JPG")||-1!==t.name.indexOf(".PNG")?(t.id=this.vo.id,this.fileList=[t],this.vo.topbarBgImg=t.name,this.files="",this.files=t,this.dialogVisible=!0,this.imgType="top",this.getBase64(t.raw,(function(t){n.originImg=t})),console.log("this.originImg",this.originImg)):this.$alert("上传文件格式错误","提示",{confirmButtonText:"确定",type:"warning"})},handleUploadChangeCb:function(t,e){var n=this;return mo(po().mark((function e(){return po().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(-1!==t.name.indexOf(".jpg")||-1!==t.name.indexOf(".png")||-1!==t.name.indexOf(".JPG")||-1!==t.name.indexOf(".PNG")){e.next=3;break}return n.$alert("上传文件格式错误","提示",{confirmButtonText:"确定",type:"warning"}),e.abrupt("return");case 3:t.id=n.vo.id,n.fileListCb=[t],n.vo.lmBgImg=t.name,n.dialogVisible=!0,n.imgType="cb",n.getBase64(t.raw,(function(t){n.originImg=t}));case 9:case"end":return e.stop()}}),e)})))()},handleUploadChangeWork:function(t,e){var n=this;return mo(po().mark((function e(){return po().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(-1!==t.name.indexOf(".jpg")||-1!==t.name.indexOf(".png")||-1!==t.name.indexOf(".JPG")||-1!==t.name.indexOf(".PNG")){e.next=3;break}return n.$alert("上传文件格式错误","提示",{confirmButtonText:"确定",type:"warning"}),e.abrupt("return");case 3:t.id=n.vo.id,n.fileListWork=[t],n.vo.workspaceBgImg=t.name,n.dialogVisible=!0,n.imgType="work",n.getBase64(t.raw,(function(t){n.originImg=t}));case 9:case"end":return e.stop()}}),e)})))()},uploadfile:function(){this.uploadfileTop(),this.uploadfileCb(),this.uploadfileWork()},uploadfileTop:function(){var t=this;return mo(po().mark((function e(){var n;return po().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(0!==t.fileList.length){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.$app.upload("base/styleConfig/upload",t.fileList[0].raw,{id:t.vo.id,nameField:"topbarBgImg",dataField:"topbarBgImgFile"});case 4:n=e.sent,"success"===n.code?t.$message({type:"success",message:"顶部导航背景上传成功!"}):t.$message.error("顶部导航背景上传失败!");case 6:case"end":return e.stop()}}),e)})))()},uploadfileCb:function(){var t=this;return mo(po().mark((function e(){var n;return po().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(0!==t.fileListCb.length){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.$app.upload("base/styleConfig/upload",t.fileListCb[0].raw,{id:t.vo.id,nameField:"lmBgImg",dataField:"lmBgImgFile"});case 4:n=e.sent,"success"===n.code?t.$message({type:"success",message:"侧边导航背景上传成功!"}):t.$message.error("侧边导航背景上传失败!");case 6:case"end":return e.stop()}}),e)})))()},uploadfileWork:function(){var t=this;return mo(po().mark((function e(){var n;return po().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(0!==t.fileListWork.length){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.$app.upload("base/styleConfig/upload",t.fileListWork[0].raw,{id:t.vo.id,nameField:"workspaceBgImg",dataField:"workspaceBgImgFile"});case 4:n=e.sent,"success"===n.code?t.$message({type:"success",message:"工作区导航背景上传成功!"}):t.$message.error("工作区导航背景上传失败!");case 6:case"end":return e.stop()}}),e)})))()}}},bo=Ao,_o=(n("4415"),Object(g["a"])(bo,co,ho,!1,null,"24bfacf0",null)),wo=_o.exports,xo=(n("c1df"),{components:{SkinSet:wo},data:function(){return{loginUser:{},isPortal:!1,moduleInfo:{winWidth:1100,delUrl:"base/styleConfig/delete",addNewUrl:"base/styleConfig/addNew",insertUrl:"base/styleConfig/insert",moduleCode:"user",winHeight:600,updateUrl:"base/styleConfig/update",listDataUrl:"base/styleConfig/listdata",getByIdUrl:"base/styleConfig/getById",uploadPhotoUrl:"base/styleConfig/upload"},tbColumns:[{field:"state",checkbox:!0,width:"45px",sortable:!1,align:"center"},{listAdvSearchElement:"",field:"index",width:"45px",sortable:!1,propType:"",align:"center",title:"序号",searchable:!1},{listAdvSearchElement:"input",listAdvSearchIndex:0,field:"sysName",sortable:!1,propType:"String",align:"left",title:"系统名称",searchable:!0},{listAdvSearchElement:"input",field:"name",width:"150px",sortable:!0,propType:"String",align:"center",title:"主题名称",searchable:!0},{listAdvSearchElement:"input",field:"styleCode",width:"150px",sortable:!0,propType:"String",align:"center",title:"主题代码",searchable:!0},{listAdvSearchElement:"input",field:"columnMenu",width:"150px",sortable:!0,elementFormatter:"0:顶部\n1:左侧\n",propType:"String",align:"center",title:"栏目菜单",searchable:!0},{listAdvSearchElement:"input",field:"styleType",width:"150px",sortable:!0,elementFormatter:"0:纯色主题\n1:四季节日\n2:商务主题\n",propType:"String",align:"center",title:"主题类型",searchable:!0},{listAdvSearchElement:"select",field:"isDefault",width:"100px",elementFormatter:"0:否\n1:是\n",sortable:!0,propType:"Short",align:"center",title:"是否默认 ",searchable:!0}],listpageBtns:[{btnName:"新增",btnIcon:"plus",btnClick:"addObject();",btnPermission:"addObject",id:"btn_add",btnType:"toolbar"},{btnName:"删除",btnIcon:"close",btnClick:"deleteIds();",btnPermission:"deleteIds",id:"btn_deleteIds",btnType:"toolbar"},{btnName:"编辑",btnIcon:"edit",btnClick:"editObject(row.id);",btnPermission:"editObject",id:"btn_edit",btnType:"column"},{btnName:"删除",btnIcon:"delete",btnClick:"deleteIds(row.id);",btnPermission:"deleteIds",id:"btn_deleteId",btnType:"column"}],busiformBtns:[],formTitle:"皮肤设置",base_api:"",options:[{value:0,label:"顶部导航布局"},{value:1,label:"左侧导航布局"}],selectValue:0}},computed:{},watch:{selectValue:function(t){this.$bus.emit("refreshListData")}},created:function(){this.base_api="/apigw",this.moduleInfo.listpageViewUrl="";var t=this;this.listpageBtns.forEach((function(e){if(e.btnParams=null,"string"===typeof e.btnClick){var n=e.btnClick;if(-1!==e.btnClick.indexOf("(")){var i=n.substring(n.indexOf("(")+1,n.lastIndexOf(")"));""!==i&&(i=i.replace(/'/g,"").split(","),e.btnParams=i),n=n.split("(")[0]}t[n]&&(e.btnClick=t[n])}})),this.tbColumns[this.tbColumns.length]={field:"column_operate",title:"操作",width:"70px",align:"center",valign:"middle"},this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("isPortal=1")&&(this.isPortal=!0),this.$bus.on("setOrgItemTree",this.setOrgItem)},beforeDestroy:function(){this.$bus.off("setOrgItemTree",this.setOrgItem)},mounted:function(){},methods:{setOrgItem:function(t){this.$refs.datatablelist.loadListdata()},onListDataBeforeLoad:function(t,e){this.loginUser=t.loginUser,e.sysCode=null;var n="plat"===this.loginUser.orgCode&&localStorage.orgItem?JSON.parse(localStorage.orgItem).sysCode:"";this.isPortal?e.urlsearch?e.urlsearch+=";sysCode:"+n:e.urlsearch="sysCode:"+n:e.urlsearch="orgCode:"+this.loginUser.orgCode+";columnMenu:"+this.selectValue,console.log("person listdata before load..")},onListDataLoaded:function(t,e){console.log("person listdata loaded")},onDeleteSuccessed:function(t,e){console.log("person delete successed")},onBasicFormBeforeOpen:function(t,e,n){var i="",r=new Date,a=r.getFullYear(),o=String(r.getMonth()+1).padStart(2,"0"),s=String(r.getDate()).padStart(2,"0"),l=String(r.getHours()).padStart(2,"0"),u=String(r.getMinutes()).padStart(2,"0"),c=String(r.getSeconds()).padStart(2,"0");i="".concat(a,"-").concat(o,"-").concat(s," ").concat(l,":").concat(u,":").concat(c),1==e.styleType&&null==e.holidayTime[0]&&(e.holidayTime[0]=i,e.holidayTime[1]=i),e.styleCode?this.moduleInfo.isAdd=!1:this.moduleInfo.isAdd=!0,n.resolve(!0)},onBasicFormOpened:function(t,e){0},onBasicFormBeforeSubmit:function(t,e,n){if(e.startTime=e.holidayTime?e.holidayTime[0]:"",e.endTime=e.holidayTime?e.holidayTime[1]:"",e.topbarBgImg||e.lmBgImg){if(!e.workspaceBgImg)return t.$message.warning("请上传工作区背景图!"),void n.resolve(!1);n.resolve(!0)}else n.resolve(!0)},onBasicFormSubmited:function(t,e){console.log("this.$refs.SkinSet",this.$refs.SkinSet),this.$refs.SkinSet.uploadfile()}}}),So=xo,Co=Object(g["a"])(So,lo,uo,!1,null,"62e95700",null),To=Co.exports,Mo=function(){var t=this,e=t._self._c;return e("el-form",[e("div",{staticClass:"card_box"},[e("el-card",{staticClass:"box-card_left"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("span",[t._v("色组")])]),e("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("tbody",[e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t.vo.isnew?e("span",{staticClass:"required"},[t._v("*")]):t._e(),t._v("主题名称")]),e("td",{staticClass:"el-table__cell tdcont tdw33"},[e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"主题名称",rules:{required:t.vo.isnew,maxlength:40}},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{placeholder:"请输入主题名称"},model:{value:t.vo.name,callback:function(e){t.$set(t.vo,"name",e)},expression:"vo.name"}})],1)]}}])})],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t.vo.isnew?e("span",{staticClass:"required"},[t._v("*")]):t._e(),t._v("主题代码")]),e("td",{staticClass:"el-table__cell tdcont tdw33"},[e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"主题代码",rules:{required:t.vo.isnew,maxlength:40}},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{placeholder:"请输入主题代码"},model:{value:t.vo.styleCode,callback:function(e){t.$set(t.vo,"styleCode",e)},expression:"vo.styleCode"}})],1)]}}])})],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("是否默认")]),e("td",{staticClass:"el-table__cell tdcont tdw33"},[e("el-radio-group",{attrs:{name:"moduleJavaCode",placeholder:"请选择是否默认"},model:{value:t.vo.isDefault,callback:function(e){t.$set(t.vo,"isDefault",e)},expression:"vo.isDefault"}},t._l(t.statusOptions,(function(n,i){return e("el-radio",{key:i,attrs:{disabled:0===t.canEdit,label:n.value}},[t._v(t._s(n.text))])})),1)],1)]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.bg,callback:function(e){t.$set(t.vo,"bg",e)},expression:"vo.bg"}})],1),e("td",{staticClass:"el-table__cell tdlbl tdw17 titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("背景颜色")])]),e("tr",[e("div",{staticClass:"block"},[e("el-color-picker",{model:{value:t.vo.bgActive,callback:function(e){t.$set(t.vo,"bgActive",e)},expression:"vo.bgActive"}})],1),e("td",{staticClass:"el-table__cell tdlbl tdw17 titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("选中颜色")])]),e("tr",[e("div",{staticClass:"block"},[e("el-color-picker",{model:{value:t.vo.text,callback:function(e){t.$set(t.vo,"text",e)},expression:"vo.text"}})],1),e("td",{staticClass:"el-table__cell tdlbl tdw17 titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("文字颜色")])]),e("tr",[e("div",{staticClass:"block"},[e("el-color-picker",{model:{value:t.vo.textActive,callback:function(e){t.$set(t.vo,"textActive",e)},expression:"vo.textActive"}})],1),e("td",{staticClass:"el-table__cell tdlbl tdw17 titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("选中文字颜色")])]),e("tr",[e("div",{staticClass:"block"},[e("el-color-picker",{model:{value:t.vo.lmGb,callback:function(e){t.$set(t.vo,"lmGb",e)},expression:"vo.lmGb"}})],1),e("td",{staticClass:"el-table__cell tdlbl tdw17 titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("侧边栏选中颜色")])])])])]),e("el-card",{staticClass:"box-card_right"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("span",[t._v("效果预览")])]),e("div",{staticClass:"text item location"},[e("div",{staticClass:"daohang1"},[e("span",{style:{color:t.vo.text}},[t._v("导航1")])]),e("div",{staticClass:"caidan1"},[e("span",{style:{backgroundColor:t.vo.bg}},[t._v("菜单1")])]),e("div",{staticClass:"daohang2"},[e("span",{style:{backgroundColor:t.vo.bg}},[t._v("导航1")])]),e("div",{staticClass:"jiantou"},[e("span",{style:{backgroundColor:t.vo.lmGb}})])])])],1)])},ko=[],Lo={props:{moduleInfo:{type:Object,default:function(){return{}}},vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1}},data:function(){return{statusOptions:[{value:1,text:"是"},{value:0,text:"否"}]}},watch:{},created:function(){console.log(this.vo)},beforeDestroy:function(){},mounted:function(){var t=document.querySelector(".img-rview");null!==t&&(1===this.canEdit?t.style.maxHeight="70px":t.style.maxHeight="115px")},methods:{}},Do=Lo,Eo=(n("b5f1"),Object(g["a"])(Do,Mo,ko,!1,null,"16c7e274",null)),Bo=Eo.exports,Io=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"left"}},[t._m(0),e("div",{staticClass:"name"},[e("span",{staticClass:"tip"},[t._v("场景名称: ")]),e("el-input",{staticStyle:{width:"130px",display:"inline-blobk"},attrs:{placeholder:"请输入场景名称",size:"small"},model:{value:t.process.name,callback:function(e){t.$set(t.process,"name",e)},expression:"process.name"}})],1),e("div",{staticClass:"type"},[e("span",{staticClass:"tip"},[t._v("场景类型: ")]),e("el-select",{staticStyle:{width:"130px",display:"inline-blobk"},attrs:{placeholder:"请选择场景类型",size:"small"},model:{value:t.process.type,callback:function(e){t.$set(t.process,"type",e)},expression:"process.type"}},t._l(t.options,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),e("div",{staticClass:"status"},[e("span",{staticClass:"tip"},[t._v("状态: ")]),e("span",[t._v(t._s(t.getStatus(t.process.status)))])])])},Oo=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"info"},[t._v(" 基本信息 "),e("i",{staticClass:"el-icon-edit"})])}],Po={components:{},data:function(){return{options:[{label:"快速打开",value:0},{label:"沟通协作",value:1},{label:"查找信息",value:2},{label:"业务处理",value:3},{label:"查找日程",value:6},{label:"查找任务安排",value:10}],process:{}}},computed:{},watch:{},created:function(){this.$bus.on("emitProcess",this.processhandler)},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){this.$bus.off("emitProcess",this.processhandler)},destroyed:function(){},activated:function(){},methods:{processhandler:function(t){this.process=t},getStatus:function(t){var e="";return-1!==t&&0!==t||(e="草稿"),1===t&&(e="已上线"),2===t&&(e="已下线"),e}}},No=Po,Fo=(n("d876"),Object(g["a"])(No,Io,Oo,!1,null,"005136ec",null)),Uo=Fo.exports,Ro=function(){var t=this,e=t._self._c;return e("div",{staticClass:"designer-container"},[e("div",{staticClass:"designer-header-container"},[e("SidebarLogo",{attrs:{title:t.title,logo:t.logoUrl}}),e("TopBtn")],1),e("div",{staticClass:"main",on:{click:t.click}},[e("side-bar",{ref:"siderefs",on:{getStatus:t.getStatus}}),e("menu-bar"),e("center"),e("right-form")],1)])},jo=[],Ho=function(){var t=this,e=t._self._c;return e("div",{staticClass:"menu-bar",attrs:{id:"left"}},[e("ul",{staticClass:"domList jd-box"},[e("li",{staticClass:"start",staticStyle:{display:"none"}},[e("div",{staticClass:"jd-item"},[e("img",{attrs:{src:t.start,width:"20",alt:""}}),e("div",{staticClass:"jd-text"},[t._v("开始")])])]),e("div",{staticClass:"xzzx"},[e("div",{staticClass:"case-line",on:{click:function(e){return e.stopPropagation(),t.showLineText.apply(null,arguments)}}},[e("img",{directives:[{name:"show",rawName:"v-show",value:1===t.lineType,expression:"lineType === 1"}],staticClass:"zhexian",attrs:{src:t.zhexian,width:"20",alt:""}}),e("img",{directives:[{name:"show",rawName:"v-show",value:2===t.lineType,expression:"lineType === 2"}],staticClass:"zhixian",attrs:{src:t.zhixian,width:"20",alt:""}}),e("img",{directives:[{name:"show",rawName:"v-show",value:3===t.lineType,expression:"lineType === 3"}],staticClass:"quxian",attrs:{src:t.quxian,width:"20",alt:""}}),e("el-popover",{attrs:{placement:"right",width:"80",trigger:"manual","popper-class":"hoverPop"},model:{value:t.showpopover,callback:function(e){t.showpopover=e},expression:"showpopover"}},[e("div",{staticClass:"line-box"},[e("div",{staticClass:"line-item boder-item",staticStyle:{"padding-left":"15px","padding-bottom":"8px","padding-top":"8px",cursor:"pointer","border-bottom":"1px solid #eee"},on:{click:function(e){return t.swichLine(2)}}},[e("img",{staticClass:"line-box-img",attrs:{src:t.zhixian,alt:""}}),e("span",{staticStyle:{"margin-left":"12px"}},[t._v("直线")])]),e("div",{staticClass:"line-item",staticStyle:{"padding-left":"15px","padding-bottom":"8px","padding-top":"8px",cursor:"pointer","border-bottom":"1px solid #eee"},on:{click:function(e){return t.swichLine(1)}}},[e("img",{staticClass:"line-box-img-normal",attrs:{src:t.zhexian,alt:""}}),e("span",{staticStyle:{"margin-left":"12px"}},[t._v("折线")])]),e("div",{staticClass:"line-item",staticStyle:{"padding-left":"15px","padding-bottom":"8px",cursor:"pointer","padding-top":"8px"},on:{click:function(e){return t.swichLine(3)}}},[e("img",{staticClass:"line-box-img-normal",attrs:{src:t.quxian,alt:""}}),e("span",{staticStyle:{"margin-left":"12px"}},[t._v("曲线")])])]),e("div",{staticClass:"case-text",attrs:{slot:"reference"},slot:"reference"},[t._v("连接线"),e("i",{staticClass:"el-icon-caret-bottom"})])])],1)])]),e("div",{staticClass:"select-node"},[e("el-scrollbar",{attrs:{native:!1}},[e("ul",{staticClass:"domList jd-box"},[e("li",{staticClass:"ptjd"},[e("div",{staticClass:"jd-item"},[e("img",{attrs:{src:t.ptjd,width:"20",alt:""}}),e("div",{staticClass:"jd-text"},[t._v("普通节点")])])]),e("li",{staticClass:"zxjd"},[e("div",{staticClass:"jd-item"},[e("img",{attrs:{src:t.zxjd,width:"20",alt:""}}),e("div",{staticClass:"jd-text"},[t._v("执行节点")])])])])])],1)])},Yo=[],zo={components:{},props:{},data:function(){return{lineType:1,showpopover:!1,start:"/images/w-imgs/definition/left/l_start.png",ptjd:"/images/w-imgs/definition/left/l_ptjd.png",zxjd:"/images/w-imgs/definition/left/l_zxjd.png",zhixian:"/images/w-imgs/definition/left/left-zhixian.png",zhexian:"/images/w-imgs/definition/left/left-zhexian.png",quxian:"/images/w-imgs/definition/left/left-quxian.png"}},computed:{},watch:{lineType:function(t){this.$bus.emit("watchLine",t)}},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{swichLine:function(t){this.lineType=t,this.showpopover=!1},showLineText:function(){this.showpopover=!0},onClick:function(){this.showpopover=!1}}},Qo=zo,Vo=(n("74b7"),n("aa52"),Object(g["a"])(Qo,Ho,Yo,!1,null,"2c61dcdc",null)),Wo=Vo.exports,Go=function(){var t=this;t._self._c;return t._m(0)},Ko=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"center-container"},[e("div",{attrs:{id:"center"}},[e("ul",{staticClass:"dropdown-menu"},[e("li",[e("a",{attrs:{id:"leftAlign",href:"javascript:;"}},[t._v("左对齐")])]),e("li",[e("a",{attrs:{id:"deleteNode",href:"javascript:;"}},[t._v("删除节点")])]),e("li",[e("a",{attrs:{id:"deleteLine",href:"javascript:;"}},[t._v("删除连接")])]),e("li",[e("a",{attrs:{id:"verticalAlign",href:"javascript:;"}},[t._v("垂直居中对齐")])]),e("li",[e("a",{attrs:{id:"verticalMean",href:"javascript:;"}},[t._v("垂直平局分布")])]),e("li",[e("a",{attrs:{id:"topAlign",href:"javascript:;"}},[t._v("顶端对齐")])]),e("li",[e("a",{attrs:{id:"levelAlign",href:"javascript:;"}},[t._v("水平居中对齐")])]),e("li",[e("a",{attrs:{id:"levelMean",href:"javascript:;"}},[t._v("水平平局分布")])])])])])}],$o=n("1157"),qo=n.n($o),Xo={};function Jo(){for(var t=[],e="0123456789abcdef",n=0;n<36;n++)t[n]=e.substr(Math.floor(16*Math.random()),1);t[14]="4",t[19]=e.substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="";var i=t.join("");return i}Xo.yieId=function(t){var e=(new Date).getTime();return"time"===t||(e=t+e),e},Xo.setZero=function(t){return t<10?(t="0"+t,t):t};var Zo={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(t){var e,n,i,r,a,o,s,l="",u=0;t=Zo._utf8_encode(t);while(u<t.length)e=t.charCodeAt(u++),n=t.charCodeAt(u++),i=t.charCodeAt(u++),r=e>>2,a=(3&e)<<4|n>>4,o=(15&n)<<2|i>>6,s=63&i,isNaN(n)?o=s=64:isNaN(i)&&(s=64),l=l+this._keyStr.charAt(r)+this._keyStr.charAt(a)+this._keyStr.charAt(o)+this._keyStr.charAt(s);return l},decode:function(t){var e,n,i,r,a,o,s,l="",u=0;t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(u<t.length)r=this._keyStr.indexOf(t.charAt(u++)),a=this._keyStr.indexOf(t.charAt(u++)),o=this._keyStr.indexOf(t.charAt(u++)),s=this._keyStr.indexOf(t.charAt(u++)),e=r<<2|a>>4,n=(15&a)<<4|o>>2,i=(3&o)<<6|s,l+=String.fromCharCode(e),64!==o&&(l+=String.fromCharCode(n)),64!==s&&(l+=String.fromCharCode(i));return l=Zo._utf8_decode(l),l},_utf8_encode:function(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n<t.length;n++){var i=t.charCodeAt(n);i<128?e+=String.fromCharCode(i):i>127&&i<2048?(e+=String.fromCharCode(i>>6|192),e+=String.fromCharCode(63&i|128)):(e+=String.fromCharCode(i>>12|224),e+=String.fromCharCode(i>>6&63|128),e+=String.fromCharCode(63&i|128))}return e},_utf8_decode:function(t){var e,n="",i=0,r=0,a=0;while(i<t.length)r=t.charCodeAt(i),r<128?(n+=String.fromCharCode(r),i++):r>191&&r<224?(a=t.charCodeAt(i+1),n+=String.fromCharCode((31&r)<<6|63&a),i+=2):(a=t.charCodeAt(i+1),e=t.charCodeAt(i+2),n+=String.fromCharCode((15&r)<<12|(63&a)<<6|63&e),i+=3);return n}},ts=n("e193"),es={};es.process={chartData:"",codeRule:"",commonIdea:"",creatPersonId:Xo.yieId("user"),createTime:Xo.yieId("time"),creator:"test",description:"",id:Xo.yieId("id"),name:"",orgCode:"testyz1",orgName:"test",processNo:"",processType:"",status:"",version:"",workFormM:"",workFormW:""},es.nodes=[],es.nextNodes=[],es.paths=[],es.ideaLabels=[],es.nodeFieldValues=[],es.pathFieldValues=[],es.operations=[];var ns=[{id:1,imgSrc:"/images/w-imgs/definition/center/c_start.png",title:"开始",text:"",associated:"start",resize:0,domJoin:1,type:1},{id:2,imgSrc:"/images/w-imgs/definition/center/c_ptjd.png",title:"普通节点",text:"",associated:"ptjd",resize:1,domJoin:4,type:2},{id:3,imgSrc:"/images/w-imgs/definition/center/c_zxjd.png",title:"执行节点",text:"部门领导审批",associated:"zxjd",resize:1,domJoin:4,type:3},{id:4,imgSrc:"/images/w-imgs/definition/center/c_drbx.png",title:"多人并行",text:"部门领导审批",associated:"drbx",resize:1,domJoin:4,type:4},{id:5,imgSrc:"/images/w-imgs/definition/center/c_drcx.png",title:"多人串行",text:"部门领导审批",associated:"drcx",resize:1,domJoin:4,type:5},{id:6,imgSrc:"/images/w-imgs/definition/center/c_hqjd.png",title:"会签节点",text:"部门领导审批",associated:"hqjd",resize:1,domJoin:4,type:6},{id:7,imgSrc:"/images/w-imgs/definition/center/c_ywjd.png",title:"阅文节点",text:"部门领导审批",associated:"ywjd",resize:1,domJoin:4,type:7},{id:8,imgSrc:"/images/w-imgs/definition/center/c_jsrw.png",title:"结束任务",text:"部门领导审批",associated:"jsrw",resize:0,domJoin:4,type:8},{id:9,imgSrc:"/images/w-imgs/definition/center/c_jslc.png",title:"结束流程",text:"部门领导审批",associated:"jslc",resize:0,domJoin:4,type:9},{id:10,imgSrc:"/images/w-imgs/definition/center/c_jcjd.png",title:"决策节点",text:"部门领导审批",associated:"jcjd",resize:0,domJoin:4,type:10},{id:11,imgSrc:"/images/w-imgs/definition/center/c_zyjd.png",title:"自由节点",text:"部门领导审批",associated:"zyjd",resize:0,domJoin:4,type:11},{id:12,imgSrc:"/images/w-imgs/definition/center/c_dfzjd.png",title:"多分支节点",text:"部门领导审批",associated:"dfzjd",resize:0,domJoin:4,type:12},{id:13,imgSrc:"/images/w-imgs/definition/center/c_jhjd.png",title:"聚合节点",text:"部门领导审批",associated:"jhjd",resize:0,domJoin:4,type:13},{id:14,imgSrc:"/images/w-imgs/definition/center/c_zlc.png",title:"子流程节点",text:"",associated:"childWf",resize:0,domJoin:4,type:14}],is=n("e193"),rs={DragOptions:{cursor:"pointer",zIndex:2e3},endpoint:["Dot",{radius:7}],paintStyle:{fillStyle:"#438eb9",radius:5,lineWidth:"transparent"},isSource:!0,connector:["Flowchart",{stub:[50,50],gap:3,cornerRadius:5,alwaysRespectStubs:!1}],isTarget:!0,maxConnections:-1,connectorOverlays:[["Arrow",{width:10,length:10,location:1}],["Label",{label:"",cssClass:"line_text",events:{mousedown:function(t,e){is.draggable($(".line_text"))},mouseout:function(){return!1}}}]]};function as(t){return t.all?t.all:t.getElementsByTagName("*")}function os(t,e,n){n=n||document,window.attachEvent&&n.attachEvent("on"+t,e),window.addEventListener&&n.addEventListener(t,e,!1)}function ss(t){t=t||window.event,t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,t.preventDefault?t.preventDefault():t.returnValue=!1}function ls(t,e){t=t||window.event;var n=document.getElementById(e),i=us(n,n.offsetLeft),r=cs(n,n.offsetTop),a=document.querySelectorAll(".center-container")[0],o=t.pageX||t.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft),s=t.clientY+a.scrollTop;return{x:o-i,y:s-r}}function us(t,e){return t.parentElement&&(e+=t.parentElement.offsetLeft,e=us(t.parentElement,e)),e}function cs(t,e){return e}Array.prototype.remove=function(t){for(var e=0;e<this.length;e++)if(t==this[e])break;if(e!=this.length){for(var n=e;n<this.length-1;n++)this[n]=this[n+1];this.length--}},String.prototype.replaceAll=function(t,e){var n=new RegExp(t,"g");return this.replace(n,e)},document.getElementsBySelector=function(t){if(!document.getElementsByTagName)return new Array;for(var e=t.split(" "),n=new Array(document),i=0;i<e.length;i++){var r=e[i].replace(/^\s+/,"").replace(/\s+$/,"");if(r.indexOf("#")>-1){var a=r.split("#"),o=a[0],s=a[1],l=document.getElementById(s);if(o&&l.nodeName.toLowerCase()!=o)return new Array;n=new Array(l)}else if(r.indexOf(".")>-1&&null!==n[0]){a=r.split("."),o=a[0];var u=a[1];o||(o="*");for(var c=new Array,d=0,h=0;h<n.length;h++){b="*"==o?as(n[h]):n[h].getElementsByTagName(o);for(var f=0;f<b.length;f++)c[d++]=b[f]}n=new Array;for(var p=0,g=0;g<c.length;g++)c[g].className&&c[g].className.match(new RegExp("\\b"+u+"\\b"))&&(n[p++]=c[g])}else if(r.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)){o=RegExp.$1;var m=RegExp.$2,v=RegExp.$3,y=RegExp.$4;o||(o="*");for(c=new Array,d=0,h=0;h<n.length;h++){b="*"==o?as(n[h]):n[h].getElementsByTagName(o);for(f=0;f<b.length;f++)c[d++]=b[f]}n=new Array;var A;p=0;switch(v){case"=":A=function(t){return t.getAttribute(m)==y};break;case"~":A=function(t){return t.getAttribute(m).match(new RegExp("\\b"+y+"\\b"))};break;case"|":A=function(t){return t.getAttribute(m).match(new RegExp("^"+y+"-?"))};break;case"^":A=function(t){return 0==t.getAttribute(m).indexOf(y)};break;case"$":A=function(t){return t.getAttribute(m).lastIndexOf(y)==t.getAttribute(m).length-y.length};break;case"*":A=function(t){return t.getAttribute(m).indexOf(y)>-1};break;default:A=function(t){return t.getAttribute(m)}}n=new Array;for(p=0,g=0;g<c.length;g++)A(c[g])&&(n[p++]=c[g])}else{o=r;c=new Array;if(null!==n[0])for(d=0,h=0;h<n.length;h++){var b=n[h].getElementsByTagName(o);for(f=0;f<b.length;f++)c[d++]=b[f]}n=c}}return n};var ds=[];function hs(t){this.regions=[],this.selProp=t,this.InitRegions(t),this.selectedClass=t["selectedClass"],this.selectedRegion=[],this.selectDiv=null,this.startX=null,this.startY=null,this.parentId=t["parentId"]}function fs(){return ds}function ps(t,e,n){for(var i=fs(),r=e.position.left-e.originalPosition.left,a=e.position.top-e.originalPosition.top,o=0;o<i.length;o++)if(i[o].parentNode&&document.getElementById(n)){if(i[o].parentNode.id!==document.getElementById(n).parentNode.id)continue;var s=parseInt(qo()(i[o]).attr("bLeft")),l=parseInt(qo()(i[o]).attr("bTop"));qo()(i[o]).css("left",s+r+"px"),qo()(i[o]).css("top",l+a+"px")}}function gs(){for(var t=fs(),e=0;e<t.length;e++)qo()(t[e]).attr("bLeft",qo()(t[e]).position().left),qo()(t[e]).attr("bTop",qo()(t[e]).position().top)}function ms(){for(var t=fs(),e=0,n="",i=0;i<t.length;i++)""===n&&(n=t[i].parentNode.id),n===t[i].parentNode.id&&(qo()(t[i]).position().left<e||0===e)&&(e=qo()(t[i]).position().left);for(var r=0;r<t.length;r++)n===t[r].parentNode.id&&qo()(t[r]).css("left",e+"px");ts["jsPlumb"].repaintEverything()}function vs(){for(var t=fs(),e=0,n="",i=0;i<t.length;i++)""===n&&(n=t[i].parentNode.id),n===t[i].parentNode.id&&(qo()(t[i]).position().left<e||0===e)&&(e=qo()(t[i]).position().left+parseInt(ws(t[i],"width"))/2);for(var r=0;r<t.length;r++)n===t[r].parentNode.id&&qo()(t[r]).css("left",e-parseInt(ws(t[r],"width"))/2+"px");ts["jsPlumb"].repaintEverything()}function ys(){var t=fs();if(t.length<=2)alert("请选择至少三个个模型节点");else{for(var e=t[0].offsetTop,n=t[0].offsetTop,i=t[0].offsetHeight,r=(t[0].offsetHeight,0),a=0,o=0;o<t.length;o++)t[o].offsetTop<e&&(e=t[o].offsetTop,i=t[o].offsetHeight),t[o].offsetTop>n&&(n=t[o].offsetTop,t[o].offsetHeight);for(var s=n-(e+i),l=0;l<t.length;l++)t[l].offsetTop!=e&&t[l].offsetTop!=n&&(r+=t[l].offsetHeight);for(var u=0;u<t.length;u++)if(t[u].offsetTop!=e&&t[u].offsetTop!=n){var c=(s-r)/(t.length-1),d=c+i+e+a*t[u].offsetHeight+a*c;qo()(t[u]).css("top",d),a++}ts["jsPlumb"].repaintEverything()}}function As(){var t=fs();if(t.length<=2)alert("请选择至少三个模型节点");else{for(var e=t[0].offsetLeft,n=t[0].offsetLeft,i=t[0].offsetWidth,r=(t[0].offsetWidth,0),a=0,o=0;o<t.length;o++)t[o].offsetLeft<e&&(e=t[o].offsetLeft,i=t[o].offsetWidth),t[o].offsetLeft>n&&(n=t[o].offsetLeft,t[o].offsetWidth);for(var s=n-(e+i),l=0;l<t.length;l++)t[l].offsetLeft!=e&&t[l].offsetLeft!=n&&(r+=t[l].offsetWidth);for(var u=0;u<t.length;u++)if(t[u].offsetLeft!=e&&t[u].offsetLeft!=n){var c=(s-r)/(t.length-1),d=c+i+e+a*t[u].offsetWidth+a*c;qo()(t[u]).css("left",d),a++}ts["jsPlumb"].repaintEverything()}}function bs(){for(var t=fs(),e=0,n="",i=0;i<t.length;i++)""===n&&(n=t[i].parentNode.id),n===t[i].parentNode.id&&(qo()(t[i]).position().top<e||0===e)&&(e=qo()(t[i]).position().top);for(var r=0;r<t.length;r++)n===t[r].parentNode.id&&qo()(t[r]).css("top",e+"px");ts["jsPlumb"].repaintEverything()}function _s(){for(var t=fs(),e=0,n="",i=0;i<t.length;i++)""===n&&(n=t[i].parentNode.id),n===t[i].parentNode.id&&(qo()(t[i]).position().top+parseInt(ws(t[i],"height"))/2<e||0===e)&&(e=qo()(t[i]).position().top+parseInt(ws(t[i],"height"))/2);for(var r=0;r<t.length;r++)n===t[r].parentNode.id&&qo()(t[r]).css("top",e-parseInt(ws(t[r],"height"))/2+"px");ts["jsPlumb"].repaintEverything()}function ws(t,e){return t.currentStyle?t.currentStyle[e]:getComputedStyle(t,!1)[e]}hs.prototype.InitRegions=function(){var t=this;t.regions=[];var e=document.getElementsBySelector(t.selProp["region"]),n=!0;if(e&&e.length>0)for(var i=0;i<e.length;i++)e[i].onmousedown=function(){n=!1;var i=window.event||arguments[0];i.shiftKey||i.ctrlKey?-1==this.className.indexOf(t.selectedClass)?(this.className+=" "+t.selectedClass,ds.push(this)):(this.className=this.className.replaceAll(t.selectedClass,""),ds.remove(this)):-1===qo.a.inArray(this,ds)&&(t.clearSelections(e),this.className+=" "+t.selectedClass,ds=[],ds.push(this)),ss(i)},this.regions.push(e[i]);n&&(t.clearSelections(e),ds=[])},hs.prototype.select=function(){var t=this,e=t.parentId,n=[0,0],i=[0,0];document.getElementById(e)&&(os("mousedown",(function(){var r=window.event||arguments[0],a=r.buttons||r.button;if((void 0==r.target||r.target.id===e)&&(void 0==r.srcElement||r.srcElement.id===e)){if(void 0==r.buttons&&0==a&&t.onBeforeSelect(r,e),1===a&&t.onBeforeSelect(r,e),2===a){n=[r.clientX,r.clientY];var o=parseInt(ws(document.getElementById(e),"left")),s=parseInt(ws(document.getElementById(e),"top"));i=[o,s],document.getElementById(e).style.cursor="move"}ss(r)}}),document),os("mousemove",(function(){var r=window.event||arguments[0],a=r.buttons||r.button;if(void 0==r.buttons&&0==a&&t.onSelect(r,e),1===a&&t.onSelect(r,e),2===a){var o=i[0]+r.clientX-n[0],s=i[1]+r.clientY-n[1];o>=0&&(o=0),s>=0&&(s=0),qo()("#"+e).css("left",o+"px"),qo()("#"+e).css("top",s+"px")}ss(r)}),document),os("mouseup",(function(){var e=window.event||arguments[0];e.buttons||e.button;e.buttons,t.onEnd()}),document))},hs.prototype.onBeforeSelect=function(t,e){var n=this;n.InitRegions(n.selProp),document.getElementById("selContainer")?this.selectDiv=document.getElementById("selContainer"):(this.selectDiv=document.createElement("div"),this.selectDiv.style.cssText="position:absolute;width:0px;height:0px;font-size:0px;margin:0px;padding:0px;border:1px dashed #0099FF;background-color:#C3D5ED;z-index:1000;filter:alpha(opacity:60);opacity:0.6;display:none;",this.selectDiv.id="selContainer",document.getElementById(e).appendChild(this.selectDiv)),this.startX=ls(t,e).x,this.startY=ls(t,e).y,this.isSelect=!0},hs.prototype.onSelect=function(t,e){var n=this;if(n.isSelect){"none"==n.selectDiv.style.display&&(n.selectDiv.style.display="");var i=ls(t,e).x,r=ls(t,e).y;n.selectDiv.style.left=Math.min(i,this.startX)+"px",n.selectDiv.style.top=Math.min(r,this.startY)+"px",n.selectDiv.style.width=Math.abs(i-this.startX)+"px",n.selectDiv.style.height=Math.abs(r-this.startY)+"px";for(var a=n.regions,o=0;o<a.length;o++)if(n.selectDiv.parentNode.id===a[o].parentNode.id){var s=a[o],l=n.innerRegion(n.selectDiv,s);l&&-1==s.className.indexOf(n.selectedClass)?(s.className=s.className+" "+n.selectedClass,ds.push(s)):l||-1==s.className.indexOf(n.selectedClass)||(s.className=s.className.replaceAll(n.selectedClass,""),ds.remove(s))}}},hs.prototype.onEnd=function(){var t=this;t.selectDiv&&(t.selectDiv.style.display="none"),this.isSelect=!1},hs.prototype.innerRegion=function(t,e){var n=parseInt(t.style.top),i=parseInt(t.style.left),r=i+parseInt(t.offsetWidth),a=n+parseInt(t.offsetHeight),o=parseInt(e.offsetTop),s=parseInt(e.offsetLeft),l=s+parseInt(e.offsetWidth),u=o+parseInt(e.offsetHeight),c=Math.max(n,o),d=Math.min(r,l),h=Math.min(a,u),f=Math.max(i,s);return h>c+5&&d>f+5?e:null},hs.prototype.clearSelections=function(t){for(var e=0;e<t.length;e++)t[e].className=t[e].className.replaceAll(this.selectedClass,"")};var xs,Ss="/images/w-imgs/definition/center/c_ptjd.png",Cs="/images/w-imgs/definition/center/c_zxjd.png",Ts="/images/w-imgs/definition/center/c_jzjd.png",Ms="/images/w-imgs/definition/center/c_drbx.png",ks="/images/w-imgs/definition/center/c_drcx.png",Ls="/images/w-imgs/definition/center/c_hqjd.png",Ds="/images/w-imgs/definition/center/c_ywjd.png",Es="/images/w-imgs/definition/center/c_zlc.png",Bs={};function Is(t,e){qo()("#"+t).bind("mousedown",(function(n){var i=ts["jsPlumb"].getAllConnections(),r=[],a=qo()(this).attr("id");return 3===n.which&&(qo()(".dropdown-menu").show(),qo()(".dropdown-menu").css({left:n.pageX,top:n.pageY}),qo()(".dropdown-menu").find("a").hide(),qo()("#deleteNode").show(),qo()("#deleteNode").bind("click",(function(){for(var n=0;n<i.length;n++)i[n].targetId==a&&r.push(i[n]),i[n].sourceId==a&&r.push(i[n]);for(var o=0;o<e.paths.length;o++)for(var s=0;s<r.length;s++)e.paths[o].id==r[s].id&&e.paths.splice(o,1);for(var l=0;l<e.nodes.length;l++)e.nodes[l].id==a&&(e.nodes[l].name&&"start"==e.nodes[l].name&&Bs.start--,e.nodes.splice(l,1));ts["jsPlumb"].remove(t)}))),!1}))}Bs.countId=0,Bs.modelId="PROCESS_DOM_",Bs.createDom="",Bs.start=0,Bs.CreateModel=function(t,e,n,i,r,a,o){if(Bs.start>=1&&"start"==r)return alert("已经有开始节点存在了"),!1;"start"==r&&Bs.start++;var s=parseInt(t.offset.left-qo()(e).offset().left),l=parseInt(t.offset.top-qo()(e).offset().top+20);Bs.countId++;var u=Jo();return Bs.createDom="start"===r||"jslc"===r||"jsrw"===r||"zyjd"===r||"dfzjd"===r||"jhjd"===r||"jcjd"===r?Bs.customModel(u,r,a):Bs.ordinaryModel(u,r,a),qo()("#center").append(Bs.createDom),qo()("#"+u).css("left",s).css("top",l),1===i||(ts["jsPlumb"].addEndpoint(u,{anchors:[1,.5,1,0],uuid:jsPlumbUtil.uuid()},rs),ts["jsPlumb"].addEndpoint(u,{anchors:[0,.5,-1,0],uuid:jsPlumbUtil.uuid()},rs),ts["jsPlumb"].addEndpoint(u,{anchors:[.5,0,0,-1],uuid:jsPlumbUtil.uuid()},rs)),ts["jsPlumb"].addEndpoint(u,{anchors:[.5,1,0,1],uuid:jsPlumbUtil.uuid()},rs),qo()("#"+u).draggable({start:function(){gs(),ts["jsPlumb"].repaintEverything()},drag:function(t,e){ps(t,e,u),ts["jsPlumb"].repaintEverything()},stop:function(){ts["jsPlumb"].repaintEverything()}}),Is(u,o),xs=!0,u},Bs.ordinaryModel=function(t,e,n){for(var i="",r="",a=0;a<ns.length;a++)ns[a].associated===e&&(r=ns[a].title,ns[a].text);switch(e){case"ptjd":i=Ss;break;case"jzjd":i=Ts;break;case"drbx":i=Ms;break;case"drcx":i=ks;break;case"hqjd":i=Ls;break;case"ywjd":i=Ds;break;case"childWf":i=Es;break;case"zxjd":i=Cs;break}var o='<div id="'+t+'" type="'+n+'" class="process model_process '+e+'"><div class="title"><img src="'+i+'" width="22" alt=""><span>'+r+"</span></div><p></p></div>";return xs=!0,o},Bs.customModel=function(t,e,n){var i='<div id="'+t+'" type="'+n+'" class="process '+e+'"></div>';return i};var Os={connection:null,init:function(){Os.configLeft()},configLeft:function(){var t=qo()("#left .domList").find("li");t.each((function(e,n){t.eq(e).attr("associated",ns[e].associated),t.eq(e).attr("resize",ns[e].resize),t.eq(e).attr("domJoin",ns[e].domJoin),t.eq(e).attr("type",ns[e].type)}))}},Ps={};function Ns(t){return js(t)||Rs(t)||Us(t)||Fs()}function Fs(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Us(t,e){if(t){if("string"===typeof t)return Hs(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hs(t,e):void 0}}function Rs(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function js(t){if(Array.isArray(t))return Hs(t)}function Hs(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Ys(t){return Ys="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ys(t)}function zs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Qs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zs(Object(n),!0).forEach((function(e){Vs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vs(t,e,n){return e=Ws(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ws(t){var e=Gs(t,"string");return"symbol"==Ys(e)?e:e+""}function Gs(t,e){if("object"!=Ys(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=Ys(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}Ps.init=function(){Ps.setDrag(),Ps.event()},Ps.setDrag=function(){qo()(".right-form").draggable()},qo()(".right-form").draggable({containment:"#center"}),Ps.event=function(){qo()("body").on("click",".process",(function(){qo()(".right-form").show();var t=qo()(this).attr("type");switch(t){case"2":case"3":case"4":case"5":case"6":case"7":qo()(".node").hide(),qo()(".panel_node").show();break;case"14":case"15":qo()(".node").hide(),qo()(".panel_node").show();break;case"10":qo()(".node").hide(),qo()(".panel_decision").show();break;case"13":qo()(".node").hide(),qo()(".panel_aggregation").show();break;default:qo()(".node").hide(),qo()(".panel_process").show()}return!1}))};var Ks=n("e193");Ks.importDefaults({PaintStyle:{lineWidth:8,stroke:"#00ff54"}});var $s={components:{},props:{},data:function(){return{listarr:[],dwadmin:0,product:0,PathLabelText:"",ptjd:"/images/w-imgs/definition/center/c_ptjd.png",zxjd:"/images/w-imgs/definition/center/c_zxjd.png",id:"",curObjType:"process",curNode:{},curPath:{},curp:null,curNextNode:{},curNodeOperationArr:[],curNodeOperation:{},waitNodeArr:[],nodeTypeArray:[],processNum:0,pathFieldValue:{},addPathFieldValue:{},jcjdPath:!1,jhjdPath:!1,jobPathFieldValue:{},processTypes:[],nextNodeArr:[],historyNodes:[],addHistoryNodes:[],vo:{},wflow:es,dataStatus:!1,pathObj:[],ideaL:[],ideaLables:"",nodeFieldValue:{},addNodeFieldValue:{},assistNodeFieldValue:{},workgroup:{},addWorkgroup:{},assistWorkgroup:{},jobPosition:{},addJobPosition:{},assistJobPosition:{},orgStaff:{},addOrgStaff:{},assistOrgStaff:{},oldWflow:null,pathNumber:0,getWflow:[],process:{chartData:"",codeRule:"",commonIdea:"",creatPersonId:Jo(),createTime:"",creator:"",description:"",id:Jo(),name:"",orgCode:"",orgName:"",processNo:"",processType:"",status:1,sysCode:"",sysName:"",version:"",workFormM:"",workFormW:""},isDomChange:!1,dragLineObj:{disX:0,disY:0},connectsArr:[],responseVo:{}}},computed:Qs({},Object(l["a"])(["loginUser"])),watch:{resRoles:function(t){this.curNodeOperation.passenger.tResRoles&&(this.curNodeOperation.passenger.resRoles=this.curNodeOperation.passenger.tResRoles)}},created:function(){var t=this.$route.query.id;if(this.id=t,"plat"!==this.loginUser.orgCode||"1"===this.$route.query.dwadmin?(this.dwadmin=1,this.$set(this.process,"orgName",this.loginUser.orgName),this.$set(this.process,"orgCode",this.loginUser.orgCode),void 0!==this.$route.query.sysCode&&(this.$set(this.process,"sysName",this.$route.query.sysName),this.$set(this.process,"sysCode",this.$route.query.sysCode))):"1"===this.$route.query.product?this.product=1:"1"===this.$route.query.platadmin&&(this.$set(this.process,"sysName",this.loginUser.sysName),this.$set(this.process,"sysCode",this.loginUser.sysCode),this.$set(this.process,"orgName",this.loginUser.orgName),this.$set(this.process,"orgCode",this.loginUser.orgCode)),void 0!==this.$route.query.udmid){var e=this.$route.query;this.$set(this.process,"name",e.udmname),this.$set(this.process,"processNo","udmjysp_"+e.udmcode),this.$set(this.process,"version","V1.0"),this.$set(this.process,"workFormW","/dcontent/"+e.workform+"/"),e.ideaLables&&""!==e.ideaLables&&(this.ideaLables=e.ideaLables.replace(/,/g,"\r\n"),this.$bus.emit("emitIdeaLables",this.ideaLables),this.saveIdeaLable(this.ideaLables)),this.$bus.emit("emitProcess",this.process)}this.$bus.on("closeWorkflow",this.closeWorkflow),this.$bus.on("saveWorkflow",this.saveWorkflow),this.$bus.on("setIsRequired",this.setIsRequired),this.$bus.on("labelChange",this.labelChange),this.$bus.on("bindName",this.bindName),this.$bus.on("changeNodeType",this.changeNodeType),this.$bus.on("saveIdeaLable",this.saveIdeaLable),this.$bus.on("nodeFieldValueFn",this.nodeFieldValueFn),this.$bus.on("onSelectSuborgCompleted",this.onSelectSuborgCompleted),this.$bus.on("onSelectStaffCompleted",this.onSelectStaffCompleted),this.$bus.on("onSelectWorkgroupCompleted",this.onSelectWorkgroupCompleted),this.$bus.on("onSelectJobPositionCompleted",this.onSelectJobPositionCompleted),this.$bus.on("addButton",this.addButton),this.$bus.on("selAddButton",this.selAddButton),this.$bus.on("queryAddButton",this.queryAddButton),this.$bus.on("deleteButton",this.deleteButton),this.$bus.on("editButton",this.editButton),this.$bus.on("queryAlterButton",this.queryAlterButton),this.$bus.on("onSelectListpageRowCompleted",this.onSelectListpageRowCompleted),this.$bus.on("watchLine",this.watchLine)},beforeDestroy:function(){Ks.destroy(),this.$bus.off("closeWorkflow",this.closeWorkflow),this.$bus.off("saveWorkflow",this.saveWorkflow),this.$bus.off("setIsRequired",this.setIsRequired),this.$bus.off("labelChange",this.labelChange),this.$bus.off("bindName",this.bindName),this.$bus.off("changeNodeType",this.changeNodeType),this.$bus.off("saveIdeaLable",this.saveIdeaLable),this.$bus.off("nodeFieldValueFn",this.nodeFieldValueFn),this.$bus.off("onSelectSuborgCompleted",this.onSelectSuborgCompleted),this.$bus.off("onSelectStaffCompleted",this.onSelectStaffCompleted),this.$bus.off("onSelectWorkgroupCompleted",this.onSelectWorkgroupCompleted),this.$bus.off("onSelectJobPositionCompleted",this.onSelectJobPositionCompleted),this.$bus.off("addButton",this.addButton),this.$bus.off("selAddButton",this.selAddButton),this.$bus.off("queryAddButton",this.queryAddButton),this.$bus.off("deleteButton",this.deleteButton),this.$bus.off("editButton",this.editButton),this.$bus.off("queryAlterButton",this.queryAlterButton),this.$bus.off("onSelectListpageRowCompleted",this.onSelectListpageRowCompleted),this.$bus.off("watchLine",this.watchLine)},mounted:function(){var t=this;this.dragLineObj.init=function(e,n){t.dragLine(e,n)};var e=new hs({region:"#center div.process",selectedClass:"seled",parentId:"center"});e.select(),qo()("#topAlign").click((function(){bs()})),qo()("#leftAlign").click((function(){ms()})),qo()("#verticalAlign").click((function(){vs()})),qo()("#verticalMean").click((function(){ys()})),qo()("#levelAlign").click((function(){_s()})),qo()("#levelMean").click((function(){As()})),qo()("#left ul").find("li").draggable({helper:"clone",scope:"plant"});var n="";Os.init(),Ps.init(),this.handleBtn(),this.id?this.$http({method:"GET",params:{product:this.product,dwadmin:this.dwadmin,copy:this.$route.query.copy},contentType:"application/x-www-form-urlencoded",url:"/voice/scene/getById?id="+this.id}).then((function(e){t.dataStatus=!0,t.wflow=e.body.vo,t.wflow.speaks.forEach((function(e){t.$set(e,"time",[e.startTime||"",e.endTime||""])})),t.wflow.nodes.forEach((function(e){t.$set(e,"SpeakMethod",t.wflow.speaks.filter((function(t){return t.nodeId===e.id&&2===t.type}))),t.$set(e,"successSpeakMethod",t.wflow.speaks.filter((function(t){return t.nodeId===e.id&&1===t.type}))),t.$set(e,"errorSpeakMethod",t.wflow.speaks.filter((function(t){return t.nodeId===e.id&&0===t.type})))}));var i=[];t.wflow.paths.forEach((function(t){var e={nextNodeId:t.afterNodeId,pathId:t.id};i.push(e)})),t.$set(t.wflow,"nextNodes",i),t.$set(t.wflow,"pathFieldValues",[]),t.$set(t.wflow,"nodeFieldValues",[]),t.responseVo=JSON.parse(JSON.stringify(e.body.vo)),t.ideaL=t.wflow.ideaLabels;for(var r=0;r<t.wflow.paths.length;r++)t.getWflow.push(t.wflow.paths[r].id);for(var a=0;a<t.wflow.paths.length;a++)t.pathObj.push(t.wflow.paths[a]);t.wflow.paths.length=0,t.process=e.body.vo.scene,t.emitData();var o=JSON.parse(e.body.vo.scene.chartData),s=o.connects;t.connectsArr=s;for(var l=o.domHtml,u=[],c=0;c<l.length;c++)qo()("#center").append(Zo.decode(l[c].domH));qo()(".process").removeClass("seled"),qo()(".process").each((function(e,n){u.push(qo()(n).attr("id")),Is(qo()(n).attr("id"),t.wflow),qo()(n).hasClass("ptjd")?qo()(n).find("img").attr("src",t.ptjd):qo()(n).hasClass("jzjd")?qo()(n).find("img").attr("src",t.jzjd):qo()(n).hasClass("drbx")?qo()(n).find("img").attr("src",t.drbx):qo()(n).hasClass("drcx")?qo()(n).find("img").attr("src",t.drcx):qo()(n).hasClass("hqjd")?qo()(n).find("img").attr("src",t.hqjd):qo()(n).hasClass("ywjd")?qo()(n).find("img").attr("src",t.ywjd):qo()(n).hasClass("childWf")&&qo()(n).find("img").attr("src",t.zlx)}));for(var d=0;d<u.length;d++)qo()("#"+u[d]).hasClass("start")?(Ks.addEndpoint(u[d],{anchors:[.5,1,0,1]},rs),Bs.start++):(Ks.addEndpoint(u[d],{anchors:[1,.5,1,0]},rs),Ks.addEndpoint(u[d],{anchors:[0,.5,-1,0]},rs),Ks.addEndpoint(u[d],{anchors:[.5,0,0,-1]},rs),Ks.addEndpoint(u[d],{anchors:[.5,1,0,1]},rs));for(var h=0;h<s.length;h++){n=s[h].label;var f=[s[h].firstEndpoints,s[h].secondEndpoints],p=0,g=0,m=void 0;"Straight"===s[h].type?m=["Straight",{stub:[0,0]}]:"Flowchart"===s[h].type?s[h].PageSourceId===s[h].PageTargetId?m=["Flowchart",{stub:[50,50],gap:3,cornerRadius:5,alwaysRespectStubs:!1}]:(0===s[h].firstEndpoints[1]&&1===s[h].secondEndpoints[1]||1===s[h].firstEndpoints[1]&&0===s[h].secondEndpoints[1]?(g=s[h].topY,m=["Flowchart",{stub:[0,0],gap:3,cornerRadius:5,alwaysRespectStubs:!0,midpoint:g}]):Math.abs(s[h].pathMaxX)>=Math.abs(s[h].pathMinX)?"Flowchart"!==s[h].type?p=0:s[h].firstEndpoints.x===s[h].secondEndpoints.x?(p=s[h].pathMaxX>=0?Math.abs(s[h].pathMinX):Math.abs(s[h].pathMaxX),m=[s[h].type,{stub:[p,20],gap:3,cornerRadius:5,alwaysRespectStubs:!0}]):s[h].PageSourceId===s[h].PageTargetId?(p=10,m=[s[h].type,{stub:[p,20],gap:3,cornerRadius:5,alwaysRespectStubs:!0}]):(p=0,m=[s[h].type,{stub:[p,20],gap:3,cornerRadius:5,alwaysRespectStubs:!0}]):(p=Math.abs(s[h].pathMinX),m=[s[h].type,{stub:[p,10],gap:3,cornerRadius:5,alwaysRespectStubs:!0}]),(0===s[h].firstEndpoints[1]&&0===s[h].secondEndpoints[1]||1===s[h].firstEndpoints[1]&&1===s[h].secondEndpoints[1])&&(console.log(s[h]),m=[s[h].type,{stub:[50,50],gap:3,cornerRadius:5,alwaysRespectStubs:!0}])):"Bezier"===s[h].type&&(m=["Bezier",{stub:[0,0]}]);var v=Ks.connect({source:s[h].PageSourceId,target:s[h].PageTargetId,anchors:f,editable:!0,paintStyle:{strokeStyle:"#438eb9",fillStyle:"#438eb9",radius:5,lineWidth:2},parameters:{pathId:s[h].ConnectionId},endpointStyle:{fill:"lightgray",outlineStroke:"darkgray",outlineWidth:2},connector:m,overlays:[["Arrow",{width:10,length:10,location:1}]],endpoint:["Dot",{radius:5}],cssClass:"line_path"});try{v.setLabel({label:n,cssClass:"line_text"}),v=null}catch(y){console.log(y)}}qo()(".right-form").draggable({containment:"#center"}),qo()(".process").draggable({containment:"#center"}),qo()(".process").draggable({distance:20}),qo()(".process").draggable({start:function(){gs(),Ks.repaintEverything()},drag:function(e,n){var i=e.target.id;ps(e,n,i),t.isDomChange=!0,Ks.repaintEverything()},stop:function(){Ks.repaintEverything()}}),t.dataStatus=!1,qo()(".process").bind("click",(function(e){qo()(".process").removeClass("seled"),qo()(e.currentTarget).addClass("seled"),t.getHistroyNodes();for(var n=qo()(e.currentTarget).attr("id"),i=0;i<t.wflow.nodes.length;i++)if(n===t.wflow.nodes[i].id){t.curNode=t.wflow.nodes[i],qo()(e.currentTarget).attr("id",t.wflow.nodes[i].id);break}t.curNodeOperationArr=[],t.getWaitNode(),t.emitData()})),t.AddAnchor(),t.oldWflow=JSON.parse(JSON.stringify(t.wflow))}),(function(e){t.$message.error(e)})):this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"/voice/scene/addNew"}).then((function(e){"success"===e.code&&(console.log(e),t.process=e.body.vo.scene,t.process.createName=t.loginUser.personAccount,t.emitData())}));var i=null,r=!1;Ks.bind("connection",(function(e){return qo()(e.source).hasClass("dfzjd")||e.connection.setHoverPaintStyle({stroke:"red"}),e.connection.setPaintStyle({stroke:"#438eb9",fillStyle:"#438eb9",radius:5}),t.dragPath(e),t.oldWflow=JSON.parse(JSON.stringify(t.wflow)),t.ComparePath(),t.emitData(),!1})),Ks.bind("mousedown",(function(e,n){for(var r={},a=t.connectsArr.length,o=0;o<a;o++)if(e.id===t.connectsArr[o].ConnectionId){r=t.connectsArr[o];break}i=e.endpoints[1],console.log,i._jsPlumb.maxConnections=1,t.clickPath(e),t.dragLineObj.init(e,r),qo()(e.source).hasClass("dfzjd")||e.setPaintStyle({stroke:"red"});var s=!0,l=!0,u=!0;t.curPath.multiLevelPathFieldValue||(t.curPath.multiLevelPathFieldValue={});for(var c=0;c<t.wflow.pathFieldValues.length;c++)t.wflow.pathFieldValues[c].pathId===t.curPath.id?(0===t.wflow.pathFieldValues[c].valueType&&(t.curPath.multiLevelPathFieldValue[t.wflow.pathFieldValues[c].value]=!0),1===t.wflow.pathFieldValues[c].valueType?(t.pathFieldValue=t.wflow.pathFieldValues[c],s=!1):2===t.wflow.pathFieldValues[c].valueType?(t.addPathFieldValue=t.wflow.pathFieldValues[c],l=!1):3===t.wflow.pathFieldValues[c].valueType&&(t.jobPathFieldValue=t.wflow.pathFieldValues[c],u=!1)):(s&&(t.pathFieldValue={}),l&&(t.addPathFieldValue={}),u&&(t.jobPathFieldValue={}));return t.emitData(),!1})),Ks.bind("click",(function(t,e){return console.log("路径点击"),"none"!==qo()(".panel_path").css("display")&&(qo()(t.source).hasClass("dfzjd")||t.setPaintStyle({stroke:"red"})),qo()(".process").removeClass("seled"),r=!0,!1})),qo()(document).bind("contextmenu",(function(){return!1})),qo()(document).click((function(){qo()("#centextMenu").hide()})),qo()("#center").click((function(){for(var t=Ks.getConnections(),e=0;e<t.length;e++)t[e].setPaintStyle({stroke:"#438eb9",fillStyle:"#438eb9",radius:5});i&&(r&&i._jsPlumb&&(i._jsPlumb.maxConnections=-1),r=!1)})),Ks.bind("contextmenu",(function(e,n){qo()("#centextMenu").length>0&&qo()("#centextMenu").remove();var i='<div id="centextMenu" style=" top:'+n.pageY+"px;left:"+n.pageX+'px;"><a class="delete_line" href="javascript:;">删除连接线</a><a class="change_line_workline" href="javascript:;">转变为折线</a><a class="change_line_stright" href="javascript:;">转变为直线</a><a class="change_line_Bezier" href="javascript:;">转变为曲线</a></div>';qo()("#center").append(i),qo()(".delete_line").bind("click",(function(){var n=e.id;console.log(e.sourceId);for(var i=0;i<t.wflow.nextNodes.length;i++)t.wflow.nextNodes[i].pathId!==n&&t.wflow.nextNodes[i].nextNodeId!==e.targetId||t.wflow.nextNodes.splice(i,1);for(var r=0;r<t.wflow.pathFieldValues.length;r++)t.wflow.pathFieldValues[r].pathId===n&&t.wflow.pathFieldValues.splice(r,1);for(var a=0;a<t.wflow.paths.length;a++)console.log(t.wflow.paths[a].id),e.id===t.wflow.paths[a].id&&t.wflow.paths.splice(a,1);Ks.deleteConnection(e)})),qo()(".change_line_stright").bind("click",(function(){if("Straight"!==e.type){console.log(t.getWflow,t.getWflow.length);var n=t.getWflow.some((function(t){return e.id===t}));if(n){t.dataStatus=!0;for(var i=e.id,r=0;r<t.wflow.nextNodes.length;r++)t.wflow.nextNodes[r].pathId===i&&t.wflow.nextNodes.splice(r,1);for(var a=0;a<t.wflow.pathFieldValues.length;a++)t.wflow.pathFieldValues[a].pathId===i&&t.wflow.pathFieldValues.splice(a,1);Ks.deleteConnection(e);for(var o=0;o<t.connectsArr.length;o++)if(e.id===t.connectsArr[o].ConnectionId){t.PathLabelText=t.connectsArr[o].label,t.wflow.paths.splice(o,1);var s=t.connectsArr[o].firstEndpoints,l=t.connectsArr[o].secondEndpoints,u=[s,l],c=Ks.connect({source:t.connectsArr[o].PageSourceId,target:t.connectsArr[o].PageTargetId,anchors:u,editable:!0,paintStyle:{strokeStyle:"#438eb9",fillStyle:"#438eb9",radius:5,lineWidth:2},parameters:{pathId:t.connectsArr[o].ConnectionId},endpointStyle:{fill:"lightgray",outlineStroke:"darkgray",outlineWidth:2},connector:["Straight",{stub:0,gap:0}],overlays:[["Arrow",{width:10,length:10,location:1}]],endpoint:["Dot",{radius:5}],cssClass:"line_path"});try{c.setLabel({label:t.PathLabelText}),c=null}catch(d){console.log(d)}}Ks.bind("connection",(function(e){return qo()(e.source).hasClass("dfzjd")||e.connection.setHoverPaintStyle({stroke:"red"}),e.connection.setPaintStyle({stroke:"#438eb9",fillStyle:"#438eb9",radius:5}),t.dragPath(e),t.oldWflow=JSON.parse(JSON.stringify(t.wflow)),t.emitData(),!1}))}else t.$message({type:"warning",message:"请先保存后再进行此操作"})}})),qo()(".change_line_Bezier").bind("click",(function(){if("Bezier"!==e.type){var n=t.getWflow.some((function(t){return e.id===t}));if(n){t.dataStatus=!0;var i=[e.endpoints[0].anchor.x,e.endpoints[0].anchor.y,e.endpoints[0].anchor.orientation[0],e.endpoints[0].anchor.orientation[1]],r=[e.endpoints[1].anchor.x,e.endpoints[1].anchor.y,e.endpoints[1].anchor.orientation[0],e.endpoints[1].anchor.orientation[1]],a=[i,r];console.log(a);for(var o=e.id,s=0;s<t.wflow.nextNodes.length;s++)t.wflow.nextNodes[s].pathId===o&&t.wflow.nextNodes.splice(s,1);for(var l=0;l<t.wflow.pathFieldValues.length;l++)t.wflow.pathFieldValues[l].pathId===o&&t.wflow.pathFieldValues.splice(l,1);Ks.deleteConnection(e);for(var u=0;u<t.connectsArr.length;u++)if(e.id===t.connectsArr[u].ConnectionId){t.PathLabelText=t.connectsArr[u].label,t.wflow.paths.splice(u,1);var c=t.connectsArr[u].firstEndpoints,d=t.connectsArr[u].secondEndpoints,h=[c,d],f=Ks.connect({source:t.connectsArr[u].PageSourceId,target:t.connectsArr[u].PageTargetId,anchors:h,editable:!0,paintStyle:{strokeStyle:"#438eb9",fillStyle:"#438eb9",radius:5,lineWidth:2},parameters:{pathId:t.connectsArr[u].ConnectionId},endpointStyle:{fill:"lightgray",outlineStroke:"darkgray",outlineWidth:2},connector:["Bezier",{stub:0,gap:0}],overlays:[["Arrow",{width:10,length:10,location:1}]],endpoint:["Dot",{radius:5}],cssClass:"line_path"});try{f.setLabel({label:t.PathLabelText}),f=null}catch(p){console.log(p)}}Ks.bind("connection",(function(e){return qo()(e.source).hasClass("dfzjd")||e.connection.setHoverPaintStyle({stroke:"red"}),e.connection.setPaintStyle({stroke:"#438eb9",fillStyle:"#438eb9",radius:5}),t.dragPath(e),t.oldWflow=JSON.parse(JSON.stringify(t.wflow)),t.emitData(),!1}))}else t.$message({type:"warning",message:"请先保存后再进行次操作"})}})),qo()(".change_line_workline").bind("click",(function(){if(console.log(e.type),"Flowchart"!==e.type&&"Bezier"!==e.type){var n=t.getWflow.some((function(t){return e.id===t}));if(n){t.dataStatus=!0;var i=[e.endpoints[0].anchor.x,e.endpoints[0].anchor.y,e.endpoints[0].anchor.orientation[0],e.endpoints[0].anchor.orientation[1]],r=[e.endpoints[1].anchor.x,e.endpoints[1].anchor.y,e.endpoints[1].anchor.orientation[0],e.endpoints[1].anchor.orientation[1]],a=[i,r];console.log(a);for(var o=e.id,s=0;s<t.wflow.nextNodes.length;s++)t.wflow.nextNodes[s].pathId===o&&t.wflow.nextNodes.splice(s,1);for(var l=0;l<t.wflow.pathFieldValues.length;l++)t.wflow.pathFieldValues[l].pathId===o&&t.wflow.pathFieldValues.splice(l,1);Ks.deleteConnection(e);for(var u=0;u<t.connectsArr.length;u++)if(e.id===t.connectsArr[u].ConnectionId){t.PathLabelText=t.connectsArr[u].label,t.wflow.paths.splice(u,1);var c=t.connectsArr[u].firstEndpoints,d=t.connectsArr[u].secondEndpoints,h=[c,d],f=Ks.connect({source:t.connectsArr[u].PageSourceId,target:t.connectsArr[u].PageTargetId,anchors:h,editable:!0,paintStyle:{strokeStyle:"#438eb9",fillStyle:"#438eb9",radius:5,lineWidth:2},parameters:{pathId:t.connectsArr[u].ConnectionId},endpointStyle:{fill:"lightgray",outlineStroke:"darkgray",outlineWidth:2},connector:["Flowchart",{stub:[50,50],gap:3,cornerRadius:5,alwaysRespectStubs:!1}],overlays:[["Arrow",{width:10,length:10,location:1}]],endpoint:["Dot",{radius:5}],cssClass:"line_path"});try{f.setLabel({label:t.PathLabelText}),f=null}catch(p){console.log(p)}}Ks.bind("connection",(function(e){return qo()(e.source).hasClass("dfzjd")||e.connection.setHoverPaintStyle({stroke:"red"}),e.connection.setPaintStyle({stroke:"#438eb9",fillStyle:"#438eb9",radius:5}),t.dragPath(e),t.oldWflow=JSON.parse(JSON.stringify(t.wflow)),t.emitData(),!1}))}else t.$message({type:"warning",message:"请先保存后再进行次操作"})}})),t.dataStatus=!1})),qo()("#center").droppable({scope:"plant",drop:function(e,n){var i=qo()(n.draggable).attr("associated"),r=qo()(n.draggable).attr("resize"),a=qo()(n.draggable).attr("domJoin"),o=qo()(n.draggable).attr("type"),s=Bs.CreateModel(n,qo()(e.target),r,a,i,o,t.wflow);t.getProcessNum(i),t.curNode={sceneId:"",status:-1,name:"",type:1,problem:[],keywords:"",serial:t.wflow.nodes.length+1,speakType:0,performId:"",createTime:"",updateTime:"",memo:"",id:s,SpeakMethod:[],successSpeakMethod:[],errorSpeakMethod:[]},"ptjd"===i?t.curNode.type=0:"zxjd"===i&&(t.curNode.type=1),t.wflow.nodes.push(t.curNode);for(var l=0;l<t.wflow.nodes.length;l++)if(t.curNode.id===t.wflow.nodes[l].id){t.curNode=t.wflow.nodes[l];break}t.emitData(),qo()(".process").bind("click",(function(e){qo()(".process").removeClass("seled"),qo()(e.currentTarget).addClass("seled"),t.getHistroyNodes();for(var n=qo()(e.currentTarget).attr("id"),i=0;i<t.wflow.nodes.length;i++)if(n===t.wflow.nodes[i].id){t.curNode=t.wflow.nodes[i],qo()(e.currentTarget).attr("id",t.wflow.nodes[i].id);break}t.changeCurNodeType(qo()(e.currentTarget)),t.clickNodeFieldValues(),t.getWaitNode(),t.emitData()})),t.AddAnchor()}}),this.wflow.ideaLabels=[{}],this.ideaArr=[]},methods:{getNodeSpecialData:function(t){this.nodeFieldValue={},this.addNodeFieldValue={},this.assistNodeFieldValue={},this.workgroup={},this.addWorkgroup={},this.assistWorkgroup={},this.jobPosition={},this.addJobPosition={},this.assistJobPosition={},this.orgStaff={},this.addOrgStaff={},this.assistOrgStaff={};for(var e=0;e<this.wflow.nodeFieldValues.length;e++)this.wflow.nodeFieldValues[e].nodeId===t&&(0===this.wflow.nodeFieldValues[e].valueType?this.nodeFieldValue=this.wflow.nodeFieldValues[e]:6===this.wflow.nodeFieldValues[e].valueType?this.addNodeFieldValue=this.wflow.nodeFieldValues[e]:11===this.wflow.nodeFieldValues[e].valueType?this.assistNodeFieldValue=this.wflow.nodeFieldValues[e]:1===this.wflow.nodeFieldValues[e].valueType?this.workgroup=this.wflow.nodeFieldValues[e]:7===this.wflow.nodeFieldValues[e].valueType?this.addWorkgroup=this.wflow.nodeFieldValues[e]:12===this.wflow.nodeFieldValues[e].valueType?this.assistWorkgroup=this.wflow.nodeFieldValues[e]:3===this.wflow.nodeFieldValues[e].valueType?this.jobPosition=this.wflow.nodeFieldValues[e]:9===this.wflow.nodeFieldValues[e].valueType?this.addJobPosition=this.wflow.nodeFieldValues[e]:14===this.wflow.nodeFieldValues[e].valueType?this.assistJobPosition=this.wflow.nodeFieldValues[e]:2===this.wflow.nodeFieldValues[e].valueType?this.orgStaff&&this.orgStaff.value?this.orgStaff.values+=","+this.wflow.nodeFieldValues[e].value:(this.orgStaff=this.wflow.nodeFieldValues[e],this.orgStaff.values=this.wflow.nodeFieldValues[e].value):8===this.wflow.nodeFieldValues[e].valueType?this.addOrgStaff&&this.addOrgStaff.value?this.addOrgStaff.values+=","+this.wflow.nodeFieldValues[e].value:(this.addOrgStaff=this.wflow.nodeFieldValues[e],this.addOrgStaff.values=this.wflow.nodeFieldValues[e].value):13===this.wflow.nodeFieldValues[e].valueType&&(this.assistOrgStaff&&this.assistOrgStaff.value?this.assistOrgStaff.values+=","+this.wflow.nodeFieldValues[e].value:(this.assistOrgStaff=this.wflow.nodeFieldValues[e],this.assistOrgStaff.values=this.wflow.nodeFieldValues[e].value)))},handleBtn:function(){qo()("#center").bind("mousedown",(function(t){if(3===t.which){qo()(".dropdown-menu").hide();var e=fs();return 2===e.length?(qo()(".dropdown-menu").show(),qo()(".dropdown-menu").find("a").show(),qo()("#deleteNode").hide(),qo()("#deleteLine").hide(),qo()("#verticalMean").hide(),qo()("#levelMean").hide(),qo()("#deleteNode").hide(),qo()(".dropdown-menu").css({top:t.pageY,left:t.pageX})):e.length>2&&(qo()(".dropdown-menu").find("a").show(),qo()("#deleteNode").hide(),qo()("#deleteLine").hide(),qo()(".dropdown-menu").show(),qo()("#verticalMean").show(),qo()("#levelMean").show(),qo()(".dropdown-menu").css({top:t.pageY,left:t.pageX})),!1}})),qo()(document).bind("click",(function(){qo()(".dropdown-menu").hide(),qo()(".dropdown-menu").find("#deleteNode").unbind()}))},getHistroyNodes:function(){for(var t=[],e=[],n=0;n<this.wflow.nodes.length;n++){var i="dfzjd"===this.wflow.nodes[n].name||"start"===this.wflow.nodes[n].name||"jsrw"===this.wflow.nodes[n].name||"jslc"===this.wflow.nodes[n].name||"zyjd"===this.wflow.nodes[n].name||"jhjd"===this.wflow.nodes[n].name;i||(t.push(this.wflow.nodes[n]),e.push(this.wflow.nodes[n]))}this.historyNodes=t,this.addHistoryNodes=e},getWaitNode:function(){var t=this;this.waitNodeArr=[];var e=[],n=qo()("#center").find(".process");n.each((function(i,r){var a=n.eq(i).hasClass("start")||n.eq(i).hasClass("jsrw")||n.eq(i).hasClass("jslc")||n.eq(i).hasClass("jcjd")||n.eq(i).hasClass("zyjd")||n.eq(i).hasClass("dfzjd")||n.eq(i).hasClass("jhjd")||n.eq(i).attr("id")===t.curNode.id;a||e.push(n.eq(i))}));for(var i=0;i<e.length;i++)for(var r=0;r<this.wflow.nodes.length;r++)e[i].attr("id")===this.wflow.nodes[r].id&&this.waitNodeArr.push(this.wflow.nodes[r]);if(this.curNode.needWaitNodeId&&"string"===typeof this.curNode.needWaitNodeId){var a=this.curNode.needWaitNodeId.split(",");this.curNode.needWaitNodeId={};for(var o=0;o<a.length;o++)for(var s=0;s<this.wflow.nodes.length;s++)if(this.wflow.nodes[s].id===a[o]){this.curNode.needWaitNodeId[a[o]]=!0;break}}else""!==this.curNode.needWaitNodeId&&null!==this.curNode.needWaitNodeId||(this.curNode.needWaitNodeId={})},dragPath:function(t){var e=this,n=!1;Ks.bind("connectionMoved",(function(t,i){n=!0;for(var r=0;r<e.wflow.paths.length;r++)e.wflow.paths[r].id===t.connection.id&&(e.curp=e.wflow.paths[r],e.wflow.paths.splice(r,1))}));var i=-1;if(this.dataStatus){if(n)this.curp&&(this.curPath=this.curp);else if(i=1,qo()(t.source).hasClass("dfzjd"));else if(qo()(t.source).hasClass("start"))t.connection.id=Jo();else for(var r=0;r<this.pathObj.length;r++)if(this.pathObj[r].id===t.connection._jsPlumb.parameters.pathId){this.curPath=this.pathObj[r],t.connection.id=this.pathObj[r].id;break}}else this.curp?(this.curPath=this.curp,this.curPath.id=t.connection.id,this.curp=null):(i=-1,this.curPath={status:i,id:"",name:"",beforNodeId:null,afterNodeId:"",createTime:"",memo:"",type:"0",updateTime:""},t.connection.id=Jo(),this.curPath.id=t.connection.id);qo()(t.target).hasClass("zxjd")?this.curPath.type=1:this.curPath.type=0;var a=qo()(t.source).hasClass("ptjd")||qo()(t.source).hasClass("jzjd")||qo()(t.source).hasClass("drbx")||qo()(t.source).hasClass("drcx")||qo()(t.source).hasClass("hqjd")||qo()(t.source).hasClass("ywjd")||qo()(t.source).hasClass("childWf"),o=qo()(t.target).hasClass("zyjd");if(a&&!o&&(qo()(t.target).hasClass("jcjd")?this.curPath.name="送决策":qo()(t.target).hasClass("jhjd")&&(this.curPath.pathType=6),this.curPath.beforNodeId="",this.curPath.beforNodeId=qo()(t.source).attr("id"),this.wflow.paths.push(this.curPath)),""!==this.curPath.beforNodeId&&this.wflow.nodes.forEach((function(t){e.curPath.beforNodeId===t.id&&(e.curPath.preNodeName=t.name)})),qo()(t.source).hasClass("jcjd")||qo()(t.source).hasClass("jhjd")){(qo()(t.target).hasClass("jcjd")||qo()(t.target).hasClass("jhjd"))&&qo()(t.target).addClass("lastJ"),qo()(t.source).hasClass("lastJ")&&(qo()(t.target).hasClass("jcjd")||qo()(t.target).hasClass("jhjd"))&&(this.$message({message:"不能添加",type:"warning"}),setTimeout((function(){Ks.deleteConnection(t.connection)}),200));var s=qo()(t.target).hasClass("ptjd")||qo()(t.target).hasClass("jzjd")||qo()(t.target).hasClass("drbx")||qo()(t.target).hasClass("drcx")||qo()(t.target).hasClass("hqjd")||qo()(t.target).hasClass("ywjd")||qo()(t.target).hasClass("jsrw")||qo()(t.target).hasClass("jslc")||qo()(t.target).hasClass("childWf");if(s&&!qo()(t.source).hasClass("dfzjd")){if(qo()(t.source).hasClass("jcjd")||qo()(t.source).hasClass("jhjd"))this.curPath.beforNodeId=qo()(t.source).attr("id"),this.curPath.ctrlType=6,this.wflow.nodes.forEach((function(t){e.curPath.beforNodeId===t.id&&(e.curPath.preNodeName=t.name)}));else{var l=Ks.getAllConnections();this.curPath.beforNodeId="";for(var u=0;u<l.length;u++)l[u].targetId===t.sourceId&&(""===this.curPath.beforNodeId?this.curPath.beforNodeId=this.curPath.beforNodeId+l[u].sourceId:this.curPath.beforNodeId=this.curPath.beforNodeId+","+l[u].sourceId);qo()(t.source).hasClass("jcjd")}this.wflow.paths.push(this.curPath)}}var c=qo()(t.target).hasClass("start")||qo()(t.target).hasClass("jsrw")||qo()(t.target).hasClass("jslc")||qo()(t.target).hasClass("jcjd")||qo()(t.target).hasClass("zyjd")||qo()(t.target).hasClass("dfzjd")||qo()(t.target).hasClass("jhjd");qo()(t.source).hasClass("dfzjd")&&c&&(this.$message({message:"不能添加",type:"warning"}),setTimeout((function(){Ks.deleteConnection(t.connection)}),200));var d=qo()(t.target).hasClass("start")||qo()(t.target).hasClass("dfzjd");if(qo()(t.source).hasClass("jhjd")&&d&&(this.$message({message:"不能添加",type:"warning"}),setTimeout((function(){Ks.deleteConnection(t.connection)}),200)),-1===this.curPath.status){var h=qo()(t.target).attr("id"),f=qo()(t.source).attr("id"),p=this.getPathTypes(h,f);this.curPath.pathType=p?3:0,qo()(t.source).attr("id")===qo()(t.target).attr("id")&&(this.curPath.pathType=1),qo()(t.target).hasClass("jslc")&&(this.curPath.pathType=4),qo()(t.target).hasClass("jsrw")&&(this.curPath.pathType=7),qo()(t.target).hasClass("jhjd")&&(this.curPath.pathType=5),this.clickPath(t.connection),this.addNum(this.curPath)}else"mouseup"===event.type&&this.clickPath(t.connection)},clickPath:function(t){if(qo()(".right-form").hide(),qo()(t.source).hasClass("dfzjd")){this.$bus.emit("isChange"),Os.connection=t;var e=this.listarr.some((function(e){return e===t.id}));if(e)return;this.listarr.push(t.id);for(var n=Ks.getAllConnections(),i=0;i<n.length;i++)if(qo()(n[i].target).hasClass("dfzjd")){var r=JSON.parse(JSON.stringify(n[i]));if(qo()(r.target).hasClass("dfzjd")){for(var a=Ks.getAllConnections(),o=[],s=!0,l=0;l<a.length;l++)qo()(a[l].source).hasClass("dfzjd")&&qo()(r.target).attr("id")===qo()(a[l].source).attr("id")&&o.push(a[l]);for(var u=0;u<es.nextNodes.length;u++)this.wflow.nextNodes[u].pathId===r.id&&this.wflow.nextNodes.splice(u--,1);if(s){for(var c=0;c<o.length;c++)this.curNextNode={status:-1,id:Jo(),nextNodeVal:qo()(o[c].target).find("p").html(),isRequired:this.getIsRequired(qo()(o[c].target).attr("id"),r.id).length>0?this.getIsRequired(qo()(o[c].target).attr("id"),r.id)[0].isRequired:0,nextNodeId:qo()(o[c].target).attr("id"),pathId:r.id},this.wflow.nextNodes.push(this.curNextNode),this.nextNodeArr.push(this.curNextNode);this.emitData()}for(var d=0;d<this.wflow.nodes.length;d++){for(var h=0;h<this.nextNodeArr.length;h++)this.wflow.nodes[d].id===this.nextNodeArr[h].nextNodeId&&(this.nextNodeArr[h].nextNodeVal=this.wflow.nodes[d].name);this.emitData()}}}}else this.$bus.emit("Change");this.nextNodeArr.length=0,qo()(t.target).hasClass("jcjd")?this.jcjdPath=!0:this.jcjdPath=!1,qo()(t.target).hasClass("jhjd")?this.jhjdPath=!0:this.jhjdPath=!1,Os.connection=t,this.emitData();var f=qo()(t.target).hasClass("ptjd")||qo()(t.target).hasClass("jzjd")||qo()(t.target).hasClass("drbx")||qo()(t.target).hasClass("drcx")||qo()(t.target).hasClass("hqjd")||qo()(t.target).hasClass("ywjd")||qo()(t.target).hasClass("jcjd")||qo()(t.target).hasClass("jhjd")||qo()(t.target).hasClass("childWf")||qo()(t.target).hasClass("zxjd"),p=qo()(t.source).hasClass("start")||qo()(t.source).hasClass("dfzjd");if(f&&!p&&!qo()(t.target).hasClass("dfzjd"))if(0===this.wflow.nextNodes.length)this.curNextNode={status:-1,id:Jo(),nextNodeVal:qo()(t.target).find("p").html(),isRequired:this.getIsRequired(qo()(t.target).attr("id"),t.id).length>0?this.getIsRequired(qo()(t.target).attr("id"),t.id)[0].isRequired:0,nextNodeId:qo()(t.target).attr("id"),pathId:t.id},this.wflow.nextNodes.push(this.curNextNode);else{for(var g=0;g<this.wflow.nextNodes.length;g++)t.id===this.wflow.nextNodes[g].pathId&&this.wflow.nextNodes.splice(g--,1);this.curNextNode={status:-1,id:Jo(),nextNodeVal:qo()(t.target).find("p").html(),isRequired:this.getIsRequired(qo()(t.target).attr("id"),t.id).length>0?this.getIsRequired(qo()(t.target).attr("id"),t.id)[0].isRequired:0,nextNodeId:qo()(t.target).attr("id"),pathId:t.id},this.wflow.nextNodes.push(this.curNextNode)}if(qo()(t.target).hasClass("jcjd")||qo()(t.target).hasClass("jhjd")){var m=Ks.getAllConnections();qo()(t.target).addClass("nextC");for(var v=0;v<m.length;v++)qo()(m[v].source).hasClass("nextC")&&(qo()(m[v].target).hasClass("jcjd")||qo()(t.target).hasClass("jhjd"))&&qo()(m[v].target).addClass("nextTwoC");for(var y=0;y<m.length;y++)if(qo()(m[y].source).hasClass("nextC")){var A=qo()(m[y].target).hasClass("ptjd")||qo()(m[y].target).hasClass("jzjd")||qo()(m[y].target).hasClass("drbx")||qo()(m[y].target).hasClass("drcx")||qo()(m[y].target).hasClass("hqjd")||qo()(m[y].target).hasClass("ywjd")||qo()(m[y].target).hasClass("childWf");if(A){for(var b=!0,_=0;_<es.nextNodes.length;_++)t.id===es.nextNodes[_].pathId&&this.wflow.nextNodes.splice(_--,1);b&&(this.curNextNode={status:-1,id:Jo(),nextNodeVal:qo()(m[y].target).find("p").html(),isRequired:this.getIsRequired(qo()(t.target).attr("id"),t.id).length>0?this.getIsRequired(qo()(t.target).attr("id"),t.id)[0].isRequired:0,nextNodeId:qo()(t.target).attr("id"),pathId:t.id},this.wflow.nextNodes.push(this.curNextNode))}}for(var w=0;w<m.length;w++)qo()(m[w].source).hasClass("nextTwoC")&&(this.curNextNode={status:-1,id:Jo(),nextNodeVal:qo()(m[w].target).find("p").html(),isRequired:this.getIsRequired(qo()(m[w].target).attr("id"),t.id).length>0?this.getIsRequired(qo()(m[w].target).attr("id"),t.id)[0].isRequired:0,nextNodeId:qo()(m[w].target).attr("id"),pathId:t.id},this.wflow.nextNodes.push(this.curNextNode))}if(qo()(t.target).hasClass("dfzjd")){for(var x=Ks.getAllConnections(),S=[],C=!0,T=0;T<x.length;T++)qo()(x[T].source).hasClass("dfzjd")&&qo()(t.target).attr("id")===qo()(x[T].source).attr("id")&&S.push(x[T]);for(var M=0;M<es.nextNodes.length;M++)this.wflow.nextNodes[M].pathId===t.id&&this.wflow.nextNodes.splice(M--,1);if(C){for(var k=0;k<S.length;k++)this.curNextNode={status:-1,id:Jo(),nextNodeVal:qo()(S[k].target).find("p").html(),isRequired:this.getIsRequired(qo()(S[k].target).attr("id"),t.id).length>0?this.getIsRequired(qo()(S[k].target).attr("id"),t.id)[0].isRequired:0,nextNodeId:qo()(S[k].target).attr("id"),pathId:t.id},this.wflow.nextNodes.push(this.curNextNode),this.nextNodeArr.push(this.curNextNode);this.emitData()}for(var L=0;L<this.wflow.nodes.length;L++){for(var D=0;D<this.nextNodeArr.length;D++)this.wflow.nodes[L].id===this.nextNodeArr[D].nextNodeId&&(this.nextNodeArr[D].nextNodeVal=this.wflow.nodes[L].name);this.emitData()}}for(var E=0;E<this.wflow.paths.length;E++)if("送决策"===this.wflow.paths[E].name&&(this.wflow.paths[E].pathType=6),t.id===this.wflow.paths[E].id)return this.curPath=this.wflow.paths[E],this.curPath.beforNodeId=t.sourceId,void qo()(".node").hide();qo()(".node").hide(),qo()(".panel_path").hide(),qo()(".panel_process").show()},getPathTypes:function(t,e){for(var n="",i="",r=0;r<this.wflow.nodes.length;r++)this.wflow.nodes[r].id===t&&(n=this.wflow.nodes[r].nodeNo),this.wflow.nodes[r].id===e&&(i=this.wflow.nodes[r].nodeNo);return n<parseInt(i)},getProcessNum:function(t){var e="ptjd"===t||"jzjd"===t||"drbx"===t||"drcx"===t||"hqjd"===t||"ywjd"===t||"jcjd"===t||"jhjd"===t||"childWf"===t,n=qo()(".process"),i=[];e?(n.each((function(t,e){var r=qo()(e).hasClass("ptjd")||qo()(e).hasClass("jzjd")||qo()(e).hasClass("drbx")||qo()(e).hasClass("drcx")||qo()(e).hasClass("hqjd")||qo()(e).hasClass("ywjd")||qo()(e).hasClass("jcjd")||qo()(e).hasClass("jhjd")||qo()(e).hasClass("childWf");r&&i.push(n.eq(t))})),this.processNum=i.length):this.processNum=""},changeCurNodeType:function(t){var e=this;t.hasClass("ptjd")?(this.curNode.processType=0,this.curNode.nodeType=1):t.hasClass("jzjd")?(this.curNode.processType=4,this.curNode.nodeType=1):t.hasClass("drbx")?(this.curNode.processType=1,this.curNode.nodeType=1):t.hasClass("drcx")?(this.curNode.processType=3,this.curNode.nodeType=1):t.hasClass("hqjd")?(this.curNode.processType=2,this.curNode.nodeType=1):t.hasClass("ywjd")&&setTimeout((function(){e.curNode.processType=0,e.curNode.nodeType=3}),100)},clickNodeFieldValues:function(){for(var t=[],e=!0,n=0;n<this.wflow.nodeFieldValues.length;n++)this.wflow.nodeFieldValues[n].nodeId===this.curNode.id&&(t.push(this.wflow.nodeFieldValues[n]),e=!1);if(e)this.nodeFieldValue={},this.addNodeFieldValue={};else for(var i=0;i<t.length;i++)0===t[i].valueType?this.nodeFieldValue=t[i]:this.nodeFieldValue={},6===t[i].valueType?this.addNodeFieldValue=t[i]:this.addNodeFieldValue={}},clickNodeOperation:function(){this.curNodeOperation=[],this.curNodeOperationArr=[];for(var t=0;t<this.wflow.operations.length;t++)this.wflow.operations[t].nodeId===this.curNode.id&&this.curNodeOperationArr.push(this.wflow.operations[t])},validateNode:function(t,e){"jcjd"===t.description?(qo()("#panelCircle").hide(100),qo()(".node").hide(),qo()(".panel_node").hide(),qo()(".panel_decision").show()):(qo()("#panelCircle").hide(100),qo()(".node").hide(),qo()(".right-form").show(),qo()(".panel_node").show()),this.$message({message:e,type:"warning"}),this.curNode=t,this.emitData(),qo()(".process").removeClass("seled"),qo()("#"+t.id).addClass("seled")},validatePath:function(t,e,n){console.log("验证path"),qo()("#panelCircle").hide(100),qo()(".node").hide(),this.$message({message:e,type:"warning"}),this.curPath=t,this.emitData();for(var i=0;i<n.length;i++)n[i].setPaintStyle({stroke:"#42546c"});for(var r=0;r<n.length;r++)t.id===n[r].id&&(Os.connection=n[r],n[r].setPaintStyle({stroke:"red"}))},filterEqual:function(t,e){for(var n=[],i=0;i<t.length;i++)for(var r=0;r<e.length;r++)t[i]===e[r].name&&n.push(e[r]);return n},filterDifferent:function(t,e){for(var n=[],i=0;i<t.length;i++){for(var r=!0,a=0;a<e.length;a++)t[i]===e[a].name&&(r=!1);r&&n.push(t[i])}return n},customValidate:function(t){var e=this;if(""===this.wflow.scene.name||void 0===this.wflow.scene.name||null===this.wflow.scene.name)return this.$message({message:"请填写场景名称",type:"warning"}),!1;if(""===this.wflow.scene.type||void 0===this.wflow.scene.type||null===this.wflow.scene.type)return this.$message({message:"请选择场景类型",type:"warning"}),!1;for(var n=function(t){if(""===e.wflow.nodes[t].name||void 0===e.wflow.nodes[t].name)return e.validateNode(e.wflow.nodes[t],"请填写任务名称"),{v:!1};if(0===e.wflow.nodes[t].problem.length&&0===e.wflow.nodes[t].type)return e.validateNode(e.wflow.nodes[t],"请添加问题示例"),{v:!1};if((""===e.wflow.nodes[t].keywords||void 0===e.wflow.nodes[t].keywords)&&0===e.wflow.nodes[t].type)return e.validateNode(e.wflow.nodes[t],"请填写匹配关键词"),{v:!1};if(""===e.wflow.nodes[t].speakType||void 0===e.wflow.nodes[t].speakType||null===e.wflow.nodes[t].speakType)return e.validateNode(e.wflow.nodes[t],"请选择Ai话术切换类型"),{v:!1};if(0===e.wflow.nodes[t].SpeakMethod.length&&0===e.wflow.nodes[t].type)return e.validateNode(e.wflow.nodes[t],"请添加AI话术"),{v:!1};if(0===e.wflow.nodes[t].successSpeakMethod.length&&1===e.wflow.nodes[t].type)return e.validateNode(e.wflow.nodes[t],"请添加AI成功话术"),{v:!1};if(0===e.wflow.nodes[t].errorSpeakMethod.length&&1===e.wflow.nodes[t].type)return e.validateNode(e.wflow.nodes[t],"请添加AI失败话术"),{v:!1};if(1===e.wflow.nodes[t].type&&(""===e.wflow.nodes[t].performId||null===e.wflow.nodes[t].performId))return e.validateNode(e.wflow.nodes[t],"请选择执行动作"),{v:!1};if(1===e.wflow.nodes[t].speakType){var n=e.wflow.speaks.filter((function(n){return e.wflow.nodes[t].id===n.nodeId}))[0];if(""===n.startTime||null===n.startTime||void 0===n.startTime)return e.validateNode(e.wflow.nodes[t],"请选择开始时间"),{v:!1};if(""===n.endTime||null===n.endTime||void 0===n.endTime)return e.validateNode(e.wflow.nodes[t],"请选择结束时间"),{v:!1}}},i=0;i<this.wflow.nodes.length;i++){var r=n(i);if("object"===Ys(r))return r.v}return!0},save:function(){for(var t=0;t<this.wflow.nodes.length;t++)if("0"===this.wflow.nodes[t].ideaLabelId&&(this.wflow.nodes[t].ideaLabelId=null),this.wflow.nodes[t].needWaitNodeId){var e="";for(var n in this.wflow.nodes[t].needWaitNodeId)this.wflow.nodes[t].needWaitNodeId[n]&&(""!==e&&(e+=","),e+=n);this.wflow.nodes[t].needWaitNodeId=e}for(var i=0;i<this.wflow.paths.length;i++)if(this.wflow.paths[i].multiLevelPathFieldValue)for(var r in this.wflow.paths[i].multiLevelPathFieldValue)if(this.wflow.paths[i].multiLevelPathFieldValue[r]){var a={id:Jo(),pathId:this.wflow.paths[i].id,passenger:{},value:r,valueType:0,memo:r};this.wflow.pathFieldValues.push(a)}for(var o=0;o<this.wflow.nodes.length;o++)if(1===this.wflow.nodes[o].isDocEditable&&1===this.wflow.nodes[o].formFieldEditable&&this.wflow.nodes[o].nodeFormFields){for(var s=0;s<this.wflow.nodeFormFields.length;s++)this.wflow.nodeFormFields[s].nodeId===this.wflow.nodes[o].id&&this.wflow.nodeFormFields.splice(s--,1);for(var l=0;l<this.wflow.nodes[o].nodeFormFields.length;l++)this.wflow.nodeFormFields.push(this.wflow.nodes[o].nodeFormFields[l])}},saveWorkflow:function(t){var e=this;this.$bus.emit("SplicingAttavhStr"),this.process.chartData={};var n=[],i=this;qo.a.each(Ks.getAllConnections(),(function(t,e){var r=[parseFloat(e.endpoints[0].anchor.x),parseFloat(e.endpoints[0].anchor.y),e.endpoints[0].anchor.orientation[0],e.endpoints[0].anchor.orientation[1]],a=[parseFloat(e.endpoints[1].anchor.x),parseFloat(e.endpoints[1].anchor.y),e.endpoints[1].anchor.orientation[0],e.endpoints[1].anchor.orientation[1]],o=i.connectsArr.filter((function(t){return t.ConnectionId===e.id}))[0],s=o?o.curMaxX||o.pathMaxX:e.connector.bounds.maxX,l=o?o.curMinX||o.pathMinX:e.connector.bounds.minX,u=o?o.topY:.5;n.push({ConnectionId:e.id,PageSourceId:e.sourceId,PageTargetId:e.targetId,uuid:e.getUuids(),label:e.getLabel(),firstEndpoints:r,secondEndpoints:a,type:e.connector.type,pathMaxX:s,pathMinX:l,topY:u})}));var r=[];qo()("#center .process").each((function(t,e){var n=qo()(e);r.push({domH:Zo.encode(n.prop("outerHTML"))})})),this.process.chartData.connects=n,this.process.chartData.domHtml=r,this.process.chartData=JSON.stringify(this.process.chartData),this.wflow.scene=this.process;var a="";void 0!==this.$route.query.udmid&&(a="?udmid="+this.$route.query.udmid);var o=[];this.wflow.nodes.forEach((function(t){t.sceneId=e.wflow.scene.id,t.createTime=e.wflow.scene.createTime,o=[].concat(Ns(o),Ns(t.SpeakMethod),Ns(t.successSpeakMethod),Ns(t.errorSpeakMethod))})),this.$set(this.wflow,"speaks",o),this.wflow.paths.forEach((function(t){var n=e.wflow.nextNodes.filter((function(e){return e.pathId===t.id}))[0];t.afterNodeId=n.nextNodeId}));var s={method:"POST",url:"/voice/scene/save"+a,contentType:"application/x-www-form-urlencoded",data:this.wflow};this.customValidate(this.wflow)&&this.$confirm("是否确认提交保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){"save"===t&&-1===e.wflow.scene.status&&(e.wflow.scene.status=0),"online"===t&&(e.wflow.scene.status=1),"outline"===t&&(e.wflow.scene.status=2),e.$http(s).then((function(n){if("success"===n.code){e.$message({message:"保存成功",type:"success"});var i=opener.document.querySelector(".el-icon-refresh");null!==i&&i.click(),"SaveAndClose"!==t?e.$route.query.id?e.$route.query.id===n.body.vo.scene.id?location.reload():setTimeout((function(){var t=window.location.href.substring(0,window.location.href.indexOf("?")),e=t+"?id="+n.body.vo.scene.id;window.location.href=e,location.reload()}),1e3):setTimeout((function(){var t=window.location.href;-1===t.indexOf("?")?t+="?id="+n.body.vo.scene.id:t+="&id="+n.body.vo.scene.id,window.location.href=t,location.reload()}),1e3):(window.open("","_self"),window.close())}else e.$message({message:n.message,type:"warning"})}),(function(t){console.log(t),e.$message.error("保存失败")}))})).catch((function(){}))},closeWorkflow:function(){if(this.id){var t=JSON.stringify(this.oldWflow)===JSON.stringify(this.wflow);!t||this.isDomChange||xs?this.saveWorkflow("CloseAndSave"):setTimeout((function(){window.close()}),10)}else setTimeout((function(){window.close()}),10)},emitData:function(){this.$bus.emit("emitProcess",this.process),this.$bus.emit("emitIdeaL",this.ideaL),this.$bus.emit("emitIdeaLables",this.ideaLables),this.$bus.emit("emitJcjdPath",this.jcjdPath),this.$bus.emit("emitJhjdPath",this.jhjdPath),this.$bus.emit("emitNextNodeArr",this.nextNodeArr),this.$bus.emit("emitCurPath",this.curPath),this.$bus.emit("emitWflow",this.wflow),this.$bus.emit("emitPathFieldValue",this.pathFieldValue),this.$bus.emit("emitCurNode",this.curNode),this.$bus.emit("emitNodeFieldValue",this.nodeFieldValue),this.$bus.emit("emitJobPosition",this.jobPosition),this.$bus.emit("emitWorkgroup",this.workgroup),this.$bus.emit("emitOrgStaff",this.orgStaff),this.$bus.emit("emitAddNodeFieldValue",this.addNodeFieldValue),this.$bus.emit("emitAddJobPosition",this.addJobPosition),this.$bus.emit("emitAddWorkgroup",this.addWorkgroup),this.$bus.emit("emitAddOrgStaff",this.addOrgStaff),this.$bus.emit("emitAssistNodeFieldValue",this.assistNodeFieldValue),this.$bus.emit("emitAssistJobPosition",this.assistJobPosition),this.$bus.emit("emitAssistWorkgroup",this.assistWorkgroup),this.$bus.emit("emitAssistOrgStaff",this.assistOrgStaff),this.$bus.emit("emitHistoryNodes",this.historyNodes),this.$bus.emit("emitAddHistoryNodes",this.addHistoryNodes),this.$bus.emit("emitWaitNodeArr",this.waitNodeArr),this.$bus.emit("emitCurNodeOperationArr",this.curNodeOperationArr),this.$bus.emit("emitCurNodeOperation",this.curNodeOperation),this.$bus.emit("emitJobPathFieldValue",this.jobPathFieldValue),this.$bus.emit("emitAddPathFieldValue",this.addPathFieldValue)},setIsRequired:function(){for(var t=0;t<this.nextNodeArr.length;t++)for(var e=0;e<this.wflow.nextNodes.length;e++)if(this.nextNodeArr[t].id===this.wflow.nextNodes[e].id){this.wflow.nextNodes[e]=this.nextNodeArr[t];break}this.emitData()},getIsRequired:function(t,e){var n=[];return this.responseVo.nextNodes&&(n=this.responseVo.nextNodes.filter((function(n){return n.nextNodeId===t&&n.pathId===e}))),n},labelChange:function(t){void 0!==Os.connection&&null!==Os.connection&&(""===t?Os.connection.setLabel({label:" ",cssClass:"line_text"}):Os.connection.setLabel({label:t,cssClass:"line_text"}))},bindName:function(t,e){qo()("#"+t).hasClass("jcjd")?qo()("#"+t).html(e):qo()("#"+t).find("p").html(e)},changeNodeType:function(t,e,n){switch(e){case 0:"start"!==n.nodeNo&&(1===n.nodeType?(qo()("#"+t).addClass("process model_process ptjd"),qo()("#"+t).find("img").attr("src",this.ptjd),qo()("#"+t).find("span").html("普通节点")):(qo()("#"+t).addClass("process model_process ywjd"),qo()("#"+t).find("img").attr("src",this.ywjd),qo()("#"+t).find("span").html("阅文节点")));break;case 1:qo()("#"+t).addClass("process model_process drbx"),qo()("#"+t).find("img").attr("src",this.drbx),qo()("#"+t).find("span").html("多人并行");break;case 2:qo()("#"+t).addClass("process model_process hqjd"),qo()("#"+t).find("img").attr("src",this.hqjd),qo()("#"+t).find("span").html("会签节点");break;case 3:qo()("#"+t).addClass("process model_process drcx"),qo()("#"+t).find("img").attr("src",this.drcx),qo()("#"+t).find("span").html("多人串行");break;case 4:qo()("#"+t).addClass("process model_process jzjd"),qo()("#"+t).find("img").attr("src",this.jzjd),qo()("#"+t).find("span").html("竞争节点");break}},saveIdeaLable:function(t){this.ideaLables=t;var e=qo()("#ideaLable").val()||t;this.ideaArr=e.split("\n");for(var n=0;n<this.ideaArr.length;n++)""!==this.ideaArr[n]&&void 0!==this.ideaArr[n]||this.ideaArr.splice(n,1);var i=this.filterEqual(this.ideaArr,this.wflow.ideaLabels);this.wflow.ideaLabels=i;for(var r=this.filterDifferent(this.ideaArr,this.wflow.ideaLabels),a=0;a<r.length;a++){var o={status:-1,id:Jo(),name:r[a],orderNo:"no"+(a<10?"0"+a:a),afterNodeId:this.process.id};this.wflow.ideaLabels.push(o)}for(var s=e.split("\n"),l=0;l<this.wflow.ideaLabels.length;l++)for(var u=0;u<s.length;u++)this.wflow.ideaLabels[l].name===s[u]&&(this.wflow.ideaLabels[l].orderNo="no"+(u<10?"0"+u:u));this.wflow.ideaLabels.sort((function(t,e){var n=t.orderNo,i=e.orderNo;return n<i?-1:n>i?1:0})),this.ideaL=this.wflow.ideaLabels;for(var c=0;c<this.wflow.nodes.length;c++){for(var d=!0,h=0;h<this.wflow.ideaLabels.length;h++)this.wflow.nodes[c].ideaLabelId===this.wflow.ideaLabels[h].id&&(d=!1);d&&(this.wflow.nodes[c].ideaLabelId=null)}this.emitData()},nodeFieldValueFn:function(t,e,n,i){var r=this,a={id:Jo(),passenger:{},value:n,memo:i};if(-1===t.toLowerCase().indexOf("pathfield")?a.nodeId=e:a.pathId=e,"nodeFieldValue"===t?a.valueType=0:"addNodeFieldValue"===t?a.valueType=6:"assistNodeFieldValue"===t?a.valueType=11:"workgroup"===t?a.valueType=1:"addWorkgroup"===t?a.valueType=7:"assistWorkgroup"===t?a.valueType=12:"jobPosition"===t?a.valueType=3:"addJobPosition"===t?a.valueType=9:"assistJobPosition"===t?a.valueType=14:"orgStaff"===t?a.valueType=2:"addOrgStaff"===t?a.valueType=8:"assistOrgStaff"===t?a.valueType=13:"pathFieldValue"===t?a.valueType=1:"addPathFieldValue"===t?a.valueType=2:"jobPathFieldValue"===t&&(a.valueType=3),this[t]=JSON.parse(JSON.stringify(a)),this.emitData(),-1===t.toLowerCase().indexOf("pathfield")){for(var o=0;o<this.wflow.nodeFieldValues.length;o++)this.wflow.nodeFieldValues[o].nodeId===e&&this.wflow.nodeFieldValues[o].valueType===a.valueType&&this.wflow.nodeFieldValues.splice(o--,1);var s=a.value.split(",");a.value="",s.forEach((function(t){var e=JSON.parse(JSON.stringify(a));e.value=t,e.id=Jo(),r.wflow.nodeFieldValues.push(e)}))}else{for(var l=0;l<this.wflow.pathFieldValues.length;l++)this.wflow.pathFieldValues[l].pathId===e&&this.wflow.pathFieldValues[l].valueType===a.valueType&&this.wflow.pathFieldValues.splice(l--,1);var u=a.value.split(",");a.value="",u.forEach((function(t){var e=JSON.parse(JSON.stringify(a));e.value=t,e.id=Jo(),r.wflow.pathFieldValues.push(e)}))}},onSelectSuborgCompleted:function(t,e){var n="",i="",r="",a=e.nodefield;r="pathFieldValue"===a||"addPathFieldValue"===a?this.curPath.id:this.curNode.id,t.forEach((function(t){""!==i&&(i+=",",n+=","),i+=t.title,n+=t.id})),this.nodeFieldValueFn(a,r,n,i)},onSelectStaffCompleted:function(t,e){var n=this,i="",r="",a=e.nodefield;t.forEach((function(t){""!==r&&(r+=",",i+=","),!t.orgCode||"group_all_corp"!==n.curNode.selectOrg&&"group_cur_corp"!==n.curNode.selectOrg?r+=t.name:r+=t.name+"/"+t.orgCode,i+=t.id})),this.nodeFieldValueFn(a,this.curNode.id,i,r)},onSelectWorkgroupCompleted:function(t,e){var n=e.nodefield,i="",r="",a="";a="pathFieldValue"===n||"addPathFieldValue"===n?this.curPath.id:this.curNode.id,t.forEach((function(t){""!==r&&(r+=",",i+=","),r+=t.name,i+=t.id})),this.nodeFieldValueFn(n,a,i,r)},onSelectJobPositionCompleted:function(t,e){var n=e.nodefield,i="",r="",a="";a="pathFieldValue"===n||"jobPathFieldValue"===n?this.curPath.id:this.curNode.id,t.forEach((function(t){""!==r&&(r+=",",i+=","),r+=t.name,i+=t.id})),this.nodeFieldValueFn(n,a,i,r)},addButton:function(){this.curNodeOperation={btnAlign:1,btnGroupId:null,btnOrderNo:10*(this.curNodeOperationArr.length+1),btnType:"1",btnShow:1,id:Jo(),nodeId:this.curNode.id,passenger:{},visitType:0,status:-1},this.vo=this.curNodeOperation,this.emitData()},queryAddButton:function(){if("2"!==this.curNodeOperation.btnType){if(-1===this.curNodeOperation.btnJavascript.indexOf("(")||-1===this.curNodeOperation.btnJavascript.indexOf(")"))return void this.$message({message:"按钮事件代码格式不正确!",type:"warning"});null!==this.curNodeOperation.btnCode&&""!==(this.curNodeOperation.btnCode+"").trim()||(this.curNodeOperation.btnCode=this.curNodeOperation.btnJavascript.split("(")[0].trim())}this.curNodeOperation.passenger.resRoles&&(this.curNodeOperation.passenger.tResRoles=this.curNodeOperation.passenger.resRoles),this.curNodeOperationArr.push(this.curNodeOperation),this.wflow.operations.push(this.curNodeOperation),this.$bus.emit("closeButtonForm"),this.emitData()},selAddButton:function(t){var e=this;t.forEach((function(t){var n=JSON.parse(JSON.stringify(t));n.nodeId=e.curNode.id,e.curNodeOperationArr.push(n),e.wflow.operations.push(n)})),this.$bus.emit("closeButtonForm"),this.emitData()},deleteButton:function(t,e,n,i){var r=this,a="确认要删除“"+e+"”按钮吗?";2===n?a="确认要删除“"+e+"”下拉按钮及全部子按钮吗?":3===n&&(a="确认要删除“"+e+"”下拉子按钮吗?"),this.$confirm(a,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){for(var e=0;e<r.curNodeOperationArr.length;e++)r.curNodeOperationArr[e].id!==t&&r.curNodeOperationArr[e].btnGroupId!==t||r.curNodeOperationArr.splice(e--,1);for(var n=0;n<r.wflow.operations.length;n++)r.wflow.operations[n].id!==t&&r.wflow.operations[n].btnGroupId!==t||r.wflow.operations.splice(n--,1);i.stopPropagation()}))},editButton:function(t,e){for(var n=0;n<this.curNodeOperationArr.length;n++)this.curNodeOperationArr[n].id===t&&(this.curNodeOperation=this.curNodeOperationArr[n],this.vo=this.curNodeOperation);e.stopPropagation(),this.emitData()},queryAlterButton:function(){if(void 0===this.curNodeOperation.passenger&&(this.curNodeOperation.passenger={}),"2"!==this.curNodeOperation.btnType){if(-1===this.curNodeOperation.btnJavascript.indexOf("(")||-1===this.curNodeOperation.btnJavascript.indexOf(")"))return void this.$message({message:"按钮事件代码格式不正确!",type:"warning"});null!==this.curNodeOperation.btnCode&&""!==(this.curNodeOperation.btnCode+"").trim()||(this.curNodeOperation.btnCode=this.curNodeOperation.btnJavascript.split("(")[0].trim())}this.curNodeOperation.passenger.resRoles&&(this.curNodeOperation.passenger.tResRoles=this.curNodeOperation.passenger.resRoles);for(var t=0;t<this.curNodeOperationArr.length;t++)this.curNodeOperation.id===this.curNodeOperationArr[t].id&&(this.curNodeOperationArr[t]=this.curNodeOperation);for(var e=0;e<this.wflow.operations.length;e++)this.wflow.operations[e].id===this.curNodeOperation.id&&(this.wflow.operations[e]=this.curNodeOperation);this.$bus.emit("closeButtonForm"),this.emitData()},onSelectListpageRowCompleted:function(t,e){if("workFormW"===e.name){var n=t[0].frmViewUrl;n=n.substring(1,n.lastIndexOf(".")).replace(/\//g,"."),this.wflow.process.workFormW="#/dcontent/"+n+"/",this.process.workFormW="#/dcontent/"+n+"/"}else if("nodeFormW"===e.name){var i=t[0].frmViewUrl;i=i.substring(1,i.lastIndexOf(".")).replace(/\//g,"."),this.$set(this.curNode,"workFormW","#/dcontent/"+i+"/")}else"productName"===e.name?(this.$set(this.process,"sysName",t[0].name),this.$set(this.process,"sysCode",t[0].code)):"sysName"===e.name&&(this.$set(this.process,"sysName",t[0].sysName),this.$set(this.process,"sysCode",t[0].sysCode),this.$set(this.process,"orgName",t[0].orgFullname),this.$set(this.process,"orgCode",t[0].orgCode));this.emitData()},watchLine:function(t){var e="",n="";1===t?(e="Flowchart",n="#42546c",rs.connector=["Flowchart",{stub:[0,0],gap:0,cornerRadius:5,alwaysRespectStubs:!0}]):2===t?(e="Straight",n="#42546c",rs.connector=["Straight",{stub:[0,0]}]):3===t&&(e="Bezier",n="#42546c",rs.connector=["Bezier",{stub:[0,0],gap:0,cornerRadius:5,alwaysRespectStubs:!0}]);for(var i=qo()("#center").find(".process"),r=0;r<i.length;r++){var a=Ks.getEndpoints(qo()(i[r]).attr("id"));if(void 0===a||null===a)return;var o=a[0].connector;if(null===o||void 0===o)return;o[0]=e;var s=a[0].connectorStyle;if(null===s||void 0===s)return;s.strokeStyle=n}},dragLine:function(t,e){var n=this,i=0;qo()(document).bind("mousedown",(function(r){if("Bezier"!==e.type){var a;n.dragLineObj.disX=r.pageX,n.dragLineObj.disY=r.pageY;var o=e.curMaxX||e.pathMaxX||t.connector.bounds.maxX,s=e.curMinX||e.pathMinX||t.connector.bounds.minX;a=Math.abs(o)>=Math.abs(s)?Math.abs(o):s,qo()(document).bind("mousemove",(function(r){if(r.pageX>=1915&&qo()("#center").width(3e3),!(t.endpoints.length<2)){r.pageX<0?r.pageX=0:r.pageX>1920&&(r.pageX=1920),r.pageY<60&&(r.pageY=60);var l=r.pageX,u=r.pageY,c=t.endpoints[0].anchor?t.endpoints[0].anchor:t.endpoints[0].anchor.anchors[0],d=t.endpoints[1].anchor?t.endpoints[1].anchor:t.endpoints[1].anchor.anchors[1];if((0===c.x||1===c.x)&&c.y>=0&&(0===d.x||1===d.x)&&d.y>=0&&(Math.abs(o)>=Math.abs(s)?(i=-(a+(l-n.dragLineObj.disX)),i>=0&&(i=1),e.curMaxX=i,e.curMinX=s):(i=a+(l-n.dragLineObj.disX),i>=0&&(i=1),e.curMaxX=o,e.curMinX=i),t.setConnector(["Flowchart",{stub:[-i,20],gap:3,cornerRadius:5,alwaysRespectStubs:!0}]),t.addOverlay(["Arrow",{width:10,length:10,location:1}])),(0===c.y||1===c.y)&&c.x>=0&&(0===d.y||1===d.y)&&d.x>=0){var h=0;h=0===c.y&&1===d.y?n.dragLineObj.disY-u:u-n.dragLineObj.disY,h=(h+t.connector.bounds.maxY/2)/t.connector.bounds.maxY,e.topY=h,h>1&&(h=1),h<0&&(h=0),t.setConnector(["Flowchart",{stub:[10,10],gap:3,cornerRadius:5,alwaysRespectStubs:!0,midpoint:h}]),t.addOverlay(["Arrow",{width:10,length:10,location:1}])}}})),qo()(document).bind("mouseup",(function(t){qo()(document).unbind("mousedown"),qo()(document).unbind("mousemove"),qo()(document).unbind("mouseup")}))}}))},AddAnchor:function(){qo()(".process").bind("dblclick",(function(t){var e=t.currentTarget.classList;if(1!==qo.a.inArray("jcjd",e)){var n,i,r,a,o=t.pageX,s=t.pageY,l=qo()("#"+t.currentTarget.id).offset().top,u=qo()("#"+t.currentTarget.id).offset().left,c=qo()("#"+t.currentTarget.id).width(),d=qo()("#"+t.currentTarget.id).height();s-l<=d/2?o-u<=c/2?o-u<=s-l?(n=0,i=parseFloat((s-l)/d),r=-1,a=0):(i=0,n=parseFloat((o-u)/c),r=0,a=-1):c-(o-u)<=s-l?(n=1,i=parseFloat((s-l)/d),r=1,a=0):(i=0,n=parseFloat((o-u)/c),r=0,a=-1):o-u<=c/2?d-(s-l)<=o-u?(n=parseFloat((o-u)/c),i=1,r=0,a=1):(n=0,i=parseFloat((s-l)/d),r=-1,a=0):d-(s-l)<=c-(o-u)?(n=parseFloat((o-u)/c),i=1,r=0,a=1):(n=1,i=parseFloat((s-l)/d),r=1,a=0),Ks.addEndpoint(t.currentTarget.id,{anchor:[n,i,r,a]},rs)}}))},addNum:function(t){for(var e=0,n=0;n<this.wflow.paths.length;n++)t.beforNodeId===this.wflow.paths[n].beforNodeId&&(e+=1);t.pathNo=10*e},ComparePath:function(){for(var t=document.querySelectorAll(".line_path"),e=0;e<t.length;e++){var n=t[e].getBoundingClientRect(),i=n.x+n.width;i>=1900&&qo()("#center").width(i+100)}}}},qs=$s,Xs=(n("f52d"),Object(g["a"])(qs,Go,Ko,!1,null,"610f603a",null)),Js=Xs.exports,Zs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"right-form"},[e("el-form",{attrs:{id:"workflowForm",name:"workflowForm",method:"post","bootstrap-validator":"",novalidate:"",autocomplete:"off"}},[e("PanelNode")],1)],1)},tl=[],el=function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel_node node",staticStyle:{display:"none",height:"100%"}},[e("div",{staticClass:"right",staticStyle:{height:"100%"}},[e("div",{staticClass:"attr_title"},[e("h3",[t._v("节点属性设置窗口")]),e("i",{staticClass:"el-icon-close",on:{click:t.hidePanel}})]),e("tab0")],1)])},nl=[],il=function(){var t=this,e=t._self._c;return e("div",[e("div",{attrs:{align:"center"}},[0===t.curNode.type?e("table",{staticClass:"list",staticStyle:{border:"1px solid #aeaeae","margin-top":"20px"},attrs:{width:"450"}},[e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" 节点名称 ")]),e("td",{staticStyle:{width:"340px"}},[e("div",{attrs:{id:"WFNameNode"}},[e("el-input",{attrs:{placeholder:"请输入节点名称"},model:{value:t.curNode.name,callback:function(e){t.$set(t.curNode,"name",e)},expression:"curNode.name"}})],1)])]),e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" 问题示例 ")]),e("td",{staticStyle:{width:"340px"}},[e("div",{attrs:{id:"WFNameNode"}},[e("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:t.addProblem}},[t._v("添加问题")]),t._l(t.curNode.problem,(function(n,i){return e("div",{key:i,staticClass:"problem-list"},[e("el-input",{attrs:{placeholder:"请输入问题示例"},model:{value:n.content,callback:function(e){t.$set(n,"content",e)},expression:"item.content"}}),t._v(" "),e("i",{staticClass:"el-icon-delete delete-icon",on:{click:function(e){return t.deleteProblem(n.id)}}})],1)}))],2)])]),e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" 匹配关键词 ")]),e("td",{staticStyle:{width:"340px"}},[e("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入关键词"},model:{value:t.curNode.keywords,callback:function(e){t.$set(t.curNode,"keywords",e)},expression:"curNode.keywords"}})],1)]),e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" AI话术切换 ")]),e("td",{staticStyle:{width:"340px"}},[e("div",{attrs:{id:"WFNameNode"}},[e("el-radio-group",{model:{value:t.curNode.speakType,callback:function(e){t.$set(t.curNode,"speakType",e)},expression:"curNode.speakType"}},[e("el-radio",{attrs:{label:0}},[t._v("顺序")]),e("el-radio",{attrs:{label:1}},[t._v("系统时间")]),e("el-radio",{attrs:{label:2}},[t._v("随机")])],1),e("el-popover",{attrs:{placement:"bottom",width:"300",trigger:"click",content:"当切换规则为顺序时,每次进入当前节点都会顺序循环播放下一个话术; 当切换规则为系统时间时,每次进入当前节点需根据当前系统时间按照配置播放话术,如果没有满足配置的时间点,则播放第一个话术"}},[e("div",{staticStyle:{"margin-right":"100px",float:"right",height:"20px","margin-top":"2px"},attrs:{slot:"reference"},slot:"reference"},[e("i",{staticClass:"el-icon-question",staticStyle:{cursor:"pointer","font-size":"16px"}})])])],1)])]),e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" AI话术 ")]),e("td",{staticStyle:{width:"340px"}},[e("div",{attrs:{id:"WFNameNode"}},[e("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:function(e){return t.addSpeakMethod(2,"SpeakMethod")}}},[t._v("添加话术")]),t._l(t.curNode.SpeakMethod,(function(n,i){return e("div",{key:i},[e("div",{staticClass:"problem-list"},[e("el-input",{attrs:{placeholder:"请输入AI话术"},model:{value:n.content,callback:function(e){t.$set(n,"content",e)},expression:"item.content"}}),t._v(" "),e("i",{staticClass:"el-icon-delete delete-icon",on:{click:function(e){return t.deleteSpeakMethod(n.id,"SpeakMethod")}}})],1),1===t.curNode.speakType?e("div",[e("el-time-picker",{staticStyle:{width:"340px","margin-top":"8px"},attrs:{"is-range":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"HH:mm:ss","value-format":"HH:mm:ss"},on:{change:function(e){return t.timeChange(n.time,i,"SpeakMethod")}},model:{value:n.time,callback:function(e){t.$set(n,"time",e)},expression:"item.time"}})],1):t._e()])}))],2)])])]):t._e(),1===t.curNode.type?e("table",{staticClass:"list",staticStyle:{border:"1px solid #aeaeae","margin-top":"20px"},attrs:{width:"450"}},[e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" 节点名称 ")]),e("td",{staticStyle:{width:"340px"}},[e("div",{attrs:{id:"WFNameNode"}},[e("el-input",{attrs:{placeholder:"请输入节点名称"},model:{value:t.curNode.name,callback:function(e){t.$set(t.curNode,"name",e)},expression:"curNode.name"}})],1)])]),e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" AI话术切换 ")]),e("td",{staticStyle:{width:"340px"}},[e("div",{attrs:{id:"WFNameNode"}},[e("el-radio-group",{model:{value:t.curNode.speakType,callback:function(e){t.$set(t.curNode,"speakType",e)},expression:"curNode.speakType"}},[e("el-radio",{attrs:{label:0}},[t._v("顺序")]),e("el-radio",{attrs:{label:1}},[t._v("系统时间")]),e("el-radio",{attrs:{label:2}},[t._v("随机")])],1),e("el-popover",{attrs:{placement:"bottom",width:"300",trigger:"click",content:"当切换规则为顺序时,每次进入当前节点都会顺序循环播放下一个话术; 当切换规则为系统时间时,每次进入当前节点需根据当前系统时间按照配置播放话术,如果没有满足配置的时间点,则播放第一个话术"}},[e("div",{staticStyle:{"margin-right":"100px",float:"right",height:"20px","margin-top":"2px"},attrs:{slot:"reference"},slot:"reference"},[e("i",{staticClass:"el-icon-question",staticStyle:{cursor:"pointer","font-size":"16px"}})])])],1)])]),e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" 成功话术 ")]),e("td",{staticStyle:{width:"340px"}},[e("div",{attrs:{id:"WFNameNode"}},[e("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:function(e){return t.addSpeakMethod(1,"successSpeakMethod")}}},[t._v("添加话术")]),t._l(t.curNode.successSpeakMethod,(function(n,i){return e("div",{key:i},[e("div",{staticClass:"problem-list"},[e("el-input",{attrs:{placeholder:"请输入成功话术"},model:{value:n.content,callback:function(e){t.$set(n,"content",e)},expression:"item.content"}}),t._v(" "),e("i",{staticClass:"el-icon-delete delete-icon",on:{click:function(e){return t.deleteSpeakMethod(n.id,"successSpeakMethod")}}})],1),1===t.curNode.speakType?e("div",[e("el-time-picker",{staticStyle:{width:"340px","margin-top":"8px"},attrs:{"is-range":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"HH:mm:ss","value-format":"HH:mm:ss"},on:{change:function(e){return t.timeChange(n.time,i,"successSpeakMethod")}},model:{value:n.time,callback:function(e){t.$set(n,"time",e)},expression:"item.time"}})],1):t._e()])}))],2)])]),e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" 失败话术 ")]),e("td",{staticStyle:{width:"340px"}},[e("div",{attrs:{id:"WFNameNode"}},[e("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:function(e){return t.addSpeakMethod(0,"errorSpeakMethod")}}},[t._v("添加话术")]),t._l(t.curNode.errorSpeakMethod,(function(n,i){return e("div",{key:i},[e("div",{staticClass:"problem-list"},[e("el-input",{attrs:{placeholder:"请输入失败话术"},model:{value:n.content,callback:function(e){t.$set(n,"content",e)},expression:"item.content"}}),t._v(" "),e("i",{staticClass:"el-icon-delete delete-icon",on:{click:function(e){return t.deleteSpeakMethod(n.id,"errorSpeakMethod")}}})],1),1===t.curNode.speakType?e("div",[e("el-time-picker",{staticStyle:{width:"340px","margin-top":"8px"},attrs:{"is-range":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"HH:mm:ss","value-format":"HH:mm:ss"},on:{change:function(e){return t.timeChange(n.time,i,"errorSpeakMethod")}},model:{value:n.time,callback:function(e){t.$set(n,"time",e)},expression:"item.time"}})],1):t._e()])}))],2)])]),e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" 执行动作 ")]),e("td",{staticStyle:{width:"340px"}},[e("el-select",{attrs:{placeholder:"请选择执行动作"},on:{"visible-change":t.visiblehange},model:{value:t.curNode.performId,callback:function(e){t.$set(t.curNode,"performId",e)},expression:"curNode.performId"}},t._l(t.showperformList,(function(t,n){return e("el-option",{key:n,attrs:{label:t.name,value:t.id}})})),1)],1)])]):t._e()])])},rl=[];function al(t){return al="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},al(t)}function ol(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ol=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),s=new D(i||[]);return r(o,"_invoke",{value:T(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function v(){}function y(){}function A(){}var b={};u(b,o,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==n&&i.call(w,o)&&(b=w);var x=A.prototype=v.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,a,o,s){var l=d(t[r],t,a);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==al(c)&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var a;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return a=a?a.then(r,r):r()}})}function T(e,n,i){var r=h;return function(a,o){if(r===p)throw Error("Generator is already running");if(r===g){if("throw"===a)throw o;return{value:t,done:!0}}for(i.method=a,i.arg=o;;){var s=i.delegate;if(s){var l=M(s,i);if(l){if(l===m)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var u=d(e,n,i);if("normal"===u.type){if(r=i.done?g:f,u.arg===m)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=g,i.method="throw",i.arg=u.arg)}}}function M(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var a=d(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(al(e)+" is not iterable")}return y.prototype=A,r(x,"constructor",{value:A,configurable:!0}),r(A,"constructor",{value:y,configurable:!0}),y.displayName=u(A,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var o=new C(c(t,n,i,r),a);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(x),u(x,l,"Generator"),u(x,o,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=E,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:E(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}function sl(t,e,n,i,r,a,o){try{var s=t[a](o),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(i,r)}function ll(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){sl(a,i,r,o,s,"next",t)}function s(t){sl(a,i,r,o,s,"throw",t)}o(void 0)}))}}var ul=n("c1df"),cl={components:{},props:{},data:function(){return{process:{},curNode:{},performList:[],showperformList:[],value:""}},computed:{},watch:{"curNode.name":function(t){this.$bus.emit("bindName",this.curNode.id,t)},"curNode.processType":function(t){},"process.type":function(t,e){void 0!==e&&(this.curNode.performId="")}},created:function(){this.$bus.on("emitProcess",this.processhandler),this.$bus.on("emitCurNode",this.curNodehandler),this.getPerformList()},beforeDestroy:function(){this.$bus.off("emitProcess",this.processhandler),this.$bus.off("emitCurNode",this.curNodehandler)},mounted:function(){},methods:{getPerformList:function(){var t=this;return ll(ol().mark((function e(){var n,i;return ol().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=[{compare:"number",field:"status",merge:!0,value:"1"}],e.next=3,t.$app.querydata("/voice/perform/querydata",n);case 3:i=e.sent,"success"===i.code?(t.performList=i.body.listdata,t.showperformList=t.performList):t.$message({message:i.message,type:"warning"});case 5:case"end":return e.stop()}}),e)})))()},visiblehange:function(t){var e=this;t&&(null!==this.process.type&&""!==this.process.type&&void 0!==this.process.type?this.showperformList=this.performList.filter((function(t){return t.type===e.process.type})):this.showperformList=this.performList)},addProblem:function(){var t={content:"",id:Jo(),nodeId:this.curNode.id};this.curNode.problem.push(t)},deleteProblem:function(t){var e=this.curNode.problem.filter((function(e){return e.id!==t}));this.curNode.problem=e},addSpeakMethod:function(t,e){var n={content:"",createTime:ul(new Date).format("YYYY-MM-DD HH:mm:ss"),endTime:"",id:Jo(),memo:"",nodeId:this.curNode.id,serial:this.curNode[e].length+1,startTime:"",updateTime:"",time:["",""],type:t};this.curNode[e].push(n)},deleteSpeakMethod:function(t,e){var n=this.curNode[e].filter((function(e){return e.id!==t}));this.curNode[e]=n},timeChange:function(t,e,n){t=t||["",""],this.curNode[n][e].startTime=t[0],this.curNode[n][e].endTime=t[1]},curNodehandler:function(t){"string"===typeof t.problem&&(t.problem=JSON.parse(t.problem)),this.curNode=t,console.log(t)},processhandler:function(t){this.process=t},changehandler:function(t){this.$bus.emit("changeNodeType",this.curNode.id,t,this.curNode)}}},dl=cl,hl=(n("d3e7"),Object(g["a"])(dl,il,rl,!1,null,"9207951a",null)),fl=hl.exports,pl={components:{Tab0:fl},props:{},data:function(){return{loginUser:this.$store.getters.loginUser,dwadmin:0,udmid:null}},computed:{},watch:{},created:function(){"plat"===this.loginUser.orgCode&&"1"!==this.$route.query.dwadmin||(this.dwadmin=1),this.$route.query.udmid&&(this.udmid=this.$route.query.udmid)},beforeDestroy:function(){},mounted:function(){},methods:{hidePanel:function(){$(".right-form").hide()}}},gl=pl,ml=(n("4a0b"),Object(g["a"])(gl,el,nl,!1,null,"4500663d",null)),vl=ml.exports,yl={components:{PanelNode:vl},props:{},data:function(){return{}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{}},Al=yl,bl=(n("a4f8"),Object(g["a"])(Al,Zs,tl,!1,null,"225aeaf1",null)),_l=bl.exports,wl=n("b8fb"),xl=wl.title,Sl=wl.logo,Cl={components:{SideBar:Uo,Center:Js,RightForm:_l,MenuBar:Wo,TopBtn:Vi},data:function(){return{title:xl,logoUrl:Sl}},computed:{},watch:{},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{}},Tl=Cl,Ml=(n("d4ad"),n("fff4"),Object(g["a"])(Tl,Ro,jo,!1,null,"32c32787",null)),kl=Ml.exports,Ll=n("9ba1"),Dl=n("8ad9");function El(t){return El="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},El(t)}function Bl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Il(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bl(Object(n),!0).forEach((function(e){Ol(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ol(t,e,n){return e=Pl(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pl(t){var e=Nl(t,"string");return"symbol"==El(e)?e:e+""}function Nl(t,e){if("object"!=El(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=El(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}n("e792");var Fl=Il(Il(Il(Il({CityCodeConfig:E,Cockpit:qt,Cockpit1:mi,ConversationSimulateLeft:xi,ConversationSimulateRight:Fi,ConversationSimulateTest:Ji,ConversationTbColumns:lr,ConversationTopBtn:Vi,BaseHoliday:Xr,InvoiceRecognition:ha,InvoiceRecognitionRegister:ya,OrganMgrSyncToWechat:Sa,PasswordPolicy:Da,BaseProductMenuMgr:za,BaseSysLog:$a,BaseSystemSummary:so,BaseUiStyle:To,BaseUiStyleSkinSet:wo,BaseUiStyleUserForm:Bo,VoiceSideBar:Uo,VoiceVoiceDesigner:kl,VoiceCenter:Js,VoiceMenuBar:Wo,VoiceRight:_l,VoiceRightFormPanelNode:vl,VoiceRightFormTab:fl},ur["default"]),Ea["default"]),Ll["default"]),Dl["default"]),Ul=function t(e){t.installed||(t.installed=!0,Object.keys(Fl).forEach((function(t){e.component(t,Fl[t])})))};"undefined"!==typeof window&&window.Vue&&Ul(window.Vue);var Rl=Il({install:Ul},Fl);e["default"]=Rl},fbd0:function(t,e,n){"use strict";var i=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],r=function(t){return t[0]==="I".charCodeAt(0)&&t[1]==="D".charCodeAt(0)&&t[2]==="3".charCodeAt(0)},a=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},o=function(t,e,n){var i,r="";for(i=e;i<n;i++)r+="%"+("00"+t[i].toString(16)).slice(-2);return r},s=function(t,e,n){return unescape(o(t,e,n))},l=function(t,e){var n=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9],i=t[e+5],r=(16&i)>>4;return r?n+20:n+10},u=function(t,e){var n=(224&t[e+5])>>5,i=t[e+4]<<3,r=6144&t[e+3];return r|i|n},c=function(t,e){return t[e]==="I".charCodeAt(0)&&t[e+1]==="D".charCodeAt(0)&&t[e+2]==="3".charCodeAt(0)?"timed-metadata":!0&t[e]&&240===(240&t[e+1])?"audio":null},d=function(t){var e=0;while(e+5<t.length){if(255===t[e]&&240===(246&t[e+1]))return i[(60&t[e+2])>>>2];e++}return null},h=function(t){var e,n,i,r;e=10,64&t[5]&&(e+=4,e+=a(t.subarray(10,14)));do{if(n=a(t.subarray(e+4,e+8)),n<1)return null;if(r=String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3]),"PRIV"===r){i=t.subarray(e+10,e+n+10);for(var o=0;o<i.byteLength;o++)if(0===i[o]){var l=s(i,0,o);if("com.apple.streaming.transportStreamTimestamp"===l){var u=i.subarray(o+1),c=(1&u[3])<<30|u[4]<<22|u[5]<<14|u[6]<<6|u[7]>>>2;return c*=4,c+=3&u[7],c}break}}e+=10,e+=n}while(e<t.byteLength);return null};t.exports={isLikelyAacData:r,parseId3TagSize:l,parseAdtsSize:u,parseType:c,parseSampleRate:d,parseAacTimestamp:h}},fbe8:function(t,e,n){var i=n("6541");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("bfc061b4",i,!0,{sourceMap:!1,shadowMode:!1})},fc21:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".date_table_tree[data-v-18249695],.date_table_tree .date_table_tree_border[data-v-18249695]{display:-webkit-box;display:-ms-flexbox;display:flex}.date_table_tree .date_table_tree_border[data-v-18249695]{width:240px;min-width:240px;border:1px solid #d8dce5;margin-right:10px;height:calc(100vh - 200px);-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.date_table_tree .date_table_tree_btn[data-v-18249695]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:50px}",""]),t.exports=e},fca0:function(t,e,n){var i=n("5ca1"),r=n("7726").isFinite;i(i.S,"Number",{isFinite:function(t){return"number"==typeof t&&r(t)}})},fd24:function(t,e,n){var i=n("5ca1");i(i.S,"Object",{setPrototypeOf:n("8b97").set})},fd7e:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}});return e}))},fd86:function(t,e,n){"use strict";n("f1bd")},fdaf:function(t,e,n){"use strict";n("2c04")},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},fe06:function(t,e,n){var i=n("0d31");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("2accbd0a",i,!0,{sourceMap:!1,shadowMode:!1})},ffc1:function(t,e,n){var i=n("5ca1"),r=n("504c")(!0);i(i.S,"Object",{entries:function(t){return r(t)}})},fff4:function(t,e,n){"use strict";n("bcf9")},ffff:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return e}))}})}));
|
|
113
|
+
var ns=function(t,e){return/^[a-z]+:/i.test(e)?e:(/\/\//i.test(t)||(t=k.a.buildAbsoluteURL(o.a.location.href,t)),k.a.buildAbsoluteURL(t,e))},is=function(t,e,n){return t&&n.responseURL&&e!==n.responseURL?n.responseURL:e},rs=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},as=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),os=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var a=Object.getPrototypeOf(e);return null===a?void 0:t(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},ss=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},ls=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e},us=function(){function t(t,e){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),e&&n.length===e)break}catch(l){r=!0,a=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw a}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),cs=Zo.mergeOptions,ds=Zo.EventTarget,hs=Zo.log,fs=function(t,e){["AUDIO","SUBTITLES"].forEach((function(n){for(var i in t.mediaGroups[n])for(var r in t.mediaGroups[n][i]){var a=t.mediaGroups[n][i][r];e(a,n,i,r)}}))},ps=function(t,e,n){var i=e.slice();n=n||0;for(var r=Math.min(t.length,e.length+n),a=n;a<r;a++)i[a-n]=cs(t[a],i[a-n]);return i},gs=function(t,e){t.resolvedUri||(t.resolvedUri=ns(e,t.uri)),t.key&&!t.key.resolvedUri&&(t.key.resolvedUri=ns(e,t.key.uri)),t.map&&!t.map.resolvedUri&&(t.map.resolvedUri=ns(e,t.map.uri))},ms=function(t,e){var n=cs(t,{}),i=n.playlists[e.uri];if(!i)return null;if(i.segments&&e.segments&&i.segments.length===e.segments.length&&i.endList===e.endList&&i.mediaSequence===e.mediaSequence)return null;var r=cs(i,e);i.segments&&(r.segments=ps(i.segments,e.segments,e.mediaSequence-i.mediaSequence)),r.segments.forEach((function(t){gs(t,r.resolvedUri)}));for(var a=0;a<n.playlists.length;a++)n.playlists[a].uri===e.uri&&(n.playlists[a]=r);return n.playlists[e.uri]=r,n},vs=function(t){var e=t.playlists.length;while(e--){var n=t.playlists[e];t.playlists[n.uri]=n,n.resolvedUri=ns(t.uri,n.uri),n.id=e,n.attributes||(n.attributes={},hs.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute."))}},ys=function(t){fs(t,(function(e){e.uri&&(e.resolvedUri=ns(t.uri,e.uri))}))},As=function(t,e){var n=t.segments[t.segments.length-1],i=void 0;return i=e&&n&&n.duration?1e3*n.duration:500*(t.targetDuration||10),i},bs=function(t){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};rs(this,e);var r=ls(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),a=i.withCredentials,o=void 0!==a&&a,s=i.handleManifestRedirects,l=void 0!==s&&s;r.srcUrl=t,r.hls_=n,r.withCredentials=o,r.handleManifestRedirects=l;var u=n.options_;if(r.customTagParsers=u&&u.customTagParsers||[],r.customTagMappers=u&&u.customTagMappers||[],!r.srcUrl)throw new Error("A non-empty playlist URL is required");return r.state="HAVE_NOTHING",r.on("mediaupdatetimeout",(function(){"HAVE_METADATA"===r.state&&(r.state="HAVE_CURRENT_METADATA",r.request=r.hls_.xhr({uri:ns(r.master.uri,r.media().uri),withCredentials:r.withCredentials},(function(t,e){if(r.request)return t?r.playlistRequestError(r.request,r.media().uri,"HAVE_METADATA"):void r.haveMetadata(r.request,r.media().uri)})))})),r}return ss(e,t),as(e,[{key:"playlistRequestError",value:function(t,e,n){this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[e],status:t.status,message:"HLS playlist request error at URL: "+e+".",responseText:t.responseText,code:t.status>=500?4:2},this.trigger("error")}},{key:"haveMetadata",value:function(t,e){var n=this;this.request=null,this.state="HAVE_METADATA";var i=new U;this.customTagParsers.forEach((function(t){return i.addParser(t)})),this.customTagMappers.forEach((function(t){return i.addTagMapper(t)})),i.push(t.responseText),i.end(),i.manifest.uri=e,i.manifest.attributes=i.manifest.attributes||{};var r=ms(this.master,i.manifest);this.targetDuration=i.manifest.targetDuration,r?(this.master=r,this.media_=this.master.playlists[i.manifest.uri]):this.trigger("playlistunchanged"),this.media().endList||(o.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=o.a.setTimeout((function(){n.trigger("mediaupdatetimeout")}),As(this.media(),!!r))),this.trigger("loadedplaylist")}},{key:"dispose",value:function(){this.stopRequest(),o.a.clearTimeout(this.mediaUpdateTimeout),o.a.clearTimeout(this.finalRenditionTimeout)}},{key:"stopRequest",value:function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}}},{key:"media",value:function(t,e){var n=this;if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"===typeof t){if(!this.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.master.playlists[t]}if(o.a.clearTimeout(this.finalRenditionTimeout),e){var i=t.targetDuration/2*1e3||5e3;this.finalRenditionTimeout=o.a.setTimeout(this.media.bind(this,t,!1),i)}else{var r=this.state,a=!this.media_||t.uri!==this.media_.uri;if(this.master.playlists[t.uri].endList)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=t,void(a&&(this.trigger("mediachanging"),this.trigger("mediachange")));if(a){if(this.state="SWITCHING_MEDIA",this.request){if(t.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.request=this.hls_.xhr({uri:t.resolvedUri,withCredentials:this.withCredentials},(function(e,i){if(n.request){if(t.resolvedUri=is(n.handleManifestRedirects,t.resolvedUri,i),e)return n.playlistRequestError(n.request,t.uri,r);n.haveMetadata(i,t.uri),"HAVE_MASTER"===r?n.trigger("loadedmetadata"):n.trigger("mediachange")}}))}}}},{key:"pause",value:function(){this.stopRequest(),o.a.clearTimeout(this.mediaUpdateTimeout),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}},{key:"load",value:function(t){var e=this;o.a.clearTimeout(this.mediaUpdateTimeout);var n=this.media();if(t){var i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=o.a.setTimeout((function(){return e.load()}),i)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}},{key:"start",value:function(){var t=this;this.started=!0,this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},(function(e,n){if(t.request){if(t.request=null,e)return t.error={status:n.status,message:"HLS playlist request error at URL: "+t.srcUrl+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===t.state&&(t.started=!1),t.trigger("error");var i=new U;return t.customTagParsers.forEach((function(t){return i.addParser(t)})),t.customTagMappers.forEach((function(t){return i.addTagMapper(t)})),i.push(n.responseText),i.end(),t.state="HAVE_MASTER",t.srcUrl=is(t.handleManifestRedirects,t.srcUrl,n),i.manifest.uri=t.srcUrl,i.manifest.playlists?(t.master=i.manifest,vs(t.master),ys(t.master),t.trigger("loadedplaylist"),void(t.request||t.media(i.manifest.playlists[0]))):(t.master={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:o.a.location.href,playlists:[{uri:t.srcUrl,id:0,resolvedUri:t.srcUrl,attributes:{}}]},t.master.playlists[t.srcUrl]=t.master.playlists[0],t.haveMetadata(n,t.srcUrl),t.trigger("loadedmetadata"))}}))}}]),e}(ds),_s=Zo.createTimeRange,ws=function(t,e){var n=0,i=e-t.mediaSequence,r=t.segments[i];if(r){if("undefined"!==typeof r.start)return{result:r.start,precise:!0};if("undefined"!==typeof r.end)return{result:r.end-r.duration,precise:!0}}while(i--){if(r=t.segments[i],"undefined"!==typeof r.end)return{result:n+r.end,precise:!0};if(n+=r.duration,"undefined"!==typeof r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}},xs=function(t,e){for(var n=0,i=void 0,r=e-t.mediaSequence;r<t.segments.length;r++){if(i=t.segments[r],"undefined"!==typeof i.start)return{result:i.start-n,precise:!0};if(n+=i.duration,"undefined"!==typeof i.end)return{result:i.end-n,precise:!0}}return{result:-1,precise:!1}},Ss=function(t,e,n){var i=void 0,r=void 0;return"undefined"===typeof e&&(e=t.mediaSequence+t.segments.length),e<t.mediaSequence?0:(i=ws(t,e),i.precise?i.result:(r=xs(t,e),r.precise?r.result:i.result+n))},Cs=function(t,e,n){if(!t)return 0;if("number"!==typeof n&&(n=0),"undefined"===typeof e){if(t.totalDuration)return t.totalDuration;if(!t.endList)return o.a.Infinity}return Ss(t,e,n)},Ts=function(t,e,n){var i=0;if(e>n){var r=[n,e];e=r[0],n=r[1]}if(e<0){for(var a=e;a<Math.min(0,n);a++)i+=t.targetDuration;e=0}for(var o=e;o<n;o++)i+=t.segments[o].duration;return i},Ms=function(t){if(!t.segments.length)return 0;var e=t.segments.length-1,n=t.segments[e].duration||t.targetDuration,i=n+2*t.targetDuration;while(e--)if(n+=t.segments[e].duration,n>=i)break;return Math.max(0,e)},ks=function(t,e,n){if(!t||!t.segments)return null;if(t.endList)return Cs(t);if(null===e)return null;e=e||0;var i=n?Ms(t):t.segments.length;return Ss(t,t.mediaSequence+i,e)},Ls=function(t,e){var n=!0,i=e||0,r=ks(t,e,n);return null===r?_s():_s(i,r)},Ds=function(t){return t-Math.floor(t)===0},Es=function(t,e){if(Ds(e))return e+.1*t;for(var n=e.toString().split(".")[1].length,i=1;i<=n;i++){var r=Math.pow(10,i),a=e*r;if(Ds(a)||i===n)return(a+t)/r}},Bs=Es.bind(null,1),Is=Es.bind(null,-1),Os=function(t,e,n,i){var r=void 0,a=void 0,o=t.segments.length,s=e-i;if(s<0){if(n>0)for(r=n-1;r>=0;r--)if(a=t.segments[r],s+=Is(a.duration),s>0)return{mediaIndex:r,startTime:i-Ts(t,n,r)};return{mediaIndex:0,startTime:e}}if(n<0){for(r=n;r<0;r++)if(s-=t.targetDuration,s<0)return{mediaIndex:0,startTime:e};n=0}for(r=n;r<o;r++)if(a=t.segments[r],s-=Bs(a.duration),s<0)return{mediaIndex:r,startTime:i+Ts(t,n,r)};return{mediaIndex:o-1,startTime:e}},Ps=function(t){return t.excludeUntil&&t.excludeUntil>Date.now()},Ns=function(t){return t.excludeUntil&&t.excludeUntil===1/0},Fs=function(t){var e=Ps(t);return!t.disabled&&!e},Us=function(t){return t.disabled},Rs=function(t){for(var e=0;e<t.segments.length;e++)if(t.segments[e].key)return!0;return!1},js=function(t){for(var e=0;e<t.segments.length;e++)if(t.segments[e].map)return!0;return!1},Hs=function(t,e){return e.attributes&&e.attributes[t]},Ys=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!Hs("BANDWIDTH",n))return NaN;var r=t*n.attributes.BANDWIDTH;return(r-8*i)/e},zs=function(t,e){if(1===t.playlists.length)return!0;var n=e.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===t.playlists.filter((function(t){return!!Fs(t)&&(t.attributes.BANDWIDTH||0)<n})).length},Qs={duration:Cs,seekable:Ls,safeLiveIndex:Ms,getMediaInfoForTime:Os,isEnabled:Fs,isDisabled:Us,isBlacklisted:Ps,isIncompatible:Ns,playlistEnd:ks,isAes:Rs,isFmp4:js,hasAttribute:Hs,estimateSegmentRequestTime:Ys,isLowestEnabledRendition:zs},Vs=Zo.xhr,Ws=Zo.mergeOptions,Gs=function(){var t=function t(e,n){e=Ws({timeout:45e3},e);var i=t.beforeRequest||Zo.Hls.xhr.beforeRequest;if(i&&"function"===typeof i){var r=i(e);r&&(e=r)}var a=Vs(e,(function(t,e){var i=a.response;!t&&i&&(a.responseTime=Date.now(),a.roundTripTime=a.responseTime-a.requestTime,a.bytesReceived=i.byteLength||i.length,a.bandwidth||(a.bandwidth=Math.floor(a.bytesReceived/a.roundTripTime*8*1e3))),e.headers&&(a.responseHeaders=e.headers),t&&"ETIMEDOUT"===t.code&&(a.timedout=!0),t||a.aborted||200===e.statusCode||206===e.statusCode||0===e.statusCode||(t=new Error("XHR Failed with a response of: "+(a&&(i||a.responseText)))),n(t,a)})),o=a.abort;return a.abort=function(){return a.aborted=!0,o.apply(a,arguments)},a.uri=e.uri,a.requestTime=Date.now(),a};return t},Ks=function(t){var e=void 0,n=void 0;return n=t.offset+t.length-1,e=t.offset,"bytes="+e+"-"+n},$s=function(t){var e={};return t.byterange&&(e.Range=Ks(t.byterange)),e},qs=function(t,e){return t.start(e)+"-"+t.end(e)},Xs=function(t,e){var n=t.toString(16);return"00".substring(0,2-n.length)+n+(e%2?" ":"")},Js=function(t){return t>=32&&t<126?String.fromCharCode(t):"."},Zs=function(t){var e={};return Object.keys(t).forEach((function(n){var i=t[n];ArrayBuffer.isView(i)?e[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:e[n]=i})),e},tl=function(t){var e=t.byterange||{length:1/0,offset:0};return[e.length,e.offset,t.resolvedUri].join(",")},el=function(t){return t.resolvedUri},nl=function(t){for(var e=Array.prototype.slice.call(t),n=16,i="",r=void 0,a=void 0,o=0;o<e.length/n;o++)r=e.slice(o*n,o*n+n).map(Xs).join(""),a=e.slice(o*n,o*n+n).map(Js).join(""),i+=r+" "+a+"\n";return i},il=function(t){var e=t.bytes;return nl(e)},rl=function(t){var e="",n=void 0;for(n=0;n<t.length;n++)e+=qs(t,n)+" ";return e},al=Object.freeze({createTransferableMessage:Zs,initSegmentId:tl,segmentKeyId:el,hexDump:nl,tagDump:il,textRanges:rl}),ol=.25,sl=function(t,e){if(!e.dateTimeObject)return null;var n=e.videoTimingInfo.transmuxerPrependedSeconds,i=e.videoTimingInfo.transmuxedPresentationStart,r=i+n,a=t-r;return new Date(e.dateTimeObject.getTime()+1e3*a)},ll=function(t){return t.transmuxedPresentationEnd-t.transmuxedPresentationStart-t.transmuxerPrependedSeconds},ul=function(t,e){var n=void 0;try{n=new Date(t)}catch(c){return null}if(!e||!e.segments||0===e.segments.length)return null;var i=e.segments[0];if(n<i.dateTimeObject)return null;for(var r=0;r<e.segments.length-1;r++){i=e.segments[r];var a=e.segments[r+1].dateTimeObject;if(n<a)break}var o=e.segments[e.segments.length-1],s=o.dateTimeObject,l=o.videoTimingInfo?ll(o.videoTimingInfo):o.duration+o.duration*ol,u=new Date(s.getTime()+1e3*l);return n>u?null:(n>s&&(i=o),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:Qs.duration(e,e.mediaSequence+e.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})},cl=function(t,e){if(!e||!e.segments||0===e.segments.length)return null;for(var n=0,i=void 0,r=0;r<e.segments.length;r++)if(i=e.segments[r],n=i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:n+i.duration,t<=n)break;var a=e.segments[e.segments.length-1];if(a.videoTimingInfo&&a.videoTimingInfo.transmuxedPresentationEnd<t)return null;if(t>n){if(t>n+a.duration*ol)return null;i=a}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:n-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}},dl=function(t,e){var n=void 0,i=void 0;try{n=new Date(t),i=new Date(e)}catch(o){}var r=n.getTime(),a=i.getTime();return(a-r)/1e3},hl=function(t){if(!t.segments||0===t.segments.length)return!1;for(var e=0;e<t.segments.length;e++){var n=t.segments[e];if(!n.dateTimeObject)return!1}return!0},fl=function(t){var e=t.playlist,n=t.time,i=void 0===n?void 0:n,r=t.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!e||void 0===i)return r({message:"getProgramTime: playlist and time must be provided"});var a=cl(i,e);if(!a)return r({message:"valid programTime was not found"});if("estimate"===a.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:a.estimatedStart});var o={mediaSeconds:i},s=sl(i,a.segment);return s&&(o.programDateTime=s.toISOString()),r(null,o)},pl=function t(e){var n=e.programTime,i=e.playlist,r=e.retryCount,a=void 0===r?2:r,o=e.seekTo,s=e.pauseAfterSeek,l=void 0===s||s,u=e.tech,c=e.callback;if(!c)throw new Error("seekToProgramTime: callback must be provided");if("undefined"===typeof n||!i||!o)return c({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!i.endList&&!u.hasStarted_)return c({message:"player must be playing a live stream to start buffering"});if(!hl(i))return c({message:"programDateTime tags must be provided in the manifest "+i.resolvedUri});var d=ul(n,i);if(!d)return c({message:n+" was not found in the stream"});var h=d.segment,f=dl(h.dateTimeObject,n);if("estimate"===d.type)return 0===a?c({message:n+" is not buffered yet. Try again"}):(o(d.estimatedStart+f),void u.one("seeked",(function(){t({programTime:n,playlist:i,retryCount:a-1,seekTo:o,pauseAfterSeek:l,tech:u,callback:c})})));var p=h.start+f,g=function(){return c(null,u.currentTime())};u.one("seeked",g),l&&u.pause(),o(p)},gl=1/30,ml=3*gl,vl=function(t,e){var n=[],i=void 0;if(t&&t.length)for(i=0;i<t.length;i++)e(t.start(i),t.end(i))&&n.push([t.start(i),t.end(i)]);return Zo.createTimeRanges(n)},yl=function(t,e){return vl(t,(function(t,n){return t-ml<=e&&n+ml>=e}))},Al=function(t,e){return vl(t,(function(t){return t-gl>=e}))},bl=function(t){if(t.length<2)return Zo.createTimeRanges();for(var e=[],n=1;n<t.length;n++){var i=t.end(n-1),r=t.start(n);e.push([i,r])}return Zo.createTimeRanges(e)},_l=function(t){var e=[];if(!t||!t.length)return"";for(var n=0;n<t.length;n++)e.push(t.start(n)+" => "+t.end(n));return e.join(", ")},wl=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=t.length?t.end(t.length-1):0;return(i-e)/n},xl=function(t){for(var e=[],n=0;n<t.length;n++)e.push({start:t.start(n),end:t.end(n)});return e},Sl=function(t,e,n){var i=e.player_;if(n.captions&&n.captions.length)for(var r in t.inbandTextTracks_||(t.inbandTextTracks_={}),n.captionStreams)if(!t.inbandTextTracks_[r]){i.tech_.trigger({type:"usage",name:"hls-608"});var a=i.textTracks().getTrackById(r);t.inbandTextTracks_[r]=a||i.addRemoteTextTrack({kind:"captions",id:r,label:r},!1).track}n.metadata&&n.metadata.length&&!t.metadataTrack_&&(t.metadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,t.metadataTrack_.inBandMetadataTrackDispatchType=n.metadata.dispatchType)},Cl=function(t,e,n){var i=void 0,r=void 0;if(n&&n.cues){i=n.cues.length;while(i--)r=n.cues[i],r.startTime<=e&&r.endTime>=t&&n.removeCue(r)}},Tl=function(t){Object.defineProperties(t.frame,{id:{get:function(){return Zo.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get:function(){return Zo.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get:function(){return Zo.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}})},Ml=function(t){var e=void 0;return e=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t,e},kl=function(t,e,n){var i=o.a.WebKitDataCue||o.a.VTTCue;if(e&&e.forEach((function(t){var e=t.stream;this.inbandTextTracks_[e].addCue(new i(t.startTime+this.timestampOffset,t.endTime+this.timestampOffset,t.text))}),t),n){var r=Ml(t.mediaSource_.duration);if(n.forEach((function(t){var e=t.cueTime+this.timestampOffset;!("number"!==typeof e||o.a.isNaN(e)||e<0)&&e<1/0&&t.frames.forEach((function(t){var n=new i(e,e,t.value||t.url||t.data||"");n.frame=t,n.value=t,Tl(n),this.metadataTrack_.addCue(n)}),this)}),t),t.metadataTrack_&&t.metadataTrack_.cues&&t.metadataTrack_.cues.length){for(var a=t.metadataTrack_.cues,s=[],l=0;l<a.length;l++)a[l]&&s.push(a[l]);var u=s.reduce((function(t,e){var n=t[e.startTime]||[];return n.push(e),t[e.startTime]=n,t}),{}),c=Object.keys(u).sort((function(t,e){return Number(t)-Number(e)}));c.forEach((function(t,e){var n=u[t],i=Number(c[e+1])||r;n.forEach((function(t){t.endTime=i}))}))}}},Ll="undefined"!==typeof window?window:{},Dl="undefined"===typeof Symbol?"__target":Symbol(),El="application/javascript",Bl=Ll.BlobBuilder||Ll.WebKitBlobBuilder||Ll.MozBlobBuilder||Ll.MSBlobBuilder,Il=Ll.URL||Ll.webkitURL||Il&&Il.msURL,Ol=Ll.Worker;function Pl(t,e){return function(n){var i=this;if(!e)return new Ol(t);if(Ol&&!n){var r=e.toString().replace(/^function.+?{/,"").slice(0,-1),a=Rl(r);return this[Dl]=new Ol(a),jl(this[Dl],a),this[Dl]}var o={postMessage:function(t){i.onmessage&&setTimeout((function(){i.onmessage({data:t,target:o})}))}};e.call(o),this.postMessage=function(t){setTimeout((function(){o.onmessage({data:t,target:i})}))},this.isThisThread=!0}}if(Ol){var Nl,Fl=Rl("self.onmessage = function () {}"),Ul=new Uint8Array(1);try{Nl=new Ol(Fl),Nl.postMessage(Ul,[Ul.buffer])}catch(Zc){Ol=null}finally{Il.revokeObjectURL(Fl),Nl&&Nl.terminate()}}function Rl(t){try{return Il.createObjectURL(new Blob([t],{type:El}))}catch(Zc){var e=new Bl;return e.append(t),Il.createObjectURL(e.getBlob(type))}}function jl(t,e){if(t&&e){var n=t.terminate;t.objURL=e,t.terminate=function(){t.objURL&&Il.revokeObjectURL(t.objURL),n.call(t)}}}var Hl=new Pl("./transmuxer-worker.worker.js",(function(t,e){var n=this;(function(){var t=function(){this.init=function(){var t={};this.on=function(e,n){t[e]||(t[e]=[]),t[e]=t[e].concat(n)},this.off=function(e,n){var i;return!!t[e]&&(i=t[e].indexOf(n),t[e]=t[e].slice(),t[e].splice(i,1),i>-1)},this.trigger=function(e){var n,i,r,a;if(n=t[e],n)if(2===arguments.length)for(r=n.length,i=0;i<r;++i)n[i].call(this,arguments[1]);else{for(a=[],i=arguments.length,i=1;i<arguments.length;++i)a.push(arguments[i]);for(r=n.length,i=0;i<r;++i)n[i].apply(this,a)}},this.dispose=function(){t={}}}};t.prototype.pipe=function(t){return this.on("data",(function(e){t.push(e)})),this.on("done",(function(e){t.flush(e)})),this.on("partialdone",(function(e){t.partialFlush(e)})),this.on("endedtimeline",(function(e){t.endTimeline(e)})),this.on("reset",(function(e){t.reset(e)})),t},t.prototype.push=function(t){this.trigger("data",t)},t.prototype.flush=function(t){this.trigger("done",t)},t.prototype.partialFlush=function(t){this.trigger("partialdone",t)},t.prototype.endTimeline=function(t){this.trigger("endedtimeline",t)},t.prototype.reset=function(t){this.trigger("reset",t)};var e,i,r,a,o,s,l,u,c,d,h,f,p,g,m,v,y,A,b,_,w,x,S,C,T,M,k,L,D,E,B,I,O,P,N,F,U=t,R=Math.pow(2,32)-1;(function(){var t;if(S={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!==typeof Uint8Array){for(t in S)S.hasOwnProperty(t)&&(S[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);C=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),M=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),T=new Uint8Array([0,0,0,1]),k=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),L=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),D={video:k,audio:L},I=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),B=new Uint8Array([0,0,0,0,0,0,0,0]),O=new Uint8Array([0,0,0,0,0,0,0,0]),P=O,N=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),F=O,E=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),e=function(t){var e,n,i,r=[],a=0;for(e=1;e<arguments.length;e++)r.push(arguments[e]);e=r.length;while(e--)a+=r[e].byteLength;for(n=new Uint8Array(a+8),i=new DataView(n.buffer,n.byteOffset,n.byteLength),i.setUint32(0,n.byteLength),n.set(t,4),e=0,a=8;e<r.length;e++)n.set(r[e],a),a+=r[e].byteLength;return n},i=function(){return e(S.dinf,e(S.dref,I))},r=function(t){return e(S.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,t.audioobjecttype<<3|t.samplingfrequencyindex>>>1,t.samplingfrequencyindex<<7|t.channelcount<<3,6,1,2]))},a=function(){return e(S.ftyp,C,T,C,M)},v=function(t){return e(S.hdlr,D[t])},o=function(t){return e(S.mdat,t)},m=function(t){var n=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,t.duration>>>24&255,t.duration>>>16&255,t.duration>>>8&255,255&t.duration,85,196,0,0]);return t.samplerate&&(n[12]=t.samplerate>>>24&255,n[13]=t.samplerate>>>16&255,n[14]=t.samplerate>>>8&255,n[15]=255&t.samplerate),e(S.mdhd,n)},g=function(t){return e(S.mdia,m(t),v(t.type),l(t))},s=function(t){return e(S.mfhd,new Uint8Array([0,0,0,0,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t]))},l=function(t){return e(S.minf,"video"===t.type?e(S.vmhd,E):e(S.smhd,B),i(),A(t))},u=function(t,n){var i=[],r=n.length;while(r--)i[r]=_(n[r]);return e.apply(null,[S.moof,s(t)].concat(i))},c=function(t){var n=t.length,i=[];while(n--)i[n]=f(t[n]);return e.apply(null,[S.moov,h(4294967295)].concat(i).concat(d(t)))},d=function(t){var n=t.length,i=[];while(n--)i[n]=w(t[n]);return e.apply(null,[S.mvex].concat(i))},h=function(t){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return e(S.mvhd,n)},y=function(t){var n,i,r=t.samples||[],a=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)n=r[i].flags,a[i+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return e(S.sdtp,a)},A=function(t){return e(S.stbl,b(t),e(S.stts,F),e(S.stsc,P),e(S.stsz,N),e(S.stco,O))},function(){var t,n;b=function(i){return e(S.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===i.type?t(i):n(i))},t=function(t){var n,i,r=t.sps||[],a=t.pps||[],o=[],s=[];for(n=0;n<r.length;n++)o.push((65280&r[n].byteLength)>>>8),o.push(255&r[n].byteLength),o=o.concat(Array.prototype.slice.call(r[n]));for(n=0;n<a.length;n++)s.push((65280&a[n].byteLength)>>>8),s.push(255&a[n].byteLength),s=s.concat(Array.prototype.slice.call(a[n]));if(i=[S.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&t.width)>>8,255&t.width,(65280&t.height)>>8,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),e(S.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([r.length],o,[a.length],s))),e(S.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],t.sarRatio){var l=t.sarRatio[0],u=t.sarRatio[1];i.push(e(S.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return e.apply(null,i)},n=function(t){return e(S.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&t.channelcount)>>8,255&t.channelcount,(65280&t.samplesize)>>8,255&t.samplesize,0,0,0,0,(65280&t.samplerate)>>8,255&t.samplerate,0,0]),r(t))}}(),p=function(t){var n=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,0,(4278190080&t.duration)>>24,(16711680&t.duration)>>16,(65280&t.duration)>>8,255&t.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&t.width)>>8,255&t.width,0,0,(65280&t.height)>>8,255&t.height,0,0]);return e(S.tkhd,n)},_=function(t){var n,i,r,a,o,s,l;return n=e(S.tfhd,new Uint8Array([0,0,0,58,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),s=Math.floor(t.baseMediaDecodeTime/(R+1)),l=Math.floor(t.baseMediaDecodeTime%(R+1)),i=e(S.tfdt,new Uint8Array([1,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s,l>>>24&255,l>>>16&255,l>>>8&255,255&l])),o=92,"audio"===t.type?(r=x(t,o),e(S.traf,n,i,r)):(a=y(t),r=x(t,a.length+o),e(S.traf,n,i,r,a))},f=function(t){return t.duration=t.duration||4294967295,e(S.trak,p(t),g(t))},w=function(t){var n=new Uint8Array([0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==t.type&&(n[n.length-1]=0),e(S.trex,n)},function(){var t,n,i;i=function(t,e){var n=0,i=0,r=0,a=0;return t.length&&(void 0!==t[0].duration&&(n=1),void 0!==t[0].size&&(i=2),void 0!==t[0].flags&&(r=4),void 0!==t[0].compositionTimeOffset&&(a=8)),[0,0,n|i|r|a,1,(4278190080&t.length)>>>24,(16711680&t.length)>>>16,(65280&t.length)>>>8,255&t.length,(4278190080&e)>>>24,(16711680&e)>>>16,(65280&e)>>>8,255&e]},n=function(t,n){var r,a,o,s;for(a=t.samples||[],n+=20+16*a.length,r=i(a,n),s=0;s<a.length;s++)o=a[s],r=r.concat([(4278190080&o.duration)>>>24,(16711680&o.duration)>>>16,(65280&o.duration)>>>8,255&o.duration,(4278190080&o.size)>>>24,(16711680&o.size)>>>16,(65280&o.size)>>>8,255&o.size,o.flags.isLeading<<2|o.flags.dependsOn,o.flags.isDependedOn<<6|o.flags.hasRedundancy<<4|o.flags.paddingValue<<1|o.flags.isNonSyncSample,61440&o.flags.degradationPriority,15&o.flags.degradationPriority,(4278190080&o.compositionTimeOffset)>>>24,(16711680&o.compositionTimeOffset)>>>16,(65280&o.compositionTimeOffset)>>>8,255&o.compositionTimeOffset]);return e(S.trun,new Uint8Array(r))},t=function(t,n){var r,a,o,s;for(a=t.samples||[],n+=20+8*a.length,r=i(a,n),s=0;s<a.length;s++)o=a[s],r=r.concat([(4278190080&o.duration)>>>24,(16711680&o.duration)>>>16,(65280&o.duration)>>>8,255&o.duration,(4278190080&o.size)>>>24,(16711680&o.size)>>>16,(65280&o.size)>>>8,255&o.size]);return e(S.trun,new Uint8Array(r))},x=function(e,i){return"audio"===e.type?t(e,i):n(e,i)}}();var j,H,Y,z,Q,V,W,G={ftyp:a,mdat:o,moof:u,moov:c,initSegment:function(t){var e,n=a(),i=c(t);return e=new Uint8Array(n.byteLength+i.byteLength),e.set(n),e.set(i,n.byteLength),e}},K=function(t){var e,n,i=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,i.byteLength=0,e=0;e<t.length;e++)n=t[e],"access_unit_delimiter_rbsp"===n.nalUnitType?(i.length&&(i.duration=n.dts-i.dts,r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i)),i=[n],i.byteLength=n.data.byteLength,i.pts=n.pts,i.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(i.keyFrame=!0),i.duration=n.dts-i.dts,i.byteLength+=n.data.byteLength,i.push(n));return r.length&&(!i.duration||i.duration<=0)&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i),r},$=function(t){var e,n,i=[],r=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=t[0].pts,i.dts=t[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=t[0].pts,r.dts=t[0].dts,e=0;e<t.length;e++)n=t[e],n.keyFrame?(i.length&&(r.push(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration),i=[n],i.nalCount=n.length,i.byteLength=n.byteLength,i.pts=n.pts,i.dts=n.dts,i.duration=n.duration):(i.duration+=n.duration,i.nalCount+=n.length,i.byteLength+=n.byteLength,i.push(n));return r.length&&i.duration<=0&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration,r.push(i),r},q=function(t){var e;return!t[0][0].keyFrame&&t.length>1&&(e=t.shift(),t.byteLength-=e.byteLength,t.nalCount-=e.nalCount,t[0][0].dts=e.dts,t[0][0].pts=e.pts,t[0][0].duration+=e.duration),t},X=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},J=function(t,e){var n=X();return n.dataOffset=e,n.compositionTimeOffset=t.pts-t.dts,n.duration=t.duration,n.size=4*t.length,n.size+=t.byteLength,t.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},Z=function(t,e){var n,i,r,a,o,s=e||0,l=[];for(n=0;n<t.length;n++)for(a=t[n],i=0;i<a.length;i++)o=a[i],r=J(o,s),s+=r.size,l.push(r);return l},tt=function(t){var e,n,i,r,a,o,s=0,l=t.byteLength,u=t.nalCount,c=l+4*u,d=new Uint8Array(c),h=new DataView(d.buffer);for(e=0;e<t.length;e++)for(r=t[e],n=0;n<r.length;n++)for(a=r[n],i=0;i<a.length;i++)o=a[i],h.setUint32(s,o.data.byteLength),s+=4,d.set(o.data,s),s+=o.data.byteLength;return d},et=function(t,e){var n,i=e||0,r=[];return n=J(t,i),r.push(n),r},nt=function(t){var e,n,i=0,r=t.byteLength,a=t.length,o=r+4*a,s=new Uint8Array(o),l=new DataView(s.buffer);for(e=0;e<t.length;e++)n=t[e],l.setUint32(i,n.data.byteLength),i+=4,s.set(n.data,i),i+=n.data.byteLength;return s},it={groupNalsIntoFrames:K,groupFramesIntoGops:$,extendFirstKeyFrame:q,generateSampleTable:Z,concatenateNalData:tt,generateSampleTableForFrame:et,concatenateNalDataForFrame:nt},rt=[33,16,5,32,164,27],at=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],ot=function(t){var e=[];while(t--)e.push(0);return e},st=function(t){return Object.keys(t).reduce((function(e,n){return e[n]=new Uint8Array(t[n].reduce((function(t,e){return t.concat(e)}),[])),e}),{})},lt={96e3:[rt,[227,64],ot(154),[56]],88200:[rt,[231],ot(170),[56]],64e3:[rt,[248,192],ot(240),[56]],48e3:[rt,[255,192],ot(268),[55,148,128],ot(54),[112]],44100:[rt,[255,192],ot(268),[55,163,128],ot(84),[112]],32e3:[rt,[255,192],ot(268),[55,234],ot(226),[112]],24e3:[rt,[255,192],ot(268),[55,255,128],ot(268),[111,112],ot(126),[224]],16e3:[rt,[255,192],ot(268),[55,255,128],ot(268),[111,255],ot(269),[223,108],ot(195),[1,192]],12e3:[at,ot(268),[3,127,248],ot(268),[6,255,240],ot(268),[13,255,224],ot(268),[27,253,128],ot(259),[56]],11025:[at,ot(268),[3,127,248],ot(268),[6,255,240],ot(268),[13,255,224],ot(268),[27,255,192],ot(268),[55,175,128],ot(108),[112]],8e3:[at,ot(268),[3,121,16],ot(47),[7]]},ut=st(lt),ct=9e4;j=function(t){return t*ct},H=function(t,e){return t*e},Y=function(t){return t/ct},z=function(t,e){return t/e},Q=function(t,e){return j(z(t,e))},V=function(t,e){return H(Y(t),e)},W=function(t,e,n){return Y(n?t:t-e)};var dt={ONE_SECOND_IN_TS:ct,secondsToVideoTs:j,secondsToAudioTs:H,videoTsToSeconds:Y,audioTsToSeconds:z,audioTsToVideoTs:Q,videoTsToAudioTs:V,metadataTsToSeconds:W},ht=function(t){var e,n,i=0;for(e=0;e<t.length;e++)n=t[e],i+=n.data.byteLength;return i},ft=function(t,e,n,i){var r,a,o,s,l=0,u=0,c=0,d=0;if(e.length&&(r=dt.audioTsToVideoTs(t.baseMediaDecodeTime,t.samplerate),l=Math.ceil(dt.ONE_SECOND_IN_TS/(t.samplerate/1024)),n&&i&&(u=r-Math.max(n,i),c=Math.floor(u/l),d=c*l),!(c<1||d>dt.ONE_SECOND_IN_TS/2))){for(a=ut[t.samplerate],a||(a=e[0].data),o=0;o<c;o++)s=e[0],e.splice(0,0,{data:a,dts:s.dts-l,pts:s.pts-l});t.baseMediaDecodeTime-=Math.floor(dt.videoTsToAudioTs(d,t.samplerate))}},pt=function(t,e,n){return e.minSegmentDts>=n?t:(e.minSegmentDts=1/0,t.filter((function(t){return t.dts>=n&&(e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),e.minSegmentPts=e.minSegmentDts,!0)})))},gt=function(t){var e,n,i=[];for(e=0;e<t.length;e++)n=t[e],i.push({size:n.data.byteLength,duration:1024});return i},mt=function(t){var e,n,i=0,r=new Uint8Array(ht(t));for(e=0;e<t.length;e++)n=t[e],r.set(n.data,i),i+=n.data.byteLength;return r},vt={prefixWithSilence:ft,trimAdtsFramesByEarliestDts:pt,generateSampleTable:gt,concatenateFrameData:mt},yt=dt.ONE_SECOND_IN_TS,At=function(t,e){"number"===typeof e.pts&&(void 0===t.timelineStartInfo.pts&&(t.timelineStartInfo.pts=e.pts),void 0===t.minSegmentPts?t.minSegmentPts=e.pts:t.minSegmentPts=Math.min(t.minSegmentPts,e.pts),void 0===t.maxSegmentPts?t.maxSegmentPts=e.pts:t.maxSegmentPts=Math.max(t.maxSegmentPts,e.pts)),"number"===typeof e.dts&&(void 0===t.timelineStartInfo.dts&&(t.timelineStartInfo.dts=e.dts),void 0===t.minSegmentDts?t.minSegmentDts=e.dts:t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),void 0===t.maxSegmentDts?t.maxSegmentDts=e.dts:t.maxSegmentDts=Math.max(t.maxSegmentDts,e.dts))},bt=function(t){delete t.minSegmentDts,delete t.maxSegmentDts,delete t.minSegmentPts,delete t.maxSegmentPts},_t=function(t,e){var n,i,r=t.minSegmentDts;return e||(r-=t.timelineStartInfo.dts),n=t.timelineStartInfo.baseMediaDecodeTime,n+=r,n=Math.max(0,n),"audio"===t.type&&(i=t.samplerate/yt,n*=i,n=Math.floor(n)),n},wt={clearDtsInfo:bt,calculateTrackBaseMediaDecodeTime:_t,collectDtsInfo:At},xt=4,St=128,Ct=function(t){var e=0,n={payloadType:-1,payloadSize:0},i=0,r=0;while(e<t.byteLength){if(t[e]===St)break;while(255===t[e])i+=255,e++;i+=t[e++];while(255===t[e])r+=255,e++;if(r+=t[e++],!n.payload&&i===xt){n.payloadType=i,n.payloadSize=r,n.payload=t.subarray(e,e+r);break}e+=r,i=0,r=0}return n},Tt=function(t){return 181!==t.payload[0]||49!==(t.payload[1]<<8|t.payload[2])||"GA94"!==String.fromCharCode(t.payload[3],t.payload[4],t.payload[5],t.payload[6])||3!==t.payload[7]?null:t.payload.subarray(8,t.payload.length-1)},Mt=function(t,e){var n,i,r,a,o=[];if(!(64&e[0]))return o;for(i=31&e[0],n=0;n<i;n++)r=3*n,a={type:3&e[r+2],pts:t},4&e[r+2]&&(a.ccData=e[r+3]<<8|e[r+4],o.push(a));return o},kt=function(t){var e,n,i=t.byteLength,r=[],a=1;while(a<i-2)0===t[a]&&0===t[a+1]&&3===t[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return t;e=i-r.length,n=new Uint8Array(e);var o=0;for(a=0;a<e;o++,a++)o===r[0]&&(o++,r.shift()),n[a]=t[o];return n},Lt={parseSei:Ct,parseUserData:Tt,parseCaptionPackets:Mt,discardEmulationPreventionBytes:kt,USER_DATA_REGISTERED_ITU_T_T35:xt},Dt=function t(){t.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new Nt(0,0),new Nt(0,1),new Nt(1,0),new Nt(1,1)],this.reset(),this.ccStreams_.forEach((function(t){t.on("data",this.trigger.bind(this,"data")),t.on("partialdone",this.trigger.bind(this,"partialdone")),t.on("done",this.trigger.bind(this,"done"))}),this)};Dt.prototype=new U,Dt.prototype.push=function(t){var e,n,i;if("sei_rbsp"===t.nalUnitType&&(e=Lt.parseSei(t.escapedRBSP),e.payloadType===Lt.USER_DATA_REGISTERED_ITU_T_T35&&(n=Lt.parseUserData(e),n)))if(t.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(t.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));i=Lt.parseCaptionPackets(t.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==t.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=t.dts}},Dt.prototype.flushCCStreams=function(t){this.ccStreams_.forEach((function(e){return"flush"===t?e.flush():e.partialFlush()}),this)},Dt.prototype.flushStream=function(t){this.captionPackets_.length?(this.captionPackets_.forEach((function(t,e){t.presortIndex=e})),this.captionPackets_.sort((function(t,e){return t.pts===e.pts?t.presortIndex-e.presortIndex:t.pts-e.pts})),this.captionPackets_.forEach((function(t){t.type<2&&this.dispatchCea608Packet(t)}),this),this.captionPackets_.length=0,this.flushCCStreams(t)):this.flushCCStreams(t)},Dt.prototype.flush=function(){return this.flushStream("flush")},Dt.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Dt.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(t){t.reset()}))},Dt.prototype.dispatchCea608Packet=function(t){this.setsTextOrXDSActive(t)?this.activeCea608Channel_[t.type]=null:this.setsChannel1Active(t)?this.activeCea608Channel_[t.type]=0:this.setsChannel2Active(t)&&(this.activeCea608Channel_[t.type]=1),null!==this.activeCea608Channel_[t.type]&&this.ccStreams_[(t.type<<1)+this.activeCea608Channel_[t.type]].push(t)},Dt.prototype.setsChannel1Active=function(t){return 4096===(30720&t.ccData)},Dt.prototype.setsChannel2Active=function(t){return 6144===(30720&t.ccData)},Dt.prototype.setsTextOrXDSActive=function(t){return 256===(28928&t.ccData)||4138===(30974&t.ccData)||6186===(30974&t.ccData)};var Et={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Bt=function(t){return null===t?"":(t=Et[t]||t,String.fromCharCode(t))},It=14,Ot=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Pt=function(){var t=[],e=It+1;while(e--)t.push("");return t},Nt=function t(e,n){t.prototype.init.call(this),this.field_=e||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(t){var e,n,i,r,a;if(e=32639&t.ccData,e!==this.lastControlCode_){if(4096===(61440&e)?this.lastControlCode_=e:e!==this.PADDING_&&(this.lastControlCode_=null),i=e>>>8,r=255&e,e!==this.PADDING_)if(e===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(e===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(t.pts),this.flushDisplayed(t.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=t.pts;else if(e===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(t.pts);else if(e===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(t.pts);else if(e===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(t.pts);else if(e===this.CARRIAGE_RETURN_)this.clearFormatting(t.pts),this.flushDisplayed(t.pts),this.shiftRowsUp_(),this.startPts_=t.pts;else if(e===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(e===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(t.pts),this.displayed_=Pt();else if(e===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Pt();else if(e===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(t.pts),this.displayed_=Pt()),this.mode_="paintOn",this.startPts_=t.pts;else if(this.isSpecialCharacter(i,r))i=(3&i)<<8,a=Bt(i|r),this[this.mode_](t.pts,a),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),i=(3&i)<<8,a=Bt(i|r),this[this.mode_](t.pts,a),this.column_++;else if(this.isMidRowCode(i,r))this.clearFormatting(t.pts),this[this.mode_](t.pts," "),this.column_++,14===(14&r)&&this.addFormatting(t.pts,["i"]),1===(1&r)&&this.addFormatting(t.pts,["u"]);else if(this.isOffsetControlCode(i,r))this.column_+=3&r;else if(this.isPAC(i,r)){var o=Ot.indexOf(7968&e);"rollUp"===this.mode_&&(o-this.rollUpRows_+1<0&&(o=this.rollUpRows_-1),this.setRollUp(t.pts,o)),o!==this.row_&&(this.clearFormatting(t.pts),this.row_=o),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(t.pts,["u"]),16===(16&e)&&(this.column_=4*((14&e)>>1)),this.isColorPAC(r)&&14===(14&r)&&this.addFormatting(t.pts,["i"])}else this.isNormalChar(i)&&(0===r&&(r=null),a=Bt(i),a+=Bt(r),this[this.mode_](t.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};Nt.prototype=new U,Nt.prototype.flushDisplayed=function(t){var e=this.displayed_.map((function(t){try{return t.trim()}catch(Zc){return console.error("Skipping malformed caption."),""}})).join("\n").replace(/^\n+|\n+$/g,"");e.length&&this.trigger("data",{startPts:this.startPts_,endPts:t,text:e,stream:this.name_})},Nt.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Pt(),this.nonDisplayed_=Pt(),this.lastControlCode_=null,this.column_=0,this.row_=It,this.rollUpRows_=2,this.formatting_=[]},Nt.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Nt.prototype.isSpecialCharacter=function(t,e){return t===this.EXT_&&e>=48&&e<=63},Nt.prototype.isExtCharacter=function(t,e){return(t===this.EXT_+1||t===this.EXT_+2)&&e>=32&&e<=63},Nt.prototype.isMidRowCode=function(t,e){return t===this.EXT_&&e>=32&&e<=47},Nt.prototype.isOffsetControlCode=function(t,e){return t===this.OFFSET_&&e>=33&&e<=35},Nt.prototype.isPAC=function(t,e){return t>=this.BASE_&&t<this.BASE_+8&&e>=64&&e<=127},Nt.prototype.isColorPAC=function(t){return t>=64&&t<=79||t>=96&&t<=127},Nt.prototype.isNormalChar=function(t){return t>=32&&t<=127},Nt.prototype.setRollUp=function(t,e){if("rollUp"!==this.mode_&&(this.row_=It,this.mode_="rollUp",this.flushDisplayed(t),this.nonDisplayed_=Pt(),this.displayed_=Pt()),void 0!==e&&e!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[e-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===e&&(e=this.row_),this.topRow_=e-this.rollUpRows_+1},Nt.prototype.addFormatting=function(t,e){this.formatting_=this.formatting_.concat(e);var n=e.reduce((function(t,e){return t+"<"+e+">"}),"");this[this.mode_](t,n)},Nt.prototype.clearFormatting=function(t){if(this.formatting_.length){var e=this.formatting_.reverse().reduce((function(t,e){return t+"</"+e+">"}),"");this.formatting_=[],this[this.mode_](t,e)}},Nt.prototype.popOn=function(t,e){var n=this.nonDisplayed_[this.row_];n+=e,this.nonDisplayed_[this.row_]=n},Nt.prototype.rollUp=function(t,e){var n=this.displayed_[this.row_];n+=e,this.displayed_[this.row_]=n},Nt.prototype.shiftRowsUp_=function(){var t;for(t=0;t<this.topRow_;t++)this.displayed_[t]="";for(t=this.row_+1;t<It+1;t++)this.displayed_[t]="";for(t=this.topRow_;t<this.row_;t++)this.displayed_[t]=this.displayed_[t+1];this.displayed_[this.row_]=""},Nt.prototype.paintOn=function(t,e){var n=this.displayed_[this.row_];n+=e,this.displayed_[this.row_]=n};var Ft={CaptionStream:Dt,Cea608Stream:Nt},Ut={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Rt=8589934592,jt=4294967296,Ht="shared",Yt=function(t,e){var n=1;t>e&&(n=-1);while(Math.abs(e-t)>jt)t+=n*Rt;return t},zt=function t(e){var n,i;t.prototype.init.call(this),this.type_=e||Ht,this.push=function(t){this.type_!==Ht&&t.type!==this.type_||(void 0===i&&(i=t.dts),t.dts=Yt(t.dts,i),t.pts=Yt(t.pts,i),n=t.dts,this.trigger("data",t))},this.flush=function(){i=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){i=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};zt.prototype=new U;var Qt,Vt={TimestampRolloverStream:zt,handleRollover:Yt},Wt=function(t,e,n){var i,r="";for(i=e;i<n;i++)r+="%"+("00"+t[i].toString(16)).slice(-2);return r},Gt=function(t,e,n){return decodeURIComponent(Wt(t,e,n))},Kt=function(t,e,n){return unescape(Wt(t,e,n))},$t=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},qt={TXXX:function(t){var e;if(3===t.data[0]){for(e=1;e<t.data.length;e++)if(0===t.data[e]){t.description=Gt(t.data,1,e),t.value=Gt(t.data,e+1,t.data.length).replace(/\0*$/,"");break}t.data=t.value}},WXXX:function(t){var e;if(3===t.data[0])for(e=1;e<t.data.length;e++)if(0===t.data[e]){t.description=Gt(t.data,1,e),t.url=Gt(t.data,e+1,t.data.length);break}},PRIV:function(t){var e;for(e=0;e<t.data.length;e++)if(0===t.data[e]){t.owner=Kt(t.data,0,e);break}t.privateData=t.data.subarray(e+1),t.data=t.privateData}};Qt=function(t){var e,n={debug:!(!t||!t.debug),descriptor:t&&t.descriptor},i=0,r=[],a=0;if(Qt.prototype.init.call(this),this.dispatchType=Ut.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(e=0;e<n.descriptor.length;e++)this.dispatchType+=("00"+n.descriptor[e].toString(16)).slice(-2);this.push=function(t){var e,o,s,l,u,c;if("timed-metadata"===t.type)if(t.dataAlignmentIndicator&&(a=0,r.length=0),0===r.length&&(t.data.length<10||t.data[0]!=="I".charCodeAt(0)||t.data[1]!=="D".charCodeAt(0)||t.data[2]!=="3".charCodeAt(0)))n.debug&&console.log("Skipping unrecognized metadata packet");else if(r.push(t),a+=t.data.byteLength,1===r.length&&(i=$t(t.data.subarray(6,10)),i+=10),!(a<i)){for(e={data:new Uint8Array(i),frames:[],pts:r[0].pts,dts:r[0].dts},u=0;u<i;)e.data.set(r[0].data.subarray(0,i-u),u),u+=r[0].data.byteLength,a-=r[0].data.byteLength,r.shift();o=10,64&e.data[5]&&(o+=4,o+=$t(e.data.subarray(10,14)),i-=$t(e.data.subarray(16,20)));do{if(s=$t(e.data.subarray(o+4,o+8)),s<1)return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.");if(c=String.fromCharCode(e.data[o],e.data[o+1],e.data[o+2],e.data[o+3]),l={id:c,data:e.data.subarray(o+10,o+s+10)},l.key=l.id,qt[l.id]&&(qt[l.id](l),"com.apple.streaming.transportStreamTimestamp"===l.owner)){var d=l.data,h=(1&d[3])<<30|d[4]<<22|d[5]<<14|d[6]<<6|d[7]>>>2;h*=4,h+=3&d[7],l.timeStamp=h,void 0===e.pts&&void 0===e.dts&&(e.pts=l.timeStamp,e.dts=l.timeStamp),this.trigger("timestamp",l)}e.frames.push(l),o+=10,o+=s}while(o<i);this.trigger("data",e)}}},Qt.prototype=new U;var Xt,Jt,Zt,te=Qt,ee=Vt.TimestampRolloverStream,ne=188,ie=71;Xt=function(){var t=new Uint8Array(ne),e=0;Xt.prototype.init.call(this),this.push=function(n){var i,r=0,a=ne;e?(i=new Uint8Array(n.byteLength+e),i.set(t.subarray(0,e)),i.set(n,e),e=0):i=n;while(a<i.byteLength)i[r]!==ie||i[a]!==ie?(r++,a++):(this.trigger("data",i.subarray(r,a)),r+=ne,a+=ne);r<i.byteLength&&(t.set(i.subarray(r),0),e=i.byteLength-r)},this.flush=function(){e===ne&&t[0]===ie&&(this.trigger("data",t),e=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){e=0,this.trigger("reset")}},Xt.prototype=new U,Jt=function(){var t,e,n,i;Jt.prototype.init.call(this),i=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,t=function(t,i){var r=0;i.payloadUnitStartIndicator&&(r+=t[r]+1),"pat"===i.type?e(t.subarray(r),i):n(t.subarray(r),i)},e=function(t,e){e.section_number=t[7],e.last_section_number=t[8],i.pmtPid=(31&t[10])<<8|t[11],e.pmtPid=i.pmtPid},n=function(t,e){var n,r,a,o;if(1&t[5]){i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=(15&t[1])<<8|t[2],r=3+n-4,a=(15&t[10])<<8|t[11],o=12+a;while(o<r){var s=t[o],l=(31&t[o+1])<<8|t[o+2];s===Ut.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=l:s===Ut.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=l:s===Ut.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][l]=s),o+=5+((15&t[o+3])<<8|t[o+4])}e.programMapTable=i.programMapTable}},this.push=function(e){var n={},i=4;if(n.payloadUnitStartIndicator=!!(64&e[1]),n.pid=31&e[1],n.pid<<=8,n.pid|=e[2],(48&e[3])>>>4>1&&(i+=e[i]+1),0===n.pid)n.type="pat",t(e.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid){n.type="pmt",t(e.subarray(i),n),this.trigger("data",n);while(this.packetsWaitingForPmt.length)this.processPes_.apply(this,this.packetsWaitingForPmt.shift())}else void 0===this.programMapTable?this.packetsWaitingForPmt.push([e,i,n]):this.processPes_(e,i,n)},this.processPes_=function(t,e,n){n.pid===this.programMapTable.video?n.streamType=Ut.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=Ut.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=t.subarray(e),this.trigger("data",n)}},Jt.prototype=new U,Jt.STREAM_TYPES={h264:27,adts:15},Zt=function(){var t,e=this,n={data:[],size:0},i={data:[],size:0},r={data:[],size:0},a=function(t,e){var n;e.packetLength=6+(t[4]<<8|t[5]),e.dataAlignmentIndicator=0!==(4&t[6]),n=t[7],192&n&&(e.pts=(14&t[9])<<27|(255&t[10])<<20|(254&t[11])<<12|(255&t[12])<<5|(254&t[13])>>>3,e.pts*=4,e.pts+=(6&t[13])>>>1,e.dts=e.pts,64&n&&(e.dts=(14&t[14])<<27|(255&t[15])<<20|(254&t[16])<<12|(255&t[17])<<5|(254&t[18])>>>3,e.dts*=4,e.dts+=(6&t[18])>>>1)),e.data=t.subarray(9+t[8])},o=function(t,n,i){var r,o=new Uint8Array(t.size),s={type:n},l=0,u=0,c=!1;if(t.data.length&&!(t.size<9)){for(s.trackId=t.data[0].pid,l=0;l<t.data.length;l++)r=t.data[l],o.set(r.data,u),u+=r.data.byteLength;a(o,s),c="video"===n||s.packetLength<=t.size,(i||c)&&(t.size=0,t.data.length=0),c&&e.trigger("data",s)}};Zt.prototype.init.call(this),this.push=function(a){({pat:function(){},pes:function(){var t,e;switch(a.streamType){case Ut.H264_STREAM_TYPE:case Ut.H264_STREAM_TYPE:t=n,e="video";break;case Ut.ADTS_STREAM_TYPE:t=i,e="audio";break;case Ut.METADATA_STREAM_TYPE:t=r,e="timed-metadata";break;default:return}a.payloadUnitStartIndicator&&o(t,e,!0),t.data.push(a),t.size+=a.data.byteLength},pmt:function(){var n={type:"metadata",tracks:[]};t=a.programMapTable,null!==t.video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),e.trigger("data",n)}})[a.type]()},this.reset=function(){n.size=0,n.data.length=0,i.size=0,i.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(n,"video"),o(i,"audio"),o(r,"timed-metadata")},this.flush=function(){this.flushStreams_(),this.trigger("done")}},Zt.prototype=new U;var re={PAT_PID:0,MP2T_PACKET_LENGTH:ne,TransportPacketStream:Xt,TransportParseStream:Jt,ElementaryStream:Zt,TimestampRolloverStream:ee,CaptionStream:Ft.CaptionStream,Cea608Stream:Ft.Cea608Stream,MetadataStream:te};for(var ae in Ut)Ut.hasOwnProperty(ae)&&(re[ae]=Ut[ae]);var oe,se=re,le=dt.ONE_SECOND_IN_TS,ue=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];oe=function(t){var e,n=0;oe.prototype.init.call(this),this.push=function(i){var r,a,o,s,l,u,c=0;if(t||(n=0),"audio"===i.type){e?(s=e,e=new Uint8Array(s.byteLength+i.data.byteLength),e.set(s),e.set(i.data,s.byteLength)):e=i.data;while(c+5<e.length)if(255===e[c]&&240===(246&e[c+1])){if(a=2*(1&~e[c+1]),r=(3&e[c+3])<<11|e[c+4]<<3|(224&e[c+5])>>5,l=1024*(1+(3&e[c+6])),u=l*le/ue[(60&e[c+2])>>>2],o=c+r,e.byteLength<o)return;if(this.trigger("data",{pts:i.pts+n*u,dts:i.dts+n*u,sampleCount:l,audioobjecttype:1+(e[c+2]>>>6&3),channelcount:(1&e[c+2])<<2|(192&e[c+3])>>>6,samplerate:ue[(60&e[c+2])>>>2],samplingfrequencyindex:(60&e[c+2])>>>2,samplesize:16,data:e.subarray(c+7+a,o)}),n++,e.byteLength===o)return void(e=void 0);e=e.subarray(o)}else c++}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){e=void 0,this.trigger("reset")},this.endTimeline=function(){e=void 0,this.trigger("endedtimeline")}},oe.prototype=new U;var ce,de=oe;ce=function(t){var e=t.byteLength,n=0,i=0;this.length=function(){return 8*e},this.bitsAvailable=function(){return 8*e+i},this.loadWord=function(){var r=t.byteLength-e,a=new Uint8Array(4),o=Math.min(4,e);if(0===o)throw new Error("no bytes available");a.set(t.subarray(r,r+o)),n=new DataView(a.buffer).getUint32(0),i=8*o,e-=o},this.skipBits=function(t){var r;i>t?(n<<=t,i-=t):(t-=i,r=Math.floor(t/8),t-=8*r,e-=r,this.loadWord(),n<<=t,i-=t)},this.readBits=function(t){var r=Math.min(i,t),a=n>>>32-r;return i-=r,i>0?n<<=r:e>0&&this.loadWord(),r=t-r,r>0?a<<r|this.readBits(r):a},this.skipLeadingZeros=function(){var t;for(t=0;t<i;++t)if(0!==(n&2147483648>>>t))return n<<=t,i-=t,t;return this.loadWord(),t+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var t=this.skipLeadingZeros();return this.readBits(t+1)-1},this.readExpGolomb=function(){var t=this.readUnsignedExpGolomb();return 1&t?1+t>>>1:-1*(t>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var he,fe,pe,ge=ce;fe=function(){var t,e,n=0;fe.prototype.init.call(this),this.push=function(i){var r;e?(r=new Uint8Array(e.byteLength+i.data.byteLength),r.set(e),r.set(i.data,e.byteLength),e=r):e=i.data;for(var a=e.byteLength;n<a-3;n++)if(1===e[n+2]){t=n+5;break}while(t<a)switch(e[t]){case 0:if(0!==e[t-1]){t+=2;break}if(0!==e[t-2]){t++;break}n+3!==t-2&&this.trigger("data",e.subarray(n+3,t-2));do{t++}while(1!==e[t]&&t<a);n=t-2,t+=3;break;case 1:if(0!==e[t-1]||0!==e[t-2]){t+=3;break}this.trigger("data",e.subarray(n+3,t-2)),n=t-2,t+=3;break;default:t+=3;break}e=e.subarray(n),t-=n,n=0},this.reset=function(){e=null,n=0,this.trigger("reset")},this.flush=function(){e&&e.byteLength>3&&this.trigger("data",e.subarray(n+3)),e=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},fe.prototype=new U,pe={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},he=function(){var t,e,n,i,r,a,o,s=new fe;he.prototype.init.call(this),t=this,this.push=function(t){"video"===t.type&&(e=t.trackId,n=t.pts,i=t.dts,s.push(t))},s.on("data",(function(o){var s={trackId:e,pts:n,dts:i,data:o};switch(31&o[0]){case 5:s.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:s.nalUnitType="sei_rbsp",s.escapedRBSP=r(o.subarray(1));break;case 7:s.nalUnitType="seq_parameter_set_rbsp",s.escapedRBSP=r(o.subarray(1)),s.config=a(s.escapedRBSP);break;case 8:s.nalUnitType="pic_parameter_set_rbsp";break;case 9:s.nalUnitType="access_unit_delimiter_rbsp";break;default:break}t.trigger("data",s)})),s.on("done",(function(){t.trigger("done")})),s.on("partialdone",(function(){t.trigger("partialdone")})),s.on("reset",(function(){t.trigger("reset")})),s.on("endedtimeline",(function(){t.trigger("endedtimeline")})),this.flush=function(){s.flush()},this.partialFlush=function(){s.partialFlush()},this.reset=function(){s.reset()},this.endTimeline=function(){s.endTimeline()},o=function(t,e){var n,i,r=8,a=8;for(n=0;n<t;n++)0!==a&&(i=e.readExpGolomb(),a=(r+i+256)%256),r=0===a?r:a},r=function(t){var e,n,i=t.byteLength,r=[],a=1;while(a<i-2)0===t[a]&&0===t[a+1]&&3===t[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return t;e=i-r.length,n=new Uint8Array(e);var o=0;for(a=0;a<e;o++,a++)o===r[0]&&(o++,r.shift()),n[a]=t[o];return n},a=function(t){var e,n,i,r,a,s,l,u,c,d,h,f,p,g,m=0,v=0,y=0,A=0,b=1;if(e=new ge(t),n=e.readUnsignedByte(),r=e.readUnsignedByte(),i=e.readUnsignedByte(),e.skipUnsignedExpGolomb(),pe[n]&&(a=e.readUnsignedExpGolomb(),3===a&&e.skipBits(1),e.skipUnsignedExpGolomb(),e.skipUnsignedExpGolomb(),e.skipBits(1),e.readBoolean()))for(h=3!==a?8:12,g=0;g<h;g++)e.readBoolean()&&o(g<6?16:64,e);if(e.skipUnsignedExpGolomb(),s=e.readUnsignedExpGolomb(),0===s)e.readUnsignedExpGolomb();else if(1===s)for(e.skipBits(1),e.skipExpGolomb(),e.skipExpGolomb(),l=e.readUnsignedExpGolomb(),g=0;g<l;g++)e.skipExpGolomb();if(e.skipUnsignedExpGolomb(),e.skipBits(1),u=e.readUnsignedExpGolomb(),c=e.readUnsignedExpGolomb(),d=e.readBits(1),0===d&&e.skipBits(1),e.skipBits(1),e.readBoolean()&&(m=e.readUnsignedExpGolomb(),v=e.readUnsignedExpGolomb(),y=e.readUnsignedExpGolomb(),A=e.readUnsignedExpGolomb()),e.readBoolean()&&e.readBoolean()){switch(p=e.readUnsignedByte(),p){case 1:f=[1,1];break;case 2:f=[12,11];break;case 3:f=[10,11];break;case 4:f=[16,11];break;case 5:f=[40,33];break;case 6:f=[24,11];break;case 7:f=[20,11];break;case 8:f=[32,11];break;case 9:f=[80,33];break;case 10:f=[18,11];break;case 11:f=[15,11];break;case 12:f=[64,33];break;case 13:f=[160,99];break;case 14:f=[4,3];break;case 15:f=[3,2];break;case 16:f=[2,1];break;case 255:f=[e.readUnsignedByte()<<8|e.readUnsignedByte(),e.readUnsignedByte()<<8|e.readUnsignedByte()];break}f&&(b=f[0]/f[1])}return{profileIdc:n,levelIdc:i,profileCompatibility:r,width:Math.ceil((16*(u+1)-2*m-2*v)*b),height:(2-d)*(c+1)*16-2*y-2*A,sarRatio:f}}},he.prototype=new U;var me,ve={H264Stream:he,NalByteStream:fe},ye=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],Ae=function(t){return t[0]==="I".charCodeAt(0)&&t[1]==="D".charCodeAt(0)&&t[2]==="3".charCodeAt(0)},be=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},_e=function(t,e,n){var i,r="";for(i=e;i<n;i++)r+="%"+("00"+t[i].toString(16)).slice(-2);return r},we=function(t,e,n){return unescape(_e(t,e,n))},xe=function(t,e){var n=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9],i=t[e+5],r=(16&i)>>4;return r?n+20:n+10},Se=function(t,e){var n=(224&t[e+5])>>5,i=t[e+4]<<3,r=6144&t[e+3];return r|i|n},Ce=function(t,e){return t[e]==="I".charCodeAt(0)&&t[e+1]==="D".charCodeAt(0)&&t[e+2]==="3".charCodeAt(0)?"timed-metadata":!0&t[e]&&240===(240&t[e+1])?"audio":null},Te=function(t){var e=0;while(e+5<t.length){if(255===t[e]&&240===(246&t[e+1]))return ye[(60&t[e+2])>>>2];e++}return null},Me=function(t){var e,n,i,r;e=10,64&t[5]&&(e+=4,e+=be(t.subarray(10,14)));do{if(n=be(t.subarray(e+4,e+8)),n<1)return null;if(r=String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3]),"PRIV"===r){i=t.subarray(e+10,e+n+10);for(var a=0;a<i.byteLength;a++)if(0===i[a]){var o=we(i,0,a);if("com.apple.streaming.transportStreamTimestamp"===o){var s=i.subarray(a+1),l=(1&s[3])<<30|s[4]<<22|s[5]<<14|s[6]<<6|s[7]>>>2;return l*=4,l+=3&s[7],l}break}}e+=10,e+=n}while(e<t.byteLength);return null},ke={isLikelyAacData:Ae,parseId3TagSize:xe,parseAdtsSize:Se,parseType:Ce,parseSampleRate:Te,parseAacTimestamp:Me};me=function(){var t=new Uint8Array,e=0;me.prototype.init.call(this),this.setTimestamp=function(t){e=t},this.push=function(n){var i,r,a,o,s=0,l=0;t.length?(o=t.length,t=new Uint8Array(n.byteLength+o),t.set(t.subarray(0,o)),t.set(n,o)):t=n;while(t.length-l>=3)if(t[l]!=="I".charCodeAt(0)||t[l+1]!=="D".charCodeAt(0)||t[l+2]!=="3".charCodeAt(0))if(255!==(255&t[l])||240!==(240&t[l+1]))l++;else{if(t.length-l<7)break;if(s=ke.parseAdtsSize(t,l),l+s>t.length)break;a={type:"audio",data:t.subarray(l,l+s),pts:e,dts:e},this.trigger("data",a),l+=s}else{if(t.length-l<10)break;if(s=ke.parseId3TagSize(t,l),l+s>t.length)break;r={type:"timed-metadata",data:t.subarray(l,l+s)},this.trigger("data",r),l+=s}i=t.length-l,t=i>0?t.subarray(l):new Uint8Array},this.reset=function(){t=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){t=new Uint8Array,this.trigger("endedtimeline")}},me.prototype=new U;var Le,De,Ee,Be,Ie=me,Oe=ve.H264Stream,Pe=ke.isLikelyAacData,Ne=dt.ONE_SECOND_IN_TS,Fe=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Ue=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Re=function(t,e){var n;if(t.length!==e.length)return!1;for(n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},je=function(t,e,n,i,r,a){var o=n-e,s=i-e,l=r-n;return{start:{dts:t,pts:t+o},end:{dts:t+s,pts:t+l},prependedContentDuration:a,baseMediaDecodeTime:t}};De=function(t,e){var n=[],i=0,r=0,a=0,o=1/0;e=e||{},De.prototype.init.call(this),this.push=function(e){wt.collectDtsInfo(t,e),t&&Fe.forEach((function(n){t[n]=e[n]})),n.push(e)},this.setEarliestDts=function(e){r=e-t.timelineStartInfo.baseMediaDecodeTime},this.setVideoBaseMediaDecodeTime=function(t){o=t},this.setAudioAppendStart=function(t){a=t},this.flush=function(){var s,l,u,c,d;0!==n.length?(s=vt.trimAdtsFramesByEarliestDts(n,t,r),t.baseMediaDecodeTime=wt.calculateTrackBaseMediaDecodeTime(t,e.keepOriginalTimestamps),vt.prefixWithSilence(t,s,a,o),t.samples=vt.generateSampleTable(s),u=G.mdat(vt.concatenateFrameData(s)),n=[],l=G.moof(i,[t]),c=new Uint8Array(l.byteLength+u.byteLength),i++,c.set(l),c.set(u,l.byteLength),wt.clearDtsInfo(t),d=Math.ceil(1024*Ne/t.samplerate),s.length&&this.trigger("timingInfo",{start:s[0].dts,end:s[0].dts+s.length*d}),this.trigger("data",{track:t,boxes:c}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){wt.clearDtsInfo(t),n=[],this.trigger("reset")}},De.prototype=new U,Le=function(t,e){var n,i,r=0,a=[],o=[];e=e||{},Le.prototype.init.call(this),delete t.minPTS,this.gopCache_=[],this.push=function(e){wt.collectDtsInfo(t,e),"seq_parameter_set_rbsp"!==e.nalUnitType||n||(n=e.config,t.sps=[e.data],Ue.forEach((function(e){t[e]=n[e]}),this)),"pic_parameter_set_rbsp"!==e.nalUnitType||i||(i=e.data,t.pps=[e.data]),a.push(e)},this.flush=function(){var n,i,s,l,u,c,d,h,f=0;while(a.length){if("access_unit_delimiter_rbsp"===a[0].nalUnitType)break;a.shift()}if(0===a.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=it.groupNalsIntoFrames(a),s=it.groupFramesIntoGops(n),s[0][0].keyFrame||(i=this.getGopForFusion_(a[0],t),i?(f=i.duration,s.unshift(i),s.byteLength+=i.byteLength,s.nalCount+=i.nalCount,s.pts=i.pts,s.dts=i.dts,s.duration+=i.duration):s=it.extendFirstKeyFrame(s)),o.length){var p;if(p=e.alignGopsAtEnd?this.alignGopsAtEnd_(s):this.alignGopsAtStart_(s),!p)return this.gopCache_.unshift({gop:s.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");wt.clearDtsInfo(t),s=p}wt.collectDtsInfo(t,s),t.samples=it.generateSampleTable(s),u=G.mdat(it.concatenateNalData(s)),t.baseMediaDecodeTime=wt.calculateTrackBaseMediaDecodeTime(t,e.keepOriginalTimestamps),this.trigger("processedGopsInfo",s.map((function(t){return{pts:t.pts,dts:t.dts,byteLength:t.byteLength}}))),d=s[0],h=s[s.length-1],this.trigger("segmentTimingInfo",je(t.baseMediaDecodeTime,d.dts,d.pts,h.dts+h.duration,h.pts+h.duration,f)),this.trigger("timingInfo",{start:s[0].dts,end:s[s.length-1].dts+s[s.length-1].duration}),this.gopCache_.unshift({gop:s.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.trigger("baseMediaDecodeTime",t.baseMediaDecodeTime),this.trigger("timelineStartInfo",t.timelineStartInfo),l=G.moof(r,[t]),c=new Uint8Array(l.byteLength+u.byteLength),r++,c.set(l),c.set(u,l.byteLength),this.trigger("data",{track:t,boxes:c}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),a=[],this.gopCache_.length=0,o.length=0,this.trigger("reset")},this.resetStream_=function(){wt.clearDtsInfo(t),n=void 0,i=void 0},this.getGopForFusion_=function(e){var n,i,r,a,o,s=45e3,l=1e4,u=1/0;for(o=0;o<this.gopCache_.length;o++)a=this.gopCache_[o],r=a.gop,t.pps&&Re(t.pps[0],a.pps[0])&&t.sps&&Re(t.sps[0],a.sps[0])&&(r.dts<t.timelineStartInfo.dts||(n=e.dts-r.dts-r.duration,n>=-l&&n<=s&&(!i||u>n)&&(i=a,u=n)));return i?i.gop:null},this.alignGopsAtStart_=function(t){var e,n,i,r,a,s,l,u;a=t.byteLength,s=t.nalCount,l=t.duration,e=n=0;while(e<o.length&&n<t.length){if(i=o[e],r=t[n],i.pts===r.pts)break;r.pts>i.pts?e++:(n++,a-=r.byteLength,s-=r.nalCount,l-=r.duration)}return 0===n?t:n===t.length?null:(u=t.slice(n),u.byteLength=a,u.duration=l,u.nalCount=s,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(t){var e,n,i,r,a,s,l;e=o.length-1,n=t.length-1,a=null,s=!1;while(e>=0&&n>=0){if(i=o[e],r=t[n],i.pts===r.pts){s=!0;break}i.pts>r.pts?e--:(e===o.length-1&&(a=n),n--)}if(!s&&null===a)return null;if(l=s?n:a,0===l)return t;var u=t.slice(l),c=u.reduce((function(t,e){return t.byteLength+=e.byteLength,t.duration+=e.duration,t.nalCount+=e.nalCount,t}),{byteLength:0,duration:0,nalCount:0});return u.byteLength=c.byteLength,u.duration=c.duration,u.nalCount=c.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(t){o=t}},Le.prototype=new U,Be=function(t,e){this.numberOfTracks=0,this.metadataStream=e,t=t||{},"undefined"!==typeof t.remux?this.remuxTracks=!!t.remux:this.remuxTracks=!0,"boolean"===typeof t.keepOriginalTimestamps?this.keepOriginalTimestamps=t.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Be.prototype.init.call(this),this.push=function(t){return t.text?this.pendingCaptions.push(t):t.frames?this.pendingMetadata.push(t):(this.pendingTracks.push(t.track),this.pendingBytes+=t.boxes.byteLength,"video"===t.track.type&&(this.videoTrack=t.track,this.pendingBoxes.push(t.boxes)),void("audio"===t.track.type&&(this.audioTrack=t.track,this.pendingBoxes.unshift(t.boxes))))}},Be.prototype=new U,Be.prototype.flush=function(t){var e,n,i,r,a=0,o={captions:[],captionStreams:{},metadata:[],info:{}},s=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==t&&"AudioSegmentStream"!==t)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,Ue.forEach((function(t){o.info[t]=this.videoTrack[t]}),this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,Fe.forEach((function(t){o.info[t]=this.audioTrack[t]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?o.type=this.pendingTracks[0].type:o.type="combined",this.emittedTracks+=this.pendingTracks.length,i=G.initSegment(this.pendingTracks),o.initSegment=new Uint8Array(i.byteLength),o.initSegment.set(i),o.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)o.data.set(this.pendingBoxes[r],a),a+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)e=this.pendingCaptions[r],e.startTime=dt.metadataTsToSeconds(e.startPts,s,this.keepOriginalTimestamps),e.endTime=dt.metadataTsToSeconds(e.endPts,s,this.keepOriginalTimestamps),o.captionStreams[e.stream]=!0,o.captions.push(e);for(r=0;r<this.pendingMetadata.length;r++)n=this.pendingMetadata[r],n.cueTime=dt.metadataTsToSeconds(n.pts,s,this.keepOriginalTimestamps),o.metadata.push(n);for(o.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",o),r=0;r<o.captions.length;r++)e=o.captions[r],this.trigger("caption",e);for(r=0;r<o.metadata.length;r++)n=o.metadata[r],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Be.prototype.setRemux=function(t){this.remuxTracks=t},Ee=function(t){var e,n,i=this,r=!0;Ee.prototype.init.call(this),t=t||{},this.baseMediaDecodeTime=t.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new se.MetadataStream,r.aacStream=new Ie,r.audioTimestampRolloverStream=new se.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new se.TimestampRolloverStream("timed-metadata"),r.adtsStream=new de,r.coalesceStream=new Be(t,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",(function(t){r.aacStream.setTimestamp(t.timeStamp)})),r.aacStream.on("data",(function(a){"timed-metadata"!==a.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new De(n,t),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!e})})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new se.MetadataStream,r.packetStream=new se.TransportPacketStream,r.parseStream=new se.TransportParseStream,r.elementaryStream=new se.ElementaryStream,r.timestampRolloverStream=new se.TimestampRolloverStream,r.adtsStream=new de,r.h264Stream=new Oe,r.captionStream=new se.CaptionStream,r.coalesceStream=new Be(t,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",(function(a){var o;if("metadata"===a.type){o=a.tracks.length;while(o--)e||"video"!==a.tracks[o].type?n||"audio"!==a.tracks[o].type||(n=a.tracks[o],n.timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(e=a.tracks[o],e.timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime);e&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new Le(e,t),r.videoSegmentStream.on("timelineStartInfo",(function(t){n&&(n.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts))})),r.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",(function(t){n&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(t)})),r.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),n&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new De(n,t),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!e})}})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",(function(t){t.dispatchType=r.metadataStream.dispatchType,i.trigger("id3Frame",t)})),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(i){var r=this.transmuxPipeline_;t.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,wt.clearDtsInfo(n),t.keepOriginalTimestamps||(n.timelineStartInfo.baseMediaDecodeTime=i),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),e&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),e.timelineStartInfo.dts=void 0,e.timelineStartInfo.pts=void 0,wt.clearDtsInfo(e),r.captionStream.reset(),t.keepOriginalTimestamps||(e.timelineStartInfo.baseMediaDecodeTime=i)),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(t){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(t)},this.setRemux=function(e){var n=this.transmuxPipeline_;t.remux=e,n&&n.coalesceStream&&n.coalesceStream.setRemux(e)},this.alignGopsWith=function(t){e&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(t)},this.push=function(t){if(r){var e=Pe(t);e&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():e||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(t)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},Ee.prototype=new U;var He={Transmuxer:Ee,VideoSegmentStream:Le,AudioSegmentStream:De,AUDIO_PROPERTIES:Fe,VIDEO_PROPERTIES:Ue,generateVideoSegmentTimingInfo:je},Ye=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},ze=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),Qe=function(t,e){e.on("data",(function(e){var n=e.initSegment;e.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var i=e.data;e.data=i.buffer,t.postMessage({action:"data",segment:e,byteOffset:i.byteOffset,byteLength:i.byteLength},[e.data])})),e.captionStream&&e.captionStream.on("data",(function(e){t.postMessage({action:"caption",data:e})})),e.on("done",(function(e){t.postMessage({action:"done"})})),e.on("gopInfo",(function(e){t.postMessage({action:"gopInfo",gopInfo:e})})),e.on("videoSegmentTimingInfo",(function(e){t.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:e})}))},Ve=function(){function t(e,n){Ye(this,t),this.options=n||{},this.self=e,this.init()}return ze(t,[{key:"init",value:function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new He.Transmuxer(this.options),Qe(this.self,this.transmuxer)}},{key:"push",value:function(t){var e=new Uint8Array(t.data,t.byteOffset,t.byteLength);this.transmuxer.push(e)}},{key:"reset",value:function(){this.init()}},{key:"setTimestampOffset",value:function(t){var e=t.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(9e4*e))}},{key:"setAudioAppendStart",value:function(t){this.transmuxer.setAudioAppendStart(Math.ceil(9e4*t.appendStart))}},{key:"flush",value:function(t){this.transmuxer.flush()}},{key:"resetCaptions",value:function(){this.transmuxer.resetCaptions()}},{key:"alignGopsWith",value:function(t){this.transmuxer.alignGopsWith(t.gopsToAlignWith.slice())}}]),t}(),We=function(t){t.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new Ve(t,e.data.options):(this.messageHandlers||(this.messageHandlers=new Ve(t)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}},Ge=new We(n)})()})),Yl={videoCodec:"avc1",videoObjectTypeIndicator:".4d400d",audioProfile:"2"},zl=function(t){return t.map((function(t){return t.replace(/avc1\.(\d+)\.(\d+)/i,(function(t,e,n){var i=("00"+Number(e).toString(16)).slice(-2),r=("00"+Number(n).toString(16)).slice(-2);return"avc1."+i+"00"+r}))}))},Ql=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e={codecCount:0},n=void 0;return e.codecCount=t.split(",").length,e.codecCount=e.codecCount||2,n=/(^|\s|,)+(avc[13])([^ ,]*)/i.exec(t),n&&(e.videoCodec=n[2],e.videoObjectTypeIndicator=n[3]),e.audioProfile=/(^|\s|,)+mp4a.[0-9A-Fa-f]+\.([0-9A-Fa-f]+)/i.exec(t),e.audioProfile=e.audioProfile&&e.audioProfile[2],e},Vl=function(t){return t.replace(/avc1\.(\d+)\.(\d+)/i,(function(t){return zl([t])[0]}))},Wl=function(t,e,n){return t+"/"+e+'; codecs="'+n.filter((function(t){return!!t})).join(", ")+'"'},Gl=function(t){return t.segments&&t.segments.length&&t.segments[0].map?"mp4":"mp2t"},Kl=function(t){var e=t.attributes||{};return e.CODECS?Ql(e.CODECS):Yl},$l=function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var n=t.mediaGroups.AUDIO[e];if(!n)return null;for(var i in n){var r=n[i];if(r["default"]&&r.playlists)return Ql(r.playlists[0].attributes.CODECS).audioProfile}return null},ql=function(t,e){var n=Gl(e),i=Kl(e),r=e.attributes||{},a=!0,o=!1;if(!e)return[];if(t.mediaGroups.AUDIO&&r.AUDIO){var s=t.mediaGroups.AUDIO[r.AUDIO];if(s)for(var l in o=!0,a=!1,s)if(!s[l].uri&&!s[l].playlists){a=!0;break}}o&&!i.audioProfile&&(a||(i.audioProfile=$l(t,r.AUDIO)),i.audioProfile||(Zo.log.warn("Multiple audio tracks present but no audio codec string is specified. Attempting to use the default audio codec (mp4a.40.2)"),i.audioProfile=Yl.audioProfile));var u={};i.videoCodec&&(u.video=""+i.videoCodec+i.videoObjectTypeIndicator),i.audioProfile&&(u.audio="mp4a.40."+i.audioProfile);var c=Wl("audio",n,[u.audio]),d=Wl("video",n,[u.video]),h=Wl("video",n,[u.video,u.audio]);return o?!a&&u.video?[d,c]:a||u.video?[h,c]:[c,c]:u.video?[h]:[c]},Xl=function(t){var e={type:"",parameters:{}},n=t.trim().split(";");return e.type=n.shift().trim(),n.forEach((function(t){var n=t.trim().split("=");if(n.length>1){var i=n[0].replace(/"/g,"").trim(),r=n[1].replace(/"/g,"").trim();e.parameters[i]=r}})),e},Jl=function(t){return/mp4a\.\d+.\d+/i.test(t)},Zl=function(t){return/avc1\.[\da-f]+/i.test(t)},tu=function(t,e,n){if("undefined"===typeof e||null===e||!t.length)return[];var i=Math.ceil(9e4*(e-n+3)),r=void 0;for(r=0;r<t.length;r++)if(t[r].pts>i)break;return t.slice(r)},eu=function(t,e,n){if(!e.length)return t;if(n)return e.slice();var i=e[0].pts,r=0;for(r;r<t.length;r++)if(t[r].pts>=i)break;return t.slice(0,r).concat(e)},nu=function(t,e,n,i){var r=Math.ceil(9e4*(e-i)),a=Math.ceil(9e4*(n-i)),o=t.slice(),s=t.length;while(s--)if(t[s].pts<=a)break;if(-1===s)return o;var l=s+1;while(l--)if(t[l].pts<=r)break;return l=Math.max(l,0),o.splice(l,s-l+1),o},iu=function(t,e,n){var i=null,r=null,a=0,o=[],s=[];if(!t&&!e)return Zo.createTimeRange();if(!t)return e.buffered;if(!e)return t.buffered;if(n)return t.buffered;if(0===t.buffered.length&&0===e.buffered.length)return Zo.createTimeRange();var l=t.buffered,u=e.buffered,c=l.length;while(c--)o.push({time:l.start(c),type:"start"}),o.push({time:l.end(c),type:"end"});c=u.length;while(c--)o.push({time:u.start(c),type:"start"}),o.push({time:u.end(c),type:"end"});for(o.sort((function(t,e){return t.time-e.time})),c=0;c<o.length;c++)"start"===o[c].type?(a++,2===a&&(i=o[c].time)):"end"===o[c].type&&(a--,1===a&&(r=o[c].time)),null!==i&&null!==r&&(s.push([i,r]),i=null,r=null);return Zo.createTimeRanges(s)},ru=9e4,au=function(t,e){var n=t.addSourceBuffer(e),i=Object.create(null);i.updating=!1,i.realBuffer_=n;var r=function(t){"function"===typeof n[t]?i[t]=function(){return n[t].apply(n,arguments)}:"undefined"===typeof i[t]&&Object.defineProperty(i,t,{get:function(){return n[t]},set:function(e){return n[t]=e}})};for(var a in n)r(a);return i},ou=function(t){function e(t,n){rs(this,e);var i=ls(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Zo.EventTarget));i.timestampOffset_=0,i.pendingBuffers_=[],i.bufferUpdating_=!1,i.mediaSource_=t,i.codecs_=n,i.audioCodec_=null,i.videoCodec_=null,i.audioDisabled_=!1,i.appendAudioInitSegment_=!0,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=Zo.browser.IE_VERSION>=11;var r={remux:!1,alignGopsAtEnd:i.safeAppend_};return i.codecs_.forEach((function(t){Jl(t)?i.audioCodec_=t:Zl(t)&&(i.videoCodec_=t)})),i.transmuxer_=new Hl,i.transmuxer_.postMessage({action:"init",options:r}),i.transmuxer_.onmessage=function(t){return"data"===t.data.action?i.data_(t):"done"===t.data.action?i.done_(t):"gopInfo"===t.data.action?i.appendGopInfo_(t):"videoSegmentTimingInfo"===t.data.action?i.videoSegmentTimingInfo_(t.data.videoSegmentTimingInfo):void 0},Object.defineProperty(i,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(t){"number"===typeof t&&t>=0&&(this.timestampOffset_=t,this.appendAudioInitSegment_=!0,this.gopBuffer_.length=0,this.timeMapping_=0,this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:t}))}}),Object.defineProperty(i,"appendWindowStart",{get:function(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function(t){this.videoBuffer_&&(this.videoBuffer_.appendWindowStart=t),this.audioBuffer_&&(this.audioBuffer_.appendWindowStart=t)}}),Object.defineProperty(i,"updating",{get:function(){return!!(this.bufferUpdating_||!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.updating||this.videoBuffer_&&this.videoBuffer_.updating)}}),Object.defineProperty(i,"buffered",{get:function(){return iu(this.videoBuffer_,this.audioBuffer_,this.audioDisabled_)}}),i}return ss(e,t),as(e,[{key:"data_",value:function(t){var e=t.data.segment;e.data=new Uint8Array(e.data,t.data.byteOffset,t.data.byteLength),e.initSegment=new Uint8Array(e.initSegment.data,e.initSegment.byteOffset,e.initSegment.byteLength),Sl(this,this.mediaSource_,e),this.pendingBuffers_.push(e)}},{key:"done_",value:function(t){"closed"!==this.mediaSource_.readyState?this.processPendingSegments_():this.pendingBuffers_.length=0}},{key:"videoSegmentTimingInfo_",value:function(t){var e={start:{decode:t.start.dts/ru,presentation:t.start.pts/ru},end:{decode:t.end.dts/ru,presentation:t.end.pts/ru},baseMediaDecodeTime:t.baseMediaDecodeTime/ru};t.prependedContentDuration&&(e.prependedContentDuration=t.prependedContentDuration/ru),this.trigger({type:"videoSegmentTimingInfo",videoSegmentTimingInfo:e})}},{key:"createRealSourceBuffers_",value:function(){var t=this,e=["audio","video"];e.forEach((function(n){if(t[n+"Codec_"]&&!t[n+"Buffer_"]){var i=null;if(t.mediaSource_[n+"Buffer_"])i=t.mediaSource_[n+"Buffer_"],i.updating=!1;else{var r=n+"Codec_",a=n+'/mp4;codecs="'+t[r]+'"';i=au(t.mediaSource_.nativeMediaSource_,a),t.mediaSource_[n+"Buffer_"]=i}t[n+"Buffer_"]=i,["update","updatestart","updateend"].forEach((function(r){i.addEventListener(r,(function(){if("audio"!==n||!t.audioDisabled_){"updateend"===r&&(t[n+"Buffer_"].updating=!1);var i=e.every((function(e){return!("audio"!==e||!t.audioDisabled_)||(n===e||!t[e+"Buffer_"]||!t[e+"Buffer_"].updating)}));return i?t.trigger(r):void 0}}))}))}}))}},{key:"appendBuffer",value:function(t){if(this.bufferUpdating_=!0,this.audioBuffer_&&this.audioBuffer_.buffered.length){var e=this.audioBuffer_.buffered;this.transmuxer_.postMessage({action:"setAudioAppendStart",appendStart:e.end(e.length-1)})}this.videoBuffer_&&this.transmuxer_.postMessage({action:"alignGopsWith",gopsToAlignWith:tu(this.gopBuffer_,this.mediaSource_.player_?this.mediaSource_.player_.currentTime():null,this.timeMapping_)}),this.transmuxer_.postMessage({action:"push",data:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength},[t.buffer]),this.transmuxer_.postMessage({action:"flush"})}},{key:"appendGopInfo_",value:function(t){this.gopBuffer_=eu(this.gopBuffer_,t.data.gopInfo,this.safeAppend_)}},{key:"remove",value:function(t,e){if(this.videoBuffer_&&(this.videoBuffer_.updating=!0,this.videoBuffer_.remove(t,e),this.gopBuffer_=nu(this.gopBuffer_,t,e,this.timeMapping_)),!this.audioDisabled_&&this.audioBuffer_&&(this.audioBuffer_.updating=!0,this.audioBuffer_.remove(t,e)),Cl(t,e,this.metadataTrack_),this.inbandTextTracks_)for(var n in this.inbandTextTracks_)Cl(t,e,this.inbandTextTracks_[n])}},{key:"processPendingSegments_",value:function(){var t={video:{segments:[],bytes:0},audio:{segments:[],bytes:0},captions:[],metadata:[]};if(!this.pendingBuffers_.length)return this.trigger("updateend"),void(this.bufferUpdating_=!1);t=this.pendingBuffers_.reduce((function(t,e){var n=e.type,i=e.data,r=e.initSegment;return t[n].segments.push(i),t[n].bytes+=i.byteLength,t[n].initSegment=r,e.captions&&(t.captions=t.captions.concat(e.captions)),e.info&&(t[n].info=e.info),e.metadata&&(t.metadata=t.metadata.concat(e.metadata)),t}),t),this.videoBuffer_||this.audioBuffer_||(0===t.video.bytes&&(this.videoCodec_=null),0===t.audio.bytes&&(this.audioCodec_=null),this.createRealSourceBuffers_()),t.audio.info&&this.mediaSource_.trigger({type:"audioinfo",info:t.audio.info}),t.video.info&&this.mediaSource_.trigger({type:"videoinfo",info:t.video.info}),this.appendAudioInitSegment_&&(!this.audioDisabled_&&this.audioBuffer_&&(t.audio.segments.unshift(t.audio.initSegment),t.audio.bytes+=t.audio.initSegment.byteLength),this.appendAudioInitSegment_=!1);var e=!1;this.videoBuffer_&&t.video.bytes?(t.video.segments.unshift(t.video.initSegment),t.video.bytes+=t.video.initSegment.byteLength,this.concatAndAppendSegments_(t.video,this.videoBuffer_)):!this.videoBuffer_||!this.audioDisabled_&&this.audioBuffer_||(e=!0),kl(this,t.captions,t.metadata),!this.audioDisabled_&&this.audioBuffer_&&this.concatAndAppendSegments_(t.audio,this.audioBuffer_),this.pendingBuffers_.length=0,e&&this.trigger("updateend"),this.bufferUpdating_=!1}},{key:"concatAndAppendSegments_",value:function(t,e){var n=0,i=void 0;if(t.bytes){i=new Uint8Array(t.bytes),t.segments.forEach((function(t){i.set(t,n),n+=t.byteLength}));try{e.updating=!0,e.appendBuffer(i)}catch(r){this.mediaSource_.player_&&this.mediaSource_.player_.error({code:-3,type:"APPEND_BUFFER_ERR",message:r.message,originalError:r})}}}},{key:"abort",value:function(){this.videoBuffer_&&this.videoBuffer_.abort(),!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"reset"}),this.pendingBuffers_.length=0,this.bufferUpdating_=!1}}]),e}(Zo.EventTarget),su=function(t){function e(){rs(this,e);var t=ls(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),n=void 0;for(n in t.nativeMediaSource_=new o.a.MediaSource,t.nativeMediaSource_)n in e.prototype||"function"!==typeof t.nativeMediaSource_[n]||(t[n]=t.nativeMediaSource_[n].bind(t.nativeMediaSource_));return t.duration_=NaN,Object.defineProperty(t,"duration",{get:function(){return this.duration_===1/0?this.duration_:this.nativeMediaSource_.duration},set:function(t){this.duration_=t,t===1/0||(this.nativeMediaSource_.duration=t)}}),Object.defineProperty(t,"seekable",{get:function(){return this.duration_===1/0?Zo.createTimeRanges([[0,this.nativeMediaSource_.duration]]):this.nativeMediaSource_.seekable}}),Object.defineProperty(t,"readyState",{get:function(){return this.nativeMediaSource_.readyState}}),Object.defineProperty(t,"activeSourceBuffers",{get:function(){return this.activeSourceBuffers_}}),t.sourceBuffers=[],t.activeSourceBuffers_=[],t.updateActiveSourceBuffers_=function(){if(t.activeSourceBuffers_.length=0,1===t.sourceBuffers.length){var e=t.sourceBuffers[0];return e.appendAudioInitSegment_=!0,e.audioDisabled_=!e.audioCodec_,void t.activeSourceBuffers_.push(e)}for(var n=!1,i=!0,r=0;r<t.player_.audioTracks().length;r++){var a=t.player_.audioTracks()[r];if(a.enabled&&"main"!==a.kind){n=!0,i=!1;break}}t.sourceBuffers.forEach((function(e,r){if(e.appendAudioInitSegment_=!0,e.videoCodec_&&e.audioCodec_)e.audioDisabled_=n;else if(e.videoCodec_&&!e.audioCodec_)e.audioDisabled_=!0,i=!1;else if(!e.videoCodec_&&e.audioCodec_&&(e.audioDisabled_=r?i:!i,e.audioDisabled_))return;t.activeSourceBuffers_.push(e)}))},t.onPlayerMediachange_=function(){t.sourceBuffers.forEach((function(t){t.appendAudioInitSegment_=!0}))},t.onHlsReset_=function(){t.sourceBuffers.forEach((function(t){t.transmuxer_&&t.transmuxer_.postMessage({action:"resetCaptions"})}))},t.onHlsSegmentTimeMapping_=function(e){t.sourceBuffers.forEach((function(t){return t.timeMapping_=e.mapping}))},["sourceopen","sourceclose","sourceended"].forEach((function(t){this.nativeMediaSource_.addEventListener(t,this.trigger.bind(this))}),t),t.on("sourceopen",(function(e){var n=l.a.querySelector('[src="'+t.url_+'"]');n&&(t.player_=Zo(n.parentNode),t.player_&&(t.player_.tech_.on("hls-reset",t.onHlsReset_),t.player_.tech_.on("hls-segment-time-mapping",t.onHlsSegmentTimeMapping_),t.player_.audioTracks&&t.player_.audioTracks()&&(t.player_.audioTracks().on("change",t.updateActiveSourceBuffers_),t.player_.audioTracks().on("addtrack",t.updateActiveSourceBuffers_),t.player_.audioTracks().on("removetrack",t.updateActiveSourceBuffers_)),t.player_.on("mediachange",t.onPlayerMediachange_)))})),t.on("sourceended",(function(e){for(var n=Ml(t.duration),i=0;i<t.sourceBuffers.length;i++){var r=t.sourceBuffers[i],a=r.metadataTrack_&&r.metadataTrack_.cues;a&&a.length&&(a[a.length-1].endTime=n)}})),t.on("sourceclose",(function(t){this.sourceBuffers.forEach((function(t){t.transmuxer_&&t.transmuxer_.terminate()})),this.sourceBuffers.length=0,this.player_&&(this.player_.audioTracks&&this.player_.audioTracks()&&(this.player_.audioTracks().off("change",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("addtrack",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("removetrack",this.updateActiveSourceBuffers_)),this.player_.el_&&this.player_.off("mediachange",this.onPlayerMediachange_),this.player_.tech_&&this.player_.tech_.el_&&(this.player_.tech_.off("hls-reset",this.onHlsReset_),this.player_.tech_.off("hls-segment-time-mapping",this.onHlsSegmentTimeMapping_)))})),t}return ss(e,t),as(e,[{key:"addSeekableRange_",value:function(t,e){var n=void 0;if(this.duration!==1/0)throw n=new Error("MediaSource.addSeekableRange() can only be invoked when the duration is Infinity"),n.name="InvalidStateError",n.code=11,n;(e>this.nativeMediaSource_.duration||isNaN(this.nativeMediaSource_.duration))&&(this.nativeMediaSource_.duration=e)}},{key:"addSourceBuffer",value:function(t){var e=void 0,n=Xl(t);if(/^(video|audio)\/mp2t$/i.test(n.type)){var i=[];n.parameters&&n.parameters.codecs&&(i=n.parameters.codecs.split(","),i=zl(i),i=i.filter((function(t){return Jl(t)||Zl(t)}))),0===i.length&&(i=["avc1.4d400d","mp4a.40.2"]),e=new ou(this,i),0!==this.sourceBuffers.length&&(this.sourceBuffers[0].createRealSourceBuffers_(),e.createRealSourceBuffers_(),this.sourceBuffers[0].audioDisabled_=!0)}else e=this.nativeMediaSource_.addSourceBuffer(t);return this.sourceBuffers.push(e),e}}]),e}(Zo.EventTarget),lu=0;Zo.mediaSources={};var uu=function(t,e){var n=Zo.mediaSources[t];if(!n)throw new Error("Media Source not found (Video.js)");n.trigger({type:"sourceopen",swfId:e})},cu=function(){return!!o.a.MediaSource&&!!o.a.MediaSource.isTypeSupported&&o.a.MediaSource.isTypeSupported('video/mp4;codecs="avc1.4d400d,mp4a.40.2"')},du=function(){if(this.MediaSource={open:uu,supportsNativeMediaSources:cu},cu())return new su;throw new Error("Cannot use create a virtual MediaSource for this video")};du.open=uu,du.supportsNativeMediaSources=cu;var hu={createObjectURL:function(t){var e="blob:vjs-media-source/",n=void 0;return t instanceof su?(n=o.a.URL.createObjectURL(t.nativeMediaSource_),t.url_=n,n):t instanceof su?(n=e+lu,lu++,Zo.mediaSources[n]=t,n):(n=o.a.URL.createObjectURL(t),t.url_=n,n)}};Zo.MediaSource=du,Zo.URL=hu;var fu=Zo.EventTarget,pu=Zo.mergeOptions,gu=function(t,e){for(var n=void 0,i=pu(t,{duration:e.duration,minimumUpdatePeriod:e.minimumUpdatePeriod}),r=0;r<e.playlists.length;r++){var a=ms(i,e.playlists[r]);a?i=a:n=!0}return fs(e,(function(t,e,r,a){if(t.playlists&&t.playlists.length){var o=t.playlists[0].uri,s=ms(i,t.playlists[0]);s&&(i=s,i.mediaGroups[e][r][a].playlists[0]=i.playlists[o],n=!1)}})),n?null:i},mu=function(t){var e=t.byterange.offset+t.byterange.length-1;return t.uri+"-"+t.byterange.offset+"-"+e},vu=function(t,e){var n=Boolean(!t.map&&!e.map),i=n||Boolean(t.map&&e.map&&t.map.byterange.offset===e.map.byterange.offset&&t.map.byterange.length===e.map.byterange.length);return i&&t.uri===e.uri&&t.byterange.offset===e.byterange.offset&&t.byterange.length===e.byterange.length},yu=function(t,e){var n={};for(var i in t){var r=t[i],a=r.sidx;if(a){var o=mu(a);if(!e[o])break;var s=e[o].sidxInfo;vu(s,a)&&(n[o]=e[o])}}return n},Au=function(t,e,n,i){var r=jt(t,{manifestUri:e,clientOffset:n}),a=yu(r.playlists,i),o=a;return fs(r,(function(t,e,n,r){if(t.playlists&&t.playlists.length){var a=t.playlists;o=pu(o,yu(a,i))}})),o},bu=function(t,e,n,i,r){var a={uri:is(i.handleManifestRedirects,t.resolvedUri),byterange:t.byterange,playlist:e},o=Zo.mergeOptions(a,{responseType:"arraybuffer",headers:$s(a)});return n(o,r)},_u=function(t){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments[3];rs(this,e);var a=ls(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),o=i.withCredentials,s=void 0!==o&&o,l=i.handleManifestRedirects,u=void 0!==l&&l;if(a.hls_=n,a.withCredentials=s,a.handleManifestRedirects=u,!t)throw new Error("A non-empty playlist URL or playlist is required");return a.on("minimumUpdatePeriod",(function(){a.refreshXml_()})),a.on("mediaupdatetimeout",(function(){a.refreshMedia_(a.media().uri)})),a.state="HAVE_NOTHING",a.loadedPlaylists_={},"string"===typeof t?(a.srcUrl=t,a.sidxMapping_={},ls(a)):(a.setupChildLoader(r,t),a)}return ss(e,t),as(e,[{key:"setupChildLoader",value:function(t,e){this.masterPlaylistLoader_=t,this.childPlaylist_=e}},{key:"dispose",value:function(){this.stopRequest(),this.loadedPlaylists_={},o.a.clearTimeout(this.minimumUpdatePeriodTimeout_),o.a.clearTimeout(this.mediaRequest_),o.a.clearTimeout(this.mediaUpdateTimeout)}},{key:"hasPendingRequest",value:function(){return this.request||this.mediaRequest_}},{key:"stopRequest",value:function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}}},{key:"sidxRequestFinished_",value:function(t,e,n,i){var r=this;return function(a,o){if(r.request){if(r.request=null,a)return r.error={status:o.status,message:"DASH playlist request error at URL: "+t.uri,response:o.response,code:2},n&&(r.state=n),r.trigger("error"),i(e,null);var s=new Uint8Array(o.response),l=zt.a.parseSidx(s.subarray(8));return i(e,l)}}}},{key:"media",value:function(t){var e=this;if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"===typeof t){if(!this.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.master.playlists[t]}var i=!this.media_||t.uri!==this.media_.uri;if(i&&this.loadedPlaylists_[t.uri]&&this.loadedPlaylists_[t.uri].endList)return this.state="HAVE_METADATA",this.media_=t,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));if(i)if(this.media_&&this.trigger("mediachanging"),t.sidx){var r=void 0,a=void 0;this.masterPlaylistLoader_?(r=this.masterPlaylistLoader_.master,a=this.masterPlaylistLoader_.sidxMapping_):(r=this.master,a=this.sidxMapping_);var s=mu(t.sidx);a[s]={sidxInfo:t.sidx},this.request=bu(t.sidx,t,this.hls_.xhr,{handleManifestRedirects:this.handleManifestRedirects},this.sidxRequestFinished_(t,r,n,(function(i,r){if(!i||!r)throw new Error("failed to request sidx");a[s].sidx=r,e.haveMetadata({startingState:n,playlist:i.playlists[t.uri]})})))}else this.mediaRequest_=o.a.setTimeout(this.haveMetadata.bind(this,{startingState:n,playlist:t}),0)}},{key:"haveMetadata",value:function(t){var e=t.startingState,n=t.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.uri]=n,this.mediaRequest_=null,this.refreshMedia_(n.uri),"HAVE_MASTER"===e?this.trigger("loadedmetadata"):this.trigger("mediachange")}},{key:"pause",value:function(){this.stopRequest(),o.a.clearTimeout(this.mediaUpdateTimeout),o.a.clearTimeout(this.minimumUpdatePeriodTimeout_),"HAVE_NOTHING"===this.state&&(this.started=!1)}},{key:"load",value:function(t){var e=this;o.a.clearTimeout(this.mediaUpdateTimeout),o.a.clearTimeout(this.minimumUpdatePeriodTimeout_);var n=this.media();if(t){var i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=o.a.setTimeout((function(){return e.load()}),i)}else this.started?this.trigger("loadedplaylist"):this.start()}},{key:"parseMasterXml",value:function(){var t=jt(this.masterXml_,{manifestUri:this.srcUrl,clientOffset:this.clientOffset_,sidxMapping:this.sidxMapping_});t.uri=this.srcUrl;for(var e=0;e<t.playlists.length;e++){var n="placeholder-uri-"+e;t.playlists[e].uri=n,t.playlists[n]=t.playlists[e]}return fs(t,(function(e,n,i,r){if(e.playlists&&e.playlists.length){var a="placeholder-uri-"+n+"-"+i+"-"+r;e.playlists[0].uri=a,t.playlists[a]=e.playlists[0]}})),vs(t),ys(t),t}},{key:"start",value:function(){var t=this;this.started=!0,this.masterPlaylistLoader_?this.mediaRequest_=o.a.setTimeout(this.haveMaster_.bind(this),0):this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},(function(e,n){if(t.request){if(t.request=null,e)return t.error={status:n.status,message:"DASH playlist request error at URL: "+t.srcUrl,responseText:n.responseText,code:2},"HAVE_NOTHING"===t.state&&(t.started=!1),t.trigger("error");t.masterXml_=n.responseText,n.responseHeaders&&n.responseHeaders.date?t.masterLoaded_=Date.parse(n.responseHeaders.date):t.masterLoaded_=Date.now(),t.srcUrl=is(t.handleManifestRedirects,t.srcUrl,n),t.syncClientServerClock_(t.onClientServerClockSync_.bind(t))}}))}},{key:"syncClientServerClock_",value:function(t){var e=this,n=Ht(this.masterXml_);return null===n?(this.clientOffset_=this.masterLoaded_-Date.now(),t()):"DIRECT"===n.method?(this.clientOffset_=n.value-Date.now(),t()):void(this.request=this.hls_.xhr({uri:ns(this.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},(function(i,r){if(e.request){if(i)return e.clientOffset_=e.masterLoaded_-Date.now(),t();var a=void 0;a="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):e.masterLoaded_:Date.parse(r.responseText),e.clientOffset_=a-Date.now(),t()}})))}},{key:"haveMaster_",value:function(){this.state="HAVE_MASTER",this.mediaRequest_=null,this.masterPlaylistLoader_?this.media_||this.media(this.childPlaylist_):(this.master=this.parseMasterXml(),this.trigger("loadedplaylist"))}},{key:"onClientServerClockSync_",value:function(){var t=this;this.haveMaster_(),this.hasPendingRequest()||this.media_||this.media(this.master.playlists[0]),this.master&&this.master.minimumUpdatePeriod&&(this.minimumUpdatePeriodTimeout_=o.a.setTimeout((function(){t.trigger("minimumUpdatePeriod")}),this.master.minimumUpdatePeriod))}},{key:"refreshXml_",value:function(){var t=this;this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},(function(e,n){if(t.request){if(t.request=null,e)return t.error={status:n.status,message:"DASH playlist request error at URL: "+t.srcUrl,responseText:n.responseText,code:2},"HAVE_NOTHING"===t.state&&(t.started=!1),t.trigger("error");t.masterXml_=n.responseText,t.sidxMapping_=Au(t.masterXml_,t.srcUrl,t.clientOffset_,t.sidxMapping_);var i=t.parseMasterXml(),r=gu(t.master,i),a=t.media().sidx;if(r)if(a){var s=mu(a);if(!t.sidxMapping_[s]){var l=t.media();t.request=bu(l.sidx,l,t.hls_.xhr,{handleManifestRedirects:t.handleManifestRedirects},t.sidxRequestFinished_(l,i,t.state,(function(e,n){if(!e||!n)throw new Error("failed to request sidx on minimumUpdatePeriod");t.sidxMapping_[s].sidx=n,t.minimumUpdatePeriodTimeout_=o.a.setTimeout((function(){t.trigger("minimumUpdatePeriod")}),t.master.minimumUpdatePeriod),t.refreshMedia_(t.media().uri)})))}}else t.master=r;t.minimumUpdatePeriodTimeout_=o.a.setTimeout((function(){t.trigger("minimumUpdatePeriod")}),t.master.minimumUpdatePeriod)}}))}},{key:"refreshMedia_",value:function(t){var e=this;if(!t)throw new Error("refreshMedia_ must take a media uri");var n=void 0,i=void 0;this.masterPlaylistLoader_?(n=this.masterPlaylistLoader_.master,i=this.masterPlaylistLoader_.parseMasterXml()):(n=this.master,i=this.parseMasterXml());var r=gu(n,i);r?(this.masterPlaylistLoader_?this.masterPlaylistLoader_.master=r:this.master=r,this.media_=r.playlists[t]):(this.media_=i.playlists[t],this.trigger("playlistunchanged")),this.media().endList||(this.mediaUpdateTimeout=o.a.setTimeout((function(){e.trigger("mediaupdatetimeout")}),As(this.media(),!!r))),this.trigger("loadedplaylist")}}]),e}(fu),wu=function(t){return Zo.log.debug?Zo.log.debug.bind(Zo,"VHS:",t+" >"):function(){}};function xu(){}var Su=function(){function t(e,n,i,r){rs(this,t),this.callbacks_=[],this.pendingCallback_=null,this.timestampOffset_=0,this.mediaSource=e,this.processedAppend_=!1,this.type_=i,this.mimeType_=n,this.logger_=wu("SourceUpdater["+i+"]["+n+"]"),"closed"===e.readyState?e.addEventListener("sourceopen",this.createSourceBuffer_.bind(this,n,r)):this.createSourceBuffer_(n,r)}return as(t,[{key:"createSourceBuffer_",value:function(t,e){var n=this;this.sourceBuffer_=this.mediaSource.addSourceBuffer(t),this.logger_("created SourceBuffer"),e&&(e.trigger("sourcebufferadded"),this.mediaSource.sourceBuffers.length<2)?e.on("sourcebufferadded",(function(){n.start_()})):this.start_()}},{key:"start_",value:function(){var t=this;this.started_=!0,this.onUpdateendCallback_=function(){var e=t.pendingCallback_;t.pendingCallback_=null,t.sourceBuffer_.removing=!1,t.logger_("buffered ["+_l(t.buffered())+"]"),e&&e(),t.runCallback_()},this.sourceBuffer_.addEventListener("updateend",this.onUpdateendCallback_),this.runCallback_()}},{key:"abort",value:function(t){var e=this;this.processedAppend_&&this.queueCallback_((function(){e.sourceBuffer_.abort()}),t)}},{key:"appendBuffer",value:function(t,e){var n=this;this.processedAppend_=!0,this.queueCallback_((function(){t.videoSegmentTimingInfoCallback&&n.sourceBuffer_.addEventListener("videoSegmentTimingInfo",t.videoSegmentTimingInfoCallback),n.sourceBuffer_.appendBuffer(t.bytes)}),(function(){t.videoSegmentTimingInfoCallback&&n.sourceBuffer_.removeEventListener("videoSegmentTimingInfo",t.videoSegmentTimingInfoCallback),e()}))}},{key:"buffered",value:function(){return this.sourceBuffer_?this.sourceBuffer_.buffered:Zo.createTimeRanges()}},{key:"remove",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xu;this.processedAppend_&&this.queueCallback_((function(){n.logger_("remove ["+t+" => "+e+"]"),n.sourceBuffer_.removing=!0,n.sourceBuffer_.remove(t,e)}),i)}},{key:"updating",value:function(){return!this.sourceBuffer_||this.sourceBuffer_.updating||!!this.pendingCallback_&&this.pendingCallback_!==xu}},{key:"timestampOffset",value:function(t){var e=this;return"undefined"!==typeof t&&(this.queueCallback_((function(){e.sourceBuffer_.timestampOffset=t,e.runCallback_()})),this.timestampOffset_=t),this.timestampOffset_}},{key:"queueCallback_",value:function(t,e){this.callbacks_.push([t.bind(this),e]),this.runCallback_()}},{key:"runCallback_",value:function(){var t=void 0;!this.updating()&&this.callbacks_.length&&this.started_&&(t=this.callbacks_.shift(),this.pendingCallback_=t[1],t[0]())}},{key:"dispose",value:function(){var t=this,e=function e(){t.sourceBuffer_&&"open"===t.mediaSource.readyState&&t.sourceBuffer_.abort(),t.sourceBuffer_.removeEventListener("updateend",e)};this.sourceBuffer_.removeEventListener("updateend",this.onUpdateendCallback_),this.sourceBuffer_.removing?this.sourceBuffer_.addEventListener("updateend",e):e()}}]),t}(),Cu={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,BUFFER_LOW_WATER_LINE_RATE:1},Tu={FAILURE:2,TIMEOUT:-101,ABORTED:-102},Mu=function(t){t.forEach((function(t){t.abort()}))},ku=function(t){return{bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}},Lu=function(t){var e=t.target,n=Date.now()-e.requestTime,i={bandwidth:1/0,bytesReceived:0,roundTripTime:n||0};return i.bytesReceived=t.loaded,i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8*1e3),i},Du=function(t,e){return e.timedout?{status:e.status,message:"HLS request timed-out at URL: "+e.uri,code:Tu.TIMEOUT,xhr:e}:e.aborted?{status:e.status,message:"HLS request aborted at URL: "+e.uri,code:Tu.ABORTED,xhr:e}:t?{status:e.status,message:"HLS request errored at URL: "+e.uri,code:Tu.FAILURE,xhr:e}:null},Eu=function(t,e){return function(n,i){var r=i.response,a=Du(n,i);if(a)return e(a,t);if(16!==r.byteLength)return e({status:i.status,message:"Invalid HLS key at URL: "+i.uri,code:Tu.FAILURE,xhr:i},t);var o=new DataView(r);return t.key.bytes=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]),e(null,t)}},Bu=function(t,e,n){return function(i,r){var a=r.response,o=Du(i,r);return o?n(o,t):0===a.byteLength?n({status:r.status,message:"Empty HLS segment content at URL: "+r.uri,code:Tu.FAILURE,xhr:r},t):(t.map.bytes=new Uint8Array(r.response),e&&!e.isInitialized()&&e.init(),t.map.timescales=Vt.a.timescale(t.map.bytes),t.map.videoTrackIds=Vt.a.videoTrackIds(t.map.bytes),n(null,t))}},Iu=function(t,e,n){return function(i,r){var a=r.response,o=Du(i,r),s=void 0;return o?n(o,t):0===a.byteLength?n({status:r.status,message:"Empty HLS segment content at URL: "+r.uri,code:Tu.FAILURE,xhr:r},t):(t.stats=ku(r),t.key?t.encryptedBytes=new Uint8Array(r.response):t.bytes=new Uint8Array(r.response),e&&t.map&&t.map.bytes&&(e.isInitialized()||e.init(),s=e.parse(t.bytes,t.map.videoTrackIds,t.map.timescales),s&&s.captions&&(t.captionStreams=s.captionStreams,t.fmp4Captions=s.captions)),n(null,t))}},Ou=function(t,e,n){var i=function i(r){if(r.data.source===e.requestId){t.removeEventListener("message",i);var a=r.data.decrypted;return e.bytes=new Uint8Array(a.bytes,a.byteOffset,a.byteLength),n(null,e)}};t.addEventListener("message",i);var r=void 0;r=e.key.bytes.slice?e.key.bytes.slice():new Uint32Array(Array.prototype.slice.call(e.key.bytes)),t.postMessage(Zs({source:e.requestId,encrypted:e.encryptedBytes,key:r,iv:e.key.iv}),[e.encryptedBytes.buffer,r.buffer])},Pu=function(t,e,n){var i=0,r=!1;return function(a,o){if(!r)return a?(r=!0,Mu(t),n(a,o)):(i+=1,i===t.length?(o.endOfAllRequests=Date.now(),o.encryptedBytes?Ou(e,o,n):n(null,o)):void 0)}},Nu=function(t,e){return function(n){return t.stats=Zo.mergeOptions(t.stats,Lu(n)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),e(n,t)}},Fu=function(t,e,n,i,r,a,o){var s=[],l=Pu(s,n,o);if(r.key&&!r.key.bytes){var u=Zo.mergeOptions(e,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),c=Eu(r,l),d=t(u,c);s.push(d)}if(r.map&&!r.map.bytes){var h=Zo.mergeOptions(e,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:$s(r.map)}),f=Bu(r,i,l),p=t(h,f);s.push(p)}var g=Zo.mergeOptions(e,{uri:r.resolvedUri,responseType:"arraybuffer",headers:$s(r)}),m=Iu(r,i,l),v=t(g,m);return v.addEventListener("progress",Nu(r,a)),s.push(v),function(){return Mu(s)}},Uu=function(t,e){var n=void 0;return t?(n=o.a.getComputedStyle(t),n?n[e]:""):""},Ru=function(t,e){var n=t.slice();t.sort((function(t,i){var r=e(t,i);return 0===r?n.indexOf(t)-n.indexOf(i):r}))},ju=function(t,e){var n=void 0,i=void 0;return t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),n=n||o.a.Number.MAX_VALUE,e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||o.a.Number.MAX_VALUE,n-i},Hu=function(t,e){var n=void 0,i=void 0;return t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),n=n||o.a.Number.MAX_VALUE,e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||o.a.Number.MAX_VALUE,n===i&&t.attributes.BANDWIDTH&&e.attributes.BANDWIDTH?t.attributes.BANDWIDTH-e.attributes.BANDWIDTH:n-i},Yu=function(t,e,n,i,r){var a=t.playlists.map((function(t){var e=void 0,n=void 0,i=void 0;return e=t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width,n=t.attributes.RESOLUTION&&t.attributes.RESOLUTION.height,i=t.attributes.BANDWIDTH,i=i||o.a.Number.MAX_VALUE,{bandwidth:i,width:e,height:n,playlist:t}}));Ru(a,(function(t,e){return t.bandwidth-e.bandwidth})),a=a.filter((function(t){return!Qs.isIncompatible(t.playlist)}));var s=a.filter((function(t){return Qs.isEnabled(t.playlist)}));s.length||(s=a.filter((function(t){return!Qs.isDisabled(t.playlist)})));var l=s.filter((function(t){return t.bandwidth*Cu.BANDWIDTH_VARIANCE<e})),u=l[l.length-1],c=l.filter((function(t){return t.bandwidth===u.bandwidth}))[0];if(!1===r){var d=c||s[0]||a[0];return d?d.playlist:null}var h=l.filter((function(t){return t.width&&t.height}));Ru(h,(function(t,e){return t.width-e.width}));var f=h.filter((function(t){return t.width===n&&t.height===i}));u=f[f.length-1];var p=f.filter((function(t){return t.bandwidth===u.bandwidth}))[0],g=void 0,m=void 0,v=void 0;p||(g=h.filter((function(t){return t.width>n||t.height>i})),m=g.filter((function(t){return t.width===g[0].width&&t.height===g[0].height})),u=m[m.length-1],v=m.filter((function(t){return t.bandwidth===u.bandwidth}))[0]);var y=v||p||c||s[0]||a[0];return y?y.playlist:null},zu=function(){return Yu(this.playlists.master,this.systemBandwidth,parseInt(Uu(this.tech_.el(),"width"),10),parseInt(Uu(this.tech_.el(),"height"),10),this.limitRenditionByPlayerDimensions)},Qu=function(t){var e=t.master,n=t.currentTime,i=t.bandwidth,r=t.duration,a=t.segmentDuration,o=t.timeUntilRebuffer,s=t.currentTimeline,l=t.syncController,u=e.playlists.filter((function(t){return!Qs.isIncompatible(t)})),c=u.filter(Qs.isEnabled);c.length||(c=u.filter((function(t){return!Qs.isDisabled(t)})));var d=c.filter(Qs.hasAttribute.bind(null,"BANDWIDTH")),h=d.map((function(t){var e=l.getSyncPoint(t,r,s,n),u=e?1:2,c=Qs.estimateSegmentRequestTime(a,i,t),d=c*u-o;return{playlist:t,rebufferingImpact:d}})),f=h.filter((function(t){return t.rebufferingImpact<=0}));return Ru(f,(function(t,e){return ju(e.playlist,t.playlist)})),f.length?f[0]:(Ru(h,(function(t,e){return t.rebufferingImpact-e.rebufferingImpact})),h[0]||null)},Vu=function(){var t=this.playlists.master.playlists.filter(Qs.isEnabled);Ru(t,(function(t,e){return ju(t,e)}));var e=t.filter((function(t){return Ql(t.attributes.CODECS).videoCodec}));return e[0]||null},Wu=function(t,e,n){for(var i in n)if(!t[i]){e.trigger({type:"usage",name:"hls-608"});var r=e.textTracks().getTrackById(i);t[i]=r||e.addRemoteTextTrack({kind:"captions",id:i,label:i},!1).track}},Gu=function(t){var e=t.inbandTextTracks,n=t.captionArray,i=t.timestampOffset;if(n){var r=window.WebKitDataCue||window.VTTCue;n.forEach((function(t){var n=t.stream,a=t.startTime,o=t.endTime;e[n]&&(a+=i,o+=i,e[n].addCue(new r(a,o,t.text)))}))}},Ku=500,$u=function(t,e,n){if(!t||!e)return!1;var i=t.segments,r=n===i.length;return t.endList&&"open"===e.readyState&&r},qu=function(t){return"number"===typeof t&&isFinite(t)},Xu=function(t,e,n){return"main"===t&&e&&n?n.containsAudio||n.containsVideo?e.containsVideo&&!n.containsVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!e.containsVideo&&n.containsVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null},Ju=function(t,e,n){var i=void 0;return i=t.length&&t.start(0)>0&&t.start(0)<e?t.start(0):e-30,Math.min(i,e-n)},Zu=function(t){var e=t.segment,n=e.start,i=e.end,r=t.playlist,a=r.mediaSequence,o=r.id,s=r.segments,l=void 0===s?[]:s,u=t.mediaIndex,c=t.timeline;return["appending ["+u+"] of ["+a+", "+(a+l.length)+"] from playlist ["+o+"]","["+n+" => "+i+"] in timeline ["+c+"]"].join(" ")},tc=function(t){function e(t){rs(this,e);var n=ls(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(!t)throw new TypeError("Initialization settings are required");if("function"!==typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");return n.bandwidth=t.bandwidth,n.throughput={rate:0,count:0},n.roundTrip=NaN,n.resetStats_(),n.mediaIndex=null,n.hasPlayed_=t.hasPlayed,n.currentTime_=t.currentTime,n.seekable_=t.seekable,n.seeking_=t.seeking,n.duration_=t.duration,n.mediaSource_=t.mediaSource,n.hls_=t.hls,n.loaderType_=t.loaderType,n.startingMedia_=void 0,n.segmentMetadataTrack_=t.segmentMetadataTrack,n.goalBufferLength_=t.goalBufferLength,n.sourceType_=t.sourceType,n.inbandTextTracks_=t.inbandTextTracks,n.state_="INIT",n.checkBufferTimeout_=null,n.error_=void 0,n.currentTimeline_=-1,n.pendingSegment_=null,n.mimeType_=null,n.sourceUpdater_=null,n.xhrOptions_=null,n.activeInitSegmentId_=null,n.initSegments_={},n.cacheEncryptionKeys_=t.cacheEncryptionKeys,n.keyCache_={},"main"===n.loaderType_?n.captionParser_=new Gt.a:n.captionParser_=null,n.decrypter_=t.decrypter,n.syncController_=t.syncController,n.syncPoint_={segmentIndex:0,time:0},n.syncController_.on("syncinfoupdate",(function(){return n.trigger("syncinfoupdate")})),n.mediaSource_.addEventListener("sourceopen",(function(){return n.ended_=!1})),n.fetchAtBuffer_=!1,n.logger_=wu("SegmentLoader["+n.loaderType_+"]"),Object.defineProperty(n,"state",{get:function(){return this.state_},set:function(t){t!==this.state_&&(this.logger_(this.state_+" -> "+t),this.state_=t)}}),n}return ss(e,t),as(e,[{key:"resetStats_",value:function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0}},{key:"dispose",value:function(){this.state="DISPOSED",this.pause(),this.abort_(),this.sourceUpdater_&&this.sourceUpdater_.dispose(),this.resetStats_(),this.captionParser_&&this.captionParser_.reset()}},{key:"abort",value:function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)}},{key:"abort_",value:function(){this.pendingSegment_&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null}},{key:"error",value:function(t){return"undefined"!==typeof t&&(this.error_=t),this.pendingSegment_=null,this.error_}},{key:"endOfStream",value:function(){this.ended_=!0,this.pause(),this.trigger("ended")}},{key:"buffered_",value:function(){return this.sourceUpdater_?this.sourceUpdater_.buffered():Zo.createTimeRanges()}},{key:"initSegment",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return null;var n=tl(t),i=this.initSegments_[n];return e&&!i&&t.bytes&&(this.initSegments_[n]=i={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:t.bytes,timescales:t.timescales,videoTrackIds:t.videoTrackIds}),i||t}},{key:"segmentKey",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return null;var n=el(t),i=this.keyCache_[n];this.cacheEncryptionKeys_&&e&&!i&&t.bytes&&(this.keyCache_[n]=i={resolvedUri:t.resolvedUri,bytes:t.bytes});var r={resolvedUri:(i||t).resolvedUri};return i&&(r.bytes=i.bytes),r}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&(this.sourceUpdater_||this.mimeType_&&"INIT"===this.state)&&!this.paused()}},{key:"load",value:function(){if(this.monitorBuffer_(),this.playlist_){if(this.syncController_.setDateTimeMapping(this.playlist_),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY")}}},{key:"init_",value:function(){return this.state="READY",this.sourceUpdater_=new Su(this.mediaSource_,this.mimeType_,this.loaderType_,this.sourceBufferEmitter_),this.resetEverything(),this.monitorBuffer_()}},{key:"playlist",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t){var n=this.playlist_,i=this.pendingSegment_;this.playlist_=t,this.xhrOptions_=e,this.hasPlayed_()||(t.syncInfo={mediaSequence:t.mediaSequence,time:0});var r=null;if(n&&(n.id?r=n.id:n.uri&&(r=n.uri)),this.logger_("playlist update ["+r+" => "+(t.id||t.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(n&&n.uri===t.uri){var a=t.mediaSequence-n.mediaSequence;this.logger_("live window shift ["+a+"]"),null!==this.mediaIndex&&(this.mediaIndex-=a),i&&(i.mediaIndex-=a,i.mediaIndex>=0&&(i.segment=t.segments[i.mediaIndex])),this.syncController_.saveExpiredSegmentInfo(n,t)}else null!==this.mediaIndex&&this.resyncLoader()}}},{key:"pause",value:function(){this.checkBufferTimeout_&&(o.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}},{key:"paused",value:function(){return null===this.checkBufferTimeout_}},{key:"mimeType",value:function(t,e){this.mimeType_||(this.mimeType_=t,this.sourceBufferEmitter_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_())}},{key:"resetEverything",value:function(t){this.ended_=!1,this.resetLoader(),this.remove(0,this.duration_(),t),this.captionParser_&&this.captionParser_.clearAllCaptions(),this.trigger("reseteverything")}},{key:"resetLoader",value:function(){this.fetchAtBuffer_=!1,this.resyncLoader()}},{key:"resyncLoader",value:function(){this.mediaIndex=null,this.syncPoint_=null,this.abort()}},{key:"remove",value:function(t,e,n){if(this.sourceUpdater_&&this.sourceUpdater_.remove(t,e,n),Cl(t,e,this.segmentMetadataTrack_),this.inbandTextTracks_)for(var i in this.inbandTextTracks_)Cl(t,e,this.inbandTextTracks_[i])}},{key:"monitorBuffer_",value:function(){this.checkBufferTimeout_&&o.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=o.a.setTimeout(this.monitorBufferTick_.bind(this),1)}},{key:"monitorBufferTick_",value:function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&o.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=o.a.setTimeout(this.monitorBufferTick_.bind(this),Ku)}},{key:"fillBuffer_",value:function(){if(!this.sourceUpdater_.updating()){this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var t=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);t&&(this.isEndOfStream_(t.mediaIndex)?this.endOfStream():(t.mediaIndex!==this.playlist_.segments.length-1||"ended"!==this.mediaSource_.readyState||this.seeking_())&&(t.timeline!==this.currentTimeline_&&(this.syncController_.reset(),t.timestampOffset=t.startOfSegment,this.captionParser_&&this.captionParser_.clearAllCaptions()),this.loadSegment_(t)))}}},{key:"isEndOfStream_",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.playlist_;return $u(e,this.mediaSource_,t)&&!this.sourceUpdater_.updating()}},{key:"checkBuffer_",value:function(t,e,n,i,r,a){var o=0,s=void 0;t.length&&(o=t.end(t.length-1));var l=Math.max(0,o-r);if(!e.segments.length)return null;if(l>=this.goalBufferLength_())return null;if(!i&&l>=1)return null;if(null===a)return n=this.getSyncSegmentCandidate_(e),this.generateSegmentInfo_(e,n,null,!0);if(null!==n){e.segments[n];return s=o,this.generateSegmentInfo_(e,n+1,s,!1)}if(this.fetchAtBuffer_){var u=Qs.getMediaInfoForTime(e,o,a.segmentIndex,a.time);n=u.mediaIndex,s=u.startTime}else{var c=Qs.getMediaInfoForTime(e,r,a.segmentIndex,a.time);n=c.mediaIndex,s=c.startTime}return this.generateSegmentInfo_(e,n,s,!1)}},{key:"getSyncSegmentCandidate_",value:function(t){var e=this;if(-1===this.currentTimeline_)return 0;var n=t.segments.map((function(t,e){return{timeline:t.timeline,segmentIndex:e}})).filter((function(t){return t.timeline===e.currentTimeline_}));return n.length?n[Math.min(n.length-1,1)].segmentIndex:Math.max(t.segments.length-1,0)}},{key:"generateSegmentInfo_",value:function(t,e,n,i){if(e<0||e>=t.segments.length)return null;var r=t.segments[e];return{requestId:"segment-loader-"+Math.random(),uri:r.resolvedUri,mediaIndex:e,isSyncRequest:i,startOfSegment:n,playlist:t,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:r.timeline,duration:r.duration,segment:r}}},{key:"abortRequestEarly_",value:function(t){if(this.hls_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return!1;if(Date.now()-(t.firstBytesReceivedAt||Date.now())<1e3)return!1;var e=this.currentTime_(),n=t.bandwidth,i=this.pendingSegment_.duration,r=Qs.estimateSegmentRequestTime(i,n,this.playlist_,t.bytesReceived),a=wl(this.buffered_(),e,this.hls_.tech_.playbackRate())-1;if(r<=a)return!1;var o=Qu({master:this.hls_.playlists.master,currentTime:e,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(o){var s=r-a,l=s-o.rebufferingImpact,u=.5;return a<=gl&&(u=1),!o.playlist||o.playlist.uri===this.playlist_.uri||l<u?!1:(this.bandwidth=o.playlist.attributes.BANDWIDTH*Cu.BANDWIDTH_VARIANCE+1,this.abort(),this.trigger("earlyabort"),!0)}}},{key:"handleProgress_",value:function(t,e){this.pendingSegment_&&e.requestId===this.pendingSegment_.requestId&&!this.abortRequestEarly_(e.stats)&&this.trigger("progress")}},{key:"loadSegment_",value:function(t){this.state="WAITING",this.pendingSegment_=t,this.trimBackBuffer_(t),t.abortRequests=Fu(this.hls_.xhr,this.xhrOptions_,this.decrypter_,this.captionParser_,this.createSimplifiedSegmentObj_(t),this.handleProgress_.bind(this),this.segmentRequestFinished_.bind(this))}},{key:"trimBackBuffer_",value:function(t){var e=Ju(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);e>0&&this.remove(0,e)}},{key:"createSimplifiedSegmentObj_",value:function(t){var e=t.segment,n={resolvedUri:e.resolvedUri,byterange:e.byterange,requestId:t.requestId};if(e.key){var i=e.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);n.key=this.segmentKey(e.key),n.key.iv=i}return e.map&&(n.map=this.initSegment(e.map)),n}},{key:"segmentRequestFinished_",value:function(t,e){if(this.mediaRequests+=1,e.stats&&(this.mediaBytesTransferred+=e.stats.bytesReceived,this.mediaTransferDuration+=e.stats.roundTripTime),this.pendingSegment_){if(e.requestId===this.pendingSegment_.requestId){if(t)return this.pendingSegment_=null,this.state="READY",t.code===Tu.ABORTED?void(this.mediaRequestsAborted+=1):(this.pause(),t.code===Tu.TIMEOUT?(this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,void this.trigger("bandwidthupdate")):(this.mediaRequestsErrored+=1,this.error(t),void this.trigger("error")));this.bandwidth=e.stats.bandwidth,this.roundTrip=e.stats.roundTripTime,e.map&&(e.map=this.initSegment(e.map,!0)),e.key&&this.segmentKey(e.key,!0),this.processSegmentResponse_(e)}}else this.mediaRequestsAborted+=1}},{key:"processSegmentResponse_",value:function(t){var e=this.pendingSegment_;e.bytes=t.bytes,t.map&&(e.segment.map.bytes=t.map.bytes),e.endOfAllRequests=t.endOfAllRequests,t.fmp4Captions&&(Wu(this.inbandTextTracks_,this.hls_.tech_,t.captionStreams),Gu({inbandTextTracks:this.inbandTextTracks_,captionArray:t.fmp4Captions,timestampOffset:0}),this.captionParser_&&this.captionParser_.clearParsedCaptions()),this.handleSegment_()}},{key:"handleSegment_",value:function(){var t=this;if(this.pendingSegment_){var e=this.pendingSegment_,n=e.segment,i=this.syncController_.probeSegmentInfo(e);"undefined"===typeof this.startingMedia_&&i&&(i.containsAudio||i.containsVideo)&&(this.startingMedia_={containsAudio:i.containsAudio,containsVideo:i.containsVideo});var r=Xu(this.loaderType_,this.startingMedia_,i);if(r)return this.error({message:r,blacklistDuration:1/0}),void this.trigger("error");if(e.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");if(null!==e.timestampOffset&&e.timestampOffset!==this.sourceUpdater_.timestampOffset()){if(i&&i.segmentTimestampInfo){var a=i.segmentTimestampInfo[0].ptsTime,o=i.segmentTimestampInfo[0].dtsTime;e.timestampOffset-=a-o}this.sourceUpdater_.timestampOffset(e.timestampOffset),this.trigger("timestampoffset")}var s=this.syncController_.mappingForTimeline(e.timeline);if(null!==s&&this.trigger({type:"segmenttimemapping",mapping:s}),this.state="APPENDING",n.map){var l=tl(n.map);if(!this.activeInitSegmentId_||this.activeInitSegmentId_!==l){var u=this.initSegment(n.map);this.sourceUpdater_.appendBuffer({bytes:u.bytes},(function(){t.activeInitSegmentId_=l}))}}e.byteLength=e.bytes.byteLength,"number"===typeof n.start&&"number"===typeof n.end?this.mediaSecondsLoaded+=n.end-n.start:this.mediaSecondsLoaded+=n.duration,this.logger_(Zu(e)),this.sourceUpdater_.appendBuffer({bytes:e.bytes,videoSegmentTimingInfoCallback:this.handleVideoSegmentTimingInfo_.bind(this,e.requestId)},this.handleUpdateEnd_.bind(this))}else this.state="READY"}},{key:"handleVideoSegmentTimingInfo_",value:function(t,e){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var n=this.pendingSegment_.segment;n.videoTimingInfo||(n.videoTimingInfo={}),n.videoTimingInfo.transmuxerPrependedSeconds=e.videoSegmentTimingInfo.prependedContentDuration||0,n.videoTimingInfo.transmuxedPresentationStart=e.videoSegmentTimingInfo.start.presentation,n.videoTimingInfo.transmuxedPresentationEnd=e.videoSegmentTimingInfo.end.presentation,n.videoTimingInfo.baseMediaDecodeTime=e.videoSegmentTimingInfo.baseMediaDecodeTime}}},{key:"handleUpdateEnd_",value:function(){if(!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var t=this.pendingSegment_,e=t.segment,n=null!==this.mediaIndex;this.pendingSegment_=null,this.recordThroughput_(t),this.addSegmentMetadataCue_(t),this.state="READY",this.mediaIndex=t.mediaIndex,this.fetchAtBuffer_=!0,this.currentTimeline_=t.timeline,this.trigger("syncinfoupdate"),e.end&&this.currentTime_()-e.end>3*t.playlist.targetDuration?this.resetEverything():(n&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.isEndOfStream_(t.mediaIndex+1,t.playlist)&&this.endOfStream(),this.paused()||this.monitorBuffer_())}},{key:"recordThroughput_",value:function(t){var e=this.throughput.rate,n=Date.now()-t.endOfAllRequests+1,i=Math.floor(t.byteLength/n*8*1e3);this.throughput.rate+=(i-e)/++this.throughput.count}},{key:"addSegmentMetadataCue_",value:function(t){if(this.segmentMetadataTrack_){var e=t.segment,n=e.start,i=e.end;if(qu(n)&&qu(i)){Cl(n,i,this.segmentMetadataTrack_);var r=o.a.WebKitDataCue||o.a.VTTCue,a={custom:e.custom,dateTimeObject:e.dateTimeObject,dateTimeString:e.dateTimeString,bandwidth:t.playlist.attributes.BANDWIDTH,resolution:t.playlist.attributes.RESOLUTION,codecs:t.playlist.attributes.CODECS,byteLength:t.byteLength,uri:t.uri,timeline:t.timeline,playlist:t.playlist.uri,start:n,end:i},s=JSON.stringify(a),l=new r(n,i,s);l.value=a,this.segmentMetadataTrack_.addCue(l)}}}}]),e}(Zo.EventTarget),ec=function(t){return decodeURIComponent(escape(String.fromCharCode.apply(null,t)))},nc=new Uint8Array("\n\n".split("").map((function(t){return t.charCodeAt(0)}))),ic=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rs(this,e);var i=ls(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.mediaSource_=null,i.subtitlesTrack_=null,i}return ss(e,t),as(e,[{key:"buffered_",value:function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length)return Zo.createTimeRanges();var t=this.subtitlesTrack_.cues,e=t[0].startTime,n=t[t.length-1].startTime;return Zo.createTimeRanges([[e,n]])}},{key:"initSegment",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return null;var n=tl(t),i=this.initSegments_[n];if(e&&!i&&t.bytes){var r=nc.byteLength+t.bytes.byteLength,a=new Uint8Array(r);a.set(t.bytes),a.set(nc,t.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:a}}return i||t}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}},{key:"init_",value:function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}},{key:"track",value:function(t){return"undefined"===typeof t||(this.subtitlesTrack_=t,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}},{key:"remove",value:function(t,e){Cl(t,e,this.subtitlesTrack_)}},{key:"fillBuffer_",value:function(){var t=this;this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var e=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(e=this.skipEmptySegments_(e),e){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline)){var n=function(){t.state="READY",t.paused()||t.monitorBuffer_()};return this.syncController_.one("timestampoffset",n),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(e)}}},{key:"skipEmptySegments_",value:function(t){while(t&&t.segment.empty)t=this.generateSegmentInfo_(t.playlist,t.mediaIndex+1,t.startOfSegment+t.duration,t.isSyncRequest);return t}},{key:"handleSegment_",value:function(){var t=this;if(this.pendingSegment_&&this.subtitlesTrack_){this.state="APPENDING";var e=this.pendingSegment_,n=e.segment;if("function"!==typeof o.a.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var i=void 0,r=function(){t.subtitlesTrack_.tech_.off("vttjsloaded",i),t.error({message:"Error loading vtt.js"}),t.state="READY",t.pause(),t.trigger("error")};return i=function(){t.subtitlesTrack_.tech_.off("vttjserror",r),t.handleSegment_()},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",i),void this.subtitlesTrack_.tech_.one("vttjserror",r)}n.requested=!0;try{this.parseVTTCues_(e)}catch(Zc){return this.error({message:Zc.message}),this.state="READY",this.pause(),this.trigger("error")}if(this.updateTimeMapping_(e,this.syncController_.timelines[e.timeline],this.playlist_),e.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");e.byteLength=e.bytes.byteLength,this.mediaSecondsLoaded+=n.duration,e.cues.length&&this.remove(e.cues[0].endTime,e.cues[e.cues.length-1].endTime),e.cues.forEach((function(e){t.subtitlesTrack_.addCue(e)})),this.handleUpdateEnd_()}else this.state="READY"}},{key:"parseVTTCues_",value:function(t){var e=void 0,n=!1;"function"===typeof o.a.TextDecoder?e=new o.a.TextDecoder("utf8"):(e=o.a.WebVTT.StringDecoder(),n=!0);var i=new o.a.WebVTT.Parser(o.a,o.a.vttjs,e);if(t.cues=[],t.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=t.cues.push.bind(t.cues),i.ontimestampmap=function(e){return t.timestampmap=e},i.onparsingerror=function(t){Zo.log.warn("Error encountered when parsing cues: "+t.message)},t.segment.map){var r=t.segment.map.bytes;n&&(r=ec(r)),i.parse(r)}var a=t.bytes;n&&(a=ec(a)),i.parse(a),i.flush()}},{key:"updateTimeMapping_",value:function(t,e,n){var i=t.segment;if(e)if(t.cues.length){var r=t.timestampmap,a=r.MPEGTS/9e4-r.LOCAL+e.mapping;if(t.cues.forEach((function(t){t.startTime+=a,t.endTime+=a})),!n.syncInfo){var o=t.cues[0].startTime,s=t.cues[t.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+t.mediaIndex,time:Math.min(o,s-i.duration)}}}else i.empty=!0}}]),e}(tc),rc=function(t,e){for(var n=t.cues,i=0;i<n.length;i++){var r=n[i];if(e>=r.adStartTime&&e<=r.adEndTime)return r}return null},ac=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t.segments)for(var i=n,r=void 0,a=0;a<t.segments.length;a++){var s=t.segments[a];if(r||(r=rc(e,i+s.duration/2)),r){if("cueIn"in s){r.endTime=i,r.adEndTime=i,i+=s.duration,r=null;continue}if(i<r.endTime){i+=s.duration;continue}r.endTime+=s.duration}else if("cueOut"in s&&(r=new o.a.VTTCue(i,i+s.duration,s.cueOut),r.adStartTime=i,r.adEndTime=i+parseFloat(s.cueOut),e.addCue(r)),"cueOutCont"in s){var l=void 0,u=void 0,c=s.cueOutCont.split("/").map(parseFloat),d=us(c,2);l=d[0],u=d[1],r=new o.a.VTTCue(i,i+s.duration,""),r.adStartTime=i-l,r.adEndTime=r.adStartTime+u,e.addCue(r)}i+=s.duration}},oc=$t.a.inspect,sc=[{name:"VOD",run:function(t,e,n,i,r){if(n!==1/0){var a={time:0,segmentIndex:0};return a}return null}},{name:"ProgramDateTime",run:function(t,e,n,i,r){if(!t.datetimeToDisplayTime)return null;var a=e.segments||[],o=null,s=null;r=r||0;for(var l=0;l<a.length;l++){var u=a[l];if(u.dateTimeObject){var c=u.dateTimeObject.getTime()/1e3,d=c+t.datetimeToDisplayTime,h=Math.abs(r-d);if(null!==s&&(0===h||s<h))break;s=h,o={time:d,segmentIndex:l}}}return o}},{name:"Segment",run:function(t,e,n,i,r){var a=e.segments||[],o=null,s=null;r=r||0;for(var l=0;l<a.length;l++){var u=a[l];if(u.timeline===i&&"undefined"!==typeof u.start){var c=Math.abs(r-u.start);if(null!==s&&s<c)break;(!o||null===s||s>=c)&&(s=c,o={time:u.start,segmentIndex:l})}}return o}},{name:"Discontinuity",run:function(t,e,n,i,r){var a=null;if(r=r||0,e.discontinuityStarts&&e.discontinuityStarts.length)for(var o=null,s=0;s<e.discontinuityStarts.length;s++){var l=e.discontinuityStarts[s],u=e.discontinuitySequence+s+1,c=t.discontinuities[u];if(c){var d=Math.abs(r-c.time);if(null!==o&&o<d)break;(!a||null===o||o>=d)&&(o=d,a={time:c.time,segmentIndex:l})}}return a}},{name:"Playlist",run:function(t,e,n,i,r){if(e.syncInfo){var a={time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence};return a}return null}}],lc=function(t){function e(){rs(this,e);var t=ls(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.inspectCache_=void 0,t.timelines=[],t.discontinuities=[],t.datetimeToDisplayTime=null,t.logger_=wu("SyncController"),t}return ss(e,t),as(e,[{key:"getSyncPoint",value:function(t,e,n,i){var r=this.runStrategies_(t,e,n,i);return r.length?this.selectSyncPoint_(r,{key:"time",value:i}):null}},{key:"getExpiredTime",value:function(t,e){if(!t||!t.segments)return null;var n=this.runStrategies_(t,e,t.discontinuitySequence,0);if(!n.length)return null;var i=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return i.segmentIndex>0&&(i.time*=-1),Math.abs(i.time+Ts(t,i.segmentIndex,0))}},{key:"runStrategies_",value:function(t,e,n,i){for(var r=[],a=0;a<sc.length;a++){var o=sc[a],s=o.run(this,t,e,n,i);s&&(s.strategy=o.name,r.push({strategy:o.name,syncPoint:s}))}return r}},{key:"selectSyncPoint_",value:function(t,e){for(var n=t[0].syncPoint,i=Math.abs(t[0].syncPoint[e.key]-e.value),r=t[0].strategy,a=1;a<t.length;a++){var o=Math.abs(t[a].syncPoint[e.key]-e.value);o<i&&(i=o,n=t[a].syncPoint,r=t[a].strategy)}return this.logger_("syncPoint for ["+e.key+": "+e.value+"] chosen with strategy ["+r+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+"]"),n}},{key:"saveExpiredSegmentInfo",value:function(t,e){for(var n=e.mediaSequence-t.mediaSequence,i=n-1;i>=0;i--){var r=t.segments[i];if(r&&"undefined"!==typeof r.start){e.syncInfo={mediaSequence:t.mediaSequence+i,time:r.start},this.logger_("playlist refresh sync: [time:"+e.syncInfo.time+", mediaSequence: "+e.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}}},{key:"setDateTimeMapping",value:function(t){if(!this.datetimeToDisplayTime&&t.segments&&t.segments.length&&t.segments[0].dateTimeObject){var e=t.segments[0].dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-e}}},{key:"reset",value:function(){this.inspectCache_=void 0}},{key:"probeSegmentInfo",value:function(t){var e=t.segment,n=t.playlist,i=void 0;return i=e.map?this.probeMp4Segment_(t):this.probeTsSegment_(t),i&&this.calculateSegmentTimeMapping_(t,i)&&(this.saveDiscontinuitySyncInfo_(t),n.syncInfo||(n.syncInfo={mediaSequence:n.mediaSequence+t.mediaIndex,time:e.start})),i}},{key:"probeMp4Segment_",value:function(t){var e=t.segment,n=Vt.a.timescale(e.map.bytes),i=Vt.a.compositionStartTime(n,t.bytes);return null!==t.timestampOffset&&(t.timestampOffset-=i),{start:i,end:i+e.duration}}},{key:"probeTsSegment_",value:function(t){var e=oc(t.bytes,this.inspectCache_),n=void 0,i=void 0,r=void 0;if(!e)return null;e.video&&2===e.video.length?(this.inspectCache_=e.video[1].dts,n=e.video[0].dtsTime,i=e.video[1].dtsTime,r=e.video):e.audio&&2===e.audio.length&&(this.inspectCache_=e.audio[1].dts,n=e.audio[0].dtsTime,i=e.audio[1].dtsTime,r=e.audio);var a={segmentTimestampInfo:r,start:n,end:i,containsVideo:e.video&&2===e.video.length,containsAudio:e.audio&&2===e.audio.length};return a}},{key:"timestampOffsetForTimeline",value:function(t){return"undefined"===typeof this.timelines[t]?null:this.timelines[t].time}},{key:"mappingForTimeline",value:function(t){return"undefined"===typeof this.timelines[t]?null:this.timelines[t].mapping}},{key:"calculateSegmentTimeMapping_",value:function(t,e){var n=t.segment,i=this.timelines[t.timeline];if(null!==t.timestampOffset)i={time:t.startOfSegment,mapping:t.startOfSegment-e.start},this.timelines[t.timeline]=i,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+t.timeline+": [time: "+i.time+"] [mapping: "+i.mapping+"]"),n.start=t.startOfSegment,n.end=e.end+i.mapping;else{if(!i)return!1;n.start=e.start+i.mapping,n.end=e.end+i.mapping}return!0}},{key:"saveDiscontinuitySyncInfo_",value:function(t){var e=t.playlist,n=t.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(e.discontinuityStarts&&e.discontinuityStarts.length)for(var i=0;i<e.discontinuityStarts.length;i++){var r=e.discontinuityStarts[i],a=e.discontinuitySequence+i+1,o=r-t.mediaIndex,s=Math.abs(o);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>s){var l=void 0;l=o<0?n.start-Ts(e,t.mediaIndex,r):n.end+Ts(e,t.mediaIndex+1,r),this.discontinuities[a]={time:l,accuracy:s}}}}}]),e}(Zo.EventTarget),uc=new Pl("./decrypter-worker.worker.js",(function(t,e){var n=this;(function(){function t(t){return t.subarray(0,t.byteLength-t[t.byteLength-1])}var e=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e},o=function(){var t=[[[],[],[],[],[]],[[],[],[],[],[]]],e=t[0],n=t[1],i=e[4],r=n[4],a=void 0,o=void 0,s=void 0,l=[],u=[],c=void 0,d=void 0,h=void 0,f=void 0,p=void 0,g=void 0;for(a=0;a<256;a++)u[(l[a]=a<<1^283*(a>>7))^a]=a;for(o=s=0;!i[o];o^=c||1,s=u[s]||1)for(f=s^s<<1^s<<2^s<<3^s<<4,f=f>>8^255&f^99,i[o]=f,r[f]=o,h=l[d=l[c=l[o]]],g=16843009*h^65537*d^257*c^16843008*o,p=257*l[f]^16843008*f,a=0;a<4;a++)e[a][o]=p=p<<24^p>>>8,n[a][f]=g=g<<24^g>>>8;for(a=0;a<5;a++)e[a]=e[a].slice(0),n[a]=n[a].slice(0);return t},s=null,l=function(){function t(n){e(this,t),s||(s=o()),this._tables=[[s[0][0].slice(),s[0][1].slice(),s[0][2].slice(),s[0][3].slice(),s[0][4].slice()],[s[1][0].slice(),s[1][1].slice(),s[1][2].slice(),s[1][3].slice(),s[1][4].slice()]];var i=void 0,r=void 0,a=void 0,l=void 0,u=void 0,c=this._tables[0][4],d=this._tables[1],h=n.length,f=1;if(4!==h&&6!==h&&8!==h)throw new Error("Invalid aes key size");for(l=n.slice(0),u=[],this._key=[l,u],i=h;i<4*h+28;i++)a=l[i-1],(i%h===0||8===h&&i%h===4)&&(a=c[a>>>24]<<24^c[a>>16&255]<<16^c[a>>8&255]<<8^c[255&a],i%h===0&&(a=a<<8^a>>>24^f<<24,f=f<<1^283*(f>>7))),l[i]=l[i-h]^a;for(r=0;i;r++,i--)a=l[3&r?i:i-4],u[r]=i<=4||r<4?a:d[0][c[a>>>24]]^d[1][c[a>>16&255]]^d[2][c[a>>8&255]]^d[3][c[255&a]]}return t.prototype.decrypt=function(t,e,n,i,r,a){var o=this._key[1],s=t^o[0],l=i^o[1],u=n^o[2],c=e^o[3],d=void 0,h=void 0,f=void 0,p=o.length/4-2,g=void 0,m=4,v=this._tables[1],y=v[0],A=v[1],b=v[2],_=v[3],w=v[4];for(g=0;g<p;g++)d=y[s>>>24]^A[l>>16&255]^b[u>>8&255]^_[255&c]^o[m],h=y[l>>>24]^A[u>>16&255]^b[c>>8&255]^_[255&s]^o[m+1],f=y[u>>>24]^A[c>>16&255]^b[s>>8&255]^_[255&l]^o[m+2],c=y[c>>>24]^A[s>>16&255]^b[l>>8&255]^_[255&u]^o[m+3],m+=4,s=d,l=h,u=f;for(g=0;g<4;g++)r[(3&-g)+a]=w[s>>>24]<<24^w[l>>16&255]<<16^w[u>>8&255]<<8^w[255&c]^o[m++],d=s,s=l,l=u,u=c,c=d},t}(),u=function(){function t(){e(this,t),this.listeners={}}return t.prototype.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},t.prototype.off=function(t,e){if(!this.listeners[t])return!1;var n=this.listeners[t].indexOf(e);return this.listeners[t].splice(n,1),n>-1},t.prototype.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var n=e.length,i=0;i<n;++i)e[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=e.length,o=0;o<a;++o)e[o].apply(this,r)},t.prototype.dispose=function(){this.listeners={}},t.prototype.pipe=function(t){this.on("data",(function(e){t.push(e)}))},t}(),c=function(t){function n(){e(this,n);var i=a(this,t.call(this,u));return i.jobs=[],i.delay=1,i.timeout_=null,i}return r(n,t),n.prototype.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},n.prototype.push=function(t){this.jobs.push(t),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},n}(u),d=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},h=function(t,e,n){var i=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2),r=new l(Array.prototype.slice.call(e)),a=new Uint8Array(t.byteLength),o=new Int32Array(a.buffer),s=void 0,u=void 0,c=void 0,h=void 0,f=void 0,p=void 0,g=void 0,m=void 0,v=void 0;for(s=n[0],u=n[1],c=n[2],h=n[3],v=0;v<i.length;v+=4)f=d(i[v]),p=d(i[v+1]),g=d(i[v+2]),m=d(i[v+3]),r.decrypt(f,p,g,m,o,v),o[v]=d(o[v]^s),o[v+1]=d(o[v+1]^u),o[v+2]=d(o[v+2]^c),o[v+3]=d(o[v+3]^h),s=f,u=p,c=g,h=m;return a},f=function(){function n(i,r,a,o){e(this,n);var s=n.STEP,l=new Int32Array(i.buffer),u=new Uint8Array(i.byteLength),h=0;for(this.asyncStream_=new c,this.asyncStream_.push(this.decryptChunk_(l.subarray(h,h+s),r,a,u)),h=s;h<l.length;h+=s)a=new Uint32Array([d(l[h-4]),d(l[h-3]),d(l[h-2]),d(l[h-1])]),this.asyncStream_.push(this.decryptChunk_(l.subarray(h,h+s),r,a,u));this.asyncStream_.push((function(){o(null,t(u))}))}return n.prototype.decryptChunk_=function(t,e,n,i){return function(){var r=h(t,e,n);i.set(r,t.byteOffset)}},i(n,null,[{key:"STEP",get:function(){return 32e3}}]),n}(),p=function(t){var e={};return Object.keys(t).forEach((function(n){var i=t[n];ArrayBuffer.isView(i)?e[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:e[n]=i})),e},g=function(t){t.onmessage=function(e){var n=e.data,i=new Uint8Array(n.encrypted.bytes,n.encrypted.byteOffset,n.encrypted.byteLength),r=new Uint32Array(n.key.bytes,n.key.byteOffset,n.key.byteLength/4),a=new Uint32Array(n.iv.bytes,n.iv.byteOffset,n.iv.byteLength/4);new f(i,r,a,(function(e,i){t.postMessage(p({source:n.source,decrypted:i}),[i.buffer])}))}},m=new g(n)})()})),cc=function(t){var e=t["default"]?"main":"alternative";return t.characteristics&&t.characteristics.indexOf("public.accessibility.describes-video")>=0&&(e="main-desc"),e},dc=function(t,e){t.abort(),t.pause(),e&&e.activePlaylistLoader&&(e.activePlaylistLoader.pause(),e.activePlaylistLoader=null)},hc=function(t,e){e.activePlaylistLoader=t,t.load()},fc=function(t,e){return function(){var n=e.segmentLoaders,i=n[t],r=n.main,a=e.mediaTypes[t],o=a.activeTrack(),s=a.activeGroup(o),l=a.activePlaylistLoader;dc(i,a),s&&(s.playlistLoader?(i.resyncLoader(),hc(s.playlistLoader,a)):l&&r.resetEverything())}},pc=function(t,e){return function(){var n=e.segmentLoaders,i=n[t],r=n.main,a=e.mediaTypes[t],o=a.activeTrack(),s=a.activeGroup(o),l=a.activePlaylistLoader;dc(i,a),s&&(s.playlistLoader?l!==s.playlistLoader?(i.track&&i.track(o),i.resetEverything(),hc(s.playlistLoader,a)):hc(s.playlistLoader,a):r.resetEverything())}},gc={AUDIO:function(t,e){return function(){var n=e.segmentLoaders[t],i=e.mediaTypes[t],r=e.blacklistCurrentPlaylist;dc(n,i);var a=i.activeTrack(),o=i.activeGroup(),s=(o.filter((function(t){return t["default"]}))[0]||o[0]).id,l=i.tracks[s];if(a!==l){for(var u in Zo.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),i.tracks)i.tracks[u].enabled=i.tracks[u]===l;i.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(t,e){return function(){var n=e.segmentLoaders[t],i=e.mediaTypes[t];Zo.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),dc(n,i);var r=i.activeTrack();r&&(r.mode="disabled"),i.onTrackChanged()}}},mc={AUDIO:function(t,e,n){if(e){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[t];e.on("loadedmetadata",(function(){var t=e.media();a.playlist(t,r),(!i.paused()||t.endList&&"none"!==i.preload())&&a.load()})),e.on("loadedplaylist",(function(){a.playlist(e.media(),r),i.paused()||a.load()})),e.on("error",gc[t](t,n))}},SUBTITLES:function(t,e,n){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[t],o=n.mediaTypes[t];e.on("loadedmetadata",(function(){var t=e.media();a.playlist(t,r),a.track(o.activeTrack()),(!i.paused()||t.endList&&"none"!==i.preload())&&a.load()})),e.on("loadedplaylist",(function(){a.playlist(e.media(),r),i.paused()||a.load()})),e.on("error",gc[t](t,n))}},vc={AUDIO:function(t,e){var n=e.hls,i=e.sourceType,r=e.segmentLoaders[t],a=e.requestOptions,o=e.master.mediaGroups,s=e.mediaTypes[t],l=s.groups,u=s.tracks,c=e.masterPlaylistLoader;for(var d in o[t]&&0!==Object.keys(o[t]).length||(o[t]={main:{default:{default:!0}}}),o[t])for(var h in l[d]||(l[d]=[]),o[t][d]){var f=o[t][d][h],p=void 0;if(p=f.resolvedUri?new bs(f.resolvedUri,n,a):f.playlists&&"dash"===i?new _u(f.playlists[0],n,a,c):null,f=Zo.mergeOptions({id:h,playlistLoader:p},f),mc[t](t,f.playlistLoader,e),l[d].push(f),"undefined"===typeof u[h]){var g=new Zo.AudioTrack({id:h,kind:cc(f),enabled:!1,language:f.language,default:f["default"],label:h});u[h]=g}}r.on("error",gc[t](t,e))},SUBTITLES:function(t,e){var n=e.tech,i=e.hls,r=e.sourceType,a=e.segmentLoaders[t],o=e.requestOptions,s=e.master.mediaGroups,l=e.mediaTypes[t],u=l.groups,c=l.tracks,d=e.masterPlaylistLoader;for(var h in s[t])for(var f in u[h]||(u[h]=[]),s[t][h])if(!s[t][h][f].forced){var p=s[t][h][f],g=void 0;if("hls"===r?g=new bs(p.resolvedUri,i,o):"dash"===r&&(g=new _u(p.playlists[0],i,o,d)),p=Zo.mergeOptions({id:f,playlistLoader:g},p),mc[t](t,p.playlistLoader,e),u[h].push(p),"undefined"===typeof c[f]){var m=n.addRemoteTextTrack({id:f,kind:"subtitles",default:p["default"]&&p.autoselect,language:p.language,label:f},!1).track;c[f]=m}}a.on("error",gc[t](t,e))},"CLOSED-CAPTIONS":function(t,e){var n=e.tech,i=e.master.mediaGroups,r=e.mediaTypes[t],a=r.groups,o=r.tracks;for(var s in i[t])for(var l in a[s]||(a[s]=[]),i[t][s]){var u=i[t][s][l];if(u.instreamId.match(/CC\d/)&&(a[s].push(Zo.mergeOptions({id:l},u)),"undefined"===typeof o[l])){var c=n.addRemoteTextTrack({id:u.instreamId,kind:"captions",default:u["default"]&&u.autoselect,language:u.language,label:l},!1).track;o[l]=c}}}},yc=function(t,e){return function(n){var i=e.masterPlaylistLoader,r=e.mediaTypes[t].groups,a=i.media();if(!a)return null;var o=null;return a.attributes[t]&&(o=r[a.attributes[t]]),o=o||r.main,"undefined"===typeof n?o:null===n?null:o.filter((function(t){return t.id===n.id}))[0]||null}},Ac={AUDIO:function(t,e){return function(){var n=e.mediaTypes[t].tracks;for(var i in n)if(n[i].enabled)return n[i];return null}},SUBTITLES:function(t,e){return function(){var n=e.mediaTypes[t].tracks;for(var i in n)if("showing"===n[i].mode)return n[i];return null}}},bc=function(t){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(e){vc[e](e,t)}));var e=t.mediaTypes,n=t.masterPlaylistLoader,i=t.tech,r=t.hls;["AUDIO","SUBTITLES"].forEach((function(n){e[n].activeGroup=yc(n,t),e[n].activeTrack=Ac[n](n,t),e[n].onGroupChanged=fc(n,t),e[n].onTrackChanged=pc(n,t)}));var a=e.AUDIO.activeGroup(),o=(a.filter((function(t){return t["default"]}))[0]||a[0]).id;e.AUDIO.tracks[o].enabled=!0,e.AUDIO.onTrackChanged(),n.on("mediachange",(function(){["AUDIO","SUBTITLES"].forEach((function(t){return e[t].onGroupChanged()}))}));var s=function(){e.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"hls-audio-change"})};for(var l in i.audioTracks().addEventListener("change",s),i.remoteTextTracks().addEventListener("change",e.SUBTITLES.onTrackChanged),r.on("dispose",(function(){i.audioTracks().removeEventListener("change",s),i.remoteTextTracks().removeEventListener("change",e.SUBTITLES.onTrackChanged)})),i.clearTracks("audio"),e.AUDIO.tracks)i.audioTracks().addTrack(e.AUDIO.tracks[l])},_c=function(){var t={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(e){t[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:xu,activeTrack:xu,onGroupChanged:xu,onTrackChanged:xu}})),t},wc=120,xc=void 0,Sc=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred"],Cc=function(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]},Tc=function(t){function e(t){rs(this,e);var n=ls(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),i=t.url,r=t.handleManifestRedirects,a=t.withCredentials,o=t.tech,s=t.bandwidth,l=t.externHls,u=t.useCueTags,c=t.blacklistDuration,d=t.enableLowInitialPlaylist,h=t.sourceType,f=t.seekTo,p=t.cacheEncryptionKeys;if(!i)throw new Error("A non-empty playlist URL is required");xc=l,n.withCredentials=a,n.tech_=o,n.hls_=o.hls,n.seekTo_=f,n.sourceType_=h,n.useCueTags_=u,n.blacklistDuration=c,n.enableLowInitialPlaylist=d,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:a,handleManifestRedirects:r,timeout:null},n.mediaTypes_=_c(),n.mediaSource=new Zo.MediaSource,n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_.bind(n)),n.seekable_=Zo.createTimeRanges(),n.hasPlayed_=function(){return!1},n.syncController_=new lc(t),n.segmentMetadataTrack_=o.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new uc,n.inbandTextTracks_={};var g={hls:n.hls_,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.mediaSource.duration},hasPlayed:function(){return n.hasPlayed_()},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:s,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:p};return n.masterPlaylistLoader_="dash"===n.sourceType_?new _u(i,n.hls_,n.requestOptions_):new bs(i,n.hls_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new tc(Zo.mergeOptions(g,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),t),n.audioSegmentLoader_=new tc(Zo.mergeOptions(g,{loaderType:"audio"}),t),n.subtitleSegmentLoader_=new ic(Zo.mergeOptions(g,{loaderType:"vtt"}),t),n.setupSegmentLoaderListeners_(),Sc.forEach((function(t){n[t+"_"]=Cc.bind(n,t)})),n.logger_=wu("MPC"),n.masterPlaylistLoader_.load(),n}return ss(e,t),as(e,[{key:"setupMasterPlaylistLoaderListeners_",value:function(){var t=this;this.masterPlaylistLoader_.on("loadedmetadata",(function(){var e=t.masterPlaylistLoader_.media(),n=1.5*e.targetDuration*1e3;zs(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=n,e.endList&&"none"!==t.tech_.preload()&&(t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load()),bc({sourceType:t.sourceType_,segmentLoaders:{AUDIO:t.audioSegmentLoader_,SUBTITLES:t.subtitleSegmentLoader_,main:t.mainSegmentLoader_},tech:t.tech_,requestOptions:t.requestOptions_,masterPlaylistLoader:t.masterPlaylistLoader_,hls:t.hls_,master:t.master(),mediaTypes:t.mediaTypes_,blacklistCurrentPlaylist:t.blacklistCurrentPlaylist.bind(t)}),t.triggerPresenceUsage_(t.master(),e);try{t.setupSourceBuffers_()}catch(Zc){return Zo.log.warn("Failed to create SourceBuffers",Zc),t.mediaSource.endOfStream("decode")}t.setupFirstPlay(),!t.mediaTypes_.AUDIO.activePlaylistLoader||t.mediaTypes_.AUDIO.activePlaylistLoader.media()?t.trigger("selectedinitialmedia"):t.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",(function(){t.trigger("selectedinitialmedia")}))})),this.masterPlaylistLoader_.on("loadedplaylist",(function(){var e=t.masterPlaylistLoader_.media();if(!e){t.excludeUnsupportedVariants_();var n=void 0;return t.enableLowInitialPlaylist&&(n=t.selectInitialPlaylist()),n||(n=t.selectPlaylist()),t.initialMedia_=n,void t.masterPlaylistLoader_.media(t.initialMedia_)}if(t.useCueTags_&&t.updateAdCues_(e),t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.updateDuration(),t.tech_.paused()||(t.mainSegmentLoader_.load(),t.audioSegmentLoader_&&t.audioSegmentLoader_.load()),!e.endList){var i=function(){var e=t.seekable();0!==e.length&&t.mediaSource.addSeekableRange_(e.start(0),e.end(0))};if(t.duration()!==1/0){var r=function e(){t.duration()===1/0?i():t.tech_.one("durationchange",e)};t.tech_.one("durationchange",r)}else i()}})),this.masterPlaylistLoader_.on("error",(function(){t.blacklistCurrentPlaylist(t.masterPlaylistLoader_.error)})),this.masterPlaylistLoader_.on("mediachanging",(function(){t.mainSegmentLoader_.abort(),t.mainSegmentLoader_.pause()})),this.masterPlaylistLoader_.on("mediachange",(function(){var e=t.masterPlaylistLoader_.media(),n=1.5*e.targetDuration*1e3;zs(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=n,t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load(),t.tech_.trigger({type:"mediachange",bubbles:!0})})),this.masterPlaylistLoader_.on("playlistunchanged",(function(){var e=t.masterPlaylistLoader_.media(),n=t.stuckAtPlaylistEnd_(e);n&&(t.blacklistCurrentPlaylist({message:"Playlist no longer updating."}),t.tech_.trigger("playliststuck"))})),this.masterPlaylistLoader_.on("renditiondisabled",(function(){t.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})})),this.masterPlaylistLoader_.on("renditionenabled",(function(){t.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})}))}},{key:"triggerPresenceUsage_",value:function(t,e){var n=t.mediaGroups||{},i=!0,r=Object.keys(n.AUDIO);for(var a in n.AUDIO)for(var o in n.AUDIO[a]){var s=n.AUDIO[a][o];s.uri||(i=!1)}i&&this.tech_.trigger({type:"usage",name:"hls-demuxed"}),Object.keys(n.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"hls-webvtt"}),xc.Playlist.isAes(e)&&this.tech_.trigger({type:"usage",name:"hls-aes"}),xc.Playlist.isFmp4(e)&&this.tech_.trigger({type:"usage",name:"hls-fmp4"}),r.length&&Object.keys(n.AUDIO[r[0]]).length>1&&this.tech_.trigger({type:"usage",name:"hls-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"})}},{key:"setupSegmentLoaderListeners_",value:function(){var t=this;this.mainSegmentLoader_.on("bandwidthupdate",(function(){var e=t.selectPlaylist(),n=t.masterPlaylistLoader_.media(),i=t.tech_.buffered(),r=i.length?i.end(i.length-1)-t.tech_.currentTime():0,a=t.bufferLowWaterLine();(!n.endList||t.duration()<Cu.MAX_BUFFER_LOW_WATER_LINE||e.attributes.BANDWIDTH<n.attributes.BANDWIDTH||r>=a)&&t.masterPlaylistLoader_.media(e),t.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("progress",(function(){t.trigger("progress")})),this.mainSegmentLoader_.on("error",(function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())})),this.mainSegmentLoader_.on("syncinfoupdate",(function(){t.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(function(){t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(function(){t.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("ended",(function(){t.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(function(){t.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},wc)})),this.mainSegmentLoader_.on("reseteverything",(function(){t.tech_.trigger("hls-reset")})),this.mainSegmentLoader_.on("segmenttimemapping",(function(e){t.tech_.trigger({type:"hls-segment-time-mapping",mapping:e.mapping})})),this.audioSegmentLoader_.on("ended",(function(){t.onEndOfStream()}))}},{key:"mediaSecondsLoaded_",value:function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}},{key:"load",value:function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}},{key:"smoothQualityChange_",value:function(){var t=this.selectPlaylist();t!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(t),this.mainSegmentLoader_.resetLoader())}},{key:"fastQualityChange_",value:function(){var t=this,e=this.selectPlaylist();e!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(e),this.mainSegmentLoader_.resetEverything((function(){Zo.browser.IE_VERSION||Zo.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())})))}},{key:"play",value:function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.seekTo_(0),this.hasPlayed_()&&this.load();var t=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<t.start(0)?this.seekTo_(t.end(t.length-1)):void 0}}},{key:"setupFirstPlay",value:function(){var t=this,e=this.masterPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_())return!1;if(!e.endList){var n=this.seekable();if(!n.length)return!1;if(Zo.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",(function(){t.trigger("firstplay"),t.seekTo_(n.end(0)),t.hasPlayed_=function(){return!0}})),!1;this.trigger("firstplay"),this.seekTo_(n.end(0))}return this.hasPlayed_=function(){return!0},this.load(),!0}},{key:"handleSourceOpen_",value:function(){try{this.setupSourceBuffers_()}catch(Zc){return Zo.log.warn("Failed to create Source Buffers",Zc),this.mediaSource.endOfStream("decode")}if(this.tech_.autoplay()){var t=this.tech_.play();"undefined"!==typeof t&&"function"===typeof t.then&&t.then(null,(function(t){}))}this.trigger("sourceopen")}},{key:"onEndOfStream",value:function(){var t=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader&&(t=!this.mainSegmentLoader_.startingMedia_||this.mainSegmentLoader_.startingMedia_.containsVideo?t&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_),t){this.logger_("calling mediaSource.endOfStream()");try{this.mediaSource.endOfStream()}catch(Zc){Zo.log.warn("Failed to call media source endOfStream",Zc)}}}},{key:"stuckAtPlaylistEnd_",value:function(t){var e=this.seekable();if(!e.length)return!1;var n=this.syncController_.getExpiredTime(t,this.mediaSource.duration);if(null===n)return!1;var i=xc.Playlist.playlistEnd(t,n),r=this.tech_.currentTime(),a=this.tech_.buffered();if(!a.length)return i-r<=ml;var o=a.end(a.length-1);return o-r<=ml&&i-o<=ml}},{key:"blacklistCurrentPlaylist",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],n=void 0,i=void 0;if(n=t.playlist||this.masterPlaylistLoader_.media(),e=e||t.blacklistDuration||this.blacklistDuration,!n){this.error=t;try{return this.mediaSource.endOfStream("network")}catch(Zc){return this.trigger("error")}}var r=1===this.masterPlaylistLoader_.master.playlists.filter(Fs).length,a=this.masterPlaylistLoader_.master.playlists;return 1===a.length?(Zo.log.warn("Problem encountered with the current HLS playlist. Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(r)):(r&&(Zo.log.warn("Removing all playlists from the blacklist because the last rendition is about to be blacklisted."),a.forEach((function(t){t.excludeUntil!==1/0&&delete t.excludeUntil})),this.tech_.trigger("retryplaylist")),n.excludeUntil=Date.now()+1e3*e,this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"}),i=this.selectPlaylist(),Zo.log.warn("Problem encountered with the current HLS playlist."+(t.message?" "+t.message:"")+" Switching to another playlist."),this.masterPlaylistLoader_.media(i,r))}},{key:"pauseLoading",value:function(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}},{key:"setCurrentTime",value:function(t){var e=yl(this.tech_.buffered(),t);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?e&&e.length?t:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0}},{key:"duration",value:function(){return this.masterPlaylistLoader_?this.mediaSource?this.mediaSource.duration:xc.Playlist.duration(this.masterPlaylistLoader_.media()):0}},{key:"seekable",value:function(){return this.seekable_}},{key:"onSyncInfoUpdate_",value:function(){var t=void 0,e=void 0;if(this.masterPlaylistLoader_){var n=this.masterPlaylistLoader_.media();if(n){var i=this.syncController_.getExpiredTime(n,this.mediaSource.duration);if(null!==i&&(t=xc.Playlist.seekable(n,i),0!==t.length)){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(n=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),i=this.syncController_.getExpiredTime(n,this.mediaSource.duration),null===i)return;if(e=xc.Playlist.seekable(n,i),0===e.length)return}var r=void 0,a=void 0;this.seekable_&&this.seekable_.length&&(r=this.seekable_.end(0),a=this.seekable_.start(0)),e?e.start(0)>t.end(0)||t.start(0)>e.end(0)?this.seekable_=t:this.seekable_=Zo.createTimeRanges([[e.start(0)>t.start(0)?e.start(0):t.start(0),e.end(0)<t.end(0)?e.end(0):t.end(0)]]):this.seekable_=t,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===r&&this.seekable_.start(0)===a||(this.logger_("seekable updated ["+_l(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},{key:"updateDuration",value:function(){var t=this,e=this.mediaSource.duration,n=xc.Playlist.duration(this.masterPlaylistLoader_.media()),i=this.tech_.buffered(),r=function e(){t.logger_("Setting duration from "+t.mediaSource.duration+" => "+n);try{t.mediaSource.duration=n}catch(Zc){Zo.log.warn("Failed to set media source duration",Zc)}t.tech_.trigger("durationchange"),t.mediaSource.removeEventListener("sourceopen",e)};i.length>0&&(n=Math.max(n,i.end(i.length-1))),e!==n&&("open"!==this.mediaSource.readyState?this.mediaSource.addEventListener("sourceopen",r):r())}},{key:"dispose",value:function(){var t=this;this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),["AUDIO","SUBTITLES"].forEach((function(e){var n=t.mediaTypes_[e].groups;for(var i in n)n[i].forEach((function(t){t.playlistLoader&&t.playlistLoader.dispose()}))})),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose()}},{key:"master",value:function(){return this.masterPlaylistLoader_.master}},{key:"media",value:function(){return this.masterPlaylistLoader_.media()||this.initialMedia_}},{key:"setupSourceBuffers_",value:function(){var t=this.masterPlaylistLoader_.media(),e=void 0;if(t&&"open"===this.mediaSource.readyState){if(e=ql(this.masterPlaylistLoader_.master,t),e.length<1)return this.error="No compatible SourceBuffer configuration for the variant stream:"+t.resolvedUri,this.mediaSource.endOfStream("decode");this.configureLoaderMimeTypes_(e),this.excludeIncompatibleVariants_(t)}}},{key:"configureLoaderMimeTypes_",value:function(t){var e=t.length>1&&-1===t[0].indexOf(",")&&t[0]!==t[1]?new Zo.EventTarget:null;this.mainSegmentLoader_.mimeType(t[0],e),t[1]&&this.audioSegmentLoader_.mimeType(t[1],e)}},{key:"excludeUnsupportedVariants_",value:function(){this.master().playlists.forEach((function(t){t.attributes.CODECS&&o.a.MediaSource&&o.a.MediaSource.isTypeSupported&&!o.a.MediaSource.isTypeSupported('video/mp4; codecs="'+Vl(t.attributes.CODECS)+'"')&&(t.excludeUntil=1/0)}))}},{key:"excludeIncompatibleVariants_",value:function(t){var e=2,n=null,i=void 0;t.attributes.CODECS&&(i=Ql(t.attributes.CODECS),n=i.videoCodec,e=i.codecCount),this.master().playlists.forEach((function(t){var i={codecCount:2,videoCodec:null};t.attributes.CODECS&&(i=Ql(t.attributes.CODECS)),i.codecCount!==e&&(t.excludeUntil=1/0),i.videoCodec!==n&&(t.excludeUntil=1/0)}))}},{key:"updateAdCues_",value:function(t){var e=0,n=this.seekable();n.length&&(e=n.start(0)),ac(t,this.cueTagsTrack_,e)}},{key:"goalBufferLength",value:function(){var t=this.tech_.currentTime(),e=Cu.GOAL_BUFFER_LENGTH,n=Cu.GOAL_BUFFER_LENGTH_RATE,i=Math.max(e,Cu.MAX_GOAL_BUFFER_LENGTH);return Math.min(e+t*n,i)}},{key:"bufferLowWaterLine",value:function(){var t=this.tech_.currentTime(),e=Cu.BUFFER_LOW_WATER_LINE,n=Cu.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(e,Cu.MAX_BUFFER_LOW_WATER_LINE);return Math.min(e+t*n,i)}}]),e}(Zo.EventTarget),Mc=function(t,e,n){return function(i){var r=t.master.playlists[e],a=Ns(r),o=Fs(r);return"undefined"===typeof i?o:(i?delete r.disabled:r.disabled=!0,i===o||a||(n(),i?t.trigger("renditionenabled"):t.trigger("renditiondisabled")),i)}},kc=function t(e,n,i){rs(this,t);var r=e.masterPlaylistController_,a=e.options_.smoothQualityChange,o=a?"smooth":"fast",s=r[o+"QualityChange_"].bind(r);if(n.attributes.RESOLUTION){var l=n.attributes.RESOLUTION;this.width=l.width,this.height=l.height}this.bandwidth=n.attributes.BANDWIDTH,this.id=i,this.enabled=Mc(e.playlists,n.uri,s)},Lc=function(t){var e=t.playlists;t.representations=function(){return e.master.playlists.filter((function(t){return!Ns(t)})).map((function(e,n){return new kc(t,e,e.uri)}))}},Dc=["seeking","seeked","pause","playing","error"],Ec=function(){function t(e){var n=this;rs(this,t),this.tech_=e.tech,this.seekable=e.seekable,this.seekTo=e.seekTo,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=wu("PlaybackWatcher"),this.logger_("initialize");var i=function(){return n.monitorCurrentTime_()},r=function(){return n.techWaiting_()},a=function(){return n.cancelTimer_()},s=function(){return n.fixesBadSeeks_()};this.tech_.on("seekablechanged",s),this.tech_.on("waiting",r),this.tech_.on(Dc,a),this.tech_.on("canplay",i),this.dispose=function(){n.logger_("dispose"),n.tech_.off("seekablechanged",s),n.tech_.off("waiting",r),n.tech_.off(Dc,a),n.tech_.off("canplay",i),n.checkCurrentTimeTimeout_&&o.a.clearTimeout(n.checkCurrentTimeTimeout_),n.cancelTimer_()}}return as(t,[{key:"monitorCurrentTime_",value:function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&o.a.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=o.a.setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:"checkCurrentTime_",value:function(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&&!this.tech_.seeking()){var t=this.tech_.currentTime(),e=this.tech_.buffered();if(this.lastRecordedTime===t&&(!e.length||t+ml>=e.end(e.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&t===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):t===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=t)}}},{key:"cancelTimer_",value:function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null}},{key:"fixesBadSeeks_",value:function(){var t=this.tech_.seeking();if(!t)return!1;var e=this.seekable(),n=this.tech_.currentTime(),i=this.afterSeekableWindow_(e,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow),r=void 0;if(i){var a=e.end(e.length-1);r=a}if(this.beforeSeekableWindow_(e,n)){var o=e.start(0);r=o+ml}return"undefined"!==typeof r&&(this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+_l(e)+". Seeking to "+r+"."),this.seekTo(r),!0)}},{key:"waiting_",value:function(){if(!this.techWaiting_()){var t=this.tech_.currentTime(),e=this.tech_.buffered(),n=yl(e,t);return n.length&&t+3<=n.end(0)?(this.cancelTimer_(),this.seekTo(t),this.logger_("Stopped at "+t+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}}},{key:"techWaiting_",value:function(){var t=this.seekable(),e=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(t,e)){var n=t.end(t.length-1);return this.logger_("Fell out of live window at time "+e+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.seekTo(n),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var i=this.tech_.buffered(),r=Al(i,e);if(this.videoUnderflow_(r,i,e))return this.cancelTimer_(),this.seekTo(e),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;if(r.length>0){var a=r.start(0)-e;return this.logger_("Stopped at "+e+", setting timer for "+a+", seeking to "+r.start(0)),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*a,e),!0}return!1}},{key:"afterSeekableWindow_",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t.length)return!1;var r=t.end(t.length-1)+ml,a=!n.endList;return a&&i&&(r=t.end(t.length-1)+3*n.targetDuration),e>r}},{key:"beforeSeekableWindow_",value:function(t,e){return!!(t.length&&t.start(0)>0&&e<t.start(0)-ml)}},{key:"videoUnderflow_",value:function(t,e,n){if(0===t.length){var i=this.gapFromVideoUnderflow_(e,n);if(i)return this.logger_("Encountered a gap in video from "+i.start+" to "+i.end+". Seeking to current time "+n),!0}return!1}},{key:"skipTheGap_",value:function(t){var e=this.tech_.buffered(),n=this.tech_.currentTime(),i=Al(e,n);this.cancelTimer_(),0!==i.length&&n===t&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",t,"nextRange start:",i.start(0)),this.seekTo(i.start(0)+gl),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))}},{key:"gapFromVideoUnderflow_",value:function(t,e){for(var n=bl(t),i=0;i<n.length;i++){var r=n.start(i),a=n.end(i);if(e-r<4&&e-r>2)return{start:r,end:a}}return null}}]),t}(),Bc={errorInterval:30,getSource:function(t){var e=this.tech({IWillNotUseThisInPlugins:!0}),n=e.currentSource_;return t(n)}},Ic=function t(e,n){var i=0,r=0,a=Zo.mergeOptions(Bc,n);e.ready((function(){e.trigger({type:"usage",name:"hls-error-reload-initialized"})}));var o=function(){r&&e.currentTime(r)},s=function(t){null!==t&&void 0!==t&&(r=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",o),e.src(t),e.trigger({type:"usage",name:"hls-error-reload"}),e.play())},l=function(){if(Date.now()-i<1e3*a.errorInterval)e.trigger({type:"usage",name:"hls-error-reload-canceled"});else{if(a.getSource&&"function"===typeof a.getSource)return i=Date.now(),a.getSource.call(e,s);Zo.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}},u=function t(){e.off("loadedmetadata",o),e.off("error",l),e.off("dispose",t)},c=function(n){u(),t(e,n)};e.on("error",l),e.on("dispose",u),e.reloadSourceOnError=c},Oc=function(t){Ic(this,t)},Pc="1.11.2";Zo.use("*",(function(t){return{setSource:function(t,e){e(null,t)},setCurrentTime:function(e){return t.vhs&&t.currentSource().src===t.vhs.source_.src&&t.vhs.setCurrentTime(e),e},play:function(){t.vhs&&t.currentSource().src===t.vhs.source_.src&&t.vhs.setCurrentTime(t.tech_.currentTime())}}}));var Nc={PlaylistLoader:bs,Playlist:Qs,Decrypter:le,AsyncStream:ae,decrypt:se,utils:al,STANDARD_PLAYLIST_SELECTOR:zu,INITIAL_PLAYLIST_SELECTOR:Vu,comparePlaylistBandwidth:ju,comparePlaylistResolution:Hu,xhr:Gs()};["GOAL_BUFFER_LENGTH","MAX_GOAL_BUFFER_LENGTH","GOAL_BUFFER_LENGTH_RATE","BUFFER_LOW_WATER_LINE","MAX_BUFFER_LOW_WATER_LINE","BUFFER_LOW_WATER_LINE_RATE","BANDWIDTH_VARIANCE"].forEach((function(t){Object.defineProperty(Nc,t,{get:function(){return Zo.log.warn("using Hls."+t+" is UNSAFE be sure you know what you are doing"),Cu[t]},set:function(e){Zo.log.warn("using Hls."+t+" is UNSAFE be sure you know what you are doing"),"number"!==typeof e||e<0?Zo.log.warn("value of Hls."+t+" must be greater than or equal to 0"):Cu[t]=e}})}));var Fc="videojs-vhs",Uc=function(t){var e=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i;if(e.test(t))return"hls";var n=/^application\/dash\+xml/i;return n.test(t)?"dash":null},Rc=function(t,e){for(var n=e.media(),i=-1,r=0;r<t.length;r++)if(t[r].id===n.uri){i=r;break}t.selectedIndex_=i,t.trigger({selectedIndex:i,type:"change"})},jc=function(t,e){e.representations().forEach((function(e){t.addQualityLevel(e)})),Rc(t,e.playlists)};Nc.canPlaySource=function(){return Zo.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Hc=function(t,e,n){if(!t)return t;var i=void 0,r=void 0;if(n.mimeType_)i=e.mimeType_,r=n.mimeType_;else{var a=Xl(e.mimeType_),o=a.parameters.codecs.split(","),s=void 0,l=void 0;o.forEach((function(t){t=t.trim(),Jl(t)?s=t:Zl(t)&&(l=t)})),i=a.type+'; codecs="'+l+'"',r=a.type.replace("video","audio")+'; codecs="'+s+'"'}var u={},c=e.playlist_;for(var d in t)u[d]={audioContentType:r,videoContentType:i},c.contentProtection&&c.contentProtection[d]&&c.contentProtection[d].pssh&&(u[d].pssh=c.contentProtection[d].pssh),"string"===typeof t[d]&&(u[d].url=t[d]);return Zo.mergeOptions(t,u)},Yc=function(t){var e=t.masterPlaylistController_.mainSegmentLoader_,n=t.masterPlaylistController_.audioSegmentLoader_,i=Zo.players[t.tech_.options_.playerId];if(i.eme){var r=Hc(t.source_.keySystems,e,n);r&&(i.currentSource().keySystems=r,11!==Zo.browser.IE_VERSION&&i.eme.initializeMediaKeys&&i.eme.initializeMediaKeys())}},zc=function(){if(!window.localStorage)return null;var t=window.localStorage.getItem(Fc);if(!t)return null;try{return JSON.parse(t)}catch(Zc){return null}},Qc=function(t){if(!window.localStorage)return!1;var e=zc();e=e?Zo.mergeOptions(e,t):t;try{window.localStorage.setItem(Fc,JSON.stringify(e))}catch(Zc){return!1}return e};Nc.supportsNativeHls=function(){var t=l.a.createElement("video");if(!Zo.getTech("Html5").isSupported())return!1;var e=["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];return e.some((function(e){return/maybe|probably/i.test(t.canPlayType(e))}))}(),Nc.supportsNativeDash=function(){return!!Zo.getTech("Html5").isSupported()&&/maybe|probably/i.test(l.a.createElement("video").canPlayType("application/dash+xml"))}(),Nc.supportsTypeNatively=function(t){return"hls"===t?Nc.supportsNativeHls:"dash"===t&&Nc.supportsNativeDash},Nc.isSupported=function(){return Zo.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Vc=Zo.getComponent("Component"),Wc=function(t){function e(t,n,i){rs(this,e);var r=ls(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,i.hls));if(n.options_&&n.options_.playerId){var a=Zo(n.options_.playerId);a.hasOwnProperty("hls")||Object.defineProperty(a,"hls",{get:function(){return Zo.log.warn("player.hls is deprecated. Use player.tech().hls instead."),n.trigger({type:"usage",name:"hls-player-access"}),r},configurable:!0}),a.vhs=r,a.dash=r,r.player_=a}if(r.tech_=n,r.source_=t,r.stats={},r.setOptions_(),r.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(l.a,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(function(t){var e=l.a.fullscreenElement||l.a.webkitFullscreenElement||l.a.mozFullScreenElement||l.a.msFullscreenElement;e&&e.contains(r.tech_.el())&&r.masterPlaylistController_.smoothQualityChange_()})),r.on(r.tech_,"seeking",(function(){0===this.tech_.currentTime()&&this.tech_.player_.loop()&&this.setCurrentTime(0)})),r.on(r.tech_,"error",(function(){this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()})),r.on(r.tech_,"play",r.play),r}return ss(e,t),as(e,[{key:"setOptions_",value:function(){var t=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=this.options_.handleManifestRedirects||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage="undefined"!==typeof this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!==typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!==typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var e=zc();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!==typeof this.options_.bandwidth&&(this.options_.bandwidth=Cu.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Cu.INITIAL_BANDWIDTH,["withCredentials","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys"].forEach((function(e){"undefined"!==typeof t.source_[e]&&(t.options_[e]=t.source_[e])})),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions}},{key:"src",value:function(t,e){var n=this;t&&(this.setOptions_(),this.options_.url=this.source_.src,this.options_.tech=this.tech_,this.options_.externHls=Nc,this.options_.sourceType=Uc(e),this.options_.seekTo=function(t){n.tech_.setCurrentTime(t),n.setCurrentTime(t)},this.masterPlaylistController_=new Tc(this.options_),this.playbackWatcher_=new Ec(Zo.mergeOptions(this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()}})),this.masterPlaylistController_.on("error",(function(){var t=Zo.players[n.tech_.options_.playerId];t.error(n.masterPlaylistController_.error)})),this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):Nc.STANDARD_PLAYLIST_SELECTOR.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Nc.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(t){this.masterPlaylistController_.selectPlaylist=t.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=t,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=t,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var t=1/(this.bandwidth||1),e=void 0;e=this.throughput>0?1/this.throughput:0;var n=Math.floor(1/(t+e));return n},set:function(){Zo.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},buffered:{get:function(){return xl(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return xl(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",(function(){n.options_.useBandwidthFromLocalStorage&&Qc({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})})),this.masterPlaylistController_.on("selectedinitialmedia",(function(){Lc(n),Yc(n)})),this.on(this.masterPlaylistController_,"progress",(function(){this.tech_.trigger("progress")})),this.tech_.ready((function(){return n.setupQualityLevels_()})),this.tech_.el()&&this.tech_.src(Zo.URL.createObjectURL(this.masterPlaylistController_.mediaSource)))}},{key:"setupQualityLevels_",value:function(){var t=this,e=Zo.players[this.tech_.options_.playerId];e&&e.qualityLevels&&(this.qualityLevels_=e.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){jc(t.qualityLevels_,t)})),this.playlists.on("mediachange",(function(){Rc(t.qualityLevels_,t.playlists)})))}},{key:"play",value:function(){this.masterPlaylistController_.play()}},{key:"setCurrentTime",value:function(t){this.masterPlaylistController_.setCurrentTime(t)}},{key:"duration",value:function(){return this.masterPlaylistController_.duration()}},{key:"seekable",value:function(){return this.masterPlaylistController_.seekable()}},{key:"dispose",value:function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.hls&&delete this.tech_.hls,os(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"dispose",this).call(this)}},{key:"convertToProgramTime",value:function(t,e){return fl({playlist:this.masterPlaylistController_.media(),time:t,callback:e})}},{key:"seekToProgramTime",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;return pl({programTime:t,playlist:this.masterPlaylistController_.media(),retryCount:i,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:e})}}]),e}(Vc),Gc={name:"videojs-http-streaming",VERSION:Pc,canHandleSource:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Zo.mergeOptions(Zo.options,e);return Gc.canPlayType(t.type,n)},handleSource:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Zo.mergeOptions(Zo.options,n);return e.hls=new Wc(t,e,i),e.hls.xhr=Gs(),e.hls.src(t.src,t.type),e.hls},canPlayType:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Zo.mergeOptions(Zo.options,e),i=n.hls.overrideNative,r=Uc(t),a=r&&(!Nc.supportsTypeNatively(r)||i);return a?"maybe":""}};"undefined"!==typeof Zo.MediaSource&&"undefined"!==typeof Zo.URL||(Zo.MediaSource=du,Zo.URL=hu),du.supportsNativeMediaSources()&&Zo.getTech("Html5").registerSourceHandler(Gc,0),Zo.HlsHandler=Wc,Zo.HlsSourceHandler=Gc,Zo.Hls=Nc,Zo.use||Zo.registerComponent("Hls",Nc),Zo.options.hls=Zo.options.hls||{},Zo.registerPlugin?Zo.registerPlugin("reloadSourceOnError",Oc):Zo.plugin("reloadSourceOnError",Oc);var Kc=Zo,$c={components:{},props:{videoUrl:{type:String,default:function(){return""}},videoLogoUrl:{type:String,default:function(){return""}},width:{type:String,default:function(){return"100%"}},height:{type:String,default:function(){return"100%"}},controls:{type:Boolean,default:function(){return!0}},autoplay:{type:Boolean,default:function(){return!1}},playerTime:{type:Number,default:function(){return 0}},loop:{type:Boolean,default:function(){return!1}},preload:{type:String,default:function(){return"auto"}},onTimeUpdate:{type:Function,default:function(){}}},data:function(){return{fluid:!0,videPlay:{}}},computed:{},watch:{},created:function(){Kc.options.flash.swf="videojs/video-js.swf"},beforeDestroy:function(){this.videPlay.dispose()},mounted:function(){var t=this;this.videPlay=Kc("my-video",{},(function(){var e=this;this.on("loadeddata",(function(){e.currentTime(t.playerTime)})),this.on("timeupdate",(function(){t.onTimeUpdate(e.currentTime())}))}))},methods:{}},qc=$c,Xc=n("2877"),Jc=Object(Xc["a"])(qc,i,r,!1,null,"8eff8772",null);e["a"]=Jc.exports},e074:function(t,e,n){"use strict";n("ee98")},e0b8:function(t,e,n){"use strict";var i=n("7726"),r=n("5ca1"),a=n("2aba"),o=n("dcbc"),s=n("67ab"),l=n("4a59"),u=n("f605"),c=n("d3f4"),d=n("79e5"),h=n("5cc5"),f=n("7f20"),p=n("5dbc");t.exports=function(t,e,n,g,m,v){var y=i[t],A=y,b=m?"set":"add",_=A&&A.prototype,w={},x=function(t){var e=_[t];a(_,t,"delete"==t||"has"==t?function(t){return!(v&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!c(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof A&&(v||_.forEach&&!d((function(){(new A).entries().next()})))){var S=new A,C=S[b](v?{}:-0,1)!=S,T=d((function(){S.has(1)})),M=h((function(t){new A(t)})),k=!v&&d((function(){var t=new A,e=5;while(e--)t[b](e,e);return!t.has(-0)}));M||(A=e((function(e,n){u(e,A,t);var i=p(new y,e,A);return void 0!=n&&l(n,m,i[b],i),i})),A.prototype=_,_.constructor=A),(T||k)&&(x("delete"),x("has"),m&&x("get")),(k||C)&&x(b),v&&_.clear&&delete _.clear}else A=g.getConstructor(e,t,m,b),o(A.prototype,n),s.NEED=!0;return f(A,t),w[t]=A,r(r.G+r.W+r.F*(A!=y),w),v||g.setStrong(A,t,m),A}},e0c5:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"},i=t.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(t){return t.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(t,e){return 12===t&&(t=0),"રાત"===e?t<4?t:t+12:"સવાર"===e?t:"બપોર"===e?t>=10?t:t+12:"સાંજ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"રાત":t<10?"સવાર":t<17?"બપોર":t<20?"સાંજ":"રાત"},week:{dow:0,doy:6}});return i}))},e0de:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"date_table_tree",staticStyle:{display:"flex"}},[e("div",{staticClass:"date_table_tree_border"},[t._t("tree-tabs"),t.treeData.length?e("giant-tree",{attrs:{nodes:t.treeData},on:{"on-created":t.onTreeCreated,"on-click":t.onTreeNodeClick},scopedSlots:t._u([t.noContextMenu?null:{key:"context-menu",fn:function(n){return[t._t("context-menu",(function(){return[e("ul",[e("li",{key:"addBtn",on:{click:function(e){return t.addMenu(n.treeId,n.contextNode)}}},[t._v("新增子菜单")]),"0"!==n.contextNode.id?e("li",{key:"editBtn",on:{click:function(e){return t.editMenu(n.treeId,n.contextNode)}}},[t._v("编辑菜单")]):t._e(),"0"!==n.contextNode.id?e("li",{key:"delBtn",on:{click:function(e){return t.delMenu(n.treeId,n.contextNode)}}},[t._v("删除菜单")]):t._e()])]}),{treeId:n.ztreeId,contextNode:n.contextNode})]}}],null,!0)}):t.noContextMenu?t._e():e("div",{staticClass:"date_table_tree_btn"},[e("el-button",{attrs:{plain:"",icon:"el-icon-plus"},on:{click:t.addMenu}},[t._v("新增")])],1)],2),t.dataTableShow?e("data-table",{ref:"dataTable",staticStyle:{flex:"1"},attrs:{"module-info":t.moduleInfo,"tb-columns":t.tbColumns,"toolbar-btns":t.toolbarBtns,"on-selected-rows-change":t.selectedRowsChange,"on-list-data-before-load":t.onListDataBeforeLoad,"on-list-data-loaded":t.onListDataLoaded,"on-cell-click":t.onCellClick,"on-delete-successed":t.onDeleteSuccessed}},[e("template",{slot:"toolbarLeft-slotLeft"},[t._t("toolbarLeft-slotLeft")],2)],2):t._e()],1)},r=[],a={components:{},props:{moduleInfo:{type:Object,default:function(){return{}}},onCellClick:{type:Function,default:null},tbColumns:{type:Array,default:function(){return[]}},toolbarBtns:{type:Array,default:function(){return[]}},onListDataBeforeLoad:{type:Function,default:function(){return null}},onListDataLoaded:{type:Function,default:function(){return null}},onDeleteSuccessed:{type:Function,default:function(){return null}},treeRoot:{type:[Boolean,String],default:function(){return!1}},querydataUrl:{type:String,default:function(){return""}},activeTreeNode:{type:Object,default:function(){return{}}},noContextMenu:{type:Boolean,default:function(){return!1}}},data:function(){return{array:[],loginUser:this.$store.getters.loginUser,treeRootList:[],activeNode:null,dataTableShow:!0,tree:null,treeNode:null,treeData:[],zbNum:0,zzNum:0}},computed:{},watch:{treeRoot:{immediate:!0,handler:function(t){if(t)if(!0===t){var e=this.loginUser.orgName;this.treeRootList=[{id:"0",name:e,open:!0,title:e}]}else this.treeRootList=t;else this.treeRootList=[]}},activeTreeNode:{handler:function(t){t?this.activeNode?t.id!==this.activeNode.id&&(this.activeNode=t):this.activeNode=t:this.activeNode=null}},activeNode:{handler:function(t){this.setTreeSelect()}}},created:function(){this.getTreeData(),this.$bus.on("refreshTreeData",this.getTreeData)},beforeDestroy:function(){this.$bus.off("refreshTreeData",this.getTreeData)},mounted:function(){},methods:{getTreeData:function(){var t=this,e=this.querydataUrl||this.moduleInfo.querydataUrl;if(!e){var n=this.moduleInfo.listDataUrl,i=/^(\/?\w+\/\w+\/)(.*)/;e=n.replace(i,"$1querydata")}this.$http({url:e,method:"POST",data:[{compare:"=",field:"orgCode",merge:!0,value:this.loginUser.orgCode}]}).then((function(e){if("success"!==e.code)return t.$alert(e.message,"操作提示",{type:"error"});var n=[].concat(t.treeRootList,e.body.listdata);t.treeData=t.treeDataAdapter(n),t.treeData.length||(t.zTree=null,t.$emit("activeTreeNodeChange",null),t.$emit("active-tree-node-change",null))}))},treeDataAdapter:function(t){return this.$vnode.context.treeDataAdapter?this.$vnode.context.treeDataAdapter(t):(t.forEach((function(t){t.pId=t.parentId||"0",t.title=t.name,t.open=!0})),t)},onTreeCreated:function(t){this.zTree=t,this.$vnode.context.onTreeCreated?this.$vnode.context.onTreeCreated(t):this.setTreeSelect()},setTreeSelect:function(){var t=this,e=this.zTree?this.zTree.getNodes():[];console.log("123"),e.length<=0||(null===this.activeNode?this.onTreeNodeClick("",e[0].id,e[0]):this.treeData.some((function(e){return e.id===t.activeNode.id}))?this.zTree.selectNode(this.activeNode):this.onTreeNodeClick("",e[0].id,e[0]))},onTreeNodeClick:function(t,e,n){var i=this;this.dataTableShow=!1,this.activeNode=n||null,this.$emit("activeTreeNodeChange",this.activeNode),this.$emit("active-tree-node-change",this.activeNode),this.$nextTick((function(){i.dataTableShow=!0}))},addMenu:function(t,e){this.onTreeNodeClick("",t,e),this.$vnode.context.addMenu?this.$vnode.context.addMenu(t,e):this.$bus.emit("openBusiform",this.moduleInfo,null,1)},editMenu:function(t,e){this.$vnode.context.editMenu?this.$vnode.context.editMenu(t,e):this.$bus.emit("openBusiform",this.moduleInfo,e,1)},delMenu:function(t,e){this.$refs.dataTable.deleteIds(e,null,null,1)},selectedRowsChange:function(t){var e=this;this.array=[],this.$vnode.context.rowsSelected&&(this.$vnode.context.rowsSelected=t),t.forEach((function(t){e.array.push(t.id)}))},getArray:function(){return this.array}}},o=a,s=(n("e8e6"),n("2877")),l=Object(s["a"])(o,i,r,!1,null,"18249695",null);e["a"]=l.exports},e0e0:function(t,e,n){"use strict";n("fe06")},e0f4:function(t,e,n){var i=n("10a3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("2485607c",i,!0,{sourceMap:!1,shadowMode:!1})},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e13d:function(t,e,n){var i=n("5d1e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("9f031ce6",i,!0,{sourceMap:!1,shadowMode:!1})},e193:function(t,e,n){(function(){"undefined"==typeof Math.sgn&&(Math.sgn=function(t){return 0==t?0:t>0?1:-1});var t={subtract:function(t,e){return{x:t.x-e.x,y:t.y-e.y}},dotProduct:function(t,e){return t.x*e.x+t.y*e.y},square:function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},scale:function(t,e){return{x:t.x*e,y:t.y*e}}},n=64,i=Math.pow(2,-n-1),r=function(e,n){for(var i=[],r=o(e,n),a=n.length-1,l=2*a-1,u=s(r,l,i,0),c=t.subtract(e,n[0]),h=t.square(c),f=0,p=0;p<u;p++){c=t.subtract(e,d(n,a,i[p],null,null));var g=t.square(c);g<h&&(h=g,f=i[p])}return c=t.subtract(e,n[a]),g=t.square(c),g<h&&(h=g,f=1),{location:f,distance:h}},a=function(t,e){var n=r(t,e);return{point:d(e,e.length-1,n.location,null,null),location:n.location}},o=function(e,n){for(var i=n.length-1,r=2*i-1,a=[],o=[],s=[],l=[],u=[[1,.6,.3,.1],[.4,.6,.6,.4],[.1,.3,.6,1]],c=0;c<=i;c++)a[c]=t.subtract(n[c],e);for(c=0;c<=i-1;c++)o[c]=t.subtract(n[c+1],n[c]),o[c]=t.scale(o[c],3);for(var d=0;d<=i-1;d++)for(var h=0;h<=i;h++)s[d]||(s[d]=[]),s[d][h]=t.dotProduct(o[d],a[h]);for(c=0;c<=r;c++)l[c]||(l[c]=[]),l[c].y=0,l[c].x=parseFloat(c)/r;for(var f=i,p=i-1,g=0;g<=f+p;g++){var m=Math.max(0,g-p),v=Math.min(g,f);for(c=m;c<=v;c++){var y=g-c;l[c+y].y+=s[y][c]*u[y][c]}}return l},s=function(t,e,i,r){var a,o,h=[],f=[],p=[],g=[];switch(l(t,e)){case 0:return 0;case 1:if(r>=n)return i[0]=(t[0].x+t[e].x)/2,1;if(u(t,e))return i[0]=c(t,e),1;break}d(t,e,.5,h,f),a=s(h,e,p,r+1),o=s(f,e,g,r+1);for(var m=0;m<a;m++)i[m]=p[m];for(m=0;m<o;m++)i[m+a]=g[m];return a+o},l=function(t,e){var n,i,r=0;n=i=Math.sgn(t[0].y);for(var a=1;a<=e;a++)n=Math.sgn(t[a].y),n!=i&&r++,i=n;return r},u=function(t,e){var n,r,a,o,s,l,u,c,d,h,f,p,g,m,v,y,A,b;l=t[0].y-t[e].y,u=t[e].x-t[0].x,c=t[0].x*t[e].y-t[e].x*t[0].y,A=b=0;for(var _=1;_<e;_++){var w=l*t[_].x+u*t[_].y+c;w>A?A=w:w<b&&(b=w)}return f=0,p=1,g=0,m=l,v=u,y=c-A,d=f*v-m*p,h=1/d,r=(p*y-v*g)*h,m=l,v=u,y=c-b,d=f*v-m*p,h=1/d,a=(p*y-v*g)*h,o=Math.min(r,a),s=Math.max(r,a),n=s-o,n<i?1:0},c=function(t,e){var n=1,i=0,r=t[e].x-t[0].x,a=t[e].y-t[0].y,o=t[0].x-0,s=t[0].y-0,l=r*i-a*n,u=1/l,c=(r*s-a*o)*u;return 0+n*c},d=function(t,e,n,i,r){for(var a=[[]],o=0;o<=e;o++)a[0][o]=t[o];for(var s=1;s<=e;s++)for(o=0;o<=e-s;o++)a[s]||(a[s]=[]),a[s][o]||(a[s][o]={}),a[s][o].x=(1-n)*a[s-1][o].x+n*a[s-1][o+1].x,a[s][o].y=(1-n)*a[s-1][o].y+n*a[s-1][o+1].y;if(null!=i)for(o=0;o<=e;o++)i[o]=a[o][0];if(null!=r)for(o=0;o<=e;o++)r[o]=a[e-o][o];return a[e][0]},h={},f=function(t){var e=h[t];if(!e){e=[];var n=function(){return function(e){return Math.pow(e,t)}},i=function(){return function(e){return Math.pow(1-e,t)}},r=function(t){return function(e){return t}},a=function(){return function(t){return t}},o=function(){return function(t){return 1-t}},s=function(t){return function(e){for(var n=1,i=0;i<t.length;i++)n*=t[i](e);return n}};e.push(new n);for(var l=1;l<t;l++){for(var u=[new r(t)],c=0;c<t-l;c++)u.push(new a);for(c=0;c<l;c++)u.push(new o);e.push(new s(u))}e.push(new i),h[t]=e}return e},p=function(t,e){for(var n=f(t.length-1),i=0,r=0,a=0;a<t.length;a++)i+=t[a].x*n[a](e),r+=t[a].y*n[a](e);return{x:i,y:r}},g=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},m=function(t){return t[0].x===t[1].x&&t[0].y===t[1].y},v=function(t,e,n){if(m(t))return{point:t[0],location:e};var i=p(t,e),r=0,a=e,o=n>0?1:-1,s=null;while(r<Math.abs(n))a+=.005*o,s=p(t,a),r+=g(s,i),i=s;return{point:s,location:a}},y=function(t){var e=(new Date).getTime();if(m(t))return 0;var n=p(t,0),i=0,r=0,a=1,o=null;while(r<1)r+=.005*a,o=p(t,r),i+=g(o,n),n=o;return console.log("length",(new Date).getTime()-e),i},A=function(t,e,n){return v(t,e,n).point},b=function(t,e,n){return v(t,e,n).location},_=function(t,e){var n=p(t,e),i=p(t.slice(0,t.length-1),e),r=i.y-n.y,a=i.x-n.x;return 0===r?1/0:Math.atan(r/a)},w=function(t,e,n){var i=v(t,e,n);return i.location>1&&(i.location=1),i.location<0&&(i.location=0),_(t,i.location)},x=function(t,e,n,i){i=null==i?0:i;var r=v(t,e,i),a=_(t,r.location),o=Math.atan(-1/a),s=n/2*Math.sin(o),l=n/2*Math.cos(o);return[{x:r.point.x+l,y:r.point.y+s},{x:r.point.x-l,y:r.point.y-s}]},S=function(t,e,n,i,r){var a=i-e,o=t-n,s=t*(e-i)+e*(n-t),l=k(r),u=[a*l[0][0]+o*l[1][0],a*l[0][1]+o*l[1][1],a*l[0][2]+o*l[1][2],a*l[0][3]+o*l[1][3]+s],c=D.apply(null,u),d=[];if(null!=c)for(var h=0;h<3;h++){var f,p=c[h],g=Math.pow(p,2),m=Math.pow(p,3),v=[l[0][0]*m+l[0][1]*g+l[0][2]*p+l[0][3],l[1][0]*m+l[1][1]*g+l[1][2]*p+l[1][3]];f=n-t!==0?(v[0]-t)/(n-t):(v[1]-e)/(i-e),p>=0&&p<=1&&f>=0&&f<=1&&d.push(v)}return d},C=function(t,e,n,i,r){var a=[];return a.push.apply(a,S(t,e,t+n,e,r)),a.push.apply(a,S(t+n,e,t+n,e+i,r)),a.push.apply(a,S(t+n,e+i,t,e+i,r)),a.push.apply(a,S(t,e+i,t,e,r)),a},T=function(t,e){var n=[];return n.push.apply(n,S(t.x,t.y,t.x+t.w,t.y,e)),n.push.apply(n,S(t.x+t.w,t.y,t.x+t.w,t.y+t.h,e)),n.push.apply(n,S(t.x+t.w,t.y+t.h,t.x,t.y+t.h,e)),n.push.apply(n,S(t.x,t.y+t.h,t.x,t.y,e)),n};function M(t,e){return[-t[0][e]+3*t[1][e]+-3*t[2][e]+t[3][e],3*t[0][e]-6*t[1][e]+3*t[2][e],-3*t[0][e]+3*t[1][e],t[0][e]]}function k(t){return[M(t,"x"),M(t,"y")]}function L(t){return t<0?-1:t>0?1:0}function D(t,e,n,i){var r,a,o=e/t,s=n/t,l=i/t,u=(3*s-Math.pow(o,2))/9,c=(9*o*s-27*l-2*Math.pow(o,3))/54,d=Math.pow(u,3)+Math.pow(c,2),h=[];if(d>=0)r=L(c+Math.sqrt(d))*Math.pow(Math.abs(c+Math.sqrt(d)),1/3),a=L(c-Math.sqrt(d))*Math.pow(Math.abs(c-Math.sqrt(d)),1/3),h[0]=-o/3+(r+a),h[1]=-o/3-(r+a)/2,h[2]=-o/3-(r+a)/2,0!==Math.abs(Math.sqrt(3)*(r-a)/2)&&(h[1]=-1,h[2]=-1);else{var f=Math.acos(c/Math.sqrt(-Math.pow(u,3)));h[0]=2*Math.sqrt(-u)*Math.cos(f/3)-o/3,h[1]=2*Math.sqrt(-u)*Math.cos((f+2*Math.PI)/3)-o/3,h[2]=2*Math.sqrt(-u)*Math.cos((f+4*Math.PI)/3)-o/3}for(var p=0;p<3;p++)(h[p]<0||h[p]>1)&&(h[p]=-1);return h}var E=this.jsBezier={distanceFromCurve:r,gradientAtPoint:_,gradientAtPointAlongCurveFrom:w,nearestPointOnCurve:a,pointOnCurve:p,pointAlongCurveFrom:A,perpendicularToCurveAt:x,locationAlongCurveFrom:b,getLength:y,lineIntersection:S,boxIntersection:C,boundingBoxIntersection:T,version:"0.9.0"};e.jsBezier=E}).call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,n=t.Biltong={version:"0.4.0"};e.Biltong=n;var i=function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=function(t,e,n){return t=i(t)?t:[t.x,t.y],e=i(e)?e:[e.x,e.y],n(t,e)},a=n.gradient=function(t,e){return r(t,e,(function(t,e){return e[0]==t[0]?e[1]>t[1]?1/0:-1/0:e[1]==t[1]?e[0]>t[0]?0:-0:(e[1]-t[1])/(e[0]-t[0])}))},o=(n.normal=function(t,e){return-1/a(t,e)},n.lineLength=function(t,e){return r(t,e,(function(t,e){return Math.sqrt(Math.pow(e[1]-t[1],2)+Math.pow(e[0]-t[0],2))}))},n.quadrant=function(t,e){return r(t,e,(function(t,e){return e[0]>t[0]||e[0]==t[0]?e[1]>t[1]?2:1:e[1]>t[1]?3:4}))}),s=(n.theta=function(t,e){return r(t,e,(function(t,e){var n=a(t,e),i=Math.atan(n),r=o(t,e);return 4!=r&&3!=r||(i+=Math.PI),i<0&&(i+=2*Math.PI),i}))},n.intersects=function(t,e){var n=t.x,i=t.x+t.w,r=t.y,a=t.y+t.h,o=e.x,s=e.x+e.w,l=e.y,u=e.y+e.h;return n<=o&&o<=i&&r<=l&&l<=a||n<=s&&s<=i&&r<=l&&l<=a||n<=o&&o<=i&&r<=u&&u<=a||n<=s&&o<=i&&r<=u&&u<=a||o<=n&&n<=s&&l<=r&&r<=u||o<=i&&i<=s&&l<=r&&r<=u||o<=n&&n<=s&&l<=a&&a<=u||o<=i&&n<=s&&l<=a&&a<=u},n.encloses=function(t,e,n){var i=t.x,r=t.x+t.w,a=t.y,o=t.y+t.h,s=e.x,l=e.x+e.w,u=e.y,c=e.y+e.h,d=function(t,e,i,r){return n?t<=e&&i>=r:t<e&&i>r};return d(i,s,r,l)&&d(a,u,o,c)},[null,[1,-1],[1,1],[-1,1],[-1,-1]]),l=[null,[-1,-1],[-1,1],[1,1],[1,-1]];n.pointOnLine=function(t,e,n){var i=a(t,e),r=o(t,e),u=n>0?s[r]:l[r],c=Math.atan(i),d=Math.abs(n*Math.sin(c))*u[1],h=Math.abs(n*Math.cos(c))*u[0];return{x:t.x+h,y:t.y+d}},n.perpendicularLineTo=function(t,e,n){var i=a(t,e),r=Math.atan(-1/i),o=n/2*Math.sin(r),s=n/2*Math.cos(r);return[{x:e.x+s,y:e.y+o},{x:e.x-s,y:e.y-o}]}}.call("undefined"!==typeof window?window:this),function(){"use strict";function t(t,e,n,i,r,a,o,s){return new Touch({target:e,identifier:N(),pageX:n,pageY:i,screenX:r,screenY:a,clientX:o||r,clientY:s||a})}function n(){var t=[];return Array.prototype.push.apply(t,arguments),t.item=function(t){return this[t]},t}function i(e,i,r,a,o,s,l,u){return n(t.apply(null,arguments))}var r=this,a=function(t,e,n){n=n||t.parentNode;for(var i=n.querySelectorAll(e),r=0;r<i.length;r++)if(i[r]===t)return!0;return!1},o=function(t){return"string"==typeof t||t.constructor===String?document.getElementById(t):t},s=function(t){return t.srcElement||t.target},l=function(t,e,n,i){if(i){if("undefined"!==typeof t.path&&t.path.indexOf)return{path:t.path,end:t.path.indexOf(n)};var r={path:[],end:-1},a=function(t){r.path.push(t),t===n?r.end=r.path.length-1:null!=t.parentNode&&a(t.parentNode)};return a(e),r}return{path:[e],end:1}},u=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]==e)break;n<t.length&&t.splice(n,1)},c=1,d=function(t,e,n){var i=c++;return t.__ta=t.__ta||{},t.__ta[e]=t.__ta[e]||{},t.__ta[e][i]=n,n.__tauid=i,i},h=function(t,e,n){if(t.__ta&&t.__ta[e]&&delete t.__ta[e][n.__tauid],n.__taExtra){for(var i=0;i<n.__taExtra.length;i++)O(t,n.__taExtra[i][0],n.__taExtra[i][1]);n.__taExtra.length=0}n.__taUnstore&&n.__taUnstore()},f=function(t,e,n,i){if(null==t)return n;var r=t.split(","),o=function(i){o.__tauid=n.__tauid;var u=s(i),c=u,d=l(i,u,e,null!=t);if(-1!=d.end)for(var h=0;h<d.end;h++){c=d.path[h];for(var f=0;f<r.length;f++)a(c,r[f],e)&&n.apply(c,arguments)}};return p(n,i,o),o},p=function(t,e,n){t.__taExtra=t.__taExtra||[],t.__taExtra.push([e,n])},g=function(t,e,n,i){if(_&&x[e]){var r=f(i,t,n,x[e]);I(t,x[e],r,n)}"focus"===e&&null==t.getAttribute("tabindex")&&t.setAttribute("tabindex","1"),I(t,e,f(i,t,n,e),n)},m=function(t,e,n,i){if(null==t.__taSmartClicks){var r=function(e){t.__tad=M(e)},a=function(e){t.__tau=M(e)},o=function(e){if(t.__tad&&t.__tau&&t.__tad[0]===t.__tau[0]&&t.__tad[1]===t.__tau[1])for(var n=0;n<t.__taSmartClicks.length;n++)t.__taSmartClicks[n].apply(s(e),[e])};g(t,"mousedown",r,i),g(t,"mouseup",a,i),g(t,"click",o,i),t.__taSmartClicks=[]}t.__taSmartClicks.push(n),n.__taUnstore=function(){u(t.__taSmartClicks,n)}},v={tap:{touches:1,taps:1},dbltap:{touches:1,taps:2},contextmenu:{touches:2,taps:1}},y=function(t,e){return function(n,i,r,o){if("contextmenu"==i&&w)g(n,i,r,o);else{if(null==n.__taTapHandler){var c=n.__taTapHandler={tap:[],dbltap:[],contextmenu:[],down:!1,taps:0,downSelectors:[]},d=function(i){for(var r=s(i),u=l(i,r,n,null!=o),d=!1,h=0;h<u.end;h++){if(d)return;r=u.path[h];for(var g=0;g<c.downSelectors.length;g++)if(null==c.downSelectors[g]||a(r,c.downSelectors[g],n)){c.down=!0,setTimeout(f,t),setTimeout(p,e),d=!0;break}}},h=function(t){if(c.down){var e,i,r=s(t);c.taps++;var o=B(t);for(var u in v)if(v.hasOwnProperty(u)){var d=v[u];if(d.touches===o&&(1===d.taps||d.taps===c.taps))for(var h=0;h<c[u].length;h++){i=l(t,r,n,null!=c[u][h][1]);for(var f=0;f<i.end;f++)if(e=i.path[f],null==c[u][h][1]||a(e,c[u][h][1],n)){c[u][h][0].apply(e,[t]);break}}}}},f=function(){c.down=!1},p=function(){c.taps=0};g(n,"mousedown",d),g(n,"mouseup",h)}n.__taTapHandler.downSelectors.push(o),n.__taTapHandler[i].push([r,o]),r.__taUnstore=function(){u(n.__taTapHandler[i],r)}}}},A=function(t,e,n,i){for(var r in n.__tamee[t])n.__tamee[t].hasOwnProperty(r)&&n.__tamee[t][r].apply(i,[e])},b=function(){var t=[];return function(e,n,i,r){if(!e.__tamee){e.__tamee={over:!1,mouseenter:[],mouseexit:[]};var o=function(n){var i=s(n);(null==r&&i==e&&!e.__tamee.over||a(i,r,e)&&(null==i.__tamee||!i.__tamee.over))&&(A("mouseenter",n,e,i),i.__tamee=i.__tamee||{},i.__tamee.over=!0,t.push(i))},l=function(n){for(var i=s(n),r=0;r<t.length;r++)i!=t[r]||a(n.relatedTarget||n.toElement,"*",i)||(i.__tamee.over=!1,t.splice(r,1),A("mouseexit",n,e,i))};I(e,"mouseover",f(r,e,o,"mouseover"),o),I(e,"mouseout",f(r,e,l,"mouseout"),l)}i.__taUnstore=function(){delete e.__tamee[n][i.__tauid]},d(e,n,i),e.__tamee[n][i.__tauid]=i}},_="ontouchstart"in document.documentElement||navigator.maxTouchPoints,w="onmousedown"in document.documentElement,x={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"},S=function(){var t=-1;if("Microsoft Internet Explorer"==navigator.appName){var e=navigator.userAgent,n=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");null!=n.exec(e)&&(t=parseFloat(RegExp.$1))}return t}(),C=S>-1&&S<9,T=function(t,e){if(null==t)return[0,0];var n=E(t),i=D(n,0);return[i[e+"X"],i[e+"Y"]]},M=function(t){return null==t?[0,0]:C?[t.clientX+document.documentElement.scrollLeft,t.clientY+document.documentElement.scrollTop]:T(t,"page")},k=function(t){return T(t,"screen")},L=function(t){return T(t,"client")},D=function(t,e){return t.item?t.item(e):t[e]},E=function(t){return t.touches&&t.touches.length>0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},B=function(t){return E(t).length},I=function(t,e,n,i){if(d(t,e,n),i.__tauid=n.__tauid,t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent){var r=e+n.__tauid;t["e"+r]=n,t[r]=function(){t["e"+r]&&t["e"+r](window.event)},t.attachEvent("on"+e,t[r])}},O=function(t,e,n){null!=n&&P(t,(function(){var i=o(this);if(h(i,e,n),null!=n.__tauid)if(i.removeEventListener)i.removeEventListener(e,n,!1),_&&x[e]&&i.removeEventListener(x[e],n,!1);else if(this.detachEvent){var r=e+n.__tauid;i[r]&&i.detachEvent("on"+e,i[r]),i[r]=null,i["e"+r]=null}n.__taTouchProxy&&O(t,n.__taTouchProxy[1],n.__taTouchProxy[0])}))},P=function(t,e){if(null!=t){t="undefined"!==typeof Window&&"unknown"!==typeof t.top&&t==t.top?[t]:"string"!==typeof t&&null==t.tagName&&null!=t.length?t:"string"===typeof t?document.querySelectorAll(t):[t];for(var n=0;n<t.length;n++)e.apply(t[n])}},N=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0,n="x"==t?e:3&e|8;return n.toString(16)}))};r.Mottle=function(t){t=t||{};var e=t.clickThreshold||250,n=t.dblClickThreshold||450,r=new b,a=new y(e,n),s=t.smartClicks,l=function(t,e,n,i){null!=n&&P(t,(function(){var t=o(this);s&&"click"===e?m(t,e,n,i):"tap"===e||"dbltap"===e||"contextmenu"===e?a(t,e,n,i):"mouseenter"===e||"mouseexit"==e?r(t,e,n,i):g(t,e,n,i)}))};this.remove=function(t){return P(t,(function(){var t=o(this);if(t.__ta)for(var e in t.__ta)if(t.__ta.hasOwnProperty(e))for(var n in t.__ta[e])t.__ta[e].hasOwnProperty(n)&&O(t,e,t.__ta[e][n]);t.parentNode&&t.parentNode.removeChild(t)})),this},this.on=function(t,e,n,i){var r=arguments[0],a=4==arguments.length?arguments[2]:null,o=arguments[1],s=arguments[arguments.length-1];return l(r,o,s,a),this},this.off=function(t,e,n){return O(t,e,n),this},this.trigger=function(t,e,n,r){var a=w&&("undefined"===typeof MouseEvent||null==n||n.constructor===MouseEvent),s=_&&!w&&x[e]?x[e]:e,l=!(_&&!w&&x[e]),u=M(n),c=k(n),d=L(n);return P(t,(function(){var t,h=o(this);n=n||{screenX:c[0],screenY:c[1],clientX:d[0],clientY:d[1]};var f=function(t){r&&(t.payload=r)},p={TouchEvent:function(t){var e=i(window,h,0,u[0],u[1],c[0],c[1],d[0],d[1]),n=t.initTouchEvent||t.initEvent;n(s,!0,!0,window,null,c[0],c[1],d[0],d[1],!1,!1,!1,!1,e,e,e,1,0)},MouseEvents:function(t){t.initMouseEvent(s,!0,!0,window,0,c[0],c[1],d[0],d[1],!1,!1,!1,!1,1,h)}};if(document.createEvent){var g=!l&&!a&&_&&x[e],m=g?"TouchEvent":"MouseEvents";t=document.createEvent(m),p[m](t),f(t),h.dispatchEvent(t)}else document.createEventObject&&(t=document.createEventObject(),t.eventType=t.eventName=s,t.screenX=c[0],t.screenY=c[1],t.clientX=d[0],t.clientY=d[1],f(t),h.fireEvent("on"+s,t))})),this}},r.Mottle.consume=function(t,e){t.stopPropagation?t.stopPropagation():t.returnValue=!1,!e&&t.preventDefault&&t.preventDefault()},r.Mottle.pageLocation=M,r.Mottle.setForceTouchEvents=function(t){_=t},r.Mottle.setForceMouseEvents=function(t){w=t},r.Mottle.version="0.8.0",e.Mottle=r.Mottle}.call("undefined"===typeof window?this:window),function(){"use strict";var t=this,n=function(t,e,n){return-1===t.indexOf(e)&&(n?t.unshift(e):t.push(e),!0)},i=function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)},r=function(t,e){for(var n=[],i=0;i<t.length;i++)-1===e.indexOf(t[i])&&n.push(t[i]);return n},a=function(t){return null!=t&&("string"===typeof t||t.constructor===String)},o=function(t){var e=t.getBoundingClientRect(),n=document.body,i=document.documentElement,r=window.pageYOffset||i.scrollTop||n.scrollTop,a=window.pageXOffset||i.scrollLeft||n.scrollLeft,o=i.clientTop||n.clientTop||0,s=i.clientLeft||n.clientLeft||0,l=e.top+r-o,u=e.left+a-s;return{top:Math.round(l),left:Math.round(u)}},s=function(t,e,n){n=n||t.parentNode;for(var i=n.querySelectorAll(e),r=0;r<i.length;r++)if(i[r]===t)return!0;return!1},l=function(t,e,n){if(s(e,n,t))return e;var i=e.parentNode;while(null!=i&&i!==t){if(s(i,n,t))return i;i=i.parentNode}},u=function(t,e,n){for(var i=null,r=e.getAttribute("katavorio-draggable"),a=null!=r?"[katavorio-draggable='"+r+"'] ":"",o=0;o<t.length;o++)if(i=l(e,n,a+t[o].selector),null!=i){if(t[o].filter){var u=s(n,t[o].filter,i),c=!0===t[o].filterExclude;if(c&&!u||u)return null}return[t[o],i]}return null},c=function(){var t=-1;if("Microsoft Internet Explorer"===navigator.appName){var e=navigator.userAgent,n=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");null!=n.exec(e)&&(t=parseFloat(RegExp.$1))}return t}(),d=10,h=10,f=c>-1&&c<9,p=9===c,g=function(t){if(f)return[t.clientX+document.documentElement.scrollLeft,t.clientY+document.documentElement.scrollTop];var e=v(t),n=m(e,0);return p?[n.pageX||n.clientX,n.pageY||n.clientY]:[n.pageX,n.pageY]},m=function(t,e){return t.item?t.item(e):t[e]},v=function(t){return t.touches&&t.touches.length>0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},y={delegatedDraggable:"katavorio-delegated-draggable",draggable:"katavorio-draggable",droppable:"katavorio-droppable",drag:"katavorio-drag",selected:"katavorio-drag-selected",active:"katavorio-drag-active",hover:"katavorio-drag-hover",noSelect:"katavorio-drag-no-select",ghostProxy:"katavorio-ghost-proxy",clonedDrag:"katavorio-clone-drag"},A="katavorio-drag-scope",b=["stop","start","drag","drop","over","out","beforeStart"],_=function(){},w=function(){return!0},x=function(t,e,n){for(var i=0;i<t.length;i++)t[i]!=n&&e(t[i])},S=function(t,e,n,i){x(t,(function(t){t.setActive(e),e&&t.updatePosition(),n&&t.setHover(i,e)}))},C=function(t,e){if(null!=t){t=a(t)||null!=t.tagName||null==t.length?[t]:t;for(var n=0;n<t.length;n++)e.apply(t[n],[t[n]])}},T=function(t){t.stopPropagation?(t.stopPropagation(),t.preventDefault()):t.returnValue=!1},M="input,textarea,select,button,option",k=function(t,e,n){var i=t.srcElement||t.target;return!s(i,n.getInputFilterSelector(),e)},L=function(t,e,n,i){this.params=e||{},this.el=t,this.params.addClass(this.el,this._class),this.uuid=O();var r=!0;return this.setEnabled=function(t){r=t},this.isEnabled=function(){return r},this.toggleEnabled=function(){r=!r},this.setScope=function(t){this.scopes=t?t.split(/\s+/):[i]},this.addScope=function(t){var e={};for(var n in C(this.scopes,(function(t){e[t]=!0})),C(t?t.split(/\s+/):[],(function(t){e[t]=!0})),this.scopes=[],e)this.scopes.push(n)},this.removeScope=function(t){var e={};for(var n in C(this.scopes,(function(t){e[t]=!0})),C(t?t.split(/\s+/):[],(function(t){delete e[t]})),this.scopes=[],e)this.scopes.push(n)},this.toggleScope=function(t){var e={};for(var n in C(this.scopes,(function(t){e[t]=!0})),C(t?t.split(/\s+/):[],(function(t){e[t]?delete e[t]:e[t]=!0})),this.scopes=[],e)this.scopes.push(n)},this.setScope(e.scope),this.k=e.katavorio,e.katavorio},D=function(){return!0},E=function(){return!1},B=function(t,e,n,i){this._class=n.draggable;var r=L.apply(this,arguments);this.rightButtonCanDrag=this.params.rightButtonCanDrag;var l,c,f,p,m,v,A=[0,0],b=null,_=null,x=[0,0],C=!1,M=[0,0],B=!1!==this.params.consumeStartEvent,I=this.el,N=this.params.clone,F=(this.params.scroll,!1!==e.multipleDrop),U=!1,R=null,j=[],H=null,Y=e.ghostProxyParent;if(l=!0===e.ghostProxy?D:e.ghostProxy&&"function"===typeof e.ghostProxy?e.ghostProxy:function(t,e){return!(!H||!H.useGhostProxy)&&H.useGhostProxy(t,e)},c=e.makeGhostProxy?e.makeGhostProxy:function(t){return H&&H.makeGhostProxy?H.makeGhostProxy(t):t.cloneNode(!0)},e.selector){var z=t.getAttribute("katavorio-draggable");null==z&&(z=""+(new Date).getTime(),t.setAttribute("katavorio-draggable",z)),j.push(e)}var Q,V=e.snapThreshold,W=function(t,e,n,i,r){var a=Math.floor(t[0]/e),o=e*a,s=o+e,l=Math.abs(t[0]-o)<=i?o:Math.abs(s-t[0])<=i?s:t[0],u=Math.floor(t[1]/n),c=n*u,d=c+n,h=Math.abs(t[1]-c)<=r?c:Math.abs(d-t[1])<=r?d:t[1];return[l,h]};this.posses=[],this.posseRoles={},this.toGrid=function(t){if(null==this.params.grid)return t;var e=this.params.grid?this.params.grid[0]/2:V||d/2,n=this.params.grid?this.params.grid[1]/2:V||h/2;return W(t,this.params.grid[0],this.params.grid[1],e,n)},this.snap=function(t,e){if(null!=I){t=t||(this.params.grid?this.params.grid[0]:d),e=e||(this.params.grid?this.params.grid[1]:h);var n=this.params.getPosition(I),i=this.params.grid?this.params.grid[0]/2:V,r=this.params.grid?this.params.grid[1]/2:V,a=W(n,t,e,i,r);return this.params.setPosition(I,a),a}},this.setUseGhostProxy=function(t){l=t?D:E};var G=function(t){return!1===e.allowNegative?[Math.max(0,t[0]),Math.max(0,t[1])]:t},K=function(t){Q="function"===typeof t?t:t?function(t,e,n,i){return G([Math.max(0,Math.min(n.w-i[0],t[0])),Math.max(0,Math.min(n.h-i[1],t[1]))])}.bind(this):function(t){return G(t)}}.bind(this);K("function"===typeof this.params.constrain?this.params.constrain:this.params.constrain||this.params.containment),this.setConstrain=function(t){K(t)};var $,q=function(t,e,n,i){return null!=H&&H.constrain&&"function"===typeof H.constrain?H.constrain(t,e,n,i):Q(t,e,n,i)};this.setRevert=function(t){$=t},this.params.revert&&($=this.params.revert);var X=function(t){return"function"===typeof t?(t._katavorioId=O(),t._katavorioId):t},J={},Z=function(t){for(var e in J){var n=J[e],i=n[0](t);if(n[1]&&(i=!i),!i)return!1}return!0},tt=this.setFilter=function(e,n){if(e){var i=X(e);J[i]=[function(n){var i,r=n.srcElement||n.target;return a(e)?i=s(r,e,t):"function"===typeof e&&(i=e(n,t)),i},!1!==n]}};this.addFilter=tt,this.removeFilter=function(t){var e="function"===typeof t?t._katavorioId:t;delete J[e]};this.clearAllFilters=function(){J={}},this.canDrag=this.params.canDrag||w;var et,nt=[],it=[];this.addSelector=function(t){t.selector&&j.push(t)},this.downListener=function(t){if(!t.defaultPrevented){var e=this.rightButtonCanDrag||3!==t.which&&2!==t.button;if(e&&this.isEnabled()&&this.canDrag()){var i=Z(t)&&k(t,this.el,this.k);if(i){if(H=null,R=null,j.length>0){var a=u(j,this.el,t.target||t.srcElement);if(null!=a&&(H=a[0],R=a[1]),null==R)return}else R=this.el;if(N)if(I=R.cloneNode(!0),this.params.addClass(I,y.clonedDrag),I.setAttribute("id",null),I.style.position="absolute",null!=this.params.parent){var s=this.params.getPosition(this.el);I.style.left=s[0]+"px",I.style.top=s[1]+"px",this.params.parent.appendChild(I)}else{var l=o(R);I.style.left=l.left+"px",I.style.top=l.top+"px",document.body.appendChild(I)}else I=R;B&&T(t),A=g(t),I&&I.parentNode&&(M=[I.parentNode.scrollLeft,I.parentNode.scrollTop]),this.params.bind(document,"mousemove",this.moveListener),this.params.bind(document,"mouseup",this.upListener),r.markSelection(this),r.markPosses(this),this.params.addClass(document.body,n.noSelect),ot("beforeStart",{el:this.el,pos:b,e:t,drag:this})}else this.params.consumeFilteredEvents&&T(t)}}}.bind(this),this.moveListener=function(t){if(A){if(!C){var e=ot("start",{el:this.el,pos:b,e:t,drag:this});if(!1!==e){if(!A)return;this.mark(!0),C=!0}else this.abort()}if(A){it.length=0;var n=g(t),i=n[0]-A[0],a=n[1]-A[1],o=this.params.ignoreZoom?1:r.getZoom();I&&I.parentNode&&(i+=I.parentNode.scrollLeft-M[0],a+=I.parentNode.scrollTop-M[1]),i/=o,a/=o,this.moveBy(i,a,t),r.updateSelection(i,a,this),r.updatePosses(i,a,this)}}}.bind(this),this.upListener=function(t){A&&(A=null,this.params.unbind(document,"mousemove",this.moveListener),this.params.unbind(document,"mouseup",this.upListener),this.params.removeClass(document.body,n.noSelect),this.unmark(t),r.unmarkSelection(this,t),r.unmarkPosses(this,t),this.stop(t),r.notifyPosseDragStop(this,t),C=!1,it.length=0,N?(I&&I.parentNode&&I.parentNode.removeChild(I),I=null):$&&!0===$(I,this.params.getPosition(I))&&(this.params.setPosition(I,b),ot("revert",I)))}.bind(this),this.getFilters=function(){return J},this.abort=function(){null!=A&&this.upListener()},this.getDragElement=function(t){return t?R||this.el:I||this.el};var rt={start:[],drag:[],stop:[],over:[],out:[],beforeStart:[],revert:[]};e.events.start&&rt.start.push(e.events.start),e.events.beforeStart&&rt.beforeStart.push(e.events.beforeStart),e.events.stop&&rt.stop.push(e.events.stop),e.events.drag&&rt.drag.push(e.events.drag),e.events.revert&&rt.revert.push(e.events.revert),this.on=function(t,e){rt[t]&&rt[t].push(e)},this.off=function(t,e){if(rt[t]){for(var n=[],i=0;i<rt[t].length;i++)rt[t][i]!==e&&n.push(rt[t][i]);rt[t]=n}};var at,ot=function(t,e){var n=null;if(H&&H[t])n=H[t](e);else if(rt[t])for(var i=0;i<rt[t].length;i++)try{var r=rt[t][i](e);null!=r&&(n=r)}catch(a){}return n};this.notifyStart=function(t){ot("start",{el:this.el,pos:this.params.getPosition(I),e:t,drag:this})},this.stop=function(t,e){if(e||C){var n=[],i=r.getSelection(),a=this.params.getPosition(I);if(i.length>0)for(var o=0;o<i.length;o++){var s=this.params.getPosition(i[o].el);n.push([i[o].el,{left:s[0],top:s[1]},i[o]])}else n.push([I,{left:a[0],top:a[1]},this]);ot("stop",{el:I,pos:at||a,finalPos:a,e:t,drag:this,selection:n})}},this.mark=function(t){var e;b=this.params.getPosition(I),_=this.params.getPosition(I,!0),x=[_[0]-b[0],_[1]-b[1]],this.size=this.params.getSize(I),nt=r.getMatchingDroppables(this),S(nt,!0,!1,this),this.params.addClass(I,this.params.dragClass||n.drag),e=this.params.getConstrainingRectangle?this.params.getConstrainingRectangle(I):this.params.getSize(I.parentNode),et={w:e[0],h:e[1]},m=0,v=0,t&&r.notifySelectionDragStart(this)},this.unmark=function(t,i){if(S(nt,!1,!0,this),U&&l(R,I)?(at=[I.offsetLeft-m,I.offsetTop-v],I.parentNode.removeChild(I),I=R):at=null,this.params.removeClass(I,this.params.dragClass||n.drag),nt.length=0,U=!1,!i){it.length>0&&at&&e.setPosition(R,at),it.sort(P);for(var r=0;r<it.length;r++){var a=it[r].drop(this,t);if(!0===a)break}}},this.moveBy=function(t,n,i){it.length=0;var r=this.toGrid([b[0]+t,b[1]+n]),a=q(r,I,et,this.size);if(l(this.el,I))if(r[0]!==a[0]||r[1]!==a[1]){if(!U){var o=c(R);e.addClass(o,y.ghostProxy),Y?(Y.appendChild(o),f=e.getPosition(R.parentNode,!0),p=e.getPosition(e.ghostProxyParent,!0),m=f[0]-p[0],v=f[1]-p[1]):R.parentNode.appendChild(o),I=o,U=!0}a=r}else U&&(I.parentNode.removeChild(I),I=R,U=!1,f=null,p=null,m=0,v=0);var s={x:a[0],y:a[1],w:this.size[0],h:this.size[1]},u={x:s.x+x[0],y:s.y+x[1],w:s.w,h:s.h},d=null;this.params.setPosition(I,[a[0]+m,a[1]+v]);for(var h=0;h<nt.length;h++){var g={x:nt[h].pagePosition[0],y:nt[h].pagePosition[1],w:nt[h].size[0],h:nt[h].size[1]};this.params.intersects(u,g)&&(F||null==d||d===nt[h].el)&&nt[h].canDrop(this)?(d||(d=nt[h].el),it.push(nt[h]),nt[h].setHover(this,!0,i)):nt[h].isHover()&&nt[h].setHover(this,!1,i)}ot("drag",{el:this.el,pos:a,e:i,drag:this})},this.destroy=function(){this.params.unbind(this.el,"mousedown",this.downListener),this.params.unbind(document,"mousemove",this.moveListener),this.params.unbind(document,"mouseup",this.upListener),this.downListener=null,this.upListener=null,this.moveListener=null},this.params.bind(this.el,"mousedown",this.downListener),this.params.handle?tt(this.params.handle,!1):tt(this.params.filter,this.params.filterExclude)},I=function(t,e,n,i){this._class=n.droppable,this.params=e||{},this.rank=e.rank||0,this._activeClass=this.params.activeClass||n.active,this._hoverClass=this.params.hoverClass||n.hover,L.apply(this,arguments);var r=!1;this.allowLoopback=!1!==this.params.allowLoopback,this.setActive=function(t){this.params[t?"addClass":"removeClass"](this.el,this._activeClass)},this.updatePosition=function(){this.position=this.params.getPosition(this.el),this.pagePosition=this.params.getPosition(this.el,!0),this.size=this.params.getSize(this.el)},this.canDrop=this.params.canDrop||function(t){return!0},this.isHover=function(){return r},this.setHover=function(t,e,n){(e||null==this.el._katavorioDragHover||this.el._katavorioDragHover===t.el._katavorio)&&(this.params[e?"addClass":"removeClass"](this.el,this._hoverClass),this.el._katavorioDragHover=e?t.el._katavorio:null,r!==e&&this.params.events[e?"over":"out"]({el:this.el,e:n,drag:t,drop:this}),r=e)},this.drop=function(t,e){return this.params.events["drop"]({drag:t,e:e,drop:this})},this.destroy=function(){this._class=null,this._activeClass=null,this._hoverClass=null,r=null}},O=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0,n="x"===t?e:3&e|8;return n.toString(16)}))},P=function(t,e){return t.rank<e.rank?1:t.rank>e.rank?-1:0},N=function(t){return null==t?null:(t="string"===typeof t||t.constructor===String?document.getElementById(t):t,null==t?null:(t._katavorio=t._katavorio||O(),t))};t.Katavorio=function(t){var e=[],o={};this._dragsByScope={},this._dropsByScope={};var s=1,l=function(t,e){C(t,(function(t){for(var n=0;n<t.scopes.length;n++)e[t.scopes[n]]=e[t.scopes[n]]||[],e[t.scopes[n]].push(t)}))},u=function(e,n){var i=0;return C(e,(function(e){for(var r=0;r<e.scopes.length;r++)if(n[e.scopes[r]]){var a=t.indexOf(n[e.scopes[r]],e);-1!==a&&(n[e.scopes[r]].splice(a,1),i++)}})),i>0},c=(this.getMatchingDroppables=function(t){for(var e=[],n={},i=0;i<t.scopes.length;i++){var r=this._dropsByScope[t.scopes[i]];if(r)for(var a=0;a<r.length;a++)!r[a].canDrop(t)||n[r[a].uuid]||!r[a].allowLoopback&&r[a].el===t.el||(n[r[a].uuid]=!0,e.push(r[a]))}return e.sort(P),e},function(e){e=e||{};var n,i={events:{}};for(n in t)i[n]=t[n];for(n in e)i[n]=e[n];for(n=0;n<b.length;n++)i.events[b[n]]=e[b[n]]||_;return i.katavorio=this,i}.bind(this)),d=function(t,e){for(var n=0;n<b.length;n++)e[b[n]]&&t.on(b[n],e[b[n]])}.bind(this),h={},f=t.css||{},p=t.scope||A;for(var g in y)h[g]=y[g];for(var g in f)h[g]=f[g];var m=t.inputFilterSelector||M;this.getInputFilterSelector=function(){return m},this.setInputFilterSelector=function(t){return m=t,this},this.draggable=function(e,n){var i=[];return C(e,function(e){if(e=N(e),null!=e)if(null==e._katavorioDrag){var r=c(n);e._katavorioDrag=new B(e,r,h,p),l(e._katavorioDrag,this._dragsByScope),i.push(e._katavorioDrag),t.addClass(e,r.selector?h.delegatedDraggable:h.draggable)}else d(e._katavorioDrag,n)}.bind(this)),i},this.droppable=function(e,n){var i=[];return C(e,function(e){if(e=N(e),null!=e){var r=new I(e,c(n),h,p);e._katavorioDrop=e._katavorioDrop||[],e._katavorioDrop.push(r),l(r,this._dropsByScope),i.push(r),t.addClass(e,h.droppable)}}.bind(this)),i},this.select=function(n){return C(n,(function(){var n=N(this);n&&n._katavorioDrag&&(o[n._katavorio]||(e.push(n._katavorioDrag),o[n._katavorio]=[n,e.length-1],t.addClass(n,h.selected)))})),this},this.deselect=function(n){return C(n,(function(){var n=N(this);if(n&&n._katavorio){var i=o[n._katavorio];if(i){for(var r=[],a=0;a<e.length;a++)e[a].el!==n&&r.push(e[a]);e=r,delete o[n._katavorio],t.removeClass(n,h.selected)}}})),this},this.deselectAll=function(){for(var n in o){var i=o[n];t.removeClass(i[0],h.selected)}e.length=0,o={}},this.markSelection=function(t){x(e,(function(t){t.mark()}),t)},this.markPosses=function(t){t.posses&&C(t.posses,(function(e){t.posseRoles[e]&&k[e]&&x(k[e].members,(function(t){t.mark()}),t)}))},this.unmarkSelection=function(t,n){x(e,(function(t){t.unmark(n)}),t)},this.unmarkPosses=function(t,e){t.posses&&C(t.posses,(function(n){t.posseRoles[n]&&k[n]&&x(k[n].members,(function(t){t.unmark(e,!0)}),t)}))},this.getSelection=function(){return e.slice(0)},this.updateSelection=function(t,n,i){x(e,(function(e){e.moveBy(t,n)}),i)};var v=function(t,e){e.posses&&C(e.posses,(function(n){e.posseRoles[n]&&k[n]&&x(k[n].members,(function(e){t(e)}),e)}))};this.updatePosses=function(t,e,n){v((function(n){n.moveBy(t,e)}),n)},this.notifyPosseDragStop=function(t,e){v((function(t){t.stop(e,!0)}),t)},this.notifySelectionDragStop=function(t,n){x(e,(function(t){t.stop(n,!0)}),t)},this.notifySelectionDragStart=function(t,n){x(e,(function(t){t.notifyStart(n)}),t)},this.setZoom=function(t){s=t},this.getZoom=function(){return s};var w=function(t,e,n,i){C(t,(function(t){u(t,n),t[i](e),l(t,n)}))};C(["set","add","remove","toggle"],function(t){this[t+"Scope"]=function(e,n){w(e._katavorioDrag,n,this._dragsByScope,t+"Scope"),w(e._katavorioDrop,n,this._dropsByScope,t+"Scope")}.bind(this),this[t+"DragScope"]=function(e,n){w(e.constructor===B?e:e._katavorioDrag,n,this._dragsByScope,t+"Scope")}.bind(this),this[t+"DropScope"]=function(e,n){w(e.constructor===I?e:e._katavorioDrop,n,this._dropsByScope,t+"Scope")}.bind(this)}.bind(this)),this.snapToGrid=function(t,e){for(var n in this._dragsByScope)x(this._dragsByScope[n],(function(n){n.snap(t,e)}))},this.getDragsForScope=function(t){return this._dragsByScope[t]},this.getDropsForScope=function(t){return this._dropsByScope[t]};var S=function(t,n,i){if(t=N(t),t[n]){var r=e.indexOf(t[n]);r>=0&&e.splice(r,1),u(t[n],i)&&C(t[n],(function(t){t.destroy()})),delete t[n]}},T=function(t,e,n,i){t=N(t),t[e]&&t[e].off(n,i)};this.elementRemoved=function(t){t["_katavorioDrag"]&&this.destroyDraggable(t),t["_katavorioDrop"]&&this.destroyDroppable(t)},this.destroyDraggable=function(t,e,n){1===arguments.length?S(t,"_katavorioDrag",this._dragsByScope):T(t,"_katavorioDrag",e,n)},this.destroyDroppable=function(t,e,n){1===arguments.length?S(t,"_katavorioDrop",this._dropsByScope):T(t,"_katavorioDrop",e,n)},this.reset=function(){this._dragsByScope={},this._dropsByScope={},e=[],o={},k={}};var k={},L=function(t,e,i){var r=a(e)?e:e.id,o=!!a(e)||!1!==e.active,s=k[r]||function(){var t={name:r,members:[]};return k[r]=t,t}();return C(t,(function(t){if(t._katavorioDrag){if(i&&null!=t._katavorioDrag.posseRoles[s.name])return;n(s.members,t._katavorioDrag),n(t._katavorioDrag.posses,s.name),t._katavorioDrag.posseRoles[s.name]=o}})),s};this.addToPosse=function(t,e){for(var n=[],i=1;i<arguments.length;i++)n.push(L(t,arguments[i]));return 1===n.length?n[0]:n},this.setPosse=function(t,e){for(var n=[],i=1;i<arguments.length;i++)n.push(L(t,arguments[i],!0).name);return C(t,function(t){if(t._katavorioDrag){var e=r(t._katavorioDrag.posses,n),i=[];Array.prototype.push.apply(i,t._katavorioDrag.posses);for(var a=0;a<e.length;a++)this.removeFromPosse(t,e[a])}}.bind(this)),1===n.length?n[0]:n},this.removeFromPosse=function(t,e){if(arguments.length<2)throw new TypeError("No posse id provided for remove operation");for(var n=1;n<arguments.length;n++)e=arguments[n],C(t,(function(t){if(t._katavorioDrag&&t._katavorioDrag.posses){var n=t._katavorioDrag;C(e,(function(t){i(k[t].members,n),i(n.posses,t),delete n.posseRoles[t]}))}}))},this.removeFromAllPosses=function(t){C(t,(function(t){if(t._katavorioDrag&&t._katavorioDrag.posses){var e=t._katavorioDrag;C(e.posses,(function(t){i(k[t].members,e)})),e.posses.length=0,e.posseRoles={}}}))},this.setPosseState=function(t,e,n){var i=k[e];i&&C(t,(function(t){t._katavorioDrag&&t._katavorioDrag.posses&&(t._katavorioDrag.posseRoles[i.name]=n)}))}},t.Katavorio.version="1.0.0",e.Katavorio=t.Katavorio}.call("undefined"!==typeof window?window:this),function(){var t=this;t.jsPlumbUtil=t.jsPlumbUtil||{};var n=t.jsPlumbUtil;function i(t){return"[object Array]"===Object.prototype.toString.call(t)}function r(t){return"[object Number]"===Object.prototype.toString.call(t)}function a(t){return"string"===typeof t}function o(t){return"boolean"===typeof t}function s(t){return null==t}function l(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function u(t){return"[object Date]"===Object.prototype.toString.call(t)}function c(t){return"[object Function]"===Object.prototype.toString.call(t)}function d(t){return c(t)&&null!=t.name&&t.name.length>0}function h(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function f(t){if(a(t))return""+t;if(o(t))return!!t;if(u(t))return new Date(t.getTime());if(c(t))return t;if(i(t)){for(var e=[],n=0;n<t.length;n++)e.push(f(t[n]));return e}if(l(t)){var r={};for(var s in t)r[s]=f(t[s]);return r}return t}function p(t,e,n,r){var s,u,c={},d={};for(n=n||[],r=r||[],u=0;u<n.length;u++)c[n[u]]=!0;for(u=0;u<r.length;u++)d[r[u]]=!0;var h=f(t);for(u in e)if(null==h[u]||d[u])h[u]=e[u];else if(a(e[u])||o(e[u]))c[u]?(s=[],s.push.apply(s,i(h[u])?h[u]:[h[u]]),s.push.apply(s,o(e[u])?e[u]:[e[u]]),h[u]=s):h[u]=e[u];else if(i(e[u]))s=[],i(h[u])&&s.push.apply(s,h[u]),s.push.apply(s,e[u]),h[u]=s;else if(l(e[u]))for(var p in l(h[u])||(h[u]={}),e[u])h[u][p]=e[u][p];return h}function g(t,e,n){if(null!=t){var i=t,r=i;return e.replace(/([^\.])+/g,(function(t,e,i,a){var o=t.match(/([^\[0-9]+){1}(\[)([0-9+])/),s=i+t.length>=a.length,l=function(){return r[o[1]]||function(){return r[o[1]]=[],r[o[1]]}()};if(s)o?l()[o[3]]=n:r[t]=n;else if(o){var u=l();r=u[o[3]]||function(){return u[o[3]]={},u[o[3]]}()}else r=r[t]||function(){return r[t]={},r[t]}();return""})),t}}function m(t,e,n){for(var i=0;i<n.length;i++){var r=n[i][0][n[i][1]].apply(n[i][0],n[i][2]);if(r===e)return r}return t}function v(t,e,n,r){var o=function(t){var n=t.match(/(\${.*?})/g);if(null!=n)for(var i=0;i<n.length;i++){var r=e[n[i].substring(2,n[i].length-1)]||"";null!=r&&(t=t.replace(n[i],r))}return t},s=function(t){if(null!=t){if(a(t))return o(t);if(!c(t)||r||null!=n&&0!==(t.name||"").indexOf(n)){if(i(t)){for(var u=[],d=0;d<t.length;d++)u.push(s(t[d]));return u}if(l(t)){var h={};for(var f in t)h[f]=s(t[f]);return h}return t}return t(e)}};return s(t)}function y(t,e){if(t)for(var n=0;n<t.length;n++)if(e(t[n]))return n;return-1}function A(t,e){var n=y(t,e);return n>-1&&t.splice(n,1),-1!==n}function b(t,e){var n=t.indexOf(e);return n>-1&&t.splice(n,1),-1!==n}function _(t,e,n){-1===y(t,n)&&t.push(e)}function w(t,e,n,i){var r=t[e];return null==r&&(r=[],t[e]=r),r[i?"unshift":"push"](n),r}function x(t,e,n){return-1===t.indexOf(e)&&(n?t.unshift(e):t.push(e),!0)}function S(t,e,n){var r;e=i(e)?e:[e];var a=function(e){var n=e.__proto__;while(null!=n)if(null!=n.prototype){for(var i in n.prototype)n.prototype.hasOwnProperty(i)&&!t.prototype.hasOwnProperty(i)&&(t.prototype[i]=n.prototype[i]);n=n.prototype.__proto__}else n=null};for(r=0;r<e.length;r++){for(var o in e[r].prototype)e[r].prototype.hasOwnProperty(o)&&!t.prototype.hasOwnProperty(o)&&(t.prototype[o]=e[r].prototype[o]);a(e[r])}var s=function(t,n){return function(){for(r=0;r<e.length;r++)e[r].prototype[t]&&e[r].prototype[t].apply(this,arguments);return n.apply(this,arguments)}},l=function(e){for(var n in e)t.prototype[n]=s(n,e[n])};if(arguments.length>2)for(r=2;r<arguments.length;r++)l(arguments[r]);return t}e.jsPlumbUtil=n,n.isArray=i,n.isNumber=r,n.isString=a,n.isBoolean=o,n.isNull=s,n.isObject=l,n.isDate=u,n.isFunction=c,n.isNamedFunction=d,n.isEmpty=h,n.clone=f,n.merge=p,n.replace=g,n.functionChain=m,n.populate=v,n.findWithFunction=y,n.removeWithFunction=A,n.remove=b,n.addWithFunction=_,n.addToList=w,n.suggest=x,n.extend=S;for(var C=[],T=0;T<256;T++)C[T]=(T<16?"0":"")+T.toString(16);function M(){var t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return C[255&t]+C[t>>8&255]+C[t>>16&255]+C[t>>24&255]+"-"+C[255&e]+C[e>>8&255]+"-"+C[e>>16&15|64]+C[e>>24&255]+"-"+C[63&n|128]+C[n>>8&255]+"-"+C[n>>16&255]+C[n>>24&255]+C[255&i]+C[i>>8&255]+C[i>>16&255]+C[i>>24&255]}function k(t){if(null==t)return null;var e=t.replace(/^\s\s*/,""),n=/\s/,i=e.length;while(n.test(e.charAt(--i)));return e.slice(0,i+1)}function L(t,e){t=null==t.length||"string"===typeof t?[t]:t;for(var n=0;n<t.length;n++)e(t[n])}function D(t,e){for(var n=[],i=0;i<t.length;i++)n.push(e(t[i]));return n}function E(t,e,n){n=n||"parent";var i=function(t){return t?e[t]:null},r=function(t){return t?i(t[n]):null},a=function(t,e){if(null==t)return e;var n=["anchor","anchors","cssClass","connector","paintStyle","hoverPaintStyle","endpoint","endpoints"];"override"===e.mergeStrategy&&Array.prototype.push.apply(n,["events","overlays"]);var i=p(t,e,[],n);return a(r(t),i)},o=function(t){if(null==t)return{};if("string"===typeof t)return i(t);if(t.length){var e=!1,n=0,r=void 0;while(!e&&n<t.length)r=o(t[n]),r?e=!0:n++;return r}},s=o(t);return s?a(r(s),s):{}}function B(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(n.logEnabled&&"undefined"!==typeof console)try{var i=arguments[arguments.length-1];console.log(i)}catch(r){}}function I(t,e,n){return function(){var i=null;try{null!=e&&(i=e.apply(this,arguments))}catch(r){B("jsPlumb function failed : "+r)}if(null!=t&&(null==n||i!==n))try{i=t.apply(this,arguments)}catch(r){B("wrapped function failed : "+r)}return i}}n.uuid=M,n.fastTrim=k,n.each=L,n.map=D,n.mergeWithParents=E,n.logEnabled=!0,n.log=B,n.wrap=I;var O=function(){function t(){var t=this;this._listeners={},this.eventsSuspended=!1,this.tick=!1,this.eventsToDieOn={ready:!0},this.queue=[],this.bind=function(e,n,i){var r=function(e){w(t._listeners,e,n,i),n.__jsPlumb=n.__jsPlumb||{},n.__jsPlumb[M()]=e};if("string"===typeof e)r(e);else if(null!=e.length)for(var a=0;a<e.length;a++)r(e[a]);return t},this.fire=function(t,e,n){if(this.tick)this.queue.unshift(arguments);else{if(this.tick=!0,!this.eventsSuspended&&this._listeners[t]){var i=this._listeners[t].length,r=0,a=!1,o=null;if(!this.shouldFireEvent||this.shouldFireEvent(t,e,n))while(!a&&r<i&&!1!==o){if(this.eventsToDieOn[t])this._listeners[t][r].apply(this,[e,n]);else try{o=this._listeners[t][r].apply(this,[e,n])}catch(s){B("jsPlumb: fire failed for event "+t+" : "+s)}r++,null!=this._listeners&&null!=this._listeners[t]||(a=!0)}}this.tick=!1,this._drain()}return this},this._drain=function(){var e=t.queue.pop();e&&t.fire.apply(t,e)},this.unbind=function(t,e){if(0===arguments.length)this._listeners={};else if(1===arguments.length){if("string"===typeof t)delete this._listeners[t];else if(t.__jsPlumb){var n=void 0;for(var i in t.__jsPlumb)n=t.__jsPlumb[i],b(this._listeners[n]||[],t)}}else 2===arguments.length&&b(this._listeners[t]||[],e);return this},this.getListener=function(e){return t._listeners[e]},this.setSuspendEvents=function(e){t.eventsSuspended=e},this.isSuspendEvents=function(){return t.eventsSuspended},this.silently=function(e){t.setSuspendEvents(!0);try{e()}catch(n){B("Cannot execute silent function "+n)}t.setSuspendEvents(!1)},this.cleanupListeners=function(){for(var e in t._listeners)t._listeners[e]=null}}return t}();function P(t,e,n){var i=[t[0]-e[0],t[1]-e[1]],r=Math.cos(n/360*Math.PI*2),a=Math.sin(n/360*Math.PI*2);return[i[0]*r-i[1]*a+e[0],i[1]*r+i[0]*a+e[1],r,a]}function N(t,e){var n=P(t,[0,0],e);return[Math.round(n[0]),Math.round(n[1])]}n.EventGenerator=O,n.rotatePoint=P,n.rotateAnchorOrientation=N}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this;t.jsPlumbUtil.matchesSelector=function(t,e,n){n=n||t.parentNode;for(var i=n.querySelectorAll(e),r=0;r<i.length;r++)if(i[r]===t)return!0;return!1},t.jsPlumbUtil.consume=function(t,e){t.stopPropagation?t.stopPropagation():t.returnValue=!1,!e&&t.preventDefault&&t.preventDefault()},t.jsPlumbUtil.sizeElement=function(t,e,n,i,r){t&&(t.style.height=r+"px",t.height=r,t.style.width=i+"px",t.width=i,t.style.left=e+"px",t.style.top=n+"px")}}.call("undefined"!==typeof window?window:this),function(){var t={deriveAnchor:function(t,e,n,i){return{top:["TopRight","TopLeft"],bottom:["BottomRight","BottomLeft"]}[t][e]}},e=this,n=function(t,e){this.count=0,this.instance=t,this.lists={},this.options=e||{},this.instance.addList=function(t,e){return this.listManager.addList(t,e)},this.instance.removeList=function(t){this.listManager.removeList(t)},this.instance.bind("manageElement",function(t){for(var e=this.instance.getSelector(t.el,"[jtk-scrollable-list]"),n=0;n<e.length;n++)this.addList(e[n])}.bind(this)),this.instance.bind("unmanageElement",(function(t){this.removeList(t.el)})),this.instance.bind("connection",function(t,e){null==e&&(this._maybeUpdateParentList(t.source),this._maybeUpdateParentList(t.target))}.bind(this))};e.jsPlumbListManager=n,n.prototype={addList:function(e,n){var r=this.instance.extend({},t);this.instance.extend(r,this.options),n=this.instance.extend(r,n||{});var a=[this.instance.getInstanceIndex(),this.count++].join("_");this.lists[a]=new i(this.instance,e,n,a)},removeList:function(t){var e=this.lists[t._jsPlumbList];e&&(e.destroy(),delete this.lists[t._jsPlumbList])},_maybeUpdateParentList:function(t){var e=t.parentNode,n=this.instance.getContainer();while(null!=e&&e!==n){if(null!=e._jsPlumbList&&null!=this.lists[e._jsPlumbList])return void e._jsPlumbScrollHandler();e=e.parentNode}}};var i=function(t,e,n,i){function r(t,e,i,r){return n.anchor?n.anchor:n.deriveAnchor(t,e,i,r)}function a(t,e,i,r){return n.deriveEndpoint?n.deriveEndpoint(t,e,i,r):n.endpoint?n.endpoint:i.type}function o(e){var n=e.parentNode,i=t.getContainer();while(null!=n&&n!==i){if(t.hasClass(n,"jtk-managed"))return void t.recalculateOffsets(n);n=n.parentNode}}e["_jsPlumbList"]=i;var s=function(n){for(var i=t.getSelector(e,".jtk-managed"),s=t.getId(e),l=0;l<i.length;l++){if(i[l].offsetTop<e.scrollTop)i[l]._jsPlumbProxies||(i[l]._jsPlumbProxies=i[l]._jsPlumbProxies||[],t.select({source:i[l]}).each((function(n){t.proxyConnection(n,0,e,s,(function(){return a("top",0,n.endpoints[0],n)}),(function(){return r("top",0,n.endpoints[0],n)})),i[l]._jsPlumbProxies.push([n,0])})),t.select({target:i[l]}).each((function(n){t.proxyConnection(n,1,e,s,(function(){return a("top",1,n.endpoints[1],n)}),(function(){return r("top",1,n.endpoints[1],n)})),i[l]._jsPlumbProxies.push([n,1])})));else if(i[l].offsetTop+i[l].offsetHeight>e.scrollTop+e.offsetHeight)i[l]._jsPlumbProxies||(i[l]._jsPlumbProxies=i[l]._jsPlumbProxies||[],t.select({source:i[l]}).each((function(n){t.proxyConnection(n,0,e,s,(function(){return a("bottom",0,n.endpoints[0],n)}),(function(){return r("bottom",0,n.endpoints[0],n)})),i[l]._jsPlumbProxies.push([n,0])})),t.select({target:i[l]}).each((function(n){t.proxyConnection(n,1,e,s,(function(){return a("bottom",1,n.endpoints[1],n)}),(function(){return r("bottom",1,n.endpoints[1],n)})),i[l]._jsPlumbProxies.push([n,1])})));else if(i[l]._jsPlumbProxies){for(var u=0;u<i[l]._jsPlumbProxies.length;u++)t.unproxyConnection(i[l]._jsPlumbProxies[u][0],i[l]._jsPlumbProxies[u][1],s);delete i[l]._jsPlumbProxies}t.revalidate(i[l])}o(e)};t.setAttribute(e,"jtk-scrollable-list","true"),e._jsPlumbScrollHandler=s,t.on(e,"scroll",s),s(),this.destroy=function(){t.off(e,"scroll",s),delete e._jsPlumbScrollHandler;for(var n=t.getSelector(e,".jtk-managed"),i=t.getId(e),r=0;r<n.length;r++)if(n[r]._jsPlumbProxies){for(var a=0;a<n[r]._jsPlumbProxies.length;a++)t.unproxyConnection(n[r]._jsPlumbProxies[a][0],n[r]._jsPlumbProxies[a][1],i);delete n[r]._jsPlumbProxies}}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,n=t.jsPlumbUtil,i=function(t){if(t._jsPlumb.paintStyle&&t._jsPlumb.hoverPaintStyle){var e={};p.extend(e,t._jsPlumb.paintStyle),p.extend(e,t._jsPlumb.hoverPaintStyle),delete t._jsPlumb.hoverPaintStyle,e.gradient&&t._jsPlumb.paintStyle.fill&&delete e.gradient,t._jsPlumb.hoverPaintStyle=e}},r=["tap","dbltap","click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","contextmenu"],a=function(t,e,n,i){var r=t.getAttachedElements();if(r)for(var a=0,o=r.length;a<o;a++)i&&i===r[a]||r[a].setHover(e,!0,n)},o=function(t){return null==t?null:t.split(" ")},s=function(t,e,n){for(var i in e)t[i]=n},l=function(t,e,i){if(t.getDefaultType){var r=t.getTypeDescriptor(),a={},o=t.getDefaultType(),l=n.merge({},o);s(a,o,"__default");for(var u=0,c=t._jsPlumb.types.length;u<c;u++){var d=t._jsPlumb.types[u];if("__default"!==d){var h=t._jsPlumb.instance.getType(d,r);if(null!=h){var f=["anchor","anchors","connector","paintStyle","hoverPaintStyle","endpoint","endpoints","connectorOverlays","connectorStyle","connectorHoverStyle","endpointStyle","endpointHoverStyle"],p=[];"override"===h.mergeStrategy?Array.prototype.push.apply(f,["events","overlays","cssClass"]):p.push("cssClass"),l=n.merge(l,h,p,f),s(a,h,d)}}}e&&(l=n.populate(l,e,"_")),t.applyType(l,i,a),i||t.repaint()}},u=t.jsPlumbUIComponent=function(t){n.EventGenerator.apply(this,arguments);var e=this,i=arguments,r=e.idPrefix,a=r+(new Date).getTime();this._jsPlumb={instance:t._jsPlumb,parameters:t.parameters||{},paintStyle:null,hoverPaintStyle:null,paintStyleInUse:null,hover:!1,beforeDetach:t.beforeDetach,beforeDrop:t.beforeDrop,overlayPlacements:[],hoverClass:t.hoverClass||t._jsPlumb.Defaults.HoverClass,types:[],typeCache:{}},this.cacheTypeItem=function(t,e,n){this._jsPlumb.typeCache[n]=this._jsPlumb.typeCache[n]||{},this._jsPlumb.typeCache[n][t]=e},this.getCachedTypeItem=function(t,e){return this._jsPlumb.typeCache[e]?this._jsPlumb.typeCache[e][t]:null},this.getId=function(){return a};var o=t.overlays||[],s={};if(this.defaultOverlayKeys){for(var l=0;l<this.defaultOverlayKeys.length;l++)Array.prototype.push.apply(o,this._jsPlumb.instance.Defaults[this.defaultOverlayKeys[l]]||[]);for(l=0;l<o.length;l++){var u=p.convertToFullOverlaySpec(o[l]);s[u[1].id]=u}}var c={overlays:s,parameters:t.parameters||{},scope:t.scope||this._jsPlumb.instance.getDefaultScope()};if(this.getDefaultType=function(){return c},this.appendToDefaultType=function(t){for(var e in t)c[e]=t[e]},t.events)for(var d in t.events)e.bind(d,t.events[d]);this.clone=function(){var t=Object.create(this.constructor.prototype);return this.constructor.apply(t,i),t}.bind(this),this.isDetachAllowed=function(t){var e=!0;if(this._jsPlumb.beforeDetach)try{e=this._jsPlumb.beforeDetach(t)}catch(i){n.log("jsPlumb: beforeDetach callback failed",i)}return e},this.isDropAllowed=function(t,e,i,r,a,o,s){var l=this._jsPlumb.instance.checkCondition("beforeDrop",{sourceId:t,targetId:e,scope:i,connection:r,dropEndpoint:a,source:o,target:s});if(this._jsPlumb.beforeDrop)try{l=this._jsPlumb.beforeDrop({sourceId:t,targetId:e,scope:i,connection:r,dropEndpoint:a,source:o,target:s})}catch(u){n.log("jsPlumb: beforeDrop callback failed",u)}return l};var h=[];this.setListenerComponent=function(t){for(var e=0;e<h.length;e++)h[e][3]=t}},c=function(t,e){var n=t._jsPlumb.types[e],i=t._jsPlumb.instance.getType(n,t.getTypeDescriptor());null!=i&&i.cssClass&&t.canvas&&t._jsPlumb.instance.removeClass(t.canvas,i.cssClass)};n.extend(t.jsPlumbUIComponent,n.EventGenerator,{getParameter:function(t){return this._jsPlumb.parameters[t]},setParameter:function(t,e){this._jsPlumb.parameters[t]=e},getParameters:function(){return this._jsPlumb.parameters},setParameters:function(t){this._jsPlumb.parameters=t},getClass:function(){return p.getClass(this.canvas)},hasClass:function(t){return p.hasClass(this.canvas,t)},addClass:function(t){p.addClass(this.canvas,t)},removeClass:function(t){p.removeClass(this.canvas,t)},updateClasses:function(t,e){p.updateClasses(this.canvas,t,e)},setType:function(t,e,n){this.clearTypes(),this._jsPlumb.types=o(t)||[],l(this,e,n)},getType:function(){return this._jsPlumb.types},reapplyTypes:function(t,e){l(this,t,e)},hasType:function(t){return-1!==this._jsPlumb.types.indexOf(t)},addType:function(t,e,n){var i=o(t),r=!1;if(null!=i){for(var a=0,s=i.length;a<s;a++)this.hasType(i[a])||(this._jsPlumb.types.push(i[a]),r=!0);r&&l(this,e,n)}},removeType:function(t,e,n){var i=o(t),r=!1,a=function(t){var e=this._jsPlumb.types.indexOf(t);return-1!==e&&(c(this,e),this._jsPlumb.types.splice(e,1),!0)}.bind(this);if(null!=i){for(var s=0,u=i.length;s<u;s++)r=a(i[s])||r;r&&l(this,e,n)}},clearTypes:function(t,e){for(var n=this._jsPlumb.types.length,i=0;i<n;i++)c(this,0),this._jsPlumb.types.splice(0,1);l(this,t,e)},toggleType:function(t,e,n){var i=o(t);if(null!=i){for(var r=0,a=i.length;r<a;r++){var s=this._jsPlumb.types.indexOf(i[r]);-1!==s?(c(this,s),this._jsPlumb.types.splice(s,1)):this._jsPlumb.types.push(i[r])}l(this,e,n)}},applyType:function(t,e){if(this.setPaintStyle(t.paintStyle,e),this.setHoverPaintStyle(t.hoverPaintStyle,e),t.parameters)for(var n in t.parameters)this.setParameter(n,t.parameters[n]);this._jsPlumb.paintStyleInUse=this.getPaintStyle()},setPaintStyle:function(t,e){this._jsPlumb.paintStyle=t,this._jsPlumb.paintStyleInUse=this._jsPlumb.paintStyle,i(this),e||this.repaint()},getPaintStyle:function(){return this._jsPlumb.paintStyle},setHoverPaintStyle:function(t,e){this._jsPlumb.hoverPaintStyle=t,i(this),e||this.repaint()},getHoverPaintStyle:function(){return this._jsPlumb.hoverPaintStyle},destroy:function(t){(t||null==this.typeId)&&(this.cleanupListeners(),this.clone=null,this._jsPlumb=null)},isHover:function(){return this._jsPlumb.hover},setHover:function(t,e,n){if(this._jsPlumb&&!this._jsPlumb.instance.currentlyDragging&&!this._jsPlumb.instance.isHoverSuspended()){this._jsPlumb.hover=t;var i=t?"addClass":"removeClass";null!=this.canvas&&(null!=this._jsPlumb.instance.hoverClass&&this._jsPlumb.instance[i](this.canvas,this._jsPlumb.instance.hoverClass),null!=this._jsPlumb.hoverClass&&this._jsPlumb.instance[i](this.canvas,this._jsPlumb.hoverClass)),null!=this._jsPlumb.hoverPaintStyle&&(this._jsPlumb.paintStyleInUse=t?this._jsPlumb.hoverPaintStyle:this._jsPlumb.paintStyle,this._jsPlumb.instance.isSuspendDrawing()||(n=n||jsPlumbUtil.uuid(),this.repaint({timestamp:n,recalc:!1}))),this.getAttachedElements&&!e&&a(this,t,jsPlumbUtil.uuid(),this)}}});var d=0,h=function(){var t=d+1;return d++,t},f=t.jsPlumbInstance=function(e){this.version="2.15.6",this.Defaults={Anchor:"Bottom",Anchors:[null,null],ConnectionsDetachable:!0,ConnectionOverlays:[],Connector:"Bezier",Container:null,DoNotThrowErrors:!1,DragOptions:{},DropOptions:{},Endpoint:"Dot",EndpointOverlays:[],Endpoints:[null,null],EndpointStyle:{fill:"#456"},EndpointStyles:[null,null],EndpointHoverStyle:null,EndpointHoverStyles:[null,null],HoverPaintStyle:null,LabelStyle:{color:"black"},ListStyle:{},LogEnabled:!1,Overlays:[],MaxConnections:1,PaintStyle:{"stroke-width":4,stroke:"#456"},ReattachConnections:!1,RenderMode:"svg",Scope:"jsPlumb_DefaultScope"},e&&p.extend(this.Defaults,e),this.logEnabled=this.Defaults.LogEnabled,this._connectionTypes={},this._endpointTypes={},n.EventGenerator.apply(this);var i=this,a=h(),o=i.bind,s={},l=1,c=function(t){if(null==t)return null;if(3===t.nodeType||8===t.nodeType)return{el:t,text:!0};var e=i.getElement(t);return{el:e,id:n.isString(t)&&null==e?t:Q(e)}};for(var d in this.getInstanceIndex=function(){return a},this.setZoom=function(t,e){return l=t,i.fire("zoom",l),e&&i.repaintEverything(),!0},this.getZoom=function(){return l},this.Defaults)s[d]=this.Defaults[d];var f,g=[];this.unbindContainer=function(){if(null!=f&&g.length>0)for(var t=0;t<g.length;t++)i.off(f,g[t][0],g[t][1])},this.setContainer=function(t){this.unbindContainer(),t=this.getElement(t),this.select().each((function(e){e.moveParent(t)})),this.selectEndpoints().each((function(e){e.moveParent(t)}));var e=f;f=t,g.length=0;for(var n={endpointclick:"endpointClick",endpointdblclick:"endpointDblClick"},a=function(t,e,r){var a=e.srcElement||e.target,o=(a&&a.parentNode?a.parentNode._jsPlumb:null)||(a?a._jsPlumb:null)||(a&&a.parentNode&&a.parentNode.parentNode?a.parentNode.parentNode._jsPlumb:null);if(o){o.fire(t,o,e);var s=r&&n[r+t]||t;i.fire(s,o.component||o,e)}},o=function(t,e,n){g.push([t,n]),i.on(f,t,e,n)},s=function(t){o(t,".jtk-connector",(function(e){a(t,e)})),o(t,".jtk-endpoint",(function(e){a(t,e,"endpoint")})),o(t,".jtk-overlay",(function(e){a(t,e)}))},l=0;l<r.length;l++)s(r[l]);for(var u in _){var c=_[u].el;c.parentNode===e&&(e.removeChild(c),f.appendChild(c))}},this.getContainer=function(){return f},this.bind=function(t,e){"ready"===t&&v?e():o.apply(i,[t,e])},i.importDefaults=function(t){for(var e in t)i.Defaults[e]=t[e];return t.Container&&i.setContainer(t.Container),i},i.restoreDefaults=function(){return i.Defaults=p.extend({},s),i};var m=null,v=!1,y=[],A={},b={},_={},w={},x={},S=!1,C=[],T=!1,M=null,k=this.Defaults.Scope,L=1,D=function(){return""+L++},E=function(t,e){f?f.appendChild(t):e?this.getElement(e).appendChild(t):this.appendToRoot(t)}.bind(this),B=function(t,e,n,r){var a={c:[],e:[]};if(!T&&(t=i.getElement(t),null!=t)){var o=Q(t),s=t.querySelectorAll(".jtk-managed");null==n&&(n=jsPlumbUtil.uuid());ft({elId:o,offset:e,recalc:!1,timestamp:n});for(var l=0;l<s.length;l++)ft({elId:s[l].getAttribute("id"),recalc:!0,timestamp:n});var u=i.router.redraw(o,e,n,null,r);if(Array.prototype.push.apply(a.c,u.c),Array.prototype.push.apply(a.e,u.e),s)for(var c=0;c<s.length;c++)u=i.router.redraw(s[c].getAttribute("id"),null,n,null,r,!0),Array.prototype.push.apply(a.c,u.c),Array.prototype.push.apply(a.e,u.e)}return a},I=function(t){return b[t]},O=function(t,e){for(var n=t.scope.split(/\s/),i=e.scope.split(/\s/),r=0;r<n.length;r++)for(var a=0;a<i.length;a++)if(i[a]===n[r])return!0;return!1},P=function(t,e){var n=p.extend({},t);for(var i in e)e[i]&&(n[i]=e[i]);return n},N=function(t,e){var r=p.extend({},t);if(e&&p.extend(r,e),r.source&&(r.source.endpoint?r.sourceEndpoint=r.source:r.source=i.getElement(r.source)),r.target&&(r.target.endpoint?r.targetEndpoint=r.target:r.target=i.getElement(r.target)),t.uuids&&(r.sourceEndpoint=I(t.uuids[0]),r.targetEndpoint=I(t.uuids[1])),r.sourceEndpoint&&r.sourceEndpoint.isFull())n.log(i,"could not add connection; source endpoint is full");else if(r.targetEndpoint&&r.targetEndpoint.isFull())n.log(i,"could not add connection; target endpoint is full");else{if(!r.type&&r.sourceEndpoint&&(r.type=r.sourceEndpoint.connectionType),r.sourceEndpoint&&r.sourceEndpoint.connectorOverlays){r.overlays=r.overlays||[];for(var a=0,o=r.sourceEndpoint.connectorOverlays.length;a<o;a++)r.overlays.push(r.sourceEndpoint.connectorOverlays[a])}r.sourceEndpoint&&r.sourceEndpoint.scope&&(r.scope=r.sourceEndpoint.scope),!r["pointer-events"]&&r.sourceEndpoint&&r.sourceEndpoint.connectorPointerEvents&&(r["pointer-events"]=r.sourceEndpoint.connectorPointerEvents);var s=function(t,e,n){var a=P(e,{anchor:r.anchors?r.anchors[n]:r.anchor,endpoint:r.endpoints?r.endpoints[n]:r.endpoint,paintStyle:r.endpointStyles?r.endpointStyles[n]:r.endpointStyle,hoverPaintStyle:r.endpointHoverStyles?r.endpointHoverStyles[n]:r.endpointHoverStyle});return i.addEndpoint(t,a)},l=function(t,e,n,i){if(r[t]&&!r[t].endpoint&&!r[t+"Endpoint"]&&!r.newConnection){var a=Q(r[t]),o=n[a];if(o=o?o[i]:null,o){if(!o.enabled)return!1;var l=p.extend({},o.def);delete l.label;var u=null!=o.endpoint&&o.endpoint._jsPlumb?o.endpoint:s(r[t],l,e);if(u.isFull())return!1;r[t+"Endpoint"]=u,!r.scope&&l.scope&&(r.scope=l.scope),o.uniqueEndpoint?o.endpoint?u.finalEndpoint=o.endpoint:(o.endpoint=u,u.setDeleteOnEmpty(!1)):u.setDeleteOnEmpty(!0),0===e&&o.def.connectorOverlays&&(r.overlays=r.overlays||[],Array.prototype.push.apply(r.overlays,o.def.connectorOverlays))}}};if(!1!==l("source",0,this.sourceEndpointDefinitions,r.type||"default")&&!1!==l("target",1,this.targetEndpointDefinitions,r.type||"default"))return r.sourceEndpoint&&r.targetEndpoint&&(O(r.sourceEndpoint,r.targetEndpoint)||(r=null)),r}}.bind(i),F=function(t){var e=i.Defaults.ConnectionType||i.getDefaultConnectionType();t._jsPlumb=i,t.newConnection=F,t.newEndpoint=R,t.endpointsByUUID=b,t.endpointsByElement=A,t.finaliseConnection=U,t.id="con_"+D();var n=new e(t);return n.isDetachable()&&(n.endpoints[0].initDraggable("_jsPlumbSource"),n.endpoints[1].initDraggable("_jsPlumbTarget")),n},U=i.finaliseConnection=function(t,e,n,r){if(e=e||{},t.suspendedEndpoint||y.push(t),t.pending=null,t.endpoints[0].isTemporarySource=!1,!1!==r&&i.router.newConnection(t),B(t.source),!e.doNotFireConnectionEvent&&!1!==e.fireEvent){var a={connection:t,source:t.source,target:t.target,sourceId:t.sourceId,targetId:t.targetId,sourceEndpoint:t.endpoints[0],targetEndpoint:t.endpoints[1]};i.fire("connection",a,n)}},R=function(t,e){var n=i.Defaults.EndpointType||p.Endpoint,r=p.extend({},t);r._jsPlumb=i,r.newConnection=F,r.newEndpoint=R,r.endpointsByUUID=b,r.endpointsByElement=A,r.fireDetachEvent=G,r.elementId=e||Q(r.source);var a=new n(r);return a.id="ep_"+D(),ht(r.elementId,r.source),p.headless||i.getDragManager().endpointAdded(r.source,e),a},j=function(t,e,n){var i=A[t];if(i&&i.length)for(var r=0,a=i.length;r<a;r++){for(var o=0,s=i[r].connections.length;o<s;o++){var l=e(i[r].connections[o]);if(l)return}n&&n(i[r])}},H=function(t,e,n){e="block"===e;var i=null;n&&(i=function(t){t.setVisible(e,!0,!0)});var r=c(t);j(r.id,(function(t){if(e&&n){var i=t.sourceId===r.id?1:0;t.endpoints[i].isVisible()&&t.setVisible(!0)}else t.setVisible(e)}),i)},Y=function(t,e){var n=null;e&&(n=function(t){var e=t.isVisible();t.setVisible(!e)}),j(t,(function(t){var e=t.isVisible();t.setVisible(!e)}),n)},z=function(t){var e=w[t];return e?{o:e,s:C[t]}:ft({elId:t})},Q=function(t,e,r){if(n.isString(t))return t;if(null==t)return null;var o=i.getAttribute(t,"id");return o&&"undefined"!==o||(2===arguments.length&&void 0!==arguments[1]?o=e:(1===arguments.length||3===arguments.length&&!arguments[2])&&(o="jsPlumb_"+a+"_"+D()),r||i.setAttribute(t,"id",o)),o};this.setConnectionBeingDragged=function(t){S=t},this.isConnectionBeingDragged=function(){return S},this.getManagedElements=function(){return _},this.connectorClass="jtk-connector",this.connectorOutlineClass="jtk-connector-outline",this.connectedClass="jtk-connected",this.hoverClass="jtk-hover",this.endpointClass="jtk-endpoint",this.endpointConnectedClass="jtk-endpoint-connected",this.endpointFullClass="jtk-endpoint-full",this.endpointDropAllowedClass="jtk-endpoint-drop-allowed",this.endpointDropForbiddenClass="jtk-endpoint-drop-forbidden",this.overlayClass="jtk-overlay",this.draggingClass="jtk-dragging",this.elementDraggingClass="jtk-element-dragging",this.sourceElementDraggingClass="jtk-source-element-dragging",this.targetElementDraggingClass="jtk-target-element-dragging",this.endpointAnchorClassPrefix="jtk-endpoint-anchor",this.hoverSourceClass="jtk-source-hover",this.hoverTargetClass="jtk-target-hover",this.dragSelectClass="jtk-drag-select",this.Anchors={},this.Connectors={svg:{}},this.Endpoints={svg:{}},this.Overlays={svg:{}},this.ConnectorRenderers={},this.SVG="svg",this.addEndpoint=function(t,e,r){r=r||{};var a=p.extend({},r);p.extend(a,e),a.endpoint=a.endpoint||i.Defaults.Endpoint,a.paintStyle=a.paintStyle||i.Defaults.EndpointStyle;for(var o=[],s=n.isArray(t)||null!=t.length&&!n.isString(t)?t:[t],l=0,u=s.length;l<u;l++){a.source=i.getElement(s[l]),ct(a.source);var c=Q(a.source),d=R(a,c),h=ht(c,a.source,null,!T).info.o;n.addToList(A,c,d),T||d.paint({anchorLoc:d.anchor.compute({xy:[h.left,h.top],wh:C[c],element:d,timestamp:M,rotation:this.getRotation(c)}),timestamp:M}),o.push(d)}return 1===o.length?o[0]:o},this.addEndpoints=function(t,e,r){for(var a=[],o=0,s=e.length;o<s;o++){var l=i.addEndpoint(t,e[o],r);n.isArray(l)?Array.prototype.push.apply(a,l):a.push(l)}return a},this.animate=function(t,e,r){if(!this.animationSupported)return!1;r=r||{};var a=i.getElement(t),o=Q(a),s=p.animEvents.step,l=p.animEvents.complete;r[s]=n.wrap(r[s],(function(){i.revalidate(o)})),r[l]=n.wrap(r[l],(function(){i.revalidate(o)})),i.doAnimate(a,e,r)},this.checkCondition=function(t,e){var r=i.getListener(t),a=!0;if(r&&r.length>0){var o=Array.prototype.slice.call(arguments,1);try{for(var s=0,l=r.length;s<l;s++)a=a&&r[s].apply(r[s],o)}catch(u){n.log(i,"cannot check condition ["+t+"]"+u)}}return a},this.connect=function(t,e){var i,r=N(t,e);if(r){if(null==r.source&&null==r.sourceEndpoint)return void n.log("Cannot establish connection - source does not exist");if(null==r.target&&null==r.targetEndpoint)return void n.log("Cannot establish connection - target does not exist");ct(r.source),i=F(r),U(i,r)}return i};var V=[{el:"source",elId:"sourceId",epDefs:"sourceEndpointDefinitions"},{el:"target",elId:"targetId",epDefs:"targetEndpointDefinitions"}],W=function(t,e,n,i){var r,a,o,s=V[n],l=t[s.elId],u=(t[s.el],t.endpoints[n]),c={index:n,originalSourceId:0===n?l:t.sourceId,newSourceId:t.sourceId,originalTargetId:1===n?l:t.targetId,newTargetId:t.targetId,connection:t};if(e.constructor===p.Endpoint)r=e,r.addConnection(t),e=r.element;else if(a=Q(e),o=this[s.epDefs][a],a===t[s.elId])r=null;else if(o)for(var d in o){if(!o[d].enabled)return;r=null!=o[d].endpoint&&o[d].endpoint._jsPlumb?o[d].endpoint:this.addEndpoint(e,o[d].def),o[d].uniqueEndpoint&&(o[d].endpoint=r),r.addConnection(t)}else r=t.makeEndpoint(0===n,e,a);return null!=r&&(u.detachFromConnection(t),t.endpoints[n]=r,t[s.el]=r.element,t[s.elId]=r.elementId,c[0===n?"newSourceId":"newTargetId"]=r.elementId,K(c),i||t.repaint()),c.element=e,c}.bind(this);this.setSource=function(t,e,n){var i=W(t,e,0,n);this.router.sourceOrTargetChanged(i.originalSourceId,i.newSourceId,t,i.el,0)},this.setTarget=function(t,e,n){var i=W(t,e,1,n);this.router.sourceOrTargetChanged(i.originalTargetId,i.newTargetId,t,i.el,1)},this.deleteEndpoint=function(t,e,n){var r="string"===typeof t?b[t]:t;return r&&i.deleteObject({endpoint:r,dontUpdateHover:e,deleteAttachedObjects:n}),i},this.deleteEveryEndpoint=function(){var t=i.setSuspendDrawing(!0);for(var e in A){var n=A[e];if(n&&n.length)for(var r=0,a=n.length;r<a;r++)i.deleteEndpoint(n[r],!0)}A={},_={},b={},w={},x={},i.router.reset();var o=i.getDragManager();return o&&o.reset(),t||i.setSuspendDrawing(!1),i};var G=function(t,e,n){var r=i.Defaults.ConnectionType||i.getDefaultConnectionType(),a=t.constructor===r,o=a?{connection:t,source:t.source,target:t.target,sourceId:t.sourceId,targetId:t.targetId,sourceEndpoint:t.endpoints[0],targetEndpoint:t.endpoints[1]}:t;e&&i.fire("connectionDetached",o,n),i.fire("internal.connectionDetached",o,n),i.router.connectionDetached(o)},K=i.fireMoveEvent=function(t,e){i.fire("connectionMoved",t,e)};this.unregisterEndpoint=function(t){for(var e in t._jsPlumb.uuid&&(b[t._jsPlumb.uuid]=null),i.router.deleteEndpoint(t),A){var n=A[e];if(n){for(var r=[],a=0,o=n.length;a<o;a++)n[a]!==t&&r.push(n[a]);A[e]=r}A[e].length<1&&delete A[e]}};var $="isDetachAllowed",q="beforeDetach",X="checkCondition";this.deleteConnection=function(t,e){return!(null==t||(e=e||{},!e.force&&!n.functionChain(!0,!1,[[t.endpoints[0],$,[t]],[t.endpoints[1],$,[t]],[t,$,[t]],[i,X,[q,t]]])))&&(t.setHover(!1),G(t,!t.pending&&!1!==e.fireEvent,e.originalEvent),t.endpoints[0].detachFromConnection(t),t.endpoints[1].detachFromConnection(t),n.removeWithFunction(y,(function(e){return t.id===e.id})),t.cleanup(),t.destroy(),!0)},this.deleteEveryConnection=function(t){t=t||{};var e=y.length,n=0;return i.batch((function(){for(var r=0;r<e;r++)n+=i.deleteConnection(y[0],t)?1:0})),n},this.deleteConnectionsForElement=function(t,e){e=e||{},t=i.getElement(t);var n=Q(t),r=A[n];if(r&&r.length)for(var a=0,o=r.length;a<o;a++)r[a].deleteEveryConnection(e);return i},this.deleteObject=function(t){var e={endpoints:{},connections:{},endpointCount:0,connectionCount:0},r=!1!==t.deleteAttachedObjects,a=function(n){null!=n&&null==e.connections[n.id]&&(t.dontUpdateHover||null==n._jsPlumb||n.setHover(!1),e.connections[n.id]=n,e.connectionCount++)},o=function(n){if(null!=n&&null==e.endpoints[n.id]&&(t.dontUpdateHover||null==n._jsPlumb||n.setHover(!1),e.endpoints[n.id]=n,e.endpointCount++,r))for(var i=0;i<n.connections.length;i++){var o=n.connections[i];a(o)}};for(var s in t.connection?a(t.connection):o(t.endpoint),e.connections){var l=e.connections[s];if(l._jsPlumb){n.removeWithFunction(y,(function(t){return l.id===t.id})),G(l,!1!==t.fireEvent&&!l.pending,t.originalEvent);var u=null==t.deleteAttachedObjects?null:!t.deleteAttachedObjects;l.endpoints[0].detachFromConnection(l,null,u),l.endpoints[1].detachFromConnection(l,null,u),l.cleanup(!0),l.destroy(!0)}}for(var c in e.endpoints){var d=e.endpoints[c];d._jsPlumb&&(i.unregisterEndpoint(d),d.cleanup(!0),d.destroy(!0))}return e};var J=function(t,e,n,i){for(var r=0,a=t.length;r<a;r++)t[r][e].apply(t[r],n);return i(t)},Z=function(t,e,n){for(var i=[],r=0,a=t.length;r<a;r++)i.push([t[r][e].apply(t[r],n),t[r]]);return i},tt=function(t,e,n){return function(){return J(t,e,arguments,n)}},et=function(t,e){return function(){return Z(t,e,arguments)}},nt=function(t,e){var n=[];if(t)if("string"===typeof t){if("*"===t)return t;n.push(t)}else if(e)n=t;else if(t.length)for(var i=0,r=t.length;i<r;i++)n.push(c(t[i]).id);else n.push(c(t).id);return n},it=function(t,e,n){return"*"===t||(t.length>0?-1!==t.indexOf(e):!n)};this.getConnections=function(t,e){t?t.constructor===String&&(t={scope:t}):t={};for(var n=t.scope||i.getDefaultScope(),r=nt(n,!0),a=nt(t.source),o=nt(t.target),s=!e&&r.length>1?{}:[],l=function(t,n){if(!e&&r.length>1){var i=s[t];null==i&&(i=s[t]=[]),i.push(n)}else s.push(n)},u=0,c=y.length;u<c;u++){var d=y[u],h=d.proxies&&d.proxies[0]?d.proxies[0].originalEp.elementId:d.sourceId,f=d.proxies&&d.proxies[1]?d.proxies[1].originalEp.elementId:d.targetId;it(r,d.scope)&&it(a,h)&&it(o,f)&&l(d.scope,d)}return s};var rt=function(t,e){return function(n){for(var i=0,r=t.length;i<r;i++)n(t[i]);return e(t)}},at=function(t){return function(e){return t[e]}},ot=function(t,e){var n,i,r={length:t.length,each:rt(t,e),get:at(t)},a=["setHover","removeAllOverlays","setLabel","addClass","addOverlay","removeOverlay","removeOverlays","showOverlay","hideOverlay","showOverlays","hideOverlays","setPaintStyle","setHoverPaintStyle","setSuspendEvents","setParameter","setParameters","setVisible","repaint","addType","toggleType","removeType","removeClass","setType","bind","unbind"],o=["getLabel","getOverlay","isHover","getParameter","getParameters","getPaintStyle","getHoverPaintStyle","isVisible","hasType","getType","isSuspendEvents"];for(n=0,i=a.length;n<i;n++)r[a[n]]=tt(t,a[n],e);for(n=0,i=o.length;n<i;n++)r[o[n]]=et(t,o[n]);return r},st=function(t){var e=ot(t,st);return p.extend(e,{setDetachable:tt(t,"setDetachable",st),setReattach:tt(t,"setReattach",st),setConnector:tt(t,"setConnector",st),delete:function(){for(var e=0,n=t.length;e<n;e++)i.deleteConnection(t[e])},isDetachable:et(t,"isDetachable"),isReattach:et(t,"isReattach")})},lt=function(t){var e=ot(t,lt);return p.extend(e,{setEnabled:tt(t,"setEnabled",lt),setAnchor:tt(t,"setAnchor",lt),isEnabled:et(t,"isEnabled"),deleteEveryConnection:function(){for(var e=0,n=t.length;e<n;e++)t[e].deleteEveryConnection()},delete:function(){for(var e=0,n=t.length;e<n;e++)i.deleteEndpoint(t[e])}})};this.select=function(t){return t=t||{},t.scope=t.scope||"*",st(t.connections||i.getConnections(t,!0))},this.selectEndpoints=function(t){t=t||{},t.scope=t.scope||"*";var e=!t.element&&!t.source&&!t.target,n=e?"*":nt(t.element),i=e?"*":nt(t.source),r=e?"*":nt(t.target),a=nt(t.scope,!0),o=[];for(var s in A){var l=it(n,s,!0),u=it(i,s,!0),c="*"!==i,d=it(r,s,!0),h="*"!==r;if(l||u||d)t:for(var f=0,p=A[s].length;f<p;f++){var g=A[s][f];if(it(a,g.scope,!0)){var m=c&&i.length>0&&!g.isSource,v=h&&r.length>0&&!g.isTarget;if(m||v)continue t;o.push(g)}}}return lt(o)},this.getAllConnections=function(){return y},this.getDefaultScope=function(){return k},this.getEndpoint=I,this.getEndpoints=function(t){return A[c(t).id]||[]},this.getDefaultEndpointType=function(){return p.Endpoint},this.getDefaultConnectionType=function(){return p.Connection},this.getId=Q,this.draw=B,this.info=c,this.appendElement=E;var ut=!1;this.isHoverSuspended=function(){return ut},this.setHoverSuspended=function(t){ut=t},this.hide=function(t,e){return H(t,"none",e),i},this.idstamp=D;var ct=function(t){if(!f&&t){var e=i.getElement(t);e.offsetParent&&i.setContainer(e.offsetParent)}},dt=function(){i.Defaults.Container&&i.setContainer(i.Defaults.Container)},ht=i.manage=function(t,e,n,r){return _[t]?r&&(_[t].info=ft({elId:t,timestamp:M,recalc:!0})):(_[t]={el:e,endpoints:[],connections:[],rotation:0},_[t].info=ft({elId:t,timestamp:M}),i.addClass(e,"jtk-managed"),n||i.fire("manageElement",{id:t,info:_[t].info,el:e})),_[t]};this.unmanage=function(t){if(_[t]){var e=_[t].el;i.removeClass(e,"jtk-managed"),delete _[t],i.fire("unmanageElement",{id:t,el:e})}},this.rotate=function(t,e,n){return _[t]&&(_[t].rotation=e,_[t].el.style.transform="rotate("+e+"deg)",_[t].el.style.transformOrigin="center center",!0!==n)?this.revalidate(t):{c:[],e:[]}},this.getRotation=function(t){return _[t]&&_[t].rotation||0};var ft=function(t){var e,n=t.timestamp,r=t.recalc,a=t.offset,o=t.elId;return T&&!n&&(n=M),!r&&n&&n===x[o]?{o:t.offset||w[o],s:C[o]}:(r||!a&&null==w[o]?(e=_[o]?_[o].el:null,null!=e&&(C[o]=i.getSize(e),w[o]=i.getOffset(e),x[o]=n)):(w[o]=a||w[o],null==C[o]&&(e=_[o].el,null!=e&&(C[o]=i.getSize(e))),x[o]=n),w[o]&&!w[o].right&&(w[o].right=w[o].left+C[o][0],w[o].bottom=w[o].top+C[o][1],w[o].width=C[o][0],w[o].height=C[o][1],w[o].centerx=w[o].left+w[o].width/2,w[o].centery=w[o].top+w[o].height/2),{o:w[o],s:C[o]})};this.updateOffset=ft,this.init=function(){v||(dt(),i.router=new t.jsPlumb.DefaultRouter(i),i.anchorManager=i.router.anchorManager,v=!0,i.fire("ready",i))}.bind(this),this.log=m,this.jsPlumbUIComponent=u,this.makeAnchor=function(){var e,r=function(e,n){if(t.jsPlumb.Anchors[e])return new t.jsPlumb.Anchors[e](n);if(!i.Defaults.DoNotThrowErrors)throw{msg:"jsPlumb: unknown anchor type '"+e+"'"}};if(0===arguments.length)return null;var a=arguments[0],o=arguments[1],s=null;if(a.compute&&a.getOrientation)return a;if("string"===typeof a)s=r(arguments[0],{elementId:o,jsPlumbInstance:i});else if(n.isArray(a))if(n.isArray(a[0])||n.isString(a[0]))2===a.length&&n.isObject(a[1])?n.isString(a[0])?(e=t.jsPlumb.extend({elementId:o,jsPlumbInstance:i},a[1]),s=r(a[0],e)):(e=t.jsPlumb.extend({elementId:o,jsPlumbInstance:i,anchors:a[0]},a[1]),s=new t.jsPlumb.DynamicAnchor(e)):s=new p.DynamicAnchor({anchors:a,selector:null,elementId:o,jsPlumbInstance:i});else{var l={x:a[0],y:a[1],orientation:a.length>=4?[a[2],a[3]]:[0,0],offsets:a.length>=6?[a[4],a[5]]:[0,0],elementId:o,jsPlumbInstance:i,cssClass:7===a.length?a[6]:null};s=new t.jsPlumb.Anchor(l),s.clone=function(){return new t.jsPlumb.Anchor(l)}}return s.id||(s.id="anchor_"+D()),s},this.makeAnchors=function(e,r,a){for(var o=[],s=0,l=e.length;s<l;s++)"string"===typeof e[s]?o.push(t.jsPlumb.Anchors[e[s]]({elementId:r,jsPlumbInstance:a})):n.isArray(e[s])&&o.push(i.makeAnchor(e[s],r,a));return o},this.makeDynamicAnchor=function(e,n){return new t.jsPlumb.DynamicAnchor({anchors:e,selector:n,elementId:null,jsPlumbInstance:i})},this.targetEndpointDefinitions={},this.sourceEndpointDefinitions={};var pt=function(t,e,n,i,r){for(var a=t.target||t.srcElement,o=!1,s=i.getSelector(e,n),l=0;l<s.length;l++)if(s[l]===a){o=!0;break}return r?!o:o},gt=function(e,r,a,o,s){var l=new u(r),c=r._jsPlumb.EndpointDropHandler({jsPlumb:i,enabled:function(){return e.def.enabled},isFull:function(){var t=i.select({target:e.id}).length;return e.def.maxConnections>0&&t>=e.def.maxConnections},element:e.el,elementId:e.id,isSource:o,isTarget:s,addClass:function(t){i.addClass(e.el,t)},removeClass:function(t){i.removeClass(e.el,t)},onDrop:function(t){var e=t.endpoints[0];e.anchor.locked=!1},isDropAllowed:function(){return l.isDropAllowed.apply(l,arguments)},isRedrop:function(t){return null!=t.suspendedElement&&null!=t.suspendedEndpoint&&t.suspendedEndpoint.element===e.el},getEndpoint:function(n){var a=e.def.endpoint;if(null==a||null==a._jsPlumb){var o=i.deriveEndpointAndAnchorSpec(n.getType().join(" "),!0),s=o.endpoints?t.jsPlumb.extend(r,{endpoint:e.def.def.endpoint||o.endpoints[1]}):r;o.anchors&&(s=t.jsPlumb.extend(s,{anchor:e.def.def.anchor||o.anchors[1]})),a=i.addEndpoint(e.el,s),a._mtNew=!0}if(r.uniqueEndpoint&&(e.def.endpoint=a),a.setDeleteOnEmpty(!0),n.isDetachable()&&a.initDraggable(),null!=a.anchor.positionFinder){var l=i.getUIPosition(arguments,i.getZoom()),u=i.getOffset(e.el),c=i.getSize(e.el),d=null==l?[0,0]:a.anchor.positionFinder(l,u,c,a.anchor.constructorParams);a.anchor.x=d[0],a.anchor.y=d[1]}return a},maybeCleanup:function(t){t._mtNew&&0===t.connections.length?i.deleteObject({endpoint:t}):delete t._mtNew}}),d=t.jsPlumb.dragEvents.drop;return a.scope=a.scope||r.scope||i.Defaults.Scope,a[d]=n.wrap(a[d],c,!0),a.rank=r.rank||0,s&&(a[t.jsPlumb.dragEvents.over]=function(){return!0}),!1===r.allowLoopback&&(a.canDrop=function(t){var n=t.getDragElement()._jsPlumbRelatedElement;return n!==e.el}),i.initDroppable(e.el,a,"internal"),c};this.makeTarget=function(e,n,r){var a=t.jsPlumb.extend({_jsPlumb:this},r);t.jsPlumb.extend(a,n);for(var o=a.maxConnections||-1,s=function(e){var n=c(e),r=n.id,s=t.jsPlumb.extend({},a.dropOptions||{}),l=a.connectionType||"default";this.targetEndpointDefinitions[r]=this.targetEndpointDefinitions[r]||{},ct(r),n.el._isJsPlumbGroup&&null==s.rank&&(s.rank=-1);var u={def:t.jsPlumb.extend({},a),uniqueEndpoint:a.uniqueEndpoint,maxConnections:o,enabled:!0};a.createEndpoint&&(u.uniqueEndpoint=!0,u.endpoint=i.addEndpoint(e,u.def),u.endpoint.setDeleteOnEmpty(!1)),n.def=u,this.targetEndpointDefinitions[r][l]=u,gt(n,a,s,!0===a.isSource,!0),n.el._katavorioDrop[n.el._katavorioDrop.length-1].targetDef=u}.bind(this),l=e.length&&e.constructor!==String?e:[e],u=0,d=l.length;u<d;u++)s(l[u]);return this},this.unmakeTarget=function(t,e){var n=c(t);return i.destroyDroppable(n.el,"internal"),e||delete this.targetEndpointDefinitions[n.id],this},this.makeSource=function(e,r,a){var o=t.jsPlumb.extend({_jsPlumb:this},a);t.jsPlumb.extend(o,r);var s=o.connectionType||"default",u=i.deriveEndpointAndAnchorSpec(s);o.endpoint=o.endpoint||u.endpoints[0],o.anchor=o.anchor||u.anchors[0];for(var d=o.maxConnections||-1,h=o.onMaxConnections,f=function(r){var a=r.id,u=this.getElement(r.el);this.sourceEndpointDefinitions[a]=this.sourceEndpointDefinitions[a]||{},ct(a);var c={def:t.jsPlumb.extend({},o),uniqueEndpoint:o.uniqueEndpoint,maxConnections:d,enabled:!0};o.createEndpoint&&(c.uniqueEndpoint=!0,c.endpoint=i.addEndpoint(e,c.def),c.endpoint.setDeleteOnEmpty(!1)),this.sourceEndpointDefinitions[a][s]=c,r.def=c;var f=t.jsPlumb.dragEvents.stop,p=t.jsPlumb.dragEvents.drag,g=t.jsPlumb.extend({},o.dragOptions||{}),m=g.drag,v=g.stop,y=null,A=!1;g.scope=g.scope||o.scope,g[p]=n.wrap(g[p],(function(){m&&m.apply(this,arguments),A=!1})),g[f]=n.wrap(g[f],function(){if(v&&v.apply(this,arguments),this.currentlyDragging=!1,null!=y._jsPlumb){var t=o.anchor||this.Defaults.Anchor,e=y.anchor,n=y.connections[0],r=this.makeAnchor(t,a,this),s=y.element;if(null!=r.positionFinder){var l=i.getOffset(s),u=this.getSize(s),c={left:l.left+e.x*u[0],top:l.top+e.y*u[1]},d=r.positionFinder(c,l,u,r.constructorParams);r.x=d[0],r.y=d[1]}y.setAnchor(r,!0),y.repaint(),this.repaint(y.elementId),null!=n&&this.repaint(n.targetId)}}.bind(this));var b=function(e){if(3!==e.which&&2!==e.button){a=this.getId(this.getElement(r.el));var c=this.sourceEndpointDefinitions[a][s];if(c.enabled){if(o.filter){var f=n.isString(o.filter)?pt(e,r.el,o.filter,this,o.filterExclude):o.filter(e,r.el);if(!1===f)return}var p=this.select({source:a}).length;if(c.maxConnections>=0&&p>=c.maxConnections)return h&&h({element:r.el,maxConnections:d},e),!1;var m=t.jsPlumb.getPositionOnElement(e,u,l),v={};t.jsPlumb.extend(v,c.def),v.isTemporarySource=!0,v.anchor=[m[0],m[1],0,0],v.dragOptions=g,c.def.scope&&(v.scope=c.def.scope),y=this.addEndpoint(a,v),A=!0,y.setDeleteOnEmpty(!0),c.uniqueEndpoint&&(c.endpoint?y.finalEndpoint=c.endpoint:(c.endpoint=y,y.setDeleteOnEmpty(!1)));var b=function(){i.off(y.canvas,"mouseup",b),i.off(r.el,"mouseup",b),A&&(A=!1,i.deleteEndpoint(y))};i.on(y.canvas,"mouseup",b),i.on(r.el,"mouseup",b);var _={};if(c.def.extract)for(var w in c.def.extract){var x=(e.srcElement||e.target).getAttribute(w);x&&(_[c.def.extract[w]]=x)}i.trigger(y.canvas,"mousedown",e,_),n.consume(e)}}}.bind(this);this.on(r.el,"mousedown",b),c.trigger=b,o.filter&&(n.isString(o.filter)||n.isFunction(o.filter))&&i.setDragFilter(r.el,o.filter);var _=t.jsPlumb.extend({},o.dropOptions||{});gt(r,o,_,!0,!0===o.isTarget)}.bind(this),p=e.length&&e.constructor!==String?e:[e],g=0,m=p.length;g<m;g++)f(c(p[g]));return this},this.unmakeSource=function(t,e,n){var r=c(t);i.destroyDroppable(r.el,"internal");var a=this.sourceEndpointDefinitions[r.id];if(a)for(var o in a)if(null==e||e===o){var s=a[o].trigger;s&&i.off(r.el,"mousedown",s),n||delete this.sourceEndpointDefinitions[r.id][o]}return this},this.unmakeEverySource=function(){for(var t in this.sourceEndpointDefinitions)i.unmakeSource(t,null,!0);return this.sourceEndpointDefinitions={},this};var mt=function(t,e,i){e=n.isArray(e)?e:[e];var r=Q(t);i=i||"default";for(var a=0;a<e.length;a++){var o=this[e[a]][r];if(o&&o[i])return o[i].def.scope||this.Defaults.Scope}}.bind(this),vt=function(t,e,i,r){i=n.isArray(i)?i:[i];var a=Q(t);r=r||"default";for(var o=0;o<i.length;o++){var s=this[i[o]][a];s&&s[r]&&(s[r].def.scope=e)}}.bind(this);this.getScope=function(t,e){return mt(t,["sourceEndpointDefinitions","targetEndpointDefinitions"])},this.getSourceScope=function(t){return mt(t,"sourceEndpointDefinitions")},this.getTargetScope=function(t){return mt(t,"targetEndpointDefinitions")},this.setScope=function(t,e,n){this.setSourceScope(t,e,n),this.setTargetScope(t,e,n)},this.setSourceScope=function(t,e,n){vt(t,e,"sourceEndpointDefinitions",n),this.setDragScope(t,e)},this.setTargetScope=function(t,e,n){vt(t,e,"targetEndpointDefinitions",n),this.setDropScope(t,e)},this.unmakeEveryTarget=function(){for(var t in this.targetEndpointDefinitions)i.unmakeTarget(t,!0);return this.targetEndpointDefinitions={},this};var yt=function(t,e,r,a,o){var s,l,u,d="source"===t?this.sourceEndpointDefinitions:this.targetEndpointDefinitions;if(o=o||"default",e.length&&!n.isString(e)){s=[];for(var h=0,f=e.length;h<f;h++)l=c(e[h]),d[l.id]&&d[l.id][o]&&(s[h]=d[l.id][o].enabled,u=a?!s[h]:r,d[l.id][o].enabled=u,i[u?"removeClass":"addClass"](l.el,"jtk-"+t+"-disabled"))}else{l=c(e);var p=l.id;d[p]&&d[p][o]&&(s=d[p][o].enabled,u=a?!s:r,d[p][o].enabled=u,i[u?"removeClass":"addClass"](l.el,"jtk-"+t+"-disabled"))}return s}.bind(this),At=function(t,e){if(null!=t){if(n.isString(t)||!t.length)return e.apply(this,[t]);if(t.length)return e.apply(this,[t[0]])}}.bind(this);this.toggleSourceEnabled=function(t,e){return yt("source",t,null,!0,e),this.isSourceEnabled(t,e)},this.setSourceEnabled=function(t,e,n){return yt("source",t,e,null,n)},this.isSource=function(t,e){return e=e||"default",At(t,function(t){var n=this.sourceEndpointDefinitions[c(t).id];return null!=n&&null!=n[e]}.bind(this))},this.isSourceEnabled=function(t,e){return e=e||"default",At(t,function(t){var n=this.sourceEndpointDefinitions[c(t).id];return n&&n[e]&&!0===n[e].enabled}.bind(this))},this.toggleTargetEnabled=function(t,e){return yt("target",t,null,!0,e),this.isTargetEnabled(t,e)},this.isTarget=function(t,e){return e=e||"default",At(t,function(t){var n=this.targetEndpointDefinitions[c(t).id];return null!=n&&null!=n[e]}.bind(this))},this.isTargetEnabled=function(t,e){return e=e||"default",At(t,function(t){var n=this.targetEndpointDefinitions[c(t).id];return n&&n[e]&&!0===n[e].enabled}.bind(this))},this.setTargetEnabled=function(t,e,n){return yt("target",t,e,null,n)},this.ready=function(t){i.bind("ready",t)};var bt=function(t,e){if("object"===typeof t&&t.length)for(var n=0,r=t.length;n<r;n++)e(t[n]);else e(t);return i};this.repaint=function(t,e,n){return bt(t,(function(t){B(t,e,n)}))},this.revalidate=function(t,e,n){var r=n?t:i.getId(t);i.updateOffset({elId:r,recalc:!0,timestamp:e});var a=i.getDragManager();return a&&a.updateOffsets(r),B(t,null,e)},this.repaintEverything=function(){var t,e=jsPlumbUtil.uuid();for(t in A)i.updateOffset({elId:t,recalc:!0,timestamp:e});for(t in A)B(t,null,e);return this},this.removeAllEndpoints=function(t,e,n){n=n||[];var r=function(t){var a,o,s=c(t),l=A[s.id];if(l)for(n.push(s),a=0,o=l.length;a<o;a++)i.deleteEndpoint(l[a],!1);if(delete A[s.id],e&&s.el&&3!==s.el.nodeType&&8!==s.el.nodeType)for(a=0,o=s.el.childNodes.length;a<o;a++)r(s.el.childNodes[a])};return r(t),this};var _t=function(t,e){i.removeAllEndpoints(t.id,!0,e);for(var n=i.getDragManager(),r=function(t){n&&n.elementRemoved(t.id),i.router.elementRemoved(t.id),i.isSource(t.el)&&i.unmakeSource(t.el),i.isTarget(t.el)&&i.unmakeTarget(t.el),i.destroyDraggable(t.el),i.destroyDroppable(t.el),delete i.floatingConnections[t.id],delete _[t.id],delete w[t.id],t.el&&(i.removeElement(t.el),t.el._jsPlumb=null)},a=1;a<e.length;a++)r(e[a]);r(t)};this.remove=function(t,e){var n=c(t),r=[];return n.text&&n.el.parentNode?n.el.parentNode.removeChild(n.el):n.id&&i.batch((function(){_t(n,r)}),!0===e),i},this.empty=function(t,e){var n=[],r=function(t,e){var i=c(t);if(i.text)i.el.parentNode.removeChild(i.el);else if(i.el){while(i.el.childNodes.length>0)r(i.el.childNodes[0]);e||_t(i,n)}};return i.batch((function(){r(t,!0)}),!1===e),i},this.reset=function(t){i.silently(function(){ut=!1,i.removeAllGroups(),i.removeGroupManager(),i.deleteEveryEndpoint(),t||i.unbind(),this.targetEndpointDefinitions={},this.sourceEndpointDefinitions={},y.length=0,this.doReset&&this.doReset()}.bind(this))},this.destroy=function(){this.reset(),f=null,g=null};var wt=function(t){t.canvas&&t.canvas.parentNode&&t.canvas.parentNode.removeChild(t.canvas),t.cleanup(),t.destroy()};this.clear=function(){i.select().each(wt),i.selectEndpoints().each(wt),A={},b={}},this.setDefaultScope=function(t){return k=t,i},this.deriveEndpointAndAnchorSpec=function(t,e){for(var n=((e?"":"default ")+t).split(/[\s]/),r=null,a=null,o=null,s=null,l=0;l<n.length;l++){var u=i.getType(n[l],"connection");u&&(u.endpoints&&(r=u.endpoints),u.endpoint&&(a=u.endpoint),u.anchors&&(s=u.anchors),u.anchor&&(o=u.anchor))}return{endpoints:r||[a,a],anchors:s||[o,o]}},this.setId=function(t,e,i){var r;n.isString(t)?r=t:(t=this.getElement(t),r=this.getId(t));var a=this.getConnections({source:r,scope:"*"},!0),o=this.getConnections({target:r,scope:"*"},!0);e=""+e,i?t=this.getElement(e):(t=this.getElement(r),this.setAttribute(t,"id",e)),A[e]=A[r]||[];for(var s=0,l=A[e].length;s<l;s++)A[e][s].setElementId(e),A[e][s].setReferenceElement(t);delete A[r],this.sourceEndpointDefinitions[e]=this.sourceEndpointDefinitions[r],delete this.sourceEndpointDefinitions[r],this.targetEndpointDefinitions[e]=this.targetEndpointDefinitions[r],delete this.targetEndpointDefinitions[r],this.router.changeId(r,e);var u=this.getDragManager();u&&u.changeId(r,e),_[e]=_[r],delete _[r];var c=function(n,i,r){for(var a=0,o=n.length;a<o;a++)n[a].endpoints[i].setElementId(e),n[a].endpoints[i].setReferenceElement(t),n[a][r+"Id"]=e,n[a][r]=t};c(a,0,"source"),c(o,1,"target"),this.repaint(e)},this.setDebugLog=function(t){m=t},this.setSuspendDrawing=function(t,e){var n=T;return T=t,M=t?(new Date).getTime():null,e&&this.repaintEverything(),n},this.isSuspendDrawing=function(){return T},this.getSuspendedAt=function(){return M},this.batch=function(t,e){var i=this.isSuspendDrawing();i||this.setSuspendDrawing(!0);try{t()}catch(r){n.log("Function run while suspended failed",r)}i||this.setSuspendDrawing(!1,!e)},this.doWhileSuspended=this.batch,this.getCachedData=z,this.show=function(t,e){return H(t,"block",e),i},this.toggleVisible=Y,this.addListener=this.bind;var xt=[];this.registerFloatingConnection=function(t,e,i){xt[t.id]=e,n.addToList(A,t.id,i)},this.getFloatingConnectionFor=function(t){return xt[t]},this.listManager=new t.jsPlumbListManager(this,this.Defaults.ListStyle)};n.extend(t.jsPlumbInstance,n.EventGenerator,{setAttribute:function(t,e,n){this.setAttribute(t,e,n)},getAttribute:function(e,n){return this.getAttribute(t.jsPlumb.getElement(e),n)},convertToFullOverlaySpec:function(t){return n.isString(t)&&(t=[t,{}]),t[1].id=t[1].id||n.uuid(),t},registerConnectionType:function(e,n){if(this._connectionTypes[e]=t.jsPlumb.extend({},n),n.overlays){for(var i={},r=0;r<n.overlays.length;r++){var a=this.convertToFullOverlaySpec(n.overlays[r]);i[a[1].id]=a}this._connectionTypes[e].overlays=i}},registerConnectionTypes:function(t){for(var e in t)this.registerConnectionType(e,t[e])},registerEndpointType:function(e,n){if(this._endpointTypes[e]=t.jsPlumb.extend({},n),n.overlays){for(var i={},r=0;r<n.overlays.length;r++){var a=this.convertToFullOverlaySpec(n.overlays[r]);i[a[1].id]=a}this._endpointTypes[e].overlays=i}},registerEndpointTypes:function(t){for(var e in t)this.registerEndpointType(e,t[e])},getType:function(t,e){return"connection"===e?this._connectionTypes[t]:this._endpointTypes[t]},setIdChanged:function(t,e){this.setId(t,e,!0)},setParent:function(t,e){var n=this.getElement(t),i=this.getId(n),r=this.getElement(e),a=this.getId(r),o=this.getDragManager();n.parentNode.removeChild(n),r.appendChild(n),o&&o.setParent(n,i,r,a)},extend:function(t,e,n){var i;if(n)for(i=0;i<n.length;i++)t[n[i]]=e[n[i]];else for(i in e)t[i]=e[i];return t},floatingConnections:{},getFloatingAnchorIndex:function(t){return t.endpoints[0].isFloating()?0:t.endpoints[1].isFloating()?1:-1},proxyConnection:function(t,e,n,i,r,a){var o,s=t.endpoints[e].elementId,l=t.endpoints[e];t.proxies=t.proxies||[],o=t.proxies[e]?t.proxies[e].ep:this.addEndpoint(n,{endpoint:r(t,e),anchor:a(t,e),parameters:{isProxyEndpoint:!0}}),o.setDeleteOnEmpty(!0),t.proxies[e]={ep:o,originalEp:l},0===e?this.router.sourceOrTargetChanged(s,i,t,n,0):this.router.sourceOrTargetChanged(s,i,t,n,1),l.detachFromConnection(t,null,!0),o.connections=[t],t.endpoints[e]=o,l.setVisible(!1),t.setVisible(!0),this.revalidate(n)},unproxyConnection:function(t,e,n){if(null!=t._jsPlumb&&null!=t.proxies&&null!=t.proxies[e]){var i=t.proxies[e].originalEp.element,r=t.proxies[e].originalEp.elementId;t.endpoints[e]=t.proxies[e].originalEp,0===e?this.router.sourceOrTargetChanged(n,r,t,i,0):this.router.sourceOrTargetChanged(n,r,t,i,1),t.proxies[e].ep.detachFromConnection(t,null),t.proxies[e].originalEp.addConnection(t),t.isVisible()&&t.proxies[e].originalEp.setVisible(!0),delete t.proxies[e]}}});var p=new f;t.jsPlumb=p,p.getInstance=function(t,e){var n=new f(t);if(e)for(var i in e)n[i]=e[i];return n.init(),n},p.each=function(t,e){if(null!=t)if("string"===typeof t)e(p.getElement(t));else if(null!=t.length)for(var n=0;n<t.length;n++)e(p.getElement(t[n]));else e(t)},e.jsPlumb=p}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i="__label",r=function(t,n){var r={cssClass:n.cssClass,labelStyle:t.labelStyle,id:i,component:t,_jsPlumb:t._jsPlumb.instance},a=e.extend(r,n);return new(e.Overlays[t._jsPlumb.instance.getRenderMode()].Label)(a)},a=function(t,i){var r=null;if(n.isArray(i)){var a=i[0],o=e.extend({component:t,_jsPlumb:t._jsPlumb.instance},i[1]);3===i.length&&e.extend(o,i[2]),r=new(e.Overlays[t._jsPlumb.instance.getRenderMode()][a])(o)}else r=i.constructor===String?new(e.Overlays[t._jsPlumb.instance.getRenderMode()][i])({component:t,_jsPlumb:t._jsPlumb.instance}):i;return r.id=r.id||n.uuid(),t.cacheTypeItem("overlay",r,r.id),t._jsPlumb.overlays[r.id]=r,r};e.OverlayCapableJsPlumbUIComponent=function(e){t.jsPlumbUIComponent.apply(this,arguments),this._jsPlumb.overlays={},this._jsPlumb.overlayPositions={},e.label&&(this.getDefaultType().overlays[i]=["Label",{label:e.label,location:e.labelLocation||this.defaultLabelLocation||.5,labelStyle:e.labelStyle||this._jsPlumb.instance.Defaults.LabelStyle,id:i}]),this.setListenerComponent=function(t){if(this._jsPlumb)for(var e in this._jsPlumb.overlays)this._jsPlumb.overlays[e].setListenerComponent(t)}},e.OverlayCapableJsPlumbUIComponent.applyType=function(t,e){if(e.overlays){var n,i={};for(n in e.overlays){var r=t._jsPlumb.overlays[e.overlays[n][1].id];if(r)r.updateFrom(e.overlays[n][1]),i[e.overlays[n][1].id]=!0,r.reattach(t._jsPlumb.instance,t);else{var a=t.getCachedTypeItem("overlay",e.overlays[n][1].id);null!=a?(a.reattach(t._jsPlumb.instance,t),a.setVisible(!0),a.updateFrom(e.overlays[n][1]),t._jsPlumb.overlays[a.id]=a):a=t.addOverlay(e.overlays[n],!0),i[a.id]=!0}}for(n in t._jsPlumb.overlays)null==i[t._jsPlumb.overlays[n].id]&&t.removeOverlay(t._jsPlumb.overlays[n].id,!0)}},n.extend(e.OverlayCapableJsPlumbUIComponent,t.jsPlumbUIComponent,{setHover:function(t,e){if(this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged())for(var n in this._jsPlumb.overlays)this._jsPlumb.overlays[n][t?"addClass":"removeClass"](this._jsPlumb.instance.hoverClass)},addOverlay:function(t,e){var i=a(this,t);if(this.getData&&"Label"===i.type&&n.isArray(t)){var r=this.getData(),o=t[1];if(r){var s=o.labelLocationAttribute||"labelLocation",l=r?r[s]:null;l&&(i.loc=l)}}return e||this.repaint(),i},getOverlay:function(t){return this._jsPlumb.overlays[t]},getOverlays:function(){return this._jsPlumb.overlays},hideOverlay:function(t){var e=this.getOverlay(t);e&&e.hide()},hideOverlays:function(){for(var t in this._jsPlumb.overlays)this._jsPlumb.overlays[t].hide()},showOverlay:function(t){var e=this.getOverlay(t);e&&e.show()},showOverlays:function(){for(var t in this._jsPlumb.overlays)this._jsPlumb.overlays[t].show()},removeAllOverlays:function(t){for(var e in this._jsPlumb.overlays)this._jsPlumb.overlays[e].cleanup&&this._jsPlumb.overlays[e].cleanup();this._jsPlumb.overlays={},this._jsPlumb.overlayPositions=null,this._jsPlumb.overlayPlacements={},t||this.repaint()},removeOverlay:function(t,e){var n=this._jsPlumb.overlays[t];n&&(n.setVisible(!1),!e&&n.cleanup&&n.cleanup(),delete this._jsPlumb.overlays[t],this._jsPlumb.overlayPositions&&delete this._jsPlumb.overlayPositions[t],this._jsPlumb.overlayPlacements&&delete this._jsPlumb.overlayPlacements[t])},removeOverlays:function(){for(var t=0,e=arguments.length;t<e;t++)this.removeOverlay(arguments[t])},moveParent:function(t){if(this.bgCanvas&&(this.bgCanvas.parentNode.removeChild(this.bgCanvas),t.appendChild(this.bgCanvas)),this.canvas&&this.canvas.parentNode)for(var e in this.canvas.parentNode.removeChild(this.canvas),t.appendChild(this.canvas),this._jsPlumb.overlays)if(this._jsPlumb.overlays[e].isAppendedAtTopLevel){var n=this._jsPlumb.overlays[e].getElement();n.parentNode.removeChild(n),t.appendChild(n)}},getLabel:function(){var t=this.getOverlay(i);return null!=t?t.getLabel():null},getLabelOverlay:function(){return this.getOverlay(i)},setLabel:function(t){var e=this.getOverlay(i);if(e)t.constructor===String||t.constructor===Function?e.setLabel(t):(t.label&&e.setLabel(t.label),t.location&&e.setLocation(t.location));else{var n=t.constructor===String||t.constructor===Function?{label:t}:t;e=r(this,n),this._jsPlumb.overlays[i]=e}this._jsPlumb.instance.isSuspendDrawing()||this.repaint()},cleanup:function(t){for(var e in this._jsPlumb.overlays)this._jsPlumb.overlays[e].cleanup(t),this._jsPlumb.overlays[e].destroy(t);t&&(this._jsPlumb.overlays={},this._jsPlumb.overlayPositions=null)},setVisible:function(t){this[t?"showOverlays":"hideOverlays"]()},setAbsoluteOverlayPosition:function(t,e){this._jsPlumb.overlayPositions[t.id]=e},getAbsoluteOverlayPosition:function(t){return this._jsPlumb.overlayPositions?this._jsPlumb.overlayPositions[t.id]:null},_clazzManip:function(t,e,n){if(!n)for(var i in this._jsPlumb.overlays)this._jsPlumb.overlays[i][t+"Class"](e)},addClass:function(t,e){this._clazzManip("add",t,e)},removeClass:function(t,e){this._clazzManip("remove",t,e)}})}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i=function(t,e,n){var i=!1;return{drag:function(){if(i)return i=!1,!0;if(e.element){var r=n.getUIPosition(arguments,n.getZoom());null!=r&&n.setPosition(e.element,r),n.repaint(e.element,r),t.paint({anchorPoint:t.anchor.getCurrentLocation({element:t})})}},stopDrag:function(){i=!0}}},r=function(t,e,n,i){var r=e.createElement("div",{position:"absolute"});e.appendElement(r);var a=e.getId(r);e.setPosition(r,n),r.style.width=i[0]+"px",r.style.height=i[1]+"px",e.manage(a,r,!0),t.id=a,t.element=r},a=function(t,n,i,r,a,o,s,l){var u=new e.FloatingAnchor({reference:n,referenceCanvas:r,jsPlumbInstance:o});return s({paintStyle:t,endpoint:i,anchor:u,source:a,scope:l})},o=["connectorStyle","connectorHoverStyle","connectorOverlays","connector","connectionType","connectorClass","connectorHoverClass"],s=function(t,e){var n=0;if(null!=e)for(var i=0;i<t.connections.length;i++)if(t.connections[i].sourceId===e||t.connections[i].targetId===e){n=i;break}return t.connections[n]};e.Endpoint=function(t){var l=t._jsPlumb,u=t.newConnection,c=t.newEndpoint;this.idPrefix="_jsplumb_e_",this.defaultLabelLocation=[.5,.5],this.defaultOverlayKeys=["Overlays","EndpointOverlays"],e.OverlayCapableJsPlumbUIComponent.apply(this,arguments),this.appendToDefaultType({connectionType:t.connectionType,maxConnections:null==t.maxConnections?this._jsPlumb.instance.Defaults.MaxConnections:t.maxConnections,paintStyle:t.endpointStyle||t.paintStyle||t.style||this._jsPlumb.instance.Defaults.EndpointStyle||e.Defaults.EndpointStyle,hoverPaintStyle:t.endpointHoverStyle||t.hoverPaintStyle||this._jsPlumb.instance.Defaults.EndpointHoverStyle||e.Defaults.EndpointHoverStyle,connectorStyle:t.connectorStyle,connectorHoverStyle:t.connectorHoverStyle,connectorClass:t.connectorClass,connectorHoverClass:t.connectorHoverClass,connectorOverlays:t.connectorOverlays,connector:t.connector,connectorTooltip:t.connectorTooltip}),this._jsPlumb.enabled=!(!1===t.enabled),this._jsPlumb.visible=!0,this.element=e.getElement(t.source),this._jsPlumb.uuid=t.uuid,this._jsPlumb.floatingEndpoint=null;var d=null;this._jsPlumb.uuid&&(t.endpointsByUUID[this._jsPlumb.uuid]=this),this.elementId=t.elementId,this.dragProxy=t.dragProxy,this._jsPlumb.connectionCost=t.connectionCost,this._jsPlumb.connectionsDirected=t.connectionsDirected,this._jsPlumb.currentAnchorClass="",this._jsPlumb.events={};var h=!0===t.deleteOnEmpty;this.setDeleteOnEmpty=function(t){h=t};var f=function(){var t=l.endpointAnchorClassPrefix+"-"+this._jsPlumb.currentAnchorClass;this._jsPlumb.currentAnchorClass=this.anchor.getCssClass();var n=l.endpointAnchorClassPrefix+(this._jsPlumb.currentAnchorClass?"-"+this._jsPlumb.currentAnchorClass:"");this.removeClass(t),this.addClass(n),e.updateClasses(this.element,n,t)}.bind(this);this.prepareAnchor=function(t){var e=this._jsPlumb.instance.makeAnchor(t,this.elementId,l);return e.bind("anchorChanged",function(t){this.fire("anchorChanged",{endpoint:this,anchor:t}),f()}.bind(this)),e},this.setPreparedAnchor=function(t,e){return this._jsPlumb.instance.continuousAnchorFactory.clear(this.elementId),this.anchor=t,f(),e||this._jsPlumb.instance.repaint(this.elementId),this},this.setAnchor=function(t,e){var n=this.prepareAnchor(t);return this.setPreparedAnchor(n,e),this};var p=function(t){if(this.connections.length>0)for(var e=0;e<this.connections.length;e++)this.connections[e].setHover(t,!1);else this.setHover(t)}.bind(this);this.bind("mouseover",(function(){p(!0)})),this.bind("mouseout",(function(){p(!1)})),t._transient||this._jsPlumb.instance.router.addEndpoint(this,this.elementId),this.prepareEndpoint=function(i,r){var a,o=function(t,n){var i=l.getRenderMode();if(e.Endpoints[i][t])return new e.Endpoints[i][t](n);if(!l.Defaults.DoNotThrowErrors)throw{msg:"jsPlumb: unknown endpoint type '"+t+"'"}},s={_jsPlumb:this._jsPlumb.instance,cssClass:t.cssClass,container:t.container,tooltip:t.tooltip,connectorTooltip:t.connectorTooltip,endpoint:this};return n.isString(i)?a=o(i,s):n.isArray(i)?(s=n.merge(i[1],s),a=o(i[0],s)):a=i.clone(),a.clone=function(){return n.isString(i)?o(i,s):n.isArray(i)?(s=n.merge(i[1],s),o(i[0],s)):void 0}.bind(this),a.typeId=r,a},this.setEndpoint=function(t,e){var n=this.prepareEndpoint(t);this.setPreparedEndpoint(n,!0)},this.setPreparedEndpoint=function(t,e){null!=this.endpoint&&(this.endpoint.cleanup(),this.endpoint.destroy()),this.endpoint=t,this.type=this.endpoint.type,this.canvas=this.endpoint.canvas},e.extend(this,t,o),this.isSource=t.isSource||!1,this.isTemporarySource=t.isTemporarySource||!1,this.isTarget=t.isTarget||!1,this.connections=t.connections||[],this.connectorPointerEvents=t["connector-pointer-events"],this.scope=t.scope||l.getDefaultScope(),this.timestamp=null,this.reattachConnections=t.reattach||l.Defaults.ReattachConnections,this.connectionsDetachable=l.Defaults.ConnectionsDetachable,!1!==t.connectionsDetachable&&!1!==t.detachable||(this.connectionsDetachable=!1),this.dragAllowedWhenFull=!1!==t.dragAllowedWhenFull,t.onMaxConnections&&this.bind("maxConnections",t.onMaxConnections),this.addConnection=function(t){this.connections.push(t),this[(this.connections.length>0?"add":"remove")+"Class"](l.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](l.endpointFullClass)},this.detachFromConnection=function(t,e,n){e=null==e?this.connections.indexOf(t):e,e>=0&&(this.connections.splice(e,1),this[(this.connections.length>0?"add":"remove")+"Class"](l.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](l.endpointFullClass)),!n&&h&&0===this.connections.length&&l.deleteObject({endpoint:this,fireEvent:!1,deleteAttachedObjects:!0!==n})},this.deleteEveryConnection=function(t){for(var e=this.connections.length,n=0;n<e;n++)l.deleteConnection(this.connections[0],t)},this.detachFrom=function(t,e,n){for(var i=[],r=0;r<this.connections.length;r++)this.connections[r].endpoints[1]!==t&&this.connections[r].endpoints[0]!==t||i.push(this.connections[r]);for(var a=0,o=i.length;a<o;a++)l.deleteConnection(i[0]);return this},this.getElement=function(){return this.element},this.setElement=function(i){var r=this._jsPlumb.instance.getId(i),a=this.elementId;return n.removeWithFunction(t.endpointsByElement[this.elementId],function(t){return t.id===this.id}.bind(this)),this.element=e.getElement(i),this.elementId=l.getId(this.element),l.router.rehomeEndpoint(this,a,this.element),l.dragManager.endpointAdded(this.element),n.addToList(t.endpointsByElement,r,this),this},this.makeInPlaceCopy=function(){var e=this.anchor.getCurrentLocation({element:this}),n=this.anchor.getOrientation(this),i=this.anchor.getCssClass(),r={bind:function(){},compute:function(){return[e[0],e[1]]},getCurrentLocation:function(){return[e[0],e[1]]},getOrientation:function(){return n},getCssClass:function(){return i}};return c({dropOptions:t.dropOptions,anchor:r,source:this.element,paintStyle:this.getPaintStyle(),endpoint:t.hideOnDrag?"Blank":this.endpoint,_transient:!0,scope:this.scope,reference:this})},this.connectorSelector=function(){return this.connections[0]},this.setStyle=this.setPaintStyle,this.paint=function(t){t=t||{};var e=t.timestamp,n=!(!1===t.recalc);if(!e||this.timestamp!==e){var i=l.updateOffset({elId:this.elementId,timestamp:e}),r=t.offset?t.offset.o:i.o;if(null!=r){var a=t.anchorPoint,o=t.connectorPaintStyle;if(null==a){var u=t.dimensions||i.s,c={xy:[r.left,r.top],wh:u,element:this,timestamp:e};if(n&&this.anchor.isDynamic&&this.connections.length>0){var d=s(this,t.elementWithPrecedence),h=d.endpoints[0]===this?1:0,f=0===h?d.sourceId:d.targetId,p=l.getCachedData(f),g=p.o,m=p.s;c.index=0===h?1:0,c.connection=d,c.txy=[g.left,g.top],c.twh=m,c.tElement=d.endpoints[h],c.tRotation=l.getRotation(f)}else this.connections.length>0&&(c.connection=this.connections[0]);c.rotation=l.getRotation(this.elementId),a=this.anchor.compute(c)}for(var v in this.endpoint.compute(a,this.anchor.getOrientation(this),this._jsPlumb.paintStyleInUse,o||this.paintStyleInUse),this.endpoint.paint(this._jsPlumb.paintStyleInUse,this.anchor),this.timestamp=e,this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(v)){var y=this._jsPlumb.overlays[v];y.isVisible()&&(this._jsPlumb.overlayPlacements[v]=y.draw(this.endpoint,this._jsPlumb.paintStyleInUse),y.paint(this._jsPlumb.overlayPlacements[v]))}}}},this.getTypeDescriptor=function(){return"endpoint"},this.isVisible=function(){return this._jsPlumb.visible},this.repaint=this.paint;var g=!1;this.initDraggable=function(){if(!g&&e.isDragSupported(this.element)){var o,s={id:null,element:null},h=null,f=!1,p=null,m=i(this,s,l),v=t.dragOptions||{},y={},A=e.dragEvents.start,b=e.dragEvents.stop,_=e.dragEvents.drag,w=e.dragEvents.beforeStart,x=function(t){o=t.e.payload||{}},S=function(n){h=this.connectorSelector();var i=!0;this.isEnabled()||(i=!1),null!=h||this.isSource||this.isTemporarySource||(i=!1),!this.isSource||!this.isFull()||null!=h&&this.dragAllowedWhenFull||(i=!1),null==h||h.isDetachable(this)||(this.isFull()?i=!1:h=null);var d=l.checkCondition(null==h?"beforeDrag":"beforeStartDetach",{endpoint:this,source:this.element,sourceId:this.elementId,connection:h});if(!1===d?i=!1:"object"===typeof d?e.extend(d,o||{}):d=o||{},!1===i)return l.stopDrag&&l.stopDrag(this.canvas),m.stopDrag(),!1;for(var g=0;g<this.connections.length;g++)this.connections[g].setHover(!1);this.addClass("endpointDrag"),l.setConnectionBeingDragged(!0),h&&!this.isFull()&&this.isSource&&(h=null),l.updateOffset({elId:this.elementId});var v=this._jsPlumb.instance.getOffset(this.canvas),y=this.canvas,A=this._jsPlumb.instance.getSize(this.canvas);r(s,l,v,A),l.setAttributes(this.canvas,{dragId:s.id,elId:this.elementId});var b=this.dragProxy||this.endpoint;if(null==this.dragProxy&&null!=this.connectionType){var _=this._jsPlumb.instance.deriveEndpointAndAnchorSpec(this.connectionType);_.endpoints[1]&&(b=_.endpoints[1])}var w=this._jsPlumb.instance.makeAnchor("Center");w.isFloating=!0,this._jsPlumb.floatingEndpoint=a(this.getPaintStyle(),w,b,this.canvas,s.element,l,c,this.scope);var x=this._jsPlumb.floatingEndpoint.anchor;if(null==h)this.setHover(!1,!1),h=u({sourceEndpoint:this,targetEndpoint:this._jsPlumb.floatingEndpoint,source:this.element,target:s.element,anchors:[this.anchor,this._jsPlumb.floatingEndpoint.anchor],paintStyle:t.connectorStyle,hoverPaintStyle:t.connectorHoverStyle,connector:t.connector,overlays:t.connectorOverlays,type:this.connectionType,cssClass:this.connectorClass,hoverClass:this.connectorHoverClass,scope:t.scope,data:d}),h.pending=!0,h.addClass(l.draggingClass),this._jsPlumb.floatingEndpoint.addClass(l.draggingClass),this._jsPlumb.floatingEndpoint.anchor=x,l.fire("connectionDrag",h),l.router.newConnection(h);else{f=!0,h.setHover(!1);var S=h.endpoints[0].id===this.id?0:1;this.detachFromConnection(h,null,!0);var C=l.getDragScope(y);l.setAttribute(this.canvas,"originalScope",C),l.fire("connectionDrag",h),0===S?(p=[h.source,h.sourceId,y,C],l.router.sourceOrTargetChanged(h.endpoints[S].elementId,s.id,h,s.element,0)):(p=[h.target,h.targetId,y,C],l.router.sourceOrTargetChanged(h.endpoints[S].elementId,s.id,h,s.element,1)),h.suspendedEndpoint=h.endpoints[S],h.suspendedElement=h.endpoints[S].getElement(),h.suspendedElementId=h.endpoints[S].elementId,h.suspendedElementType=0===S?"source":"target",h.suspendedEndpoint.setHover(!1),this._jsPlumb.floatingEndpoint.referenceEndpoint=h.suspendedEndpoint,h.endpoints[S]=this._jsPlumb.floatingEndpoint,h.addClass(l.draggingClass),this._jsPlumb.floatingEndpoint.addClass(l.draggingClass)}l.registerFloatingConnection(s,h,this._jsPlumb.floatingEndpoint),l.currentlyDragging=!0}.bind(this),C=function(){if(l.setConnectionBeingDragged(!1),h&&null!=h.endpoints){var t=l.getDropEvent(arguments),e=l.getFloatingAnchorIndex(h);if(h.endpoints[0===e?1:0].anchor.locked=!1,h.removeClass(l.draggingClass),this._jsPlumb&&(h.deleteConnectionNow||h.endpoints[e]===this._jsPlumb.floatingEndpoint)&&f&&h.suspendedEndpoint){0===e?(h.floatingElement=h.source,h.floatingId=h.sourceId,h.floatingEndpoint=h.endpoints[0],h.floatingIndex=0,h.source=p[0],h.sourceId=p[1]):(h.floatingElement=h.target,h.floatingId=h.targetId,h.floatingEndpoint=h.endpoints[1],h.floatingIndex=1,h.target=p[0],h.targetId=p[1]);var n=this._jsPlumb.floatingEndpoint;l.setDragScope(p[2],p[3]),h.endpoints[e]=h.suspendedEndpoint,h.isReattach()||h._forceReattach||h._forceDetach||!l.deleteConnection(h,{originalEvent:t})?(h.setHover(!1),h._forceDetach=null,h._forceReattach=null,this._jsPlumb.floatingEndpoint.detachFromConnection(h),h.suspendedEndpoint.addConnection(h),1===e?l.router.sourceOrTargetChanged(h.floatingId,h.targetId,h,h.target,e):l.router.sourceOrTargetChanged(h.floatingId,h.sourceId,h,h.source,e),l.repaint(p[1])):l.deleteObject({endpoint:n})}this.deleteAfterDragStop?l.deleteObject({endpoint:this}):this._jsPlumb&&this.paint({recalc:!1}),l.fire("connectionDragStop",h,t),h.pending&&l.fire("connectionAborted",h,t),l.currentlyDragging=!1,h.suspendedElement=null,h.suspendedEndpoint=null,h=null}s&&s.element&&l.remove(s.element,!1,!1),d&&l.deleteObject({endpoint:d}),this._jsPlumb&&(this.canvas.style.visibility="visible",this.anchor.locked=!1,this._jsPlumb.floatingEndpoint=null)}.bind(this);v=e.extend(y,v),v.scope=this.scope||v.scope,v[w]=n.wrap(v[w],x,!1),v[A]=n.wrap(v[A],S,!1),v[_]=n.wrap(v[_],m.drag),v[b]=n.wrap(v[b],C),v.multipleDrop=!1,v.canDrag=function(){return this.isSource||this.isTemporarySource||this.connections.length>0&&!1!==this.connectionsDetachable}.bind(this),l.initDraggable(this.canvas,v,"internal"),this.canvas._jsPlumbRelatedElement=this.element,g=!0}};var m=t.endpoint||this._jsPlumb.instance.Defaults.Endpoint||e.Defaults.Endpoint;this.setEndpoint(m,!0);var v=t.anchor?t.anchor:t.anchors?t.anchors:l.Defaults.Anchor||"Top";this.setAnchor(v,!0);var y=["default",t.type||""].join(" ");this.addType(y,t.data,!0),this.canvas=this.endpoint.canvas,this.canvas._jsPlumb=this,this.initDraggable();var A=function(i,r,a,o){if(e.isDropSupported(this.element)){var s=t.dropOptions||l.Defaults.DropOptions||e.Defaults.DropOptions;s=e.extend({},s),s.scope=s.scope||this.scope;var u=e.dragEvents.drop,c=e.dragEvents.over,d=e.dragEvents.out,h=this,f=l.EndpointDropHandler({getEndpoint:function(){return h},jsPlumb:l,enabled:function(){return null==a||a.isEnabled()},isFull:function(){return a.isFull()},element:this.element,elementId:this.elementId,isSource:this.isSource,isTarget:this.isTarget,addClass:function(t){h.addClass(t)},removeClass:function(t){h.removeClass(t)},isDropAllowed:function(){return h.isDropAllowed.apply(h,arguments)},reference:o,isRedrop:function(t,e){return t.suspendedEndpoint&&e.reference&&t.suspendedEndpoint.id===e.reference.id}});s[u]=n.wrap(s[u],f,!0),s[c]=n.wrap(s[c],function(){var t=e.getDragObject(arguments),n=l.getAttribute(e.getElement(t),"dragId"),i=l.getFloatingConnectionFor(n);if(null!=i){var r=l.getFloatingAnchorIndex(i),a=this.isTarget&&0!==r||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===i.suspendedEndpoint.id;if(a){var o=l.checkCondition("checkDropAllowed",{sourceEndpoint:i.endpoints[r],targetEndpoint:this,connection:i});this[(o?"add":"remove")+"Class"](l.endpointDropAllowedClass),this[(o?"remove":"add")+"Class"](l.endpointDropForbiddenClass),i.endpoints[r].anchor.over(this.anchor,this)}}}.bind(this)),s[d]=n.wrap(s[d],function(){var t=e.getDragObject(arguments),n=null==t?null:l.getAttribute(e.getElement(t),"dragId"),i=n?l.getFloatingConnectionFor(n):null;if(null!=i){var r=l.getFloatingAnchorIndex(i),a=this.isTarget&&0!==r||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===i.suspendedEndpoint.id;a&&(this.removeClass(l.endpointDropAllowedClass),this.removeClass(l.endpointDropForbiddenClass),i.endpoints[r].anchor.out())}}.bind(this)),l.initDroppable(i,s,"internal",r)}}.bind(this);return this.anchor.isFloating||A(this.canvas,!(t._transient||this.anchor.isFloating),this,t.reference),this},n.extend(e.Endpoint,e.OverlayCapableJsPlumbUIComponent,{setVisible:function(t,e,n){if(this._jsPlumb.visible=t,this.canvas&&(this.canvas.style.display=t?"block":"none"),this[t?"showOverlays":"hideOverlays"](),!e)for(var i=0;i<this.connections.length;i++)if(this.connections[i].setVisible(t),!n){var r=this===this.connections[i].endpoints[0]?1:0;1===this.connections[i].endpoints[r].connections.length&&this.connections[i].endpoints[r].setVisible(t,!0,!0)}},getAttachedElements:function(){return this.connections},applyType:function(t,n){this.setPaintStyle(t.endpointStyle||t.paintStyle,n),this.setHoverPaintStyle(t.endpointHoverStyle||t.hoverPaintStyle,n),null!=t.maxConnections&&(this._jsPlumb.maxConnections=t.maxConnections),t.scope&&(this.scope=t.scope),e.extend(this,t,o),null!=t.cssClass&&this.canvas&&this._jsPlumb.instance.addClass(this.canvas,t.cssClass),e.OverlayCapableJsPlumbUIComponent.applyType(this,t)},isEnabled:function(){return this._jsPlumb.enabled},setEnabled:function(t){this._jsPlumb.enabled=t},cleanup:function(){var t=this._jsPlumb.instance.endpointAnchorClassPrefix+(this._jsPlumb.currentAnchorClass?"-"+this._jsPlumb.currentAnchorClass:"");e.removeClass(this.element,t),this.anchor=null,this.endpoint.cleanup(!0),this.endpoint.destroy(),this.endpoint=null,this._jsPlumb.instance.destroyDraggable(this.canvas,"internal"),this._jsPlumb.instance.destroyDroppable(this.canvas,"internal")},setHover:function(t){this.endpoint&&this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged()&&this.endpoint.setHover(t)},isFull:function(){return 0===this._jsPlumb.maxConnections||!(this.isFloating()||this._jsPlumb.maxConnections<0||this.connections.length<this._jsPlumb.maxConnections)},isFloating:function(){return null!=this.anchor&&this.anchor.isFloating},isConnectedTo:function(t){var e=!1;if(t)for(var n=0;n<this.connections.length;n++)if(this.connections[n].endpoints[1]===t||this.connections[n].endpoints[0]===t){e=!0;break}return e},getConnectionCost:function(){return this._jsPlumb.connectionCost},setConnectionCost:function(t){this._jsPlumb.connectionCost=t},areConnectionsDirected:function(){return this._jsPlumb.connectionsDirected},setConnectionsDirected:function(t){this._jsPlumb.connectionsDirected=t},setElementId:function(t){this.elementId=t,this.anchor.elementId=t},setReferenceElement:function(t){this.element=e.getElement(t)},setDragAllowedWhenFull:function(t){this.dragAllowedWhenFull=t},equals:function(t){return this.anchor.equals(t.anchor)},getUuid:function(){return this._jsPlumb.uuid},computeAnchor:function(t){return this.anchor.compute(t)}}),t.jsPlumbInstance.prototype.EndpointDropHandler=function(t){return function(e){var i=t.jsPlumb;t.removeClass(i.endpointDropAllowedClass),t.removeClass(i.endpointDropForbiddenClass);var r=i.getDropEvent(arguments),a=i.getDragObject(arguments),o=i.getAttribute(a,"dragId"),s=(i.getAttribute(a,"elId"),i.getAttribute(a,"originalScope")),l=i.getFloatingConnectionFor(o);if(null!=l){var u=null!=l.suspendedEndpoint;if(!u||null!=l.suspendedEndpoint._jsPlumb){var c=t.getEndpoint(l);if(null!=c){if(t.isRedrop(l,t))return l._forceReattach=!0,l.setHover(!1),void(t.maybeCleanup&&t.maybeCleanup(c));var d=i.getFloatingAnchorIndex(l);if(0===d&&!t.isSource||1===d&&!t.isTarget)t.maybeCleanup&&t.maybeCleanup(c);else{t.onDrop&&t.onDrop(l),s&&i.setDragScope(a,s);var h=t.isFull(e);if(h&&c.fire("maxConnections",{endpoint:this,connection:l,maxConnections:c._jsPlumb.maxConnections},r),!h&&t.enabled()){var f=!0;0===d?(l.floatingElement=l.source,l.floatingId=l.sourceId,l.floatingEndpoint=l.endpoints[0],l.floatingIndex=0,l.source=t.element,l.sourceId=i.getId(t.element)):(l.floatingElement=l.target,l.floatingId=l.targetId,l.floatingEndpoint=l.endpoints[1],l.floatingIndex=1,l.target=t.element,l.targetId=i.getId(t.element)),u&&l.suspendedEndpoint.id!==c.id&&(l.isDetachAllowed(l)&&l.endpoints[d].isDetachAllowed(l)&&l.suspendedEndpoint.isDetachAllowed(l)&&i.checkCondition("beforeDetach",l)||(f=!1));var p=function(e){l.endpoints[d].detachFromConnection(l),l.suspendedEndpoint&&l.suspendedEndpoint.detachFromConnection(l),l.endpoints[d]=c,c.addConnection(l);var a=c.getParameters();for(var o in a)l.setParameter(o,a[o]);if(u){var s=l.suspendedEndpoint.elementId;i.fireMoveEvent({index:d,originalSourceId:0===d?s:l.sourceId,newSourceId:0===d?c.elementId:l.sourceId,originalTargetId:1===d?s:l.targetId,newTargetId:1===d?c.elementId:l.targetId,originalSourceEndpoint:0===d?l.suspendedEndpoint:l.endpoints[0],newSourceEndpoint:0===d?c:l.endpoints[0],originalTargetEndpoint:1===d?l.suspendedEndpoint:l.endpoints[1],newTargetEndpoint:1===d?c:l.endpoints[1],connection:l},r)}else a.draggable&&i.initDraggable(this.element,t.dragOptions,"internal",i);if(1===d?i.router.sourceOrTargetChanged(l.floatingId,l.targetId,l,l.target,1):i.router.sourceOrTargetChanged(l.floatingId,l.sourceId,l,l.source,0),l.endpoints[0].finalEndpoint){var h=l.endpoints[0];h.detachFromConnection(l),l.endpoints[0]=l.endpoints[0].finalEndpoint,l.endpoints[0].addConnection(l)}n.isObject(e)&&l.mergeData(e),i.finaliseConnection(l,null,r,!1),l.setHover(!1),i.revalidate(l.endpoints[0].element)}.bind(this),g=function(){l.suspendedEndpoint&&(l.endpoints[d]=l.suspendedEndpoint,l.setHover(!1),l._forceDetach=!0,0===d?(l.source=l.suspendedEndpoint.element,l.sourceId=l.suspendedEndpoint.elementId):(l.target=l.suspendedEndpoint.element,l.targetId=l.suspendedEndpoint.elementId),l.suspendedEndpoint.addConnection(l),1===d?i.router.sourceOrTargetChanged(l.floatingId,l.targetId,l,l.target,1):i.router.sourceOrTargetChanged(l.floatingId,l.sourceId,l,l.source,0),i.repaint(l.sourceId),l._forceDetach=!1)};if(f=f&&t.isDropAllowed(l.sourceId,l.targetId,l.scope,l,c),f)return p(f),!0;g()}t.maybeCleanup&&t.maybeCleanup(c),i.currentlyDragging=!1}}}}}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i=function(t,i,r,a,o){if(e.Connectors[i]=e.Connectors[i]||{},null==e.Connectors[i][r]){if(null==e.Connectors[r]){if(t.Defaults.DoNotThrowErrors)return null;throw new TypeError("jsPlumb: unknown connector type '"+r+"'")}e.Connectors[i][r]=function(){e.Connectors[r].apply(this,arguments),e.ConnectorRenderers[i].apply(this,arguments)},n.extend(e.Connectors[i][r],[e.Connectors[r],e.ConnectorRenderers[i]])}return new e.Connectors[i][r](a,o)},r=function(t,e,n){return t?n.makeAnchor(t,e,n):null},a=function(t,e,i,r){null!=e&&(e._jsPlumbConnections=e._jsPlumbConnections||{},r?delete e._jsPlumbConnections[t.id]:e._jsPlumbConnections[t.id]=!0,n.isEmpty(e._jsPlumbConnections)?i.removeClass(e,i.connectedClass):i.addClass(e,i.connectedClass))};e.Connection=function(t){var i=t.newEndpoint;this.id=t.id,this.connector=null,this.idPrefix="_jsplumb_c_",this.defaultLabelLocation=.5,this.defaultOverlayKeys=["Overlays","ConnectionOverlays"],this.previousConnection=t.previousConnection,this.source=e.getElement(t.source),this.target=e.getElement(t.target),e.OverlayCapableJsPlumbUIComponent.apply(this,arguments),t.sourceEndpoint?(this.source=t.sourceEndpoint.getElement(),this.sourceId=t.sourceEndpoint.elementId):this.sourceId=this._jsPlumb.instance.getId(this.source),t.targetEndpoint?(this.target=t.targetEndpoint.getElement(),this.targetId=t.targetEndpoint.elementId):this.targetId=this._jsPlumb.instance.getId(this.target),this.scope=t.scope,this.endpoints=[],this.endpointStyles=[];var r=this._jsPlumb.instance;r.manage(this.sourceId,this.source),r.manage(this.targetId,this.target),this._jsPlumb.visible=!0,this._jsPlumb.params={cssClass:t.cssClass,container:t.container,"pointer-events":t["pointer-events"],editorParams:t.editorParams,overlays:t.overlays},this._jsPlumb.lastPaintedAt=null,this.bind("mouseover",function(){this.setHover(!0)}.bind(this)),this.bind("mouseout",function(){this.setHover(!1)}.bind(this)),this.makeEndpoint=function(e,n,a,o,s){return a=a||this._jsPlumb.instance.getId(n),this.prepareEndpoint(r,i,this,o,e?0:1,t,n,a,s)},t.type&&(t.endpoints=t.endpoints||this._jsPlumb.instance.deriveEndpointAndAnchorSpec(t.type).endpoints);var a=this.makeEndpoint(!0,this.source,this.sourceId,t.sourceEndpoint),o=this.makeEndpoint(!1,this.target,this.targetId,t.targetEndpoint);a&&n.addToList(t.endpointsByElement,this.sourceId,a),o&&n.addToList(t.endpointsByElement,this.targetId,o),this.scope||(this.scope=this.endpoints[0].scope),null!=t.deleteEndpointsOnEmpty&&(this.endpoints[0].setDeleteOnEmpty(t.deleteEndpointsOnEmpty),this.endpoints[1].setDeleteOnEmpty(t.deleteEndpointsOnEmpty));var s=r.Defaults.ConnectionsDetachable;!1===t.detachable&&(s=!1),!1===this.endpoints[0].connectionsDetachable&&(s=!1),!1===this.endpoints[1].connectionsDetachable&&(s=!1);var l=t.reattach||this.endpoints[0].reattachConnections||this.endpoints[1].reattachConnections||r.Defaults.ReattachConnections;this.appendToDefaultType({detachable:s,reattach:l,paintStyle:this.endpoints[0].connectorStyle||this.endpoints[1].connectorStyle||t.paintStyle||r.Defaults.PaintStyle||e.Defaults.PaintStyle,hoverPaintStyle:this.endpoints[0].connectorHoverStyle||this.endpoints[1].connectorHoverStyle||t.hoverPaintStyle||r.Defaults.HoverPaintStyle||e.Defaults.HoverPaintStyle});var u=r.getSuspendedAt();if(!r.isSuspendDrawing()){var c=r.getCachedData(this.sourceId),d=c.o,h=c.s,f=r.getCachedData(this.targetId),p=f.o,g=f.s,m=u||jsPlumbUtil.uuid(),v=this.endpoints[0].anchor.compute({xy:[d.left,d.top],wh:h,element:this.endpoints[0],elementId:this.endpoints[0].elementId,txy:[p.left,p.top],twh:g,tElement:this.endpoints[1],timestamp:m,rotation:r.getRotation(this.endpoints[0].elementId)});this.endpoints[0].paint({anchorLoc:v,timestamp:m}),v=this.endpoints[1].anchor.compute({xy:[p.left,p.top],wh:g,element:this.endpoints[1],elementId:this.endpoints[1].elementId,txy:[d.left,d.top],twh:h,tElement:this.endpoints[0],timestamp:m,rotation:r.getRotation(this.endpoints[1].elementId)}),this.endpoints[1].paint({anchorLoc:v,timestamp:m})}this.getTypeDescriptor=function(){return"connection"},this.getAttachedElements=function(){return this.endpoints},this.isDetachable=function(t){return!1!==this._jsPlumb.detachable&&(null!=t?!0===t.connectionsDetachable:!0===this._jsPlumb.detachable)},this.setDetachable=function(t){this._jsPlumb.detachable=!0===t},this.isReattach=function(){return!0===this._jsPlumb.reattach||!0===this.endpoints[0].reattachConnections||!0===this.endpoints[1].reattachConnections},this.setReattach=function(t){this._jsPlumb.reattach=!0===t},this._jsPlumb.cost=t.cost||this.endpoints[0].getConnectionCost(),this._jsPlumb.directed=t.directed,null==t.directed&&(this._jsPlumb.directed=this.endpoints[0].areConnectionsDirected());var y=e.extend({},this.endpoints[1].getParameters());e.extend(y,this.endpoints[0].getParameters()),e.extend(y,this.getParameters()),this.setParameters(y),this.setConnector(this.endpoints[0].connector||this.endpoints[1].connector||t.connector||r.Defaults.Connector||e.Defaults.Connector,!0);var A=null!=t.data&&n.isObject(t.data)?t.data:{};this.getData=function(){return A},this.setData=function(t){A=t||{}},this.mergeData=function(t){A=e.extend(A,t)};var b=["default",this.endpoints[0].connectionType,this.endpoints[1].connectionType,t.type].join(" ");/[^\s]/.test(b)&&this.addType(b,t.data,!0),this.updateConnectedClass()},n.extend(e.Connection,e.OverlayCapableJsPlumbUIComponent,{applyType:function(t,n,i){var r=null;null!=t.connector&&(r=this.getCachedTypeItem("connector",i.connector),null==r&&(r=this.prepareConnector(t.connector,i.connector),this.cacheTypeItem("connector",r,i.connector)),this.setPreparedConnector(r)),null!=t.detachable&&this.setDetachable(t.detachable),null!=t.reattach&&this.setReattach(t.reattach),t.scope&&(this.scope=t.scope),null!=t.cssClass&&this.canvas&&this._jsPlumb.instance.addClass(this.canvas,t.cssClass);var a=null;t.anchor?(a=this.getCachedTypeItem("anchors",i.anchor),null==a&&(a=[this._jsPlumb.instance.makeAnchor(t.anchor),this._jsPlumb.instance.makeAnchor(t.anchor)],this.cacheTypeItem("anchors",a,i.anchor))):t.anchors&&(a=this.getCachedTypeItem("anchors",i.anchors),null==a&&(a=[this._jsPlumb.instance.makeAnchor(t.anchors[0]),this._jsPlumb.instance.makeAnchor(t.anchors[1])],this.cacheTypeItem("anchors",a,i.anchors))),null!=a&&(this.endpoints[0].anchor=a[0],this.endpoints[1].anchor=a[1],this.endpoints[1].anchor.isDynamic&&this._jsPlumb.instance.repaint(this.endpoints[1].elementId)),e.OverlayCapableJsPlumbUIComponent.applyType(this,t)},addClass:function(t,e){e&&(this.endpoints[0].addClass(t),this.endpoints[1].addClass(t),this.suspendedEndpoint&&this.suspendedEndpoint.addClass(t)),this.connector&&this.connector.addClass(t)},removeClass:function(t,e){e&&(this.endpoints[0].removeClass(t),this.endpoints[1].removeClass(t),this.suspendedEndpoint&&this.suspendedEndpoint.removeClass(t)),this.connector&&this.connector.removeClass(t)},isVisible:function(){return this._jsPlumb.visible},setVisible:function(t){this._jsPlumb.visible=t,this.connector&&this.connector.setVisible(t),this.repaint()},cleanup:function(){this.updateConnectedClass(!0),this.endpoints=null,this.source=null,this.target=null,null!=this.connector&&(this.connector.cleanup(!0),this.connector.destroy(!0)),this.connector=null},updateConnectedClass:function(t){this._jsPlumb&&(a(this,this.source,this._jsPlumb.instance,t),a(this,this.target,this._jsPlumb.instance,t))},setHover:function(e){this.connector&&this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged()&&(this.connector.setHover(e),t.jsPlumb[e?"addClass":"removeClass"](this.source,this._jsPlumb.instance.hoverSourceClass),t.jsPlumb[e?"addClass":"removeClass"](this.target,this._jsPlumb.instance.hoverTargetClass))},getUuids:function(){return[this.endpoints[0].getUuid(),this.endpoints[1].getUuid()]},getCost:function(){return this._jsPlumb?this._jsPlumb.cost:-1/0},setCost:function(t){this._jsPlumb.cost=t},isDirected:function(){return this._jsPlumb.directed},getConnector:function(){return this.connector},prepareConnector:function(t,e){var r,a={_jsPlumb:this._jsPlumb.instance,cssClass:this._jsPlumb.params.cssClass,container:this._jsPlumb.params.container,"pointer-events":this._jsPlumb.params["pointer-events"]},o=this._jsPlumb.instance.getRenderMode();return n.isString(t)?r=i(this._jsPlumb.instance,o,t,a,this):n.isArray(t)&&(r=1===t.length?i(this._jsPlumb.instance,o,t[0],a,this):i(this._jsPlumb.instance,o,t[0],n.merge(t[1],a),this)),null!=e&&(r.typeId=e),r},setPreparedConnector:function(t,e,n,i){if(this.connector!==t){var r,a="";if(null!=this.connector&&(r=this.connector,a=r.getClass(),this.connector.cleanup(),this.connector.destroy()),this.connector=t,i&&this.cacheTypeItem("connector",t,i),this.canvas=this.connector.canvas,this.bgCanvas=this.connector.bgCanvas,this.connector.reattach(this._jsPlumb.instance),this.addClass(a),this.canvas&&(this.canvas._jsPlumb=this),this.bgCanvas&&(this.bgCanvas._jsPlumb=this),null!=r)for(var o=this.getOverlays(),s=0;s<o.length;s++)o[s].transfer&&o[s].transfer(this.connector);n||this.setListenerComponent(this.connector),e||this.repaint()}},setConnector:function(t,e,n,i){var r=this.prepareConnector(t,i);this.setPreparedConnector(r,e,n,i)},paint:function(t){if(!this._jsPlumb.instance.isSuspendDrawing()&&this._jsPlumb.visible){t=t||{};var e=t.timestamp,n=!1,i=n?this.sourceId:this.targetId,r=n?this.targetId:this.sourceId,a=n?0:1,o=n?1:0;if(null==e||e!==this._jsPlumb.lastPaintedAt){var s=this._jsPlumb.instance.updateOffset({elId:r}).o,l=this._jsPlumb.instance.updateOffset({elId:i}).o,u=this.endpoints[o],c=this.endpoints[a],d=u.anchor.getCurrentLocation({xy:[s.left,s.top],wh:[s.width,s.height],element:u,timestamp:e,rotation:this._jsPlumb.instance.getRotation(this.sourceId)}),h=c.anchor.getCurrentLocation({xy:[l.left,l.top],wh:[l.width,l.height],element:c,timestamp:e,rotation:this._jsPlumb.instance.getRotation(this.targetId)});this.connector.resetBounds(),this.connector.compute({sourcePos:d,targetPos:h,sourceOrientation:u.anchor.getOrientation(u),targetOrientation:c.anchor.getOrientation(c),sourceEndpoint:this.endpoints[o],targetEndpoint:this.endpoints[a],"stroke-width":this._jsPlumb.paintStyleInUse.strokeWidth,sourceInfo:s,targetInfo:l});var f={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};for(var p in this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(p)){var g=this._jsPlumb.overlays[p];g.isVisible()&&(this._jsPlumb.overlayPlacements[p]=g.draw(this.connector,this._jsPlumb.paintStyleInUse,this.getAbsoluteOverlayPosition(g)),f.minX=Math.min(f.minX,this._jsPlumb.overlayPlacements[p].minX),f.maxX=Math.max(f.maxX,this._jsPlumb.overlayPlacements[p].maxX),f.minY=Math.min(f.minY,this._jsPlumb.overlayPlacements[p].minY),f.maxY=Math.max(f.maxY,this._jsPlumb.overlayPlacements[p].maxY))}var m=parseFloat(this._jsPlumb.paintStyleInUse.strokeWidth||1)/2,v=parseFloat(this._jsPlumb.paintStyleInUse.strokeWidth||0),y={xmin:Math.min(this.connector.bounds.minX-(m+v),f.minX),ymin:Math.min(this.connector.bounds.minY-(m+v),f.minY),xmax:Math.max(this.connector.bounds.maxX+(m+v),f.maxX),ymax:Math.max(this.connector.bounds.maxY+(m+v),f.maxY)};for(var A in this.connector.paintExtents=y,this.connector.paint(this._jsPlumb.paintStyleInUse,null,y),this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(A)){var b=this._jsPlumb.overlays[A];b.isVisible()&&b.paint(this._jsPlumb.overlayPlacements[A],y)}}this._jsPlumb.lastPaintedAt=e}},repaint:function(t){var e=jsPlumb.extend(t||{},{});e.elId=this.sourceId,this.paint(e)},prepareEndpoint:function(t,n,i,a,o,s,l,u,c){var d;if(a)i.endpoints[o]=a,a.addConnection(i);else{s.endpoints||(s.endpoints=[null,null]);var h=c||s.endpoints[o]||s.endpoint||t.Defaults.Endpoints[o]||e.Defaults.Endpoints[o]||t.Defaults.Endpoint||e.Defaults.Endpoint;s.endpointStyles||(s.endpointStyles=[null,null]),s.endpointHoverStyles||(s.endpointHoverStyles=[null,null]);var f=s.endpointStyles[o]||s.endpointStyle||t.Defaults.EndpointStyles[o]||e.Defaults.EndpointStyles[o]||t.Defaults.EndpointStyle||e.Defaults.EndpointStyle;null==f.fill&&null!=s.paintStyle&&(f.fill=s.paintStyle.stroke),null==f.outlineStroke&&null!=s.paintStyle&&(f.outlineStroke=s.paintStyle.outlineStroke),null==f.outlineWidth&&null!=s.paintStyle&&(f.outlineWidth=s.paintStyle.outlineWidth);var p=s.endpointHoverStyles[o]||s.endpointHoverStyle||t.Defaults.EndpointHoverStyles[o]||e.Defaults.EndpointHoverStyles[o]||t.Defaults.EndpointHoverStyle||e.Defaults.EndpointHoverStyle;null!=s.hoverPaintStyle&&(null==p&&(p={}),null==p.fill&&(p.fill=s.hoverPaintStyle.stroke));var g=s.anchors?s.anchors[o]:s.anchor?s.anchor:r(t.Defaults.Anchors[o],u,t)||r(e.Defaults.Anchors[o],u,t)||r(t.Defaults.Anchor,u,t)||r(e.Defaults.Anchor,u,t),m=s.uuids?s.uuids[o]:null;d=n({paintStyle:f,hoverPaintStyle:p,endpoint:h,connections:[i],uuid:m,anchor:g,source:l,scope:s.scope,reattach:s.reattach||t.Defaults.ReattachConnections,detachable:s.detachable||t.Defaults.ConnectionsDetachable}),null==a&&d.setDeleteOnEmpty(!0),i.endpoints[o]=d,!1===s.drawEndpoints&&d.setVisible(!1,!0,!0)}return d},replaceEndpoint:function(t,e){var n=this.endpoints[t],i=n.elementId,r=this._jsPlumb.instance.getEndpoints(i),a=r.indexOf(n),o=this.makeEndpoint(0===t,n.element,i,null,e);this.endpoints[t]=o,r.splice(a,1,o),this._jsPlumb.instance.deleteObject({endpoint:n,deleteAttachedObjects:!1}),this._jsPlumb.instance.fire("endpointReplaced",{previous:n,current:o}),this._jsPlumb.instance.router.sourceOrTargetChanged(this.endpoints[1].elementId,this.endpoints[1].elementId,this,this.endpoints[1].element,1)}})}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumbUtil,n=t.jsPlumb;n.AnchorManager=function(t){var i={},r={},a={},o={},s=this,l={},u=t.jsPlumbInstance,c={},d=function(t,e,n,i,r,a,o,s){for(var l=[],u=e[r?0:1]/(i.length+1),c=0;c<i.length;c++){var d=(c+1)*u,h=a*e[r?1:0];o&&(d=e[r?0:1]-d);var f=r?d:h,p=n.left+f,g=f/e[0],m=r?h:d,v=n.top+m,y=m/e[1];if(0!==s){var A=jsPlumbUtil.rotatePoint([p,v],[n.centerx,n.centery],s);p=A[0],v=A[1]}l.push([p,v,g,y,i[c][1],i[c][2]])}return l},h=function(t,e){return e[0][0]-t[0][0]},f=function(t,e){var n=t[0][0]<0?-Math.PI-t[0][0]:Math.PI-t[0][0],i=e[0][0]<0?-Math.PI-e[0][0]:Math.PI-e[0][0];return n-i},p={top:f,right:h,bottom:h,left:f},g=function(t,e){return t.sort(e)},m=function(t,e){var n=u.getCachedData(t),i=n.s,o=n.o,s=function(e,n,i,o,s,l,c){if(o.length>0)for(var h=g(o,p[e]),f="right"===e||"top"===e,m=u.getRotation(t),v=d(e,n,i,h,s,l,f,m),y=function(t,e){r[t.id]=[e[0],e[1],e[2],e[3]],a[t.id]=c},A=0;A<v.length;A++){var b=v[A][4],_=b.endpoints[0].elementId===t,w=b.endpoints[1].elementId===t;_&&y(b.endpoints[0],v[A]),w&&y(b.endpoints[1],v[A])}};s("bottom",i,o,e.bottom,!0,1,[0,1]),s("top",i,o,e.top,!0,0,[0,-1]),s("left",i,o,e.left,!1,0,[-1,0]),s("right",i,o,e.right,!1,1,[1,0])};this.reset=function(){i={},o={},l={}},this.addFloatingConnection=function(t,e){c[t]=e},this.newConnection=function(t){var i=t.sourceId,r=t.targetId,a=t.endpoints,s=!0,l=function(l,u,c,d,h){i===r&&c.isContinuous&&(t._jsPlumb.instance.removeElement(a[1].canvas),s=!1),e.addToList(o,d,[h,u,c.constructor===n.DynamicAnchor])};l(0,a[0],a[0].anchor,r,t),s&&l(1,a[1],a[1].anchor,i,t)};var v=function(t){(function(t,n){if(t){var i=function(t){return t[4]===n};e.removeWithFunction(t.top,i),e.removeWithFunction(t.left,i),e.removeWithFunction(t.bottom,i),e.removeWithFunction(t.right,i)}})(l[t.elementId],t.id)};this.connectionDetached=function(t,n){var i=t.connection||t,r=t.sourceId,a=t.targetId,l=i.endpoints,u=function(t,n,i,r,a){e.removeWithFunction(o[r],(function(t){return t[0].id===a.id}))};u(1,l[1],l[1].anchor,r,i),u(0,l[0],l[0].anchor,a,i),i.floatingId&&(u(i.floatingIndex,i.floatingEndpoint,i.floatingEndpoint.anchor,i.floatingId,i),v(i.floatingEndpoint)),v(i.endpoints[0]),v(i.endpoints[1]),n||(s.redraw(i.sourceId),i.targetId!==i.sourceId&&s.redraw(i.targetId))},this.addEndpoint=function(t,n){e.addToList(i,n,t)},this.changeId=function(t,e){o[e]=o[t],i[e]=i[t],delete o[t],delete i[t]},this.getConnectionsFor=function(t){return o[t]||[]},this.getEndpointsFor=function(t){return i[t]||[]},this.deleteEndpoint=function(t){e.removeWithFunction(i[t.elementId],(function(e){return e.id===t.id})),v(t)},this.elementRemoved=function(t){delete c[t],delete i[t],i[t]=[]};var y=function(n,i,r,a,o,s,l,u,c,d,h,f){var p,g,m=-1,v=-1,y=a.endpoints[l],A=y.id,b=[1,0][l],_=[[i,r],a,o,s,A],w=n[c],x=y._continuousAnchorEdge?n[y._continuousAnchorEdge]:null;if(x){var S=e.findWithFunction(x,(function(t){return t[4]===A}));if(-1!==S)for(x.splice(S,1),p=0;p<x.length;p++)g=x[p][1],e.addWithFunction(h,g,(function(t){return t.id===g.id})),e.addWithFunction(f,x[p][1].endpoints[l],(function(t){return t.id===g.endpoints[l].id})),e.addWithFunction(f,x[p][1].endpoints[b],(function(t){return t.id===g.endpoints[b].id}))}for(p=0;p<w.length;p++)g=w[p][1],1===t.idx&&w[p][3]===s&&-1===v&&(v=p),e.addWithFunction(h,g,(function(t){return t.id===g.id})),e.addWithFunction(f,w[p][1].endpoints[l],(function(t){return t.id===g.endpoints[l].id})),e.addWithFunction(f,w[p][1].endpoints[b],(function(t){return t.id===g.endpoints[b].id}));if(-1!==m)w[m]=_;else{var C=u?-1!==v?v:0:w.length;w.splice(C,0,_)}y._continuousAnchorEdge=c};this.sourceOrTargetChanged=function(t,i,r,a,s){if(0===s){if(t!==i){r.sourceId=i,r.source=a,e.removeWithFunction(o[t],(function(t){return t[0].id===r.id}));var l=e.findWithFunction(o[r.targetId],(function(t){return t[0].id===r.id}));l>-1&&(o[r.targetId][l][0]=r,o[r.targetId][l][1]=r.endpoints[0],o[r.targetId][l][2]=r.endpoints[0].anchor.constructor===n.DynamicAnchor),e.addToList(o,i,[r,r.endpoints[1],r.endpoints[1].anchor.constructor===n.DynamicAnchor]),r.endpoints[1].anchor.isContinuous&&(r.source===r.target?r._jsPlumb.instance.removeElement(r.endpoints[1].canvas):null==r.endpoints[1].canvas.parentNode&&r._jsPlumb.instance.appendElement(r.endpoints[1].canvas)),r.updateConnectedClass()}}else if(1===s){var u=r.endpoints[0].elementId;r.target=a,r.targetId=i;var c=e.findWithFunction(o[u],(function(t){return t[0].id===r.id})),d=e.findWithFunction(o[t],(function(t){return t[0].id===r.id}));-1!==c&&(o[u][c][0]=r,o[u][c][1]=r.endpoints[1],o[u][c][2]=r.endpoints[1].anchor.constructor===n.DynamicAnchor),d>-1&&(o[t].splice(d,1),e.addToList(o,i,[r,r.endpoints[0],r.endpoints[0].anchor.constructor===n.DynamicAnchor])),r.updateConnectedClass()}},this.rehomeEndpoint=function(t,e,n){var r=i[e]||[],a=u.getId(n);if(a!==e){var o=r.indexOf(t);if(o>-1){var l=r.splice(o,1)[0];s.add(l,a)}}for(var c=0;c<t.connections.length;c++)t.connections[c].sourceId===e?s.sourceOrTargetChanged(e,t.elementId,t.connections[c],t.element,0):t.connections[c].targetId===e&&s.sourceOrTargetChanged(e,t.elementId,t.connections[c],t.element,1)},this.redraw=function(t,r,a,s,d,h){var f=[],p=[],g=[];if(!u.isSuspendDrawing()){var v=i[t]||[],A=o[t]||[];a=a||jsPlumbUtil.uuid(),s=s||{left:0,top:0},r&&(r={left:r.left+s.left,top:r.top+s.top});for(var b=u.updateOffset({elId:t,offset:r,recalc:!1,timestamp:a}),_={},w=0;w<A.length;w++){var x=A[w][0],S=x.sourceId,C=x.targetId,T=x.endpoints[0].anchor.isContinuous,M=x.endpoints[1].anchor.isContinuous;if(T||M){var k=S+"_"+C,L=_[k],D=x.sourceId===t?1:0,E=u.getRotation(C),B=u.getRotation(S);T&&!l[S]&&(l[S]={top:[],right:[],bottom:[],left:[]}),M&&!l[C]&&(l[C]={top:[],right:[],bottom:[],left:[]}),t!==C&&u.updateOffset({elId:C,timestamp:a}),t!==S&&u.updateOffset({elId:S,timestamp:a});var I=u.getCachedData(C),O=u.getCachedData(S);C===S&&(T||M)?(y(l[S],-Math.PI/2,0,x,!1,C,0,!1,"top",S,f,p),y(l[C],-Math.PI/2,0,x,!1,S,1,!1,"top",C,f,p)):(L||(L=this.calculateOrientation(S,C,O.o,I.o,x.endpoints[0].anchor,x.endpoints[1].anchor,x,B,E),_[k]=L),T&&y(l[S],L.theta,0,x,!1,C,0,!1,L.a[0],S,f,p),M&&y(l[C],L.theta2,-1,x,!0,S,1,!0,L.a[1],C,f,p)),T&&e.addWithFunction(g,S,(function(t){return t===S})),M&&e.addWithFunction(g,C,(function(t){return t===C})),e.addWithFunction(f,x,(function(t){return t.id===x.id})),(T&&0===D||M&&1===D)&&e.addWithFunction(p,x.endpoints[D],(function(t){return t.id===x.endpoints[D].id}))}}for(w=0;w<v.length;w++)0===v[w].connections.length&&v[w].anchor.isContinuous&&(l[t]||(l[t]={top:[],right:[],bottom:[],left:[]}),y(l[t],-Math.PI/2,0,{endpoints:[v[w],v[w]],paint:function(){}},!1,t,0,!1,v[w].anchor.getDefaultFace(),t,f,p),e.addWithFunction(g,t,(function(e){return e===t})));for(w=0;w<g.length;w++)m(g[w],l[g[w]]);for(w=0;w<v.length;w++)v[w].paint({timestamp:a,offset:b,dimensions:b.s,recalc:!0!==h});for(w=0;w<p.length;w++){var P=u.getCachedData(p[w].elementId);p[w].paint({timestamp:null,offset:P,dimensions:P.s})}for(w=0;w<A.length;w++){var N=A[w][1];if(N.anchor.constructor===n.DynamicAnchor){N.paint({elementWithPrecedence:t,timestamp:a}),e.addWithFunction(f,A[w][0],(function(t){return t.id===A[w][0].id}));for(var F=0;F<N.connections.length;F++)N.connections[F]!==A[w][0]&&e.addWithFunction(f,N.connections[F],(function(t){return t.id===N.connections[F].id}))}else e.addWithFunction(f,A[w][0],(function(t){return t.id===A[w][0].id}))}var U=c[t];for(U&&U.paint({timestamp:a,recalc:!1,elId:t}),w=0;w<f.length;w++)f[w].paint({elId:t,timestamp:null,recalc:!1,clearEdits:d})}return{c:f,e:p}};var A=function(t){e.EventGenerator.apply(this),this.type="Continuous",this.isDynamic=!0,this.isContinuous=!0;for(var n=t.faces||["top","right","bottom","left"],i=!(!1===t.clockwise),o={},s={top:"bottom",right:"left",left:"right",bottom:"top"},l={top:"right",right:"bottom",left:"top",bottom:"left"},u={top:"left",right:"top",left:"bottom",bottom:"right"},c=i?l:u,d=i?u:l,h=t.cssClass||"",f=null,p=null,g=["left","right"],m=["top","bottom"],v=null,y=0;y<n.length;y++)o[n[y]]=!0;this.getDefaultFace=function(){return 0===n.length?"top":n[0]},this.isRelocatable=function(){return!0},this.isSnapOnRelocate=function(){return!0},this.verifyEdge=function(t){return o[t]?t:o[s[t]]?s[t]:o[c[t]]?c[t]:o[d[t]]?d[t]:t},this.isEdgeSupported=function(t){return null==v?null==p?!0===o[t]:p===t:-1!==v.indexOf(t)},this.setCurrentFace=function(t,e){f=t,e&&null!=p&&(p=f)},this.getCurrentFace=function(){return f},this.getSupportedFaces=function(){var t=[];for(var e in o)o[e]&&t.push(e);return t},this.lock=function(){p=f},this.unlock=function(){p=null},this.isLocked=function(){return null!=p},this.lockCurrentAxis=function(){null!=f&&(v="left"===f||"right"===f?g:m)},this.unlockCurrentAxis=function(){v=null},this.compute=function(t){return r[t.element.id]||[0,0]},this.getCurrentLocation=function(t){return r[t.element.id]||[0,0]},this.getOrientation=function(t){return a[t.id]||[0,0]},this.getCssClass=function(){return h}};u.continuousAnchorFactory={get:function(t){return new A(t)},clear:function(t){delete r[t]}}},n.AnchorManager.prototype.calculateOrientation=function(t,e,n,i,r,a,o,s,l){var u={HORIZONTAL:"horizontal",VERTICAL:"vertical",DIAGONAL:"diagonal",IDENTITY:"identity"},c=["left","top","right","bottom"];if(t===e)return{orientation:u.IDENTITY,a:["top","top"]};var d=Math.atan2(i.centery-n.centery,i.centerx-n.centerx),h=Math.atan2(n.centery-i.centery,n.centerx-i.centerx),f=[],p={};(function(t,e){for(var n=0;n<t.length;n++)if(p[t[n]]={left:[e[n][0].left,e[n][0].centery],right:[e[n][0].right,e[n][0].centery],top:[e[n][0].centerx,e[n][0].top],bottom:[e[n][0].centerx,e[n][0].bottom]},0!==e[n][1])for(var i in p[t[n]])p[t[n]][i]=jsPlumbUtil.rotatePoint(p[t[n]][i],[e[n][0].centerx,e[n][0].centery],e[n][1])})(["source","target"],[[n,s],[i,l]]);for(var g=0;g<c.length;g++)for(var m=0;m<c.length;m++)f.push({source:c[g],target:c[m],dist:Biltong.lineLength(p.source[c[g]],p.target[c[m]])});f.sort((function(t,e){return t.dist<e.dist?-1:t.dist>e.dist?1:0}));for(var v=f[0].source,y=f[0].target,A=0;A<f.length;A++)if(v=r.isContinuous&&r.locked?r.getCurrentFace():!r.isContinuous||r.isEdgeSupported(f[A].source)?f[A].source:null,y=a.isContinuous&&a.locked?a.getCurrentFace():!a.isContinuous||a.isEdgeSupported(f[A].target)?f[A].target:null,null!=v&&null!=y)break;return r.isContinuous&&r.setCurrentFace(v),a.isContinuous&&a.setCurrentFace(y),{a:[v,y],theta:d,theta2:h}},n.Anchor=function(t){this.x=t.x||0,this.y=t.y||0,this.elementId=t.elementId,this.cssClass=t.cssClass||"",this.orientation=t.orientation||[0,0],this.lastReturnValue=null,this.offsets=t.offsets||[0,0],this.timestamp=null,this._unrotatedOrientation=[this.orientation[0],this.orientation[1]],this.relocatable=!1!==t.relocatable,this.snapOnRelocate=!1!==t.snapOnRelocate,this.locked=!1,e.EventGenerator.apply(this),this.compute=function(t){var e=t.xy,n=t.wh,i=t.timestamp;if(i&&i===this.timestamp)return this.lastReturnValue;var r=[e[0]+this.x*n[0]+this.offsets[0],e[1]+this.y*n[1]+this.offsets[1],this.x,this.y],a=t.rotation;if(null!=a&&0!==a){var o=jsPlumbUtil.rotatePoint(r,[e[0]+n[0]/2,e[1]+n[1]/2],a);this.orientation[0]=Math.round(this._unrotatedOrientation[0]*o[2]-this._unrotatedOrientation[1]*o[3]),this.orientation[1]=Math.round(this._unrotatedOrientation[1]*o[2]+this._unrotatedOrientation[0]*o[3]),this.lastReturnValue=[o[0],o[1],this.x,this.y]}else this.orientation[0]=this._unrotatedOrientation[0],this.orientation[1]=this._unrotatedOrientation[1],this.lastReturnValue=r;return this.timestamp=i,this.lastReturnValue},this.getCurrentLocation=function(t){return t=t||{},null==this.lastReturnValue||null!=t.timestamp&&this.timestamp!==t.timestamp?this.compute(t):this.lastReturnValue},this.setPosition=function(t,e,n,i,r){this.locked&&!r||(this.x=t,this.y=e,this.orientation=[n,i],this.lastReturnValue=null)}},e.extend(n.Anchor,e.EventGenerator,{equals:function(t){if(!t)return!1;var e=t.getOrientation(),n=this.getOrientation();return this.x===t.x&&this.y===t.y&&this.offsets[0]===t.offsets[0]&&this.offsets[1]===t.offsets[1]&&n[0]===e[0]&&n[1]===e[1]},getOrientation:function(){return this.orientation},getCssClass:function(){return this.cssClass}}),n.FloatingAnchor=function(t){n.Anchor.apply(this,arguments);var e=t.reference,i=t.referenceCanvas,r=n.getSize(i),a=0,o=0,s=null,l=null;this.orientation=null,this.x=0,this.y=0,this.isFloating=!0,this.compute=function(t){var e=t.xy,n=[e[0]+r[0]/2,e[1]+r[1]/2];return l=n,n},this.getOrientation=function(t){if(s)return s;var n=e.getOrientation(t);return[Math.abs(n[0])*a*-1,Math.abs(n[1])*o*-1]},this.over=function(t,e){s=t.getOrientation(e)},this.out=function(){s=null},this.getCurrentLocation=function(t){return null==l?this.compute(t):l}},e.extend(n.FloatingAnchor,n.Anchor);var i=function(t,e,i){return t.constructor===n.Anchor?t:e.makeAnchor(t,i,e)};n.DynamicAnchor=function(t){n.Anchor.apply(this,arguments),this.isDynamic=!0,this.anchors=[],this.elementId=t.elementId,this.jsPlumbInstance=t.jsPlumbInstance;for(var e=0;e<t.anchors.length;e++)this.anchors[e]=i(t.anchors[e],this.jsPlumbInstance,this.elementId);this.getAnchors=function(){return this.anchors};var r=this.anchors.length>0?this.anchors[0]:null,a=r,o=function(t,e,n,i,r,a,o){var s=i[0]+t.x*r[0],l=i[1]+t.y*r[1],u=i[0]+r[0]/2,c=i[1]+r[1]/2;if(null!=a&&0!==a){var d=jsPlumbUtil.rotatePoint([s,l],[u,c],a);s=d[0],l=d[1]}return Math.sqrt(Math.pow(e-s,2)+Math.pow(n-l,2))+Math.sqrt(Math.pow(u-s,2)+Math.pow(c-l,2))},s=t.selector||function(t,e,n,i,r,a,s){for(var l=n[0]+i[0]/2,u=n[1]+i[1]/2,c=-1,d=1/0,h=0;h<s.length;h++){var f=o(s[h],l,u,t,e,r,a);f<d&&(c=h+0,d=f)}return s[c]};this.compute=function(t){var e=t.xy,n=t.wh,i=t.txy,o=t.twh,l=t.rotation,u=t.tRotation;return this.timestamp=t.timestamp,this.locked||null==i||null==o?(this.lastReturnValue=r.compute(t),this.lastReturnValue):(t.timestamp=null,r=s(e,n,i,o,l,u,this.anchors),this.x=r.x,this.y=r.y,r!==a&&this.fire("anchorChanged",r),a=r,this.lastReturnValue=r.compute(t),this.lastReturnValue)},this.getCurrentLocation=function(t){return null!=r?r.getCurrentLocation(t):null},this.getOrientation=function(t){return null!=r?r.getOrientation(t):[0,0]},this.over=function(t,e){null!=r&&r.over(t,e)},this.out=function(){null!=r&&r.out()},this.setAnchor=function(t){r=t},this.getCssClass=function(){return r&&r.getCssClass()||""},this.setAnchorCoordinates=function(t){var e=jsPlumbUtil.findWithFunction(this.anchors,(function(e){return e.x===t[0]&&e.y===t[1]}));return-1!==e&&(this.setAnchor(this.anchors[e]),!0)}},e.extend(n.DynamicAnchor,n.Anchor);var r=function(t,e,i,r,a,o){n.Anchors[a]=function(n){var s=n.jsPlumbInstance.makeAnchor([t,e,i,r,0,0],n.elementId,n.jsPlumbInstance);return s.type=a,o&&o(s,n),s}};r(.5,0,0,-1,"TopCenter"),r(.5,1,0,1,"BottomCenter"),r(0,.5,-1,0,"LeftMiddle"),r(1,.5,1,0,"RightMiddle"),r(.5,0,0,-1,"Top"),r(.5,1,0,1,"Bottom"),r(0,.5,-1,0,"Left"),r(1,.5,1,0,"Right"),r(.5,.5,0,0,"Center"),r(1,0,0,-1,"TopRight"),r(1,1,0,1,"BottomRight"),r(0,0,0,-1,"TopLeft"),r(0,1,0,1,"BottomLeft"),n.Defaults.DynamicAnchors=function(t){return t.jsPlumbInstance.makeAnchors(["TopCenter","RightMiddle","BottomCenter","LeftMiddle"],t.elementId,t.jsPlumbInstance)},n.Anchors.AutoDefault=function(t){var e=t.jsPlumbInstance.makeDynamicAnchor(n.Defaults.DynamicAnchors(t));return e.type="AutoDefault",e};var a=function(t,e){n.Anchors[t]=function(n){var i=n.jsPlumbInstance.makeAnchor(["Continuous",{faces:e}],n.elementId,n.jsPlumbInstance);return i.type=t,i}};n.Anchors.Continuous=function(t){return t.jsPlumbInstance.continuousAnchorFactory.get(t)},a("ContinuousLeft",["left"]),a("ContinuousTop",["top"]),a("ContinuousBottom",["bottom"]),a("ContinuousRight",["right"]),r(0,0,0,0,"Assign",(function(t,e){var n=e.position||"Fixed";t.positionFinder=n.constructor===String?e.jsPlumbInstance.AnchorPositionFinders[n]:n,t.constructorParams=e})),t.jsPlumbInstance.prototype.AnchorPositionFinders={Fixed:function(t,e,n){return[(t.left-e.left)/n[0],(t.top-e.top)/n[1]]},Grid:function(t,e,n,i){var r=t.left-e.left,a=t.top-e.top,o=n[0]/i.grid[0],s=n[1]/i.grid[1],l=Math.floor(r/o),u=Math.floor(a/s);return[(l*o+o/2)/n[0],(u*s+s/2)/n[1]]}},n.Anchors.Perimeter=function(t){t=t||{};var e=t.anchorCount||60,n=t.shape;if(!n)throw new Error("no shape supplied to Perimeter Anchor type");var i=function(){for(var t=.5,n=2*Math.PI/e,i=0,r=[],a=0;a<e;a++){var o=t+t*Math.sin(i),s=t+t*Math.cos(i);r.push([o,s,0,0]),i+=n}return r},r=function(t){for(var n=e/t.length,i=[],r=function(t,r,a,o,s,l,u){n=e*s;for(var c=(a-t)/n,d=(o-r)/n,h=0;h<n;h++)i.push([t+c*h,r+d*h,null==l?0:l,null==u?0:u])},a=0;a<t.length;a++)r.apply(null,t[a]);return i},a=function(t){for(var e=[],n=0;n<t.length;n++)e.push([t[n][0],t[n][1],t[n][2],t[n][3],1/t.length,t[n][4],t[n][5]]);return r(e)},o=function(){return a([[0,0,1,0,0,-1],[1,0,1,1,1,0],[1,1,0,1,0,1],[0,1,0,0,-1,0]])},s={Circle:i,Ellipse:i,Diamond:function(){return a([[.5,0,1,.5],[1,.5,.5,1],[.5,1,0,.5],[0,.5,.5,0]])},Rectangle:o,Square:o,Triangle:function(){return a([[.5,0,1,1],[1,1,0,1],[0,1,.5,0]])},Path:function(t){for(var e=t.points,n=[],i=0,a=0;a<e.length-1;a++){var o=Math.sqrt(Math.pow(e[a][2]-e[a][0])+Math.pow(e[a][3]-e[a][1]));i+=o,n.push([e[a][0],e[a][1],e[a+1][0],e[a+1][1],o])}for(var s=0;s<n.length;s++)n[s][4]=n[s][4]/i;return r(n)}},l=function(t,e){for(var n=[],i=e/180*Math.PI,r=0;r<t.length;r++){var a=t[r][0]-.5,o=t[r][1]-.5;n.push([a*Math.cos(i)-o*Math.sin(i)+.5,a*Math.sin(i)+o*Math.cos(i)+.5,t[r][2],t[r][3]])}return n};if(!s[n])throw new Error("Shape ["+n+"] is unknown by Perimeter Anchor type");var u=s[n](t);t.rotation&&(u=l(u,t.rotation));var c=t.jsPlumbInstance.makeDynamicAnchor(u);return c.type="Perimeter",c}}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=(t.jsPlumbUtil,t.jsPlumb);e.DefaultRouter=function(t){this.jsPlumbInstance=t,this.anchorManager=new e.AnchorManager({jsPlumbInstance:t}),this.sourceOrTargetChanged=function(t,e,n,i,r){this.anchorManager.sourceOrTargetChanged(t,e,n,i,r)},this.reset=function(){this.anchorManager.reset()},this.changeId=function(t,e){this.anchorManager.changeId(t,e)},this.elementRemoved=function(t){this.anchorManager.elementRemoved(t)},this.newConnection=function(t){this.anchorManager.newConnection(t)},this.connectionDetached=function(t,e){this.anchorManager.connectionDetached(t,e)},this.redraw=function(t,e,n,i,r,a){return this.anchorManager.redraw(t,e,n,i,r,a)},this.deleteEndpoint=function(t){this.anchorManager.deleteEndpoint(t)},this.rehomeEndpoint=function(t,e,n){this.anchorManager.rehomeEndpoint(t,e,n)},this.addEndpoint=function(t,e){this.anchorManager.addEndpoint(t,e)}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i=t.Biltong;e.Segments={AbstractSegment:function(t){this.params=t,this.findClosestPointOnPath=function(t,e){return{d:1/0,x:null,y:null,l:null}},this.getBounds=function(){return{minX:Math.min(t.x1,t.x2),minY:Math.min(t.y1,t.y2),maxX:Math.max(t.x1,t.x2),maxY:Math.max(t.y1,t.y2)}},this.lineIntersection=function(t,e,n,i){return[]},this.boxIntersection=function(t,e,n,i){var r=[];return r.push.apply(r,this.lineIntersection(t,e,t+n,e)),r.push.apply(r,this.lineIntersection(t+n,e,t+n,e+i)),r.push.apply(r,this.lineIntersection(t+n,e+i,t,e+i)),r.push.apply(r,this.lineIntersection(t,e+i,t,e)),r},this.boundingBoxIntersection=function(t){return this.boxIntersection(t.x,t.y,t.w,t.y)}},Straight:function(t){e.Segments.AbstractSegment.apply(this,arguments);var n,r,a,o,s,l,u,c=function(){n=Math.sqrt(Math.pow(s-o,2)+Math.pow(u-l,2)),r=i.gradient({x:o,y:l},{x:s,y:u}),a=-1/r};this.type="Straight",this.getLength=function(){return n},this.getGradient=function(){return r},this.getCoordinates=function(){return{x1:o,y1:l,x2:s,y2:u}},this.setCoordinates=function(t){o=t.x1,l=t.y1,s=t.x2,u=t.y2,c()},this.setCoordinates({x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2}),this.getBounds=function(){return{minX:Math.min(o,s),minY:Math.min(l,u),maxX:Math.max(o,s),maxY:Math.max(l,u)}},this.pointOnPath=function(t,e){if(0!==t||e){if(1!==t||e){var r=e?t>0?t:n+t:t*n;return i.pointOnLine({x:o,y:l},{x:s,y:u},r)}return{x:s,y:u}}return{x:o,y:l}},this.gradientAtPoint=function(t){return r},this.pointAlongPathFrom=function(t,e,n){var r=this.pointOnPath(t,n),a=e<=0?{x:o,y:l}:{x:s,y:u};return e<=0&&Math.abs(e)>1&&(e*=-1),i.pointOnLine(r,a,e)};var d=function(t,e,n){return n>=Math.min(t,e)&&n<=Math.max(t,e)},h=function(t,e,n){return Math.abs(n-t)<Math.abs(n-e)?t:e};this.findClosestPointOnPath=function(t,e){var c={d:1/0,x:null,y:null,l:null,x1:o,x2:s,y1:l,y2:u};if(0===r)c.y=l,c.x=d(o,s,t)?t:h(o,s,t);else if(r===1/0||r===-1/0)c.x=o,c.y=d(l,u,e)?e:h(l,u,e);else{var f=l-r*o,p=e-a*t,g=(p-f)/(r-a),m=r*g+f;c.x=d(o,s,g)?g:h(o,s,g),c.y=d(l,u,m)?m:h(l,u,m)}var v=i.lineLength([c.x,c.y],[o,l]);return c.d=i.lineLength([t,e],[c.x,c.y]),c.l=v/n,c};var f=function(t,e,n){return n>e?e<=t&&t<=n:e>=t&&t>=n},p=f;this.lineIntersection=function(t,e,n,a){var c=Math.abs(i.gradient({x:t,y:e},{x:n,y:a})),d=Math.abs(r),h=d===1/0?o:l-d*o,f=[],g=c===1/0?t:e-c*t;if(c!==d)if(c===1/0&&0===d)p(t,o,s)&&p(l,e,a)&&(f=[t,l]);else if(0===c&&d===1/0)p(e,l,u)&&p(o,t,n)&&(f=[o,e]);else{var m,v;c===1/0?(m=t,p(m,o,s)&&(v=d*t+h,p(v,e,a)&&(f=[m,v]))):0===c?(v=e,p(v,l,u)&&(m=(e-h)/d,p(m,t,n)&&(f=[m,v]))):(m=(g-h)/(d-c),v=d*m+h,p(m,o,s)&&p(v,l,u)&&(f=[m,v]))}return f},this.boxIntersection=function(t,e,n,i){var r=[];return r.push.apply(r,this.lineIntersection(t,e,t+n,e)),r.push.apply(r,this.lineIntersection(t+n,e,t+n,e+i)),r.push.apply(r,this.lineIntersection(t+n,e+i,t,e+i)),r.push.apply(r,this.lineIntersection(t,e+i,t,e)),r},this.boundingBoxIntersection=function(t){return this.boxIntersection(t.x,t.y,t.w,t.h)}},Arc:function(t){e.Segments.AbstractSegment.apply(this,arguments);var n=function(e,n){return i.theta([t.cx,t.cy],[e,n])},r=function(t,e){if(t.anticlockwise){var n=t.startAngle<t.endAngle?t.startAngle+a:t.startAngle,i=Math.abs(n-t.endAngle);return n-i*e}var r=t.endAngle<t.startAngle?t.endAngle+a:t.endAngle,o=Math.abs(r-t.startAngle);return t.startAngle+o*e},a=2*Math.PI;this.radius=t.r,this.anticlockwise=t.ac,this.type="Arc",t.startAngle&&t.endAngle?(this.startAngle=t.startAngle,this.endAngle=t.endAngle,this.x1=t.cx+this.radius*Math.cos(t.startAngle),this.y1=t.cy+this.radius*Math.sin(t.startAngle),this.x2=t.cx+this.radius*Math.cos(t.endAngle),this.y2=t.cy+this.radius*Math.sin(t.endAngle)):(this.startAngle=n(t.x1,t.y1),this.endAngle=n(t.x2,t.y2),this.x1=t.x1,this.y1=t.y1,this.x2=t.x2,this.y2=t.y2),this.endAngle<0&&(this.endAngle+=a),this.startAngle<0&&(this.startAngle+=a);var o=this.endAngle<this.startAngle?this.endAngle+a:this.endAngle;this.sweep=Math.abs(o-this.startAngle),this.anticlockwise&&(this.sweep=a-this.sweep);var s=2*Math.PI*this.radius,l=this.sweep/a,u=s*l;this.getLength=function(){return u},this.getBounds=function(){return{minX:t.cx-t.r,maxX:t.cx+t.r,minY:t.cy-t.r,maxY:t.cy+t.r}};var c=1e-10,d=function(t){var e=Math.floor(t),n=Math.ceil(t);return t-e<c?e:n-t<c?n:t};this.pointOnPath=function(e,n){if(0===e)return{x:this.x1,y:this.y1,theta:this.startAngle};if(1===e)return{x:this.x2,y:this.y2,theta:this.endAngle};n&&(e/=u);var i=r(this,e),a=t.cx+t.r*Math.cos(i),o=t.cy+t.r*Math.sin(i);return{x:d(a),y:d(o),theta:i}},this.gradientAtPoint=function(e,n){var r=this.pointOnPath(e,n),a=i.normal([t.cx,t.cy],[r.x,r.y]);return this.anticlockwise||a!==1/0&&a!==-1/0||(a*=-1),a},this.pointAlongPathFrom=function(e,n,i){var r=this.pointOnPath(e,i),a=n/s*2*Math.PI,o=this.anticlockwise?-1:1,l=r.theta+o*a,u=t.cx+this.radius*Math.cos(l),c=t.cy+this.radius*Math.sin(l);return{x:u,y:c}}},Bezier:function(n){this.curve=[{x:n.x1,y:n.y1},{x:n.cp1x,y:n.cp1y},{x:n.cp2x,y:n.cp2y},{x:n.x2,y:n.y2}];var i=function(t){return t[0].x===t[1].x&&t[0].y===t[1].y},r=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},a=function(t){var e={x:0,y:0};if(0===t)return this.curve[0];var n=this.curve.length-1;if(1===t)return this.curve[n];var i=this.curve,r=1-t;if(0===n)return this.curve[0];if(1===n)return{x:r*i[0].x+t*i[1].x,y:r*i[0].y+t*i[1].y};if(n<4){var a,o,s,l=r*r,u=t*t,c=0;return 2===n?(i=[i[0],i[1],i[2],e],a=l,o=r*t*2,s=u):3===n&&(a=l*r,o=l*t*3,s=r*u*3,c=t*u),{x:a*i[0].x+o*i[1].x+s*i[2].x+c*i[3].x,y:a*i[0].y+o*i[1].y+s*i[2].y+c*i[3].y}}return e}.bind(this),o=function(t){var e=[];t--;for(var n=0;n<=t;n++)e.push(a(n/t));return e},s=function(){i(this.curve)&&(this.length=0);var t=16,e=o(t);this.length=0;for(var n=0;n<t-1;n++){var a=e[n],s=e[n+1];this.length+=r(a,s)}}.bind(this);e.Segments.AbstractSegment.apply(this,arguments);this.bounds={minX:Math.min(n.x1,n.x2,n.cp1x,n.cp2x),minY:Math.min(n.y1,n.y2,n.cp1y,n.cp2y),maxX:Math.max(n.x1,n.x2,n.cp1x,n.cp2x),maxY:Math.max(n.y1,n.y2,n.cp1y,n.cp2y)},this.type="Bezier",s();var l=function(e,n,i){return i&&(n=t.jsBezier.locationAlongCurveFrom(e,n>0?0:1,n)),n};this.pointOnPath=function(e,n){return e=l(this.curve,e,n),t.jsBezier.pointOnCurve(this.curve,e)},this.gradientAtPoint=function(e,n){return e=l(this.curve,e,n),t.jsBezier.gradientAtPoint(this.curve,e)},this.pointAlongPathFrom=function(e,n,i){return e=l(this.curve,e,i),t.jsBezier.pointAlongCurveFrom(this.curve,e,n)},this.getLength=function(){return this.length},this.getBounds=function(){return this.bounds},this.findClosestPointOnPath=function(e,n){var i=t.jsBezier.nearestPointOnCurve({x:e,y:n},this.curve);return{d:Math.sqrt(Math.pow(i.point.x-e,2)+Math.pow(i.point.y-n,2)),x:i.point.x,y:i.point.y,l:1-i.location,s:this}},this.lineIntersection=function(e,n,i,r){return t.jsBezier.lineIntersection(e,n,i,r,this.curve)}}},e.SegmentRenderer={getPath:function(t,e){return{Straight:function(e){var n=t.getCoordinates();return(e?"M "+n.x1+" "+n.y1+" ":"")+"L "+n.x2+" "+n.y2},Bezier:function(e){var n=t.params;return(e?"M "+n.x2+" "+n.y2+" ":"")+"C "+n.cp2x+" "+n.cp2y+" "+n.cp1x+" "+n.cp1y+" "+n.x1+" "+n.y1},Arc:function(e){var n=t.params,i=t.sweep>Math.PI?1:0,r=t.anticlockwise?0:1;return(e?"M"+t.x1+" "+t.y1+" ":"")+"A "+t.radius+" "+n.r+" 0 "+i+","+r+" "+t.x2+" "+t.y2}}[t.type](e)}};var r=function(){this.resetBounds=function(){this.bounds={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}},this.resetBounds()};e.Connectors.AbstractConnector=function(t){r.apply(this,arguments);var a=[],o=0,s=[],l=[],u=t.stub||0,c=n.isArray(u)?u[0]:u,d=n.isArray(u)?u[1]:u,h=t.gap||0,f=n.isArray(h)?h[0]:h,p=n.isArray(h)?h[1]:h,g=null,m=null;this.getPathData=function(){for(var t="",n=0;n<a.length;n++)t+=e.SegmentRenderer.getPath(a[n],0===n),t+=" ";return t},this.findSegmentForPoint=function(t,e){for(var n={d:1/0,s:null,x:null,y:null,l:null},i=0;i<a.length;i++){var r=a[i].findClosestPointOnPath(t,e);r.d<n.d&&(n.d=r.d,n.l=r.l,n.x=r.x,n.y=r.y,n.s=a[i],n.x1=r.x1,n.x2=r.x2,n.y1=r.y1,n.y2=r.y2,n.index=i,n.connectorLocation=s[i][0]+r.l*(s[i][1]-s[i][0]))}return n},this.lineIntersection=function(t,e,n,i){for(var r=[],o=0;o<a.length;o++)r.push.apply(r,a[o].lineIntersection(t,e,n,i));return r},this.boxIntersection=function(t,e,n,i){for(var r=[],o=0;o<a.length;o++)r.push.apply(r,a[o].boxIntersection(t,e,n,i));return r},this.boundingBoxIntersection=function(t){for(var e=[],n=0;n<a.length;n++)e.push.apply(e,a[n].boundingBoxIntersection(t));return e};var v=function(){for(var t=0,e=0;e<a.length;e++){var n=a[e].getLength();l[e]=n/o,s[e]=[t,t+=n/o]}},y=function(t,e){var n,i,r;if(e&&(t=t>0?t/o:(o+t)/o),1===t)n=a.length-1,r=1;else if(0===t)r=0,n=0;else if(t>=.5){for(n=0,r=0,i=s.length-1;i>-1;i--)if(s[i][1]>=t&&s[i][0]<=t){n=i,r=(t-s[i][0])/l[i];break}}else for(n=s.length-1,r=1,i=0;i<s.length;i++)if(s[i][1]>=t){n=i,r=(t-s[i][0])/l[i];break}return{segment:a[n],proportion:r,index:n}},A=function(t,n,i){if(i.x1!==i.x2||i.y1!==i.y2){var r=new e.Segments[n](i);a.push(r),o+=r.getLength(),t.updateBounds(r)}},b=function(){o=a.length=s.length=l.length=0};this.setSegments=function(t){g=[],o=0;for(var e=0;e<t.length;e++)g.push(t[e]),o+=t[e].getLength()},this.getLength=function(){return o};var _=function(t){this.strokeWidth=t.strokeWidth;var e=i.quadrant(t.sourcePos,t.targetPos),n=t.targetPos[0]<t.sourcePos[0],r=t.targetPos[1]<t.sourcePos[1],a=t.strokeWidth||1,o=t.sourceEndpoint.anchor.getOrientation(t.sourceEndpoint),s=t.targetEndpoint.anchor.getOrientation(t.targetEndpoint),l=n?t.targetPos[0]:t.sourcePos[0],u=r?t.targetPos[1]:t.sourcePos[1],h=Math.abs(t.targetPos[0]-t.sourcePos[0]),g=Math.abs(t.targetPos[1]-t.sourcePos[1]);if(0===o[0]&&0===o[1]||0===s[0]&&0===s[1]){var m=h>g?0:1,v=[1,0][m];o=[],s=[],o[m]=t.sourcePos[m]>t.targetPos[m]?-1:1,s[m]=t.sourcePos[m]>t.targetPos[m]?1:-1,o[v]=0,s[v]=0}var y=n?h+f*o[0]:f*o[0],A=r?g+f*o[1]:f*o[1],b=n?p*s[0]:h+p*s[0],_=r?p*s[1]:g+p*s[1],w=o[0]*s[0]+o[1]*s[1],x={sx:y,sy:A,tx:b,ty:_,lw:a,xSpan:Math.abs(b-y),ySpan:Math.abs(_-A),mx:(y+b)/2,my:(A+_)/2,so:o,to:s,x:l,y:u,w:h,h:g,segment:e,startStubX:y+o[0]*c,startStubY:A+o[1]*c,endStubX:b+s[0]*d,endStubY:_+s[1]*d,isXGreaterThanStubTimes2:Math.abs(y-b)>c+d,isYGreaterThanStubTimes2:Math.abs(A-_)>c+d,opposite:-1===w,perpendicular:0===w,orthogonal:1===w,sourceAxis:0===o[0]?"y":"x",points:[l,u,h,g,y,A,b,_],stubs:[c,d]};return x.anchorOrientation=x.opposite?"opposite":x.orthogonal?"orthogonal":"perpendicular",x};this.getSegments=function(){return a},this.updateBounds=function(t){var e=t.getBounds();this.bounds.minX=Math.min(this.bounds.minX,e.minX),this.bounds.maxX=Math.max(this.bounds.maxX,e.maxX),this.bounds.minY=Math.min(this.bounds.minY,e.minY),this.bounds.maxY=Math.max(this.bounds.maxY,e.maxY)};return this.pointOnPath=function(t,e){var n=y(t,e);return n.segment&&n.segment.pointOnPath(n.proportion,!1)||[0,0]},this.gradientAtPoint=function(t,e){var n=y(t,e);return n.segment&&n.segment.gradientAtPoint(n.proportion,!1)||0},this.pointAlongPathFrom=function(t,e,n){var i=y(t,n);return i.segment&&i.segment.pointAlongPathFrom(i.proportion,e,!1)||[0,0]},this.compute=function(t){m=_.call(this,t),b(),this._compute(m,t),this.x=m.points[0],this.y=m.points[1],this.w=m.points[2],this.h=m.points[3],this.segment=m.segment,v()},{addSegment:A,prepareCompute:_,sourceStub:c,targetStub:d,maxStub:Math.max(c,d),sourceGap:f,targetGap:p,maxGap:Math.max(f,p)}},n.extend(e.Connectors.AbstractConnector,r),e.Endpoints.AbstractEndpoint=function(t){r.apply(this,arguments);var e=this.compute=function(t,e,n,i){var r=this._compute.apply(this,arguments);return this.x=r[0],this.y=r[1],this.w=r[2],this.h=r[3],this.bounds.minX=this.x,this.bounds.minY=this.y,this.bounds.maxX=this.x+this.w,this.bounds.maxY=this.y+this.h,r};return{compute:e,cssClass:t.cssClass}},n.extend(e.Endpoints.AbstractEndpoint,r),e.Endpoints.Dot=function(t){this.type="Dot";e.Endpoints.AbstractEndpoint.apply(this,arguments);t=t||{},this.radius=t.radius||10,this.defaultOffset=.5*this.radius,this.defaultInnerRadius=this.radius/3,this._compute=function(t,e,n,i){this.radius=n.radius||this.radius;var r=t[0]-this.radius,a=t[1]-this.radius,o=2*this.radius,s=2*this.radius;if(n.stroke){var l=n.strokeWidth||1;r-=l,a-=l,o+=2*l,s+=2*l}return[r,a,o,s,this.radius]}},n.extend(e.Endpoints.Dot,e.Endpoints.AbstractEndpoint),e.Endpoints.Rectangle=function(t){this.type="Rectangle";e.Endpoints.AbstractEndpoint.apply(this,arguments);t=t||{},this.width=t.width||20,this.height=t.height||20,this._compute=function(t,e,n,i){var r=n.width||this.width,a=n.height||this.height,o=t[0]-r/2,s=t[1]-a/2;return[o,s,r,a]}},n.extend(e.Endpoints.Rectangle,e.Endpoints.AbstractEndpoint);var a=function(t){e.jsPlumbUIComponent.apply(this,arguments),this._jsPlumb.displayElements=[]};n.extend(a,e.jsPlumbUIComponent,{getDisplayElements:function(){return this._jsPlumb.displayElements},appendDisplayElement:function(t){this._jsPlumb.displayElements.push(t)}}),e.Endpoints.Image=function(i){this.type="Image",a.apply(this,arguments),e.Endpoints.AbstractEndpoint.apply(this,arguments);var r=i.onload,o=i.src||i.url,s=i.cssClass?" "+i.cssClass:"";this._jsPlumb.img=new Image,this._jsPlumb.ready=!1,this._jsPlumb.initialized=!1,this._jsPlumb.deleted=!1,this._jsPlumb.widthToUse=i.width,this._jsPlumb.heightToUse=i.height,this._jsPlumb.endpoint=i.endpoint,this._jsPlumb.img.onload=function(){null!=this._jsPlumb&&(this._jsPlumb.ready=!0,this._jsPlumb.widthToUse=this._jsPlumb.widthToUse||this._jsPlumb.img.width,this._jsPlumb.heightToUse=this._jsPlumb.heightToUse||this._jsPlumb.img.height,r&&r(this))}.bind(this),this._jsPlumb.endpoint.setImage=function(t,e){var n=t.constructor===String?t:t.src;r=e,this._jsPlumb.img.src=n,null!=this.canvas&&this.canvas.setAttribute("src",this._jsPlumb.img.src)}.bind(this),this._jsPlumb.endpoint.setImage(o,r),this._compute=function(t,e,n,i){return this.anchorPoint=t,this._jsPlumb.ready?[t[0]-this._jsPlumb.widthToUse/2,t[1]-this._jsPlumb.heightToUse/2,this._jsPlumb.widthToUse,this._jsPlumb.heightToUse]:[0,0,0,0]},this.canvas=e.createElement("img",{position:"absolute",margin:0,padding:0,outline:0},this._jsPlumb.instance.endpointClass+s),this._jsPlumb.widthToUse&&this.canvas.setAttribute("width",this._jsPlumb.widthToUse),this._jsPlumb.heightToUse&&this.canvas.setAttribute("height",this._jsPlumb.heightToUse),this._jsPlumb.instance.appendElement(this.canvas),this.actuallyPaint=function(t,e,i){if(!this._jsPlumb.deleted){this._jsPlumb.initialized||(this.canvas.setAttribute("src",this._jsPlumb.img.src),this.appendDisplayElement(this.canvas),this._jsPlumb.initialized=!0);var r=this.anchorPoint[0]-this._jsPlumb.widthToUse/2,a=this.anchorPoint[1]-this._jsPlumb.heightToUse/2;n.sizeElement(this.canvas,r,a,this._jsPlumb.widthToUse,this._jsPlumb.heightToUse)}},this.paint=function(e,n){null!=this._jsPlumb&&(this._jsPlumb.ready?this.actuallyPaint(e,n):t.setTimeout(function(){this.paint(e,n)}.bind(this),200))}},n.extend(e.Endpoints.Image,[a,e.Endpoints.AbstractEndpoint],{cleanup:function(t){t&&(this._jsPlumb.deleted=!0,this.canvas&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null)}}),e.Endpoints.Blank=function(t){e.Endpoints.AbstractEndpoint.apply(this,arguments);this.type="Blank",a.apply(this,arguments),this._compute=function(t,e,n,i){return[t[0],t[1],10,0]};var i=t.cssClass?" "+t.cssClass:"";this.canvas=e.createElement("div",{display:"block",width:"1px",height:"1px",background:"transparent",position:"absolute"},this._jsPlumb.instance.endpointClass+i),this._jsPlumb.instance.appendElement(this.canvas),this.paint=function(t,e){n.sizeElement(this.canvas,this.x,this.y,this.w,this.h)}},n.extend(e.Endpoints.Blank,[e.Endpoints.AbstractEndpoint,a],{cleanup:function(){this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)}}),e.Endpoints.Triangle=function(t){this.type="Triangle",e.Endpoints.AbstractEndpoint.apply(this,arguments);var n=this;t=t||{},t.width=t.width||55,t.height=t.height||55,this.width=t.width,this.height=t.height,this._compute=function(t,e,i,r){var a=i.width||n.width,o=i.height||n.height,s=t[0]-a/2,l=t[1]-o/2;return[s,l,a,o]}};var o=e.Overlays.AbstractOverlay=function(t){this.visible=!0,this.isAppendedAtTopLevel=!0,this.component=t.component,this.loc=null==t.location?.5:t.location,this.endpointLoc=null==t.endpointLocation?[.5,.5]:t.endpointLocation,this.visible=!1!==t.visible};o.prototype={cleanup:function(t){t&&(this.component=null,this.canvas=null,this.endpointLoc=null)},reattach:function(t,e){},setVisible:function(t){this.visible=t,this.component.repaint()},isVisible:function(){return this.visible},hide:function(){this.setVisible(!1)},show:function(){this.setVisible(!0)},incrementLocation:function(t){this.loc+=t,this.component.repaint()},setLocation:function(t){this.loc=t,this.component.repaint()},getLocation:function(){return this.loc},updateFrom:function(){}},e.Overlays.Arrow=function(t){this.type="Arrow",o.apply(this,arguments),this.isAppendedAtTopLevel=!1,t=t||{};var r=this;this.length=t.length||20,this.width=t.width||20,this.id=t.id,this.direction=(t.direction||1)<0?-1:1;var a=t.paintStyle||{"stroke-width":1},s=t.foldback||.623;this.computeMaxSize=function(){return 1.5*r.width},this.elementCreated=function(n,i){if(this.path=n,t.events)for(var r in t.events)e.on(n,r,t.events[r])},this.draw=function(t,e){var r,o,l,u,c;if(t.pointAlongPathFrom){if(n.isString(this.loc)||this.loc>1||this.loc<0){var d=parseInt(this.loc,10),h=this.loc<0?1:0;r=t.pointAlongPathFrom(h,d,!1),o=t.pointAlongPathFrom(h,d-this.direction*this.length/2,!1),l=i.pointOnLine(r,o,this.length)}else if(1===this.loc){if(r=t.pointOnPath(this.loc),o=t.pointAlongPathFrom(this.loc,-this.length),l=i.pointOnLine(r,o,this.length),-1===this.direction){var f=l;l=r,r=f}}else if(0===this.loc){if(l=t.pointOnPath(this.loc),o=t.pointAlongPathFrom(this.loc,this.length),r=i.pointOnLine(l,o,this.length),-1===this.direction){var p=l;l=r,r=p}}else r=t.pointAlongPathFrom(this.loc,this.direction*this.length/2),o=t.pointOnPath(this.loc),l=i.pointOnLine(r,o,this.length);u=i.perpendicularLineTo(r,l,this.width),c=i.pointOnLine(r,l,s*this.length);var g={hxy:r,tail:u,cxy:c},m=a.stroke||e.stroke,v=a.fill||e.stroke,y=a.strokeWidth||e.strokeWidth;return{component:t,d:g,"stroke-width":y,stroke:m,fill:v,minX:Math.min(r.x,u[0].x,u[1].x),maxX:Math.max(r.x,u[0].x,u[1].x),minY:Math.min(r.y,u[0].y,u[1].y),maxY:Math.max(r.y,u[0].y,u[1].y)}}return{component:t,minX:0,maxX:0,minY:0,maxY:0}}},n.extend(e.Overlays.Arrow,o,{updateFrom:function(t){this.length=t.length||this.length,this.width=t.width||this.width,this.direction=null!=t.direction?t.direction:this.direction,this.foldback=t.foldback||this.foldback},cleanup:function(){this.path&&this.path.parentNode&&this.path.parentNode.removeChild(this.path)}}),e.Overlays.PlainArrow=function(t){t=t||{};var n=e.extend(t,{foldback:1});e.Overlays.Arrow.call(this,n),this.type="PlainArrow"},n.extend(e.Overlays.PlainArrow,e.Overlays.Arrow),e.Overlays.Diamond=function(t){t=t||{};var n=t.length||40,i=e.extend(t,{length:n/2,foldback:2});e.Overlays.Arrow.call(this,i),this.type="Diamond"},n.extend(e.Overlays.Diamond,e.Overlays.Arrow);var s=function(t,e){return(null==t._jsPlumb.cachedDimensions||e)&&(t._jsPlumb.cachedDimensions=t.getDimensions()),t._jsPlumb.cachedDimensions},l=function(t){e.jsPlumbUIComponent.apply(this,arguments),o.apply(this,arguments);var i=this.fire;this.fire=function(){i.apply(this,arguments),this.component&&this.component.fire.apply(this.component,arguments)},this.detached=!1,this.id=t.id,this._jsPlumb.div=null,this._jsPlumb.initialised=!1,this._jsPlumb.component=t.component,this._jsPlumb.cachedDimensions=null,this._jsPlumb.create=t.create,this._jsPlumb.initiallyInvisible=!1===t.visible,this.getElement=function(){if(null==this._jsPlumb.div){var n=this._jsPlumb.div=e.getElement(this._jsPlumb.create(this._jsPlumb.component));n.style.position="absolute",jsPlumb.addClass(n,this._jsPlumb.instance.overlayClass+" "+(this.cssClass?this.cssClass:t.cssClass?t.cssClass:"")),this._jsPlumb.instance.appendElement(n),this._jsPlumb.instance.getId(n),this.canvas=n;var i="translate(-50%, -50%)";n.style.webkitTransform=i,n.style.mozTransform=i,n.style.msTransform=i,n.style.oTransform=i,n.style.transform=i,n._jsPlumb=this,!1===t.visible&&(n.style.display="none")}return this._jsPlumb.div},this.draw=function(t,e,i){var r=s(this);if(null!=r&&2===r.length){var a={x:0,y:0};if(i)a={x:i[0],y:i[1]};else if(t.pointOnPath){var o=this.loc,l=!1;(n.isString(this.loc)||this.loc<0||this.loc>1)&&(o=parseInt(this.loc,10),l=!0),a=t.pointOnPath(o,l)}else{var u=this.loc.constructor===Array?this.loc:this.endpointLoc;a={x:u[0]*t.w,y:u[1]*t.h}}var c=a.x-r[0]/2,d=a.y-r[1]/2;return{component:t,d:{minx:c,miny:d,td:r,cxy:a},minX:c,maxX:c+r[0],minY:d,maxY:d+r[1]}}return{minX:0,maxX:0,minY:0,maxY:0}}};n.extend(l,[e.jsPlumbUIComponent,o],{getDimensions:function(){return[1,1]},setVisible:function(t){this._jsPlumb.div&&(this._jsPlumb.div.style.display=t?"block":"none",t&&this._jsPlumb.initiallyInvisible&&(s(this,!0),this.component.repaint(),this._jsPlumb.initiallyInvisible=!1))},clearCachedDimensions:function(){this._jsPlumb.cachedDimensions=null},cleanup:function(t){t?null!=this._jsPlumb.div&&(this._jsPlumb.div._jsPlumb=null,this._jsPlumb.instance.removeElement(this._jsPlumb.div)):(this._jsPlumb&&this._jsPlumb.div&&this._jsPlumb.div.parentNode&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div),this.detached=!0)},reattach:function(t,e){null!=this._jsPlumb.div&&t.getContainer().appendChild(this._jsPlumb.div),this.detached=!1},computeMaxSize:function(){var t=s(this);return Math.max(t[0],t[1])},paint:function(t,e){this._jsPlumb.initialised||(this.getElement(),t.component.appendDisplayElement(this._jsPlumb.div),this._jsPlumb.initialised=!0,this.detached&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div)),this._jsPlumb.div.style.left=t.component.x+t.d.minx+"px",this._jsPlumb.div.style.top=t.component.y+t.d.miny+"px"}}),e.Overlays.Custom=function(t){this.type="Custom",l.apply(this,arguments)},n.extend(e.Overlays.Custom,l),e.Overlays.GuideLines=function(){var t=this;t.length=50,t.strokeWidth=5,this.type="GuideLines",o.apply(this,arguments),e.jsPlumbUIComponent.apply(this,arguments),this.draw=function(e,n){var r=e.pointAlongPathFrom(t.loc,t.length/2),a=e.pointOnPath(t.loc),o=i.pointOnLine(r,a,t.length),s=i.perpendicularLineTo(r,o,40),l=i.perpendicularLineTo(o,r,20);return{connector:e,head:r,tail:o,headLine:l,tailLine:s,minX:Math.min(r.x,o.x,l[0].x,l[1].x),minY:Math.min(r.y,o.y,l[0].y,l[1].y),maxX:Math.max(r.x,o.x,l[0].x,l[1].x),maxY:Math.max(r.y,o.y,l[0].y,l[1].y)}}},e.Overlays.Label=function(t){this.labelStyle=t.labelStyle;this.cssClass=null!=this.labelStyle?this.labelStyle.cssClass:null;var n=e.extend({create:function(){return e.createElement("div")}},t);if(e.Overlays.Custom.call(this,n),this.type="Label",this.label=t.label||"",this.labelText=null,this.labelStyle){var i=this.getElement();if(this.labelStyle.font=this.labelStyle.font||"12px sans-serif",i.style.font=this.labelStyle.font,i.style.color=this.labelStyle.color||"black",this.labelStyle.fill&&(i.style.background=this.labelStyle.fill),this.labelStyle.borderWidth>0){var r=this.labelStyle.borderStyle?this.labelStyle.borderStyle:"black";i.style.border=this.labelStyle.borderWidth+"px solid "+r}this.labelStyle.padding&&(i.style.padding=this.labelStyle.padding)}},n.extend(e.Overlays.Label,e.Overlays.Custom,{cleanup:function(t){t&&(this.div=null,this.label=null,this.labelText=null,this.cssClass=null,this.labelStyle=null)},getLabel:function(){return this.label},setLabel:function(t){this.label=t,this.labelText=null,this.clearCachedDimensions(),this.update(),this.component.repaint()},getDimensions:function(){return this.update(),l.prototype.getDimensions.apply(this,arguments)},update:function(){if("function"===typeof this.label){var t=this.label(this);this.getElement().innerHTML=t.replace(/\r\n/g,"<br/>")}else null==this.labelText&&(this.labelText=this.label,this.getElement().innerHTML=this.labelText.replace(/\r\n/g,"<br/>"))},updateFrom:function(t){null!=t.label&&this.setLabel(t.label)}})}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumbUtil,n=t.jsPlumbInstance,i="jtk-group-collapsed",r="jtk-group-expanded",a="[jtk-group-content]",o="elementDraggable",s="stop",l="revert",u="_groupManager",c="_jsPlumbGroup",d="_jsPlumbGroupDrag",h="group:addMember",f="group:removeMember",p="group:add",g="group:remove",m="group:expand",v="group:collapse",y="groupDragStop",A="connectionMoved",b="internal.connectionDetached",_="removeAll",w="orphanAll",x="show",S="hide",C=function(t){var n={},a={},o={},s=this;function l(e,n){var i=t.getContainer(),r=!1;while(!r){if(null==e||e===i)return!1;if(e===n)return!0;e=e.parentNode}}function u(t){delete t.proxies;var n,i=a[t.id];null!=i&&(n=function(e){return e.id===t.id},e.removeWithFunction(i.connections.source,n),e.removeWithFunction(i.connections.target,n),delete a[t.id]),i=o[t.id],null!=i&&(n=function(e){return e.id===t.id},e.removeWithFunction(i.connections.source,n),e.removeWithFunction(i.connections.target,n),delete o[t.id])}function d(e,n){for(var i=e.getEl().querySelectorAll(".jtk-managed"),r=0;r<i.length;r++)t[n?x:S](i[r],!0)}t.bind("connection",(function(n){var i=t.getGroupFor(n.source),r=t.getGroupFor(n.target);null!=i&&null!=r&&i===r?(a[n.connection.id]=i,o[n.connection.id]=i):(null!=i&&(e.suggest(i.connections.source,n.connection),a[n.connection.id]=i),null!=r&&(e.suggest(r.connections.target,n.connection),o[n.connection.id]=r))})),t.bind(b,(function(t){u(t.connection)})),t.bind(A,(function(t){var e=0===t.index?a:o,n=e[t.connection.id];if(n){var i=n.connections[0===t.index?"source":"target"],r=i.indexOf(t.connection);-1!==r&&i.splice(r,1)}})),this.addGroup=function(e){t.addClass(e.getEl(),r),n[e.id]=e,e.manager=this,C(e),t.fire(p,{group:e})},this.addToGroup=function(e,n,i){if(e=this.getGroup(e),e){var r=e.getEl();if(n._isJsPlumbGroup)return;var a=n._jsPlumbGroup;if(a!==e){t.removeFromDragSelection(n);var o=t.getOffset(n,!0),l=e.collapsed?t.getOffset(r,!0):t.getOffset(e.getDragArea(),!0);null!=a&&(a.remove(n,!1,i,!1,e),s.updateConnectionsForGroup(a)),e.add(n,i);var u=function(t,n){var i=0===n?1:0;t.each((function(t){t.setVisible(!1),t.endpoints[i].element._jsPlumbGroup===e?(t.endpoints[i].setVisible(!1),y(t,i,e)):(t.endpoints[n].setVisible(!1),f(t,n,e))}))};e.collapsed&&(u(t.select({source:n}),0),u(t.select({target:n}),1));var c=t.getId(n);t.dragManager.setParent(n,c,r,t.getId(r),o);var d={left:o.left-l.left,top:o.top-l.top};if(t.setPosition(n,d),t.dragManager.revalidateParent(n,c,o),s.updateConnectionsForGroup(e),t.revalidate(c),!i){var p={group:e,el:n,pos:d};a&&(p.sourceGroup=a),t.fire(h,p)}}}},this.removeFromGroup=function(t,e,n){if(t=this.getGroup(t),t){if(t.collapsed){var i=function(n,i){for(var r=0;r<n.length;r++){var a=n[r];if(a.proxies)for(var o=0;o<a.proxies.length;o++)if(null!=a.proxies[o]){var s=a.proxies[o].originalEp.element;(s===e||l(s,e))&&y(a,i,t)}}};i(t.connections.source.slice(),0),i(t.connections.target.slice(),1)}t.remove(e,null,n)}},this.getGroup=function(t){var i=t;if(e.isString(t)&&(i=n[t],null==i))throw new TypeError("No such group ["+t+"]");return i},this.getGroups=function(){var t=[];for(var e in n)t.push(n[e]);return t},this.removeGroup=function(e,i,r,a){e=this.getGroup(e),this.expandGroup(e,!0);var o=e[i?_:w](r,a);return t.remove(e.getEl()),delete n[e.id],delete t._groups[e.id],t.fire(g,{group:e}),o},this.removeAllGroups=function(t,e,i){for(var r in n)this.removeGroup(n[r],t,e,i)};var f=function(e,n,i){var r=e.endpoints[0===n?1:0].element;if(!r[c]||r[c].shouldProxy()||!r[c].collapsed){var a=i.getEl(),o=t.getId(a);t.proxyConnection(e,n,a,o,(function(t,e){return i.getEndpoint(t,e)}),(function(t,e){return i.getAnchor(t,e)}))}};this.collapseGroup=function(e){if(e=this.getGroup(e),null!=e&&!e.collapsed){var n=e.getEl();if(d(e,!1),e.shouldProxy()){var a=function(t,n){for(var i=0;i<t.length;i++){var r=t[i];f(r,n,e)}};a(e.connections.source,0),a(e.connections.target,1)}e.collapsed=!0,t.removeClass(n,r),t.addClass(n,i),t.revalidate(n),t.fire(v,{group:e})}};var y=function(e,n,i){t.unproxyConnection(e,n,t.getId(i.getEl()))};function C(e){for(var n=e.getMembers().slice(),i=[],r=0;r<n.length;r++)Array.prototype.push.apply(i,n[r].querySelectorAll(".jtk-managed"));Array.prototype.push.apply(n,i);var s=t.getConnections({source:n,scope:"*"},!0),l=t.getConnections({target:n,scope:"*"},!0),u={};e.connections.source.length=0,e.connections.target.length=0;var c=function(n){for(var i=0;i<n.length;i++)if(!u[n[i].id]){u[n[i].id]=!0;var r=t.getGroupFor(n[i].source),s=t.getGroupFor(n[i].target);r===e?(s!==e&&e.connections.source.push(n[i]),a[n[i].id]=e):s===e&&(e.connections.target.push(n[i]),o[n[i].id]=e)}};c(s),c(l)}this.expandGroup=function(e,n){if(e=this.getGroup(e),null!=e&&e.collapsed){var a=e.getEl();if(d(e,!0),e.shouldProxy()){var o=function(t,n){for(var i=0;i<t.length;i++){var r=t[i];y(r,n,e)}};o(e.connections.source,0),o(e.connections.target,1)}e.collapsed=!1,t.addClass(a,r),t.removeClass(a,i),t.revalidate(a),this.repaintGroup(e),n||t.fire(m,{group:e})}},this.repaintGroup=function(e){e=this.getGroup(e);for(var n=e.getMembers(),i=0;i<n.length;i++)t.revalidate(n[i])},this.updateConnectionsForGroup=C,this.refreshAllGroups=function(){for(var e in n)C(n[e]),t.dragManager.updateOffsets(t.getId(n[e].getEl()))}},T=function(n,i){var r=this,u=i.el;this.getEl=function(){return u},this.id=i.id||e.uuid(),u._isJsPlumbGroup=!0;var h=this.getDragArea=function(){var t=n.getSelector(u,a);return t&&t.length>0?t[0]:u},p=!0===i.ghost,g=p||!0===i.constrain,m=!1!==i.revert,v=!0===i.orphan,A=!0===i.prune,b=!0===i.dropOverride,_=!1!==i.proxied,w=[];if(this.connections={source:[],target:[],internal:[]},this.getAnchor=function(t,e){return i.anchor||"Continuous"},this.getEndpoint=function(t,e){return i.endpoint||["Dot",{radius:10}]},this.collapsed=!1,!1!==i.draggable){var x={drag:function(){for(var t=0;t<w.length;t++)n.draw(w[t])},stop:function(t){n.fire(y,jsPlumb.extend(t,{group:r}))},scope:d};i.dragOptions&&t.jsPlumb.extend(x,i.dragOptions),n.draggable(i.el,x)}!1!==i.droppable&&n.droppable(i.el,{drop:function(t){var e=t.drag.el;if(!e._isJsPlumbGroup){var i=e._jsPlumbGroup;if(i!==r){if(null!=i&&i.overrideDrop(e,r))return;n.getGroupManager().addToGroup(r,e,!1)}}}});var S=function(t,e){for(var n=null==t.nodeType?t:[t],i=0;i<n.length;i++)e(n[i])};function C(t){return t.offsetParent}function T(t,e){var i=C(t),r=n.getSize(i),a=n.getSize(t),o=e[0],s=o+a[0],l=e[1],u=l+a[1];return s>0&&o<r[0]&&u>0&&l<r[1]}function M(t){var e=n.getId(t),i=n.getOffset(t);return t.parentNode.removeChild(t),n.getContainer().appendChild(t),n.setPosition(t,i),D(t),n.dragManager.clearParent(t,e),[e,i]}function k(t){var e=[];function i(t,e,i){var r=null;if(!T(t,[e,i])){var a=t._jsPlumbGroup;A?n.remove(t):r=M(t),a.remove(t)}return r}for(var r=0;r<t.selection.length;r++)e.push(i(t.selection[r][0],t.selection[r][1].left,t.selection[r][1].top));return 1===e.length?e[0]:e}function L(t){var e=n.getId(t);n.revalidate(t),n.dragManager.revalidateParent(t,e)}function D(t){t._katavorioDrag&&((A||v)&&t._katavorioDrag.off(s,k),A||v||!m||(t._katavorioDrag.off(l,L),t._katavorioDrag.setRevert(null)))}function E(t){t._katavorioDrag&&((A||v)&&t._katavorioDrag.on(s,k),g&&t._katavorioDrag.setConstrain(!0),p&&t._katavorioDrag.setUseGhostProxy(!0),A||v||!m||(t._katavorioDrag.on(l,L),t._katavorioDrag.setRevert((function(t,e){return!T(t,e)}))))}this.overrideDrop=function(t,e){return b&&(m||A||v)},this.add=function(t,e){var i=h();S(t,(function(t){if(null!=t._jsPlumbGroup){if(t._jsPlumbGroup===r)return;t._jsPlumbGroup.remove(t,!0,e,!1)}t._jsPlumbGroup=r,w.push(t),n.isAlreadyDraggable(t)&&E(t),t.parentNode!==i&&i.appendChild(t)})),n.getGroupManager().updateConnectionsForGroup(r)},this.remove=function(t,i,a,o,s){S(t,(function(t){if(t._jsPlumbGroup===r){if(delete t._jsPlumbGroup,e.removeWithFunction(w,(function(e){return e===t})),i)try{r.getDragArea().removeChild(t)}catch(l){jsPlumbUtil.log("Could not remove element from Group "+l)}if(D(t),!a){var o={group:r,el:t};s&&(o.targetGroup=s),n.fire(f,o)}}})),o||n.getGroupManager().updateConnectionsForGroup(r)},this.removeAll=function(t,e){for(var i=0,a=w.length;i<a;i++){var o=w[0];r.remove(o,t,e,!0),n.remove(o,!0)}w.length=0,n.getGroupManager().updateConnectionsForGroup(r)},this.orphanAll=function(){for(var t={},e=0;e<w.length;e++){var n=M(w[e]);t[n[0]]=n[1]}return w.length=0,t},this.getMembers=function(){return w},u[c]=this,n.bind(o,function(t){t.el._jsPlumbGroup===this&&E(t.el)}.bind(this)),this.shouldProxy=function(){return _},n.getGroupManager().addGroup(this)};n.prototype.addGroup=function(t){var e=this;if(e._groups=e._groups||{},null!=e._groups[t.id])throw new TypeError("cannot create Group ["+t.id+"]; a Group with that ID exists");if(null!=t.el[c])throw new TypeError("cannot create Group ["+t.id+"]; the given element is already a Group");var n=new T(e,t);return e._groups[n.id]=n,t.collapsed&&this.collapseGroup(n),n},n.prototype.addToGroup=function(t,e,n){var i=function(e){var i=this.getId(e);this.manage(i,e),this.getGroupManager().addToGroup(t,e,n)}.bind(this);if(Array.isArray(e))for(var r=0;r<e.length;r++)i(e[r]);else i(e)},n.prototype.removeFromGroup=function(t,e,n){this.getGroupManager().removeFromGroup(t,e,n),this.getContainer().appendChild(e)},n.prototype.removeGroup=function(t,e,n,i){return this.getGroupManager().removeGroup(t,e,n,i)},n.prototype.removeAllGroups=function(t,e,n){this.getGroupManager().removeAllGroups(t,e,n)},n.prototype.getGroup=function(t){return this.getGroupManager().getGroup(t)},n.prototype.getGroups=function(){return this.getGroupManager().getGroups()},n.prototype.expandGroup=function(t){this.getGroupManager().expandGroup(t)},n.prototype.collapseGroup=function(t){this.getGroupManager().collapseGroup(t)},n.prototype.repaintGroup=function(t){this.getGroupManager().repaintGroup(t)},n.prototype.toggleGroup=function(t){t=this.getGroupManager().getGroup(t),null!=t&&this.getGroupManager()[t.collapsed?"expandGroup":"collapseGroup"](t)},n.prototype.getGroupManager=function(){var t=this[u];return null==t&&(t=this[u]=new C(this)),t},n.prototype.removeGroupManager=function(){delete this[u]},n.prototype.getGroupFor=function(t){if(t=this.getElement(t),t){var e=this.getContainer(),n=!1,i=null;while(!n)null==t||t===e?n=!0:t[c]?(i=t[c],t,n=!0):t=t.parentNode;return i}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i="Straight",r="Arc",a=function(t){this.type="Flowchart",t=t||{},t.stub=null==t.stub?30:t.stub;var n,a=e.Connectors.AbstractConnector.apply(this,arguments),o=null==t.midpoint||isNaN(t.midpoint)?.5:t.midpoint,s=!0===t.alwaysRespectStubs,l=null,u=null,c=null!=t.cornerRadius?t.cornerRadius:0,d=(t.loopbackRadius,function(t){return t<0?-1:0===t?0:1}),h=function(t){return[d(t[2]-t[0]),d(t[3]-t[1])]},f=function(t,e,n,i){if(l!==e||u!==n){var r=null==l?i.sx:l,a=null==u?i.sy:u,o=r===e?"v":"h";l=e,u=n,t.push([r,a,e,n,o])}},p=function(t){return Math.sqrt(Math.pow(t[0]-t[2],2)+Math.pow(t[1]-t[3],2))},g=function(t){var e=[];return e.push.apply(e,t),e},m=function(t,e,n){for(var o,s,l,u=null,d=0;d<e.length-1;d++){if(u=u||g(e[d]),o=g(e[d+1]),s=h(u),l=h(o),c>0&&u[4]!==o[4]){var f=Math.min(p(u),p(o)),m=Math.min(c,f/2);u[2]-=s[0]*m,u[3]-=s[1]*m,o[0]+=l[0]*m,o[1]+=l[1]*m;var v=s[1]===l[0]&&1===l[0]||s[1]===l[0]&&0===l[0]&&s[0]!==l[1]||s[1]===l[0]&&-1===l[0],y=o[1]>u[3]?1:-1,A=o[0]>u[2]?1:-1,b=y===A,_=b&&v||!b&&!v?o[0]:u[2],w=b&&v||!b&&!v?u[3]:o[1];a.addSegment(t,i,{x1:u[0],y1:u[1],x2:u[2],y2:u[3]}),a.addSegment(t,r,{r:m,x1:u[2],y1:u[3],x2:o[0],y2:o[1],cx:_,cy:w,ac:v})}else{var x=u[2]===u[0]?0:u[2]>u[0]?n.lw/2:-n.lw/2,S=u[3]===u[1]?0:u[3]>u[1]?n.lw/2:-n.lw/2;a.addSegment(t,i,{x1:u[0]-x,y1:u[1]-S,x2:u[2]+x,y2:u[3]+S})}u=o}null!=o&&a.addSegment(t,i,{x1:o[0],y1:o[1],x2:o[2],y2:o[3]})};this.midpoint=o,this._compute=function(t,e){n=[],l=null,u=null,null;var i=function(){return[t.startStubX,t.startStubY,t.endStubX,t.endStubY]},r={perpendicular:i,orthogonal:i,opposite:function(e){var n=t,i="x"===e?0:1,r={x:function(){return 1===n.so[i]&&(n.startStubX>n.endStubX&&n.tx>n.startStubX||n.sx>n.endStubX&&n.tx>n.sx)||-1===n.so[i]&&(n.startStubX<n.endStubX&&n.tx<n.startStubX||n.sx<n.endStubX&&n.tx<n.sx)},y:function(){return 1===n.so[i]&&(n.startStubY>n.endStubY&&n.ty>n.startStubY||n.sy>n.endStubY&&n.ty>n.sy)||-1===n.so[i]&&(n.startStubY<n.endStubY&&n.ty<n.startStubY||n.sy<n.endStubY&&n.ty<n.sy)}};return!s&&r[e]()?{x:[(t.sx+t.tx)/2,t.startStubY,(t.sx+t.tx)/2,t.endStubY],y:[t.startStubX,(t.sy+t.ty)/2,t.endStubX,(t.sy+t.ty)/2]}[e]:[t.startStubX,t.startStubY,t.endStubX,t.endStubY]}},c=r[t.anchorOrientation](t.sourceAxis),d="x"===t.sourceAxis?0:1,h="x"===t.sourceAxis?1:0,p=c[d],g=c[h],v=c[d+2],y=c[h+2];f(n,c[0],c[1],t);var A=t.startStubX+(t.endStubX-t.startStubX)*o,b=t.startStubY+(t.endStubY-t.startStubY)*o,_={x:[0,1],y:[1,0]},w={perpendicular:function(e){var n=t,i={x:[[[1,2,3,4],null,[2,1,4,3]],null,[[4,3,2,1],null,[3,4,1,2]]],y:[[[3,2,1,4],null,[2,3,4,1]],null,[[4,1,2,3],null,[1,4,3,2]]]},r={x:[[n.startStubX,n.endStubX],null,[n.endStubX,n.startStubX]],y:[[n.startStubY,n.endStubY],null,[n.endStubY,n.startStubY]]},a={x:[[A,n.startStubY],[A,n.endStubY]],y:[[n.startStubX,b],[n.endStubX,b]]},o={x:[[n.endStubX,n.startStubY]],y:[[n.startStubX,n.endStubY]]},s={x:[[n.startStubX,n.endStubY],[n.endStubX,n.endStubY]],y:[[n.endStubX,n.startStubY],[n.endStubX,n.endStubY]]},l={x:[[n.startStubX,b],[n.endStubX,b],[n.endStubX,n.endStubY]],y:[[A,n.startStubY],[A,n.endStubY],[n.endStubX,n.endStubY]]},u={x:[n.startStubY,n.endStubY],y:[n.startStubX,n.endStubX]},c=_[e][0],d=_[e][1],h=n.so[c]+1,f=n.to[d]+1,p=-1===n.to[d]&&u[e][1]<u[e][0]||1===n.to[d]&&u[e][1]>u[e][0],g=r[e][h][0],m=r[e][h][1],v=i[e][h][f];return n.segment===v[3]||n.segment===v[2]&&p?a[e]:n.segment===v[2]&&m<g?o[e]:n.segment===v[2]&&m>=g||n.segment===v[1]&&!p?l[e]:n.segment===v[0]||n.segment===v[1]&&p?s[e]:void 0},orthogonal:function(e,n,i,r,a){var o=t,s={x:-1===o.so[0]?Math.min(n,r):Math.max(n,r),y:-1===o.so[1]?Math.min(n,r):Math.max(n,r)}[e];return{x:[[s,i],[s,a],[r,a]],y:[[i,s],[a,s],[a,r]]}[e]},opposite:function(n,i,r,o){var s=t,l={x:"y",y:"x"}[n],u={x:"height",y:"width"}[n],c=s["is"+n.toUpperCase()+"GreaterThanStubTimes2"];if(e.sourceEndpoint.elementId===e.targetEndpoint.elementId){var h=r+(1-e.sourceEndpoint.anchor[l])*e.sourceInfo[u]+a.maxStub;return{x:[[i,h],[o,h]],y:[[h,i],[h,o]]}[n]}return!c||1===s.so[d]&&i>o||-1===s.so[d]&&i<o?{x:[[i,b],[o,b]],y:[[A,i],[A,o]]}[n]:1===s.so[d]&&i<o||-1===s.so[d]&&i>o?{x:[[A,s.sy],[A,s.ty]],y:[[s.sx,b],[s.tx,b]]}[n]:void 0}},x=w[t.anchorOrientation](t.sourceAxis,p,g,v,y);if(x)for(var S=0;S<x.length;S++)f(n,x[S][0],x[S][1],t);f(n,c[2],c[3],t),f(n,t.tx,t.ty,t),m(this,n,t)}};e.Connectors.Flowchart=a,n.extend(e.Connectors.Flowchart,e.Connectors.AbstractConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil;e.Connectors.AbstractBezierConnector=function(t){t=t||{};var n,i=!1!==t.showLoopback,r=(t.curviness,t.margin||5),a=(t.proximityLimit,t.orientation&&"clockwise"===t.orientation),o=t.loopbackRadius||25;return this._compute=function(t,e){var s=e.sourcePos,l=e.targetPos,u=Math.abs(s[0]-l[0]),c=Math.abs(s[1]-l[1]);if(i&&e.sourceEndpoint.elementId===e.targetEndpoint.elementId){!0;var d=e.sourcePos[0],h=e.sourcePos[1]-r,f=d,p=h-o,g=f-o,m=p-o;u=2*o,c=2*o,t.points[0]=g,t.points[1]=m,t.points[2]=u,t.points[3]=c,n.addSegment(this,"Arc",{loopback:!0,x1:d-g+4,y1:h-m,startAngle:0,endAngle:2*Math.PI,r:o,ac:!a,x2:d-g-4,y2:h-m,cx:f-g,cy:p-m})}else!1,this._computeBezier(t,e,s,l,u,c)},n=e.Connectors.AbstractConnector.apply(this,arguments),n},n.extend(e.Connectors.AbstractBezierConnector,e.Connectors.AbstractConnector);var i=function(t){t=t||{},this.type="Bezier";var n=e.Connectors.AbstractBezierConnector.apply(this,arguments),i=t.curviness||150,r=10;this.getCurviness=function(){return i},this._findControlPoint=function(t,e,n,a,o,s,l){var u=s[0]!==l[0]||s[1]===l[1],c=[];return u?(0===l[0]?c.push(n[0]<e[0]?t[0]+r:t[0]-r):c.push(t[0]+i*l[0]),0===l[1]?c.push(n[1]<e[1]?t[1]+r:t[1]-r):c.push(t[1]+i*s[1])):(0===s[0]?c.push(e[0]<n[0]?t[0]+r:t[0]-r):c.push(t[0]-i*s[0]),0===s[1]?c.push(e[1]<n[1]?t[1]+r:t[1]-r):c.push(t[1]+i*l[1])),c},this._computeBezier=function(t,e,i,r,a,o){var s,l,u=i[0]<r[0]?a:0,c=i[1]<r[1]?o:0,d=i[0]<r[0]?0:a,h=i[1]<r[1]?0:o;s=this._findControlPoint([u,c],i,r,e.sourceEndpoint,e.targetEndpoint,t.so,t.to),l=this._findControlPoint([d,h],r,i,e.targetEndpoint,e.sourceEndpoint,t.to,t.so),n.addSegment(this,"Bezier",{x1:u,y1:c,x2:d,y2:h,cp1x:s[0],cp1y:s[1],cp2x:l[0],cp2y:l[1]})}};e.Connectors.Bezier=i,n.extend(i,e.Connectors.AbstractBezierConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i=function(t,e,n,i){return t<=n&&i<=e?1:t<=n&&e<=i?2:n<=t&&i>=e?3:4},r=function(t,e,n,i,r,a,o,s,l){return s<=l?[t,e]:1===n?i[3]<=0&&r[3]>=1?[t+(i[2]<.5?-1*a:a),e]:i[2]>=1&&r[2]<=0?[t,e+(i[3]<.5?-1*o:o)]:[t+-1*a,e+-1*o]:2===n?i[3]>=1&&r[3]<=0?[t+(i[2]<.5?-1*a:a),e]:i[2]>=1&&r[2]<=0?[t,e+(i[3]<.5?-1*o:o)]:[t+a,e+-1*o]:3===n?i[3]>=1&&r[3]<=0?[t+(i[2]<.5?-1*a:a),e]:i[2]<=0&&r[2]>=1?[t,e+(i[3]<.5?-1*o:o)]:[t+-1*a,e+-1*o]:4===n?i[3]<=0&&r[3]>=1?[t+(i[2]<.5?-1*a:a),e]:i[2]<=0&&r[2]>=1?[t,e+(i[3]<.5?-1*o:o)]:[t+a,e+-1*o]:void 0},a=function(t){t=t||{},this.type="StateMachine";var n,a=e.Connectors.AbstractBezierConnector.apply(this,arguments),o=t.curviness||10,s=t.margin||5,l=t.proximityLimit||80;t.orientation&&t.orientation;this._computeBezier=function(t,e,u,c,d,h){var f=e.sourcePos[0]<e.targetPos[0]?0:d,p=e.sourcePos[1]<e.targetPos[1]?0:h,g=e.sourcePos[0]<e.targetPos[0]?d:0,m=e.sourcePos[1]<e.targetPos[1]?h:0;0===e.sourcePos[2]&&(f-=s),1===e.sourcePos[2]&&(f+=s),0===e.sourcePos[3]&&(p-=s),1===e.sourcePos[3]&&(p+=s),0===e.targetPos[2]&&(g-=s),1===e.targetPos[2]&&(g+=s),0===e.targetPos[3]&&(m-=s),1===e.targetPos[3]&&(m+=s);var v,y,A,b,_=(f+g)/2,w=(p+m)/2,x=i(f,p,g,m),S=Math.sqrt(Math.pow(g-f,2)+Math.pow(m-p,2));n=r(_,w,x,e.sourcePos,e.targetPos,o,o,S,l),v=n[0],y=n[0],A=n[1],b=n[1],a.addSegment(this,"Bezier",{x1:g,y1:m,x2:f,y2:p,cp1x:v,cp1y:A,cp2x:y,cp2y:b})}};e.Connectors.StateMachine=a,n.extend(a,e.Connectors.AbstractBezierConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i="Straight",r=function(t){this.type=i;var n=e.Connectors.AbstractConnector.apply(this,arguments);this._compute=function(t,e){n.addSegment(this,i,{x1:t.sx,y1:t.sy,x2:t.startStubX,y2:t.startStubY}),n.addSegment(this,i,{x1:t.startStubX,y1:t.startStubY,x2:t.endStubX,y2:t.endStubY}),n.addSegment(this,i,{x1:t.endStubX,y1:t.endStubY,x2:t.tx,y2:t.ty})}};e.Connectors.Straight=r,n.extend(r,e.Connectors.AbstractConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i={"stroke-linejoin":"stroke-linejoin","stroke-dashoffset":"stroke-dashoffset","stroke-linecap":"stroke-linecap"},r="stroke-dasharray",a="dashstyle",o="linearGradient",s="radialGradient",l="defs",u="fill",c="stop",d="stroke",h="stroke-width",f="style",p="none",g="jsplumb_gradient_",m="strokeWidth",v={svg:"http://www.w3.org/2000/svg"},y=function(t,e){for(var n in e)t.setAttribute(n,""+e[n])},A=function(t,n){return n=n||{},n.version="1.1",n.xmlns=v.svg,e.createElementNS(v.svg,t,null,null,n)},b=function(t){return"position:absolute;left:"+t[0]+"px;top:"+t[1]+"px"},_=function(t){for(var e=t.querySelectorAll(" defs,linearGradient,radialGradient"),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n])},w=function(t,e,n,i,r){var a,h=g+r._jsPlumb.instance.idstamp();_(t),a=n.gradient.offset?A(s,{id:h}):A(o,{id:h,gradientUnits:"userSpaceOnUse"});var f=A(l);t.appendChild(f),f.appendChild(a);for(var p=0;p<n.gradient.stops.length;p++){var m=1===r.segment||2===r.segment?p:n.gradient.stops.length-1-p,v=n.gradient.stops[m][1],y=A(c,{offset:Math.floor(100*n.gradient.stops[p][0])+"%","stop-color":v});a.appendChild(y)}var b=n.stroke?d:u;e.setAttribute(b,"url(#"+h+")")},x=function(t,e,n,o,s){if(e.setAttribute(u,n.fill?n.fill:p),e.setAttribute(d,n.stroke?n.stroke:p),n.gradient?w(t,e,n,o,s):(_(t),e.setAttribute(f,"")),n.strokeWidth&&e.setAttribute(h,n.strokeWidth),n[a]&&n[m]&&!n[r]){var l=-1===n[a].indexOf(",")?" ":",",c=n[a].split(l),g="";c.forEach((function(t){g+=Math.floor(t*n.strokeWidth)+l})),e.setAttribute(r,g)}else n[r]&&e.setAttribute(r,n[r]);for(var v in i)n[v]&&e.setAttribute(i[v],n[v])},S=function(t,e,n){t.childNodes.length>n?t.insertBefore(e,t.childNodes[n]):t.appendChild(e)};n.svg={node:A,attr:y,pos:b};var C=function(t){var i=t.pointerEventsSpec||"all",r={};e.jsPlumbUIComponent.apply(this,t.originalArgs),this.canvas=null,this.path=null,this.svg=null,this.bgCanvas=null;var a=t.cssClass+" "+(t.originalArgs[0].cssClass||""),o={style:"",width:0,height:0,"pointer-events":i,position:"absolute"};this.svg=A("svg",o),t.useDivWrapper?(this.canvas=e.createElement("div",{position:"absolute"}),n.sizeElement(this.canvas,0,0,1,1),this.canvas.className=a):(y(this.svg,{class:a}),this.canvas=this.svg),t._jsPlumb.appendElement(this.canvas,t.originalArgs[0].parent),t.useDivWrapper&&this.canvas.appendChild(this.svg);var s=[this.canvas];return this.getDisplayElements=function(){return s},this.appendDisplayElement=function(t){s.push(t)},this.paint=function(e,i,a){if(null!=e){var o,s=[this.x,this.y],l=[this.w,this.h];null!=a&&(a.xmin<0&&(s[0]+=a.xmin),a.ymin<0&&(s[1]+=a.ymin),l[0]=a.xmax+(a.xmin<0?-a.xmin:0),l[1]=a.ymax+(a.ymin<0?-a.ymin:0)),t.useDivWrapper?(n.sizeElement(this.canvas,s[0],s[1],l[0]>0?l[0]:1,l[1]>0?l[1]:1),s[0]=0,s[1]=0,o=b([0,0])):o=b([s[0],s[1]]),r.paint.apply(this,arguments),y(this.svg,{style:o,width:l[0]||1,height:l[1]||1})}},{renderer:r}};n.extend(C,e.jsPlumbUIComponent,{cleanup:function(t){t||null==this.typeId?(this.canvas&&(this.canvas._jsPlumb=null),this.svg&&(this.svg._jsPlumb=null),this.bgCanvas&&(this.bgCanvas._jsPlumb=null),this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.svg=null,this.canvas=null,this.path=null,this.group=null,this._jsPlumb=null):(this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.bgCanvas.parentNode.removeChild(this.bgCanvas))},reattach:function(t){var e=t.getContainer();this.canvas&&null==this.canvas.parentNode&&e.appendChild(this.canvas),this.bgCanvas&&null==this.bgCanvas.parentNode&&e.appendChild(this.bgCanvas)},setVisible:function(t){this.canvas&&(this.canvas.style.display=t?"block":"none")}}),e.ConnectorRenderers.svg=function(t){var n=this,i=C.apply(this,[{cssClass:t._jsPlumb.connectorClass,originalArgs:arguments,pointerEventsSpec:"none",_jsPlumb:t._jsPlumb}]);i.renderer.paint=function(i,r,a){var o=n.getSegments(),s="",l=[0,0];if(a.xmin<0&&(l[0]=-a.xmin),a.ymin<0&&(l[1]=-a.ymin),o.length>0){s=n.getPathData();var u={d:s,transform:"translate("+l[0]+","+l[1]+")","pointer-events":t["pointer-events"]||"visibleStroke"},c=null,d=[n.x,n.y,n.w,n.h];if(i.outlineStroke){var h=i.outlineWidth||1,f=i.strokeWidth+2*h;c=e.extend({},i),delete c.gradient,c.stroke=i.outlineStroke,c.strokeWidth=f,null==n.bgPath?(n.bgPath=A("path",u),e.addClass(n.bgPath,e.connectorOutlineClass),S(n.svg,n.bgPath,0)):y(n.bgPath,u),x(n.svg,n.bgPath,c,d,n)}null==n.path?(n.path=A("path",u),S(n.svg,n.path,i.outlineStroke?1:0)):y(n.path,u),x(n.svg,n.path,i,d,n)}}},n.extend(e.ConnectorRenderers.svg,C);var T=e.SvgEndpoint=function(t){var n=C.apply(this,[{cssClass:t._jsPlumb.endpointClass,originalArgs:arguments,pointerEventsSpec:"all",useDivWrapper:!0,_jsPlumb:t._jsPlumb}]);n.renderer.paint=function(t){var n=e.extend({},t);n.outlineStroke&&(n.stroke=n.outlineStroke),null==this.node?(this.node=this.makeNode(n),this.svg.appendChild(this.node)):null!=this.updateNode&&this.updateNode(this.node),x(this.svg,this.node,n,[this.x,this.y,this.w,this.h],this),b(this.node,[this.x,this.y])}.bind(this)};n.extend(T,C),e.Endpoints.svg.Dot=function(){e.Endpoints.Dot.apply(this,arguments),T.apply(this,arguments),this.makeNode=function(t){return A("circle",{cx:this.w/2,cy:this.h/2,r:this.radius})},this.updateNode=function(t){y(t,{cx:this.w/2,cy:this.h/2,r:this.radius})}},n.extend(e.Endpoints.svg.Dot,[e.Endpoints.Dot,T]),e.Endpoints.svg.Rectangle=function(){e.Endpoints.Rectangle.apply(this,arguments),T.apply(this,arguments),this.makeNode=function(t){return A("rect",{width:this.w,height:this.h})},this.updateNode=function(t){y(t,{width:this.w,height:this.h})}},n.extend(e.Endpoints.svg.Rectangle,[e.Endpoints.Rectangle,T]),e.Endpoints.svg.Image=e.Endpoints.Image,e.Endpoints.svg.Blank=e.Endpoints.Blank,e.Overlays.svg.Label=e.Overlays.Label,e.Overlays.svg.Custom=e.Overlays.Custom;var M=function(t,n){t.apply(this,n),e.jsPlumbUIComponent.apply(this,n),this.isAppendedAtTopLevel=!1;this.path=null,this.paint=function(t,e){if(t.component.svg&&e){null==this.path&&(this.path=A("path",{"pointer-events":"all"}),t.component.svg.appendChild(this.path),this.elementCreated&&this.elementCreated(this.path,t.component),this.canvas=t.component.svg);var r=n&&1===n.length&&n[0].cssClass||"",a=[0,0];e.xmin<0&&(a[0]=-e.xmin),e.ymin<0&&(a[1]=-e.ymin),y(this.path,{d:i(t.d),class:r,stroke:t.stroke?t.stroke:null,fill:t.fill?t.fill:null,transform:"translate("+a[0]+","+a[1]+")"})}};var i=function(t){return isNaN(t.cxy.x)||isNaN(t.cxy.y)?"":"M"+t.hxy.x+","+t.hxy.y+" L"+t.tail[0].x+","+t.tail[0].y+" L"+t.cxy.x+","+t.cxy.y+" L"+t.tail[1].x+","+t.tail[1].y+" L"+t.hxy.x+","+t.hxy.y};this.transfer=function(t){t.canvas&&this.path&&this.path.parentNode&&(this.path.parentNode.removeChild(this.path),t.canvas.appendChild(this.path))}},k={cleanup:function(t){null!=this.path&&(t?this._jsPlumb.instance.removeElement(this.path):this.path.parentNode&&this.path.parentNode.removeChild(this.path))},reattach:function(t,e){this.path&&e.canvas&&e.canvas.appendChild(this.path)},setVisible:function(t){null!=this.path&&(this.path.style.display=t?"block":"none")}};n.extend(M,[e.jsPlumbUIComponent,e.Overlays.AbstractOverlay]),e.Overlays.svg.Arrow=function(){M.apply(this,[e.Overlays.Arrow,arguments])},n.extend(e.Overlays.svg.Arrow,[e.Overlays.Arrow,M],k),e.Overlays.svg.PlainArrow=function(){M.apply(this,[e.Overlays.PlainArrow,arguments])},n.extend(e.Overlays.svg.PlainArrow,[e.Overlays.PlainArrow,M],k),e.Overlays.svg.Diamond=function(){M.apply(this,[e.Overlays.Diamond,arguments])},n.extend(e.Overlays.svg.Diamond,[e.Overlays.Diamond,M],k),e.Overlays.svg.GuideLines=function(){var t,n,i=null,r=this;e.Overlays.GuideLines.apply(this,arguments),this.paint=function(e,o){null==i&&(i=A("path"),e.connector.svg.appendChild(i),r.attachListeners(i,e.connector),r.attachListeners(i,r),t=A("path"),e.connector.svg.appendChild(t),r.attachListeners(t,e.connector),r.attachListeners(t,r),n=A("path"),e.connector.svg.appendChild(n),r.attachListeners(n,e.connector),r.attachListeners(n,r));var s=[0,0];o.xmin<0&&(s[0]=-o.xmin),o.ymin<0&&(s[1]=-o.ymin),y(i,{d:a(e.head,e.tail),stroke:"red",fill:null,transform:"translate("+s[0]+","+s[1]+")"}),y(t,{d:a(e.tailLine[0],e.tailLine[1]),stroke:"blue",fill:null,transform:"translate("+s[0]+","+s[1]+")"}),y(n,{d:a(e.headLine[0],e.headLine[1]),stroke:"green",fill:null,transform:"translate("+s[0]+","+s[1]+")"})};var a=function(t,e){return"M "+t.x+","+t.y+" L"+e.x+","+e.y}},n.extend(e.Overlays.svg.GuideLines,e.Overlays.GuideLines)}.call("undefined"!==typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i=t.Katavorio,r=t.Biltong,a=function(e){var n=e._mottle;return n||(n=e._mottle=new t.Mottle),n},o=function(t,n){n=n||"main";var a="_katavorio_"+n,o=t[a],s=t.getEventManager();return o||(o=new i({bind:s.on,unbind:s.off,getSize:e.getSize,getConstrainingRectangle:function(t){return[t.parentNode.scrollWidth,t.parentNode.scrollHeight]},getPosition:function(e,n){var i=t.getOffset(e,n,e._katavorioDrag?e.offsetParent:null);return[i.left,i.top]},setPosition:function(t,e){t.style.left=e[0]+"px",t.style.top=e[1]+"px"},addClass:e.addClass,removeClass:e.removeClass,intersects:r.intersects,indexOf:function(t,e){return t.indexOf(e)},scope:t.getDefaultScope(),css:{noSelect:t.dragSelectClass,droppable:"jtk-droppable",draggable:"jtk-draggable",drag:"jtk-drag",selected:"jtk-drag-selected",active:"jtk-drag-active",hover:"jtk-drag-hover",ghostProxy:"jtk-ghost-proxy"}}),o.setZoom(t.getZoom()),t[a]=o,t.bind("zoom",o.setZoom)),o},s=function(t){var e=t.el._jsPlumbDragOptions,n=!0;return e.canDrag&&(n=e.canDrag()),n&&(this.setHoverSuspended(!0),this.select({source:t.el}).addClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:t.el}).addClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),this.setConnectionBeingDragged(!0)),n},l=function(t){var e=this.getUIPosition(arguments,this.getZoom());if(null!=e){var n=t.el._jsPlumbDragOptions;this.draw(t.el,e,null,!0),n._dragging&&this.addClass(t.el,"jtk-dragged"),n._dragging=!0}},u=function(t){for(var e,n=t.selection,i=function(n){var i;null!=n[1]&&(e=this.getUIPosition([{el:n[2].el,pos:[n[1].left,n[1].top]}]),i=this.draw(n[2].el,e)),null!=n[0]._jsPlumbDragOptions&&delete n[0]._jsPlumbDragOptions._dragging,this.removeClass(n[0],"jtk-dragged"),this.select({source:n[2].el}).removeClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:n[2].el}).removeClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),t.e._drawResult=t.e._drawResult||{c:[],e:[],a:[]},Array.prototype.push.apply(t.e._drawResult.c,i.c),Array.prototype.push.apply(t.e._drawResult.e,i.e),Array.prototype.push.apply(t.e._drawResult.a,i.a),this.getDragManager().dragEnded(n[2].el)}.bind(this),r=0;r<n.length;r++)i(n[r]);this.setHoverSuspended(!1),this.setConnectionBeingDragged(!1)},c=function(t,e){var i=function(i){if(null!=e[i]){if(n.isString(e[i])){var r=e[i].match(/-=/)?-1:1,a=e[i].substring(2);return t[i]+r*a}return e[i]}return t[i]};return[i("left"),i("top")]},d=function(t,e){if(null==e)return[0,0];var n=m(e),i=g(n,0);return[i[t+"X"],i[t+"Y"]]},h=d.bind(this,"page"),f=d.bind(this,"screen"),p=d.bind(this,"client"),g=function(t,e){return t.item?t.item(e):t[e]},m=function(t){return t.touches&&t.touches.length>0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},v=function(t){var e={},n=[],i={},r={},a={};this.register=function(o){var s,l=t.getId(o);e[l]||(e[l]=o,n.push(o),i[l]={});var u=function(e){if(e)for(var n=0;n<e.childNodes.length;n++)if(3!==e.childNodes[n].nodeType&&8!==e.childNodes[n].nodeType){var c=jsPlumb.getElement(e.childNodes[n]),d=t.getId(e.childNodes[n],null,!0);if(d&&r[d]&&r[d]>0){s||(s=t.getOffset(o));var h=t.getOffset(c);i[l][d]={id:d,offset:{left:h.left-s.left,top:h.top-s.top}},a[d]=l}u(e.childNodes[n])}};u(o)},this.updateOffsets=function(e,n){if(null!=e){n=n||{};var r,o=jsPlumb.getElement(e),s=t.getId(o),l=i[s];if(l)for(var u in l)if(l.hasOwnProperty(u)){var c=jsPlumb.getElement(u),d=n[u]||t.getOffset(c);if(null==c.offsetParent&&null!=i[s][u])continue;r||(r=t.getOffset(o)),i[s][u]={id:u,offset:{left:d.left-r.left,top:d.top-r.top}},a[u]=s}}},this.endpointAdded=function(n,o){o=o||t.getId(n);var s=document.body,l=n.parentNode;r[o]=r[o]?r[o]+1:1;while(null!=l&&l!==s){var u=t.getId(l,null,!0);if(u&&e[u]){var c=t.getOffset(l);if(null==i[u][o]){var d=t.getOffset(n);i[u][o]={id:o,offset:{left:d.left-c.left,top:d.top-c.top}},a[o]=u}break}l=l.parentNode}},this.endpointDeleted=function(t){if(r[t.elementId]&&(r[t.elementId]--,r[t.elementId]<=0))for(var e in i)i.hasOwnProperty(e)&&i[e]&&(delete i[e][t.elementId],delete a[t.elementId])},this.changeId=function(t,e){i[e]=i[t],i[t]={},a[e]=a[t],a[t]=null},this.getElementsForDraggable=function(t){return i[t]},this.elementRemoved=function(t){var e=a[t];e&&(i[e]&&delete i[e][t],delete a[t])},this.reset=function(){e={},n=[],i={},r={}},this.dragEnded=function(e){if(null!=e.offsetParent){var n=t.getId(e),i=a[n];i&&this.updateOffsets(i)}},this.setParent=function(e,n,r,o,s){var l=a[n];i[o]||(i[o]={});var u=t.getOffset(r),c=s||t.getOffset(e);l&&i[l]&&delete i[l][n],i[o][n]={id:n,offset:{left:c.left-u.left,top:c.top-u.top}},a[n]=o},this.clearParent=function(t,e){var n=a[e];n&&(delete i[n][e],delete a[e])},this.revalidateParent=function(e,n,i){var r=a[n];if(r){var o={};o[n]=i,this.updateOffsets(r,o),t.revalidate(r)}},this.getDragAncestor=function(e){var n=jsPlumb.getElement(e),i=t.getId(n),r=a[i];return r?jsPlumb.getElement(r):null}},y=function(t,e,i){e=n.fastTrim(e),"undefined"!==typeof t.className.baseVal?t.className.baseVal=e:t.className=e;try{var r=t.classList;if(null!=r){while(r.length>0)r.remove(r.item(0));for(var a=0;a<i.length;a++)i[a]&&r.add(i[a])}}catch(o){n.log("JSPLUMB: cannot set class list",o)}},A=function(t){return"undefined"===typeof t.className.baseVal?t.className:t.className.baseVal},b=function(t,e,i){e=null==e?[]:n.isArray(e)?e:e.split(/\s+/),i=null==i?[]:n.isArray(i)?i:i.split(/\s+/);var r=A(t),a=r.split(/\s+/),o=function(t,e){for(var n=0;n<e.length;n++)if(t)-1===a.indexOf(e[n])&&a.push(e[n]);else{var i=a.indexOf(e[n]);-1!==i&&a.splice(i,1)}};o(!0,e),o(!1,i),y(t,a.join(" "),a)};t.jsPlumb.extend(t.jsPlumbInstance.prototype,{headless:!1,pageLocation:h,screenLocation:f,clientLocation:p,getDragManager:function(){return null==this.dragManager&&(this.dragManager=new v(this)),this.dragManager},recalculateOffsets:function(t){this.getDragManager().updateOffsets(t)},createElement:function(t,e,n,i){return this.createElementNS(null,t,e,n,i)},createElementNS:function(t,e,n,i,r){var a,o=null==t?document.createElement(e):document.createElementNS(t,e);for(a in n=n||{},n)o.style[a]=n[a];for(a in i&&(o.className=i),r=r||{},r)o.setAttribute(a,""+r[a]);return o},getAttribute:function(t,e){return null!=t.getAttribute?t.getAttribute(e):null},setAttribute:function(t,e,n){null!=t.setAttribute&&t.setAttribute(e,n)},setAttributes:function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setAttribute(n,e[n])},appendToRoot:function(t){document.body.appendChild(t)},getRenderModes:function(){return["svg"]},getClass:A,addClass:function(t,e){jsPlumb.each(t,(function(t){b(t,e)}))},hasClass:function(t,e){return t=jsPlumb.getElement(t),t.classList?t.classList.contains(e):-1!==A(t).indexOf(e)},removeClass:function(t,e){jsPlumb.each(t,(function(t){b(t,null,e)}))},toggleClass:function(t,e){jsPlumb.hasClass(t,e)?jsPlumb.removeClass(t,e):jsPlumb.addClass(t,e)},updateClasses:function(t,e,n){jsPlumb.each(t,(function(t){b(t,e,n)}))},setClass:function(t,e){null!=e&&jsPlumb.each(t,(function(t){y(t,e,e.split(/\s+/))}))},setPosition:function(t,e){t.style.left=e.left+"px",t.style.top=e.top+"px"},getPosition:function(t){var e=function(e){var n=t.style[e];return n?n.substring(0,n.length-2):0};return{left:e("left"),top:e("top")}},getStyle:function(t,e){return"undefined"!==typeof window.getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.currentStyle[e]},getSelector:function(t,e){var n=null;return n=1===arguments.length?null!=t.nodeType?t:document.querySelectorAll(t):t.querySelectorAll(e),n},getOffset:function(t,e,n){t=jsPlumb.getElement(t),n=n||this.getContainer();var i={left:t.offsetLeft,top:t.offsetTop},r=e||null!=n&&t!==n&&t.offsetParent!==n?t.offsetParent:null,a=function(t){null!=t&&t!==document.body&&(t.scrollTop>0||t.scrollLeft>0)&&(i.left-=t.scrollLeft,i.top-=t.scrollTop)}.bind(this);while(null!=r)i.left+=r.offsetLeft,i.top+=r.offsetTop,a(r),r=e?r.offsetParent:r.offsetParent===n?null:r.offsetParent;if(null!=n&&!e&&(n.scrollTop>0||n.scrollLeft>0)){var o=null!=t.offsetParent?this.getStyle(t.offsetParent,"position"):"static",s=this.getStyle(t,"position");"absolute"!==s&&"fixed"!==s&&"absolute"!==o&&"fixed"!==o&&(i.left-=n.scrollLeft,i.top-=n.scrollTop)}return i},getPositionOnElement:function(t,e,n){var i="undefined"!==typeof e.getBoundingClientRect?e.getBoundingClientRect():{left:0,top:0,width:0,height:0},r=document.body,a=document.documentElement,o=window.pageYOffset||a.scrollTop||r.scrollTop,s=window.pageXOffset||a.scrollLeft||r.scrollLeft,l=a.clientTop||r.clientTop||0,u=a.clientLeft||r.clientLeft||0,c=0,d=0,h=i.top+o-l+c*n,f=i.left+s-u+d*n,p=jsPlumb.pageLocation(t),g=i.width||e.offsetWidth*n,m=i.height||e.offsetHeight*n,v=(p[0]-f)/g,y=(p[1]-h)/m;return[v,y]},getAbsolutePosition:function(t){var e=function(e){var n=t.style[e];if(n)return parseFloat(n.substring(0,n.length-2))};return[e("left"),e("top")]},setAbsolutePosition:function(t,e,n,i){n?this.animate(t,{left:"+="+(e[0]-n[0]),top:"+="+(e[1]-n[1])},i):(t.style.left=e[0]+"px",t.style.top=e[1]+"px")},getSize:function(t){return[t.offsetWidth,t.offsetHeight]},getWidth:function(t){return t.offsetWidth},getHeight:function(t){return t.offsetHeight},getRenderMode:function(){return"svg"},draggable:function(t,e){var i;return t=n.isArray(t)||null!=t.length&&!n.isString(t)?t:[t],Array.prototype.slice.call(t).forEach(function(t){i=this.info(t),i.el&&this._initDraggableIfNecessary(i.el,!0,e,i.id,!0)}.bind(this)),this},snapToGrid:function(t,e,n){var i=[],r=function(t){var r=this.info(t);if(null!=r.el&&r.el._katavorioDrag){var a=r.el._katavorioDrag.snap(e,n);this.revalidate(r.el),i.push([r.el,a])}}.bind(this);if(1===arguments.length||3===arguments.length)r(t,e,n);else{var a=this.getManagedElements();for(var o in a)r(o,arguments[0],arguments[1])}return i},initDraggable:function(t,e,n){o(this,n).draggable(t,e),t._jsPlumbDragOptions=e},destroyDraggable:function(t,e){o(this,e).destroyDraggable(t),t._jsPlumbDragOptions=null,t._jsPlumbRelatedElement=null},unbindDraggable:function(t,e,n,i){o(this,i).destroyDraggable(t,e,n)},setDraggable:function(t,e){return jsPlumb.each(t,function(t){this.isDragSupported(t)&&(this._draggableStates[this.getAttribute(t,"id")]=e,this.setElementDraggable(t,e))}.bind(this))},_draggableStates:{},toggleDraggable:function(t){var e;return jsPlumb.each(t,function(t){var n=this.getAttribute(t,"id");return e=null!=this._draggableStates[n]&&this._draggableStates[n],e=!e,this._draggableStates[n]=e,this.setDraggable(t,e),e}.bind(this)),e},_initDraggableIfNecessary:function(t,e,i,r,a){if(!jsPlumb.headless){var o=null!=e&&e;if(o&&jsPlumb.isDragSupported(t,this)){var c=i||this.Defaults.DragOptions;if(c=jsPlumb.extend({},c),jsPlumb.isAlreadyDraggable(t,this))i.force&&this.initDraggable(t,c);else{var d=jsPlumb.dragEvents.drag,h=jsPlumb.dragEvents.stop,f=jsPlumb.dragEvents.start;this.manage(r,t),c[f]=n.wrap(c[f],s.bind(this)),c[d]=n.wrap(c[d],l.bind(this)),c[h]=n.wrap(c[h],u.bind(this));var p=this.getId(t);this._draggableStates[p]=!0;var g=this._draggableStates[p];c.disabled=null!=g&&!g,this.initDraggable(t,c),this.getDragManager().register(t),a&&this.fire("elementDraggable",{el:t,options:c})}}}},animationSupported:!0,getElement:function(t){return null==t?null:(t="string"===typeof t?t:null==t.tagName&&null!=t.length&&null==t.enctype?t[0]:t,"string"===typeof t?document.getElementById(t):t)},removeElement:function(t){o(this).elementRemoved(t),this.getEventManager().remove(t)},doAnimate:function(t,n,i){i=i||{};var r=this.getOffset(t),a=c(r,n),o=a[0]-r.left,s=a[1]-r.top,l=i.duration||250,u=15,d=l/u,h=u/l*o,f=u/l*s,p=0,g=setInterval((function(){e.setPosition(t,{left:r.left+h*(p+1),top:r.top+f*(p+1)}),null!=i.step&&i.step(p,Math.ceil(d)),p++,p>=d&&(window.clearInterval(g),null!=i.complete&&i.complete())}),u)},destroyDroppable:function(t,e){o(this,e).destroyDroppable(t)},unbindDroppable:function(t,e,n,i){o(this,i).destroyDroppable(t,e,n)},droppable:function(t,e){var i;return t=n.isArray(t)||null!=t.length&&!n.isString(t)?t:[t],e=e||{},e.allowLoopback=!1,Array.prototype.slice.call(t).forEach(function(t){i=this.info(t),i.el&&this.initDroppable(i.el,e)}.bind(this)),this},initDroppable:function(t,e,n){o(this,n).droppable(t,e)},isAlreadyDraggable:function(t){return null!=t._katavorioDrag},isDragSupported:function(t,e){return!0},isDropSupported:function(t,e){return!0},isElementDraggable:function(t){return t=e.getElement(t),t._katavorioDrag&&t._katavorioDrag.isEnabled()},getDragObject:function(t){return t[0].drag.getDragElement()},getDragScope:function(t){return t._katavorioDrag&&t._katavorioDrag.scopes.join(" ")||""},getDropEvent:function(t){return t[0].e},getUIPosition:function(t,e){var n=t[0].el;if(null==n.offsetParent)return null;var i=t[0].finalPos||t[0].pos,r={left:i[0],top:i[1]};if(n._katavorioDrag&&n.offsetParent!==this.getContainer()){var a=this.getOffset(n.offsetParent);r.left+=a.left,r.top+=a.top}return r},setDragFilter:function(t,e,n){t._katavorioDrag&&t._katavorioDrag.setFilter(e,n)},setElementDraggable:function(t,n){t=e.getElement(t),t._katavorioDrag&&t._katavorioDrag.setEnabled(n)},setDragScope:function(t,e){t._katavorioDrag&&t._katavorioDrag.k.setDragScope(t,e)},setDropScope:function(t,e){t._katavorioDrop&&t._katavorioDrop.length>0&&t._katavorioDrop[0].k.setDropScope(t,e)},addToPosse:function(t,n){var i=Array.prototype.slice.call(arguments,1),r=o(this);e.each(t,(function(t){t=[e.getElement(t)],t.push.apply(t,i),r.addToPosse.apply(r,t)}))},setPosse:function(t,n){var i=Array.prototype.slice.call(arguments,1),r=o(this);e.each(t,(function(t){t=[e.getElement(t)],t.push.apply(t,i),r.setPosse.apply(r,t)}))},removeFromPosse:function(t,n){var i=Array.prototype.slice.call(arguments,1),r=o(this);e.each(t,(function(t){t=[e.getElement(t)],t.push.apply(t,i),r.removeFromPosse.apply(r,t)}))},removeFromAllPosses:function(t){var n=o(this);e.each(t,(function(t){n.removeFromAllPosses(e.getElement(t))}))},setPosseState:function(t,n,i){var r=o(this);e.each(t,(function(t){r.setPosseState(e.getElement(t),n,i)}))},dragEvents:{start:"start",stop:"stop",drag:"drag",step:"step",over:"over",out:"out",drop:"drop",complete:"complete",beforeStart:"beforeStart"},animEvents:{step:"step",complete:"complete"},stopDrag:function(t){t._katavorioDrag&&t._katavorioDrag.abort()},addToDragSelection:function(t){var e=this.getElement(t);null==e||!e._isJsPlumbGroup&&null!=e._jsPlumbGroup||o(this).select(t)},removeFromDragSelection:function(t){o(this).deselect(t)},getDragSelection:function(){return o(this).getSelection()},clearDragSelection:function(){o(this).deselectAll()},trigger:function(t,e,n,i){this.getEventManager().trigger(t,e,n,i)},doReset:function(){for(var t in this)0===t.indexOf("_katavorio_")&&this[t].reset()},getEventManager:function(){return a(this)},on:function(t,e,n){return this.getEventManager().on.apply(this,arguments),this},off:function(t,e,n){return this.getEventManager().off.apply(this,arguments),this}});var _=function(t){var e=function(){/complete|loaded|interactive/.test(document.readyState)&&"undefined"!==typeof document.body&&null!=document.body?t():setTimeout(e,9)};e()};_(e.init)}.call("undefined"!==typeof window?window:this)},e1d3:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}});return e}))},e204:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel-block"},[e("PanelCard",{attrs:{"panel-name":"注册用户趋势图","card-id":"reg-user"},on:{dateChange:t.dateChange},scopedSlots:t._u([{key:"default",fn:function(){return[e("div",[e("div",{staticStyle:{height:"320px",width:"100%"}},[t.xdata.length>0?e("EchartColumnar",{attrs:{"chart-id":"register-user","chart-type":[{type:"line",yAxisIndex:0}],"x-data":t.xdata,"y-data":t.ydata,"y-unit":t.yunit,"x-unit":t.xunit,left:"30",right:"30",top:"30"}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{attrs:{src:"images/w-imgs/nomessage.png"}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])]},proxy:!0}])})],1)},r=[],a=n("76a6"),o={components:{PanelCard:a["a"]},props:{},data:function(){return{dateArr:[],xdata:[],ydata:[[]],xunit:{name:"",align:"end",size:"13"},yunit:{name:"",align:"center",size:"13"}}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{dateChange:function(t){this.dateArr=t,this.getStatData(this.dateArr[0],this.dateArr[1])},getStatData:function(t,e){var n=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{startTime:t,endTime:e},url:"platStatistics/BusinessOpen/getOrgOpenTrend"}).then((function(t){if("success"===t.code){var e=t.body.listdata,i=[],r=[];e.forEach((function(t,e){t.month=t.month.replace("-","/"),i.push(t.month),r.push(t.totalNum)})),n.xdata=i,n.ydata=[r]}else n.$message({message:t.message,type:"warning"})}),(function(t){n.$message.error(t)}))}}},s=o,l=n("2877"),u=Object(l["a"])(s,i,r,!1,null,"2b0831e8",null);e["a"]=u.exports},e246:function(t,e,n){var i=n("b1ee");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("972b1f6a",i,!0,{sourceMap:!1,shadowMode:!1})},e2bf:function(t,e,n){var i=n("7b83");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("bcf48078",i,!0,{sourceMap:!1,shadowMode:!1})},e331:function(t,e,n){var i=n("2961");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("0d8b2cfe",i,!0,{sourceMap:!1,shadowMode:!1})},e33d:function(t,e,n){"use strict";n("803a")},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e4ae:function(t,e,n){var i=n("f772");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},e4f7:function(t,e,n){var i=n("4bf8"),r=n("38fd");n("5eda")("getPrototypeOf",(function(){return function(t){return r(i(t))}}))},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e5c1:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".content[data-v-72bcc38a]{color:red;font-size:32px;font-weight:700;text-align:center;margin-bottom:32px;margin-top:42px}",""]),t.exports=e},e792:function(t,e,n){"use strict";n("8366");var i=r(n("56c5"));function r(t){return t&&t.__esModule?t:{default:t}}i["default"]._babelPolyfill&&"undefined"!==typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),i["default"]._babelPolyfill=!0},e804:function(t,e,n){"use strict";var i=n("5ca1"),r=n("f1ae");i(i.S+i.F*n("79e5")((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);while(e>t)r(n,t,arguments[t++]);return n.length=e,n}})},e81d:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"},i=t.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(t){return"ល្ងាច"===t},meridiem:function(t,e,n){return t<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(t){return t.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}});return i}))},e853:function(t,e,n){var i=n("d3f4"),r=n("1169"),a=n("2b4c")("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&(e=e[a],null===e&&(e=void 0))),void 0===e?Array:e}},e8ae:function(t,e,n){var i=n("858e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("122e35a4",i,!0,{sourceMap:!1,shadowMode:!1})},e8e6:function(t,e,n){"use strict";n("172d")},e92c:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".item[data-v-13cf3391]{height:33%;min-height:220px;background-size:100% 100%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative}.item .ititle[data-v-13cf3391]{position:absolute;top:-7px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);color:#fff;font-size:14px;font-family:SourceHanSansCN-Bold,SourceHanSansCN;font-weight:700;color:#19ecff}",""]),t.exports=e},e956:function(t,e,n){"use strict";var i=n("5ca1"),r=n("c45f"),a=n("4bf8"),o=n("9def"),s=n("d8e8"),l=n("cd1c");i(i.P,"Array",{flatMap:function(t){var e,n,i=a(this);return s(t),e=o(i.length),n=l(i,0),r(n,i,i,e,0,1,t,arguments[1]),n}}),n("9c6c")("flatMap")},e9c0:function(t,e,n){"use strict";n("54b0")},eb13:function(t,e,n){"use strict";n("08e9")},ebd6:function(t,e,n){var i=n("cb7c"),r=n("d8e8"),a=n("2b4c")("species");t.exports=function(t,e){var n,o=i(t).constructor;return void 0===o||void 0==(n=i(o)[a])?e:r(n)}},ebde:function(t,e,n){var i=n("11e9"),r=n("5ca1"),a=n("cb7c");r(r.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return i.f(a(t),e)}})},ebe4:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return e}))},ec18:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";function e(t,e,n,i){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["ühe minuti","üks minut"],mm:[t+" minuti",t+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[t+" tunni",t+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[t+" kuu",t+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[t+" aasta",t+" aastat"]};return e?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}var n=t.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d päeva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},ec30:function(t,e,n){"use strict";if(n("9e1e")){var i=n("2d00"),r=n("7726"),a=n("79e5"),o=n("5ca1"),s=n("0f88"),l=n("ed0b"),u=n("9b43"),c=n("f605"),d=n("4630"),h=n("32e9"),f=n("dcbc"),p=n("4588"),g=n("9def"),m=n("09fa"),v=n("77f1"),y=n("6a99"),A=n("69a8"),b=n("23c6"),_=n("d3f4"),w=n("4bf8"),x=n("33a4"),S=n("2aeb"),C=n("38fd"),T=n("9093").f,M=n("27ee"),k=n("ca5a"),L=n("2b4c"),D=n("0a49"),E=n("c366"),B=n("ebd6"),I=n("cadf"),O=n("84f2"),P=n("5cc5"),N=n("7a56"),F=n("36bd"),U=n("ba92"),R=n("86cc"),j=n("11e9"),H=R.f,Y=j.f,z=r.RangeError,Q=r.TypeError,V=r.Uint8Array,W="ArrayBuffer",G="Shared"+W,K="BYTES_PER_ELEMENT",$="prototype",q=Array[$],X=l.ArrayBuffer,J=l.DataView,Z=D(0),tt=D(2),et=D(3),nt=D(4),it=D(5),rt=D(6),at=E(!0),ot=E(!1),st=I.values,lt=I.keys,ut=I.entries,ct=q.lastIndexOf,dt=q.reduce,ht=q.reduceRight,ft=q.join,pt=q.sort,gt=q.slice,mt=q.toString,vt=q.toLocaleString,yt=L("iterator"),At=L("toStringTag"),bt=k("typed_constructor"),_t=k("def_constructor"),wt=s.CONSTR,xt=s.TYPED,St=s.VIEW,Ct="Wrong length!",Tt=D(1,(function(t,e){return Et(B(t,t[_t]),e)})),Mt=a((function(){return 1===new V(new Uint16Array([1]).buffer)[0]})),kt=!!V&&!!V[$].set&&a((function(){new V(1).set({})})),Lt=function(t,e){var n=p(t);if(n<0||n%e)throw z("Wrong offset!");return n},Dt=function(t){if(_(t)&&xt in t)return t;throw Q(t+" is not a typed array!")},Et=function(t,e){if(!_(t)||!(bt in t))throw Q("It is not a typed array constructor!");return new t(e)},Bt=function(t,e){return It(B(t,t[_t]),e)},It=function(t,e){var n=0,i=e.length,r=Et(t,i);while(i>n)r[n]=e[n++];return r},Ot=function(t,e,n){H(t,e,{get:function(){return this._d[n]}})},Pt=function(t){var e,n,i,r,a,o,s=w(t),l=arguments.length,c=l>1?arguments[1]:void 0,d=void 0!==c,h=M(s);if(void 0!=h&&!x(h)){for(o=h.call(s),i=[],e=0;!(a=o.next()).done;e++)i.push(a.value);s=i}for(d&&l>2&&(c=u(c,arguments[2],2)),e=0,n=g(s.length),r=Et(this,n);n>e;e++)r[e]=d?c(s[e],e):s[e];return r},Nt=function(){var t=0,e=arguments.length,n=Et(this,e);while(e>t)n[t]=arguments[t++];return n},Ft=!!V&&a((function(){vt.call(new V(1))})),Ut=function(){return vt.apply(Ft?gt.call(Dt(this)):Dt(this),arguments)},Rt={copyWithin:function(t,e){return U.call(Dt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(Dt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return F.apply(Dt(this),arguments)},filter:function(t){return Bt(this,tt(Dt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return it(Dt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return rt(Dt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Z(Dt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return ot(Dt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return at(Dt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(Dt(this),arguments)},lastIndexOf:function(t){return ct.apply(Dt(this),arguments)},map:function(t){return Tt(Dt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return dt.apply(Dt(this),arguments)},reduceRight:function(t){return ht.apply(Dt(this),arguments)},reverse:function(){var t,e=this,n=Dt(e).length,i=Math.floor(n/2),r=0;while(r<i)t=e[r],e[r++]=e[--n],e[n]=t;return e},some:function(t){return et(Dt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return pt.call(Dt(this),t)},subarray:function(t,e){var n=Dt(this),i=n.length,r=v(t,i);return new(B(n,n[_t]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,g((void 0===e?i:v(e,i))-r))}},jt=function(t,e){return Bt(this,gt.call(Dt(this),t,e))},Ht=function(t){Dt(this);var e=Lt(arguments[1],1),n=this.length,i=w(t),r=g(i.length),a=0;if(r+e>n)throw z(Ct);while(a<r)this[e+a]=i[a++]},Yt={entries:function(){return ut.call(Dt(this))},keys:function(){return lt.call(Dt(this))},values:function(){return st.call(Dt(this))}},zt=function(t,e){return _(t)&&t[xt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Qt=function(t,e){return zt(t,e=y(e,!0))?d(2,t[e]):Y(t,e)},Vt=function(t,e,n){return!(zt(t,e=y(e,!0))&&_(n)&&A(n,"value"))||A(n,"get")||A(n,"set")||n.configurable||A(n,"writable")&&!n.writable||A(n,"enumerable")&&!n.enumerable?H(t,e,n):(t[e]=n.value,t)};wt||(j.f=Qt,R.f=Vt),o(o.S+o.F*!wt,"Object",{getOwnPropertyDescriptor:Qt,defineProperty:Vt}),a((function(){mt.call({})}))&&(mt=vt=function(){return ft.call(this)});var Wt=f({},Rt);f(Wt,Yt),h(Wt,yt,Yt.values),f(Wt,{slice:jt,set:Ht,constructor:function(){},toString:mt,toLocaleString:Ut}),Ot(Wt,"buffer","b"),Ot(Wt,"byteOffset","o"),Ot(Wt,"byteLength","l"),Ot(Wt,"length","e"),H(Wt,At,{get:function(){return this[xt]}}),t.exports=function(t,e,n,l){l=!!l;var u=t+(l?"Clamped":"")+"Array",d="get"+t,f="set"+t,p=r[u],v=p||{},y=p&&C(p),A=!p||!s.ABV,w={},x=p&&p[$],M=function(t,n){var i=t._d;return i.v[d](n*e+i.o,Mt)},k=function(t,n,i){var r=t._d;l&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),r.v[f](n*e+r.o,i,Mt)},L=function(t,e){H(t,e,{get:function(){return M(this,e)},set:function(t){return k(this,e,t)},enumerable:!0})};A?(p=n((function(t,n,i,r){c(t,p,u,"_d");var a,o,s,l,d=0,f=0;if(_(n)){if(!(n instanceof X||(l=b(n))==W||l==G))return xt in n?It(p,n):Pt.call(p,n);a=n,f=Lt(i,e);var v=n.byteLength;if(void 0===r){if(v%e)throw z(Ct);if(o=v-f,o<0)throw z(Ct)}else if(o=g(r)*e,o+f>v)throw z(Ct);s=o/e}else s=m(n),o=s*e,a=new X(o);h(t,"_d",{b:a,o:f,l:o,e:s,v:new J(a)});while(d<s)L(t,d++)})),x=p[$]=S(Wt),h(x,"constructor",p)):a((function(){p(1)}))&&a((function(){new p(-1)}))&&P((function(t){new p,new p(null),new p(1.5),new p(t)}),!0)||(p=n((function(t,n,i,r){var a;return c(t,p,u),_(n)?n instanceof X||(a=b(n))==W||a==G?void 0!==r?new v(n,Lt(i,e),r):void 0!==i?new v(n,Lt(i,e)):new v(n):xt in n?It(p,n):Pt.call(p,n):new v(m(n))})),Z(y!==Function.prototype?T(v).concat(T(y)):T(v),(function(t){t in p||h(p,t,v[t])})),p[$]=x,i||(x.constructor=p));var D=x[yt],E=!!D&&("values"==D.name||void 0==D.name),B=Yt.values;h(p,bt,!0),h(x,xt,u),h(x,St,!0),h(x,_t,p),(l?new p(1)[At]==u:At in x)||H(x,At,{get:function(){return u}}),w[u]=p,o(o.G+o.W+o.F*(p!=v),w),o(o.S,u,{BYTES_PER_ELEMENT:e}),o(o.S+o.F*a((function(){v.of.call(p,1)})),u,{from:Pt,of:Nt}),K in x||h(x,K,e),o(o.P,u,Rt),N(u),o(o.P+o.F*kt,u,{set:Ht}),o(o.P+o.F*!E,u,Yt),i||x.toString==mt||(x.toString=mt),o(o.P+o.F*a((function(){new p(1).slice()})),u,{slice:jt}),o(o.P+o.F*(a((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!a((function(){x.toLocaleString.call([1,2])}))),u,{toLocaleString:Ut}),O[u]=E?D:B,i||E||h(x,yt,B)}}else t.exports=function(){}},ecdd:function(t,e,n){"use strict";n("efc2")},ecf2:function(t,e,n){var i=n("63b6");i(i.G,{global:n("e53d")})},ed01:function(t,e,n){var i=n("b071");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("fec886a4",i,!0,{sourceMap:!1,shadowMode:!1})},ed0b:function(t,e,n){"use strict";var i=n("7726"),r=n("9e1e"),a=n("2d00"),o=n("0f88"),s=n("32e9"),l=n("dcbc"),u=n("79e5"),c=n("f605"),d=n("4588"),h=n("9def"),f=n("09fa"),p=n("9093").f,g=n("86cc").f,m=n("36bd"),v=n("7f20"),y="ArrayBuffer",A="DataView",b="prototype",_="Wrong length!",w="Wrong index!",x=i[y],S=i[A],C=i.Math,T=i.RangeError,M=i.Infinity,k=x,L=C.abs,D=C.pow,E=C.floor,B=C.log,I=C.LN2,O="buffer",P="byteLength",N="byteOffset",F=r?"_b":O,U=r?"_l":P,R=r?"_o":N;function j(t,e,n){var i,r,a,o=new Array(n),s=8*n-e-1,l=(1<<s)-1,u=l>>1,c=23===e?D(2,-24)-D(2,-77):0,d=0,h=t<0||0===t&&1/t<0?1:0;for(t=L(t),t!=t||t===M?(r=t!=t?1:0,i=l):(i=E(B(t)/I),t*(a=D(2,-i))<1&&(i--,a*=2),t+=i+u>=1?c/a:c*D(2,1-u),t*a>=2&&(i++,a/=2),i+u>=l?(r=0,i=l):i+u>=1?(r=(t*a-1)*D(2,e),i+=u):(r=t*D(2,u-1)*D(2,e),i=0));e>=8;o[d++]=255&r,r/=256,e-=8);for(i=i<<e|r,s+=e;s>0;o[d++]=255&i,i/=256,s-=8);return o[--d]|=128*h,o}function H(t,e,n){var i,r=8*n-e-1,a=(1<<r)-1,o=a>>1,s=r-7,l=n-1,u=t[l--],c=127&u;for(u>>=7;s>0;c=256*c+t[l],l--,s-=8);for(i=c&(1<<-s)-1,c>>=-s,s+=e;s>0;i=256*i+t[l],l--,s-=8);if(0===c)c=1-o;else{if(c===a)return i?NaN:u?-M:M;i+=D(2,e),c-=o}return(u?-1:1)*i*D(2,c-e)}function Y(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function z(t){return[255&t]}function Q(t){return[255&t,t>>8&255]}function V(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function W(t){return j(t,52,8)}function G(t){return j(t,23,4)}function K(t,e,n){g(t[b],e,{get:function(){return this[n]}})}function $(t,e,n,i){var r=+n,a=f(r);if(a+e>t[U])throw T(w);var o=t[F]._b,s=a+t[R],l=o.slice(s,s+e);return i?l:l.reverse()}function q(t,e,n,i,r,a){var o=+n,s=f(o);if(s+e>t[U])throw T(w);for(var l=t[F]._b,u=s+t[R],c=i(+r),d=0;d<e;d++)l[u+d]=c[a?d:e-d-1]}if(o.ABV){if(!u((function(){x(1)}))||!u((function(){new x(-1)}))||u((function(){return new x,new x(1.5),new x(NaN),x.name!=y}))){x=function(t){return c(this,x),new k(f(t))};for(var X,J=x[b]=k[b],Z=p(k),tt=0;Z.length>tt;)(X=Z[tt++])in x||s(x,X,k[X]);a||(J.constructor=x)}var et=new S(new x(2)),nt=S[b].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||l(S[b],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else x=function(t){c(this,x,y);var e=f(t);this._b=m.call(new Array(e),0),this[U]=e},S=function(t,e,n){c(this,S,A),c(t,x,A);var i=t[U],r=d(e);if(r<0||r>i)throw T("Wrong offset!");if(n=void 0===n?i-r:h(n),r+n>i)throw T(_);this[F]=t,this[R]=r,this[U]=n},r&&(K(x,P,"_l"),K(S,O,"_b"),K(S,P,"_l"),K(S,N,"_o")),l(S[b],{getInt8:function(t){return $(this,1,t)[0]<<24>>24},getUint8:function(t){return $(this,1,t)[0]},getInt16:function(t){var e=$(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=$(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return Y($(this,4,t,arguments[1]))},getUint32:function(t){return Y($(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return H($(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return H($(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){q(this,1,t,z,e)},setUint8:function(t,e){q(this,1,t,z,e)},setInt16:function(t,e){q(this,2,t,Q,e,arguments[2])},setUint16:function(t,e){q(this,2,t,Q,e,arguments[2])},setInt32:function(t,e){q(this,4,t,V,e,arguments[2])},setUint32:function(t,e){q(this,4,t,V,e,arguments[2])},setFloat32:function(t,e){q(this,4,t,G,e,arguments[2])},setFloat64:function(t,e){q(this,8,t,W,e,arguments[2])}});v(x,y),v(S,A),s(S[b],o.VIEW,!0),e[y]=x,e[A]=S},ed50:function(t,e,n){"use strict";var i=n("5ca1"),r=n("2e08"),a=n("a25f"),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);i(i.P+i.F*o,"String",{padEnd:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},ed58:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wflow-container"},[e("SidebarLogo",{staticStyle:{background:"#fff"}},[e("div",{staticClass:"top_title"},[t._l(t.logoTitle,(function(n,i){return[e("span",{key:i,class:{main_head:0===i,sub_head:i>0,main_head_slicer:t.logoTitle.length>1}},[t._v(" "+t._s(n)+" "),i>0&&t.logoTitle.length-1>i?e("i",{staticClass:"el-icon-d-arrow-right"}):t._e(),0==i?e("svg",t._g({staticClass:"svg-icon",staticStyle:{height:"10px",width:"16px"},attrs:{"aria-hidden":"true"}},t.$listeners),[e("use",{attrs:{"xlink:href":"#icon-doublearrow"}})]):t._e()])]}))],2)]),e("div",{staticClass:"content"},[e("div",{staticClass:"name"},[t._v(t._s(t.name))]),e("div",{staticStyle:{margin:"30px 0"}},[e("el-skeleton")],1),e("div",{staticStyle:{"text-align":"center","font-size":"16px","margin-top":"20px"}},[t._v("正在建设中,敬请稍候。。。")])])],1)},r=[],a=n("b8fb"),o=a.title,s={data:function(){return{logoTitle:[],name:"文章详情"}},mounted:function(){this.$route.query.name&&(this.name=this.$route.query.name),this.logoTitle=[o,this.name]},methods:{}},l=s,u=(n("51f8"),n("2877")),c=Object(u["a"])(l,i,r,!1,null,"6ad4aa7f",null);e["a"]=c.exports},ed6d:function(t,e,n){var i=n("4a4b");function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},eda5:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(t){return t+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(t){return"ප.ව."===t||"පස් වරු"===t},meridiem:function(t,e,n){return t>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}});return e}))},ee03:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",[e("section",{staticClass:"wh_container"},[e("div",{staticClass:"wh_content_all"},[t.isSwitchover?t._e():e("div",{staticClass:"wh_top_title"},[e("div",{staticStyle:{width:"40%"},on:{click:function(e){return t.selectMonthClick(t.nowYear,t.nowMonth)}}},[t._v(t._s(t.dateTop))]),e("div",{staticStyle:{width:"60%","text-align":"right"}},[t._t("right")],2)]),t.isSwitchover?e("div",{staticClass:"wh_top_changge"},[e("li",{staticClass:"wh_content_li",on:{click:function(e){return t.selectMonthClick(t.nowYear,t.nowMonth)}}},[t._v(t._s(t.dateTop))]),e("div",[e("li",{staticStyle:{padding:"10px 10px 10px 14px",background:"#f5f5f5","margin-right":"10px"},on:{click:function(e){return t.PreMonth(t.myDate,!1)}}},[e("div",{staticClass:"wh_jiantou1"})]),e("li",{staticStyle:{padding:"10px 14px 10px 10px",background:"#f5f5f5"},on:{click:function(e){return t.NextMonth(t.myDate,!1)}}},[e("div",{staticClass:"wh_jiantou2"})])])]):t._e(),e("div",{staticClass:"wh_content"},t._l(t.textTop,(function(n,i){return e("div",{key:i,staticClass:"wh_content_item"},[e("div",{staticClass:"wh_top_tag"},[t._v(t._s(n))])])})),0),"month"===t.userType?e("div",{staticClass:"clendar_inner"},[e("div",{staticClass:"wh_content wh_content-day"},t._l(t.list.nowMonth,(function(n,i){return e("div",{key:i,staticClass:"wh_content_item",class:t.errorDay[n.id]&&t.errorDay[n.id].month===n.date?0===t.errorDay[n.id].flag?"succFlag":"errorFlag":"",on:{click:function(e){return t.clickDay(n,i)}}},[e("div",{staticClass:"wh_item_date",class:[{wh_isMark:n.isMark},{wh_want_dayhide:n.dayHide},{wh_isToday:n.isToday&&!t.choseOtherDay},{wh_chose_day:n.chooseDay},t.setClass(n)]},[t._v(t._s(n.id))])])})),0)]):t._e()])])])},r=[];function a(t){return u(t)||l(t)||s(t)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){if(t){if("string"===typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function l(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function u(t){if(Array.isArray(t))return c(t)}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var d={getDaysInOneMonth:function(t){var e=t.getFullYear(),n=t.getMonth()+1,i=new Date(e,n,0);return i.getDate()},getMonthweek:function(t){var e=t.getFullYear(),n=t.getMonth()+1,i=new Date(e+"/"+n+"/1");return this.sundayStart?0===i.getDay()?7:i.getDay():0===i.getDay()?6:i.getDay()-1},getOtherMonth:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nextMonth",i=this.dateFormat(t).split("/"),r=i[0],a=i[1],o=i[2],s=r;"nextMonth"===n?(e=parseInt(a)+1,13===e&&(s=parseInt(s)+1,e=1)):(e=parseInt(a)-1,0===e&&(s=parseInt(s)-1,e=12));var l=o,u=new Date(s,e,0).getDate();l>u&&(l=u),e<10&&(e="0"+e),l<10&&(l="0"+l);var c=s+"/"+e+"/"+l;return new Date(c)},getOtherWeek:function(t,e){var n=new Date(t);return"preWeek"===e?new Date(new Date(n).getTime()-6048e5):new Date(new Date(n).getTime()+6048e5)},getLeftArr:function(t){for(var e=[],n=this.getMonthweek(t),i=this.getDaysInOneMonth(this.getOtherMonth(t,"preMonth"))-n+1,r=this.getOtherMonth(t,"preMonth"),a=0;a<n;a++){var o=r.getFullYear()+"/"+(r.getMonth()+1)+"/"+(i+a);e.push({id:i+a,date:o,isToday:!1,otherMonth:"preMonth"})}return e},getRightArr:function(t){for(var e=[],n=this.getOtherMonth(t,"nextMonth"),i=this.getDaysInOneMonth(t)+this.getMonthweek(t),r=7-i%7,a=0;a<r;a++){var o=n.getFullYear()+"/"+(n.getMonth()+1)+"/"+(a+1);e.push({id:a+1,date:o,isToday:!1,otherMonth:"nextMonth"})}return e},dateFormat:function(t){return t="string"===typeof t?new Date(t.replace(/\-/g,"/")):t,t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate()},getMonthListNoOther:function(t){for(var e=[],n=this.getDaysInOneMonth(t),i=t.getFullYear(),r=t.getMonth()+1,a=this.dateFormat(new Date),o=0;o<n;o++){var s=i+"/"+r+"/"+(o+1);e.push({id:o+1,date:s,isToday:a===s,otherMonth:"nowMonth"})}return e},getMonthList:function(t){var e=new Date(t.getFullYear(),t.getMonth()-1),n=new Date(t.getFullYear(),t.getMonth()+1),i={};return i.lastMonth=[].concat(a(this.getLeftArr(e)),a(this.getMonthListNoOther(e)),a(this.getRightArr(e))),i.nowMonth=[].concat(a(this.getLeftArr(t)),a(this.getMonthListNoOther(t)),a(this.getRightArr(t))),i.nextMonth=[].concat(a(this.getLeftArr(n)),a(this.getMonthListNoOther(n)),a(this.getRightArr(n))),i},createClendar:function(t,e,i){for(var r=new Date(e),a=n("c1df"),o=new Date,s=[],l=0;l<7;l++){var u=new Date(t.getTime()+24*l*60*60*1e3),c=null;c=u.getFullYear()===r.getFullYear()?u.getMonth()===r.getMonth()?"nowMonth":u.getMonth()<r.getMonth()?"preMonth":"nextMonth":u.getFullYear()<r.getFullYear()?"preMonth":"nextMonth",s.push({id:u.getDate(),date:a(u).format(i?"YYYY/MM/DD":"YYYY/M/D"),isToday:a(u).format(i?"YYYY/MM/DD":"YYYY/M/D")===a(o).format(i?"YYYY/MM/DD":"YYYY/M/D"),otherMonth:c})}return s},getNowWeek:function(t,e){var n=t.getDay(),i=null,r=null,a=null;return this.sundayStart?(i=new Date(new Date(t).getTime()-24*n*60*60*1e3),r=new Date(new Date(i).getTime()-6048e5),a=new Date(new Date(i).getTime()+6048e5)):(i=new Date(new Date(t).getTime()-24*(0===n?6:n-1)*60*60*1e3),r=new Date(new Date(i).getTime()-6048e5),a=new Date(new Date(i).getTime()+6048e5)),{lastWeek:this.createClendar(r,t,e),nowWeek:this.createClendar(i,t,e),nextWeek:this.createClendar(a,t,e)}},getYearlist:function(t){for(var e=[],n=Number(t.toString().substr(0,3)+0),i=0;i<10;i++)e.push(n++);return e},getLeftAfteryear:function(t){for(var e=[],n=t-20;n<=t;n++)e.push(n);return e},getWeeklist:function(t,e){for(var n=new Date(t,e-1),i=n.getDay(),r=n.getTime()-24*(0===i?6:i-1)*60*60*1e3,a=r+5184e5,o=new Date(new Date(t,e).setDate(0)).getDate(),s=n.getTime()+24*(o-1)*60*60*1e3,l=new Date(s).getDay(),u=s+24*(7-(0===l?7:l))*60*60*1e3,c=(u-r+864e5)/1e3/60/60/24/7,d=[],h=0;h<c;h++)0!==h&&(r+=6048e5,a+=6048e5),d.push({start:new Date(r),end:new Date(a),num:h+1,month:e});return d},sundayStart:!1};function h(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=g(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function f(t,e){return y(t)||v(t,e)||g(t,e)||p()}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(t,e){if(t){if("string"===typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function v(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw r}}return s}}function y(t){if(Array.isArray(t))return t}var A=n("c1df"),b={props:{markDate:{type:Array,default:function(){return""}},markDateMore:{type:Array,default:function(){return[]}},textTop:{type:Array,default:function(){return["日","一","二","三","四","五","六"]}},sundayStart:{type:Boolean,default:!0},agoDayHide:{type:String,default:"0"},futureDayHide:{type:String,default:"2554387200"},getDayDetails:{type:Function,default:function(){return null}},errorDay:{type:Array,default:function(){return[]}},changeDate:{type:Function,default:function(){return null}},isSwitchover:{type:Boolean,default:!0},defaultType:{type:String,default:"month"}},data:function(){return{montype:"",myDate:[],list:{},historyChose:[],dateTop:"",choseOtherDay:!1,dialogVisible:!1,vueMoves:!1,vueLeave:!1,longTouch:!1,vueTouches:{},updateDate:!1,dialogTitle:"",allMonth:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],options:[],isFirst:!0,selectMonth:"",selectYear:"",selectType:"month",userType:""}},watch:{markDate:{handler:function(t,e){this.getList(this.myDate)},deep:!0},markDateMore:{handler:function(t,e){this.getList(this.myDate)},deep:!0},agoDayHide:{handler:function(t,e){this.getList(this.myDate)},deep:!0},futureDayHide:{handler:function(t,e){this.getList(this.myDate)},deep:!0},sundayStart:{handler:function(t,e){this.intStart(),this.getList(this.myDate)},deep:!0}},created:function(){var t=new Date;this.myDate=t,this.nowMonth=t.getMonth()+1,this.nowYear=t.getFullYear(),this.currerYear=t.getFullYear(),this.intStart()},mounted:function(){this.userType="month",console.log(this.userType),this.getList(this.myDate)},methods:{intStart:function(){d.sundayStart=this.sundayStart},setClass:function(t){var e={};return e[t.markClassName]=t.markClassName,e},clickDay:function(t,e){if(null!==this.getDayDetails&&this.getDayDetails(t,e),this.$emit("getDayDetails",t,e),"month"===this.userType)"nowMonth"!==t.otherMonth||t.dayHide||this.getList(this.myDate,t.date,!1,this.userType),"nowMonth"!==t.otherMonth&&("preMonth"===t.otherMonth?this.PreMonth(t.date,!0):this.NextMonth(t.date,!0));else{var n=new Date(t.date);this.getList(n,t.date,!0,this.userType)}},selectMonthClick:function(t,e){this.dialogTitle=t+"年",this.options=this.allMonth,this.selectMonth=e,this.selectYear=t,this.dialogVisible=!0},selectYearClick:function(t){this.selectType="year",this.options=d.getYearlist(t),this.dialogTitle=this.options[0]+"年 - "+this.options[9]+"年"},choose:function(t,e){"month"===this.selectType?(this.selectMonth=t+1,this.myDate=new Date(this.selectYear,t,1),this.nowMonth=this.selectMonth,this.nowYear=this.selectYear,this.getList(this.myDate),this.dialogVisible=!1):"year"===this.selectType&&(this.selectYear=e,e===(new Date).getFullYear()&&(this.selectMonth=(new Date).getMonth()+1),this.dialogTitle=e+"年",this.selectType="month",this.options=this.allMonth)},PreMonth:function(t,e){this.montype="last","string"===typeof t&&(t=new Date(t)),1970===t.getFullYear()&&t.getMonth()+1===1||(t=d.dateFormat(t),this.myDate="month"===this.userType?d.getOtherMonth(this.myDate,"preMonth"):d.getOtherWeek(this.myDate,"preWeek"),this.nowMonth=this.myDate.getMonth()+1,this.nowYear=this.myDate.getFullYear(),this.isFirst=!0,e?this.getList(this.myDate,t,e):this.getList(this.myDate),this.$emit("getmonth",this.myDate),console.log(22222,this.myDate))},NextMonth:function(t,e){this.montype="next","string"===typeof t&&(t=new Date(t)),t.getFullYear()===(new Date).getFullYear()+19&&t.getMonth()+1===12||(t=d.dateFormat(t),this.myDate="month"===this.userType?d.getOtherMonth(this.myDate,"nextMonth"):d.getOtherWeek(this.myDate,"nextWeek"),this.nowMonth=this.myDate.getMonth()+1,this.nowYear=this.myDate.getFullYear(),this.isFirst=!0,e?this.getList(this.myDate,t,e):this.getList(this.myDate),this.$emit("getmonth",this.myDate),console.log(11111,this.myDate))},forMatArgs:function(){var t=this.markDate,e=this.markDateMore;return e=e.map((function(t){return t.date=d.dateFormat(t.date),t})),[t,e]},getList:function(t,e){var n=this,i=this.forMatArgs(),r=f(i,2),a=r[0],o=r[1];this.dateTop="".concat(t.getFullYear(),"年").concat(t.getMonth()+1,"月");var s="".concat(t.getFullYear(),"/").concat(t.getMonth()+1,"/1");this.$emit("dataChuang",s);var l=null;for(var u in l="month"===this.userType?d.getMonthList(this.myDate):d.getNowWeek(this.myDate,!1),this.isFirst&&(this.isFirst=!1,console.log(77777,l),this.$emit("setWeek",l.monthlist)),l)for(var c=l[u],p=0;p<c.length;p++){var g="",m=c[p];m.chooseDay=!1;var v,y=m.date,b=new Date(y).getTime()/1e3,_=h(o);try{for(_.s();!(v=_.n()).done;){var w=v.value;w.date===y&&(g=w.className||"")}}catch(k){_.e(k)}finally{_.f()}m.markClassName=g;var x=a.split(",");m.isMark=!1;for(var S=0;S<x.length;S++){var C=A(new Date(x[S])).format("YYYY-MM-DD"),T=A(new Date(y)).format("YYYY-MM-DD");C===T&&(m.isMark=!0)}m.dayHide=b<this.agoDayHide||b>this.futureDayHide,m.isToday&&this.$emit("isToday",y);var M=!m.dayHide&&"nowMonth"===m.otherMonth||"week"===this.userType;e&&e===y&&M?(this.$emit("choseDay",y),this.historyChose.push(y),m.chooseDay=!0,m.isToday?this.choseOtherDay=!1:this.choseOtherDay=!0):this.historyChose[this.historyChose.length-1]===y&&!e&&M&&(m.chooseDay=!0,m.isToday?this.choseOtherDay=!1:this.choseOtherDay=!0)}this.list=l,this.$nextTick((function(){n.updateDate=!0}))}}},_=b,w=(n("476d"),n("838d"),n("2877")),x=Object(w["a"])(_,i,r,!1,null,"b50f2cd2",null);e["a"]=x.exports},ee1d:function(t,e,n){var i=n("5ca1");i(i.S,"Number",{isNaN:function(t){return t!=t}})},ee1e:function(t,e,n){var i=n("e010");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("29180de8",i,!0,{sourceMap:!1,shadowMode:!1})},ee5e:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@media screen and (min-width:460px){.wh_item_date[data-v-b50f2cd2]:hover{background:#1989fa;border-radius:4px;color:#fff;cursor:pointer}.wh_item_date[data-v-b50f2cd2]:hover:after{background:#fff!important}}*[data-v-b50f2cd2]{margin:0;padding:0}.wh_container[data-v-b50f2cd2]{position:relative;width:100%;margin:auto}li[data-v-b50f2cd2]{list-style-type:none}.wh_top_changge[data-v-b50f2cd2]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:15px}.wh_top_changge[data-v-b50f2cd2],.wh_top_changge div[data-v-b50f2cd2],.wh_top_changge li[data-v-b50f2cd2]{display:-webkit-box;display:-ms-flexbox;display:flex}.wh_top_changge li[data-v-b50f2cd2]{cursor:pointer;color:#323233;font-size:16px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#f5f5f5}.wh_top_changge .wh_content_li[data-v-b50f2cd2]{cursor:auto;background:#fff}.wh_top_title[data-v-b50f2cd2]{position:relative;font-size:16px;padding-left:30px;line-height:55px;background:#fff;display:-webkit-box;display:-ms-flexbox;display:flex}.wh_top_title[data-v-b50f2cd2]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.wh_content_all[data-v-b50f2cd2]{font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Helvetica Neue,STHeiti,Microsoft Yahei,Tahoma,Simsun,sans-serif;background:#fff;width:100%;overflow:hidden;padding-bottom:8px}.wh_content[data-v-b50f2cd2]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around;padding:0 3% 0 3%;width:100%}.wh_content:first-child .wh_content_item[data-v-b50f2cd2],.wh_content:first-child .wh_content_item_tag[data-v-b50f2cd2]{font-size:14px}.wh_content_item[data-v-b50f2cd2],.wh_content_item_tag[data-v-b50f2cd2]{font-size:14px;width:13.4%;text-align:center;color:#323233;position:relative}.wh_content_item[data-v-b50f2cd2]{height:40px}.wh_top_tag[data-v-b50f2cd2]{color:#999}.wh_item_date[data-v-b50f2cd2],.wh_top_tag[data-v-b50f2cd2]{width:40px;height:40px;line-height:40px;margin:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wh_jiantou1[data-v-b50f2cd2]{width:8px;height:8px;border-top:2px solid #323233;border-left:2px solid #323233;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:.6}.wh_jiantou1[data-v-b50f2cd2]:active,.wh_jiantou2[data-v-b50f2cd2]:active{border-color:#323233}.wh_jiantou2[data-v-b50f2cd2]{width:8px;height:8px;border-top:2px solid #323233;border-right:2px solid #323233;-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:.6}.wh_content_item>.wh_isMark[data-v-b50f2cd2]{margin:auto;z-index:2;position:relative}.wh_content_item>.wh_isMark[data-v-b50f2cd2]:after{content:"";position:absolute;width:6px;height:6px;border-radius:50%;background:red;left:calc(50% - 3px);bottom:4px}.wh_content_item .wh_other_dayhide[data-v-b50f2cd2],.wh_content_item .wh_want_dayhide[data-v-b50f2cd2]{color:#bfbfbf}.wh_content_item .wh_chose_day[data-v-b50f2cd2]{background:#1989fa;border-radius:4px;color:#fff}.wh_content_item .wh_chose_day[data-v-b50f2cd2]:after{background:#fff}.wh_content_item .wh_isToday[data-v-b50f2cd2]{background:var(--subjectColor);border-radius:4px;color:#fff}.wh_content_item .wh_choseOtherDay[data-v-b50f2cd2]{background:#d1d1d1;border-radius:4px;color:#000}.succFlag[data-v-b50f2cd2]{position:relative}.succFlag[data-v-b50f2cd2]:after{content:"";position:absolute;bottom:2px;background:#1989fa;width:7px;left:46%;height:7px;border-radius:100px}.errorFlag[data-v-b50f2cd2]{position:relative}.errorFlag[data-v-b50f2cd2]:after{content:"";position:absolute;bottom:2px;background:#ee0a24;width:7px;left:46%;height:7px;border-radius:100px}',""]),t.exports=e},ee98:function(t,e,n){var i=n("baef");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("01843631",i,!0,{sourceMap:!1,shadowMode:!1})},ef34:function(t,e,n){(function(e){var i,r="undefined"!==typeof e?e:"undefined"!==typeof window?window:{},a=n(0);"undefined"!==typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"],i||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=a)),t.exports=i}).call(this,n("c8ba"))},ef8d:function(t,e,n){"use strict";n.r(e),e["default"]={pinyin:{a:"啊阿锕",ai:"埃挨哎唉哀皑癌蔼矮艾碍爱隘诶捱嗳嗌嫒瑷暧砹锿霭",an:"鞍氨安俺按暗岸胺案谙埯揞犴庵桉铵鹌顸黯",ang:"肮昂盎",ao:"凹敖熬翱袄傲奥懊澳坳拗嗷噢岙廒遨媪骜聱螯鏊鳌鏖",ba:"芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸茇菝萆捭岜灞杷钯粑鲅魃",bai:"白柏百摆佰败拜稗薜掰鞴",ban:"斑班搬扳般颁板版扮拌伴瓣半办绊阪坂豳钣瘢癍舨",bang:"邦帮梆榜膀绑棒磅蚌镑傍谤蒡螃",bao:"苞胞包褒雹保堡饱宝抱报暴豹鲍爆勹葆宀孢煲鸨褓趵龅",bo:"剥薄玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳亳蕃啵饽檗擘礴钹鹁簸跛",bei:"杯碑悲卑北辈背贝钡倍狈备惫焙被孛陂邶埤蓓呗怫悖碚鹎褙鐾",ben:"奔苯本笨畚坌锛",beng:"崩绷甭泵蹦迸唪嘣甏",bi:"逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛匕仳俾芘荜荸吡哔狴庳愎滗濞弼妣婢嬖璧贲畀铋秕裨筚箅篦舭襞跸髀",bian:"鞭边编贬扁便变卞辨辩辫遍匾弁苄忭汴缏煸砭碥稹窆蝙笾鳊",biao:"标彪膘表婊骠飑飙飚灬镖镳瘭裱鳔",bie:"鳖憋别瘪蹩鳘",bin:"彬斌濒滨宾摈傧浜缤玢殡膑镔髌鬓",bing:"兵冰柄丙秉饼炳病并禀邴摒绠枋槟燹",bu:"捕卜哺补埠不布步簿部怖拊卟逋瓿晡钚醭",ca:"擦嚓礤",cai:"猜裁材才财睬踩采彩菜蔡",can:"餐参蚕残惭惨灿骖璨粲黪",cang:"苍舱仓沧藏伧",cao:"操糙槽曹草艹嘈漕螬艚",ce:"厕策侧册测刂帻恻",ceng:"层蹭噌",cha:"插叉茬茶查碴搽察岔差诧猹馇汊姹杈楂槎檫钗锸镲衩",chai:"拆柴豺侪茈瘥虿龇",chan:"搀掺蝉馋谗缠铲产阐颤冁谄谶蒇廛忏潺澶孱羼婵嬗骣觇禅镡裣蟾躔",chang:"昌猖场尝常长偿肠厂敞畅唱倡伥鬯苌菖徜怅惝阊娼嫦昶氅鲳",chao:"超抄钞朝嘲潮巢吵炒怊绉晁耖",che:"车扯撤掣彻澈坼屮砗",chen:"郴臣辰尘晨忱沉陈趁衬称谌抻嗔宸琛榇肜胂碜龀",cheng:"撑城橙成呈乘程惩澄诚承逞骋秤埕嵊徵浈枨柽樘晟塍瞠铖裎蛏酲",chi:"吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽傺墀芪茌搋叱哧啻嗤彳饬沲媸敕胝眙眵鸱瘛褫蚩螭笞篪豉踅踟魑",chong:"充冲虫崇宠茺忡憧铳艟",chou:"抽酬畴踌稠愁筹仇绸瞅丑俦圳帱惆溴妯瘳雠鲋",chu:"臭初出橱厨躇锄雏滁除楚础储矗搐触处亍刍憷绌杵楮樗蜍蹰黜",chuan:"揣川穿椽传船喘串掾舛惴遄巛氚钏镩舡",chuang:"疮窗幢床闯创怆",chui:"吹炊捶锤垂陲棰槌",chun:"春椿醇唇淳纯蠢促莼沌肫朐鹑蝽",chuo:"戳绰蔟辶辍镞踔龊",ci:"疵茨磁雌辞慈瓷词此刺赐次荠呲嵯鹚螅糍趑",cong:"聪葱囱匆从丛偬苁淙骢琮璁枞",cu:"凑粗醋簇猝殂蹙",cuan:"蹿篡窜汆撺昕爨",cui:"摧崔催脆瘁粹淬翠萃悴璀榱隹",cun:"村存寸磋忖皴",cuo:"撮搓措挫错厝脞锉矬痤鹾蹉躜",da:"搭达答瘩打大耷哒嗒怛妲疸褡笪靼鞑",dai:"呆歹傣戴带殆代贷袋待逮怠埭甙呔岱迨逯骀绐玳黛",dan:"耽担丹单郸掸胆旦氮但惮淡诞弹蛋亻儋卩萏啖澹檐殚赕眈瘅聃箪",dang:"当挡党荡档谠凼菪宕砀铛裆",dao:"刀捣蹈倒岛祷导到稻悼道盗叨啁忉洮氘焘忑纛",de:"德得的锝",deng:"蹬灯登等瞪凳邓噔嶝戥磴镫簦",di:"堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔氐籴诋谛邸坻莜荻嘀娣柢棣觌砥碲睇镝羝骶",dian:"颠掂滇碘点典靛垫电佃甸店惦奠淀殿丶阽坫埝巅玷癜癫簟踮",diao:"碉叼雕凋刁掉吊钓调轺铞蜩粜貂",die:"跌爹碟蝶迭谍叠佚垤堞揲喋渫轶牒瓞褶耋蹀鲽鳎",ding:"丁盯叮钉顶鼎锭定订丢仃啶玎腚碇町铤疔耵酊",dong:"东冬董懂动栋侗恫冻洞垌咚岽峒夂氡胨胴硐鸫",dou:"兜抖斗陡豆逗痘蔸钭窦窬蚪篼酡",du:"都督毒犊独读堵睹赌杜镀肚度渡妒芏嘟渎椟橐牍蠹笃髑黩",duan:"端短锻段断缎彖椴煅簖",dui:"堆兑队对怼憝碓",dun:"墩吨蹲敦顿囤钝盾遁炖砘礅盹镦趸",duo:"掇哆多夺垛躲朵跺舵剁惰堕咄哚缍柁铎裰踱",e:"蛾峨鹅俄额讹娥恶厄扼遏鄂饿噩谔垩垭苊莪萼呃愕屙婀轭曷腭硪锇锷鹗颚鳄",en:"恩蒽摁唔嗯",er:"而儿耳尔饵洱二贰迩珥铒鸸鲕",fa:"发罚筏伐乏阀法珐垡砝",fan:"藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛蘩幡犭梵攵燔畈蹯",fang:"坊芳方肪房防妨仿访纺放匚邡彷钫舫鲂",fei:"菲非啡飞肥匪诽吠肺废沸费芾狒悱淝妃绋绯榧腓斐扉祓砩镄痱蜚篚翡霏鲱",fen:"芬酚吩氛分纷坟焚汾粉奋份忿愤粪偾瀵棼愍鲼鼢",feng:"丰封枫蜂峰锋风疯烽逢冯缝讽奉凤俸酆葑沣砜",fu:"佛否夫敷肤孵扶拂辐幅氟符伏俘服浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐匐凫郛芙苻茯莩菔呋幞滏艴孚驸绂桴赙黻黼罘稃馥虍蚨蜉蝠蝮麸趺跗鳆",ga:"噶嘎蛤尬呷尕尜旮钆",gai:"该改概钙盖溉丐陔垓戤赅胲",gan:"干甘杆柑竿肝赶感秆敢赣坩苷尴擀泔淦澉绀橄旰矸疳酐",gang:"冈刚钢缸肛纲岗港戆罡颃筻",gong:"杠工攻功恭龚供躬公宫弓巩汞拱贡共蕻廾咣珙肱蚣蛩觥",gao:"篙皋高膏羔糕搞镐稿告睾诰郜蒿藁缟槔槁杲锆",ge:"哥歌搁戈鸽胳疙割革葛格阁隔铬个各鬲仡哿塥嗝纥搿膈硌铪镉袼颌虼舸骼髂",gei:"给",gen:"根跟亘茛哏艮",geng:"耕更庚羹埂耿梗哽赓鲠",gou:"钩勾沟苟狗垢构购够佝诟岣遘媾缑觏彀鸲笱篝鞲",gu:"辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇嘏诂菰哌崮汩梏轱牯牿胍臌毂瞽罟钴锢瓠鸪鹄痼蛄酤觚鲴骰鹘",gua:"刮瓜剐寡挂褂卦诖呱栝鸹",guai:"乖拐怪哙",guan:"棺关官冠观管馆罐惯灌贯倌莞掼涫盥鹳鳏",guang:"光广逛犷桄胱疒",gui:"瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽匦刿庋宄妫桧炅晷皈簋鲑鳜",gun:"辊滚棍丨衮绲磙鲧",guo:"锅郭国果裹过馘蠃埚掴呙囗帼崞猓椁虢锞聒蜮蜾蝈",ha:"哈",hai:"骸孩海氦亥害骇咴嗨颏醢",han:"酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉邗菡撖阚瀚晗焓颔蚶鼾",hen:"夯痕很狠恨",hang:"杭航沆绗珩桁",hao:"壕嚎豪毫郝好耗号浩薅嗥嚆濠灏昊皓颢蚝",he:"呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺诃劾壑藿嗑嗬阖盍蚵翮",hei:"嘿黑",heng:"哼亨横衡恒訇蘅",hong:"轰哄烘虹鸿洪宏弘红黉讧荭薨闳泓",hou:"喉侯猴吼厚候后堠後逅瘊篌糇鲎骺",hu:"呼乎忽瑚壶葫胡蝴狐糊湖弧虎唬护互沪户冱唿囫岵猢怙惚浒滹琥槲轷觳烀煳戽扈祜鹕鹱笏醐斛",hua:"花哗华猾滑画划化话劐浍骅桦铧稞",huai:"槐徊怀淮坏还踝",huan:"欢环桓缓换患唤痪豢焕涣宦幻郇奂垸擐圜洹浣漶寰逭缳锾鲩鬟",huang:"荒慌黄磺蝗簧皇凰惶煌晃幌恍谎隍徨湟潢遑璜肓癀蟥篁鳇",hui:"灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘诙茴荟蕙哕喙隳洄彗缋珲晖恚虺蟪麾",hun:"荤昏婚魂浑混诨馄阍溷缗",huo:"豁活伙火获或惑霍货祸攉嚯夥钬锪镬耠蠖",ji:"击圾基机畸稽积箕肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪居丌乩剞佶佴脔墼芨芰萁蒺蕺掎叽咭哜唧岌嵴洎彐屐骥畿玑楫殛戟戢赍觊犄齑矶羁嵇稷瘠瘵虮笈笄暨跻跽霁鲚鲫髻麂",jia:"嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁伽郏拮岬浃迦珈戛胛恝铗镓痂蛱笳袈跏",jian:"歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件健舰剑饯渐溅涧建僭谏谫菅蒹搛囝湔蹇謇缣枧柙楗戋戬牮犍毽腱睑锏鹣裥笕箴翦趼踺鲣鞯",jiang:"僵姜将浆江疆蒋桨奖讲匠酱降茳洚绛缰犟礓耩糨豇",jiao:"蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫佼僬茭挢噍峤徼姣纟敫皎鹪蛟醮跤鲛",jie:"窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届偈讦诘喈嗟獬婕孑桀獒碣锴疖袷颉蚧羯鲒骱髫",jin:"巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸尽卺荩堇噤馑廑妗缙瑾槿赆觐钅锓衿矜",jing:"劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净刭儆阱菁獍憬泾迳弪婧肼胫腈旌",jiong:"炯窘冂迥扃",jiu:"揪究纠玖韭久灸九酒厩救旧臼舅咎就疚僦啾阄柩桕鹫赳鬏",ju:"鞠拘狙疽驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧倨讵苣苴莒掬遽屦琚枸椐榘榉橘犋飓钜锔窭裾趄醵踽龃雎鞫",juan:"捐鹃娟倦眷卷绢鄄狷涓桊蠲锩镌隽",jue:"撅攫抉掘倔爵觉决诀绝厥劂谲矍蕨噘崛獗孓珏桷橛爝镢蹶觖",jun:"均菌钧军君峻俊竣浚郡骏捃狻皲筠麇",ka:"喀咖卡佧咔胩",ke:"咯坷苛柯棵磕颗科壳咳可渴克刻客课岢恪溘骒缂珂轲氪瞌钶疴窠蝌髁",kai:"开揩楷凯慨剀垲蒈忾恺铠锎",kan:"刊堪勘坎砍看侃凵莰莶戡龛瞰",kang:"康慷糠扛抗亢炕坑伉闶钪",kao:"考拷烤靠尻栲犒铐",ken:"肯啃垦恳垠裉颀",keng:"吭忐铿",kong:"空恐孔控倥崆箜",kou:"抠口扣寇芤蔻叩眍筘",ku:"枯哭窟苦酷库裤刳堀喾绔骷",kua:"夸垮挎跨胯侉",kuai:"块筷侩快蒯郐蒉狯脍",kuan:"宽款髋",kuang:"匡筐狂框矿眶旷况诓诳邝圹夼哐纩贶",kui:"亏盔岿窥葵奎魁傀馈愧溃馗匮夔隗揆喹喟悝愦阕逵暌睽聩蝰篑臾跬",kun:"坤昆捆困悃阃琨锟醌鲲髡",kuo:"括扩廓阔蛞",la:"垃拉喇蜡腊辣啦剌摺邋旯砬瘌",lai:"莱来赖崃徕涞濑赉睐铼癞籁",lan:"蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥啉岚懔漤榄斓罱镧褴",lang:"琅榔狼廊郎朗浪莨蒗啷阆锒稂螂",lao:"捞劳牢老佬姥酪烙涝唠崂栳铑铹痨醪",le:"勒乐肋仂叻嘞泐鳓",lei:"雷镭蕾磊累儡垒擂类泪羸诔荽咧漯嫘缧檑耒酹",ling:"棱冷拎玲菱零龄铃伶羚凌灵陵岭领另令酃塄苓呤囹泠绫柃棂瓴聆蛉翎鲮",leng:"楞愣",li:"厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐痢立粒沥隶力璃哩俪俚郦坜苈莅蓠藜捩呖唳喱猁溧澧逦娌嫠骊缡珞枥栎轹戾砺詈罹锂鹂疠疬蛎蜊蠡笠篥粝醴跞雳鲡鳢黧",lian:"俩联莲连镰廉怜涟帘敛脸链恋炼练挛蔹奁潋濂娈琏楝殓臁膦裢蠊鲢",liang:"粮凉梁粱良两辆量晾亮谅墚椋踉靓魉",liao:"撩聊僚疗燎寥辽潦了撂镣廖料蓼尥嘹獠寮缭钌鹩耢",lie:"列裂烈劣猎冽埒洌趔躐鬣",lin:"琳林磷霖临邻鳞淋凛赁吝蔺嶙廪遴檩辚瞵粼躏麟",liu:"溜琉榴硫馏留刘瘤流柳六抡偻蒌泖浏遛骝绺旒熘锍镏鹨鎏",long:"龙聋咙笼窿隆垄拢陇弄垅茏泷珑栊胧砻癃",lou:"楼娄搂篓漏陋喽嵝镂瘘耧蝼髅",lu:"芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮垆摅撸噜泸渌漉璐栌橹轳辂辘氇胪镥鸬鹭簏舻鲈",lv:"驴吕铝侣旅履屡缕虑氯律率滤绿捋闾榈膂稆褛",luan:"峦孪滦卵乱栾鸾銮",lue:"掠略锊",lun:"轮伦仑沦纶论囵",luo:"萝螺罗逻锣箩骡裸落洛骆络倮荦摞猡泺椤脶镙瘰雒",ma:"妈麻玛码蚂马骂嘛吗唛犸嬷杩麽",mai:"埋买麦卖迈脉劢荬咪霾",man:"瞒馒蛮满蔓曼慢漫谩墁幔缦熳镘颟螨鳗鞔",mang:"芒茫盲忙莽邙漭朦硭蟒",meng:"氓萌蒙檬盟锰猛梦孟勐甍瞢懵礞虻蜢蠓艋艨黾",miao:"猫苗描瞄藐秒渺庙妙喵邈缈缪杪淼眇鹋蜱",mao:"茅锚毛矛铆卯茂冒帽貌贸侔袤勖茆峁瑁昴牦耄旄懋瞀蛑蝥蟊髦",me:"么",mei:"玫枚梅酶霉煤没眉媒镁每美昧寐妹媚坶莓嵋猸浼湄楣镅鹛袂魅",men:"门闷们扪玟焖懑钔",mi:"眯醚靡糜迷谜弥米秘觅泌蜜密幂芈冖谧蘼嘧猕獯汨宓弭脒敉糸縻麋",mian:"棉眠绵冕免勉娩缅面沔湎腼眄",mie:"蔑灭咩蠛篾",min:"民抿皿敏悯闽苠岷闵泯珉",ming:"明螟鸣铭名命冥茗溟暝瞑酩",miu:"谬",mo:"摸摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谟茉蓦馍嫫镆秣瘼耱蟆貊貘",mou:"谋牟某厶哞婺眸鍪",mu:"拇牡亩姆母墓暮幕募慕木目睦牧穆仫苜呒沐毪钼",na:"拿哪呐钠那娜纳内捺肭镎衲箬",nai:"氖乃奶耐奈鼐艿萘柰",nan:"南男难囊喃囡楠腩蝻赧",nao:"挠脑恼闹孬垴猱瑙硇铙蛲",ne:"淖呢讷",nei:"馁",nen:"嫩能枘恁",ni:"妮霓倪泥尼拟你匿腻逆溺伲坭猊怩滠昵旎祢慝睨铌鲵",nian:"蔫拈年碾撵捻念廿辇黏鲇鲶",niang:"娘酿",niao:"鸟尿茑嬲脲袅",nie:"捏聂孽啮镊镍涅乜陧蘖嗫肀颞臬蹑",nin:"您柠",ning:"狞凝宁拧泞佞蓥咛甯聍",niu:"牛扭钮纽狃忸妞蚴",nong:"脓浓农侬",nu:"奴努怒呶帑弩胬孥驽",nv:"女恧钕衄",nuan:"暖",nuenue:"虐",nue:"疟谑",nuo:"挪懦糯诺傩搦喏锘",ou:"哦欧鸥殴藕呕偶沤怄瓯耦",pa:"啪趴爬帕怕琶葩筢",pai:"拍排牌徘湃派俳蒎",pan:"攀潘盘磐盼畔判叛爿泮袢襻蟠蹒",pang:"乓庞旁耪胖滂逄",pao:"抛咆刨炮袍跑泡匏狍庖脬疱",pei:"呸胚培裴赔陪配佩沛掊辔帔淠旆锫醅霈",pen:"喷盆湓",peng:"砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯堋嘭怦蟛",pi:"砒霹批披劈琵毗啤脾疲皮匹痞僻屁譬丕陴邳郫圮鼙擗噼庀媲纰枇甓睥罴铍痦癖疋蚍貔",pian:"篇偏片骗谝骈犏胼褊翩蹁",piao:"飘漂瓢票剽嘌嫖缥殍瞟螵",pie:"撇瞥丿苤氕",pin:"拼频贫品聘拚姘嫔榀牝颦",ping:"乒坪苹萍平凭瓶评屏俜娉枰鲆",po:"坡泼颇婆破魄迫粕叵鄱溥珀钋钷皤笸",pou:"剖裒踣",pu:"扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑匍噗濮璞氆镤镨蹼",qi:"期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫亟亓圻芑萋葺嘁屺岐汔淇骐绮琪琦杞桤槭欹祺憩碛蛴蜞綦綮趿蹊鳍麒",qia:"掐恰洽葜",qian:"牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉佥阡芊芡荨掮岍悭慊骞搴褰缱椠肷愆钤虔箝",qiang:"枪呛腔羌墙蔷强抢嫱樯戗炝锖锵镪襁蜣羟跫跄",qiao:"橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍劁诮谯荞愀憔缲樵毳硗跷鞒",qie:"切茄且怯窃郄唼惬妾挈锲箧",qin:"钦侵亲秦琴勤芹擒禽寝沁芩蓁蕲揿吣嗪噙溱檎螓衾",qing:"青轻氢倾卿清擎晴氰情顷请庆倩苘圊檠磬蜻罄箐謦鲭黥",qiong:"琼穷邛茕穹筇銎",qiu:"秋丘邱球求囚酋泅俅氽巯艽犰湫逑遒楸赇鸠虬蚯蝤裘糗鳅鼽",qu:"趋区蛆曲躯屈驱渠取娶龋趣去诎劬蕖蘧岖衢阒璩觑氍祛磲癯蛐蠼麴瞿黢",quan:"圈颧权醛泉全痊拳犬券劝诠荃獾悛绻辁畎铨蜷筌鬈",que:"缺炔瘸却鹊榷确雀阙悫",qun:"裙群逡",ran:"然燃冉染苒髯",rang:"瓤壤攘嚷让禳穰",rao:"饶扰绕荛娆桡",ruo:"惹若弱",re:"热偌",ren:"壬仁人忍韧任认刃妊纫仞荏葚饪轫稔衽",reng:"扔仍",ri:"日",rong:"戎茸蓉荣融熔溶容绒冗嵘狨缛榕蝾",rou:"揉柔肉糅蹂鞣",ru:"茹蠕儒孺如辱乳汝入褥蓐薷嚅洳溽濡铷襦颥",ruan:"软阮朊",rui:"蕊瑞锐芮蕤睿蚋",run:"闰润",sa:"撒洒萨卅仨挲飒",sai:"腮鳃塞赛噻",san:"三叁伞散彡馓氵毵糁霰",sang:"桑嗓丧搡磉颡",sao:"搔骚扫嫂埽臊瘙鳋",se:"瑟色涩啬铩铯穑",sen:"森",seng:"僧",sha:"莎砂杀刹沙纱傻啥煞脎歃痧裟霎鲨",shai:"筛晒酾",shan:"珊苫杉山删煽衫闪陕擅赡膳善汕扇缮剡讪鄯埏芟潸姗骟膻钐疝蟮舢跚鳝",shang:"墒伤商赏晌上尚裳垧绱殇熵觞",shao:"梢捎稍烧芍勺韶少哨邵绍劭苕潲蛸笤筲艄",she:"奢赊蛇舌舍赦摄射慑涉社设厍佘猞畲麝",shen:"砷申呻伸身深娠绅神沈审婶甚肾慎渗诜谂吲哂渖椹矧蜃",sheng:"声生甥牲升绳省盛剩胜圣丞渑媵眚笙",shi:"师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试谥埘莳蓍弑唑饣轼耆贳炻礻铈铊螫舐筮豕鲥鲺",shou:"收手首守寿授售受瘦兽扌狩绶艏",shu:"蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱恕倏塾菽忄沭涑澍姝纾毹腧殳镯秫鹬",shua:"刷耍唰涮",shuai:"摔衰甩帅蟀",shuan:"栓拴闩",shuang:"霜双爽孀",shui:"谁水睡税",shun:"吮瞬顺舜恂",shuo:"说硕朔烁蒴搠嗍濯妁槊铄",si:"斯撕嘶思私司丝死肆寺嗣四伺似饲巳厮俟兕菥咝汜泗澌姒驷缌祀祠锶鸶耜蛳笥",song:"松耸怂颂送宋讼诵凇菘崧嵩忪悚淞竦",sou:"搜艘擞嗽叟嗖嗾馊溲飕瞍锼螋",su:"苏酥俗素速粟僳塑溯宿诉肃夙谡蔌嗉愫簌觫稣",suan:"酸蒜算",sui:"虽隋随绥髓碎岁穗遂隧祟蓑冫谇濉邃燧眭睢",sun:"孙损笋荪狲飧榫跣隼",suo:"梭唆缩琐索锁所唢嗦娑桫睃羧",ta:"塌他它她塔獭挞蹋踏闼溻遢榻沓",tai:"胎苔抬台泰酞太态汰邰薹肽炱钛跆鲐",tan:"坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭郯蕈昙钽锬覃",tang:"汤塘搪堂棠膛唐糖傥饧溏瑭铴镗耥螗螳羰醣",thang:"倘躺淌",theng:"趟烫",tao:"掏涛滔绦萄桃逃淘陶讨套挑鼗啕韬饕",te:"特",teng:"藤腾疼誊滕",ti:"梯剔踢锑提题蹄啼体替嚏惕涕剃屉荑悌逖绨缇鹈裼醍",tian:"天添填田甜恬舔腆掭忝阗殄畋钿蚺",tiao:"条迢眺跳佻祧铫窕龆鲦",tie:"贴铁帖萜餮",ting:"厅听烃汀廷停亭庭挺艇莛葶婷梃蜓霆",tong:"通桐酮瞳同铜彤童桶捅筒统痛佟僮仝茼嗵恸潼砼",tou:"偷投头透亠",tu:"凸秃突图徒途涂屠土吐兔堍荼菟钍酴",tuan:"湍团疃",tui:"推颓腿蜕褪退忒煺",tun:"吞屯臀饨暾豚窀",tuo:"拖托脱鸵陀驮驼椭妥拓唾乇佗坨庹沱柝砣箨舄跎鼍",wa:"挖哇蛙洼娃瓦袜佤娲腽",wai:"歪外",wan:"豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕剜芄苋菀纨绾琬脘畹蜿箢",wang:"汪王亡枉网往旺望忘妄罔尢惘辋魍",wei:"威巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫倭偎诿隈葳薇帏帷崴嵬猥猬闱沩洧涠逶娓玮韪軎炜煨熨痿艉鲔",wen:"瘟温蚊文闻纹吻稳紊问刎愠阌汶璺韫殁雯",weng:"嗡翁瓮蓊蕹",wo:"挝蜗涡窝我斡卧握沃莴幄渥杌肟龌",wu:"巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误兀仵阢邬圬芴庑怃忤浯寤迕妩骛牾焐鹉鹜蜈鋈鼯",xi:"昔熙析西硒矽晰嘻吸锡牺稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细僖兮隰郗茜葸蓰奚唏徙饩阋浠淅屣嬉玺樨曦觋欷熹禊禧钸皙穸蜥蟋舾羲粞翕醯鼷",xia:"瞎虾匣霞辖暇峡侠狭下厦夏吓掀葭嗄狎遐瑕硖瘕罅黠",xian:"锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线冼藓岘猃暹娴氙祆鹇痫蚬筅籼酰跹",xiang:"相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象芗葙饷庠骧缃蟓鲞飨",xiao:"萧硝霄削哮嚣销消宵淆晓小孝校肖啸笑效哓咻崤潇逍骁绡枭枵筱箫魈",xie:"楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑偕亵勰燮薤撷廨瀣邂绁缬榭榍歙躞",xin:"薪芯锌欣辛新忻心信衅囟馨莘歆铽鑫",xing:"星腥猩惺兴刑型形邢行醒幸杏性姓陉荇荥擤悻硎",xiong:"兄凶胸匈汹雄熊芎",xiu:"休修羞朽嗅锈秀袖绣莠岫馐庥鸺貅髹",xu:"墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续讴诩圩蓿怵洫溆顼栩煦砉盱胥糈醑",xuan:"轩喧宣悬旋玄选癣眩绚儇谖萱揎馔泫洵渲漩璇楦暄炫煊碹铉镟痃",xue:"靴薛学穴雪血噱泶鳕",xun:"勋熏循旬询寻驯巡殉汛训讯逊迅巽埙荀薰峋徇浔曛窨醺鲟",ya:"压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶伢揠吖岈迓娅琊桠氩砑睚痖",yan:"焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验厣靥赝俨偃兖讠谳郾鄢芫菸崦恹闫阏洇湮滟妍嫣琰晏胭腌焱罨筵酽魇餍鼹",yang:"殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾徉怏泱炀烊恙蛘鞅",yao:"邀腰妖瑶摇尧遥窑谣姚咬舀药要耀夭爻吆崾徭瀹幺珧杳曜肴鹞窈繇鳐",ye:"椰噎耶爷野冶也页掖业叶曳腋夜液谒邺揶馀晔烨铘",yi:"一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎刈劓佾诒圪圯埸懿苡薏弈奕挹弋呓咦咿噫峄嶷猗饴怿怡悒漪迤驿缢殪贻旖熠钇镒镱痍瘗癔翊衤蜴舣羿翳酏黟",yin:"茵荫因殷音阴姻吟银淫寅饮尹引隐印胤鄞堙茚喑狺夤氤铟瘾蚓霪龈",ying:"英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映嬴郢茔莺萦撄嘤膺滢潆瀛瑛璎楹鹦瘿颍罂",yo:"哟唷",yong:"拥佣臃痈庸雍踊蛹咏泳涌永恿勇用俑壅墉慵邕镛甬鳙饔",you:"幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼卣攸侑莸呦囿宥柚猷牖铕疣蝣鱿黝鼬",yu:"迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉浴寓裕预豫驭禺毓伛俣谀谕萸蓣揄喁圄圉嵛狳饫庾阈妪妤纡瑜昱觎腴欤於煜燠聿钰鹆瘐瘀窳蝓竽舁雩龉",yuan:"鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院塬沅媛瑗橼爰眢鸢螈鼋",yue:"曰约越跃钥岳粤月悦阅龠樾刖钺",yun:"耘云郧匀陨允运蕴酝晕韵孕郓芸狁恽纭殒昀氲",za:"匝砸杂拶咂",zai:"栽哉灾宰载再在咱崽甾",zan:"攒暂赞瓒昝簪糌趱錾",zang:"赃脏葬奘戕臧",zao:"遭糟凿藻枣早澡蚤躁噪造皂灶燥唣缫",ze:"责择则泽仄赜啧迮昃笮箦舴",zei:"贼",zen:"怎谮",zeng:"增憎曾赠缯甑罾锃",zha:"扎喳渣札轧铡闸眨栅榨咋乍炸诈揸吒咤哳怍砟痄蚱齄",zhai:"摘斋宅窄债寨砦",zhan:"瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽谵搌旃",zhang:"樟章彰漳张掌涨杖丈帐账仗胀瘴障仉鄣幛嶂獐嫜璋蟑",zhao:"招昭找沼赵照罩兆肇召爪诏棹钊笊",zhe:"遮折哲蛰辙者锗蔗这浙谪陬柘辄磔鹧褚蜇赭",zhen:"珍斟真甄砧臻贞针侦枕疹诊震振镇阵缜桢榛轸赈胗朕祯畛鸩",zheng:"蒸挣睁征狰争怔整拯正政帧症郑证诤峥钲铮筝",zhi:"芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒卮陟郅埴芷摭帙忮彘咫骘栉枳栀桎轵轾攴贽膣祉祗黹雉鸷痣蛭絷酯跖踬踯豸觯",zhong:"中盅忠钟衷终种肿重仲众冢锺螽舂舯踵",zhou:"舟周州洲诌粥轴肘帚咒皱宙昼骤啄着倜诹荮鬻纣胄碡籀舳酎鲷",zhu:"珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑住注祝驻伫侏邾苎茱洙渚潴驺杼槠橥炷铢疰瘃蚰竺箸翥躅麈",zhua:"抓",zhuai:"拽",zhuan:"专砖转撰赚篆抟啭颛",zhuang:"桩庄装妆撞壮状丬",zhui:"椎锥追赘坠缀萑骓缒",zhun:"谆准",zhuo:"捉拙卓桌琢茁酌灼浊倬诼廴蕞擢啜浞涿杓焯禚斫",zi:"兹咨资姿滋淄孜紫仔籽滓子自渍字谘嵫姊孳缁梓辎赀恣眦锱秭耔笫粢觜訾鲻髭",zong:"鬃棕踪宗综总纵腙粽",zou:"邹走奏揍鄹鲰",zu:"租足卒族祖诅阻组俎菹啐徂驵蹴",zuan:"钻纂攥缵",zui:"嘴醉最罪",zun:"尊遵撙樽鳟",zuo:"昨左佐柞做作坐座阝阼胙祚酢",cou:"薮楱辏腠",nang:"攮哝囔馕曩",o:"喔",dia:"嗲",chuai:"嘬膪踹",cen:"岑涔",diu:"铥",nou:"耨",fou:"缶",bia:"髟"},chineseToPinYin:function(t){for(var e=t.length,n="",i=new RegExp("[a-zA-Z0-9]"),r=0;r<e;r++){var a=t.substr(r,1),o=this.arraySearch(a,this.pinyin);i.test(a)?n+=a:!1!==o&&(n+=o)}n=n.replace(/ /g,"-");while(n.indexOf("--")>0)n=n.replace("--","-");return n},arraySearch:function(t,e){for(var n in this.pinyin)if(-1!==this.pinyin[n].indexOf(t))return this.ucfirst(n);return!1},ucfirst:function(t){if(t.length>0){var e=t.substr(0,1).toUpperCase(),n=t.substr(1,t.length);return e+n}},initial:function(t){for(var e=this.chineseToPinYin(t),n="",i=0;i<e.length;i++){var r=e.charAt(i);/^[A-Z]+$/.test(r)&&(n+=r)}return n},getInitialColor:function(t){var e=this.initial(t);return"A"===e||"G"===e||"M"===e||"S"===e||"Y"===e?"#759EFE":"B"===e||"H"===e||"N"===e||"T"===e||"Z"===e?"#81DDA3":"C"===e||"I"===e||"O"===e||"U"===e?"#BEDF85":"D"===e||"J"===e||"P"===e||"V"===e?"#FCB076":"E"===e||"K"===e||"Q"===e||"W"===e?"#F99780":"#FF9494"}}},efc2:function(t,e,n){var i=n("471a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("515ce22e",i,!0,{sourceMap:!1,shadowMode:!1})},efd3:function(t,e,n){var i=n("db38");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("3ab693fd",i,!0,{sourceMap:!1,shadowMode:!1})},f010:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'#TextRecognition[data-v-44edd521]{position:fixed;width:100vw;height:100vh;z-index:2000;top:0;left:0}#TextRecognition .pager[data-v-44edd521]{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;width:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}#TextRecognition .page-header[data-v-44edd521]{width:100%;padding:14px 20px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;border-bottom:1px solid #e6e6e6;background:#fff}#TextRecognition .page-header[data-v-44edd521],#TextRecognition .page-header-left[data-v-44edd521],#TextRecognition .page-header-right[data-v-44edd521]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}#TextRecognition .page-container[data-v-44edd521]{height:100%;-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden}#TextRecognition .page-container .left-content[data-v-44edd521]{position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1;height:100%;text-align:center;min-height:300px;background:#525659;padding:20px 150px}#TextRecognition .page-container .right-content[data-v-44edd521]{width:500px;height:100%;background:#fff;border-left:1px solid #e6e6e6}#TextRecognition .page-container .right-content[data-v-44edd521],#TextRecognition .page-container .right-content-header[data-v-44edd521]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}#TextRecognition .page-container .right-content-header[data-v-44edd521]{margin:0 10px;border-top:1px solid #e8e8e8;border-bottom:1px solid #e8e8e8;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:10px 0;font-size:14px}#TextRecognition .page-container .right-content-text[data-v-44edd521]{padding:10px;white-space:pre-wrap;overflow:auto;-webkit-box-flex:1;-ms-flex:1;flex:1;color:#000;font-size:14px}#TextRecognition .page-container .right-content-text[data-v-44edd521]::-webkit-scrollbar{width:6px}#TextRecognition .page-container .right-content-text[data-v-44edd521]::-webkit-scrollbar-thumb{background-color:rgba(144,147,153,.3);border-radius:6px}#TextRecognition .page-container .right-content-text[data-v-44edd521]::-webkit-scrollbar-track{background-color:#fff;border-radius:6px}#TextRecognition .app-logo[data-v-44edd521]{width:44px;margin-right:10px}#TextRecognition .title[data-v-44edd521]{font-size:22px;font-family:MicrosoftYaHei;color:#333;position:relative}#TextRecognition .title[data-v-44edd521]:after{content:"";position:absolute;width:1px;right:-10px;top:3px;height:80%;background:#999}#TextRecognition .sec-title[data-v-44edd521]{font-size:16px;color:#999;margin-left:20px}#TextRecognition .upload-images[data-v-44edd521]{margin-top:100px;margin-bottom:20px}#TextRecognition .upload-images img[data-v-44edd521]{width:76px}#TextRecognition #ImageView[data-v-44edd521]{max-width:100%}#TextRecognition .uploadOCRButton[data-v-44edd521]{height:35px;margin-right:10px}#TextRecognition .page-close[data-v-44edd521]{margin-left:25px;cursor:pointer}#TextRecognition .position[data-v-44edd521]{display:-webkit-box;display:-ms-flexbox;display:flex;line-height:20px;margin-bottom:15px}#TextRecognition .position-content[data-v-44edd521]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}#TextRecognition[data-v-44edd521] .el-upload{display:block}#TextRecognition[data-v-44edd521] .el-form-item__error{top:70%;left:-30px}',""]),t.exports=e},f086:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-container"},[e("div",{staticClass:"app-content"},[e("DepartStat"),e("SysVisit"),e("RegisterUser"),e("OrgOpen"),e("AreasActive"),e("ServiceState"),e("HourMoniTorings"),e("MonthMoniToring")],1)])},r=[],a=n("84ce"),o=n("c7de"),s=n("e204"),l=n("c6fa"),u=n("70ee"),c=n("b5c1"),d=n("2658"),h=n("c357"),f={components:{DepartStat:a["a"],SysVisit:o["a"],RegisterUser:s["a"],OrgOpen:l["a"],AreasActive:u["a"],ServiceState:c["a"],HourMoniTorings:d["a"],MonthMoniToring:h["a"]},props:{},data:function(){return{appMain:""}},computed:{},watch:{},created:function(){this.$bus.emit("showNavSearch",!1)},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0),this.appMain.style.minWidth="auto"},mounted:function(){this.appMain=document.querySelector(".app-main"),this.appMain.style.minWidth="1252px"},methods:{}},p=f,g=(n("fdaf"),n("2877")),m=Object(g["a"])(p,i,r,!1,null,"30f381e6",null);e["a"]=m.exports},f0c1:function(t,e,n){"use strict";var i=n("d8e8"),r=n("d3f4"),a=n("31f4"),o=[].slice,s={},l=function(t,e,n){if(!(e in s)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";s[e]=Function("F,a","return new F("+i.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=i(this),n=o.call(arguments,1),s=function(){var i=n.concat(o.call(arguments));return this instanceof s?l(e,i.length,i):a(e,i,t)};return r(e.prototype)&&(s.prototype=e.prototype),s}},f1ae:function(t,e,n){"use strict";var i=n("86cc"),r=n("4630");t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},f1b2:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-container"},[e("div",[e("el-radio-group",{attrs:{size:"mini"},on:{change:t.tabClickHandler},model:{value:t.radio1,callback:function(e){t.radio1=e},expression:"radio1"}},[e("el-radio-button",{attrs:{label:"0"}},[t._v("按区域")]),e("el-radio-button",{attrs:{label:"1"}},[t._v("按产品")]),e("el-radio-button",{attrs:{label:"2"}},[t._v("按终端")])],1)],1),e("div",{staticClass:"box",staticStyle:{"padding-top":"16px"}},[e("statistics-search",{attrs:{"search-type":t.searchType,"default-node-id":t.yijiId,"whole-country":t.wholeCountry,"search-value":t.searchValue,radio1:t.radio1},on:{statisticsClick:t.statistics}})],1),e("div",[e("data-table",{attrs:{"list-tb":t.listTb,"list-data":t.listData,"span-method":t.spanMethod,"file-name":"用户访问统计"},on:{onRowClick:t.rowclick}})],1)])},r=[],a=n("a94b"),o=n("ba77"),s=n("c1df"),l={components:{StatisticsSearch:a["a"],dataTable:o["a"]},props:{},data:function(){return{listTb:[{prop:"index"},{prop:"name",width:"",align:"left",title:"区域"},{prop:"loginNumber",width:"100px",align:"center",title:"登录人数"},{prop:"loginSum",width:"100px",align:"center",title:"登录次数"}],listData:[],searchType:[{type:"treeNode",title:"区域"},{type:"range",title:"统计周期",rangeType:"daterange",rangeSeparator:"至",dateFormat:"yyyy-MM-dd"}],searchValue:{},datevalue:[],listType:"product",radio1:"0",options:[],value:"",options1:[{value:"",label:"全部"},{value:"Windows",label:"Windows"},{value:"Android",label:"Android"},{value:"iPad",label:"iPad"},{value:"iPhone",label:"iPhone"},{value:"Linux",label:"Linux"},{value:"macOS",label:"macOS"},{value:"WeChat",label:"WeChat"},{value:"其它",label:"其它"}],value1:"",showSummary:!0,form:{startTime:"",endTime:"",id:"",productId:"",clientType:"",type:"0",orgcode:null},quyuname:"",yijiId:"",firstNlevel:0,flat:!1,liebiao:!1}},computed:{},watch:{radio1:function(t){var e={id:"",name:""};this.$set(this.searchValue,"treeNode",e),this.form.type=t,"1"===t?(this.form.productId=null,this.form.clientType="",this.form.orgcode=null,this.searchType=[{type:"treeNode",title:"区域"},{type:"rootOrg",title:"单位",parentType:"treeNode"},{type:"range",title:"统计周期",rangeType:"daterange",rangeSeparator:"至",dateFormat:"yyyy-MM-dd"}],this.listTb=[{prop:"index"},{prop:"name",width:"",align:"left",title:"产品"},{prop:"loginNumber",width:"100px",align:"center",title:"登录人数"},{prop:"loginSum",width:"100px",align:"center",title:"登录次数"}]):"2"===t?(this.form.productId="",this.form.clientType=null,this.form.orgcode="",this.listTb=[{prop:"index"},{prop:"clientType",width:"",align:"left",title:"终端"},{prop:"loginNumber",width:"100px",align:"center",title:"登录人数"},{prop:"loginSum",width:"100px",align:"center",title:"登录次数"}],this.searchType=[{type:"treeNode",title:"区域"},{type:"rootOrg",title:"单位",parentType:"treeNode"},{type:"range",title:"统计周期",rangeType:"daterange",rangeSeparator:"至",dateFormat:"yyyy-MM-dd"}]):"0"===t&&(this.form.productId="",this.form.clientType="",this.form.orgcode="",this.searchType=[{type:"treeNode",title:"区域"},{type:"range",title:"统计周期",rangeType:"daterange",rangeSeparator:"至",dateFormat:"yyyy-MM-dd"}],this.listTb=[{prop:"index"},{prop:"name",width:"",align:"left",title:"区域"},{prop:"loginNumber",width:"100px",align:"center",title:"登录人数"},{prop:"loginSum",width:"100px",align:"center",title:"登录次数"}])}},created:function(){this.$bus.emit("showNavSearch",!1)},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0)},mounted:function(){this.flat=!0},methods:{getData:function(t){var e=this;this.$http({method:"POST",url:"/platStatistics/BusinessOpen/fwStatistics",params:this.form}).then((function(t){if("success"===t.code){var n=t.body.listdata,i={};if("2"===e.radio1?(i={clientType:"合计",loginNumber:0,loginSum:0},n.forEach((function(t){i.loginNumber+=t.loginNumber,i.loginSum+=t.loginSum}))):(i={name:"合计",loginNumber:0,loginSum:0},n.forEach((function(t){i.loginNumber+=t.loginNumber,i.loginSum+=t.loginSum}))),n.length>0&&n.push(i),e.listData=n,0===t.body.map.level?e.wholeCountry=!0:e.wholeCountry=!1,console.log("是否传值",e.flat),e.flat){var r={id:t.body.map.quId,name:t.body.map.quName,nLevel:t.body.map.level};e.$set(e.searchValue,"treeNode",r),t.body.map.quId&&(e.yijiId="/"===t.body.map.quId?"":t.body.map.quId,e.firstNlevel=t.body.map.level)}}else e.$message.error(t.message)}))},statistics:function(t){console.log("区域、单位",t),t.treeNode.id?(this.form.id=t.treeNode.id,this.flat=!1):(this.form.id="",this.flat=!0),this.form.startTime=s(t.range[0]).format("YYYY-MM-DD"),this.form.endTime=s(t.range[1]).format("YYYY-MM-DD"),"0"===this.radio1?(this.form.productId=t.productId,this.form.clientType=t.terminal):"1"===this.radio1?(this.form.clientType=t.terminal,t.rootOrg.ocode?this.form.orgcode=t.rootOrg.ocode:this.form.orgcode=null):"2"===this.radio1&&(this.form.productId=t.productId,t.rootOrg.ocode?this.form.orgcode=t.rootOrg.ocode:this.form.orgcode=null),this.getData()},tabClickHandler:function(t){this.flat=!0,this.form.startTime=s(new Date).subtract(1,"months").format("YYYY-MM-DD"),this.form.endTime=s().format("YYYY-MM-DD"),this.form.id="",this.getData(t)},rowclick:function(t,e,n){var i=this;t.N_Level>3||!t.ID||"0"!==this.radio1||(this.form.id=t.ID,this.$http({method:"POST",url:"/platStatistics/BusinessOpen/fwStatistics",params:this.form}).then((function(e){if("success"===e.code){if(e.body.map.FullName){var n=e.body.map.FullName.slice(1),r={id:t.ID,name:n,nLevel:t.N_Level};i.$set(i.searchValue,"treeNode",r)}var a=e.body.listdata,o={};"2"===i.radio1?(o={clientType:"合计",loginNumber:0,loginSum:0},a.forEach((function(t){o.loginNumber+=t.loginNumber,o.loginSum+=t.loginSum}))):(o={name:"合计",loginNumber:0,loginSum:0},a.forEach((function(t){o.loginNumber+=t.loginNumber,o.loginSum+=t.loginSum}))),a.length>0&&a.push(o),i.listData=a,0===e.body.map.level?i.wholeCountry=!0:i.wholeCountry=!1}})))},spanMethod:function(t){if(t.rowIndex===this.listData.length-1){if(0===t.columnIndex)return[0,0];if(1===t.columnIndex)return[1,2]}}}},u=l,c=(n("6f63"),n("2877")),d=Object(c["a"])(u,i,r,!1,null,"5cd5cbcb",null);e["a"]=d.exports},f1b7:function(t,e,n){"use strict";n("7303")},f1bd:function(t,e,n){var i=n("349d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("60ed92b9",i,!0,{sourceMap:!1,shadowMode:!1})},f1da:function(t,e,n){"use strict";n("8d7b")},f260:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return e}))},f386:function(t,e,n){"use strict";n("386b")("small",(function(t){return function(){return t(this,"small","","")}}))},f3e2:function(t,e,n){"use strict";var i=n("5ca1"),r=n("0a49")(0),a=n("2f21")([].forEach,!0);i(i.P+i.F*!a,"Array",{forEach:function(t){return r(this,t,arguments[1])}})},f3ff:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"},i=t.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(t){return t.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ਰਾਤ"===e?t<4?t:t+12:"ਸਵੇਰ"===e?t:"ਦੁਪਹਿਰ"===e?t>=10?t:t+12:"ਸ਼ਾਮ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"ਰਾਤ":t<10?"ਸਵੇਰ":t<17?"ਦੁਪਹਿਰ":t<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});return i}))},f400:function(t,e,n){"use strict";var i=n("c26b"),r=n("b39a"),a="Map";t.exports=n("e0b8")(a,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=i.getEntry(r(this,a),t);return e&&e.v},set:function(t,e){return i.def(r(this,a),0===t?0:t,e)}},i,!0)},f4ff:function(t,e,n){var i=n("5ca1"),r=Math.imul;i(i.S+i.F*n("79e5")((function(){return-5!=r(4294967295,5)||2!=r.length})),"Math",{imul:function(t,e){var n=65535,i=+t,r=+e,a=n&i,o=n&r;return 0|a*o+((n&i>>>16)*o+a*(n&r>>>16)<<16>>>0)}})},f52d:function(t,e,n){"use strict";n("8a7b9")},f559:function(t,e,n){"use strict";var i=n("5ca1"),r=n("9def"),a=n("d2c8"),o="startsWith",s=""[o];i(i.P+i.F*n("5147")(o),"String",{startsWith:function(t){var e=a(this,t,o),n=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return s?s.call(e,i,n):e.slice(n,n+i.length)===i}})},f576:function(t,e,n){"use strict";var i=n("5ca1"),r=n("2e08"),a=n("a25f"),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);i(i.P+i.F*o,"String",{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},f585:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{overflow:"hidden"}},[t.required?e("span",{staticClass:"headSelect-required"},[t._v("*")]):t._e(),"region"===t.type?e("div",{staticClass:"head-box"},[e("span",[t._v(t._s(t.text)+":")]),e("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"treeNode",expression:"'treeNode'"}],attrs:{"node-id":t.nodeId,"node-level":t.nodeLevel,readonly:!0,"dialog-title":"选择区域",name:"region",placeholder:"请选择"+t.text},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1):t._e(),"rootorg"===t.type?e("div",{staticClass:"head-box"},[e("span",[t._v(t._s(t.text)+":")]),t.update?e("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"rootorg",expression:"'rootorg'"}],attrs:{"node-id":t.nodeId,"node-level":t.nodeLevel,readonly:!0,"dialog-title":"选择单位",name:"rootorg",placeholder:"请选择"+t.text},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}}):t._e()],1):t._e(),"suborg"===t.type?e("div",{staticClass:"head-box"},[e("span",[t._v(t._s(t.text)+":")]),t.update?e("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"suborg",expression:"'suborg'"}],attrs:{readonly:!0,"org-level":"2","dialog-title":"选择部门","root-org-code":t.rootOrgcode,name:"suborg",placeholder:"请选择"+t.text},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}}):t._e()],1):t._e(),"person"===t.type?e("div",{staticClass:"head-box"},[e("span",[t._v(t._s(t.text)+":")]),t.update?e("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"staff",expression:"'staff'"}],attrs:{readonly:!0,"org-id":t.suborgId,"dialog-title":"选择人员","root-org-code":t.subOrgcode,name:"person",placeholder:"请选择"+t.text},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}}):t._e()],1):t._e(),"data"===t.type?e("div",{staticClass:"head-box"},[e("span",[t._v(t._s(t.text)+":")]),e("el-date-picker",{attrs:{type:"daterange","value-format":t.formatter,format:t.formatter,clearable:!1,editable:!1,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.timeChange},model:{value:t.timevalue,callback:function(e){t.timevalue=e},expression:"timevalue"}})],1):t._e()])},r=[],a=n("c1df"),o={components:{},props:{type:{type:Object,default:function(){return""}},text:{type:Object,default:function(){return""}},rootOrgcode:{type:String,default:function(){}},subOrgcode:{type:String,default:function(){}},suborgId:{type:String,default:function(){}},value:{type:String,default:""},selectFunction:{type:Function,default:function(){return!0}},formatter:{type:String,default:"yyyy-MM-dd"},timevalue:{type:Array,default:function(){return[]}},nodeId:{type:String,default:function(){}},nodeLevel:{type:Number,default:function(){}},lazy:Boolean,required:{type:Boolean,default:!1}},data:function(){return{update:!0}},computed:{},watch:{rootOrgcode:function(t){var e=this;this.update=!1,this.$nextTick((function(){e.update=!0}))},subOrgcode:function(t){var e=this;this.update=!1,this.$nextTick((function(){e.update=!0}))},suborgId:function(t){var e=this;this.update=!1,this.$nextTick((function(){e.update=!0}))},nodeId:function(t){var e=this;this.update=!1,this.$nextTick((function(){e.update=!0}))}},created:function(){var t=new Date;if("data"===this.type){var e=this.formatter;e.indexOf("yyyy")>-1&&(e=this.formatter.replace("yyyy","YYYY")),e.indexOf("dd")>-1&&(e=e.replace("dd","DD")),0===this.timevalue.length&&(this.timevalue=[a(new Date(t.getTime()-2592e6)).format(e),a(t).format(e)]),"function"!==typeof this.selectFunction||this.lazy||this.selectFunction(this.timevalue,"data")}},beforeDestroy:function(){},mounted:function(){},methods:{onSelectTreeNodeCompleted:function(t,e){"function"===typeof this.selectFunction&&this.selectFunction(t,e.name)},onSelectRootorgCompleted:function(t,e){"function"===typeof this.selectFunction&&this.selectFunction(t,e.name)},onSelectSuborgCompleted:function(t,e){"function"===typeof this.selectFunction&&this.selectFunction(t,e.name)},onSelectStaffCompleted:function(t,e){"function"===typeof this.selectFunction&&this.selectFunction(t,e.name)},timeChange:function(t){"function"===typeof this.selectFunction&&this.selectFunction(t,"data")}}},s=o,l=(n("3348"),n("2877")),u=Object(l["a"])(s,i,r,!1,null,"f223dbde",null);e["a"]=u.exports},f59d:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,"table[data-v-9207951a]{border-collapse:collapse}table tr td[data-v-9207951a]{border:1px solid #e2e2e2;padding:5px;height:40px;color:#555;font-size:12px;line-height:30px}table tr td em[data-v-9207951a]{color:red}table tr .tdBg[data-v-9207951a]{font-weight:700}[data-v-9207951a] .el-input__inner{height:35px!important;line-height:35px!important;font-size:12px;-webkit-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important;user-select:text!important}[data-v-9207951a] .el-textarea__inner{font-size:12px}[data-v-9207951a] .el-select{width:100%;display:inline-block;position:relative}[data-v-9207951a] .el-checkbox__label,[data-v-9207951a] .el-radio__label{font-size:12px;padding-left:5px}#pane-first input[data-v-9207951a],[data-v-9207951a] .el-input__inner{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.right-form[data-v-9207951a]:not(input,textarea){-webkit-touch-callout:none!important;-webkit-user-select:none!important}.problem-list[data-v-9207951a]{margin-top:8px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.problem-list .delete-icon[data-v-9207951a]{font-size:18px;cursor:pointer;margin-left:6px}.problem-list .delete-icon[data-v-9207951a]:hover{color:#409eff}[data-v-9207951a] .el-date-editor .el-range-separator{width:10%}",""]),t.exports=e},f605:function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},f616:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'[data-v-30f381e6] .panel-block{float:left;margin-top:12px;margin-right:12px;width:calc(50% - 6px)}[data-v-30f381e6] .panel-block:nth-child(2n){margin-right:0}[data-v-30f381e6] .panel-block:first-child,[data-v-30f381e6] .panel-block:nth-child(2){margin-top:0}.app-container .app-content[data-v-30f381e6]:after{content:"";display:block;visibility:hidden;clear:both}',""]),t.exports=e},f6b3:function(t,e,n){var i=n("5ca1");i(i.S,"Reflect",{has:function(t,e){return e in t}})},f6b4:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],n=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],i=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],r=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],a=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],o=t.defineLocale("gd",{months:e,monthsShort:n,monthsParseExact:!0,weekdays:i,weekdaysShort:r,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){var e=1===t?"d":t%10===2?"na":"mh";return t+e},week:{dow:1,doy:4}});return o}))},f751:function(t,e,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},f790:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".custom_input_icon[data-v-5a3d6b08]{position:absolute;top:0;right:43px;z-index:1;font-size:13px;cursor:pointer;display:none}.search_out[data-v-5a3d6b08],.select_input:hover .custom_input_icon[data-v-5a3d6b08]{display:inline-block}.search_out div[data-v-5a3d6b08]{float:left}.search_out div span[data-v-5a3d6b08]{float:left;line-height:36px;font-size:14px}.search_out div[data-v-5a3d6b08]:not(:last-child){margin-right:15px}.search_out[data-v-5a3d6b08] .el-range-separator{width:30px}",""]),t.exports=e},f979:function(t,e,n){n("8e6e"),t.exports=n("8378").Object.getOwnPropertyDescriptors},f97d:function(t,e){var n={"":!0,up:!0};function i(t){if("string"!==typeof t)return!1;var e=n[t.toLowerCase()];return!!e&&t.toLowerCase()}function r(t){return"number"===typeof t&&t>=0&&t<=100}function a(){var t=100,e=3,n=0,a=100,o=0,s=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!r(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!==typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!r(t))throw new Error("RegionAnchorX must be between 0 and 100.");a=t}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(t){if(!r(t))throw new Error("RegionAnchorY must be between 0 and 100.");n=t}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!r(t))throw new Error("ViewportAnchorY must be between 0 and 100.");s=t}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!r(t))throw new Error("ViewportAnchorX must be between 0 and 100.");o=t}},scroll:{enumerable:!0,get:function(){return l},set:function(t){var e=i(t);!1===e?console.warn("Scroll: an invalid or illegal string was specified."):l=e}}})}t.exports=a},f9ab:function(t,e,n){var i=n("5ca1"),r=n("96fb");i(i.S,"Math",{cbrt:function(t){return r(t=+t)*Math.pow(Math.abs(t),1/3)}})},f9b2:function(t,e,n){var i=n("c739");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("f76ee05c",i,!0,{sourceMap:!1,shadowMode:!1})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fa65:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".water[data-v-376ba417]{display:none}",""]),t.exports=e},fa83:function(t,e,n){"use strict";n("386b")("blink",(function(t){return function(){return t(this,"blink","","")}}))},fab2:function(t,e,n){var i=n("7726").document;t.exports=i&&i.documentElement},fabb:function(t,e,n){"use strict";n("af35")},facd:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,a=t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}});return a}))},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var i=window.document.currentScript,r=n("8875");i=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var a=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}var o=function(){var t=this,e=t._self._c;return e("LRLayout",[e("LeftPanel",[e("GiantTree",{attrs:{nodes:t.treeData},on:{onCreated:t.onTreeCreated,onClick:t.onTreeNodeClick}})],1),e("RightPanel",[e("CityCode",{attrs:{vo:t.citycode,"z-tree":t.zTree,"is-click":t.isClick,"node-name":t.nodeName,level:t.level},on:{refuploadsuss:t.refuploadsuss}})],1)],1)},s=[],l=n("2f62"),u=function(){var t=this,e=t._self._c;return e("div",[e("PageContent",{attrs:{title:t.title}},[null!==t.vo&&t.isClick?e("CityCodeForm",{attrs:{vo:t.vo,"can-edit":0}}):t._e(),e("div",{attrs:{slot:"footer"},slot:"footer"},[""!==t.nodeName&&t.level<3?e("el-button",{attrs:{plain:"",icon:"el-icon-plus"},on:{click:t.addObject}},[t._v("添加子城市")]):t._e(),null!==t.vo&&t.level>0?e("el-button",{attrs:{plain:"",icon:"el-icon-edit"},on:{click:t.editObject}},[t._v("修改")]):t._e(),null!==t.vo&&t.level>0?e("el-button",{attrs:{plain:"",icon:"el-icon-close"},on:{click:function(e){return t.deleteObject(t.vo)}}},[t._v("删除")]):t._e()],1)],1),e("Basicform",{attrs:{title:t.title,"win-width":t.moduleInfo.winWidth,"win-height":t.moduleInfo.winHeight,"on-basic-form-before-open":t.onBasicFormBeforeOpen,"on-basic-form-opened":t.onBasicFormOpened,"on-basic-form-before-submit":t.onBasicFormBeforeSubmit,"on-basic-form-submited":t.onBasicFormSubmited},scopedSlots:t._u([{key:"default",fn:function(n){return[e("CityCodeForm",{attrs:{vo:n.vo,"can-edit":n.canEdit,"module-info":t.moduleInfo}})]}}])})],1)},c=[],d=function(){var t=this,e=t._self._c;return e("el-form",{attrs:{model:t.vo}},[e("div",{staticClass:"el-table el-table--fit el-table--border"},[e("div",{staticClass:"el-table__body-wrapper"},[e("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("tbody",[e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("城市名称")]),e("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[1===t.canEdit?e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"名称",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{attrs:{placeholder:"请输入城市名称"},model:{value:t.vo.name,callback:function(e){t.$set(t.vo,"name",e)},expression:"vo.name"}})],1)]}}],null,!1,1679013288)}):t._e(),0===t.canEdit?e("div",{domProps:{innerHTML:t._s(t.vo.name)}}):t._e()],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("城市代码")]),e("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[1===t.canEdit?e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"代码",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{attrs:{placeholder:"请输入城市代码"},model:{value:t.vo.cityCode,callback:function(e){t.$set(t.vo,"cityCode",e)},expression:"vo.cityCode"}})],1)]}}],null,!1,2585274170)}):t._e(),0===t.canEdit?e("div",{domProps:{innerHTML:t._s(t.vo.cityCode)}}):t._e()],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("分组代码")]),e("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[1===t.canEdit?e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"分组",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{attrs:{placeholder:"请输入分组代码"},model:{value:t.vo.grouNo,callback:function(e){t.$set(t.vo,"grouNo",e)},expression:"vo.grouNo"}})],1)]}}],null,!1,355093168)}):t._e(),0===t.canEdit?e("div",{domProps:{innerHTML:t._s(t.vo.grouNo)}}):t._e()],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("排序")]),e("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[1===t.canEdit?e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"排序",rules:"required|length:6"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{attrs:{placeholder:"请输入6位数字排序号"},model:{value:t.vo.orderNo,callback:function(e){t.$set(t.vo,"orderNo",e)},expression:"vo.orderNo"}})],1)]}}],null,!1,1764535559)}):t._e(),0===t.canEdit?e("div",{domProps:{innerHTML:t._s(t.vo.orderNo)}}):t._e()],1)])])])])])])},h=[],f={components:{},props:{vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1}},data:function(){return{rootName:"",statusOptions:[{value:1,text:"启用"},{value:2,text:"禁用"}]}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{}},p=f,g=(n("3caf"),n("2877")),m=Object(g["a"])(p,d,h,!1,null,"127072c9",null),v=m.exports,y={components:{CityCodeForm:v},props:{vo:{type:Object,default:function(){return{}}},zTree:{type:Object,default:function(){return{}}},isClick:{type:Boolean,default:!1},nodeName:{type:String,default:function(){return""}},level:{type:Number,default:function(){return 0}}},data:function(){return{title:"城市天气代码设置",moduleInfo:{moduleCode:"Module",addNewUrl:"base/cityCodeConfig/addNew",insertUrl:"base/cityCodeConfig/insert",getByIdUrl:"base/cityCodeConfig/getById",updateUrl:"base/cityCodeConfig/update",delUrl:"base/cityCodeConfig/delete",winWidth:900,winHeight:600},opearType:""}},computed:{},watch:{},created:function(){this.$bus.on("addMenu",this.addMenu),this.$bus.on("editMenu",this.editMenu),this.$bus.on("deleteMenu",this.deleteMenu)},beforeDestroy:function(){this.$bus.off("addMenu",this.addMenu),this.$bus.off("editMenu",this.editMenu),this.$bus.off("deleteMenu",this.deleteMenu)},mounted:function(){},methods:{addObject:function(){this.opearType="add";var t=this.moduleInfo.addNewUrl.split("?")[0];t+="?parentId=",null===this.vo||"sys"===this.vo.id?this.moduleInfo.addNewUrl=t:this.moduleInfo.addNewUrl=t+this.vo.id,this.$bus.emit("openBusiform",this.moduleInfo,null,1)},refupload:function(t){this.$emit("refuploadsuss",!0)},editObject:function(){this.opearType="edit",this.$bus.emit("openBusiform",this.moduleInfo,this.vo,1)},deleteObject:function(t){var e=this;console.log(t,"node"),console.log(this.zTree,"this.zTree"),this.opearType="delete";var n="确认删除“"+t.name+"”吗?";t.children&&t.children.length>0&&(n="确认删除“"+t.name+"”及下级全部类型吗?"),this.$confirm(n,{type:"warning"}).then((function(){e.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:t.id},url:e.moduleInfo.delUrl}).then((function(n){if("success"===n.code){var i=t.getParentNode();e.zTree.removeNode(t),e.zTree.selectNode(i),e.$bus.emit("updateTreeNode",i),e.$bus.emit("refreshTreeData",null),e.$message.success(n.message)}else e.$alert(n.message,{type:"error"})}))}))},onBasicFormBeforeOpen:function(t,e,n){"add"===this.opearType&&(e.status=1),n.resolve(!0)},onBasicFormOpened:function(t,e){$(".sel-icon .el-radio-button__orig-radio:checked").next(".el-radio-button__inner").css("background-color",e.iconColor)},onBasicFormBeforeSubmit:function(t,e,n){null!==this.vo&&("sys"===this.vo.id&&(e.parentId=this.vo.id),2===this.vo.tlevel&&(e.fullOrder=this.vo.fullOrder+"-"+e.orderNo,e.fullName=this.vo.fullName+"-"+e.name)),n.resolve(!0)},onBasicFormSubmited:function(t,e){e.title=e.name,void 0!==e.pId&&null!==e.pId||(e.pId=e.parentId||"sys"),this.$bus.emit("updateTreeNode",e)}}},A=y,b=Object(g["a"])(A,u,c,!1,null,"c50a7438",null),_=b.exports;function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function S(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){C(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function C(t,e,n){return e=T(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function T(t){var e=M(t,"string");return"symbol"==w(e)?e:e+""}function M(t,e){if("object"!=w(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=w(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var k={name:"CityCodeConfig",components:{CityCode:_},props:{},data:function(){return{moduleInfo:{getByIdUrl:"base/cityCodeConfig/getById",loadTreeNodeUrl:"base/cityCodeConfig/querydata"},root:null,citycode:null,treeData:[],zTree:{},nodeName:"",isClick:!1,level:0}},computed:S({},Object(l["a"])(["loginUser"])),watch:{},created:function(){this.root={id:"sys",name:"城市代码",open:!0,title:"城市代码"},this.loadExpenseThype(),this.$bus.emit("showNavSearch",!1),this.$bus.on("refreshTreeData",this.refreshTreeData)},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0),this.$bus.off("refreshTreeData",this.refreshTreeData)},mounted:function(){},methods:{loadExpenseThype:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{orderBy:"orderNo asc"},data:[{compare:"=",field:"orgCode",merge:!0,value:this.loginUser.orgCode}],url:this.moduleInfo.loadTreeNodeUrl}).then((function(e){"success"===e.code?t.treeData=t.treeDataAdapter([t.root].concat(e.body.listdata)):t.$alert(e.message,"操作提示",{type:"error"})}))},treeDataAdapter:function(t){var e=this;return t.forEach((function(t){null===t.parentId?t.pId=e.root.id:t.pId=t.parentId,t.title=t.name})),t},refuploadsuss:function(t){this.loadExpenseThype()},refreshTreeData:function(t){null===t?this.loadExpenseThype():this.treeData=this.treeDataAdapter([this.root].concat(t))},onTreeNodeClick:function(t,e,n){var i=this;console.log(n.level),this.level=n.level,"城市代码"!==n.name?this.isClick=!0:this.isClick=!1,this.nodeName=n.name;var r=JSON.parse(JSON.stringify(this.root));this.root=null,this.$nextTick((function(t){"城市代码"===n.name?i.citycode=r:i.citycode=n,i.root=r}))},onTreeCreated:function(t){this.zTree=t;var e=t.getNodes();if(0===e.length)return!1;void 0===e[0].children?(this.onTreeNodeClick("",e[0].id,e[0]),t.selectNode(e[0]),e[0].tlevel=1):e[0].children.length>=1?(this.onTreeNodeClick("",e[0].children[0].id,e[0].children[0]),t.selectNode(e[0].children[0])):(this.onTreeNodeClick("",e[0].id,e[0]),t.selectNode(e[0]),e[0].tlevel=1)},getCityCode:function(t,e){var n=this;this.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{id:t,canEdit:0},url:this.moduleInfo.getByIdUrl}).then((function(t){"success"===t.code?(n.$set(t.body.vo,"getParentNode",e.getParentNode),n.$set(t.body.vo,"parentId",e.parentId),n.citycode=t.body.vo):n.$alert(t.message,"操作提示",{type:"error"})}))}}},L=k,D=Object(g["a"])(L,o,s,!1,null,"09240392",null),E=D.exports,B=function(){var t=this,e=t._self._c;return e("CockpitIndex",{attrs:{title:t.title},scopedSlots:t._u([{key:"default",fn:function(){return[e("CockpitItem",{attrs:{"module-info":t.moduleInfo}})]},proxy:!0}])})},I=[],O=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-wrapper"},[e("Topbar"),e("div",{staticClass:"app-container"},[e("div",{staticClass:"header",staticStyle:{background:"url(./images/w-imgs/cockpit/title.png) no-repeat center"}},[e("div",{staticClass:"bg-header"},[e("div",{staticClass:"t_title"},[t._v(" "+t._s(t.title)+" ")])])]),t._t("default")],2)],1)},P=[],N={props:{title:{type:String,default:"运营管理驾驶舱"}},data:function(){return{}},created:function(){this.$options.components["Topbar"]=this.$loadComponent("@/wapp/common/layout/components/Topbar/index")}},F=N,U=(n("6833"),Object(g["a"])(F,O,P,!1,null,"20804068",null)),R=U.exports,j=function(){var t=this,e=t._self._c;return e("div",{staticClass:"data-main"},[e("div",{staticClass:"item-box"},[e("div",{staticClass:"left"},[e("BusinessOpen",{attrs:{"module-info":t.moduleInfo}}),e("RegisterUser",{attrs:{"module-info":t.moduleInfo}}),e("BanwenCompany",{attrs:{"module-info":t.moduleInfo}})],1),e("div",{staticClass:"middle"},[e("DayVisitsNumber",{attrs:{"module-info":t.moduleInfo}}),e("MonthDate",{attrs:{"module-info":t.moduleInfo}}),e("AreasActive",{attrs:{"module-info":t.moduleInfo}})],1),e("div",{staticClass:"right"},[e("TermTodayVsCount",{attrs:{"module-info":t.moduleInfo}}),e("AreaVisitorProdCount",{attrs:{"module-info":t.moduleInfo}}),e("ServiceRunStatistics",{attrs:{"module-info":t.moduleInfo}})],1)])])},H=[],Y=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/line_short.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v("区域开通分布")]),e("div",{staticClass:"box",staticStyle:{height:"90%",width:"90%"}},[t.chartData.length>0?e("EchartAnnular",{attrs:{"chart-id":"sys-visit",alldata:t.chartData,radius:["0","50%"],color:t.colorArr,formatter:"{b}: {c}次</br>{d}%","is-label":!0,"is-label-line":!0,"is-legend":!0,"legend-left":"right","legend-top":"middle","legend-icon":"circle","legend-orient":"vertical",title:t.titleName,"label-align":"top","circle-center":["35%","50%"],"legend-formatter":t.legendFormatter,"label-formatter":t.labelFormatter,"text-color":"#fff","legend-text-style":t.legendTextStyle}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"180px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},z=[],Q={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",legendTextStyle:{color:"#72F9FE",fontSize:"14px"},chartData:[],colorArr:["#379DD5","#FFBD00","#FF761B","#91BD3C","#2873C4","#AD4200","#636363","#A27100","#134578","#A5A5A5"],titleName:""}},created:function(){this.getStatData()},methods:{getStatData:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:this.moduleInfo.businessOpenUrl}).then((function(e){if("success"===e.code){var n=e.body.listdata,i=[];n.forEach((function(t,e){i.push({name:t.name,value:t.num})})),t.chartData=i}else t.$message({message:e.message,type:"warning"})}),(function(e){t.$message.error(e)}))},legendFormatter:function(t){return t},labelFormatter:function(t){return t.name.length>4&&(t.name=t.name.substr(0,4)+"..."),t.name}}},V=Q,W=(n("95f0"),Object(g["a"])(V,Y,z,!1,null,"861d7d8e",null)),G=W.exports,K=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/line_long.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v(" 日访问量 ")]),e("div",{staticStyle:{height:"90%",width:"90%"}},[t.alldata.length>0?e("EchartDashboard",{attrs:{"chart-id":"day-visite-echart",alldata:t.alldata,"circle-center":t.circleCenter,"start-angles":t.startAngle}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},q=[],X={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",circleCenter:[["13%","50%"],["50%","50%"],["87%","50%"]],alldata:[],startAngle:[],max:[]}},mounted:function(){this.getTerminalData()},methods:{getTerminalData:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:this.moduleInfo.DayVisitsNum}).then((function(e){"success"===e.code&&(t.alldata=[{value:e.body.listNumber[0].num,name:"注册用户数"},{value:e.body.onlinenumber,name:"在线用户数"},{value:16,name:"平均在线时长"}],t.alldata.forEach((function(e){var n=Math.pow(10,e.value.toString().length-1),i=e.value/n;t.startAngle.push(Math.ceil(i)*n),t.max.push(Math.ceil(e.value/n)*n<10?10:Math.ceil(e.value/n)*n)})))}),(function(e){t.$message.error(e)}))}}},J=X,Z=(n("95a2"),Object(g["a"])(J,K,q,!1,null,"0300b5d1",null)),tt=Z.exports,et=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/line_long.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v("区域活跃率")]),e("div",{staticStyle:{height:"90%",width:"90%"}},[t.xdata.length>0?e("EchartColumnar",{attrs:{"data-zoom":t.dataZoom,"chart-id":"active-area",title:t.title,"chart-type":[{type:"bar",yAxisIndex:0},{type:"line",yAxisIndex:0}],"x-data":t.xdata,"y-data":t.ydata,"y-unit":t.yunit,"x-unit":t.xunit,color:t.colorArr,left:"0",right:"30",top:"30","x-label-rotate":45,"xytext-style":t.textStyle,"bar-width":t.barWidth,"show-split-line":!1}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"180px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},nt=[],it={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{dataZoom:{type:"inside",minValueSpan:5,maxValueSpan:5},img:"./images/w-imgs/nomessage.png",barWidth:{type:!0,width:"8px"},textStyle:{xcolor:"#72F9FE",ycolor:"#fff"},title:{name:"",align:"center",size:"15",textStyle:{fontWeight:400}},dateArr:[],xdata:[],ydata:[],xunit:{name:"",align:"end",size:"12",lineColor:"#0C7CC5"},yunit:{name:"",align:"center",size:"12",lineColor:"#0C7CC5"}}},created:function(){this.dateChange()},methods:{initDate:function(){var t=new Date,e=new Date(t.getTime()-2592e6);return[e,t]},dateChange:function(){this.dateArr=this.initDate(),this.getStatData(this.dateArr[0],this.dateArr[1])},getStatData:function(t,e){var n=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{startTime:t,endTime:e},url:this.moduleInfo.areasActiveUrl}).then((function(t){if("success"===t.code){var e=t.body.listdata,i=[],r=[];for(var a in e)i.push(a),r.push(e[a]);n.xdata=i,n.ydata=[r]}else n.$message({message:t.message,type:"warning"})}),(function(t){n.$message.error(t)}))}}},rt=it,at=(n("449c"),Object(g["a"])(rt,et,nt,!1,null,"283d58b9",null)),ot=at.exports,st=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/line_short.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v("注册用户趋势图")]),e("div",{staticStyle:{height:"90%",width:"90%"}},[t.xdata.length>0?e("EchartColumnar",{attrs:{"chart-id":"register-user","chart-type":[{type:"line",yAxisIndex:0}],"x-data":t.xdata,"y-data":t.ydata,"y-unit":t.yunit,"x-unit":t.xunit,left:"50",right:"50",top:"60","xytext-style":t.textStyle,smooth:!0}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},lt=[],ut={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",textStyle:{xcolor:"#72F9FE",ycolor:"#fff"},dateArr:[],xdata:[],ydata:[[]],xunit:{name:"",align:"end",size:"13",lineColor:"#0C7CC5"},yunit:{name:"",align:"center",size:"13",lineColor:"#0C7CC5"}}},created:function(){this.dateChange()},methods:{initDate:function(){var t=new Date,e=new Date(t.getTime()-2592e6);return[e,t]},dateChange:function(){this.dateArr=this.initDate(),this.getStatData(this.dateArr[0],this.dateArr[1])},getStatData:function(t,e){var n=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{startTime:t,endTime:e},url:this.moduleInfo.RegisterUserUrl}).then((function(t){if("success"===t.code){var e=t.body.listdata,i=[],r=[];e.forEach((function(t,e){t.month=t.month.replace("-","/"),i.push(t.month),r.push(t.totalNum)})),n.xdata=i,n.ydata=[r]}else n.$message({message:t.message,type:"warning"})}),(function(t){n.$message.error(t)}))}}},ct=ut,dt=(n("6891"),Object(g["a"])(ct,st,lt,!1,null,"1e60c8bf",null)),ht=dt.exports,ft=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/line_short.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v("办文数量排行")]),t.stackXData.length>0?e("EchartStackColumnar",{attrs:{"chart-id":"stack-chart-ban",title:t.stackTitle,"x-data":t.stackXData,"y-data":t.stackYData,"is-legend":!1,"legend-data":t.stackLegendData,left:"30",right:"50",top:"80",bottom:"30","x-unit":t.xunit,"y-unit":t.yunit,"xytext-style":t.textStyle,"bar-width":"8px","bar-gradient":t.barGradient,"x-label-formatter":t.xLabelFormatter,"tooltip-format":t.tooltipFormat}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"180px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)},pt=[],gt={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",stackYData:[],stackXData:[],datevalue:[],stackLegendData:[],textStyle:{xcolor:"#fff",ycolor:"#72F9FE"},xunit:{name:"单位",align:"end",size:"12",lineColor:"#0C7CC5"},yunit:{name:"办文数量",align:"center",size:"12",postion:"left",lineColor:"#0C7CC5"},barGradient:{type:!0,color:[{offset:0,color:"rgba(88, 150, 252, 0.2)"},{offset:.5,color:"rgba(88, 150, 252, 0.67)"},{offset:1,color:"rgba(251, 70, 113, 0.9)"}]}}},created:function(){},mounted:function(){this.getTerminalData()},methods:{getTerminalData:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:this.moduleInfo.DayVisitsNum}).then((function(e){if("success"===e.code){var n=e.body.listBanwen,i=[],r=[],a=[];n.forEach((function(t){for(var e in r.push(t.orgname),t){for(var n=!0,a=0;a<i.length;a++)if(i[a]===e){n=!1;break}n&&"type"!==e&&i.push(e)}})),i.forEach((function(t,e){var i=[];n.forEach((function(e,n){i.push(e[t])})),a.push(i)})),t.stackYData=r,t.stackLegendData=i,t.stackXData=a}}),(function(e){t.$message.error(e)}))},xLabelFormatter:function(t,e){return t.length>4&&(t=t.substr(0,4)+"..."),t}}},mt=gt,vt=(n("7e2a"),Object(g["a"])(mt,ft,pt,!1,null,"61254cf1",null)),yt=vt.exports,At=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/line_short.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v(" 区域访问量统计 ")]),e("div",{staticStyle:{height:"90%",width:"90%"}},[t.xdata.length>0?e("EchartColumnar",{attrs:{"chart-id":"active-area-visitor",title:t.title,"data-zoom":t.dataZoom,"chart-type":[{type:"bar",yAxisIndex:0}],"x-chart-num":1,"x-data":t.xdata,"y-data":t.ydata,"y-unit":t.yunit,"x-unit":t.xunit,color:t.colorArr,left:"30",right:"30",top:"30","x-label-rotate":45,"bar-width":t.barwidth,"show-split-line":!1,"xytext-style":t.textStyle,"bar-gradient":t.barGradient}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"180px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},bt=[],_t={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{barwidth:{type:!0,width:"8px"},dataZoom:{type:"inside",minValueSpan:5,maxValueSpan:5},img:"./images/w-imgs/nomessage.png",textStyle:{xcolor:"#72F9FE",ycolor:"#fff"},colorArr:["#379DD5","#FFBD00","#FF761B","#91BD3C","#2873C4","#AD4200","#636363","#A27100","#134578","#A5A5A5"],title:{name:"",align:"center",size:"15",textStyle:{fontWeight:400}},dateArr:[],xdata:[],ydata:[],xunit:{name:"",align:"end",size:"13",lineColor:"#0C7CC5"},yunit:{name:"",align:"center",size:"13",lineColor:"#0C7CC5"},barGradient:{type:!0,color:[{offset:0,color:"rgba(251, 70, 113, 0.9)"},{offset:.5,color:"rgba(88, 150, 252, 0.67)"},{offset:1,color:"rgba(88, 150, 252, 0.2)"}]}}},created:function(){var t=new Date,e=new Date(t.getTime()-2592e6);this.datevalue=[this.getDateStr(e),this.getDateStr(t)],this.getStatData()},methods:{formatDate:function(t){return t<10?"0"+t:t},getDateStr:function(t){if(t){var e=t.getFullYear(),n=this.formatDate(t.getMonth()+1),i=this.formatDate(t.getDate()),r=e+"-"+n+"-"+i;return r}},getStatData:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{startTime:this.datevalue[0],endTime:this.datevalue[1],type:"Area"},url:"platStatistics/BusinessOpen/userAccessStatistics"}).then((function(e){if("success"===e.code){var n=e.body.listdata,i=[],r=[];n.forEach((function(t){var e=0;for(var n in t)"name"!==n&&"id"!==n&&"level"!==n&&"code"!==n&&-1!==n.indexOf("New")&&(e+=Number(t[n]));i.push(t.name),r.push(e)})),t.xdata=i,t.ydata=[r]}else t.$message({message:e.message,type:"warning"})}))}}},wt=_t,xt=(n("01dc"),Object(g["a"])(wt,At,bt,!1,null,"fa17f1bc",null)),St=xt.exports,Ct=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/line_short.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v(" 运行服务成功率 ")]),e("div",{staticClass:"box",staticStyle:{height:"90%",width:"90%"}},[t._m(0),t.chartData.length>0?e("EchartAnnular",{attrs:{"chart-id":"servuce-success",alldata:t.chartData,radius:["40%","50%"],color:t.colorArr,formatter:"{b}:{d}%","is-label":!1,"legend-left":"left","legend-top":"middle","legend-icon":"circle","legend-orient":"vertical",title:t.titleName,"label-align":"top","circle-center":["50%","50%"],"text-color":"#fff","graphic-text":t.graphicText,"graphic-left":"center","graphic-top":"middle","graphic-color":"#fff"}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},Tt=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"info"},[e("p",[e("span",[t._v("服务运行总数:")]),t._v("2300")]),e("p",[e("span",[t._v("服务运行成功数:")]),t._v("200")]),e("p",[e("span",[t._v("服务运行失败数:")]),t._v("300")])])}],Mt={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",chartData:[],legendTextStyle:{color:"#72F9FE",fontSize:"14px"},titleName:{name:"",align:"middle",size:"15",textStyle:{fontWeight:400}},colorArr:["#FAC920","#0A0D59"],graphicText:""}},created:function(){this.getStatData()},methods:{getStatData:function(){this.graphicText=(100*(2e3/2300).toFixed(4)).toFixed(2)+"%";var t=[{name:"服务运行成功数",num:2e3},{name:"服务运行失败数",num:300}],e=[];t.forEach((function(t,n){e.push({name:t.name,value:t.num})})),this.chartData=e}}},kt=Mt,Lt=(n("3f54"),Object(g["a"])(kt,Ct,Tt,!1,null,"80e8cba4",null)),Dt=Lt.exports,Et=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/line_long.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v(" 本月数据趋势 ")]),e("div",{staticClass:"box",staticStyle:{height:"90%",width:"90%"}},[t.xdata.length>0?e("EchartColumnar",{attrs:{"chart-id":"month-date","chart-type":[{type:"line",yAxisIndex:0},{type:"line",yAxisIndex:0}],"x-chart-num":2,"x-data":t.xdata,"y-data":t.ydata,"y-unit":t.yunit,"x-unit":t.xunit,left:"50",right:"50",top:"60","xytext-style":t.textStyle,"is-legend":!0,"legend-align":{location:"bottom",align:0},"legend-icon":"rect",color:t.colorArr,smooth:!1,"show-split-line":!1,"tooltip-format":t.tooltipFormat}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},Bt=[],It={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",textStyle:{xcolor:"#72F9FE",ycolor:"#fff"},colorArr:["#FB4671","#2CB0FF","#1E90FF"],title:{name:"",align:"center",size:"15",textStyle:{fontWeight:400}},dateArr:[],xdata:[],ydata:[],xunit:{name:"",align:"end",size:"12",lineColor:"#0C7CC5"},yunit:{name:"",align:"center",size:"12",lineColor:"#0C7CC5"}}},created:function(){this.getDate()},methods:{tooltipFormat:function(t){return"文件量:"+t[0].name+":"+t[0].value+"<br/>办理量:"+t[1].name+":"+t[1].value},getDate:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:this.moduleInfo.DayVisitsNum}).then((function(e){if("success"===e.code){var n=e.body.listdataDone,i=e.body.listdataFile,r=[],a=[],o=[];i.forEach((function(t){r.push(t.month),a.push(t.num)})),n.forEach((function(t){o.push(t.num)})),t.xdata=r,t.ydata=[a,o]}}),(function(e){t.$message.error(e)}))}}},Ot=It,Pt=(n("40d3"),Object(g["a"])(Ot,Et,Bt,!1,null,"a2004e2e",null)),Nt=Pt.exports,Ft=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/line_short.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v(" 系统访问分布 ")]),e("div",{staticClass:"box",staticStyle:{height:"90%",width:"90%"}},[t.chartData.length>0?e("EchartAnnular",{attrs:{"chart-id":"sys-visit2",alldata:t.chartData,radius:["40%","50%"],width:"60%",left:"30%",color:t.colorArr,formatter:"{b}:{d}%","is-label":!0,"is-label-line":!0,"is-legend":!0,"legend-left":"left","legend-top":"middle","legend-icon":"circle","legend-orient":"vertical",title:t.titleName,"circle-center":["40%","50%"],"text-color":"#fff","legend-text-style":t.legendTextStyle,"label-formatter":t.labelFormatter,"legend-formatter":t.legendFormatter,"graphic-text":"访问量","graphic-left":"46.5%","graphic-top":"middle","graphic-color":"#fff"}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},Ut=[],Rt={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",chartData:[],legendTextStyle:{color:"#72F9FE",fontSize:"14px"},titleName:{name:"",align:"middle",size:"15",textStyle:{fontWeight:400}},colorArr:["#379DD5","#FFBD00","#FF761B","#91BD3C","#2873C4","#AD4200","#636363","#A27100","#134578","#A5A5A5"]}},created:function(){var t=new Date,e=new Date(t.getTime()-2592e6);this.datevalue=[this.getDateStr(e),this.getDateStr(t)],this.getStatData()},methods:{formatDate:function(t){return t<10?"0"+t:t},getDateStr:function(t){if(t){var e=t.getFullYear(),n=this.formatDate(t.getMonth()+1),i=this.formatDate(t.getDate()),r=e+"-"+n+"-"+i;return r}},getStatData:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{startTime:this.datevalue[0]+" 00:00:00",endTime:this.datevalue[1]+" 23:59:59"},url:this.moduleInfo.PlatTermTodayVsCount}).then((function(e){if("success"===e.code){var n=e.body.data,i=[];n.forEach((function(t){var e=0;Object.keys(t).forEach((function(n){"type"!==n&&(e+=t[n])})),i.push({name:t.type,value:e})})),t.chartData=i}else t.$message({message:e.message,type:"warning"})}),(function(e){t.$message.error(e)}))},legendFormatter:function(t){return t},labelFormatter:function(t){return t.percent+"%"}}},jt=Rt,Ht=(n("a4c4"),Object(g["a"])(jt,Ft,Ut,!1,null,"31d71f51",null)),Yt=Ht.exports,zt={components:{TermTodayVsCount:Yt,MonthDate:Nt,BusinessOpen:G,DayVisitsNumber:tt,AreasActive:ot,RegisterUser:ht,BanwenCompany:yt,AreaVisitorProdCount:St,ServiceRunStatistics:Dt},props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{}},mounted:function(){}},Qt=zt,Vt=(n("e9c0"),Object(g["a"])(Qt,j,H,!1,null,"821ffdea",null)),Wt=Vt.exports,Gt={name:"Cockpit",components:{CockpitIndex:R,CockpitItem:Wt},data:function(){return{title:"运营管理驾驶舱",moduleInfo:{item_height:260,item_width_short:460,item_width_long:770,businessOpenUrl:"/platStatistics/BusinessOpen/getOrgOpenDistribute",areasActiveUrl:"/platStatistics/BusinessOpen/getRegionalActivityRate",RegisterUserUrl:"/platStatistics/BusinessOpen/getOrgOpenTrend",BanwenCompany:"/platStatistics/banwen/getBanwenByCompany",AreasVisitorProdCountUrl:"/platStatistics/platVisit/getPlatAreaVisitorProdCount",PlatTermTodayVsCount:"/platStatistics/platVisit/getPlatTermTodayVsCount",DayVisitsNum:"/platStatistics/doneAndtodo/getMainSysSetup",listdataDone:[],listNumber:[],onlinenumber:"",listBanwen:[],listdataFile:[]}}},created:function(){this.getDate()},methods:{getDate:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:this.moduleInfo.DayVisitsNum}).then((function(e){"success"===e.code&&(t.moduleInfo.listdataDone=e.body.listdataDone,t.moduleInfo.listNumber=e.body.listNumber,t.moduleInfo.onlinenumber=e.body.onlinenumber,t.moduleInfo.listBanwen=e.body.listBanwen,t.moduleInfo.listdataFile=e.body.listdataFile)}),(function(e){t.$message.error(e)}))}}},Kt=Gt,$t=Object(g["a"])(Kt,B,I,!1,null,null,null),qt=$t.exports,Xt=function(){var t=this,e=t._self._c;return e("CockpitIndex",{attrs:{title:t.title},scopedSlots:t._u([{key:"default",fn:function(){return[e("CockpitItem",{attrs:{"module-info":t.moduleInfo}})]},proxy:!0}])})},Jt=[],Zt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-wrapper"},[e("div",{staticClass:"app-bac"}),e("div",{staticClass:"app-container"},[e("div",{staticClass:"bac1 ZS"}),e("div",{staticClass:"bac2 ZS"}),e("div",{staticClass:"bac3 ZS"}),e("div",{staticClass:"bac4 ZS"}),e("div",{staticClass:"bac5 ZS"}),e("div",{staticClass:"bac6 ZS"}),e("div",{staticClass:"header",staticStyle:{background:"url(./images/w-imgs/cockpit/title-1.png) repeat center"}},[e("div",{staticClass:"bg-header"},[e("div",{staticClass:"t_title"},[t._v(" "+t._s(t.title)+" ")])])]),t._t("default")],2)])},te=[],ee={components:{},props:{title:{type:String,default:"运营管理驾驶舱"}},data:function(){return{}}},ne=ee,ie=(n("5aca"),Object(g["a"])(ne,Zt,te,!1,null,"27cb324c",null)),re=ie.exports,ae=function(){var t=this,e=t._self._c;return e("div",{staticClass:"data-main"},[e("div",{staticClass:"item-top",staticStyle:{background:"url(./images/w-imgs/cockpit/top-bar-bg.png) repeat center / 100% 100%"}},[t._m(0),e("div",{staticClass:"top_bar_data"},[e("div",{staticClass:"left"},[e("gw",{attrs:{"module-info":t.moduleInfo}})],1),e("div",{staticClass:"middle"},[e("db",{attrs:{"module-info":t.moduleInfo}})],1),e("div",{staticClass:"right"},[e("rs",{attrs:{"module-info":t.moduleInfo}})],1)])]),e("div",{staticClass:"item-box"},[e("div",{staticClass:"left"},[e("dbsw",{attrs:{"module-info":t.moduleInfo}}),e("bmrsfb",{attrs:{"module-info":t.moduleInfo}}),e("blqk",{attrs:{"module-info":t.moduleInfo}})],1),e("div",{staticClass:"middle"},[e("DayVisitsNumber",{attrs:{"module-info":t.moduleInfo}}),e("MonthDate",{attrs:{"module-info":t.moduleInfo}}),e("AreasActive",{attrs:{"module-info":t.moduleInfo}})],1),e("div",{staticClass:"right"},[e("AreaVisitorProdCount",{attrs:{"module-info":t.moduleInfo}}),e("TermTodayVsCount",{attrs:{"module-info":t.moduleInfo}}),e("ServiceRunStatistics",{attrs:{"module-info":t.moduleInfo}})],1)])])},oe=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"top-bar"},[e("div",{staticClass:"left"}),e("div",{staticClass:"middle"}),e("div",{staticClass:"right"})])}],se=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/echart_bg_small.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v("待办事项")]),t.stackXData.length>0?e("EchartStackColumnar",{attrs:{"chart-id":"stack-chart-dbsw",title:t.stackTitle,"x-data":t.stackXData,"y-data":t.stackYData,"is-legend":!1,"legend-data":t.stackLegendData,left:"30",right:"30",top:"30",bottom:"30","x-unit":t.xunit,"y-unit":t.yunit,"xytext-style":t.textStyle,"bar-width":"8px","bar-gradient":t.barGradient,"x-label-formatter":t.xLabelFormatter,"tooltip-format":t.tooltipFormat,"split-line-color":t.splitLineColor}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"180px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)},le=[],ue={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",stackYData:[],stackXData:[],datevalue:[],stackLegendData:[],textStyle:{xcolor:"#fff",ycolor:"#72F9FE"},xunit:{name:"单位",align:"end",size:"12",lineColor:"#0C7CC5"},yunit:{name:"办文数量",align:"center",size:"12",postion:"left",lineColor:"#0C7CC5"},barGradient:{type:!0,color:[{offset:0,color:"#e04478"},{offset:.59,color:"#3d788e"},{offset:1,color:"#162474"}]},splitLineColor:["#969cc0","#6e77a8","#e0e2ec","#adb2ce"]}},created:function(){},mounted:function(){this.getTerminalData()},methods:{getTerminalData:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"/platStatistics/banwen/getCockpitTodoListStatistics"}).then((function(e){if("success"===e.code){var n=e.body.vo.props;console.log("resList",n),t.stackYData=n.xData[0],t.stackLegendData=n.xTypeName,t.stackXData=n.yData}}),(function(e){t.$message.error(e)}))},xLabelFormatter:function(t,e){return t.length>4&&(t=t.substr(0,4)+"..."),t}}},ce=ue,de=(n("03e7"),Object(g["a"])(ce,se,le,!1,null,"0b61aa2b",null)),he=de.exports,fe=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/echart_bg_big.png') repeat center / 100% 100%",padding:"25px 0 0 0"}},[e("p",{staticClass:"ititle"},[t._v("日访问量")]),e("div",{staticStyle:{height:"90%",width:"90%"}},[t.alldata.length>0?e("EchartDashboard",{attrs:{"chart-id":"day-visite-echart",alldata:t.alldata,"circle-center":t.circleCenter,"start-angles":t.startAngle}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},pe=[];function ge(t){return ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ge(t)}function me(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */me=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),s=new D(i||[]);return r(o,"_invoke",{value:T(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function v(){}function y(){}function A(){}var b={};u(b,o,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==n&&i.call(w,o)&&(b=w);var x=A.prototype=v.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,a,o,s){var l=d(t[r],t,a);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==ge(c)&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var a;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return a=a?a.then(r,r):r()}})}function T(e,n,i){var r=h;return function(a,o){if(r===p)throw Error("Generator is already running");if(r===g){if("throw"===a)throw o;return{value:t,done:!0}}for(i.method=a,i.arg=o;;){var s=i.delegate;if(s){var l=M(s,i);if(l){if(l===m)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var u=d(e,n,i);if("normal"===u.type){if(r=i.done?g:f,u.arg===m)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=g,i.method="throw",i.arg=u.arg)}}}function M(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var a=d(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(ge(e)+" is not iterable")}return y.prototype=A,r(x,"constructor",{value:A,configurable:!0}),r(A,"constructor",{value:y,configurable:!0}),y.displayName=u(A,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var o=new C(c(t,n,i,r),a);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(x),u(x,l,"Generator"),u(x,o,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=E,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:E(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}function ve(t,e,n,i,r,a,o){try{var s=t[a](o),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(i,r)}function ye(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){ve(a,i,r,o,s,"next",t)}function s(t){ve(a,i,r,o,s,"throw",t)}o(void 0)}))}}var Ae={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",circleCenter:[["13%","50%"],["50%","50%"],["87%","50%"]],alldata:[],startAngle:[],max:[]}},mounted:function(){var t=this;this.getTerminalData(),setInterval((function(){t.getTerminalData()}),6e4)},methods:{getTerminalData:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:this.moduleInfo.DayVisitsNum}).then(function(){var e=ye(me().mark((function e(n){var i,r;return me().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("success"!==n.code){e.next=8;break}return i={},e.next=4,t.$http({method:"post",url:"/gwgl/sysLogStatistics"}).then((function(t){"success"===t.code&&(console.log("resp",t),i=t.body)}));case 4:r=n.body.zxyhsMax,t.max=300*Math.ceil(r/300),t.alldata=[{value:Number(i.rywl),name:"日业务量",min:0,max:300*Math.ceil(Number(i.rywlMax)/300),splitNumber:4},{value:n.body.zxyhs,name:"在线用户数",min:0,max:t.max,splitNumber:4},{value:(n.body.pjzxsc/60).toFixed(2),name:"平均在线时长(时)",min:0,max:(n.body.pjzxsc/60).toFixed(2)>6?12:6,splitNumber:6}],t.alldata.forEach((function(e){var n=Math.pow(10,e.value.toString().length-1),i=e.value/n;t.startAngle.push(Math.ceil(i)*n),t.max.push(Math.ceil(e.value/n)*n<10?10:Math.ceil(e.value/n)*n)}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){t.$message.error(e)}))}}},be=Ae,_e=(n("7d29"),Object(g["a"])(be,fe,pe,!1,null,"13cf3391",null)),we=_e.exports,xe=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/echart_bg_big.png') repeat center / 100% 100%"}},[e("p",{staticClass:"ititle"},[t._v("近三月办文数量")]),e("div",{staticStyle:{height:"90%",width:"90%"}},[t.xdata.length>0?e("EchartColumnar",{attrs:{"data-zoom":t.dataZoom,"chart-id":"active-area",title:t.title,"chart-type":[{type:"bar",yAxisIndex:0},{type:"bar",yAxisIndex:0}],"x-data":t.xdata,"y-data":t.ydata,"y-unit":t.yunit,"x-unit":t.xunit,color:t.color,left:"0",right:"30",top:"30",bottom:"20","x-label-rotate":45,"xytext-style":t.textStyle,"bar-width":t.barWidth,"show-split-line":!1,"x-type-name":t.xTypeName,"x-chart-num":2,"is-legend":!0,"legend-data":t.stackLegendData,"legend-align":{location:"bottom",align:0}}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"180px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},Se=[],Ce={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{dataZoom:{type:"inside",minValueSpan:5,maxValueSpan:5},img:"./images/w-imgs/nomessage.png",barWidth:{type:!0,width:"20px"},textStyle:{xcolor:"#fff",ycolor:"#19ECFF"},title:{name:"",align:"center",size:"15",textStyle:{fontWeight:400}},dateArr:[],xdata:[],ydata:[],xunit:{name:"",align:"end",size:"12",lineColor:"#0C7CC5"},yunit:{name:"",align:"center",size:"12",lineColor:"#0C7CC5"},xTypeName:[],color:["#546EC6","#92CA79"]}},created:function(){this.dateChange()},methods:{initDate:function(){var t=new Date,e=new Date(t.getTime()-2592e6);return[e,t]},dateChange:function(){this.dateArr=this.initDate(),this.getStatData(this.dateArr[0],this.dateArr[1])},getStatData:function(t,e){var n=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"/platStatistics/banwen/getCockpitNumberOfDocumentsStatistics"}).then((function(t){if("success"===t.code){console.log("待办三个月内办文数量",t);var e=t.body.vo.props;n.xdata=e.xData[0],n.xTypeName=e.xTypeName,n.ydata=e.yData}else n.$message({message:t.message,type:"warning"})}),(function(t){n.$message.error(t)}))}}},Te=Ce,Me=(n("d2b7"),Object(g["a"])(Te,xe,Se,!1,null,"c4f8ce54",null)),ke=Me.exports,Le=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/echart_bg_small.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v("部门人数分布")]),e("div",{staticStyle:{height:"90%",width:"90%"}},[0!==Object.keys(t.option).length?e("bmrsfb",{attrs:{"chart-id":"bmrsfb_echart",option:t.option}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},De=[],Ee=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{width:"100%",height:"100%"},attrs:{id:t.chartId}})},Be=[],Ie=n("313e"),Oe={name:"Bmrsfb",props:{chartId:{type:String,default:function(){return"myCharts"}},option:{type:Object,default:function(){return{}}}},data:function(){return{myChart:null}},watch:{alldata:function(t){this.creatEcharts()}},created:function(){var t=this;window.addEventListener("resize",this.onresize),this.$bus.on("toggleClick",(function(){setTimeout((function(){t.$nextTick((function(){t.onresize()}))}),300)}))},beforeDestroy:function(){window.removeEventListener("resize",this.onresize),this.$bus.off("toggleClick",this.onresize)},mounted:function(){var t=this;this.creatEcharts(),setTimeout((function(){t.onresize()}),300)},methods:{creatEcharts:function(){var t=Ie["b"](document.getElementById(this.chartId)),e=this.option;t.setOption(e,!0),this.myChart=t},onresize:function(){null!==this.myChart&&this.myChart.resize()}}},Pe=Oe,Ne=Object(g["a"])(Pe,Ee,Be,!1,null,"48c35286",null),Fe=Ne.exports,Ue={components:{bmrsfb:Fe},props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",option:{}}},created:function(){this.dateChange()},methods:{formatDate:function(){var t=new Date,e=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0");return"".concat(e,"-").concat(n,"-").concat(i)},initDate30:function(){var t=new Date,e=new Date(t.getTime()-2592e6);return[e,t]},initDate365:function(){var t=new Date,e=new Date(t.getTime()-31536e6);return[e,t]},dateChange:function(){this.getStatData()},getStatData:function(t,e){var n=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"rsgl/tjfx/getrRstj?type=1"}).then((function(t){if("success"===t.code){var e=t.body.json;n.getOption(e)}else n.$message({message:t.message,type:"warning"})}),(function(t){n.$message.error(t)}))},getOption:function(t){var e=this;this.option={title:{},tooltip:{trigger:"axis",backgroundColor:"rgba(255, 255, 255)",axisPointer:{lineStyle:{opacity:.2}}},legend:{bottom:"bottom",show:!1,data:["部门人数"]},radar:[{indicator:[],center:["50%","55%"],radius:"50%",axisLine:{show:!1},splitArea:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(30, 65, 124, 1)"}}}],series:[{type:"radar",tooltip:{trigger:"item"},areaStyle:{},color:"#5AD8A6",data:[{value:[],name:"部门人数"}]}]};var n=Object.keys(t.map);n.forEach((function(n,i){"合计"!==n&&i<8&&(e.option.radar[0].indicator.push({text:n}),e.option.series[0].data[0].value.push(t.map[n]["合计"]))}))}}},Re=Ue,je=(n("92ae"),Object(g["a"])(Re,Le,De,!1,null,"463eb39a",null)),He=je.exports,Ye=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/echart_bg_small.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v("办理情况")]),t.xdata.length>0?e("EchartColumnar",{attrs:{"chart-id":"month-date","chart-type":[{type:"line",yAxisIndex:0},{type:"line",yAxisIndex:0}],"x-chart-num":2,"x-data":t.xdata,"y-data":t.ydata,"y-unit":t.yunit,"x-unit":t.xunit,left:"50",right:"50",top:"60",bottom:"20","xytext-style":t.textStyle,"is-legend":!0,"legend-align":{location:"bottom",align:0},"legend-icon":"rect",color:t.colorArr,smooth:!1,"show-split-line":!1,"tooltip-format":t.tooltipFormat,"x-type-name":t.xTypeName}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"180px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)},ze=[],Qe={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",textStyle:{xcolor:"#72F9FE",ycolor:"#fff"},colorArr:["#FB4671","#2CB0FF","#1E90FF"],title:{name:"",align:"center",size:"15",textStyle:{fontWeight:400}},xdata:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],ydata:[["100.00","98.94","97.06","93.75","94.81","93.50","0.00","0.00","0.00","0.00","0.00","0.00"],["0.00","0.00","0.00","0.00","1.91","0.00","0.00","0.00","0.00","0.00","0.00","0.00"]],xunit:{name:"",align:"end",size:"12",lineColor:"#0C7CC5"},yunit:{name:"",align:"center",size:"12",lineColor:"#0C7CC5"},xTypeName:[{icon:"circle",name:"待办办结率"},{icon:"circle",name:"办理超期率"}]}},created:function(){this.getDate()},methods:{tooltipFormat:function(t){return t},getDate:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:this.moduleInfo.blqk}).then((function(e){"success"===e.code&&(console.log(119,e),t.xdata=e.body.vo.props.xData[0],t.ydata=e.body.vo.props.yData,t.xTypeName=e.body.vo.props.xTypeName)}),(function(e){t.$message.error(e)}))}}},Ve=Qe,We=(n("bdc9"),Object(g["a"])(Ve,Ye,ze,!1,null,"7ef1b8f4",null)),Ge=We.exports,Ke=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/echart_bg_small.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v(" 督办分析 ")]),e("div",{staticStyle:{height:"90%",width:"90%"}},[e("div",{staticClass:"top"},[e("div",{staticClass:"top_content"},[e("div",{staticClass:"num"},[t._v(t._s(t.data[0].count))]),e("div",{staticClass:"content"},[t._v(t._s(t.data[0].subject))])]),e("div",{staticClass:"top_content"},[e("div",{staticClass:"num"},[t._v(t._s(t.data[1].count))]),e("div",{staticClass:"content"},[t._v(t._s(t.data[1].subject))])]),e("div",{staticClass:"top_content"},[e("div",{staticClass:"num"},[t._v(t._s(t.data[2].count))]),e("div",{staticClass:"content"},[t._v(t._s(t.data[2].subject))])])]),e("div",{staticClass:"footer"},[e("div",{staticClass:"footer_content"},[e("div",{staticClass:"num"},[t._v(t._s(t.data[3].count))]),e("div",{staticClass:"title"},[t._v(t._s(t.data[3].subject))])]),e("div",{staticClass:"footer_content"},[e("div",{staticClass:"num"},[t._v(t._s(t.data[4].count))]),e("div",{staticClass:"title"},[t._v(t._s(t.data[4].subject))])]),e("div",{staticClass:"footer_content"},[e("div",{staticClass:"num"},[t._v(t._s(t.data[5].count))]),e("div",{staticClass:"title"},[t._v(t._s(t.data[5].subject))])]),e("div",{staticClass:"footer_content"},[e("div",{staticClass:"num"},[t._v(t._s(t.data[6].count))]),e("div",{staticClass:"title"},[t._v(t._s(t.data[6].subject))])])])])])},$e=[],qe={components:{},props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{data:[]}},created:function(){this.getData()},methods:{getData:function(){var t=this;this.$http({method:"post",url:"/dbgl/dbglStatistics/statictis/getCockpitSupervisoryAnalysisStatistics"}).then((function(e){"success"===e.code&&(console.log(e),t.data=e.body.data)}))}}},Xe=qe,Je=(n("0dc1"),Object(g["a"])(Xe,Ke,$e,!1,null,"79a91d08",null)),Ze=Je.exports,tn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/echart_bg_small.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v(" 运行服务成功率 ")]),t.chartData.length>0?e("div",{staticClass:"box",staticStyle:{height:"90%",width:"90%"}},[e("div",{staticClass:"info"},[e("p",{staticClass:"title"},[e("span",[t._v("服务运行总数:")]),t._v(t._s(t.total))]),e("p",{staticClass:"title"},[e("span",[t._v("服务运行成功数:")]),t._v(t._s(t.successNum))]),e("p",{staticClass:"title"},[e("span",[t._v("服务运行失败数:")]),t._v(t._s(t.exceptionNum))])]),t.chartData.length>0?e("EchartAnnular",{attrs:{"chart-id":"servuce-success",alldata:t.chartData,radius:["40%","50%"],color:t.colorArr,formatter:"{b}:{d}%","is-label":!1,"legend-left":"left","legend-top":"middle","legend-icon":"circle","legend-orient":"vertical",title:t.titleName,"label-align":"top","circle-center":["50%","50%"],"text-color":"#fff","graphic-text":t.graphicText,"graphic-left":"center","graphic-top":"middle","graphic-color":"#fff"}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1):t._e()])},en=[],nn={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",chartData:[],legendTextStyle:{color:"#72F9FE",fontSize:"14px"},titleName:{name:"",align:"middle",size:"15",textStyle:{fontWeight:400}},colorArr:["#FAC920","#0A0D59"],graphicText:"",total:0,exceptionNum:0,successNum:0}},created:function(){this.getStatData()},methods:{getStatData:function(){var t=this,e=new Date,n=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0"),a=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),s=String(e.getSeconds()).padStart(2,"0"),l=n+"-"+i+"-"+r+" "+a+":"+o+":"+s;this.$http({method:"post",url:"/platStatistics/BusinessOpen/getServiceRunStatistics?serviceName=&startTime=2022-06-01 00:00:00&endTime=".concat(l)}).then((function(e){if("success"===e.code){console.log(e);var n=0,i=0,r=0;e.body.listdata.forEach((function(t){n+=t.successNum,i+=t.exceptionNum,r+=t.total})),t.total=r,t.exceptionNum=i,t.successNum=n;var a=[{name:"服务运行成功数",num:n},{name:"服务运行失败数",num:i}],o=[];a.forEach((function(t,e){o.push({name:t.name,value:t.num})})),t.chartData=o,t.graphicText=(100*(n/r).toFixed(4)).toFixed(2)+"%"}}))}}},rn=nn,an=(n("b177"),Object(g["a"])(rn,tn,en,!1,null,"7cdb9555",null)),on=an.exports,sn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/echart_bg_big.png') repeat center / 100% 100%"}},[e("p",{staticClass:"ititle"},[t._v(" 员工画像 ")]),e("div",{staticClass:"box",staticStyle:{height:"90%",width:"90%"}},[e("gl",{attrs:{"module-info":t.moduleInfo}}),e("nl",{attrs:{"module-info":t.moduleInfo}}),e("xl",{attrs:{"module-info":t.moduleInfo}})],1)])},ln=[],un=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item_s"},[e("EchartStackColumnar",{attrs:{"chart-id":"stack-chart-ban",title:t.stackTitle,"x-data":t.stackXData,"y-data":t.stackYData,"is-legend":!0,"legend-data":t.stackLegendData,left:"10",right:"10",top:"27",bottom:"30","x-unit":t.xunit,"y-unit":t.yunit,"xytext-style":t.textStyle,"bar-width":"15px","bar-gradient":t.barGradient,"x-label-formatter":t.xLabelFormatter,color:t.color,"series-label-show":t.seriesLabelShow,"split-line-color":t.splitLineColor}}),e("p",{staticClass:"ititle"},[t._v("年龄")])],1)},cn=[],dn={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",stackYData:["18-25岁","26-30岁","30-45岁","45-50岁","50岁以上"],stackXData:[[333,46,55,2,10]],datevalue:[],stackLegendData:[{icon:"rect",name:"员工人数",textStyle:{color:"#8592A6",fontSize:"12px"}}],textStyle:{xcolor:"#fff",ycolor:"#19ECFF"},xunit:{align:"end",size:"12",lineColor:"#ffffff"},yunit:{align:"center",size:"12",postion:"left",lineColor:"#0669b5"},barGradient:{type:!1,color:[{offset:0,color:"rgba(88, 150, 252, 0.2)"},{offset:.5,color:"rgba(88, 150, 252, 0.67)"},{offset:1,color:"rgba(251, 70, 113, 0.9)"}]},color:"#09c9c5",seriesLabelShow:!1,splitLineColor:["#969cc0","#6e77a8","#e0e2ec","#adb2ce"]}},created:function(){},mounted:function(){this.getTerminalData()},methods:{getTerminalData:function(){var t=this;this.$http({method:"GET",contentType:"application/x-www-form-urlencoded",url:"rsgl/tjfx/getAgeStatistic"}).then((function(e){if("success"===e.code){var n=e.body.vo.props;t.stackYData=n.xData[0],t.stackXData=n.yData}}),(function(e){t.$message.error(e)}))},xLabelFormatter:function(t,e){return t}}},hn=dn,fn=(n("2ac1"),Object(g["a"])(hn,un,cn,!1,null,"2d171a31",null)),pn=fn.exports,gn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item_s"},[e("EchartAnnular",{attrs:{"chart-id":"gl_xl",alldata:t.alldata,radius:t.radius,color:t.colorpie,formatter:t.formatter,"is-label":t.isLabel,"is-label-line":t.isLabelLine,"is-legend":t.isLegend,"legend-left":t.legendLeft,"legend-top":t.legendTop,"legend-icon":t.legendIcon,"legend-orient":t.legendOrient,title:t.title,"label-align":t.labelAlign,"circle-center":t.circleCenter,"legend-formatter":t.legendFormatter,"label-formatter":t.labelFormatter,"label-text-style-text-color":t.textColor,"legend-text-style":t.legendTextStyle,margin:t.margin,"graphic-text":t.graphicText,"graphic-left":t.graphicLeft,"graphic-top":t.graphicTop,"legend-type":t.legendType,"legend-page-icon":t.legendPageIcon,"legend-page-text-style":t.legendPageTextStyle}}),e("div",{staticClass:"heji"},[e("div",{staticStyle:{"font-size":"12px",color:"#d1d4e3"}},[t._v("合计")]),e("div",{staticStyle:{"font-size":"20px"}},[t._v(t._s(t.numHeji))])]),e("p",{staticClass:"ititle"},[t._v("学历")])],1)},mn=[];function vn(t){return vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(t)}function yn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */yn=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),s=new D(i||[]);return r(o,"_invoke",{value:T(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function v(){}function y(){}function A(){}var b={};u(b,o,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==n&&i.call(w,o)&&(b=w);var x=A.prototype=v.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,a,o,s){var l=d(t[r],t,a);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==vn(c)&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var a;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return a=a?a.then(r,r):r()}})}function T(e,n,i){var r=h;return function(a,o){if(r===p)throw Error("Generator is already running");if(r===g){if("throw"===a)throw o;return{value:t,done:!0}}for(i.method=a,i.arg=o;;){var s=i.delegate;if(s){var l=M(s,i);if(l){if(l===m)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var u=d(e,n,i);if("normal"===u.type){if(r=i.done?g:f,u.arg===m)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=g,i.method="throw",i.arg=u.arg)}}}function M(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var a=d(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(vn(e)+" is not iterable")}return y.prototype=A,r(x,"constructor",{value:A,configurable:!0}),r(A,"constructor",{value:y,configurable:!0}),y.displayName=u(A,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var o=new C(c(t,n,i,r),a);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(x),u(x,l,"Generator"),u(x,o,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=E,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:E(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}function An(t,e,n,i,r,a,o){try{var s=t[a](o),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(i,r)}function bn(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){An(a,i,r,o,s,"next",t)}function s(t){An(a,i,r,o,s,"throw",t)}o(void 0)}))}}var _n={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",alldata:[],radius:["30%","50%"],colorpie:[],formatter:"{b}: {c}</br>{d}%",isLabel:!0,isLabelLine:!0,legendLeft:"center",legendTop:"bottom",legendOrient:"horizontal",labelAlign:"outside",circleCenter:["50%","50%"],textColor:"#FFFFFF",legendTextStyle:{color:"#8592a6",fontSize:"12px"},treemapColor:[],treeData:[],margin:{top:10,right:"2%",bottom:20,left:"2%"},graphicText:"",graphicType:"text",graphicLeft:"center",graphicTop:"middle",graphicColor:"#16cbe7",graphicFontSize:24,title:"工龄",isLegend:!0,legendIcon:"rect",legendType:"scroll",numHeji:0,legendPageIcon:{legendPageIconColor:"#8592A6",legendPageIconInactiveColor:"#8592A6"},legendPageTextStyle:{color:"#ffffff"}}},created:function(){},mounted:function(){this.getTerminalData()},methods:{formatDate:function(){var t=new Date,e=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0");return"".concat(e,"-").concat(n,"-").concat(i)},getTerminalData:function(){var t=this;return bn(yn().mark((function e(){return yn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$http({method:"get",contentType:"application/x-www-form-urlencoded",url:"rsgl/tjfx/getEducationStatistics"}).then((function(e){if("success"===e.code){var n=0;e.body.vo.props.alldata.forEach((function(t){t.value=Number(t.value),n+=t.value})),t.numHeji=n,t.alldata=e.body.vo.props.alldata}}),(function(e){t.$message.error(e)}));case 1:case"end":return e.stop()}}),e)})))()},legendFormatter:function(t){return t},labelFormatter:function(t){return t.percent+"%"}}},wn=_n,xn=(n("1830"),Object(g["a"])(wn,gn,mn,!1,null,"eb9bd830",null)),Sn=xn.exports,Cn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item_s"},[t.isShow?e("EchartAnnular",{attrs:{"chart-id":"gl_gl",alldata:t.alldata,radius:t.radius,color:t.colorpie,formatter:t.formatter,"is-label":t.isLabel,"is-label-line":t.isLabelLine,"is-legend":t.isLegend,"legend-left":t.legendLeft,"legend-top":t.legendTop,"legend-icon":t.legendIcon,"legend-orient":t.legendOrient,title:t.title,"label-align":t.labelAlign,"circle-center":t.circleCenter,"legend-formatter":t.legendFormatter,"label-formatter":t.labelFormatter,"label-text-style-text-color":t.textColor,"legend-text-style":t.legendTextStyle,margin:t.margin,"graphic-text":t.graphicText,"graphic-left":t.graphicLeft,"graphic-top":t.graphicTop,"legend-type":t.legendType,"legend-page-icon":t.legendPageIcon,"legend-page-text-style":t.legendPageTextStyle}}):t._e(),e("p",{staticClass:"ititle"},[t._v("工龄")])],1)},Tn=[];function Mn(t){return Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(t)}function kn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */kn=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),s=new D(i||[]);return r(o,"_invoke",{value:T(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function v(){}function y(){}function A(){}var b={};u(b,o,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==n&&i.call(w,o)&&(b=w);var x=A.prototype=v.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,a,o,s){var l=d(t[r],t,a);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==Mn(c)&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var a;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return a=a?a.then(r,r):r()}})}function T(e,n,i){var r=h;return function(a,o){if(r===p)throw Error("Generator is already running");if(r===g){if("throw"===a)throw o;return{value:t,done:!0}}for(i.method=a,i.arg=o;;){var s=i.delegate;if(s){var l=M(s,i);if(l){if(l===m)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var u=d(e,n,i);if("normal"===u.type){if(r=i.done?g:f,u.arg===m)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=g,i.method="throw",i.arg=u.arg)}}}function M(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var a=d(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(Mn(e)+" is not iterable")}return y.prototype=A,r(x,"constructor",{value:A,configurable:!0}),r(A,"constructor",{value:y,configurable:!0}),y.displayName=u(A,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var o=new C(c(t,n,i,r),a);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(x),u(x,l,"Generator"),u(x,o,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=E,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:E(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}function Ln(t,e,n,i,r,a,o){try{var s=t[a](o),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(i,r)}function Dn(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){Ln(a,i,r,o,s,"next",t)}function s(t){Ln(a,i,r,o,s,"throw",t)}o(void 0)}))}}var En={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{isShow:!1,img:"./images/w-imgs/nomessage.png",alldata:[{value:0,name:"1年以下"},{value:0,name:"1年-3年"},{value:0,name:"3年-5年"},{value:0,name:"5年-10年"},{value:0,name:"10年以上"}],radius:["0","50%"],colorpie:[],formatter:"{b}: {c}</br>{d}%",isLabel:!0,isLabelLine:!0,legendLeft:"center",legendTop:"bottom",legendOrient:"horizontal",labelAlign:"outside",circleCenter:["50%","50%"],textColor:"#FFFFFF",legendTextStyle:{color:"#8592a6",fontSize:"12px"},margin:{top:10,right:"2%",bottom:20,left:"2%"},graphicText:"",graphicType:"text",graphicLeft:"center",graphicTop:"middle",graphicColor:"#16cbe7",graphicFontSize:24,title:"工龄",isLegend:!0,legendIcon:"rect",legendType:"scroll",legendPageIcon:{legendPageIconColor:"#8592A6",legendPageIconInactiveColor:"#8592A6"},legendPageTextStyle:{color:"#ffffff"}}},created:function(){},mounted:function(){this.getTerminalData()},methods:{formatDate:function(){var t=new Date,e=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0");return"".concat(e,"-").concat(n,"-").concat(i)},getTerminalData:function(){var t=this;return Dn(kn().mark((function e(){var n;return kn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.formatDate();case 2:n=e.sent,t.$http({method:"GET",contentType:"application/x-www-form-urlencoded",url:"rsgl/tjfx/getSlStatistic?date="+n}).then((function(e){if("success"===e.code){for(var n=e.body.list,i=t.alldata,r=0;r<n.length;r++){var a=n[r],o=function(t){if("DEPARTMENT"!==t&&"TJORG_ID"!==t&&"合计"!==t){var e=i.findIndex((function(e){return e.name===t}));-1!==e&&(i[e].value=Number(Number(i[e].value)+a[t]))}};for(var s in a)o(s)}console.log("工龄",i),t.alldata=i,t.isShow=!0}}),(function(e){t.$message.error(e)}));case 4:case"end":return e.stop()}}),e)})))()},legendFormatter:function(t){return t},labelFormatter:function(t){return t.percent+"%"}}},Bn=En,In=(n("0c5f"),Object(g["a"])(Bn,Cn,Tn,!1,null,"3533d6b3",null)),On=In.exports,Pn={components:{nl:pn,xl:Sn,gl:On},props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{}},created:function(){},methods:{}},Nn=Pn,Fn=(n("6719"),Object(g["a"])(Nn,sn,ln,!1,null,"b77cfa44",null)),Un=Fn.exports,Rn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item",staticStyle:{width:"100%",background:"url('./images/w-imgs/cockpit/echart_bg_small.png') no-repeat","background-size":"100% 100%"}},[e("p",{staticClass:"ititle"},[t._v(" 系统访问分布 ")]),e("div",{staticClass:"box",staticStyle:{height:"90%",width:"90%"}},[t.chartData.length>0?e("EchartAnnular",{attrs:{"chart-id":"sys-visit2",alldata:t.chartData,radius:["10%","60%"],color:t.colorArr,formatter:t.formatter,"is-label":!0,"is-label-line":!0,"is-legend":!0,"legend-left":"left","legend-top":"middle","legend-icon":"rect","legend-orient":"vertical","circle-center":["65%","50%"],"text-color":"#fff","legend-text-style":t.legendTextStyle,"label-formatter":t.labelFormatter,"legend-formatter":t.legendFormatter,"rose-type":"area","border-radius":3,"label-line-height":30,"label-line-length":{length1:10,length2:10},"align-to":t.alignTo,"label-text-style-text-color":t.textColor,"label-align":"outside"}}):e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.img}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无数据")])])],1)])},jn=[],Hn={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",chartData:[],legendTextStyle:{color:"#ffffff",fontSize:"12px"},textColor:"#ffffff",colorArr:["#379DD5","#FFBD00","#FF761B","#91BD3C","#2873C4","#AD4200","#636363","#A27100","#134578","#A5A5A5"],alignTo:"labelLine",formatter:"{b}:{d}%"}},created:function(){var t=new Date,e=new Date(t.getTime()-2592e6);this.datevalue=[this.getDateStr(e),this.getDateStr(t)],this.getStatData()},methods:{formatDate:function(t){return t<10?"0"+t:t},getDateStr:function(t){if(t){var e=t.getFullYear(),n=this.formatDate(t.getMonth()+1),i=this.formatDate(t.getDate()),r=e+"-"+n+"-"+i;return r}},getStatData:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"/platStatistics/BusinessOpen/getCockpitSystemAccessDistributionStatistics"}).then((function(e){if("success"===e.code){var n=e.body.vo.props.alldata;n.forEach((function(t){t.value=Number(t.value)})),t.chartData=n}else t.$message({message:e.message,type:"warning"})}),(function(e){t.$message.error(e)}))},legendFormatter:function(t){return t},labelFormatter:function(t){return t.percent+"%"}}},Yn=Hn,zn=(n("6dad"),Object(g["a"])(Yn,Rn,jn,!1,null,"e541d240",null)),Qn=zn.exports,Vn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item"},[e("div",{staticClass:"gw_data"},[e("div",{staticClass:"count"},[t._v(t._s(t.dataList[0].count))]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[0].subject))])]),e("div",{staticClass:"topBar_border"}),e("div",{staticClass:"gw_data"},[e("div",{staticClass:"count"},[t._v(t._s(t.dataList[1].count))]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[1].subject))])]),e("div",{staticClass:"topBar_border"}),e("div",{staticClass:"gw_data"},[e("div",{staticClass:"commission count"},[t._v(t._s(t.dataList[2].count))]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[2].subject))])]),e("div",{staticClass:"topBar_border"}),e("div",{staticClass:"gw_data"},[e("div",{staticClass:"count"},[t._v(t._s(t.dataList[3].count)),e("span",{staticStyle:{"font-size":"14px"}},[t._v("%")])]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[3].subject))])])])},Wn=[],Gn={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",option:{},dataList:[{count:0,subject:"督办件数"},{count:0,subject:"已完成"},{count:0,subject:"待办"},{count:0,subject:"完成率"},{count:0,subject:"公文办结率"}]}},created:function(){this.dateChange()},methods:{initDate30:function(){var t=new Date,e=new Date(t.getTime()-2592e6);return[e,t]},initDate365:function(){var t=new Date,e=new Date(t.getTime()-31536e6);return[e,t]},dateChange:function(){this.getStatData()},getStatData:function(t,e){var n=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"/dbgl/dbglStatistics/statictis/getCockpitDBStatistics"}).then((function(t){"success"===t.code?(n.dataList=t.body.data,console.log(n.dataList,"this.dataList")):n.$message({message:t.message,type:"warning"})}),(function(t){n.$message.error(t)})),this.getOption()},getOption:function(){}}},Kn=Gn,$n=(n("ba75"),Object(g["a"])(Kn,Vn,Wn,!1,null,"006c2a84",null)),qn=$n.exports,Xn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item"},[e("div",{staticClass:"gw_data"},[e("div",{staticClass:"count"},[t._v(t._s(t.dataList[0].count))]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[0].subject))])]),e("div",{staticClass:"topBar_border"}),e("div",{staticClass:"gw_data"},[e("div",{staticClass:"count"},[t._v(t._s(t.dataList[1].count))]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[1].subject))])]),e("div",{staticClass:"topBar_border"}),e("div",{staticClass:"gw_data"},[e("div",{staticClass:"commission count"},[t._v(t._s(t.dataList[2].count))]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[2].subject))])]),e("div",{staticClass:"topBar_border"}),e("div",{staticClass:"gw_data"},[e("div",{staticClass:"count"},[t._v(t._s(t.dataList[3].count)),e("span",{staticStyle:{"font-size":"14px"}},[t._v("%")])]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[3].subject))])])])},Jn=[],Zn={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",option:{},dataList:[{count:0,subject:"公文数量"},{count:0,subject:"已办结"},{count:0,subject:"待办"},{count:0,subject:"公文办结率"},{count:0,subject:"公文办结率"}]}},created:function(){this.dateChange()},methods:{initDate30:function(){var t=new Date,e=new Date(t.getTime()-2592e6);return[e,t]},initDate365:function(){var t=new Date,e=new Date(t.getTime()-31536e6);return[e,t]},dateChange:function(){this.getStatData()},getStatData:function(t,e){var n=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"/platStatistics/banwen/getCockpitGWStatistics"}).then((function(t){"success"===t.code?(n.dataList=t.body.data,console.log(n.dataList,"this.dataList")):n.$message({message:t.message,type:"warning"})}),(function(t){n.$message.error(t)})),this.getOption()},getOption:function(){}}},ti=Zn,ei=(n("148b"),Object(g["a"])(ti,Xn,Jn,!1,null,"4dd8ee11",null)),ni=ei.exports,ii=function(){var t=this,e=t._self._c;return e("div",{staticClass:"item"},[e("div",{staticClass:"gw_data"},[e("div",{staticClass:"count"},[t._v(t._s(t.dataList[0].count))]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[0].subject))])]),e("div",{staticClass:"topBar_border"}),e("div",{staticClass:"gw_data"},[e("div",{staticClass:"commission count"},[t._v(t._s(t.dataList[1].count))]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[1].subject))])]),e("div",{staticClass:"topBar_border"}),e("div",{staticClass:"gw_data"},[e("div",{staticClass:"commission count"},[t._v(t._s(t.dataList[2].count))]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[2].subject))])]),e("div",{staticClass:"topBar_border"}),e("div",{staticClass:"gw_data"},[e("div",{staticClass:"count"},[t._v(t._s(t.dataList[3].count)),e("span",{staticStyle:{"font-size":"14px"}},[t._v("岁")])]),e("div",{staticClass:"gw_title"},[t._v(t._s(t.dataList[3].subject))])])])},ri=[],ai={props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{img:"./images/w-imgs/nomessage.png",option:{},dataList:[{count:0,subject:"在职人数"},{count:0,subject:"待入职"},{count:0,subject:"待转正"},{count:0,subject:"平均年龄"},{count:0,subject:"公文办结率"}]}},created:function(){this.dateChange()},methods:{initDate30:function(){var t=new Date,e=new Date(t.getTime()-2592e6);return[e,t]},initDate365:function(){var t=new Date,e=new Date(t.getTime()-31536e6);return[e,t]},dateChange:function(){this.getStatData()},getStatData:function(t,e){var n=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"/rsgl/archiveInfo/getCockpitRSStatistics"}).then((function(t){"success"===t.code?(n.dataList=t.body.data,console.log(n.dataList,"this.dataList")):n.$message({message:t.message,type:"warning"})}),(function(t){n.$message.error(t)})),this.getOption()},getOption:function(){}}},oi=ai,si=(n("115a"),Object(g["a"])(oi,ii,ri,!1,null,"34a3ca80",null)),li=si.exports,ui={components:{TermTodayVsCount:Qn,MonthDate:Un,dbsw:he,DayVisitsNumber:we,AreasActive:ke,bmrsfb:He,blqk:Ge,AreaVisitorProdCount:Ze,ServiceRunStatistics:on,db:qn,gw:ni,rs:li},props:{moduleInfo:{type:Object,default:function(){return{}}}},data:function(){return{}},mounted:function(){}},ci=ui,di=(n("dca3"),Object(g["a"])(ci,ae,oe,!1,null,"42d38e3a",null)),hi=di.exports,fi={name:"Cockpit1",components:{CockpitIndex:re,CockpitItem:hi},data:function(){return{title:"运营管理驾驶舱",moduleInfo:{item_height:260,item_width_short:460,item_width_long:770,businessOpenUrl:"/platStatistics/BusinessOpen/getOrgOpenDistribute",areasActiveUrl:"/platStatistics/BusinessOpen/getRegionalActivityRate",RegisterUserUrl:"/platStatistics/BusinessOpen/getOrgOpenTrend",BanwenCompany:"/platStatistics/banwen/getBanwenByCompany",AreasVisitorProdCountUrl:"/platStatistics/platVisit/getPlatAreaVisitorProdCount",PlatTermTodayVsCount:"/platStatistics/platVisit/getPlatTermTodayVsCount",DayVisitsNum:"/platStatistics/doneAndtodo/getMainSysSetup",listdataDone:[],listNumber:[],onlinenumber:"",listBanwen:[],listdataFile:[],Bmrsfb:"",dbsw:"",blqk:"/platStatistics/banwen/getCockpitHandlingSituationStatistics"}}},created:function(){this.getDate()},mounted:function(){document.title="运营管理驾驶舱"},methods:{getDate:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:this.moduleInfo.DayVisitsNum}).then((function(e){"success"===e.code&&(t.moduleInfo.listdataDone=e.body.listdataDone,t.moduleInfo.listNumber=e.body.listNumber,t.moduleInfo.onlinenumber=e.body.onlinenumber,t.moduleInfo.listBanwen=e.body.listBanwen,t.moduleInfo.listdataFile=e.body.listdataFile)}),(function(e){t.$message.error(e)}))}}},pi=fi,gi=(n("2daf"),Object(g["a"])(pi,Xt,Jt,!1,null,"376ba417",null)),mi=gi.exports,vi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"simulateLeft"},["simulate"===t.pageType?e("div",[e("div",{staticClass:"leftTitle"},[t._v("场景基本信息")]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("场景名称")]),e("div",[t._v(t._s(t.scene.name||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("场景类型")]),e("div",[t._v(t._s(t.changeType(t.scene.type)||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("创建人")]),e("div",[t._v(t._s(t.scene.createName||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("创建时间")]),e("div",[t._v(t._s(t.scene.createTime||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("更新时间")]),e("div",[t._v(t._s(t.scene.updateTime||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("场景状态")]),e("div",[t._v(t._s(t.changeStatus(t.scene.status)||null))])]),e("div",{staticClass:"separate"}),e("div",{staticClass:"leftTitle"},[t._v("模拟测试信息")]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("测试时长")]),e("div",{staticStyle:{color:"#48BA79"}},[t._v(t._s(t.changeTime(t.time)||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("回合数")]),e("div",{staticStyle:{color:"#48BA79"}},[t._v(t._s(t.bout||0))])])]):"log"===t.pageType?e("div",{staticClass:"log"},[e("div",{staticClass:"leftTitle"},[t._v("用户信息")]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("用户姓名")]),e("div",[t._v(t._s(t.logVo.userName||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("部门")]),e("div",[t._v(t._s(t.logVo.userDept||null))])]),e("div",{staticClass:"separate"}),e("div",{staticClass:"leftTitle"},[t._v("交互信息")]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("交互时长")]),e("div",{staticStyle:{color:"#48BA79"}},[t._v(t._s(t.logVo.interactiveTime||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("开始时间")]),e("div",[t._v(t._s(t.logVo.startTime||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("结束时间")]),e("div",[t._v(t._s(t.logVo.endTime||null))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("回合数")]),e("div",[t._v(t._s(t.logVo.roundNumber||0))])]),e("div",{staticClass:"itemInfo"},[e("div",[t._v("全局话术量")]),e("div",[t._v(t._s(t.logVo.speakNumber||0))])])]):t._e()])},yi=[],Ai=n("c1df"),bi={name:"ConversationSimulateLeft",components:{},props:{scene:{type:Object,default:function(){return{}}},logVo:{type:Object,default:function(){return{}}},bout:{type:Number,default:function(){return 0}}},data:function(){return{pageType:"",time:0}},computed:{changeType:function(){return function(t){switch(t){case 0:return"快速打开";case 1:return"沟通协作";case 2:return"查找信息";case 3:return"业务处理";case 6:return"查找日程";case 10:return"查找任务安排"}}},changeStatus:function(){return function(t){switch(t){case 0:return"草稿";case 1:return"已上线";case 2:return"已下线"}}},changeTime:function(){return function(t){return Ai.utc(t).format("HH:mm:ss")}}},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){var t=this;this.pageType=this.$route.query.pageType,"simulate"===this.pageType&&setInterval((function(){t.time+=1e3}),1e3)},methods:{}},_i=bi,wi=(n("2099"),Object(g["a"])(_i,vi,yi,!1,null,"5ab2a02e",null)),xi=wi.exports,Si=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pageOuter"},[e("div",{staticClass:"rightTitle"},[e("div",[t._v(t._s("simulate"===t.pageType?"场景模拟器":"交互详情"))])]),"simulate"===t.pageType?e("div",{staticClass:"simulateRight"},[e("div",{staticClass:"chatContent"},[e("div",{staticClass:"chatListBox"},[e("div",[e("img",{attrs:{src:t.xiaoyiPng,alt:"",width:"40px",height:"40px"}})]),e("div",{staticClass:"chatItemContent2"},[e("div",[t._v("您可以这样命令我:")]),e("div",{staticStyle:{color:"#0000ff","padding-left":"10px"}},[t._v(t._s(t.hintText))]),e("div",{staticStyle:{float:"right"}},[t._v("(点击"),e("span",{staticStyle:{color:"#0000ff",cursor:"pointer"},on:{click:t.changeHint}},[t._v("换一换")]),t._v(")")])])]),t._l(t.chatList,(function(n,i){return e("div",{key:i,staticClass:"chatListBox",style:{flexDirection:2===n.type?"":"row-reverse"}},[e("div",[2===n.type?e("el-avatar",{attrs:{src:t.xiaoyiPng,alt:""}}):1===n.type?e("el-avatar",{attrs:{size:40,src:t.base_api+"/base/user/download?id="+t.loginUser.userId+"&dataField=photoData&nameField=photoName&productCode=ecyoa"}},[e("img",{attrs:{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"}})]):t._e()],1),e("div",{class:2===n.type?"chatItemContent2":"chatItemContent1"},[n.content?e("div",{staticStyle:{"line-height":"30px"}},[t._v(t._s(n.content))]):n.content||0!==n.resultType?n.content||2!==n.resultType?t._e():e("div",t._l(n.listdata,(function(i,r){return e("div",{key:i.id,staticClass:"searchItem",class:r===n.listdata.length-1?"notLine":"hadLine"},[e("div",{staticStyle:{"margin-right":"10px","text-align":"center"}},[e("div",{staticClass:"headPortrait",style:{background:t.initPhoto(i.name.substr(0,1))}},[t._v(t._s(i.name.substr(0,1)))]),e("div",{staticStyle:{color:"#303133"}},[t._v(t._s(i.name))])]),e("div",{staticClass:"searchInfoMsg"},[i.mobile?e("div",[e("svg-icon",{staticStyle:{width:"15px",height:"15px"},attrs:{"icon-class":"voice_sj"}}),e("span",[t._v(t._s(i.mobile))])],1):t._e(),i.email?e("div",[e("svg-icon",{staticStyle:{width:"15px",height:"15px"},attrs:{"icon-class":"voice_email"}}),e("span",[t._v(t._s(i.email))])],1):t._e(),i.orgFullName?e("div",[e("svg-icon",{staticStyle:{width:"15px",height:"15px"},attrs:{"icon-class":"voice_dept"}}),e("span",[t._v(t._s(i.orgFullName.split("-")[1]))])],1):t._e(),i.shortTel?e("div",[e("svg-icon",{staticStyle:{width:"15px",height:"15px"},attrs:{"icon-class":"voice_dh"}}),e("span",[t._v(t._s(i.shortTel))])],1):t._e()])])})),0):e("div"),n.content||6!==n.resultType?t._e():e("div",t._l(n.listdata,(function(i,r){return e("div",{key:i.id,staticClass:"searchItem",class:r===n.listdata.length-1?"notLine":"hadLine"},[e("div",{staticClass:"searchInfoMsg2"},[i.title?e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("svg-icon",{staticStyle:{width:"25px",height:"20px"},attrs:{"icon-class":"ksgl_index2"}}),e("span",{staticStyle:{"font-size":"16px","margin-left":"10px",color:"#333333"}},[t._v(t._s(i.title))])],1):t._e(),e("div",{staticStyle:{"line-height":"25px"}},[e("span",{staticStyle:{"font-size":"12px",color:"#666666"}},[t._v(t._s(t.changeTime(i.startTime)+"~"+t.changeTime(i.endTime)))])]),i.address?e("div",{staticStyle:{"line-height":"25px"}},[e("span",{staticStyle:{"font-size":"12px",color:"#666666"}},[t._v(t._s(i.address))])]):t._e()])])})),0)])])}))],2),e("div",{staticClass:"inputContent"},[e("el-input",{staticClass:"inputText",attrs:{type:"textarea",placeholder:"请输入"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.sendMsg.apply(null,arguments)}},model:{value:t.textarea,callback:function(e){t.textarea=e},expression:"textarea"}}),e("div",{staticClass:"sendBtn"},[e("el-button",{attrs:{size:"small",type:"primary",disabled:t.btnLoading,loading:t.btnLoading},on:{click:t.sendMsg}},[t._v("发送")])],1)],1)]):t._e(),"log"===t.pageType?e("div",{staticClass:"simulateRight"},[e("div",{staticClass:"chatContent",staticStyle:{height:"100%"}},t._l(t.chatList,(function(n,i){return e("div",{key:i,staticClass:"chatListBox",style:{flexDirection:2===n.type?"":"row-reverse"}},[e("div",[2===n.type?e("el-avatar",{attrs:{src:t.xiaoyiPng,alt:""}}):1===n.type?e("el-avatar",{attrs:{size:40,src:t.base_api+"/base/user/download?id="+t.logVo.userId+"&dataField=photoData&nameField=photoName&productCode=ecyoa"}},[e("img",{attrs:{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"}})]):t._e()],1),e("div",{class:2===n.type?"chatItemContent2":"chatItemContent1"},[e("div",{staticStyle:{"line-height":"30px"}},[t._v(t._s(n.content||"抱歉,这个问题小易还不知道,小易正在快速成长,会努力追赶哒~"))]),n.children&&n.children.length>0?e("div",t._l(n.children,(function(n,i){return e("div",{key:i,staticStyle:{"line-height":"30px"}},[t._v(" "+t._s(n.answer||"抱歉,这个问题小易还不知道,小易正在快速成长,会努力追赶哒~")+" ")])})),0):t._e()])])})),0)]):t._e()])},Ci=[];function Ti(t){return Ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ti(t)}function Mi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ki(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mi(Object(n),!0).forEach((function(e){Li(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Li(t,e,n){return e=Di(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Di(t){var e=Ei(t,"string");return"symbol"==Ti(e)?e:e+""}function Ei(t,e){if("object"!=Ti(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=Ti(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Bi=n("ef8d"),Ii=n("c1df"),Oi={name:"ConversationSimulateRight",components:{},props:{scene:{type:Object,default:function(){return{}}},logVo:{type:Object,default:function(){return{}}}},data:function(){return{base_api:"",hintText:"",pageType:"",textarea:"",chatList:[],xiaoyiPng:"/images/w-imgs/xiaoyi.png",btnLoading:!1,bout:0,nodeIds:[]}},computed:ki(ki({},Object(l["a"])(["loginUser"])),{},{changeStatus:function(){return function(t){switch(t){case 0:return"草稿";case 1:return"已上线";case 2:return"已下线"}}},changeTime:function(){return function(t){return Ii(t).format("M月DD日 HH:mm")}}}),watch:{chatList:{handler:function(t){this.$nextTick((function(){var t=document.getElementsByClassName("chatContent")[0];t.scrollTop=t.scrollHeight}))},deep:!0}},created:function(){this.base_api="/apigw",this.pageType=this.$route.query.pageType,"simulate"===this.pageType?this.changeHint():"log"===this.pageType&&this.getLogList()},beforeDestroy:function(){},mounted:function(){},methods:{sendMsg:function(){var t=this;if(!this.btnLoading&&this.textarea){this.btnLoading=!0,this.chatList.push({type:1,content:this.textarea});var e=this.textarea;this.textarea="",this.$http({method:"POST",contentType:"application/json charset=utf-8",url:"/voice/node/queryNodes",data:{nodeIds:this.nodeIds,problem:e,type:0}}).then((function(e){t.btnLoading=!1,t.nodeIds.length>0&&(t.nodeIds=[]),"success"===e.code?4===e.body.module||5===e.body.module?(t.chatList.push({type:2,content:e.body.answerContent,children:e.body.listdata}),e.body.listdata.length>0&&e.body.listdata.map((function(e){t.nodeIds.push(e.nodeId)})),t.$emit("boutChange",t.bout+=1)):(t.chatList.push({type:2,content:e.body.answerContent}),t.getQueryResult(e.body.sessionId)):t.chatList.push({type:2,content:e.message})}))}},getQueryResult:function(t){var e=this;this.$http({method:"GET",contentType:"application/json charset=utf-8",url:"/voice/node/queryResult?sessionId="+t}).then((function(t){t.body&&t.body.type&&2===t.body.type?e.chatList.push({type:2,resultType:t.body.type,listdata:t.body.listdata}):t.body&&t.body.type&&0===t.body.type?e.chatList.push({type:2,content:t.body.openAppUrl}):t.body&&t.body.type&&6===t.body.type&&e.chatList.push({type:2,resultType:t.body.type,listdata:t.body.listdata}),"success"!==t.code||t.body||e.chatList.push({type:2,content:"小易还不明白,请您再说一遍"}),e.$emit("boutChange",e.bout+=1)}))},changeHint:function(){var t=this;this.$http({method:"POST",contentType:"application/json charset=utf-8",url:"/voice/log/queryInitialize",params:{}}).then((function(e){"success"===e.code&&(t.hintText=e.message)}))},getLogList:function(){var t=this;this.$http({method:"GET",contentType:"application/json charset=utf-8",url:"/voice/log/queryActiveLogs?id="+this.$route.query.logId}).then((function(e){"success"===e.code&&e.body.listdata.length>0&&e.body.listdata.map((function(e){t.chatList.push({type:1,content:e.activeContent}),t.chatList.push({type:2,content:e.backContent})}))}))},initPhoto:function(t){return Bi.getInitialColor(t)}}},Pi=Oi,Ni=(n("b5e3"),Object(g["a"])(Pi,Si,Ci,!1,null,"cc12a5ee",null)),Fi=Ni.exports,Ui=function(){var t=this,e=t._self._c;return e("div",{staticClass:"designer-container"},[e("div",{staticClass:"designer-header-container"},[e("SidebarLogo",{attrs:{logo:t.logo}},[e("div",[t._v(" "+t._s(t.title)+" ")])]),e("TopBtn",{attrs:{"from-page":"simulate"}})],1),e("div",{staticClass:"main"},[e("div",{staticClass:"sumulate-body"},[e("SimulateLeft",{attrs:{scene:t.simulateVo.scene,"log-vo":t.logVo,bout:t.bout}}),e("SimulateRight",{attrs:{scene:t.simulateVo.scene,"log-vo":t.logVo},on:{boutChange:t.getBout}})],1)])])},Ri=[],ji=function(){var t=this,e=t._self._c;return e("div",{staticClass:"right-menu"},["simulate"===t.fromPage?e("el-button-group",[e("el-button",{attrs:{icon:"el-icon-close"},on:{click:t.closeDialog}},[t._v("关 闭")])],1):e("el-button-group",[e("el-button",{attrs:{icon:"el-icon-close"},on:{click:t.closeDialog}},[t._v("关 闭")]),"plat"==t.loginUser.orgCode?e("el-button",{attrs:{disabled:t.doing,icon:"el-icon-finished"},on:{click:function(e){return t.saveListpageInfo("save")}}},[t._v("保存")]):t._e(),"plat"==t.loginUser.orgCode&&1!==t.process.status?e("el-button",{attrs:{disabled:t.doing,icon:"el-icon-check"},on:{click:function(e){return t.saveListpageInfo("online")}}},[t._v("上线")]):t._e(),"plat"==t.loginUser.orgCode&&1===t.process.status?e("el-button",{attrs:{disabled:t.doing,icon:"el-icon-check"},on:{click:function(e){return t.saveListpageInfo("outline")}}},[t._v("下线")]):t._e()],1)],1)},Hi=[],Yi={name:"ConversationTopBtn",components:{},props:{fromPage:{type:String,default:function(){return""}}},data:function(){return{loginUser:this.$store.getters.loginUser,process:{}}},computed:{},watch:{},created:function(){this.$bus.on("emitProcess",this.processhandler)},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){this.$bus.off("emitProcess",this.processhandler)},destroyed:function(){},activated:function(){},methods:{saveListpageInfo:function(t){this.$bus.emit("saveWorkflow",t)},closeDialog:function(){window.close()},processhandler:function(t){this.process=JSON.parse(JSON.stringify(t))}}},zi=Yi,Qi=(n("d2f6"),Object(g["a"])(zi,ji,Hi,!1,null,"5a90456d",null)),Vi=Qi.exports,Wi=n("b8fb"),Gi=Wi.title,Ki=Wi.logo,$i={name:"ConversationSimulateTest",components:{TopBtn:Vi,SimulateLeft:xi,SimulateRight:Fi},data:function(){return{simulateVo:{},logVo:{},title:Gi,logo:Ki,bout:0}},computed:{},watch:{},created:function(){this.getMsgInfo()},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{getMsgInfo:function(){var t=this;if(this.$route.query.id&&"simulate"===this.$route.query.pageType)this.$http({method:"GET",contentType:"application/json charset=utf-8",url:"/voice/scene/getById?id="+this.$route.query.id}).then((function(e){console.log("res",e),"success"===e.code&&(t.simulateVo=e.body.vo)}));else{if(!this.$route.query.logId||"log"!==this.$route.query.pageType)return void this.$message.error("页面加载错误,请退出重新进入");this.$http({method:"GET",contentType:"application/json charset=utf-8",url:"/voice/log/getById?id="+this.$route.query.logId}).then((function(e){console.log("res",e),"success"===e.code&&(t.logVo=e.body.vo)}))}},getBout:function(t){this.bout=t}}},qi=$i,Xi=(n("716a"),n("8cf1"),Object(g["a"])(qi,Ui,Ri,!1,null,"4efadffb",null)),Ji=Xi.exports,Zi=function(){var t=this,e=t._self._c;return e("div",[e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.openWflow(t.row)}}},[t._v("编辑")]),2===t.row.status?e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.changeLineStatus(t.row,1)}}},[t._v("上线")]):t._e(),1===t.row.status?e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.changeLineStatus(t.row,2)}}},[t._v("下线")]):t._e()],1)},tr=[];function er(t){return er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},er(t)}function nr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */nr=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),s=new D(i||[]);return r(o,"_invoke",{value:T(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function v(){}function y(){}function A(){}var b={};u(b,o,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==n&&i.call(w,o)&&(b=w);var x=A.prototype=v.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,a,o,s){var l=d(t[r],t,a);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==er(c)&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var a;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return a=a?a.then(r,r):r()}})}function T(e,n,i){var r=h;return function(a,o){if(r===p)throw Error("Generator is already running");if(r===g){if("throw"===a)throw o;return{value:t,done:!0}}for(i.method=a,i.arg=o;;){var s=i.delegate;if(s){var l=M(s,i);if(l){if(l===m)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var u=d(e,n,i);if("normal"===u.type){if(r=i.done?g:f,u.arg===m)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=g,i.method="throw",i.arg=u.arg)}}}function M(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var a=d(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(er(e)+" is not iterable")}return y.prototype=A,r(x,"constructor",{value:A,configurable:!0}),r(A,"constructor",{value:y,configurable:!0}),y.displayName=u(A,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var o=new C(c(t,n,i,r),a);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(x),u(x,l,"Generator"),u(x,o,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=E,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:E(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}function ir(t,e,n,i,r,a,o){try{var s=t[a](o),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(i,r)}function rr(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){ir(a,i,r,o,s,"next",t)}function s(t){ir(a,i,r,o,s,"throw",t)}o(void 0)}))}}var ar={name:"ConversationTbColumns",components:{},props:{row:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{openWflow:function(t){window.open("/#/designer/voice?id="+t.id)},changeLineStatus:function(t,e){var n=this;this.$confirm("将"+t.name+"改为 "+(1===e?"上线":"下线")+" 状态?","操作提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(rr(nr().mark((function i(){var r,a,o;return nr().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return r=JSON.parse(JSON.stringify(t)),r.status=e,i.next=4,n.$app.update("/voice/scene/update",r);case 4:a=i.sent,"success"===a.code?(n.$message.success(a.message),o=document.querySelector(".el-icon-refresh"),null!==o&&o.parentElement.click()):n.$message.error(a.message);case 6:case"end":return i.stop()}}),i)})))).catch((function(){}))}}},or=ar,sr=(n("6447"),Object(g["a"])(or,Zi,tr,!1,null,"524627ff",null)),lr=sr.exports,ur=n("b461"),cr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-container"},[e("menubar"),e("el-row",{staticClass:"min-clr-wr"},[e("mini-calendar",{attrs:{"father-month":1}}),e("mini-calendar",{attrs:{"father-month":2}}),e("mini-calendar",{attrs:{"father-month":3}}),e("mini-calendar",{attrs:{"father-month":4}}),e("mini-calendar",{attrs:{"father-month":5}}),e("mini-calendar",{attrs:{"father-month":6}}),e("mini-calendar",{attrs:{"father-month":7}}),e("mini-calendar",{attrs:{"father-month":8}}),e("mini-calendar",{attrs:{"father-month":9}}),e("mini-calendar",{attrs:{"father-month":10}}),e("mini-calendar",{attrs:{"father-month":11}}),e("mini-calendar",{attrs:{"father-month":12}})],1)],1)},dr=[],hr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"menu-bar"},[e("leftbar"),e("rightbar")],1)},fr=[],pr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"left-bar"},[e("el-select",{staticClass:"sel_year",attrs:{size:"small"},on:{change:t.changeCalendarView},model:{value:t.yearObj.curYear,callback:function(e){t.$set(t.yearObj,"curYear",e)},expression:"yearObj.curYear"}},t._l(t.yearObj.years,(function(t,n){return e("el-option",{key:n,attrs:{value:t}})})),1),e("span",{staticStyle:{"font-size":"13px"}},[t._v(" 年")])],1)},gr=[];function mr(t){return mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mr(t)}function vr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function yr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vr(Object(n),!0).forEach((function(e){Ar(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ar(t,e,n){return e=br(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function br(t){var e=_r(t,"string");return"symbol"==mr(e)?e:e+""}function _r(t,e){if("object"!=mr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=mr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var wr={components:{},props:{},data:function(){return{yearObj:{},curDataId:""}},computed:yr({},Object(l["a"])(["loginUser"])),watch:{},created:function(){this.createYearObj(),this.queryData(this.yearObj.curYear)},beforeDestroy:function(){},mounted:function(){this.$bus.emit("getCurYear",this.yearObj.curYear)},methods:{createYearObj:function(){for(var t=(new Date).getFullYear(),e=[],n=t-10;n<=t+10;n++)e.push(n);this.yearObj={curYear:t,years:e}},changeCalendarView:function(){this.$bus.emit("getCurYear",this.yearObj.curYear),this.queryData(this.yearObj.curYear)},queryData:function(t){var e=this;t=void 0===t||""===t?(new Date).getFullYear():t;var n=[{compare:"=",field:"orgCode",merge:!1,value:this.loginUser.orgCode},{compare:"=",field:"year",merge:!1,value:t}];this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:n,url:"base/holiday/querydata"}).then((function(t){var n=t.body.listdata;"success"===t.code?n.length>0?(e.curDataId=n[0].id,e.renderDay(n[0].day),e.$bus.emit("getCurDataId",e.curDataId)):e.$bus.emit("getCurDataId",""):e.$message({message:t.message,type:"warning"})}),(function(t){e.$message.error(t)}))},renderDay:function(t){for(var e,n=""===t?[]:t.split(","),i=0;i<n.length;i++)e=document.getElementById(n[i]),null!==e&&void 0!==e&&(e.classList.add("active"),e.setAttribute("title","设为工作日"))}}},xr=wr,Sr=(n("7d8a"),Object(g["a"])(xr,pr,gr,!1,null,"71439f8e",null)),Cr=Sr.exports,Tr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"right-bar"},[e("el-button-group",[e("el-button",{attrs:{plain:"",size:"small"},on:{click:t.initNonWorkday}},[t._v("初始化非工作日")]),e("el-button",{attrs:{plain:"",size:"small"},on:{click:t.clearNonWorkday}},[t._v("清理非工作日")]),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.saveNonWorkday}},[t._v("保 存")])],1)],1)},Mr=[];function kr(t){return kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kr(t)}function Lr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Dr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lr(Object(n),!0).forEach((function(e){Er(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Er(t,e,n){return e=Br(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Br(t){var e=Ir(t,"string");return"symbol"==kr(e)?e:e+""}function Ir(t,e){if("object"!=kr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=kr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Or={components:{},props:{},data:function(){return{curDataId:"",curYear:2e3,moduleInfo:{winWidth:800,winHeight:600,delUrl:"base/holiday/delete",addNewUrl:"base/holiday/addNew",insertUrl:"base/holiday/insert",updateUrl:"base/holiday/update",listDataUrl:"base/holiday/listdata",queryDataUrl:"base/holiday/querydata",getByIdUrl:"base/holiday/getById"}}},computed:Dr({},Object(l["a"])(["loginUser"])),watch:{},created:function(){this.$bus.$on("getCurDataId",this.handleCurDataId),this.$bus.$on("getCurYear",this.handleCurYear)},beforeDestroy:function(){this.$bus.$off("getCurDataId",this.handleCurDataId),this.$bus.$off("getCurYear",this.handleCurYear)},mounted:function(){},methods:{initNonWorkday:function(){for(var t=document.getElementsByClassName("weekend"),e=0;e<t.length;e++)t[e].classList.add("active")},clearNonWorkday:function(){for(var t=document.getElementsByClassName("date"),e=0;e<t.length;e++)t[e].classList.remove("active")},saveNonWorkday:function(){var t=this,e=this.curDataId;void 0===e||""===e||null===e?this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:this.moduleInfo.addNewUrl}).then((function(n){if("success"===n.code){var i=n.body.vo.id;t.saveData(e,i)}else t.$message({message:n.message,type:"warning"})}),(function(e){t.$message.error(e)})):this.saveData(e,void 0)},saveData:function(t,e){for(var n=this,i=[],r=document.getElementsByClassName("minicalendar"),a=0;a<r.length;a++)for(var o=r[a].getElementsByClassName("active"),s=0;s<o.length;s++)i.push(o[s].getAttribute("id"));var l=i.join(","),u={id:void 0===t?e:t,day:l,orgName:this.loginUser.orgName,orgCode:this.loginUser.orgCode,year:this.curYear};this.$http({method:void 0===t||""===t||null===t?"POST":"PUT",contentType:"application/x-www-form-urlencoded",data:u,url:void 0===t||""===t||null===t?this.moduleInfo.insertUrl:this.moduleInfo.updateUrl}).then((function(i){"success"===i.code?(n.curDataId=void 0===t||""===t||null===t?e:t,n.$message({message:i.message,type:"success"})):n.$message({message:i.message,type:"warning"})}),(function(t){n.$message.error(t)}))},handleCurDataId:function(t){this.curDataId=t},handleCurYear:function(t){this.curYear=t}}},Pr=Or,Nr=(n("0f6f"),Object(g["a"])(Pr,Tr,Mr,!1,null,"4759b942",null)),Fr=Nr.exports,Ur={components:{Leftbar:Cr,Rightbar:Fr},props:{},data:function(){return{}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{}},Rr=Ur,jr=(n("a06b"),Object(g["a"])(Rr,hr,fr,!1,null,"0def196c",null)),Hr=jr.exports,Yr=function(){var t=this,e=t._self._c;return e("el-col",{staticClass:"minicalendar",attrs:{xs:12,md:6},domProps:{innerHTML:t._s(t.createCalendarDirectiveHtml(t.year,t.sonMonth))},nativeOn:{click:function(e){return t.setWorkTime.apply(null,arguments)}}})},zr=[],Qr={components:{},props:{fatherMonth:{type:Number,default:1}},data:function(){return{year:2e3,sonMonth:this.fatherMonth}},computed:{},watch:{},created:function(){this.$bus.$on("getCurYear",this.handleCurYear)},beforeDestroy:function(){this.$bus.$off("getCurYear",this.handleCurYear)},mounted:function(){},methods:{formatDate:function(t,e,n){var i=t<10?"0"+t:t,r=e<10?"0"+e:e,a=n<10?"0"+n:n;return i+"-"+r+"-"+a},createCalendarDirectiveHtml:function(t,e){for(var n=new Date(t,e-1),i='<table><tr align="center"><th colspan="7">'+t+"年"+e+'月</th></tr><tr align="center" class="week-title">',r=["日","一","二","三","四","五","六"],a=0;a<7;a++)i=i+"<td>"+r[a]+"</td>";i+="</tr>",n.setMonth(e-1,1);var o=n.getDay();n.setMonth(e,0);for(var s=n.getDate(),l=1,u="",c=0;c<6;c++){u+='<tr align="center">';for(var d=0;d<7;d++)0===c&&d<o?u+="<td> </td>":7*c+d+1<=s+o?(u=d%6===0||d%7===0?u+"<td id="+this.formatDate(t,e,l)+' class="date weekend" title="设为非工作日">'+l+"</td>":u+"<td id="+this.formatDate(t,e,l)+' class="date" title="设为非工作日">'+l+"</td>",l++):u+="<td> </td>";u+="</tr>"}return u+="</table>",i+u},setWorkTime:function(t){var e=t.target;e.getAttribute("class")&&e.getAttribute("class").indexOf("date")>-1&&(e.getAttribute("class").indexOf("active")>-1?(e.classList.remove("active"),e.setAttribute("title","设为非工作日")):(e.classList.add("active"),e.setAttribute("title","设为工作日")))},handleCurYear:function(t){this.year=t}}},Vr=Qr,Wr=Object(g["a"])(Vr,Yr,zr,!1,null,"0569bc22",null),Gr=Wr.exports,Kr={components:{Menubar:Hr,MiniCalendar:Gr},props:{},data:function(){return{}},computed:{},watch:{},created:function(){this.$bus.emit("showNavSearch",!1)},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0)},mounted:function(){},methods:{}},$r=Kr,qr=(n("0182"),Object(g["a"])($r,cr,dr,!1,null,"46c71865",null)),Xr=qr.exports,Jr=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"TextRecognition"}},[e("div",{staticClass:"pager"},[e("div",{staticClass:"page-header"},[t._m(0),e("div",{staticClass:"page-header-right"},[e("el-upload",{attrs:{"show-file-list":!1,accept:".pdf","http-request":t.reloadInvoice}},[t.pageInfo.imageUrl?e("el-button",{staticClass:"uploadOCRButton",attrs:{icon:"el-icon-upload2"}},[t._v("重新上传")]):t._e()],1),e("el-button",{on:{click:t.saveTemplate}},[t._v("保存")])],1)]),e("div",{staticClass:"page-container"},[e("div",{staticClass:"left-content"},[t.pageInfo.imageUrl?[e("img",{attrs:{id:"ImageView",src:t.pageInfo.imageUrl,alt:""},on:{load:function(e){return t.initSelector()}}})]:[e("div",{staticClass:"upload"},[e("el-upload",{attrs:{"show-file-list":!1,accept:".pdf","http-request":t.handleUpload}},[e("div",{staticClass:"upload-images"},[e("img",{attrs:{src:n("60f2"),alt:""}})]),e("el-button",{attrs:{id:"fileUpload",icon:"el-icon-upload2"}},[t._v("上传要识别的文件")])],1)],1)]],2),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-content-header"},[t._m(1),e("el-input",{attrs:{placeholder:"请输入发票类型",size:"normal"},model:{value:t.invoiceType,callback:function(e){t.invoiceType=e},expression:"invoiceType"}})],1),e("div",{staticClass:"right-content-text"},[t._m(2),t._l(t.positionList,(function(n,i){return[e("div",{key:i,staticClass:"position"},[e("div",[t._v(t._s(i+1)+"、")]),e("div",{staticClass:"position-content"},[e("div",[t._v(t._s(n.name)+":")]),e("div",[t._v("坐标:"+t._s(n.x)+" * "+t._s(n.y)+",宽:"+t._s(n.width)+",高:"+t._s(n.height))])])])]}))],2)])])]),t.isVisible?e("el-scrollbar",{style:{top:t.menuPosition.top+"px",left:t.menuPosition.left+"px"},attrs:{id:"menu"}},[t._l(t.menus,(function(n){return[e("div",{key:n.type,staticClass:"menu-item",on:{click:function(e){return e.preventDefault(),t.handleMenuClick(n.type)}}},[e("span",[t._v(t._s(n.title))])])]}))],2):t._e()],1)},Zr=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-header-left"},[e("img",{staticClass:"app-logo",attrs:{src:n("3b09"),alt:""}}),e("span",{staticClass:"title"},[t._v(" 发票模板 ")])])},function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"margin-bottom":"5px"}},[e("i",{staticStyle:{color:"red"}},[t._v("* ")]),t._v("发票模板类型名称:")])},function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"margin-bottom":"10px"}},[e("i",{staticStyle:{color:"red"}},[t._v("* ")]),t._v("识别结果:")])}],ta=[{title:"识别为 “发票代码”",type:"invoiceCode",name:"发票代码"},{title:"识别为 “发票号码”",type:"invoiceSn",name:"发票号码"},{title:"识别为 “开票日期”",type:"invoiceDate",name:"开票日期"},{title:"识别为 “校验码”",type:"checkCode",name:"校验码"},{title:"识别为 “购买方名称”",type:"buyerName",name:"购买方名称"},{title:"识别为 “购买方纳税人识别号”",type:"buyerSn",name:"购买方纳税人识别号"},{title:"识别为 “货物或服务名称”",type:"buyGoods",name:"货物或服务名称"},{title:"识别为 “金额”",type:"amount",name:"金额"},{title:"识别为 “税额”",type:"tax",name:"税额"},{title:"识别为 “价税合计”",type:"total",name:"价税合计"},{title:"识别为 “销售方名称”",type:"sellerName",name:"销售方名称"},{title:"识别为 “销售方纳税人识别号”",type:"sellerSn",name:"销售方纳税人识别号"},{title:"识别为 “销售方地址及电话”",type:"sellerAddress",name:"销售方地址及电话"},{title:"识别为 “销售方开户行及账号”",type:"sellerBank",name:"销售方开户行及账号"},{title:"识别为 “备注”",type:"momo",name:"备注"}],ea=["invoiceDate:开票日期","amount:金额","tax:税额","total:价税合计"];function na(t){return na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},na(t)}function ia(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ra(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ia(Object(n),!0).forEach((function(e){aa(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ia(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function aa(t,e,n){return e=oa(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function oa(t){var e=sa(t,"string");return"symbol"==na(e)?e:e+""}function sa(t,e){if("object"!=na(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=na(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var la=function(t){return JSON.parse(JSON.stringify(t))},ua={name:"InvoiceRecognition",data:function(){return{menus:ta,pageInfo:{id:"",imageUrl:""},invoiceType:"",imageInfo:{invoiceWidth:0,invoiceHeight:0},shotConfig:{startPoint:null,endPoint:null,target:null,targetContext:null},menuConfig:{startPoint:null,endPoint:null},positions:{},vo:{},isVisible:!1,hadDrag:!1}},computed:{menuPosition:function(){var t=this.menuConfig,e=t.startPoint,n=t.endPoint,i=e[1]>n[1]?e[1]:n[1],r=e[0]>n[0]?e[0]:n[0],a=document.body.clientHeight,o=317;return i<a/2&&(o=317/3),null===e||null===n?{top:0,left:0}:{top:i-o,left:r}},positionList:function(){var t=this;return Object.keys(this.positions).reduce((function(e,n){var i=t.positions[n],r=t.menus.find((function(t){return t.type===n}));return e.push(ra({name:r.name},i)),e}),[])}},created:function(){var t=this.$route.query.id;this.pageInfo.id=t,this.getTemplate(t)},mounted:function(){document.addEventListener("mousedown",this.handleMouseClick)},beforeDestroy:function(){document.removeEventListener("mousedown",this.handleMouseClick),this.pageInfo.imageUrl&&URL.revokeObjectURL(this.pageInfo.imageUrl)},methods:{reloadInvoice:function(t){this.handleUpload(t,!0)},handleUpload:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=new FormData;i.append("file",t.file),i.append("fileName",t.file.name),this.$http({method:"POST",url:"fybx/invoiceOcrRange/getPDFTemplatePicture?id="+this.vo.id,responseType:"blob",data:i}).then((function(t){t instanceof Blob&&"image/png"===t.type?(e.pageInfo.imageUrl=URL.createObjectURL(t),e.$nextTick((function(){e.getImageNaturalSize(e.pageInfo.imageUrl)})),n&&(e.positions={})):e.$message.error("模板转换失败,请稍后再试!")})).catch((function(t){return e.$message.error(t)}))},getImageNaturalSize:function(t){var e=this,n=document.createElement("img");n.src=t,n.onload=function(){e.imageInfo.invoiceWidth=n.width,e.imageInfo.invoiceHeight=n.height}},initSelector:function(){var t=document.querySelector("#ImageView"),e=document.createElement("canvas");e.width=t.width,e.height=t.height,e.setAttribute("style","\n width: ".concat(t.width,"px;\n height: ").concat(t.height,"px;\n position: absolute;\n top: 20px;\n left: 150px;\n cursor: crosshair;\n z-index: 10;\n user-select: none;\n ")),t.parentElement.append(e),e.addEventListener("mousedown",this.startScreenshot),e.addEventListener("mouseup",this.stopScreenshot)},startScreenshot:function(t){var e=t.target;e.addEventListener("mousemove",this.handlingScreenshot);var n=this.getPoint(t),i=n.x,r=n.y,a=e.getContext("2d");this.shotConfig.target=e,this.shotConfig.targetContext=a,this.shotConfig.startPoint=[i,r],this.menuConfig.startPoint=[t.x,t.y],a.fillStyle="rgba(49, 129, 208, 0.2)"},stopScreenshot:function(t){var e=t.target;e.removeEventListener("mousemove",this.handlingScreenshot);var n=this.getPoint(t),i=n.x,r=n.y;this.shotConfig.endPoint=[i,r],this.menuConfig.endPoint=[t.x,t.y],this.shotConfig.target&&this.hadDrag&&(this.isVisible=!0),this.hadDrag=!1},handlingScreenshot:function(t){this.hadDrag=!0;var e=this.shotConfig,n=e.startPoint,i=e.targetContext,r=e.target,a=r.clientHeight,o=r.clientWidth,s=this.getPoint(t),l=s.x,u=s.y,c=l-n[0],d=u-n[1];i.clearRect(0,0,o,a),i.beginPath(),i.fillRect(n[0],n[1],c,d),i.closePath()},getPoint:function(t){return{x:t.offsetX,y:t.offsetY}},finished:function(){this.shotConfig.targetContext.clearRect(0,0,this.shotConfig.target.clientWidth,this.shotConfig.target.clientHeight),this.isVisible=!1},handleMouseClick:function(t){"menu-item"!==t.target.className&&this.isVisible&&this.finished()},getImageInfo:function(){var t=this.imageInfo.invoiceWidth/document.querySelector("#ImageView").width,e=this.shotConfig,n=e.startPoint,i=e.endPoint,r=Math.round((n[0]<i[0]?n[0]:i[0])*t),a=Math.round((n[1]<i[1]?n[1]:i[1])*t),o=Math.round((n[0]<i[0]?i[0]-n[0]:n[0]-i[0])*t),s=Math.round((n[1]<i[1]?i[1]-n[1]:n[1]-i[1])*t);return{x:r,y:a,width:o,height:s}},handleMenuClick:function(t){this.$set(this.positions,t,this.getImageInfo()),this.finished()},getTemplate:function(t){var e=this,n=t?"fybx/invoiceOcrRange/getById?id="+t:"fybx/invoiceOcrRange/addNew";this.$http({url:n,method:t?"GET":"POST"}).then((function(n){if("success"!==n.code)return e.$message.error(n.message);e.vo=n.body.vo,e.invoiceType=e.vo.invoiceType,e.imageInfo.invoiceHeight=e.vo.invoiceHeight,e.imageInfo.invoiceWidth=e.vo.invoiceWidth,e.renderPosition(e.vo),t&&e.getTemplateImage(t)})).catch((function(t){return e.$message.error(t)}))},getTemplateImage:function(t){var e=this;this.$http({url:"fybx/invoiceOcrRange/downloadImgById?id="+t,method:"GET",responseType:"blob"}).then((function(t){t instanceof Blob&&"image/png"===t.type?e.pageInfo.imageUrl=URL.createObjectURL(t):e.$message.error("获取发票模板图片失败!")})).catch((function(t){return e.$message.error(t)}))},renderPosition:function(t){var e=this.menus.map((function(t){return t.type}));this.positions=e.reduce((function(e,n){return t[n]&&(e[n]=JSON.parse(t[n])),e}),{})},getFormatPositions:function(){var t=this;return Object.keys(this.positions).reduce((function(e,n){return e[n]=JSON.stringify(t.positions[n]),e}),{})},checkSelectedData:function(){var t=la(ea),e=Object.keys(this.positions),n=t.reduce((function(t,n){var i=n.split(":");return e.includes(i[0])||(t+=t?"、"+i[1]:i[1]),t}),"");return this.invoiceType?!n||(this.$message.warning("缺少 "+n+" 模板参数"),!1):(this.$message.warning("发票类型不能为空!"),!1)},saveTemplate:function(){var t=this,e=this.checkSelectedData();if(e){var n=this.pageInfo.id,i=this.getFormatPositions(),r=Object.assign(this.vo,this.imageInfo,i,{invoiceType:this.invoiceType}),a=n?"fybx/invoiceOcrRange/update":"fybx/invoiceOcrRange/insert";this.$http({method:n?"PUT":"POST",url:a,data:r}).then((function(e){if("success"!==e.code)return t.$message.error(e.message);t.$message.success("保存成功"),setTimeout((function(){var e={path:"/IR"};e.query=n?{id:n}:{id:t.vo.id},window.close()}),1500)})).catch((function(e){return t.$message.error(e)}))}}}},ca=ua,da=(n("36b4"),Object(g["a"])(ca,Jr,Zr,!1,null,"6308c11f",null)),ha=da.exports,fa=function(){var t=this,e=t._self._c;return t.isVisible?e("div",{attrs:{id:"TextRecognition"}},[e("div",{staticClass:"pager"},[e("div",{staticClass:"page-header"},[t._m(0),e("div",{staticClass:"page-header-right"},[e("el-button",{staticStyle:{"margin-right":"10px"},on:{click:t.closeDialog}},[e("svg-icon",{staticStyle:{color:"red","margin-right":"5px"},attrs:{"icon-class":"glyphicon-off"}}),t._v("关闭")],1),e("el-upload",{attrs:{"show-file-list":!1,accept:".pdf","http-request":t.reloadInvoice}},[t.pageInfo.imageUrl?e("el-button",{staticClass:"uploadOCRButton",attrs:{icon:"el-icon-upload2"}},[t._v("重新上传")]):t._e()],1),e("el-button",{on:{click:function(e){return t.saveVo(!1)}}},[e("svg-icon",{staticStyle:{"margin-right":"5px"},attrs:{"icon-class":"save"}}),t._v("保存")],1),e("el-button",{on:{click:function(e){return t.saveVo(!0)}}},[e("svg-icon",{staticStyle:{"margin-right":"5px"},attrs:{"icon-class":"saved"}}),t._v("保存并关闭")],1)],1)]),e("div",{staticClass:"page-container"},[e("div",{staticClass:"left-content"},[t.pageInfo.imageUrl?[e("img",{attrs:{id:"ImageView",src:t.pageInfo.imageUrl,alt:""}})]:[e("div",{staticClass:"upload",on:{click:t.checkCannotUpload}},[e("el-upload",{attrs:{disabled:!t.vo.invoiceType,"show-file-list":!1,accept:".pdf","http-request":t.handleUpload}},[e("div",{staticClass:"upload-images"},[e("img",{attrs:{src:n("60f2"),alt:""}})]),e("el-button",{attrs:{id:"fileUpload",icon:"el-icon-upload2"}},[t._v("上传要识别的文件")])],1)],1)]],2),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-content-text"},[e("el-form",{ref:"voForm",attrs:{model:t.vo,rules:t.rules,"label-width":"120px",inline:!1,size:"normal"}},[e("el-form-item",{attrs:{label:"进销发票",prop:"invoiceJx"}},[e("el-radio-group",{model:{value:t.vo.invoiceJx,callback:function(e){t.$set(t.vo,"invoiceJx",e)},expression:"vo.invoiceJx"}},[e("el-radio",{attrs:{label:1}},[t._v("进销发票")]),e("el-radio",{attrs:{label:2}},[t._v("销项发票")])],1)],1),e("el-form-item",{attrs:{label:"发票类型",prop:"invoiceType"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择发票类型"},model:{value:t.vo.invoiceType,callback:function(e){t.$set(t.vo,"invoiceType",e)},expression:"vo.invoiceType"}},[t._l(t.invoiceOptions,(function(t,n){return[e("el-option",{key:n,attrs:{label:t.text,value:t.value}})]}))],2)],1),e("el-form-item",{attrs:{label:"发票代码"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.invoiceCode,callback:function(e){t.$set(t.vo,"invoiceCode",e)},expression:"vo.invoiceCode"}})],1),e("el-form-item",{attrs:{label:"发票号码"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.invoiceSn,callback:function(e){t.$set(t.vo,"invoiceSn",e)},expression:"vo.invoiceSn"}})],1),e("el-form-item",{attrs:{label:"开票日期"}},[e("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"上传成功后自动识别"},model:{value:t.vo.invoiceDate,callback:function(e){t.$set(t.vo,"invoiceDate",e)},expression:"vo.invoiceDate"}})],1),e("el-form-item",{attrs:{label:"校验码"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.checkCode,callback:function(e){t.$set(t.vo,"checkCode",e)},expression:"vo.checkCode"}})],1),e("el-form-item",{attrs:{label:"购买方名称"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.buyerName,callback:function(e){t.$set(t.vo,"buyerName",e)},expression:"vo.buyerName"}})],1),e("el-form-item",{attrs:{label:"购买方纳税人识别号"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.buyerSn,callback:function(e){t.$set(t.vo,"buyerSn",e)},expression:"vo.buyerSn"}})],1),e("el-form-item",{attrs:{label:"货物或服务名称"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.buyGoods,callback:function(e){t.$set(t.vo,"buyGoods",e)},expression:"vo.buyGoods"}})],1),e("el-form-item",{attrs:{label:"金额",prop:"amount"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.amount,callback:function(e){t.$set(t.vo,"amount",e)},expression:"vo.amount"}})],1),e("el-form-item",{attrs:{label:"税额",prop:"tax"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.tax,callback:function(e){t.$set(t.vo,"tax",e)},expression:"vo.tax"}})],1),e("el-form-item",{attrs:{label:"价税合计",prop:"total"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.total,callback:function(e){t.$set(t.vo,"total",e)},expression:"vo.total"}})],1),e("el-form-item",{attrs:{label:"销售方名称"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.sellerName,callback:function(e){t.$set(t.vo,"sellerName",e)},expression:"vo.sellerName"}})],1),e("el-form-item",{attrs:{label:"销售方地址及电话"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.sellerAddress,callback:function(e){t.$set(t.vo,"sellerAddress",e)},expression:"vo.sellerAddress"}})],1),e("el-form-item",{attrs:{label:"销售方开户行及账号"}},[e("el-input",{attrs:{placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.sellerBank,callback:function(e){t.$set(t.vo,"sellerBank",e)},expression:"vo.sellerBank"}})],1),e("el-form-item",{attrs:{label:"备注"}},[e("el-input",{attrs:{type:"textarea",placeholder:"上传成功后自动识别",clearable:""},model:{value:t.vo.momo,callback:function(e){t.$set(t.vo,"momo",e)},expression:"vo.momo"}})],1)],1)],1)])])])]):t._e()},pa=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-header-left"},[e("img",{staticClass:"app-logo",attrs:{src:"/images/listHeadLogo.png",alt:""}}),e("span",{staticClass:"title"},[t._v(" 费用模板 ")]),e("span",{staticClass:"sec-title"},[t._v(" 发票登记 ")])])}],ga={name:"InvoiceRecognition",data:function(){return{isVisible:!1,pageInfo:{id:"",imageUrl:""},vo:{passenger:{invoiceTypeOptions:[]}},rules:{invoiceJx:[{required:!0,message:"请选择进销发票",trigger:"change"}],invoiceType:[{required:!0,message:"请选择发票类型",trigger:"blur"}],amount:[{required:!0,message:"请输入金额",trigger:"blur"}],tax:[{required:!0,message:"请输入税额",trigger:"blur"}],total:[{required:!0,message:"请输入税价税合计",trigger:"blur"}]}}},computed:{invoiceOptions:function(){return this.vo.passenger.invoiceTypeOptions||[]}},created:function(){},methods:{openDialog:function(t){this.resetPage(),t?(this.pageInfo.id=t,this.getVoById(t)):this.initVo(),this.isVisible=!0},closeDialog:function(){this.isVisible=!1,this.$bus.emit("refreshListData")},checkCannotUpload:function(){if(!this.vo.invoiceType)return this.$message.error("请先选择发票类型后再上传!")},reloadInvoice:function(t){this.handleUpload(t,!0)},handleUpload:function(t){var e=this,n=this.$loading({lock:!0,text:"发票识别中.....",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),i=new FormData;i.append("busiDataId",this.vo.id),i.append("file",t.file),i.append("attachsSize",t.file.size),i.append("attachsName",t.file.name),i.append("invoiceType",this.vo.invoiceType),this.$http({method:"POST",url:"fybx/myInvoice/upload",data:i}).then((function(t){if("success"===t.code){var i=t.body.vo;Object.keys(i).forEach((function(t){e.vo.hasOwnProperty(t)&&i[t]&&(e.vo[t]="string"===typeof i[t]?i[t].replace("\n",""):i[t])})),e.pageInfo.imageUrl="data:image/png;base64,"+t.body.imgBase64}else e.$message.error("模板转换失败,请稍后再试!");n.close()})).catch((function(t){return e.$message.error(t)}))},resetPage:function(){this.pageInfo={id:"",imageUrl:""},this.vo={passenger:{invoiceTypeOptions:[]}}},saveVo:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.voForm.validate((function(n){n&&t.$http({url:t.pageInfo.id?"/fybx/myInvoice/update":"/fybx/myInvoice/insert",method:"POST",data:t.vo}).then((function(n){if("success"!==n.code)return t.$message.error(n.message);t.$message.success("登记发票成功"),setTimeout((function(){t.resetPage(),e&&t.closeDialog()}),500)})).catch((function(t){console.error("err => ",t)}))}))},getVoById:function(t){var e=this,n=this.$loading({lock:!0,text:"加载中",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});this.$http({url:"/fybx/myInvoice/getById?id="+t,method:"GET"}).then((function(t){if("success"!==t.code)return e.$message.error(t.message);e.vo=t.body.vo,e.pageInfo.imageUrl="data:image/png;base64,"+t.body.imgBase64,n.close()})).catch((function(t){console.error("err => ",t)}))},initVo:function(){var t=this,e=this.$loading({lock:!0,text:"加载中",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});this.$http({url:"/fybx/myInvoice/addNew",method:"POST"}).then((function(n){if("success"!==n.code)return t.$message.error(n.message);t.vo=n.body.vo,e.close()})).catch((function(t){console.error("err => ",t)}))}}},ma=ga,va=(n("4f3f"),Object(g["a"])(ma,fa,pa,!1,null,"44edd521",null)),ya=va.exports,Aa=function(){var t=this,e=t._self._c;return e("PageContent",{attrs:{title:t.title}},[e("el-form",[e("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"824px","margin-top":"10px"}},[e("div",{staticClass:"el-table__body-wrapper"},[e("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("tbody",[e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t._v("APP类型")]),e("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[e("el-radio-group",{model:{value:t.imtype,callback:function(e){t.imtype=e},expression:"imtype"}},[e("el-radio",{attrs:{label:"ecmapp"}},[t._v("易办公")]),e("el-radio",{attrs:{label:"qywxh"}},[t._v("企业微信")]),e("el-radio",{attrs:{label:"ddqyh"}},[t._v("钉钉")])],1)],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t._v("企业应用ID")]),e("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"政务微信ID",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{directives:[{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"orgCode",listviewurl:t.listviewurl,dialogtitle:"移动应用接入配置",placeholder:"企业应用ID"},model:{value:t.corpId,callback:function(e){t.corpId=e},expression:"corpId"}})],1)]}}])})],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t._v("机构名称")]),e("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[e("div",{domProps:{innerHTML:t._s(t.orgName)}})])]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t._v("机构代码")]),e("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"5"}},[e("div",{domProps:{innerHTML:t._s(t.orgCode)}})])])])])])])]),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{plain:""},on:{click:t.startSyncToWechat}},[e("svg-icon",{attrs:{"icon-class":"sync"}}),t._v("开始同步")],1)],1),e("DoingDialog")],1)},ba=[],_a={components:{},props:{},data:function(){return{title:"同步人员机构信息",imtype:"ecmapp",orgCode:"",orgName:"",corpId:"",loginUser:this.$store.getters.loginUser,dwadmin:0}},computed:{listviewurl:function(){return"ecmapp"===this.imtype?"mpp.wxqyh.list?urlsearch=imType:ECMAPP":"qywxh"===this.imtype?"mpp.wxqyh.list?urlsearch=imType:QYWXH":"ddqyh"===this.imtype?"mpp.wxqyh.list?urlsearch=imType:DDQYH":""}},watch:{},created:function(){this.$bus.emit("showNavSearch",!1)},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0)},mounted:function(){("plat"!==this.loginUser.orgCode||this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("dwadmin=1"))&&(this.dwadmin=1,this.orgName=this.loginUser.orgName,this.orgCode=this.loginUser.orgCode)},methods:{startSyncToWechat:function(){var t=this,e="ecmapp"===this.imtype?"base/friend/datatoim":"qywxh"===this.imtype?"wxqyh/txl/syncTxlToWeContactBook":"dingding/txl/syncTxlToDingding";this.$refs.ValidationProvider.validate().then((function(n){var i=document.querySelector(".invalid-field");null!==i&&""!==i.innerHTML||(t.$bus.emit("showDoingDialog"),t.$http({method:"POST",contentType:"application/x-www-form-urlencoded",params:{corpId:t.corpId,orgCode:t.orgCode},url:e}).then((function(e){t.$bus.emit("closeDoingDialog"),"success"===e.code?t.$alert(e.message,"操作提示",{type:"success"}):t.$alert(e.message,"操作提示",{type:"error"})})))}))},onSelectListpageRowCompleted:function(t,e){this.orgName=t[0].orgName,this.orgCode=t[0].orgCode,this.corpId=t[0].corpId}}},wa=_a,xa=Object(g["a"])(wa,Aa,ba,!1,null,"10039030",null),Sa=xa.exports,Ca=function(){var t=this,e=t._self._c;return e("div",[e("PageContent",{attrs:{title:"密码策略设置"}},[e("el-form",[e("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"824px","margin-top":"10px"}},[e("div",{staticClass:"el-table__body-wrapper"},[e("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("tbody",[e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t._v("启用密码安全策略")]),e("td",{staticClass:"el-table__cell tdcont tdw83"},[e("el-radio-group",{model:{value:t.vo.status,callback:function(e){t.$set(t.vo,"status",e)},expression:"vo.status"}},t._l(t.statusOption,(function(n,i){return e("el-radio",{key:i,attrs:{label:n.val}},[t._v(t._s(n.text))])})),1)],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t._v("密码策略")]),e("td",{staticClass:"el-table__cell tdcont tdw83"},[e("div",{staticClass:"inner-box"},[e("el-checkbox",{attrs:{checked:1===t.vo.disableContainsAccount||t.vo.disableContainsAccount},model:{value:t.vo.disableContainsAccount,callback:function(e){t.$set(t.vo,"disableContainsAccount",e)},expression:"vo.disableContainsAccount"}}),t._v("密码不包含用户名"),e("br"),e("el-checkbox",{attrs:{checked:1===t.vo.disableEqualsLast||t.vo.disableEqualsLast},model:{value:t.vo.disableEqualsLast,callback:function(e){t.$set(t.vo,"disableEqualsLast",e)},expression:"vo.disableEqualsLast"}}),t._v("密码不能与上次的旧密码相同 "),e("div",[e("el-checkbox",{attrs:{checked:1===t.vo.checkLength||t.vo.checkLength,disabled:""},model:{value:t.vo.checkLength,callback:function(e){t.$set(t.vo,"checkLength",e)},expression:"vo.checkLength"}}),t._v("限定密码最小长度为: "),1===t.vo.checkLength||t.vo.checkLength?e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:" ",rules:"required|integer|min_value:1"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{model:{value:t.vo.minLength,callback:function(e){t.$set(t.vo,"minLength",e)},expression:"vo.minLength"}})],1)]}}],null,!1,2580305088)}):e("el-input",{model:{value:t.vo.minLength,callback:function(e){t.$set(t.vo,"minLength",e)},expression:"vo.minLength"}}),t._v(" 位 ")],1),e("div",[e("el-checkbox",{attrs:{checked:1===t.vo.checkValidity||t.vo.checkValidity},model:{value:t.vo.checkValidity,callback:function(e){t.$set(t.vo,"checkValidity",e)},expression:"vo.checkValidity"}}),t._v("每隔 "),1===t.vo.checkValidity||t.vo.checkValidity?e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:" ",rules:"required|integer|min_value:1"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{model:{value:t.vo.maxValidity,callback:function(e){t.$set(t.vo,"maxValidity",e)},expression:"vo.maxValidity"}})],1)]}}],null,!1,1771565264)}):e("el-input",{attrs:{disabled:!t.vo.checkValidity},model:{value:t.vo.maxValidity,callback:function(e){t.$set(t.vo,"maxValidity",e)},expression:"vo.maxValidity"}}),t._v(" 天必须修改密码,密码过期前 "),1===t.vo.checkValidity||t.vo.checkValidity?e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:" ",rules:"required|integer|min_value:1"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{model:{value:t.vo.beforeExpiryDay,callback:function(e){t.$set(t.vo,"beforeExpiryDay",e)},expression:"vo.beforeExpiryDay"}})],1)]}}],null,!1,3510628508)}):e("el-input",{attrs:{disabled:!t.vo.checkValidity},model:{value:t.vo.beforeExpiryDay,callback:function(e){t.$set(t.vo,"beforeExpiryDay",e)},expression:"vo.beforeExpiryDay"}}),t._v(" 天开始提醒用户修改密码 ")],1),e("el-checkbox",{attrs:{checked:1===t.vo.modifyInitPassword},model:{value:t.vo.modifyInitPassword,callback:function(e){t.$set(t.vo,"modifyInitPassword",e)},expression:"vo.modifyInitPassword"}}),t._v("强制修改初始密码"),e("br"),e("el-checkbox",{attrs:{checked:1===t.vo.checkContainsChar||t.vo.checkContainsChar},model:{value:t.vo.checkContainsChar,callback:function(e){t.$set(t.vo,"checkContainsChar",e)},expression:"vo.checkContainsChar"}}),t._v("密码必须包含 "),e("el-checkbox",{attrs:{checked:1===t.vo.mustContainsNum||t.vo.mustContainsNum,disabled:!t.vo.checkContainsChar},model:{value:t.vo.mustContainsNum,callback:function(e){t.$set(t.vo,"mustContainsNum",e)},expression:"vo.mustContainsNum"}},[t._v("数字")]),e("el-checkbox",{attrs:{checked:1===t.vo.mustContainsChar||t.vo.mustContainsChar,disabled:!t.vo.checkContainsChar},model:{value:t.vo.mustContainsChar,callback:function(e){t.$set(t.vo,"mustContainsChar",e)},expression:"vo.mustContainsChar"}},[t._v("字母")]),e("el-checkbox",{attrs:{checked:1===t.vo.mustContainsUpperChar||t.vo.mustContainsUpperChar,disabled:!t.vo.checkContainsChar},model:{value:t.vo.mustContainsUpperChar,callback:function(e){t.$set(t.vo,"mustContainsUpperChar",e)},expression:"vo.mustContainsUpperChar"}},[t._v("大写字母")]),e("el-checkbox",{attrs:{checked:1===t.vo.mustContainsShift||t.vo.mustContainsShift,disabled:!t.vo.checkContainsChar},model:{value:t.vo.mustContainsShift,callback:function(e){t.$set(t.vo,"mustContainsShift",e)},expression:"vo.mustContainsShift"}},[t._v("特殊符号(Shift+数字)")]),e("div",[e("el-checkbox",{attrs:{checked:1===t.vo.checkRepeatChar||t.vo.checkRepeatChar},model:{value:t.vo.checkRepeatChar,callback:function(e){t.$set(t.vo,"checkRepeatChar",e)},expression:"vo.checkRepeatChar"}}),t._v("密码不允许有 "),1===t.vo.checkRepeatChar||t.vo.checkRepeatChar?e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:" ",rules:"required|integer|min_value:1"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{model:{value:t.vo.disableRepeatLength,callback:function(e){t.$set(t.vo,"disableRepeatLength",e)},expression:"vo.disableRepeatLength"}})],1)]}}],null,!1,3788958185)}):e("el-input",{attrs:{disabled:!t.vo.checkRepeatChar},model:{value:t.vo.disableRepeatLength,callback:function(e){t.$set(t.vo,"disableRepeatLength",e)},expression:"vo.disableRepeatLength"}}),t._v(" 位连续与重复 ")],1),e("el-checkbox",{attrs:{checked:1===t.vo.checkDisableChar||t.vo.checkDisableChar},model:{value:t.vo.checkDisableChar,callback:function(e){t.$set(t.vo,"checkDisableChar",e)},expression:"vo.checkDisableChar"}}),t._v("密码中不允许包含的字符库(两个字符串间以;分隔开,如:abc;123)"),e("br"),1===t.vo.checkDisableChar||t.vo.checkDisableChar?e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:" ",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{attrs:{type:"textarea"},model:{value:t.vo.dsiablePassword,callback:function(e){t.$set(t.vo,"dsiablePassword",e)},expression:"vo.dsiablePassword"}})],1)]}}],null,!1,2837793253)}):e("el-input",{attrs:{type:"textarea",disabled:!t.vo.checkDisableChar},model:{value:t.vo.dsiablePassword,callback:function(e){t.$set(t.vo,"dsiablePassword",e)},expression:"vo.dsiablePassword"}})],1)])])])])])])]),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("div",{staticStyle:{"margin-bottom":"10px","font-size":"13px"}},[e("el-button",{attrs:{plain:"",icon:"el-icon-check"},on:{click:t.submitRule}},[t._v("保存")])],1)])],1)],1)},Ta=[],Ma={components:{},props:{},data:function(){return{moduleInfo:{addNew:"base/passwordPolicy/addNew",delete:"base/passwordPolicy/delete",getById:"base/passwordPolicy/getById",insert:"base/passwordPolicy/insert",listdata:"base/passwordPolicy/listdata",querydata:"base/passwordPolicy/querydata",update:"base/passwordPolicy/update"},vo:{},statusOption:[{val:1,text:"是"},{val:0,text:"否"}]}},computed:{},watch:{},created:function(){this.$bus.emit("showNavSearch",!1),this.findRule()},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0)},mounted:function(){},methods:{findRule:function(){var t=this;this.$http({method:"post",contentType:"application/x-www-form-urlencoded",data:[],url:this.moduleInfo.querydata}).then((function(e){"success"===e.code&&(e.body.listdata.length>0?(t.vo=e.body.listdata[0],t.formtype="updata"):t.$http({method:"post",contentType:"application/x-www-form-urlencoded",url:t.moduleInfo.addNew}).then((function(e){"success"===e.code&&(t.formtype="addnew",t.vo=t.initRule(e.body.vo))})))}))},initRule:function(t){return t.status=1,t.policyLevel=1,t.checkLength=!0,t},submitRule:function(){var t=this;this.formValidate((function(){var e={};"updata"===t.formtype?(e.method="PUT",e.url=t.moduleInfo.update):"addnew"===t.formtype&&(e.method="POST",e.url=t.moduleInfo.insert),t.$http({method:e.method,contentType:"application/x-www-form-urlencoded",data:t.vo,url:e.url}).then((function(e){"success"===e.code?t.$message({message:"保存成功",type:"success"}):t.$message.error(e.message)}))}))}}},ka=Ma,La=(n("2b9d"),Object(g["a"])(ka,Ca,Ta,!1,null,"14304b20",null)),Da=La.exports,Ea=n("016b"),Ba=function(){var t=this,e=t._self._c;return e("LRLayout",[e("LeftPanel",[e("GiantTree",{attrs:{nodes:t.treeData,multiple:!1,drag:!0,"tree-before-drop-node":t.treeBeforeDropNode},on:{onClick:t.onTreeNodeClick,onCreated:t.onTreeCreated,onDrop:t.treeDropNode},scopedSlots:t._u([{key:"context-menu",fn:function(n){return[null===n.contextNode.pId?e("ul",[e("li",{on:{click:function(e){return t.addModuleMenu(n.treeId,n.contextNode)}}},[t._v("新增栏目")])]):t._e(),null!==n.contextNode.pId?e("ul",[e("li",{on:{click:function(e){return t.addMenu(n.treeId,n.contextNode)}}},[t._v("新增子菜单")]),e("li",{on:{click:function(e){return t.editMenu(n.treeId,n.contextNode)}}},[t._v("修改菜单")]),e("li",{on:{click:function(e){return t.deleteMenu(n.treeId,n.contextNode)}}},[t._v("删除菜单")])]):t._e()]}}])})],1),e("RightPanel",[null!==t.sys&&null===t.menuItem?e("Product",{attrs:{vo:t.sys,"z-tree":t.zTree}}):t._e(),null!==t.sys&&null!==t.menuItem?e("ModuleMenu",{attrs:{vo:t.menuItem,"z-tree":t.zTree}}):t._e(),e("CopyMenu",{attrs:{"z-tree":t.zTree},on:{refreshTreeData:t.refreshTreeData}})],1)],1)},Ia=[];function Oa(t){return Oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oa(t)}function Pa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Na(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pa(Object(n),!0).forEach((function(e){Fa(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pa(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Fa(t,e,n){return e=Ua(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ua(t){var e=Ra(t,"string");return"symbol"==Oa(e)?e:e+""}function Ra(t,e){if("object"!=Oa(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=Oa(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ja={name:"ProductMenuMgr",components:{},props:{},data:function(){return{moduleInfo:{loadProductUrl:"base/product/querydata",loadTreeNodeUrl:"base/menuMgr/querydata",updateModuleUrl:"base/menuMgr/updateModuleAndPermissions"},sys:null,menuItem:null,treeData:[],zTree:{}}},computed:Na({},Object(l["a"])(["loginUser"])),watch:{},created:function(){var t=this;this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:[{compare:"=",field:"status",value:1}],params:{orderBy:"orderNo"},url:this.moduleInfo.loadProductUrl}).then((function(e){if("success"===e.code){t.sys=e.body.listdata[0];var n=[];e.body.listdata.forEach((function(t){n.push(t.code)})),t.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:[{compare:"in",field:"sysCode",value:n.join(",")}],params:{orderBy:"moduleLevel asc,orderNo asc"},url:t.moduleInfo.loadTreeNodeUrl}).then((function(n){"success"===n.code?t.treeData=t.treeDataAdapter(e.body.listdata.concat(n.body.listdata)):t.$alert(n.message,{type:"error"})}))}else t.$alert(e.message,{type:"error"})})),this.$bus.$emit("showNavSearch",!1)},beforeDestroy:function(){this.$bus.$emit("showNavSearch",!0)},mounted:function(){},methods:{treeDataAdapter:function(t){var e={};return t.forEach((function(t){void 0!==t.chargeType?(t.pId=null,t.open=!0,t.title=t.name,e[t.code]=t.id):("0"===t.parentId?t.pId=e[t.sysCode]:t.pId=t.parentId,t.title="名称:"+t.name+"\r\n代码:"+t.code+"\r\n排序:"+t.orderNo)})),t},refreshTreeData:function(t){null===this.sys&&(this.sys=this.zTree.getNodes()[0]);var e=[this.sys];this.treeData=this.treeDataAdapter(e.concat(t))},onTreeNodeClick:function(t,e,n){var i=this,r=JSON.parse(JSON.stringify(this.sys));this.sys=null,this.$nextTick((function(t){void 0===n.pId||null===n.pId?(i.menuItem=null,i.sys=n):(i.setMenuItem(n),i.sys=r)}))},setMenuItem:function(t){var e=t.getParentNode(),n="";while(null!==e&&e.getParentNode)n=e.name+"/"+n,e=e.getParentNode();t.parentName=n,2===t.moduleLevel&&0===t.leafFlag&&"rightLabel"!==t.target&&(t.target="leftMenuItem"),this.menuItem=t},onTreeCreated:function(t){this.zTree=t},treeBeforeDropNode:function(t,e,n,i,r){return"inner"===i&&n.moduleLevel>1&&1===n.leafFlag?(this.$alert(n.name+"不是文件夹菜单,不能移入。",{type:"warning"}),!1):"inner"===i||(void 0===e.moduleLevel||void 0!==n.moduleLevel||(this.$alert("不能将模块菜单移出产品外。",{type:"warning"}),!1))},treeDropNode:function(t,e,n,i,r,a){var o=this,s=null,l=i.orderNo;if("inner"===r){s=i;var u=i.children;null!=u&&u.length>1&&(l=u[u.length-2].orderNo,isNaN(l)||(l=l-0+10))}else s=i.getParentNode(),isNaN(l)||("prev"===r?l-=1:l=l-0+1);var c=l+"",d=c.length;if(l>=0)if(c.length<4)for(var h=0;h<4-d;h++)c+="0";else c.length>4&&(c="9999");n.orderNo=c,n.pId=s.id,null==s.pId?(n.moduleLevel=1,n.parentId="0",n.sysCode=s.code):(n.moduleLevel=s.moduleLevel+1,n.parentId=s.id),this.$http({method:"put",data:n,url:this.moduleInfo.updateModuleUrl}).then((function(i){"success"===i.code?(o.onTreeNodeClick(t,e,n),o.$message.success("移动成功!")):o.$alert(i.message,{type:"error"})}))},addModuleMenu:function(t,e){var n=this;this.zTree.selectNode(e),this.sys=e,this.menuItem=null,this.$nextTick((function(){n.$bus.emit("addModuleMenu")}))},editSysSetup:function(t,e){var n=this;this.zTree.selectNode(e),this.sys=e,this.menuItem=null,this.$nextTick((function(){n.$bus.emit("editSysSetup")}))},addMenu:function(t,e){var n=this;this.zTree.selectNode(e),this.setMenuItem(e),this.$nextTick((function(){n.$bus.emit("addMenu")}))},editMenu:function(t,e){var n=this;this.zTree.selectNode(e),this.setMenuItem(e),this.$nextTick((function(){n.$bus.emit("editMenu")}))},deleteMenu:function(t,e){var n=this;null===this.menuItem&&(this.zTree.selectNode(e),this.setMenuItem(e)),this.$nextTick((function(){n.$bus.emit("deleteMenu",e)}))}}},Ha=ja,Ya=Object(g["a"])(Ha,Ba,Ia,!1,null,"3a5a5895",null),za=Ya.exports,Qa=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-container"},[e("data-table",{attrs:{"module-info":t.moduleInfo,"tb-columns":t.tbColumns,"toolbar-btns":t.listpageBtns,"on-list-data-before-load":t.onListDataBeforeLoad,"on-list-data-loaded":t.onListDataLoaded,"on-delete-successed":t.onDeleteSuccessed}}),e("Basicform",{attrs:{title:t.formTitle,"win-width":t.moduleInfo.winWidth,"win-height":t.moduleInfo.winHeight,"toolbar-btns":t.busiformBtns,"on-basic-form-before-open":t.onBasicFormBeforeOpen,"on-basic-form-opened":t.onBasicFormOpened,"on-basic-form-before-submit":t.onBasicFormBeforeSubmit,"on-basic-form-submited":t.onBasicFormSubmited,"fixed-height":!0},scopedSlots:t._u([{key:"default",fn:function(n){return[e("dynamic-form",{attrs:{vo:n.vo,"table-field-info":t.tableFieldInfo,"can-edit":n.canEdit,"module-info":t.moduleInfo}})]}}])})],1)},Va=[],Wa={data:function(){return{formTitle:"系统日志",moduleInfo:{listpageViewUrl:"base.sysLog.list.vue",getByIdUrl:"unifiedLog/getById",listDataUrl:"unifiedLog/listdata",delUrl:"unifiedLog/delete",listDefaultOrderBy:"operateTime desc",winWidth:1e3,winHeight:650},tbColumns:[{field:"state",checkbox:!0,width:"45px"},{field:"index",title:"序号",width:"45px",align:"center",valign:"middle"},{field:"sysName",title:"系统名称",width:"200px",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,sortable:!0},{field:"orgName",title:"单位名称",width:"200px",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,sortable:!0},{field:"personAccount",width:"100px",title:"操作账号",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,sortable:!0},{field:"personName",title:"操作人",width:"80px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},sortable:!0,searchable:!0},{field:"operateTime",title:"操作时间",width:"140px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,listAdvSearchElement:"date",propFormatter:"format:yyyy-MM-dd HH:mm:ss",propType:"java.util.Date",sortable:!0},{field:"clientIp",title:"操作IP",width:"100px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,sortable:!0},{field:"browserVersion",title:"浏览器版本",width:"100px",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,sortable:!0},{field:"clientType",title:"终端类型",width:"100px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,sortable:!0},{field:"operateDesc",title:"操作描述",align:"left",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0}],listpageBtns:[{id:"btn_download",btnName:"导出",btnIcon:"download",btnClick:"exportWform",btnPermission:"download",btnType:"toolbar"}],tableFieldInfo:[{elementCanEdit:"{${canEdit}}",elementReadonly:0,elementType:"input",formTdColspan:12,isRequired:1,propComment:"系统名称",propName:"sysName",propType:"String",textFormatter:"textfield"},{elementCanEdit:"{${canEdit}}",elementReadonly:0,elementType:"input",formTdColspan:12,isRequired:1,propComment:"系统代码",propName:"sysCode",propType:"String",textFormatter:"textfield"},{elementCanEdit:"{${canEdit}}",elementReadonly:0,elementType:"input",formTdColspan:12,isRequired:1,propComment:"单位名称",propName:"orgName",propType:"String",textFormatter:"textfield"},{elementCanEdit:"{${canEdit}}",elementReadonly:0,elementType:"input",formTdColspan:12,isRequired:1,propComment:"单位代码",propName:"orgCode",propType:"String",textFormatter:"textfield"},{elementCanEdit:"{${canEdit}}",elementReadonly:0,elementType:"input",emptyMessage:"请输入操作帐号",formTdColspan:12,isRequired:1,propComment:"操作帐号",propName:"personAccount",propType:"String",textFormatter:"textfield"},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入操作人",errorMessage:"",formTdColspan:12,isRequired:1,propComment:"操作人",propName:"personName",propType:"String",textFormatter:"textfield",valueMaxLength:255,valueMinLength:null},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入模块代码",errorMessage:"",formTdColspan:12,isRequired:1,propComment:"模块代码",propName:"moduleCode",propType:"String",textFormatter:"textfield",valueMaxLength:50,valueMinLength:null},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入操作类型",errorMessage:"",formTdColspan:12,isRequired:1,propComment:"操作类型",propName:"operateType",propType:"String",textFormatter:"textfield",valueMaxLength:50,valueMinLength:null},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入操作IP",errorMessage:"",formTdColspan:12,isRequired:1,propComment:"操作IP",propName:"clientIp",propType:"String",textFormatter:"textfield",valueMaxLength:30,valueMinLength:null},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:"",elementReadonly:0,elementType:"date",emptyMessage:"请输入操作时间",errorMessage:"",formTdColspan:12,isRequired:1,propComment:"操作时间",propName:"operateTime",propType:"java.uti.Date",textFormatter:"yyyy-MM-dd HH:mm:ss",valueMaxLength:32,valueMinLength:null},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入浏览器版本",errorMessage:"",formTdColspan:12,isRequired:1,propComment:"浏览器版本",propName:"browserVersion",propType:"String",textFormatter:"",valueMaxLength:null,valueMinLength:null},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入终端类型",errorMessage:"",formTdColspan:12,isRequired:1,propComment:"终端类型",propName:"clientType",propType:"String",textFormatter:"",valueMaxLength:30,valueMinLength:null},{defaultValue:"1",elementCanEdit:"{${canEdit}}",elementCssHeight:null,elementCssWidth:null,elementFormatter:"1:成功\n0:失败",elementReadonly:null,elementType:"radio",emptyMessage:"请选择状态 ",errorMessage:"",formTdColspan:24,isRequired:1,propComment:"操作结果 ",propName:"result",propType:"Short",textFormatter:"",valueMaxLength:null,valueMinLength:null},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementCssHeight:70,elementCssWidth:null,elementFormatter:"",elementReadonly:0,elementType:"textarea",emptyMessage:"请输入操作描述",errorMessage:"",formTdColspan:24,isRequired:1,propComment:"操作描述",propName:"operateDesc",propType:"String",textFormatter:"textarea",valueMaxLength:2147483647,valueMinLength:null},{defaultValue:"",elementCanEdit:"0",elementCssHeight:70,elementCssWidth:null,elementFormatter:"",elementReadonly:0,elementType:"textarea",emptyMessage:"请输入异常跟踪",errorMessage:"",formTdColspan:24,isRequired:0,propComment:"异常跟踪",propName:"stackTrace",propType:"String",textFormatter:"textarea",valueMaxLength:2147483647,valueMinLength:null}],busiformBtns:[{id:"btn_close",btnName:"关 闭",btnIcon:"close",btnClick:"closeDialog",btnPermission:"",btnStyleType:"default"}]}},mounted:function(){},methods:{onListDataBeforeLoad:function(t,e){this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("dwadmin=1")&&(e.urlsearch?e.urlsearch+=";orgCode:"+t.loginUser.orgCode:e.urlsearch="orgCode:"+t.loginUser.orgCode),this.moduleInfo.getByIdUrl.indexOf("logType")<0&&(this.moduleInfo.getByIdUrl.indexOf("?")<0?this.moduleInfo.getByIdUrl=this.moduleInfo.getByIdUrl+"?logType="+e.logType:this.moduleInfo.getByIdUrl=this.moduleInfo.getByIdUrl+"&logType="+e.logType)},onListDataLoaded:function(t,e){0},onBasicFormBeforeOpen:function(t,e,n){n.resolve(!0)},onBasicFormOpened:function(t,e){0},onBasicFormBeforeSubmit:function(t,e,n){this.$confirm("您是否确认提交保存?","确认操作",{type:"warning"}).then((function(){n.resolve(!0)})).catch((function(t){n.reject(t)}))},onBasicFormSubmited:function(t,e){0},onDeleteSuccessed:function(t,e){0}}},Ga=Wa,Ka=Object(g["a"])(Ga,Qa,Va,!1,null,null,null),$a=Ka.exports,qa=function(){var t=this,e=t._self._c;return e("div",{staticClass:"system_summary"},[e("main",{staticClass:"sys_main"},[e("el-scrollbar",{attrs:{native:!1,tag:"div"}},[e("div",{staticClass:"sys_header"},[e("div",{staticClass:"item",staticStyle:{background:"#FDF3E9"}},[e("div",{staticClass:"count"},[e("span",[t._v(t._s(t.data.orgNum||0))]),e("span",[t._v(t._s(t.data.sysNum||0))])]),e("div",{staticClass:"title"},[e("span",{on:{click:function(e){return t.goNav(t.jgUrl)}}},[t._v("机构数 "),e("i",{staticClass:"el-icon-arrow-right"})]),e("span",{on:{click:function(e){return t.goNav(t.cpUrl)}}},[t._v("开通产品数 "),e("i",{staticClass:"el-icon-arrow-right"})])])]),e("div",{staticClass:"item",staticStyle:{background:"#EDF8F2"}},[e("div",{staticClass:"count"},[e("span",[t._v(t._s(t.data.registerNum||0))]),e("span",[t._v(t._s(t.data.onlineNum||0))])]),e("div",{staticClass:"title"},[e("span",{on:{click:function(e){return t.goNav(t.yhUrl)}}},[t._v("注册用户总数量 "),e("i",{staticClass:"el-icon-arrow-right"})]),e("span",[t._v("在线用户数")])])]),e("div",{staticClass:"item",staticStyle:{background:"#E6E0FA"}},[e("div",{staticClass:"count"},[e("span",[t._v(t._s(t.data.processNum||0))]),e("span",[t._v(t._s(t.data.wfInstanceNum||0))])]),e("div",{staticClass:"title"},[e("span",[t._v("流程配置数")]),e("span",[t._v("流程实例数")])])]),t.data.lastLogin?e("div",{staticClass:"item",staticStyle:{background:"#EBF7FF"}},[e("div",{staticClass:"count center",staticStyle:{"font-size":"20px"}},[t._v("IP:"+t._s(t.data.lastLogin.clientIp.split(",")[0]))]),e("div",{staticClass:"title center pad6"},[t._v(t._s(t.data.lastLogin.loginTime))]),e("div",{staticClass:"title center pad6"},[t._v("上次登录信息")])]):t._e(),e("div",{staticClass:"item",staticStyle:{background:"#F2EDF8"}},[e("div",{staticClass:"count center",staticStyle:{"font-size":"20px"}},[t._v("V"+t._s(t.data.osVersion||1))]),e("div",{staticClass:"title center"},[t._v("服务器版本号")])])]),e("div",{staticClass:"content"},[e("div",{staticClass:"search"},[e("div",{staticClass:"search_left"},[e("span",{staticClass:"once"},[t._v("快捷入口")]),e("span",[t._v("可快速搜索功能入口")])]),e("div",[e("el-input",{attrs:{placeholder:"搜索功能入口",clearable:!0},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.searchClick.apply(null,arguments)}},model:{value:t.searchText,callback:function(e){t.searchText=e},expression:"searchText"}},[e("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:t.searchClick},slot:"append"})],1)],1)]),t.show?e("div",{staticClass:"list"},t._l(t.list,(function(n,i){return e("div",{key:i,staticClass:"item"},[e("div",{staticClass:"item_left"},[e("img",{attrs:{src:"/images/w-imgs/xtgl/"+(n.meta&&n.meta.icon)+".png",alt:"",srcset:""}})]),e("div",{staticClass:"item_right"},[e("div",{staticClass:"name"},[t._v(t._s(n.alias))]),e("div",{staticClass:"nav"},t._l(n.children,(function(n,i){return e("div",{key:i,staticClass:"nav_item",on:{click:function(e){return t.goNav(n)}}},[t._v(t._s(n.meta.title))])})),0)])])})),0):t._e(),t.searchlist.length>0?e("div",{staticClass:"list"},t._l(t.searchlist,(function(n,i){return e("div",{key:i,staticClass:"item"},[e("div",{staticClass:"item_left"},[e("img",{attrs:{src:"/images/w-imgs/xtgl/"+(n.meta&&n.meta.icon)+".png",alt:"",srcset:""}})]),e("div",{staticClass:"item_right"},[e("div",{staticClass:"name"},[t._v(t._s(n.alias))]),e("div",{staticClass:"nav"},t._l(n.children,(function(n,i){return e("div",{key:i,staticClass:"nav_item",on:{click:function(e){return t.goNav(n)}}},[t._v(t._s(n.meta.title))])})),0)])])})),0):t._e(),t.searchText&&0===t.searchlist.length&&!t.show?e("div",{staticStyle:{"text-align":"center","margin-top":"80px"}},[e("img",{staticStyle:{"max-width":"180px"},attrs:{src:"images/w-imgs/nomessage.png"}}),e("br"),e("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[t._v("暂无搜索结果")])]):t._e()])])],1)])},Xa=[];function Ja(t){return Ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ja(t)}function Za(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function to(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Za(Object(n),!0).forEach((function(e){eo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Za(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function eo(t,e,n){return e=no(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function no(t){var e=io(t,"string");return"symbol"==Ja(e)?e:e+""}function io(t,e){if("object"!=Ja(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=Ja(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ro={components:{},props:{},data:function(){return{searchText:"",show:!0,list:[],jgUrl:{},cpUrl:{},yhUrl:{},searchlist:[],data:{},url:"./images/systemBg.png"}},computed:to({},Object(l["a"])(["routes"])),watch:{},created:function(){var t=this,e=[],n=[];this.routes.forEach((function(i){i.meta&&1===i.meta.level&&-1===t.$route.path.indexOf(i.path)?(i.children=[],e.push(i)):i.meta&&2===i.meta.level&&(n.push(i),i.meta.title.indexOf("组织机构")>-1?t.jgUrl=i:(i.meta.title.indexOf("单位产品")>-1||i.meta.title.indexOf("门户站点管理")>-1)&&(t.cpUrl=i),i.meta.title.indexOf("注册用户")>-1&&(t.yhUrl=i))})),e.forEach((function(t){n.forEach((function(e){t.meta.id===e.meta.parentId&&t.children.push(e)}))})),this.list=e,this.getNum()},beforeDestroy:function(){},mounted:function(){},methods:{getNum:function(){var t=this;this.$http({method:"post",url:"/platStatistics/platVisit/getOnlineNumAndRegisterNum"}).then((function(e){"success"===e.code&&(t.data=e.body.data)}))},searchClick:function(){var t=this;if(this.searchText){var e=[];this.list.forEach((function(n){var i=[];if(n.children.forEach((function(e){e.meta.title&&e.meta.title.indexOf(t.searchText)>-1&&i.push(e)})),i.length>0){var r=JSON.parse(JSON.stringify(n));r.children=i,e.push(r)}})),this.searchlist=e,this.show=!1}else this.searchlist=[],this.show=!0},goNav:function(t){t.children&&t.children[0]&&(t.children[0].meta.activeMenu?this.$router.push({path:t.children[0].meta.activeMenu}):this.$router.push({path:t.children[0].path}))}}},ao=ro,oo=(n("f1da"),Object(g["a"])(ao,qa,Xa,!1,null,"9d1078e6",null)),so=oo.exports,lo=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-container"},[e("data-table",{ref:"datatablelist",attrs:{"module-info":t.moduleInfo,"tb-columns":t.tbColumns,"toolbar-btns":t.listpageBtns,"on-list-data-before-load":t.onListDataBeforeLoad,"on-list-data-loaded":t.onListDataLoaded,"on-delete-successed":t.onDeleteSuccessed}},[e("div",{attrs:{slot:"toolbarLeft-slotLeft"},slot:"toolbarLeft-slotLeft"},[e("el-select",{attrs:{placeholder:"请选择"},model:{value:t.selectValue,callback:function(e){t.selectValue=e},expression:"selectValue"}},t._l(t.options,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)]),e("Basicform",{attrs:{title:t.formTitle,"win-width":t.moduleInfo.winWidth,"win-height":t.moduleInfo.winHeight,"toolbar-btns":t.busiformBtns,"on-basic-form-before-open":t.onBasicFormBeforeOpen,"on-basic-form-opened":t.onBasicFormOpened,"on-basic-form-before-submit":t.onBasicFormBeforeSubmit,"on-basic-form-submited":t.onBasicFormSubmited},scopedSlots:t._u([{key:"default",fn:function(n){return[e("SkinSet",{ref:"SkinSet",attrs:{vo:n.vo,"can-edit":n.canEdit,"module-info":t.moduleInfo}})]}}])})],1)},uo=[],co=function(){var t=this,e=t._self._c;return e("el-form",[e("div",{staticClass:"card_box"},[e("el-card",{staticClass:"box-card_left"},[e("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("tbody",[e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t.vo.isnew?e("span",{staticClass:"required"},[t._v("*")]):t._e(),t._v("主题名称")]),e("td",{staticClass:"el-table__cell tdcont tdw33"},[e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"主题名称",rules:{required:t.vo.isnew,maxlength:40}},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{placeholder:"请输入主题名称"},model:{value:t.vo.name,callback:function(e){t.$set(t.vo,"name",e)},expression:"vo.name"}})],1)]}}])})],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t.vo.isnew?e("span",{staticClass:"required"},[t._v("*")]):t._e(),t._v("主题代码")]),e("td",{staticClass:"el-table__cell tdcont tdw33"},[e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"主题代码",rules:{required:t.vo.isnew,maxlength:40}},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{attrs:{disabled:!t.moduleInfo.isAdd,placeholder:"请输入主题代码"},model:{value:t.vo.styleCode,callback:function(e){t.$set(t.vo,"styleCode",e)},expression:"vo.styleCode"}})],1)]}}])})],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("是否默认")]),e("td",{staticClass:"el-table__cell tdcont tdw33"},[e("el-radio-group",{attrs:{name:"moduleJavaCode",placeholder:"请选择是否默认"},model:{value:t.vo.isDefault,callback:function(e){t.$set(t.vo,"isDefault",e)},expression:"vo.isDefault"}},t._l(t.statusOptions,(function(n,i){return e("el-radio",{key:i,attrs:{disabled:0===t.canEdit,label:n.value}},[t._v(t._s(n.text))])})),1)],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("栏目菜单")]),e("td",{staticClass:"el-table__cell tdcont tdw33"},[e("el-radio-group",{attrs:{name:"moduleJavaCode",placeholder:"请选择导航栏布局"},model:{value:t.vo.columnMenu,callback:function(e){t.$set(t.vo,"columnMenu",e)},expression:"vo.columnMenu"}},t._l(t.layoutOptions,(function(n,i){return e("el-radio",{key:i,attrs:{disabled:0===t.canEdit,label:n.value}},[t._v(t._s(n.label))])})),1)],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("主题分类")]),e("td",{staticClass:"el-table__cell tdcont tdw33"},[e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"主题分类",rules:{required:t.vo.isnew,maxlength:40}},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-select",{attrs:{placeholder:"请选择分类",disabled:0===t.canEdit},model:{value:t.vo.styleType,callback:function(e){t.$set(t.vo,"styleType",e)},expression:"vo.styleType"}},t._l(t.styleOptions,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)]}}])})],1)]),e("el-collapse",{attrs:{accordion:""},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-collapse-item",{attrs:{title:"主题色",name:"0"}},[e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.subjectColor,callback:function(e){t.$set(t.vo,"subjectColor",e)},expression:"vo.subjectColor"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("主题色")])])]),e("el-collapse-item",{attrs:{title:"顶部Topbar颜色设置",name:"2"}},[e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.bg,callback:function(e){t.$set(t.vo,"bg",e)},expression:"vo.bg"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("背景颜色")])]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.bgActive,callback:function(e){t.$set(t.vo,"bgActive",e)},expression:"vo.bgActive"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("选中颜色")])]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.text,callback:function(e){t.$set(t.vo,"text",e)},expression:"vo.text"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("文字颜色")])]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.textActive,callback:function(e){t.$set(t.vo,"textActive",e)},expression:"vo.textActive"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("选中文字颜色")])])]),1===t.vo.columnMenu?e("el-collapse-item",{attrs:{title:"导航栏颜色设置",name:"5"}},[e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.leftToolbarBg,callback:function(e){t.$set(t.vo,"leftToolbarBg",e)},expression:"vo.leftToolbarBg"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("导航栏背景颜色")])]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.leftToolbarActive,callback:function(e){t.$set(t.vo,"leftToolbarActive",e)},expression:"vo.leftToolbarActive"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("导航栏选中颜色")])]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.leftToolbarText,callback:function(e){t.$set(t.vo,"leftToolbarText",e)},expression:"vo.leftToolbarText"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("导航栏文字颜色")])]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.leftToolbarTextActive,callback:function(e){t.$set(t.vo,"leftToolbarTextActive",e)},expression:"vo.leftToolbarTextActive"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("侧边栏选中文字颜色")])])]):t._e(),e("el-collapse-item",{attrs:{title:"侧边栏颜色设置",name:"3"}},[e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.lmBg,callback:function(e){t.$set(t.vo,"lmBg",e)},expression:"vo.lmBg"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("侧边栏背景颜色")])]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.lmActive,callback:function(e){t.$set(t.vo,"lmActive",e)},expression:"vo.lmActive"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("侧边栏选中颜色")])]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.lmText,callback:function(e){t.$set(t.vo,"lmText",e)},expression:"vo.lmText"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("侧边栏文字颜色")])]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.lmTextActive,callback:function(e){t.$set(t.vo,"lmTextActive",e)},expression:"vo.lmTextActive"}})],1),e("td",{staticClass:"el-table__cell tdlbl titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("侧边栏选中文字颜色")])])]),e("el-collapse-item",{attrs:{title:"背景图设置",name:"4"}},[e("tr",{staticStyle:{display:"flex","margin-left":"10px"}},[e("div",{staticClass:"block"},[e("el-upload",{ref:"uploadImg",staticClass:"avatar-uploader",attrs:{action:"","file-list":t.fileList,"show-file-list":!1,"on-change":t.handleUploadChange}},[t.fulUrl&&!t.file?e("div",{staticClass:"avatar-box"},[e("img",{staticClass:"avatar",attrs:{src:t.fulUrl}})]):t.file?e("div",{staticClass:"avatar-box"},[e("img",{staticClass:"avatar",attrs:{src:t.file}})]):e("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),e("div",{staticStyle:{"line-height":"calc(100px/1.778)","padding-left":"5px","font-weight":"700"}},[e("span",{staticClass:"required",staticStyle:{color:"#ff0000"}},[t._v("*")]),t._v("顶部导航背景图 ")])]),e("tr",{staticStyle:{display:"flex","margin-left":"10px"}},[e("div",{staticClass:"block"},[e("el-upload",{staticClass:"avatar-uploader",attrs:{action:"","file-list":t.fileListCb,"show-file-list":!1,"on-change":t.handleUploadChangeCb}},[t.fulUrlCb&&!t.fileCb?e("div",{staticClass:"avatar-box"},[e("img",{staticClass:"avatar",attrs:{src:t.fulUrlCb}})]):t.fileCb?e("div",{staticClass:"avatar-box"},[e("img",{staticClass:"avatar",attrs:{src:t.fileCb}})]):e("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),e("div",{staticStyle:{"line-height":"calc(100px/1.778)","padding-left":"5px","font-weight":"700"}},[e("span",{staticClass:"required",staticStyle:{color:"#ff0000"}},[t._v("*")]),t._v("侧边导航背景图 ")])]),e("tr",{staticStyle:{display:"flex","margin-left":"10px"}},[e("div",{staticClass:"block"},[e("el-upload",{staticClass:"avatar-uploader",attrs:{action:"","file-list":t.fileListWork,"show-file-list":!1,"on-change":t.handleUploadChangeWork}},[t.fulUrlWork&&!t.fileWork?e("div",{staticClass:"avatar-box"},[e("img",{staticClass:"avatar",attrs:{src:t.fulUrlWork}})]):t.fileWork?e("div",{staticClass:"avatar-box"},[e("img",{staticClass:"avatar",attrs:{src:t.fileWork}})]):e("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),e("div",{staticStyle:{"line-height":"calc(100px/1.778)","padding-left":"5px","font-weight":"700"}},[e("span",{staticClass:"required",staticStyle:{color:"#ff0000"}},[t._v("*")]),t._v("工作区背景图 ")])])])],1)],1)])]),e("div",[1==t.vo.styleType?e("el-card",{staticClass:"box-card_right",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("span",{staticStyle:{flex:"1","font-weight":"700",color:"#000"}},[t._v("生效时间段")]),e("el-date-picker",{staticStyle:{flex:"7"},attrs:{type:"datetimerange",format:"yyyy-MM-dd HH:mm","value-format":"yyyy-MM-dd HH:mm","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.vo.holidayTime,callback:function(e){t.$set(t.vo,"holidayTime",e)},expression:"vo.holidayTime"}})],1)]):t._e(),e("el-card",{staticClass:"box-card_right"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("span",[t._v("效果预览")])]),e("div",{staticClass:"text item location"},[e("div",{staticClass:"zs_top",style:{backgroundColor:t.vo.bg}},[e("div",{staticStyle:{height:"40px","align-items":"center",display:"flex","margin-left":"20px","font-size":"12px"}},[e("img",{staticStyle:{width:"20px"},attrs:{src:t.logo,alt:""}}),e("span",{style:{"font-weight":"700",margin:"0 10px",color:t.vo.text}},[t._v("易臣云办公")])]),0===t.vo.columnMenu?e("el-menu",{ref:"menu",staticClass:"el-menu-demo",attrs:{"background-color":t.vo.bg,"text-color":t.vo.text,"active-text-color":t.vo.textActive,"default-active":t.activeMenu,mode:"horizontal","unique-opened":""},on:{select:t.handleMenuSelect}},[e("el-menu-item",{style:{borderBottomColor:t.vo.bg},attrs:{index:"1"}},[t._v("导航栏1")]),e("el-menu-item",{style:{borderBottomColor:t.vo.bg},attrs:{index:"2"}},[t._v("导航栏2")])],1):t._e(),t.fulUrl?e("div",{staticStyle:{position:"absolute",height:"40px",right:"0",width:"385px"}},[e("img",{staticStyle:{height:"40px"},attrs:{src:t.fulUrl,alt:""}})]):t._e()],1),e("div",{staticStyle:{display:"flex"}},[1===t.vo.columnMenu?e("div",{staticClass:"daohang",style:{backgroundColor:t.vo.leftToolbarBg}},[e("div",{staticClass:"daohang-item",style:{backgroundColor:t.vo.leftToolbarActive}},[e("svg-icon",{style:{color:t.vo.leftToolbarTextActive?t.vo.leftToolbarTextActive:t.vo.leftToolbarText},attrs:{"icon-class":"bdpz"}}),e("span",{style:{color:t.vo.leftToolbarTextActive?t.vo.leftToolbarTextActive:t.vo.leftToolbarText}},[t._v("导航栏1")])],1),e("div",{staticClass:"daohang-item"},[e("svg-icon",{style:{color:t.vo.leftToolbarText},attrs:{"icon-class":"bdpz"}}),e("span",{style:{color:t.vo.leftToolbarText}},[t._v("导航栏2")])],1),t.fulUrlCb?e("div",{staticStyle:{position:"absolute",bottom:"0",width:"100%"}},[e("img",{attrs:{src:t.fulUrlCb,alt:""}})]):t._e()]):t._e(),e("div",{staticClass:"zs_right",style:{backgroundColor:t.vo.lmBg,width:"89px"}},[e("el-row",{staticClass:"tac"},[e("el-col",{attrs:{span:12}},[e("el-menu",{ref:"menu1",staticClass:"el-menu-vertical-demo",attrs:{"default-active":"activeMenu1","background-color":t.vo.lmBg,"text-color":t.vo.lmText,"active-text-color":t.vo.lmTextActive},on:{select:t.handleMenuSelect1}},[e("el-menu-item",{attrs:{index:"1"}},[e("svg-icon",{staticStyle:{"margin-right":"10px"},attrs:{"icon-class":"bdpz"}}),e("span",{attrs:{slot:"title"},slot:"title"},[t._v("菜单1")])],1),e("el-menu-item",{attrs:{index:"2"}},[e("svg-icon",{staticStyle:{"margin-right":"10px"},attrs:{"icon-class":"bdpz"}}),e("span",{attrs:{slot:"title"},slot:"title"},[t._v("菜单2")])],1)],1)],1)],1),t.fulUrlCb&&1===t.vo.nameField?e("div",{staticStyle:{position:"absolute",bottom:"0",width:"89px"}},[e("img",{attrs:{src:t.fulUrlCb,alt:""}})]):t._e()],1),e("div",[e("img",{staticStyle:{height:"420px"},attrs:{src:n("5715"),alt:""}})])])])])],1)],1),e("el-dialog",{attrs:{title:"请裁剪","append-to-body":"",visible:t.dialogVisible,width:"100%",top:"0"},on:{"update:visible":function(e){t.dialogVisible=e}}},[e("div",{staticClass:"btn"},[e("el-button",{on:{click:t.cancel}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.ok}},[t._v("确 定")])],1),e("div",{staticStyle:{width:"100%"},style:{height:t.vueHeight}},[e("vue-cropper",{ref:"cropper",attrs:{img:t.originImg,full:!0,"output-type":"png","auto-crop-width":"1900","auto-crop-height":"1900","center-box":!0,"can-scale":!0,"auto-crop":!0,fixed:!1,"can-move":!0}})],1)])],1)},ho=[];function fo(t){return fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fo(t)}function po(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */po=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),s=new D(i||[]);return r(o,"_invoke",{value:T(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function v(){}function y(){}function A(){}var b={};u(b,o,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==n&&i.call(w,o)&&(b=w);var x=A.prototype=v.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,a,o,s){var l=d(t[r],t,a);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==fo(c)&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var a;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return a=a?a.then(r,r):r()}})}function T(e,n,i){var r=h;return function(a,o){if(r===p)throw Error("Generator is already running");if(r===g){if("throw"===a)throw o;return{value:t,done:!0}}for(i.method=a,i.arg=o;;){var s=i.delegate;if(s){var l=M(s,i);if(l){if(l===m)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var u=d(e,n,i);if("normal"===u.type){if(r=i.done?g:f,u.arg===m)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=g,i.method="throw",i.arg=u.arg)}}}function M(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var a=d(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(fo(e)+" is not iterable")}return y.prototype=A,r(x,"constructor",{value:A,configurable:!0}),r(A,"constructor",{value:y,configurable:!0}),y.displayName=u(A,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var o=new C(c(t,n,i,r),a);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(x),u(x,l,"Generator"),u(x,o,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=E,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:E(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}function go(t,e,n,i,r,a,o){try{var s=t[a](o),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(i,r)}function mo(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){go(a,i,r,o,s,"next",t)}function s(t){go(a,i,r,o,s,"throw",t)}o(void 0)}))}}var vo=n("b8fb"),yo=(vo.title,vo.logo),Ao={props:{moduleInfo:{type:Object,default:function(){return{}}},vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1}},data:function(){return{statusOptions:[{value:1,text:"是"},{value:0,text:"否"}],styleOptions:[{value:0,label:"纯色主题"},{value:1,label:"四季节日"},{value:2,label:"商务主题"}],layoutOptions:[{value:0,label:"顶部"},{value:1,label:"左侧"}],activeName:"0",imageUrl:"",photoFile:null,base_api:"",fileList:[],fileListCb:[],fileListWork:[],originImg:"",fulUrl:"",fulUrlCb:"",fulUrlWork:"",dialogVisible:!1,file:"",vueHeight:"",fileCb:"",fileWork:"",imgType:"",activeMenu:"1",activeMenu1:"1",logo:yo}},watch:{"vo.columnMenu":function(t){1===t&&(this.vo.lmTextActive="#002767",this.vo.lmText="#303133",this.vo.lmActive="#E0E7F3",this.vo.lmBg="#FFFFFF")}},created:function(){console.log(this.vo,144),this.base_api="/apigw",this.vo.topbarBgImg&&(this.fulUrl="/apigw/base/styleConfig/download?nameField=topbarBgImg&dataField=topbarBgImgFile&id="+this.vo.id),this.vo.lmBgImg&&(this.fulUrlCb="/apigw/base/styleConfig/download?nameField=lmBgImg&dataField=lmBgImgFile&id="+this.vo.id),this.vo.workspaceBgImg&&(this.fulUrlWork="/apigw/base/styleConfig/download?nameField=workspaceBgImg&dataField=workspaceBgImgFile&id="+this.vo.id),this.logo="/apigw/base/sysSetup/downloadLogoBySysCode?sysCode="+this.loginUser.sysCode},beforeDestroy:function(){},mounted:function(){var t=this;this.vueHeight=document.body.clientHeight-100+"px";var e=document.querySelector(".img-rview");null!==e&&(1===this.canEdit?e.style.maxHeight="70px":e.style.maxHeight="115px"),this.$nextTick((function(){t.initializeDefaultActiveMenuItem(),t.initializeDefaultActiveMenuItem1()}))},methods:{handleOpen:function(t,e){console.log(t,e)},handleClose:function(t,e){console.log(t,e)},initializeDefaultActiveMenuItem:function(){var t=this.$refs.menu.$el.querySelector(".el-menu-item:first-child");t&&(t.style.backgroundColor=this.vo.bgActive,t.style.color=this.vo.textActive)},initializeDefaultActiveMenuItem1:function(){var t=this.$refs.menu1.$el.querySelector(".el-menu-item:first-child");t&&(t.style.backgroundColor=this.vo.lmActive,t.style.color=this.vo.lmTextActive)},handleMenuSelect:function(t){this.activeMenu=t},handleMenuSelect1:function(t){this.activeMenu1=t},getBase64:function(t,e){var n=new FileReader;n.addEventListener("load",(function(){return e(n.result)})),n.readAsDataURL(t)},cancel:function(){this.dialogVisible=!1,this.$refs.uploadImg.clearFiles()},ok:function(){var t=this;console.log(126,this),this.$refs.cropper.getCropData((function(e){if("top"===t.imgType){t.file=e;var n=t.dataURLtoBlob(e,t.vo.topbarBgImg);n.id=t.vo.id,t.fileList[0].raw=n}else if("cb"===t.imgType){t.fileCb=e;var i=t.dataURLtoBlob(e,t.vo.topbarBgImg);i.id=t.vo.id,t.fileListCb[0].raw=i}else if("work"===t.imgType){t.fileWork=e;var r=t.dataURLtoBlob(e,t.vo.topbarBgImg);r.id=t.vo.id,t.fileListWork[0].raw=r}console.log("data",e)})),this.dialogVisible=!1},dataURLtoBlob:function(t,e){var n=t.split(","),i=n[0].match(/:(.*?);/)[1],r=atob(n[1]),a=r.length,o=new Uint8Array(a);while(a--)o[a]=r.charCodeAt(a);return new File([o],e,{type:i})},blobToFile:function(t,e){return t.lastModifiedDate=new Date,t.name=e,t.uid=(new Date).getTime(),new window.File(t,e)},deleteImg:function(){this.file="",this.$refs.uploadImg.clearFiles()},handleUploadChange:function(t,e){var n=this;console.log(t,"filed"),console.log(e,"fileList"),-1!==t.name.indexOf(".jpg")||-1!==t.name.indexOf(".png")||-1!==t.name.indexOf(".JPG")||-1!==t.name.indexOf(".PNG")?(t.id=this.vo.id,this.fileList=[t],this.vo.topbarBgImg=t.name,this.files="",this.files=t,this.dialogVisible=!0,this.imgType="top",this.getBase64(t.raw,(function(t){n.originImg=t})),console.log("this.originImg",this.originImg)):this.$alert("上传文件格式错误","提示",{confirmButtonText:"确定",type:"warning"})},handleUploadChangeCb:function(t,e){var n=this;return mo(po().mark((function e(){return po().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(-1!==t.name.indexOf(".jpg")||-1!==t.name.indexOf(".png")||-1!==t.name.indexOf(".JPG")||-1!==t.name.indexOf(".PNG")){e.next=3;break}return n.$alert("上传文件格式错误","提示",{confirmButtonText:"确定",type:"warning"}),e.abrupt("return");case 3:t.id=n.vo.id,n.fileListCb=[t],n.vo.lmBgImg=t.name,n.dialogVisible=!0,n.imgType="cb",n.getBase64(t.raw,(function(t){n.originImg=t}));case 9:case"end":return e.stop()}}),e)})))()},handleUploadChangeWork:function(t,e){var n=this;return mo(po().mark((function e(){return po().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(-1!==t.name.indexOf(".jpg")||-1!==t.name.indexOf(".png")||-1!==t.name.indexOf(".JPG")||-1!==t.name.indexOf(".PNG")){e.next=3;break}return n.$alert("上传文件格式错误","提示",{confirmButtonText:"确定",type:"warning"}),e.abrupt("return");case 3:t.id=n.vo.id,n.fileListWork=[t],n.vo.workspaceBgImg=t.name,n.dialogVisible=!0,n.imgType="work",n.getBase64(t.raw,(function(t){n.originImg=t}));case 9:case"end":return e.stop()}}),e)})))()},uploadfile:function(){this.uploadfileTop(),this.uploadfileCb(),this.uploadfileWork()},uploadfileTop:function(){var t=this;return mo(po().mark((function e(){var n;return po().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(0!==t.fileList.length){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.$app.upload("base/styleConfig/upload",t.fileList[0].raw,{id:t.vo.id,nameField:"topbarBgImg",dataField:"topbarBgImgFile"});case 4:n=e.sent,"success"===n.code?t.$message({type:"success",message:"顶部导航背景上传成功!"}):t.$message.error("顶部导航背景上传失败!");case 6:case"end":return e.stop()}}),e)})))()},uploadfileCb:function(){var t=this;return mo(po().mark((function e(){var n;return po().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(0!==t.fileListCb.length){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.$app.upload("base/styleConfig/upload",t.fileListCb[0].raw,{id:t.vo.id,nameField:"lmBgImg",dataField:"lmBgImgFile"});case 4:n=e.sent,"success"===n.code?t.$message({type:"success",message:"侧边导航背景上传成功!"}):t.$message.error("侧边导航背景上传失败!");case 6:case"end":return e.stop()}}),e)})))()},uploadfileWork:function(){var t=this;return mo(po().mark((function e(){var n;return po().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(0!==t.fileListWork.length){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.$app.upload("base/styleConfig/upload",t.fileListWork[0].raw,{id:t.vo.id,nameField:"workspaceBgImg",dataField:"workspaceBgImgFile"});case 4:n=e.sent,"success"===n.code?t.$message({type:"success",message:"工作区导航背景上传成功!"}):t.$message.error("工作区导航背景上传失败!");case 6:case"end":return e.stop()}}),e)})))()}}},bo=Ao,_o=(n("4415"),Object(g["a"])(bo,co,ho,!1,null,"24bfacf0",null)),wo=_o.exports,xo=(n("c1df"),{components:{SkinSet:wo},data:function(){return{loginUser:{},isPortal:!1,moduleInfo:{winWidth:1100,delUrl:"base/styleConfig/delete",addNewUrl:"base/styleConfig/addNew",insertUrl:"base/styleConfig/insert",moduleCode:"user",winHeight:600,updateUrl:"base/styleConfig/update",listDataUrl:"base/styleConfig/listdata",getByIdUrl:"base/styleConfig/getById",uploadPhotoUrl:"base/styleConfig/upload"},tbColumns:[{field:"state",checkbox:!0,width:"45px",sortable:!1,align:"center"},{listAdvSearchElement:"",field:"index",width:"45px",sortable:!1,propType:"",align:"center",title:"序号",searchable:!1},{listAdvSearchElement:"input",listAdvSearchIndex:0,field:"sysName",sortable:!1,propType:"String",align:"left",title:"系统名称",searchable:!0},{listAdvSearchElement:"input",field:"name",width:"150px",sortable:!0,propType:"String",align:"center",title:"主题名称",searchable:!0},{listAdvSearchElement:"input",field:"styleCode",width:"150px",sortable:!0,propType:"String",align:"center",title:"主题代码",searchable:!0},{listAdvSearchElement:"input",field:"columnMenu",width:"150px",sortable:!0,elementFormatter:"0:顶部\n1:左侧\n",propType:"String",align:"center",title:"栏目菜单",searchable:!0},{listAdvSearchElement:"input",field:"styleType",width:"150px",sortable:!0,elementFormatter:"0:纯色主题\n1:四季节日\n2:商务主题\n",propType:"String",align:"center",title:"主题类型",searchable:!0},{listAdvSearchElement:"select",field:"isDefault",width:"100px",elementFormatter:"0:否\n1:是\n",sortable:!0,propType:"Short",align:"center",title:"是否默认 ",searchable:!0}],listpageBtns:[{btnName:"新增",btnIcon:"plus",btnClick:"addObject();",btnPermission:"addObject",id:"btn_add",btnType:"toolbar"},{btnName:"删除",btnIcon:"close",btnClick:"deleteIds();",btnPermission:"deleteIds",id:"btn_deleteIds",btnType:"toolbar"},{btnName:"编辑",btnIcon:"edit",btnClick:"editObject(row.id);",btnPermission:"editObject",id:"btn_edit",btnType:"column"},{btnName:"删除",btnIcon:"delete",btnClick:"deleteIds(row.id);",btnPermission:"deleteIds",id:"btn_deleteId",btnType:"column"}],busiformBtns:[],formTitle:"皮肤设置",base_api:"",options:[{value:0,label:"顶部导航布局"},{value:1,label:"左侧导航布局"}],selectValue:0}},computed:{},watch:{selectValue:function(t){this.$bus.emit("refreshListData")}},created:function(){this.base_api="/apigw",this.moduleInfo.listpageViewUrl="";var t=this;this.listpageBtns.forEach((function(e){if(e.btnParams=null,"string"===typeof e.btnClick){var n=e.btnClick;if(-1!==e.btnClick.indexOf("(")){var i=n.substring(n.indexOf("(")+1,n.lastIndexOf(")"));""!==i&&(i=i.replace(/'/g,"").split(","),e.btnParams=i),n=n.split("(")[0]}t[n]&&(e.btnClick=t[n])}})),this.tbColumns[this.tbColumns.length]={field:"column_operate",title:"操作",width:"70px",align:"center",valign:"middle"},this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("isPortal=1")&&(this.isPortal=!0),this.$bus.on("setOrgItemTree",this.setOrgItem)},beforeDestroy:function(){this.$bus.off("setOrgItemTree",this.setOrgItem)},mounted:function(){},methods:{setOrgItem:function(t){this.$refs.datatablelist.loadListdata()},onListDataBeforeLoad:function(t,e){this.loginUser=t.loginUser,e.sysCode=null;var n="plat"===this.loginUser.orgCode&&localStorage.orgItem?JSON.parse(localStorage.orgItem).sysCode:"";this.isPortal?e.urlsearch?e.urlsearch+=";sysCode:"+n:e.urlsearch="sysCode:"+n:e.urlsearch="orgCode:"+this.loginUser.orgCode+";columnMenu:"+this.selectValue,console.log("person listdata before load..")},onListDataLoaded:function(t,e){console.log("person listdata loaded")},onDeleteSuccessed:function(t,e){console.log("person delete successed")},onBasicFormBeforeOpen:function(t,e,n){var i="",r=new Date,a=r.getFullYear(),o=String(r.getMonth()+1).padStart(2,"0"),s=String(r.getDate()).padStart(2,"0"),l=String(r.getHours()).padStart(2,"0"),u=String(r.getMinutes()).padStart(2,"0"),c=String(r.getSeconds()).padStart(2,"0");i="".concat(a,"-").concat(o,"-").concat(s," ").concat(l,":").concat(u,":").concat(c),1==e.styleType&&null==e.holidayTime[0]&&(e.holidayTime[0]=i,e.holidayTime[1]=i),e.styleCode?this.moduleInfo.isAdd=!1:this.moduleInfo.isAdd=!0,n.resolve(!0)},onBasicFormOpened:function(t,e){0},onBasicFormBeforeSubmit:function(t,e,n){if(e.startTime=e.holidayTime?e.holidayTime[0]:"",e.endTime=e.holidayTime?e.holidayTime[1]:"",e.topbarBgImg||e.lmBgImg){if(!e.workspaceBgImg)return t.$message.warning("请上传工作区背景图!"),void n.resolve(!1);n.resolve(!0)}else n.resolve(!0)},onBasicFormSubmited:function(t,e){console.log("this.$refs.SkinSet",this.$refs.SkinSet),this.$refs.SkinSet.uploadfile()}}}),So=xo,Co=Object(g["a"])(So,lo,uo,!1,null,"62e95700",null),To=Co.exports,Mo=function(){var t=this,e=t._self._c;return e("el-form",[e("div",{staticClass:"card_box"},[e("el-card",{staticClass:"box-card_left"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("span",[t._v("色组")])]),e("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("tbody",[e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t.vo.isnew?e("span",{staticClass:"required"},[t._v("*")]):t._e(),t._v("主题名称")]),e("td",{staticClass:"el-table__cell tdcont tdw33"},[e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"主题名称",rules:{required:t.vo.isnew,maxlength:40}},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{placeholder:"请输入主题名称"},model:{value:t.vo.name,callback:function(e){t.$set(t.vo,"name",e)},expression:"vo.name"}})],1)]}}])})],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[t.vo.isnew?e("span",{staticClass:"required"},[t._v("*")]):t._e(),t._v("主题代码")]),e("td",{staticClass:"el-table__cell tdcont tdw33"},[e("ValidationProvider",{ref:"ValidationProvider",attrs:{name:"主题代码",rules:{required:t.vo.isnew,maxlength:40}},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.errors;return[e("el-tooltip",{class:{"invalid-field":void 0!==i[0]},attrs:{disabled:void 0===i[0],content:i[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[e("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{placeholder:"请输入主题代码"},model:{value:t.vo.styleCode,callback:function(e){t.$set(t.vo,"styleCode",e)},expression:"vo.styleCode"}})],1)]}}])})],1)]),e("tr",[e("td",{staticClass:"el-table__cell tdlbl tdw17"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("是否默认")]),e("td",{staticClass:"el-table__cell tdcont tdw33"},[e("el-radio-group",{attrs:{name:"moduleJavaCode",placeholder:"请选择是否默认"},model:{value:t.vo.isDefault,callback:function(e){t.$set(t.vo,"isDefault",e)},expression:"vo.isDefault"}},t._l(t.statusOptions,(function(n,i){return e("el-radio",{key:i,attrs:{disabled:0===t.canEdit,label:n.value}},[t._v(t._s(n.text))])})),1)],1)]),e("tr",{staticClass:"left_content"},[e("div",{staticClass:"block"},[e("el-color-picker",{attrs:{disabled:0===t.canEdit},model:{value:t.vo.bg,callback:function(e){t.$set(t.vo,"bg",e)},expression:"vo.bg"}})],1),e("td",{staticClass:"el-table__cell tdlbl tdw17 titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("背景颜色")])]),e("tr",[e("div",{staticClass:"block"},[e("el-color-picker",{model:{value:t.vo.bgActive,callback:function(e){t.$set(t.vo,"bgActive",e)},expression:"vo.bgActive"}})],1),e("td",{staticClass:"el-table__cell tdlbl tdw17 titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("选中颜色")])]),e("tr",[e("div",{staticClass:"block"},[e("el-color-picker",{model:{value:t.vo.text,callback:function(e){t.$set(t.vo,"text",e)},expression:"vo.text"}})],1),e("td",{staticClass:"el-table__cell tdlbl tdw17 titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("文字颜色")])]),e("tr",[e("div",{staticClass:"block"},[e("el-color-picker",{model:{value:t.vo.textActive,callback:function(e){t.$set(t.vo,"textActive",e)},expression:"vo.textActive"}})],1),e("td",{staticClass:"el-table__cell tdlbl tdw17 titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("选中文字颜色")])]),e("tr",[e("div",{staticClass:"block"},[e("el-color-picker",{model:{value:t.vo.lmGb,callback:function(e){t.$set(t.vo,"lmGb",e)},expression:"vo.lmGb"}})],1),e("td",{staticClass:"el-table__cell tdlbl tdw17 titleAlign"},[e("span",{staticClass:"required"},[t._v("*")]),t._v("侧边栏选中颜色")])])])])]),e("el-card",{staticClass:"box-card_right"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("span",[t._v("效果预览")])]),e("div",{staticClass:"text item location"},[e("div",{staticClass:"daohang1"},[e("span",{style:{color:t.vo.text}},[t._v("导航1")])]),e("div",{staticClass:"caidan1"},[e("span",{style:{backgroundColor:t.vo.bg}},[t._v("菜单1")])]),e("div",{staticClass:"daohang2"},[e("span",{style:{backgroundColor:t.vo.bg}},[t._v("导航1")])]),e("div",{staticClass:"jiantou"},[e("span",{style:{backgroundColor:t.vo.lmGb}})])])])],1)])},ko=[],Lo={props:{moduleInfo:{type:Object,default:function(){return{}}},vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1}},data:function(){return{statusOptions:[{value:1,text:"是"},{value:0,text:"否"}]}},watch:{},created:function(){console.log(this.vo)},beforeDestroy:function(){},mounted:function(){var t=document.querySelector(".img-rview");null!==t&&(1===this.canEdit?t.style.maxHeight="70px":t.style.maxHeight="115px")},methods:{}},Do=Lo,Eo=(n("b5f1"),Object(g["a"])(Do,Mo,ko,!1,null,"16c7e274",null)),Bo=Eo.exports,Io=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"left"}},[t._m(0),e("div",{staticClass:"name"},[e("span",{staticClass:"tip"},[t._v("场景名称: ")]),e("el-input",{staticStyle:{width:"130px",display:"inline-blobk"},attrs:{placeholder:"请输入场景名称",size:"small"},model:{value:t.process.name,callback:function(e){t.$set(t.process,"name",e)},expression:"process.name"}})],1),e("div",{staticClass:"type"},[e("span",{staticClass:"tip"},[t._v("场景类型: ")]),e("el-select",{staticStyle:{width:"130px",display:"inline-blobk"},attrs:{placeholder:"请选择场景类型",size:"small"},model:{value:t.process.type,callback:function(e){t.$set(t.process,"type",e)},expression:"process.type"}},t._l(t.options,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),e("div",{staticClass:"status"},[e("span",{staticClass:"tip"},[t._v("状态: ")]),e("span",[t._v(t._s(t.getStatus(t.process.status)))])])])},Oo=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"info"},[t._v(" 基本信息 "),e("i",{staticClass:"el-icon-edit"})])}],Po={components:{},data:function(){return{options:[{label:"快速打开",value:0},{label:"沟通协作",value:1},{label:"查找信息",value:2},{label:"业务处理",value:3},{label:"查找日程",value:6},{label:"查找任务安排",value:10}],process:{}}},computed:{},watch:{},created:function(){this.$bus.on("emitProcess",this.processhandler)},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){this.$bus.off("emitProcess",this.processhandler)},destroyed:function(){},activated:function(){},methods:{processhandler:function(t){this.process=t},getStatus:function(t){var e="";return-1!==t&&0!==t||(e="草稿"),1===t&&(e="已上线"),2===t&&(e="已下线"),e}}},No=Po,Fo=(n("d876"),Object(g["a"])(No,Io,Oo,!1,null,"005136ec",null)),Uo=Fo.exports,Ro=function(){var t=this,e=t._self._c;return e("div",{staticClass:"designer-container"},[e("div",{staticClass:"designer-header-container"},[e("SidebarLogo",{attrs:{title:t.title,logo:t.logoUrl}}),e("TopBtn")],1),e("div",{staticClass:"main",on:{click:t.click}},[e("side-bar",{ref:"siderefs",on:{getStatus:t.getStatus}}),e("menu-bar"),e("center"),e("right-form")],1)])},jo=[],Ho=function(){var t=this,e=t._self._c;return e("div",{staticClass:"menu-bar",attrs:{id:"left"}},[e("ul",{staticClass:"domList jd-box"},[e("li",{staticClass:"start",staticStyle:{display:"none"}},[e("div",{staticClass:"jd-item"},[e("img",{attrs:{src:t.start,width:"20",alt:""}}),e("div",{staticClass:"jd-text"},[t._v("开始")])])]),e("div",{staticClass:"xzzx"},[e("div",{staticClass:"case-line",on:{click:function(e){return e.stopPropagation(),t.showLineText.apply(null,arguments)}}},[e("img",{directives:[{name:"show",rawName:"v-show",value:1===t.lineType,expression:"lineType === 1"}],staticClass:"zhexian",attrs:{src:t.zhexian,width:"20",alt:""}}),e("img",{directives:[{name:"show",rawName:"v-show",value:2===t.lineType,expression:"lineType === 2"}],staticClass:"zhixian",attrs:{src:t.zhixian,width:"20",alt:""}}),e("img",{directives:[{name:"show",rawName:"v-show",value:3===t.lineType,expression:"lineType === 3"}],staticClass:"quxian",attrs:{src:t.quxian,width:"20",alt:""}}),e("el-popover",{attrs:{placement:"right",width:"80",trigger:"manual","popper-class":"hoverPop"},model:{value:t.showpopover,callback:function(e){t.showpopover=e},expression:"showpopover"}},[e("div",{staticClass:"line-box"},[e("div",{staticClass:"line-item boder-item",staticStyle:{"padding-left":"15px","padding-bottom":"8px","padding-top":"8px",cursor:"pointer","border-bottom":"1px solid #eee"},on:{click:function(e){return t.swichLine(2)}}},[e("img",{staticClass:"line-box-img",attrs:{src:t.zhixian,alt:""}}),e("span",{staticStyle:{"margin-left":"12px"}},[t._v("直线")])]),e("div",{staticClass:"line-item",staticStyle:{"padding-left":"15px","padding-bottom":"8px","padding-top":"8px",cursor:"pointer","border-bottom":"1px solid #eee"},on:{click:function(e){return t.swichLine(1)}}},[e("img",{staticClass:"line-box-img-normal",attrs:{src:t.zhexian,alt:""}}),e("span",{staticStyle:{"margin-left":"12px"}},[t._v("折线")])]),e("div",{staticClass:"line-item",staticStyle:{"padding-left":"15px","padding-bottom":"8px",cursor:"pointer","padding-top":"8px"},on:{click:function(e){return t.swichLine(3)}}},[e("img",{staticClass:"line-box-img-normal",attrs:{src:t.quxian,alt:""}}),e("span",{staticStyle:{"margin-left":"12px"}},[t._v("曲线")])])]),e("div",{staticClass:"case-text",attrs:{slot:"reference"},slot:"reference"},[t._v("连接线"),e("i",{staticClass:"el-icon-caret-bottom"})])])],1)])]),e("div",{staticClass:"select-node"},[e("el-scrollbar",{attrs:{native:!1}},[e("ul",{staticClass:"domList jd-box"},[e("li",{staticClass:"ptjd"},[e("div",{staticClass:"jd-item"},[e("img",{attrs:{src:t.ptjd,width:"20",alt:""}}),e("div",{staticClass:"jd-text"},[t._v("普通节点")])])]),e("li",{staticClass:"zxjd"},[e("div",{staticClass:"jd-item"},[e("img",{attrs:{src:t.zxjd,width:"20",alt:""}}),e("div",{staticClass:"jd-text"},[t._v("执行节点")])])])])])],1)])},Yo=[],zo={components:{},props:{},data:function(){return{lineType:1,showpopover:!1,start:"/images/w-imgs/definition/left/l_start.png",ptjd:"/images/w-imgs/definition/left/l_ptjd.png",zxjd:"/images/w-imgs/definition/left/l_zxjd.png",zhixian:"/images/w-imgs/definition/left/left-zhixian.png",zhexian:"/images/w-imgs/definition/left/left-zhexian.png",quxian:"/images/w-imgs/definition/left/left-quxian.png"}},computed:{},watch:{lineType:function(t){this.$bus.emit("watchLine",t)}},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{swichLine:function(t){this.lineType=t,this.showpopover=!1},showLineText:function(){this.showpopover=!0},onClick:function(){this.showpopover=!1}}},Qo=zo,Vo=(n("74b7"),n("aa52"),Object(g["a"])(Qo,Ho,Yo,!1,null,"2c61dcdc",null)),Wo=Vo.exports,Go=function(){var t=this;t._self._c;return t._m(0)},Ko=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"center-container"},[e("div",{attrs:{id:"center"}},[e("ul",{staticClass:"dropdown-menu"},[e("li",[e("a",{attrs:{id:"leftAlign",href:"javascript:;"}},[t._v("左对齐")])]),e("li",[e("a",{attrs:{id:"deleteNode",href:"javascript:;"}},[t._v("删除节点")])]),e("li",[e("a",{attrs:{id:"deleteLine",href:"javascript:;"}},[t._v("删除连接")])]),e("li",[e("a",{attrs:{id:"verticalAlign",href:"javascript:;"}},[t._v("垂直居中对齐")])]),e("li",[e("a",{attrs:{id:"verticalMean",href:"javascript:;"}},[t._v("垂直平局分布")])]),e("li",[e("a",{attrs:{id:"topAlign",href:"javascript:;"}},[t._v("顶端对齐")])]),e("li",[e("a",{attrs:{id:"levelAlign",href:"javascript:;"}},[t._v("水平居中对齐")])]),e("li",[e("a",{attrs:{id:"levelMean",href:"javascript:;"}},[t._v("水平平局分布")])])])])])}],$o=n("1157"),qo=n.n($o),Xo={};function Jo(){for(var t=[],e="0123456789abcdef",n=0;n<36;n++)t[n]=e.substr(Math.floor(16*Math.random()),1);t[14]="4",t[19]=e.substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="";var i=t.join("");return i}Xo.yieId=function(t){var e=(new Date).getTime();return"time"===t||(e=t+e),e},Xo.setZero=function(t){return t<10?(t="0"+t,t):t};var Zo={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(t){var e,n,i,r,a,o,s,l="",u=0;t=Zo._utf8_encode(t);while(u<t.length)e=t.charCodeAt(u++),n=t.charCodeAt(u++),i=t.charCodeAt(u++),r=e>>2,a=(3&e)<<4|n>>4,o=(15&n)<<2|i>>6,s=63&i,isNaN(n)?o=s=64:isNaN(i)&&(s=64),l=l+this._keyStr.charAt(r)+this._keyStr.charAt(a)+this._keyStr.charAt(o)+this._keyStr.charAt(s);return l},decode:function(t){var e,n,i,r,a,o,s,l="",u=0;t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(u<t.length)r=this._keyStr.indexOf(t.charAt(u++)),a=this._keyStr.indexOf(t.charAt(u++)),o=this._keyStr.indexOf(t.charAt(u++)),s=this._keyStr.indexOf(t.charAt(u++)),e=r<<2|a>>4,n=(15&a)<<4|o>>2,i=(3&o)<<6|s,l+=String.fromCharCode(e),64!==o&&(l+=String.fromCharCode(n)),64!==s&&(l+=String.fromCharCode(i));return l=Zo._utf8_decode(l),l},_utf8_encode:function(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n<t.length;n++){var i=t.charCodeAt(n);i<128?e+=String.fromCharCode(i):i>127&&i<2048?(e+=String.fromCharCode(i>>6|192),e+=String.fromCharCode(63&i|128)):(e+=String.fromCharCode(i>>12|224),e+=String.fromCharCode(i>>6&63|128),e+=String.fromCharCode(63&i|128))}return e},_utf8_decode:function(t){var e,n="",i=0,r=0,a=0;while(i<t.length)r=t.charCodeAt(i),r<128?(n+=String.fromCharCode(r),i++):r>191&&r<224?(a=t.charCodeAt(i+1),n+=String.fromCharCode((31&r)<<6|63&a),i+=2):(a=t.charCodeAt(i+1),e=t.charCodeAt(i+2),n+=String.fromCharCode((15&r)<<12|(63&a)<<6|63&e),i+=3);return n}},ts=n("e193"),es={};es.process={chartData:"",codeRule:"",commonIdea:"",creatPersonId:Xo.yieId("user"),createTime:Xo.yieId("time"),creator:"test",description:"",id:Xo.yieId("id"),name:"",orgCode:"testyz1",orgName:"test",processNo:"",processType:"",status:"",version:"",workFormM:"",workFormW:""},es.nodes=[],es.nextNodes=[],es.paths=[],es.ideaLabels=[],es.nodeFieldValues=[],es.pathFieldValues=[],es.operations=[];var ns=[{id:1,imgSrc:"/images/w-imgs/definition/center/c_start.png",title:"开始",text:"",associated:"start",resize:0,domJoin:1,type:1},{id:2,imgSrc:"/images/w-imgs/definition/center/c_ptjd.png",title:"普通节点",text:"",associated:"ptjd",resize:1,domJoin:4,type:2},{id:3,imgSrc:"/images/w-imgs/definition/center/c_zxjd.png",title:"执行节点",text:"部门领导审批",associated:"zxjd",resize:1,domJoin:4,type:3},{id:4,imgSrc:"/images/w-imgs/definition/center/c_drbx.png",title:"多人并行",text:"部门领导审批",associated:"drbx",resize:1,domJoin:4,type:4},{id:5,imgSrc:"/images/w-imgs/definition/center/c_drcx.png",title:"多人串行",text:"部门领导审批",associated:"drcx",resize:1,domJoin:4,type:5},{id:6,imgSrc:"/images/w-imgs/definition/center/c_hqjd.png",title:"会签节点",text:"部门领导审批",associated:"hqjd",resize:1,domJoin:4,type:6},{id:7,imgSrc:"/images/w-imgs/definition/center/c_ywjd.png",title:"阅文节点",text:"部门领导审批",associated:"ywjd",resize:1,domJoin:4,type:7},{id:8,imgSrc:"/images/w-imgs/definition/center/c_jsrw.png",title:"结束任务",text:"部门领导审批",associated:"jsrw",resize:0,domJoin:4,type:8},{id:9,imgSrc:"/images/w-imgs/definition/center/c_jslc.png",title:"结束流程",text:"部门领导审批",associated:"jslc",resize:0,domJoin:4,type:9},{id:10,imgSrc:"/images/w-imgs/definition/center/c_jcjd.png",title:"决策节点",text:"部门领导审批",associated:"jcjd",resize:0,domJoin:4,type:10},{id:11,imgSrc:"/images/w-imgs/definition/center/c_zyjd.png",title:"自由节点",text:"部门领导审批",associated:"zyjd",resize:0,domJoin:4,type:11},{id:12,imgSrc:"/images/w-imgs/definition/center/c_dfzjd.png",title:"多分支节点",text:"部门领导审批",associated:"dfzjd",resize:0,domJoin:4,type:12},{id:13,imgSrc:"/images/w-imgs/definition/center/c_jhjd.png",title:"聚合节点",text:"部门领导审批",associated:"jhjd",resize:0,domJoin:4,type:13},{id:14,imgSrc:"/images/w-imgs/definition/center/c_zlc.png",title:"子流程节点",text:"",associated:"childWf",resize:0,domJoin:4,type:14}],is=n("e193"),rs={DragOptions:{cursor:"pointer",zIndex:2e3},endpoint:["Dot",{radius:7}],paintStyle:{fillStyle:"#438eb9",radius:5,lineWidth:"transparent"},isSource:!0,connector:["Flowchart",{stub:[50,50],gap:3,cornerRadius:5,alwaysRespectStubs:!1}],isTarget:!0,maxConnections:-1,connectorOverlays:[["Arrow",{width:10,length:10,location:1}],["Label",{label:"",cssClass:"line_text",events:{mousedown:function(t,e){is.draggable($(".line_text"))},mouseout:function(){return!1}}}]]};function as(t){return t.all?t.all:t.getElementsByTagName("*")}function os(t,e,n){n=n||document,window.attachEvent&&n.attachEvent("on"+t,e),window.addEventListener&&n.addEventListener(t,e,!1)}function ss(t){t=t||window.event,t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,t.preventDefault?t.preventDefault():t.returnValue=!1}function ls(t,e){t=t||window.event;var n=document.getElementById(e),i=us(n,n.offsetLeft),r=cs(n,n.offsetTop),a=document.querySelectorAll(".center-container")[0],o=t.pageX||t.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft),s=t.clientY+a.scrollTop;return{x:o-i,y:s-r}}function us(t,e){return t.parentElement&&(e+=t.parentElement.offsetLeft,e=us(t.parentElement,e)),e}function cs(t,e){return e}Array.prototype.remove=function(t){for(var e=0;e<this.length;e++)if(t==this[e])break;if(e!=this.length){for(var n=e;n<this.length-1;n++)this[n]=this[n+1];this.length--}},String.prototype.replaceAll=function(t,e){var n=new RegExp(t,"g");return this.replace(n,e)},document.getElementsBySelector=function(t){if(!document.getElementsByTagName)return new Array;for(var e=t.split(" "),n=new Array(document),i=0;i<e.length;i++){var r=e[i].replace(/^\s+/,"").replace(/\s+$/,"");if(r.indexOf("#")>-1){var a=r.split("#"),o=a[0],s=a[1],l=document.getElementById(s);if(o&&l.nodeName.toLowerCase()!=o)return new Array;n=new Array(l)}else if(r.indexOf(".")>-1&&null!==n[0]){a=r.split("."),o=a[0];var u=a[1];o||(o="*");for(var c=new Array,d=0,h=0;h<n.length;h++){b="*"==o?as(n[h]):n[h].getElementsByTagName(o);for(var f=0;f<b.length;f++)c[d++]=b[f]}n=new Array;for(var p=0,g=0;g<c.length;g++)c[g].className&&c[g].className.match(new RegExp("\\b"+u+"\\b"))&&(n[p++]=c[g])}else if(r.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)){o=RegExp.$1;var m=RegExp.$2,v=RegExp.$3,y=RegExp.$4;o||(o="*");for(c=new Array,d=0,h=0;h<n.length;h++){b="*"==o?as(n[h]):n[h].getElementsByTagName(o);for(f=0;f<b.length;f++)c[d++]=b[f]}n=new Array;var A;p=0;switch(v){case"=":A=function(t){return t.getAttribute(m)==y};break;case"~":A=function(t){return t.getAttribute(m).match(new RegExp("\\b"+y+"\\b"))};break;case"|":A=function(t){return t.getAttribute(m).match(new RegExp("^"+y+"-?"))};break;case"^":A=function(t){return 0==t.getAttribute(m).indexOf(y)};break;case"$":A=function(t){return t.getAttribute(m).lastIndexOf(y)==t.getAttribute(m).length-y.length};break;case"*":A=function(t){return t.getAttribute(m).indexOf(y)>-1};break;default:A=function(t){return t.getAttribute(m)}}n=new Array;for(p=0,g=0;g<c.length;g++)A(c[g])&&(n[p++]=c[g])}else{o=r;c=new Array;if(null!==n[0])for(d=0,h=0;h<n.length;h++){var b=n[h].getElementsByTagName(o);for(f=0;f<b.length;f++)c[d++]=b[f]}n=c}}return n};var ds=[];function hs(t){this.regions=[],this.selProp=t,this.InitRegions(t),this.selectedClass=t["selectedClass"],this.selectedRegion=[],this.selectDiv=null,this.startX=null,this.startY=null,this.parentId=t["parentId"]}function fs(){return ds}function ps(t,e,n){for(var i=fs(),r=e.position.left-e.originalPosition.left,a=e.position.top-e.originalPosition.top,o=0;o<i.length;o++)if(i[o].parentNode&&document.getElementById(n)){if(i[o].parentNode.id!==document.getElementById(n).parentNode.id)continue;var s=parseInt(qo()(i[o]).attr("bLeft")),l=parseInt(qo()(i[o]).attr("bTop"));qo()(i[o]).css("left",s+r+"px"),qo()(i[o]).css("top",l+a+"px")}}function gs(){for(var t=fs(),e=0;e<t.length;e++)qo()(t[e]).attr("bLeft",qo()(t[e]).position().left),qo()(t[e]).attr("bTop",qo()(t[e]).position().top)}function ms(){for(var t=fs(),e=0,n="",i=0;i<t.length;i++)""===n&&(n=t[i].parentNode.id),n===t[i].parentNode.id&&(qo()(t[i]).position().left<e||0===e)&&(e=qo()(t[i]).position().left);for(var r=0;r<t.length;r++)n===t[r].parentNode.id&&qo()(t[r]).css("left",e+"px");ts["jsPlumb"].repaintEverything()}function vs(){for(var t=fs(),e=0,n="",i=0;i<t.length;i++)""===n&&(n=t[i].parentNode.id),n===t[i].parentNode.id&&(qo()(t[i]).position().left<e||0===e)&&(e=qo()(t[i]).position().left+parseInt(ws(t[i],"width"))/2);for(var r=0;r<t.length;r++)n===t[r].parentNode.id&&qo()(t[r]).css("left",e-parseInt(ws(t[r],"width"))/2+"px");ts["jsPlumb"].repaintEverything()}function ys(){var t=fs();if(t.length<=2)alert("请选择至少三个个模型节点");else{for(var e=t[0].offsetTop,n=t[0].offsetTop,i=t[0].offsetHeight,r=(t[0].offsetHeight,0),a=0,o=0;o<t.length;o++)t[o].offsetTop<e&&(e=t[o].offsetTop,i=t[o].offsetHeight),t[o].offsetTop>n&&(n=t[o].offsetTop,t[o].offsetHeight);for(var s=n-(e+i),l=0;l<t.length;l++)t[l].offsetTop!=e&&t[l].offsetTop!=n&&(r+=t[l].offsetHeight);for(var u=0;u<t.length;u++)if(t[u].offsetTop!=e&&t[u].offsetTop!=n){var c=(s-r)/(t.length-1),d=c+i+e+a*t[u].offsetHeight+a*c;qo()(t[u]).css("top",d),a++}ts["jsPlumb"].repaintEverything()}}function As(){var t=fs();if(t.length<=2)alert("请选择至少三个模型节点");else{for(var e=t[0].offsetLeft,n=t[0].offsetLeft,i=t[0].offsetWidth,r=(t[0].offsetWidth,0),a=0,o=0;o<t.length;o++)t[o].offsetLeft<e&&(e=t[o].offsetLeft,i=t[o].offsetWidth),t[o].offsetLeft>n&&(n=t[o].offsetLeft,t[o].offsetWidth);for(var s=n-(e+i),l=0;l<t.length;l++)t[l].offsetLeft!=e&&t[l].offsetLeft!=n&&(r+=t[l].offsetWidth);for(var u=0;u<t.length;u++)if(t[u].offsetLeft!=e&&t[u].offsetLeft!=n){var c=(s-r)/(t.length-1),d=c+i+e+a*t[u].offsetWidth+a*c;qo()(t[u]).css("left",d),a++}ts["jsPlumb"].repaintEverything()}}function bs(){for(var t=fs(),e=0,n="",i=0;i<t.length;i++)""===n&&(n=t[i].parentNode.id),n===t[i].parentNode.id&&(qo()(t[i]).position().top<e||0===e)&&(e=qo()(t[i]).position().top);for(var r=0;r<t.length;r++)n===t[r].parentNode.id&&qo()(t[r]).css("top",e+"px");ts["jsPlumb"].repaintEverything()}function _s(){for(var t=fs(),e=0,n="",i=0;i<t.length;i++)""===n&&(n=t[i].parentNode.id),n===t[i].parentNode.id&&(qo()(t[i]).position().top+parseInt(ws(t[i],"height"))/2<e||0===e)&&(e=qo()(t[i]).position().top+parseInt(ws(t[i],"height"))/2);for(var r=0;r<t.length;r++)n===t[r].parentNode.id&&qo()(t[r]).css("top",e-parseInt(ws(t[r],"height"))/2+"px");ts["jsPlumb"].repaintEverything()}function ws(t,e){return t.currentStyle?t.currentStyle[e]:getComputedStyle(t,!1)[e]}hs.prototype.InitRegions=function(){var t=this;t.regions=[];var e=document.getElementsBySelector(t.selProp["region"]),n=!0;if(e&&e.length>0)for(var i=0;i<e.length;i++)e[i].onmousedown=function(){n=!1;var i=window.event||arguments[0];i.shiftKey||i.ctrlKey?-1==this.className.indexOf(t.selectedClass)?(this.className+=" "+t.selectedClass,ds.push(this)):(this.className=this.className.replaceAll(t.selectedClass,""),ds.remove(this)):-1===qo.a.inArray(this,ds)&&(t.clearSelections(e),this.className+=" "+t.selectedClass,ds=[],ds.push(this)),ss(i)},this.regions.push(e[i]);n&&(t.clearSelections(e),ds=[])},hs.prototype.select=function(){var t=this,e=t.parentId,n=[0,0],i=[0,0];document.getElementById(e)&&(os("mousedown",(function(){var r=window.event||arguments[0],a=r.buttons||r.button;if((void 0==r.target||r.target.id===e)&&(void 0==r.srcElement||r.srcElement.id===e)){if(void 0==r.buttons&&0==a&&t.onBeforeSelect(r,e),1===a&&t.onBeforeSelect(r,e),2===a){n=[r.clientX,r.clientY];var o=parseInt(ws(document.getElementById(e),"left")),s=parseInt(ws(document.getElementById(e),"top"));i=[o,s],document.getElementById(e).style.cursor="move"}ss(r)}}),document),os("mousemove",(function(){var r=window.event||arguments[0],a=r.buttons||r.button;if(void 0==r.buttons&&0==a&&t.onSelect(r,e),1===a&&t.onSelect(r,e),2===a){var o=i[0]+r.clientX-n[0],s=i[1]+r.clientY-n[1];o>=0&&(o=0),s>=0&&(s=0),qo()("#"+e).css("left",o+"px"),qo()("#"+e).css("top",s+"px")}ss(r)}),document),os("mouseup",(function(){var e=window.event||arguments[0];e.buttons||e.button;e.buttons,t.onEnd()}),document))},hs.prototype.onBeforeSelect=function(t,e){var n=this;n.InitRegions(n.selProp),document.getElementById("selContainer")?this.selectDiv=document.getElementById("selContainer"):(this.selectDiv=document.createElement("div"),this.selectDiv.style.cssText="position:absolute;width:0px;height:0px;font-size:0px;margin:0px;padding:0px;border:1px dashed #0099FF;background-color:#C3D5ED;z-index:1000;filter:alpha(opacity:60);opacity:0.6;display:none;",this.selectDiv.id="selContainer",document.getElementById(e).appendChild(this.selectDiv)),this.startX=ls(t,e).x,this.startY=ls(t,e).y,this.isSelect=!0},hs.prototype.onSelect=function(t,e){var n=this;if(n.isSelect){"none"==n.selectDiv.style.display&&(n.selectDiv.style.display="");var i=ls(t,e).x,r=ls(t,e).y;n.selectDiv.style.left=Math.min(i,this.startX)+"px",n.selectDiv.style.top=Math.min(r,this.startY)+"px",n.selectDiv.style.width=Math.abs(i-this.startX)+"px",n.selectDiv.style.height=Math.abs(r-this.startY)+"px";for(var a=n.regions,o=0;o<a.length;o++)if(n.selectDiv.parentNode.id===a[o].parentNode.id){var s=a[o],l=n.innerRegion(n.selectDiv,s);l&&-1==s.className.indexOf(n.selectedClass)?(s.className=s.className+" "+n.selectedClass,ds.push(s)):l||-1==s.className.indexOf(n.selectedClass)||(s.className=s.className.replaceAll(n.selectedClass,""),ds.remove(s))}}},hs.prototype.onEnd=function(){var t=this;t.selectDiv&&(t.selectDiv.style.display="none"),this.isSelect=!1},hs.prototype.innerRegion=function(t,e){var n=parseInt(t.style.top),i=parseInt(t.style.left),r=i+parseInt(t.offsetWidth),a=n+parseInt(t.offsetHeight),o=parseInt(e.offsetTop),s=parseInt(e.offsetLeft),l=s+parseInt(e.offsetWidth),u=o+parseInt(e.offsetHeight),c=Math.max(n,o),d=Math.min(r,l),h=Math.min(a,u),f=Math.max(i,s);return h>c+5&&d>f+5?e:null},hs.prototype.clearSelections=function(t){for(var e=0;e<t.length;e++)t[e].className=t[e].className.replaceAll(this.selectedClass,"")};var xs,Ss="/images/w-imgs/definition/center/c_ptjd.png",Cs="/images/w-imgs/definition/center/c_zxjd.png",Ts="/images/w-imgs/definition/center/c_jzjd.png",Ms="/images/w-imgs/definition/center/c_drbx.png",ks="/images/w-imgs/definition/center/c_drcx.png",Ls="/images/w-imgs/definition/center/c_hqjd.png",Ds="/images/w-imgs/definition/center/c_ywjd.png",Es="/images/w-imgs/definition/center/c_zlc.png",Bs={};function Is(t,e){qo()("#"+t).bind("mousedown",(function(n){var i=ts["jsPlumb"].getAllConnections(),r=[],a=qo()(this).attr("id");return 3===n.which&&(qo()(".dropdown-menu").show(),qo()(".dropdown-menu").css({left:n.pageX,top:n.pageY}),qo()(".dropdown-menu").find("a").hide(),qo()("#deleteNode").show(),qo()("#deleteNode").bind("click",(function(){for(var n=0;n<i.length;n++)i[n].targetId==a&&r.push(i[n]),i[n].sourceId==a&&r.push(i[n]);for(var o=0;o<e.paths.length;o++)for(var s=0;s<r.length;s++)e.paths[o].id==r[s].id&&e.paths.splice(o,1);for(var l=0;l<e.nodes.length;l++)e.nodes[l].id==a&&(e.nodes[l].name&&"start"==e.nodes[l].name&&Bs.start--,e.nodes.splice(l,1));ts["jsPlumb"].remove(t)}))),!1}))}Bs.countId=0,Bs.modelId="PROCESS_DOM_",Bs.createDom="",Bs.start=0,Bs.CreateModel=function(t,e,n,i,r,a,o){if(Bs.start>=1&&"start"==r)return alert("已经有开始节点存在了"),!1;"start"==r&&Bs.start++;var s=parseInt(t.offset.left-qo()(e).offset().left),l=parseInt(t.offset.top-qo()(e).offset().top+20);Bs.countId++;var u=Jo();return Bs.createDom="start"===r||"jslc"===r||"jsrw"===r||"zyjd"===r||"dfzjd"===r||"jhjd"===r||"jcjd"===r?Bs.customModel(u,r,a):Bs.ordinaryModel(u,r,a),qo()("#center").append(Bs.createDom),qo()("#"+u).css("left",s).css("top",l),1===i||(ts["jsPlumb"].addEndpoint(u,{anchors:[1,.5,1,0],uuid:jsPlumbUtil.uuid()},rs),ts["jsPlumb"].addEndpoint(u,{anchors:[0,.5,-1,0],uuid:jsPlumbUtil.uuid()},rs),ts["jsPlumb"].addEndpoint(u,{anchors:[.5,0,0,-1],uuid:jsPlumbUtil.uuid()},rs)),ts["jsPlumb"].addEndpoint(u,{anchors:[.5,1,0,1],uuid:jsPlumbUtil.uuid()},rs),qo()("#"+u).draggable({start:function(){gs(),ts["jsPlumb"].repaintEverything()},drag:function(t,e){ps(t,e,u),ts["jsPlumb"].repaintEverything()},stop:function(){ts["jsPlumb"].repaintEverything()}}),Is(u,o),xs=!0,u},Bs.ordinaryModel=function(t,e,n){for(var i="",r="",a=0;a<ns.length;a++)ns[a].associated===e&&(r=ns[a].title,ns[a].text);switch(e){case"ptjd":i=Ss;break;case"jzjd":i=Ts;break;case"drbx":i=Ms;break;case"drcx":i=ks;break;case"hqjd":i=Ls;break;case"ywjd":i=Ds;break;case"childWf":i=Es;break;case"zxjd":i=Cs;break}var o='<div id="'+t+'" type="'+n+'" class="process model_process '+e+'"><div class="title"><img src="'+i+'" width="22" alt=""><span>'+r+"</span></div><p></p></div>";return xs=!0,o},Bs.customModel=function(t,e,n){var i='<div id="'+t+'" type="'+n+'" class="process '+e+'"></div>';return i};var Os={connection:null,init:function(){Os.configLeft()},configLeft:function(){var t=qo()("#left .domList").find("li");t.each((function(e,n){t.eq(e).attr("associated",ns[e].associated),t.eq(e).attr("resize",ns[e].resize),t.eq(e).attr("domJoin",ns[e].domJoin),t.eq(e).attr("type",ns[e].type)}))}},Ps={};function Ns(t){return js(t)||Rs(t)||Us(t)||Fs()}function Fs(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Us(t,e){if(t){if("string"===typeof t)return Hs(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hs(t,e):void 0}}function Rs(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function js(t){if(Array.isArray(t))return Hs(t)}function Hs(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Ys(t){return Ys="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ys(t)}function zs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Qs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zs(Object(n),!0).forEach((function(e){Vs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vs(t,e,n){return e=Ws(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ws(t){var e=Gs(t,"string");return"symbol"==Ys(e)?e:e+""}function Gs(t,e){if("object"!=Ys(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=Ys(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}Ps.init=function(){Ps.setDrag(),Ps.event()},Ps.setDrag=function(){qo()(".right-form").draggable()},qo()(".right-form").draggable({containment:"#center"}),Ps.event=function(){qo()("body").on("click",".process",(function(){qo()(".right-form").show();var t=qo()(this).attr("type");switch(t){case"2":case"3":case"4":case"5":case"6":case"7":qo()(".node").hide(),qo()(".panel_node").show();break;case"14":case"15":qo()(".node").hide(),qo()(".panel_node").show();break;case"10":qo()(".node").hide(),qo()(".panel_decision").show();break;case"13":qo()(".node").hide(),qo()(".panel_aggregation").show();break;default:qo()(".node").hide(),qo()(".panel_process").show()}return!1}))};var Ks=n("e193");Ks.importDefaults({PaintStyle:{lineWidth:8,stroke:"#00ff54"}});var $s={components:{},props:{},data:function(){return{listarr:[],dwadmin:0,product:0,PathLabelText:"",ptjd:"/images/w-imgs/definition/center/c_ptjd.png",zxjd:"/images/w-imgs/definition/center/c_zxjd.png",id:"",curObjType:"process",curNode:{},curPath:{},curp:null,curNextNode:{},curNodeOperationArr:[],curNodeOperation:{},waitNodeArr:[],nodeTypeArray:[],processNum:0,pathFieldValue:{},addPathFieldValue:{},jcjdPath:!1,jhjdPath:!1,jobPathFieldValue:{},processTypes:[],nextNodeArr:[],historyNodes:[],addHistoryNodes:[],vo:{},wflow:es,dataStatus:!1,pathObj:[],ideaL:[],ideaLables:"",nodeFieldValue:{},addNodeFieldValue:{},assistNodeFieldValue:{},workgroup:{},addWorkgroup:{},assistWorkgroup:{},jobPosition:{},addJobPosition:{},assistJobPosition:{},orgStaff:{},addOrgStaff:{},assistOrgStaff:{},oldWflow:null,pathNumber:0,getWflow:[],process:{chartData:"",codeRule:"",commonIdea:"",creatPersonId:Jo(),createTime:"",creator:"",description:"",id:Jo(),name:"",orgCode:"",orgName:"",processNo:"",processType:"",status:1,sysCode:"",sysName:"",version:"",workFormM:"",workFormW:""},isDomChange:!1,dragLineObj:{disX:0,disY:0},connectsArr:[],responseVo:{}}},computed:Qs({},Object(l["a"])(["loginUser"])),watch:{resRoles:function(t){this.curNodeOperation.passenger.tResRoles&&(this.curNodeOperation.passenger.resRoles=this.curNodeOperation.passenger.tResRoles)}},created:function(){var t=this.$route.query.id;if(this.id=t,"plat"!==this.loginUser.orgCode||"1"===this.$route.query.dwadmin?(this.dwadmin=1,this.$set(this.process,"orgName",this.loginUser.orgName),this.$set(this.process,"orgCode",this.loginUser.orgCode),void 0!==this.$route.query.sysCode&&(this.$set(this.process,"sysName",this.$route.query.sysName),this.$set(this.process,"sysCode",this.$route.query.sysCode))):"1"===this.$route.query.product?this.product=1:"1"===this.$route.query.platadmin&&(this.$set(this.process,"sysName",this.loginUser.sysName),this.$set(this.process,"sysCode",this.loginUser.sysCode),this.$set(this.process,"orgName",this.loginUser.orgName),this.$set(this.process,"orgCode",this.loginUser.orgCode)),void 0!==this.$route.query.udmid){var e=this.$route.query;this.$set(this.process,"name",e.udmname),this.$set(this.process,"processNo","udmjysp_"+e.udmcode),this.$set(this.process,"version","V1.0"),this.$set(this.process,"workFormW","/dcontent/"+e.workform+"/"),e.ideaLables&&""!==e.ideaLables&&(this.ideaLables=e.ideaLables.replace(/,/g,"\r\n"),this.$bus.emit("emitIdeaLables",this.ideaLables),this.saveIdeaLable(this.ideaLables)),this.$bus.emit("emitProcess",this.process)}this.$bus.on("closeWorkflow",this.closeWorkflow),this.$bus.on("saveWorkflow",this.saveWorkflow),this.$bus.on("setIsRequired",this.setIsRequired),this.$bus.on("labelChange",this.labelChange),this.$bus.on("bindName",this.bindName),this.$bus.on("changeNodeType",this.changeNodeType),this.$bus.on("saveIdeaLable",this.saveIdeaLable),this.$bus.on("nodeFieldValueFn",this.nodeFieldValueFn),this.$bus.on("onSelectSuborgCompleted",this.onSelectSuborgCompleted),this.$bus.on("onSelectStaffCompleted",this.onSelectStaffCompleted),this.$bus.on("onSelectWorkgroupCompleted",this.onSelectWorkgroupCompleted),this.$bus.on("onSelectJobPositionCompleted",this.onSelectJobPositionCompleted),this.$bus.on("addButton",this.addButton),this.$bus.on("selAddButton",this.selAddButton),this.$bus.on("queryAddButton",this.queryAddButton),this.$bus.on("deleteButton",this.deleteButton),this.$bus.on("editButton",this.editButton),this.$bus.on("queryAlterButton",this.queryAlterButton),this.$bus.on("onSelectListpageRowCompleted",this.onSelectListpageRowCompleted),this.$bus.on("watchLine",this.watchLine)},beforeDestroy:function(){Ks.destroy(),this.$bus.off("closeWorkflow",this.closeWorkflow),this.$bus.off("saveWorkflow",this.saveWorkflow),this.$bus.off("setIsRequired",this.setIsRequired),this.$bus.off("labelChange",this.labelChange),this.$bus.off("bindName",this.bindName),this.$bus.off("changeNodeType",this.changeNodeType),this.$bus.off("saveIdeaLable",this.saveIdeaLable),this.$bus.off("nodeFieldValueFn",this.nodeFieldValueFn),this.$bus.off("onSelectSuborgCompleted",this.onSelectSuborgCompleted),this.$bus.off("onSelectStaffCompleted",this.onSelectStaffCompleted),this.$bus.off("onSelectWorkgroupCompleted",this.onSelectWorkgroupCompleted),this.$bus.off("onSelectJobPositionCompleted",this.onSelectJobPositionCompleted),this.$bus.off("addButton",this.addButton),this.$bus.off("selAddButton",this.selAddButton),this.$bus.off("queryAddButton",this.queryAddButton),this.$bus.off("deleteButton",this.deleteButton),this.$bus.off("editButton",this.editButton),this.$bus.off("queryAlterButton",this.queryAlterButton),this.$bus.off("onSelectListpageRowCompleted",this.onSelectListpageRowCompleted),this.$bus.off("watchLine",this.watchLine)},mounted:function(){var t=this;this.dragLineObj.init=function(e,n){t.dragLine(e,n)};var e=new hs({region:"#center div.process",selectedClass:"seled",parentId:"center"});e.select(),qo()("#topAlign").click((function(){bs()})),qo()("#leftAlign").click((function(){ms()})),qo()("#verticalAlign").click((function(){vs()})),qo()("#verticalMean").click((function(){ys()})),qo()("#levelAlign").click((function(){_s()})),qo()("#levelMean").click((function(){As()})),qo()("#left ul").find("li").draggable({helper:"clone",scope:"plant"});var n="";Os.init(),Ps.init(),this.handleBtn(),this.id?this.$http({method:"GET",params:{product:this.product,dwadmin:this.dwadmin,copy:this.$route.query.copy},contentType:"application/x-www-form-urlencoded",url:"/voice/scene/getById?id="+this.id}).then((function(e){t.dataStatus=!0,t.wflow=e.body.vo,t.wflow.speaks.forEach((function(e){t.$set(e,"time",[e.startTime||"",e.endTime||""])})),t.wflow.nodes.forEach((function(e){t.$set(e,"SpeakMethod",t.wflow.speaks.filter((function(t){return t.nodeId===e.id&&2===t.type}))),t.$set(e,"successSpeakMethod",t.wflow.speaks.filter((function(t){return t.nodeId===e.id&&1===t.type}))),t.$set(e,"errorSpeakMethod",t.wflow.speaks.filter((function(t){return t.nodeId===e.id&&0===t.type})))}));var i=[];t.wflow.paths.forEach((function(t){var e={nextNodeId:t.afterNodeId,pathId:t.id};i.push(e)})),t.$set(t.wflow,"nextNodes",i),t.$set(t.wflow,"pathFieldValues",[]),t.$set(t.wflow,"nodeFieldValues",[]),t.responseVo=JSON.parse(JSON.stringify(e.body.vo)),t.ideaL=t.wflow.ideaLabels;for(var r=0;r<t.wflow.paths.length;r++)t.getWflow.push(t.wflow.paths[r].id);for(var a=0;a<t.wflow.paths.length;a++)t.pathObj.push(t.wflow.paths[a]);t.wflow.paths.length=0,t.process=e.body.vo.scene,t.emitData();var o=JSON.parse(e.body.vo.scene.chartData),s=o.connects;t.connectsArr=s;for(var l=o.domHtml,u=[],c=0;c<l.length;c++)qo()("#center").append(Zo.decode(l[c].domH));qo()(".process").removeClass("seled"),qo()(".process").each((function(e,n){u.push(qo()(n).attr("id")),Is(qo()(n).attr("id"),t.wflow),qo()(n).hasClass("ptjd")?qo()(n).find("img").attr("src",t.ptjd):qo()(n).hasClass("jzjd")?qo()(n).find("img").attr("src",t.jzjd):qo()(n).hasClass("drbx")?qo()(n).find("img").attr("src",t.drbx):qo()(n).hasClass("drcx")?qo()(n).find("img").attr("src",t.drcx):qo()(n).hasClass("hqjd")?qo()(n).find("img").attr("src",t.hqjd):qo()(n).hasClass("ywjd")?qo()(n).find("img").attr("src",t.ywjd):qo()(n).hasClass("childWf")&&qo()(n).find("img").attr("src",t.zlx)}));for(var d=0;d<u.length;d++)qo()("#"+u[d]).hasClass("start")?(Ks.addEndpoint(u[d],{anchors:[.5,1,0,1]},rs),Bs.start++):(Ks.addEndpoint(u[d],{anchors:[1,.5,1,0]},rs),Ks.addEndpoint(u[d],{anchors:[0,.5,-1,0]},rs),Ks.addEndpoint(u[d],{anchors:[.5,0,0,-1]},rs),Ks.addEndpoint(u[d],{anchors:[.5,1,0,1]},rs));for(var h=0;h<s.length;h++){n=s[h].label;var f=[s[h].firstEndpoints,s[h].secondEndpoints],p=0,g=0,m=void 0;"Straight"===s[h].type?m=["Straight",{stub:[0,0]}]:"Flowchart"===s[h].type?s[h].PageSourceId===s[h].PageTargetId?m=["Flowchart",{stub:[50,50],gap:3,cornerRadius:5,alwaysRespectStubs:!1}]:(0===s[h].firstEndpoints[1]&&1===s[h].secondEndpoints[1]||1===s[h].firstEndpoints[1]&&0===s[h].secondEndpoints[1]?(g=s[h].topY,m=["Flowchart",{stub:[0,0],gap:3,cornerRadius:5,alwaysRespectStubs:!0,midpoint:g}]):Math.abs(s[h].pathMaxX)>=Math.abs(s[h].pathMinX)?"Flowchart"!==s[h].type?p=0:s[h].firstEndpoints.x===s[h].secondEndpoints.x?(p=s[h].pathMaxX>=0?Math.abs(s[h].pathMinX):Math.abs(s[h].pathMaxX),m=[s[h].type,{stub:[p,20],gap:3,cornerRadius:5,alwaysRespectStubs:!0}]):s[h].PageSourceId===s[h].PageTargetId?(p=10,m=[s[h].type,{stub:[p,20],gap:3,cornerRadius:5,alwaysRespectStubs:!0}]):(p=0,m=[s[h].type,{stub:[p,20],gap:3,cornerRadius:5,alwaysRespectStubs:!0}]):(p=Math.abs(s[h].pathMinX),m=[s[h].type,{stub:[p,10],gap:3,cornerRadius:5,alwaysRespectStubs:!0}]),(0===s[h].firstEndpoints[1]&&0===s[h].secondEndpoints[1]||1===s[h].firstEndpoints[1]&&1===s[h].secondEndpoints[1])&&(console.log(s[h]),m=[s[h].type,{stub:[50,50],gap:3,cornerRadius:5,alwaysRespectStubs:!0}])):"Bezier"===s[h].type&&(m=["Bezier",{stub:[0,0]}]);var v=Ks.connect({source:s[h].PageSourceId,target:s[h].PageTargetId,anchors:f,editable:!0,paintStyle:{strokeStyle:"#438eb9",fillStyle:"#438eb9",radius:5,lineWidth:2},parameters:{pathId:s[h].ConnectionId},endpointStyle:{fill:"lightgray",outlineStroke:"darkgray",outlineWidth:2},connector:m,overlays:[["Arrow",{width:10,length:10,location:1}]],endpoint:["Dot",{radius:5}],cssClass:"line_path"});try{v.setLabel({label:n,cssClass:"line_text"}),v=null}catch(y){console.log(y)}}qo()(".right-form").draggable({containment:"#center"}),qo()(".process").draggable({containment:"#center"}),qo()(".process").draggable({distance:20}),qo()(".process").draggable({start:function(){gs(),Ks.repaintEverything()},drag:function(e,n){var i=e.target.id;ps(e,n,i),t.isDomChange=!0,Ks.repaintEverything()},stop:function(){Ks.repaintEverything()}}),t.dataStatus=!1,qo()(".process").bind("click",(function(e){qo()(".process").removeClass("seled"),qo()(e.currentTarget).addClass("seled"),t.getHistroyNodes();for(var n=qo()(e.currentTarget).attr("id"),i=0;i<t.wflow.nodes.length;i++)if(n===t.wflow.nodes[i].id){t.curNode=t.wflow.nodes[i],qo()(e.currentTarget).attr("id",t.wflow.nodes[i].id);break}t.curNodeOperationArr=[],t.getWaitNode(),t.emitData()})),t.AddAnchor(),t.oldWflow=JSON.parse(JSON.stringify(t.wflow))}),(function(e){t.$message.error(e)})):this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",url:"/voice/scene/addNew"}).then((function(e){"success"===e.code&&(console.log(e),t.process=e.body.vo.scene,t.process.createName=t.loginUser.personAccount,t.emitData())}));var i=null,r=!1;Ks.bind("connection",(function(e){return qo()(e.source).hasClass("dfzjd")||e.connection.setHoverPaintStyle({stroke:"red"}),e.connection.setPaintStyle({stroke:"#438eb9",fillStyle:"#438eb9",radius:5}),t.dragPath(e),t.oldWflow=JSON.parse(JSON.stringify(t.wflow)),t.ComparePath(),t.emitData(),!1})),Ks.bind("mousedown",(function(e,n){for(var r={},a=t.connectsArr.length,o=0;o<a;o++)if(e.id===t.connectsArr[o].ConnectionId){r=t.connectsArr[o];break}i=e.endpoints[1],console.log,i._jsPlumb.maxConnections=1,t.clickPath(e),t.dragLineObj.init(e,r),qo()(e.source).hasClass("dfzjd")||e.setPaintStyle({stroke:"red"});var s=!0,l=!0,u=!0;t.curPath.multiLevelPathFieldValue||(t.curPath.multiLevelPathFieldValue={});for(var c=0;c<t.wflow.pathFieldValues.length;c++)t.wflow.pathFieldValues[c].pathId===t.curPath.id?(0===t.wflow.pathFieldValues[c].valueType&&(t.curPath.multiLevelPathFieldValue[t.wflow.pathFieldValues[c].value]=!0),1===t.wflow.pathFieldValues[c].valueType?(t.pathFieldValue=t.wflow.pathFieldValues[c],s=!1):2===t.wflow.pathFieldValues[c].valueType?(t.addPathFieldValue=t.wflow.pathFieldValues[c],l=!1):3===t.wflow.pathFieldValues[c].valueType&&(t.jobPathFieldValue=t.wflow.pathFieldValues[c],u=!1)):(s&&(t.pathFieldValue={}),l&&(t.addPathFieldValue={}),u&&(t.jobPathFieldValue={}));return t.emitData(),!1})),Ks.bind("click",(function(t,e){return console.log("路径点击"),"none"!==qo()(".panel_path").css("display")&&(qo()(t.source).hasClass("dfzjd")||t.setPaintStyle({stroke:"red"})),qo()(".process").removeClass("seled"),r=!0,!1})),qo()(document).bind("contextmenu",(function(){return!1})),qo()(document).click((function(){qo()("#centextMenu").hide()})),qo()("#center").click((function(){for(var t=Ks.getConnections(),e=0;e<t.length;e++)t[e].setPaintStyle({stroke:"#438eb9",fillStyle:"#438eb9",radius:5});i&&(r&&i._jsPlumb&&(i._jsPlumb.maxConnections=-1),r=!1)})),Ks.bind("contextmenu",(function(e,n){qo()("#centextMenu").length>0&&qo()("#centextMenu").remove();var i='<div id="centextMenu" style=" top:'+n.pageY+"px;left:"+n.pageX+'px;"><a class="delete_line" href="javascript:;">删除连接线</a><a class="change_line_workline" href="javascript:;">转变为折线</a><a class="change_line_stright" href="javascript:;">转变为直线</a><a class="change_line_Bezier" href="javascript:;">转变为曲线</a></div>';qo()("#center").append(i),qo()(".delete_line").bind("click",(function(){var n=e.id;console.log(e.sourceId);for(var i=0;i<t.wflow.nextNodes.length;i++)t.wflow.nextNodes[i].pathId!==n&&t.wflow.nextNodes[i].nextNodeId!==e.targetId||t.wflow.nextNodes.splice(i,1);for(var r=0;r<t.wflow.pathFieldValues.length;r++)t.wflow.pathFieldValues[r].pathId===n&&t.wflow.pathFieldValues.splice(r,1);for(var a=0;a<t.wflow.paths.length;a++)console.log(t.wflow.paths[a].id),e.id===t.wflow.paths[a].id&&t.wflow.paths.splice(a,1);Ks.deleteConnection(e)})),qo()(".change_line_stright").bind("click",(function(){if("Straight"!==e.type){console.log(t.getWflow,t.getWflow.length);var n=t.getWflow.some((function(t){return e.id===t}));if(n){t.dataStatus=!0;for(var i=e.id,r=0;r<t.wflow.nextNodes.length;r++)t.wflow.nextNodes[r].pathId===i&&t.wflow.nextNodes.splice(r,1);for(var a=0;a<t.wflow.pathFieldValues.length;a++)t.wflow.pathFieldValues[a].pathId===i&&t.wflow.pathFieldValues.splice(a,1);Ks.deleteConnection(e);for(var o=0;o<t.connectsArr.length;o++)if(e.id===t.connectsArr[o].ConnectionId){t.PathLabelText=t.connectsArr[o].label,t.wflow.paths.splice(o,1);var s=t.connectsArr[o].firstEndpoints,l=t.connectsArr[o].secondEndpoints,u=[s,l],c=Ks.connect({source:t.connectsArr[o].PageSourceId,target:t.connectsArr[o].PageTargetId,anchors:u,editable:!0,paintStyle:{strokeStyle:"#438eb9",fillStyle:"#438eb9",radius:5,lineWidth:2},parameters:{pathId:t.connectsArr[o].ConnectionId},endpointStyle:{fill:"lightgray",outlineStroke:"darkgray",outlineWidth:2},connector:["Straight",{stub:0,gap:0}],overlays:[["Arrow",{width:10,length:10,location:1}]],endpoint:["Dot",{radius:5}],cssClass:"line_path"});try{c.setLabel({label:t.PathLabelText}),c=null}catch(d){console.log(d)}}Ks.bind("connection",(function(e){return qo()(e.source).hasClass("dfzjd")||e.connection.setHoverPaintStyle({stroke:"red"}),e.connection.setPaintStyle({stroke:"#438eb9",fillStyle:"#438eb9",radius:5}),t.dragPath(e),t.oldWflow=JSON.parse(JSON.stringify(t.wflow)),t.emitData(),!1}))}else t.$message({type:"warning",message:"请先保存后再进行此操作"})}})),qo()(".change_line_Bezier").bind("click",(function(){if("Bezier"!==e.type){var n=t.getWflow.some((function(t){return e.id===t}));if(n){t.dataStatus=!0;var i=[e.endpoints[0].anchor.x,e.endpoints[0].anchor.y,e.endpoints[0].anchor.orientation[0],e.endpoints[0].anchor.orientation[1]],r=[e.endpoints[1].anchor.x,e.endpoints[1].anchor.y,e.endpoints[1].anchor.orientation[0],e.endpoints[1].anchor.orientation[1]],a=[i,r];console.log(a);for(var o=e.id,s=0;s<t.wflow.nextNodes.length;s++)t.wflow.nextNodes[s].pathId===o&&t.wflow.nextNodes.splice(s,1);for(var l=0;l<t.wflow.pathFieldValues.length;l++)t.wflow.pathFieldValues[l].pathId===o&&t.wflow.pathFieldValues.splice(l,1);Ks.deleteConnection(e);for(var u=0;u<t.connectsArr.length;u++)if(e.id===t.connectsArr[u].ConnectionId){t.PathLabelText=t.connectsArr[u].label,t.wflow.paths.splice(u,1);var c=t.connectsArr[u].firstEndpoints,d=t.connectsArr[u].secondEndpoints,h=[c,d],f=Ks.connect({source:t.connectsArr[u].PageSourceId,target:t.connectsArr[u].PageTargetId,anchors:h,editable:!0,paintStyle:{strokeStyle:"#438eb9",fillStyle:"#438eb9",radius:5,lineWidth:2},parameters:{pathId:t.connectsArr[u].ConnectionId},endpointStyle:{fill:"lightgray",outlineStroke:"darkgray",outlineWidth:2},connector:["Bezier",{stub:0,gap:0}],overlays:[["Arrow",{width:10,length:10,location:1}]],endpoint:["Dot",{radius:5}],cssClass:"line_path"});try{f.setLabel({label:t.PathLabelText}),f=null}catch(p){console.log(p)}}Ks.bind("connection",(function(e){return qo()(e.source).hasClass("dfzjd")||e.connection.setHoverPaintStyle({stroke:"red"}),e.connection.setPaintStyle({stroke:"#438eb9",fillStyle:"#438eb9",radius:5}),t.dragPath(e),t.oldWflow=JSON.parse(JSON.stringify(t.wflow)),t.emitData(),!1}))}else t.$message({type:"warning",message:"请先保存后再进行次操作"})}})),qo()(".change_line_workline").bind("click",(function(){if(console.log(e.type),"Flowchart"!==e.type&&"Bezier"!==e.type){var n=t.getWflow.some((function(t){return e.id===t}));if(n){t.dataStatus=!0;var i=[e.endpoints[0].anchor.x,e.endpoints[0].anchor.y,e.endpoints[0].anchor.orientation[0],e.endpoints[0].anchor.orientation[1]],r=[e.endpoints[1].anchor.x,e.endpoints[1].anchor.y,e.endpoints[1].anchor.orientation[0],e.endpoints[1].anchor.orientation[1]],a=[i,r];console.log(a);for(var o=e.id,s=0;s<t.wflow.nextNodes.length;s++)t.wflow.nextNodes[s].pathId===o&&t.wflow.nextNodes.splice(s,1);for(var l=0;l<t.wflow.pathFieldValues.length;l++)t.wflow.pathFieldValues[l].pathId===o&&t.wflow.pathFieldValues.splice(l,1);Ks.deleteConnection(e);for(var u=0;u<t.connectsArr.length;u++)if(e.id===t.connectsArr[u].ConnectionId){t.PathLabelText=t.connectsArr[u].label,t.wflow.paths.splice(u,1);var c=t.connectsArr[u].firstEndpoints,d=t.connectsArr[u].secondEndpoints,h=[c,d],f=Ks.connect({source:t.connectsArr[u].PageSourceId,target:t.connectsArr[u].PageTargetId,anchors:h,editable:!0,paintStyle:{strokeStyle:"#438eb9",fillStyle:"#438eb9",radius:5,lineWidth:2},parameters:{pathId:t.connectsArr[u].ConnectionId},endpointStyle:{fill:"lightgray",outlineStroke:"darkgray",outlineWidth:2},connector:["Flowchart",{stub:[50,50],gap:3,cornerRadius:5,alwaysRespectStubs:!1}],overlays:[["Arrow",{width:10,length:10,location:1}]],endpoint:["Dot",{radius:5}],cssClass:"line_path"});try{f.setLabel({label:t.PathLabelText}),f=null}catch(p){console.log(p)}}Ks.bind("connection",(function(e){return qo()(e.source).hasClass("dfzjd")||e.connection.setHoverPaintStyle({stroke:"red"}),e.connection.setPaintStyle({stroke:"#438eb9",fillStyle:"#438eb9",radius:5}),t.dragPath(e),t.oldWflow=JSON.parse(JSON.stringify(t.wflow)),t.emitData(),!1}))}else t.$message({type:"warning",message:"请先保存后再进行次操作"})}})),t.dataStatus=!1})),qo()("#center").droppable({scope:"plant",drop:function(e,n){var i=qo()(n.draggable).attr("associated"),r=qo()(n.draggable).attr("resize"),a=qo()(n.draggable).attr("domJoin"),o=qo()(n.draggable).attr("type"),s=Bs.CreateModel(n,qo()(e.target),r,a,i,o,t.wflow);t.getProcessNum(i),t.curNode={sceneId:"",status:-1,name:"",type:1,problem:[],keywords:"",serial:t.wflow.nodes.length+1,speakType:0,performId:"",createTime:"",updateTime:"",memo:"",id:s,SpeakMethod:[],successSpeakMethod:[],errorSpeakMethod:[]},"ptjd"===i?t.curNode.type=0:"zxjd"===i&&(t.curNode.type=1),t.wflow.nodes.push(t.curNode);for(var l=0;l<t.wflow.nodes.length;l++)if(t.curNode.id===t.wflow.nodes[l].id){t.curNode=t.wflow.nodes[l];break}t.emitData(),qo()(".process").bind("click",(function(e){qo()(".process").removeClass("seled"),qo()(e.currentTarget).addClass("seled"),t.getHistroyNodes();for(var n=qo()(e.currentTarget).attr("id"),i=0;i<t.wflow.nodes.length;i++)if(n===t.wflow.nodes[i].id){t.curNode=t.wflow.nodes[i],qo()(e.currentTarget).attr("id",t.wflow.nodes[i].id);break}t.changeCurNodeType(qo()(e.currentTarget)),t.clickNodeFieldValues(),t.getWaitNode(),t.emitData()})),t.AddAnchor()}}),this.wflow.ideaLabels=[{}],this.ideaArr=[]},methods:{getNodeSpecialData:function(t){this.nodeFieldValue={},this.addNodeFieldValue={},this.assistNodeFieldValue={},this.workgroup={},this.addWorkgroup={},this.assistWorkgroup={},this.jobPosition={},this.addJobPosition={},this.assistJobPosition={},this.orgStaff={},this.addOrgStaff={},this.assistOrgStaff={};for(var e=0;e<this.wflow.nodeFieldValues.length;e++)this.wflow.nodeFieldValues[e].nodeId===t&&(0===this.wflow.nodeFieldValues[e].valueType?this.nodeFieldValue=this.wflow.nodeFieldValues[e]:6===this.wflow.nodeFieldValues[e].valueType?this.addNodeFieldValue=this.wflow.nodeFieldValues[e]:11===this.wflow.nodeFieldValues[e].valueType?this.assistNodeFieldValue=this.wflow.nodeFieldValues[e]:1===this.wflow.nodeFieldValues[e].valueType?this.workgroup=this.wflow.nodeFieldValues[e]:7===this.wflow.nodeFieldValues[e].valueType?this.addWorkgroup=this.wflow.nodeFieldValues[e]:12===this.wflow.nodeFieldValues[e].valueType?this.assistWorkgroup=this.wflow.nodeFieldValues[e]:3===this.wflow.nodeFieldValues[e].valueType?this.jobPosition=this.wflow.nodeFieldValues[e]:9===this.wflow.nodeFieldValues[e].valueType?this.addJobPosition=this.wflow.nodeFieldValues[e]:14===this.wflow.nodeFieldValues[e].valueType?this.assistJobPosition=this.wflow.nodeFieldValues[e]:2===this.wflow.nodeFieldValues[e].valueType?this.orgStaff&&this.orgStaff.value?this.orgStaff.values+=","+this.wflow.nodeFieldValues[e].value:(this.orgStaff=this.wflow.nodeFieldValues[e],this.orgStaff.values=this.wflow.nodeFieldValues[e].value):8===this.wflow.nodeFieldValues[e].valueType?this.addOrgStaff&&this.addOrgStaff.value?this.addOrgStaff.values+=","+this.wflow.nodeFieldValues[e].value:(this.addOrgStaff=this.wflow.nodeFieldValues[e],this.addOrgStaff.values=this.wflow.nodeFieldValues[e].value):13===this.wflow.nodeFieldValues[e].valueType&&(this.assistOrgStaff&&this.assistOrgStaff.value?this.assistOrgStaff.values+=","+this.wflow.nodeFieldValues[e].value:(this.assistOrgStaff=this.wflow.nodeFieldValues[e],this.assistOrgStaff.values=this.wflow.nodeFieldValues[e].value)))},handleBtn:function(){qo()("#center").bind("mousedown",(function(t){if(3===t.which){qo()(".dropdown-menu").hide();var e=fs();return 2===e.length?(qo()(".dropdown-menu").show(),qo()(".dropdown-menu").find("a").show(),qo()("#deleteNode").hide(),qo()("#deleteLine").hide(),qo()("#verticalMean").hide(),qo()("#levelMean").hide(),qo()("#deleteNode").hide(),qo()(".dropdown-menu").css({top:t.pageY,left:t.pageX})):e.length>2&&(qo()(".dropdown-menu").find("a").show(),qo()("#deleteNode").hide(),qo()("#deleteLine").hide(),qo()(".dropdown-menu").show(),qo()("#verticalMean").show(),qo()("#levelMean").show(),qo()(".dropdown-menu").css({top:t.pageY,left:t.pageX})),!1}})),qo()(document).bind("click",(function(){qo()(".dropdown-menu").hide(),qo()(".dropdown-menu").find("#deleteNode").unbind()}))},getHistroyNodes:function(){for(var t=[],e=[],n=0;n<this.wflow.nodes.length;n++){var i="dfzjd"===this.wflow.nodes[n].name||"start"===this.wflow.nodes[n].name||"jsrw"===this.wflow.nodes[n].name||"jslc"===this.wflow.nodes[n].name||"zyjd"===this.wflow.nodes[n].name||"jhjd"===this.wflow.nodes[n].name;i||(t.push(this.wflow.nodes[n]),e.push(this.wflow.nodes[n]))}this.historyNodes=t,this.addHistoryNodes=e},getWaitNode:function(){var t=this;this.waitNodeArr=[];var e=[],n=qo()("#center").find(".process");n.each((function(i,r){var a=n.eq(i).hasClass("start")||n.eq(i).hasClass("jsrw")||n.eq(i).hasClass("jslc")||n.eq(i).hasClass("jcjd")||n.eq(i).hasClass("zyjd")||n.eq(i).hasClass("dfzjd")||n.eq(i).hasClass("jhjd")||n.eq(i).attr("id")===t.curNode.id;a||e.push(n.eq(i))}));for(var i=0;i<e.length;i++)for(var r=0;r<this.wflow.nodes.length;r++)e[i].attr("id")===this.wflow.nodes[r].id&&this.waitNodeArr.push(this.wflow.nodes[r]);if(this.curNode.needWaitNodeId&&"string"===typeof this.curNode.needWaitNodeId){var a=this.curNode.needWaitNodeId.split(",");this.curNode.needWaitNodeId={};for(var o=0;o<a.length;o++)for(var s=0;s<this.wflow.nodes.length;s++)if(this.wflow.nodes[s].id===a[o]){this.curNode.needWaitNodeId[a[o]]=!0;break}}else""!==this.curNode.needWaitNodeId&&null!==this.curNode.needWaitNodeId||(this.curNode.needWaitNodeId={})},dragPath:function(t){var e=this,n=!1;Ks.bind("connectionMoved",(function(t,i){n=!0;for(var r=0;r<e.wflow.paths.length;r++)e.wflow.paths[r].id===t.connection.id&&(e.curp=e.wflow.paths[r],e.wflow.paths.splice(r,1))}));var i=-1;if(this.dataStatus){if(n)this.curp&&(this.curPath=this.curp);else if(i=1,qo()(t.source).hasClass("dfzjd"));else if(qo()(t.source).hasClass("start"))t.connection.id=Jo();else for(var r=0;r<this.pathObj.length;r++)if(this.pathObj[r].id===t.connection._jsPlumb.parameters.pathId){this.curPath=this.pathObj[r],t.connection.id=this.pathObj[r].id;break}}else this.curp?(this.curPath=this.curp,this.curPath.id=t.connection.id,this.curp=null):(i=-1,this.curPath={status:i,id:"",name:"",beforNodeId:null,afterNodeId:"",createTime:"",memo:"",type:"0",updateTime:""},t.connection.id=Jo(),this.curPath.id=t.connection.id);qo()(t.target).hasClass("zxjd")?this.curPath.type=1:this.curPath.type=0;var a=qo()(t.source).hasClass("ptjd")||qo()(t.source).hasClass("jzjd")||qo()(t.source).hasClass("drbx")||qo()(t.source).hasClass("drcx")||qo()(t.source).hasClass("hqjd")||qo()(t.source).hasClass("ywjd")||qo()(t.source).hasClass("childWf"),o=qo()(t.target).hasClass("zyjd");if(a&&!o&&(qo()(t.target).hasClass("jcjd")?this.curPath.name="送决策":qo()(t.target).hasClass("jhjd")&&(this.curPath.pathType=6),this.curPath.beforNodeId="",this.curPath.beforNodeId=qo()(t.source).attr("id"),this.wflow.paths.push(this.curPath)),""!==this.curPath.beforNodeId&&this.wflow.nodes.forEach((function(t){e.curPath.beforNodeId===t.id&&(e.curPath.preNodeName=t.name)})),qo()(t.source).hasClass("jcjd")||qo()(t.source).hasClass("jhjd")){(qo()(t.target).hasClass("jcjd")||qo()(t.target).hasClass("jhjd"))&&qo()(t.target).addClass("lastJ"),qo()(t.source).hasClass("lastJ")&&(qo()(t.target).hasClass("jcjd")||qo()(t.target).hasClass("jhjd"))&&(this.$message({message:"不能添加",type:"warning"}),setTimeout((function(){Ks.deleteConnection(t.connection)}),200));var s=qo()(t.target).hasClass("ptjd")||qo()(t.target).hasClass("jzjd")||qo()(t.target).hasClass("drbx")||qo()(t.target).hasClass("drcx")||qo()(t.target).hasClass("hqjd")||qo()(t.target).hasClass("ywjd")||qo()(t.target).hasClass("jsrw")||qo()(t.target).hasClass("jslc")||qo()(t.target).hasClass("childWf");if(s&&!qo()(t.source).hasClass("dfzjd")){if(qo()(t.source).hasClass("jcjd")||qo()(t.source).hasClass("jhjd"))this.curPath.beforNodeId=qo()(t.source).attr("id"),this.curPath.ctrlType=6,this.wflow.nodes.forEach((function(t){e.curPath.beforNodeId===t.id&&(e.curPath.preNodeName=t.name)}));else{var l=Ks.getAllConnections();this.curPath.beforNodeId="";for(var u=0;u<l.length;u++)l[u].targetId===t.sourceId&&(""===this.curPath.beforNodeId?this.curPath.beforNodeId=this.curPath.beforNodeId+l[u].sourceId:this.curPath.beforNodeId=this.curPath.beforNodeId+","+l[u].sourceId);qo()(t.source).hasClass("jcjd")}this.wflow.paths.push(this.curPath)}}var c=qo()(t.target).hasClass("start")||qo()(t.target).hasClass("jsrw")||qo()(t.target).hasClass("jslc")||qo()(t.target).hasClass("jcjd")||qo()(t.target).hasClass("zyjd")||qo()(t.target).hasClass("dfzjd")||qo()(t.target).hasClass("jhjd");qo()(t.source).hasClass("dfzjd")&&c&&(this.$message({message:"不能添加",type:"warning"}),setTimeout((function(){Ks.deleteConnection(t.connection)}),200));var d=qo()(t.target).hasClass("start")||qo()(t.target).hasClass("dfzjd");if(qo()(t.source).hasClass("jhjd")&&d&&(this.$message({message:"不能添加",type:"warning"}),setTimeout((function(){Ks.deleteConnection(t.connection)}),200)),-1===this.curPath.status){var h=qo()(t.target).attr("id"),f=qo()(t.source).attr("id"),p=this.getPathTypes(h,f);this.curPath.pathType=p?3:0,qo()(t.source).attr("id")===qo()(t.target).attr("id")&&(this.curPath.pathType=1),qo()(t.target).hasClass("jslc")&&(this.curPath.pathType=4),qo()(t.target).hasClass("jsrw")&&(this.curPath.pathType=7),qo()(t.target).hasClass("jhjd")&&(this.curPath.pathType=5),this.clickPath(t.connection),this.addNum(this.curPath)}else"mouseup"===event.type&&this.clickPath(t.connection)},clickPath:function(t){if(qo()(".right-form").hide(),qo()(t.source).hasClass("dfzjd")){this.$bus.emit("isChange"),Os.connection=t;var e=this.listarr.some((function(e){return e===t.id}));if(e)return;this.listarr.push(t.id);for(var n=Ks.getAllConnections(),i=0;i<n.length;i++)if(qo()(n[i].target).hasClass("dfzjd")){var r=JSON.parse(JSON.stringify(n[i]));if(qo()(r.target).hasClass("dfzjd")){for(var a=Ks.getAllConnections(),o=[],s=!0,l=0;l<a.length;l++)qo()(a[l].source).hasClass("dfzjd")&&qo()(r.target).attr("id")===qo()(a[l].source).attr("id")&&o.push(a[l]);for(var u=0;u<es.nextNodes.length;u++)this.wflow.nextNodes[u].pathId===r.id&&this.wflow.nextNodes.splice(u--,1);if(s){for(var c=0;c<o.length;c++)this.curNextNode={status:-1,id:Jo(),nextNodeVal:qo()(o[c].target).find("p").html(),isRequired:this.getIsRequired(qo()(o[c].target).attr("id"),r.id).length>0?this.getIsRequired(qo()(o[c].target).attr("id"),r.id)[0].isRequired:0,nextNodeId:qo()(o[c].target).attr("id"),pathId:r.id},this.wflow.nextNodes.push(this.curNextNode),this.nextNodeArr.push(this.curNextNode);this.emitData()}for(var d=0;d<this.wflow.nodes.length;d++){for(var h=0;h<this.nextNodeArr.length;h++)this.wflow.nodes[d].id===this.nextNodeArr[h].nextNodeId&&(this.nextNodeArr[h].nextNodeVal=this.wflow.nodes[d].name);this.emitData()}}}}else this.$bus.emit("Change");this.nextNodeArr.length=0,qo()(t.target).hasClass("jcjd")?this.jcjdPath=!0:this.jcjdPath=!1,qo()(t.target).hasClass("jhjd")?this.jhjdPath=!0:this.jhjdPath=!1,Os.connection=t,this.emitData();var f=qo()(t.target).hasClass("ptjd")||qo()(t.target).hasClass("jzjd")||qo()(t.target).hasClass("drbx")||qo()(t.target).hasClass("drcx")||qo()(t.target).hasClass("hqjd")||qo()(t.target).hasClass("ywjd")||qo()(t.target).hasClass("jcjd")||qo()(t.target).hasClass("jhjd")||qo()(t.target).hasClass("childWf")||qo()(t.target).hasClass("zxjd"),p=qo()(t.source).hasClass("start")||qo()(t.source).hasClass("dfzjd");if(f&&!p&&!qo()(t.target).hasClass("dfzjd"))if(0===this.wflow.nextNodes.length)this.curNextNode={status:-1,id:Jo(),nextNodeVal:qo()(t.target).find("p").html(),isRequired:this.getIsRequired(qo()(t.target).attr("id"),t.id).length>0?this.getIsRequired(qo()(t.target).attr("id"),t.id)[0].isRequired:0,nextNodeId:qo()(t.target).attr("id"),pathId:t.id},this.wflow.nextNodes.push(this.curNextNode);else{for(var g=0;g<this.wflow.nextNodes.length;g++)t.id===this.wflow.nextNodes[g].pathId&&this.wflow.nextNodes.splice(g--,1);this.curNextNode={status:-1,id:Jo(),nextNodeVal:qo()(t.target).find("p").html(),isRequired:this.getIsRequired(qo()(t.target).attr("id"),t.id).length>0?this.getIsRequired(qo()(t.target).attr("id"),t.id)[0].isRequired:0,nextNodeId:qo()(t.target).attr("id"),pathId:t.id},this.wflow.nextNodes.push(this.curNextNode)}if(qo()(t.target).hasClass("jcjd")||qo()(t.target).hasClass("jhjd")){var m=Ks.getAllConnections();qo()(t.target).addClass("nextC");for(var v=0;v<m.length;v++)qo()(m[v].source).hasClass("nextC")&&(qo()(m[v].target).hasClass("jcjd")||qo()(t.target).hasClass("jhjd"))&&qo()(m[v].target).addClass("nextTwoC");for(var y=0;y<m.length;y++)if(qo()(m[y].source).hasClass("nextC")){var A=qo()(m[y].target).hasClass("ptjd")||qo()(m[y].target).hasClass("jzjd")||qo()(m[y].target).hasClass("drbx")||qo()(m[y].target).hasClass("drcx")||qo()(m[y].target).hasClass("hqjd")||qo()(m[y].target).hasClass("ywjd")||qo()(m[y].target).hasClass("childWf");if(A){for(var b=!0,_=0;_<es.nextNodes.length;_++)t.id===es.nextNodes[_].pathId&&this.wflow.nextNodes.splice(_--,1);b&&(this.curNextNode={status:-1,id:Jo(),nextNodeVal:qo()(m[y].target).find("p").html(),isRequired:this.getIsRequired(qo()(t.target).attr("id"),t.id).length>0?this.getIsRequired(qo()(t.target).attr("id"),t.id)[0].isRequired:0,nextNodeId:qo()(t.target).attr("id"),pathId:t.id},this.wflow.nextNodes.push(this.curNextNode))}}for(var w=0;w<m.length;w++)qo()(m[w].source).hasClass("nextTwoC")&&(this.curNextNode={status:-1,id:Jo(),nextNodeVal:qo()(m[w].target).find("p").html(),isRequired:this.getIsRequired(qo()(m[w].target).attr("id"),t.id).length>0?this.getIsRequired(qo()(m[w].target).attr("id"),t.id)[0].isRequired:0,nextNodeId:qo()(m[w].target).attr("id"),pathId:t.id},this.wflow.nextNodes.push(this.curNextNode))}if(qo()(t.target).hasClass("dfzjd")){for(var x=Ks.getAllConnections(),S=[],C=!0,T=0;T<x.length;T++)qo()(x[T].source).hasClass("dfzjd")&&qo()(t.target).attr("id")===qo()(x[T].source).attr("id")&&S.push(x[T]);for(var M=0;M<es.nextNodes.length;M++)this.wflow.nextNodes[M].pathId===t.id&&this.wflow.nextNodes.splice(M--,1);if(C){for(var k=0;k<S.length;k++)this.curNextNode={status:-1,id:Jo(),nextNodeVal:qo()(S[k].target).find("p").html(),isRequired:this.getIsRequired(qo()(S[k].target).attr("id"),t.id).length>0?this.getIsRequired(qo()(S[k].target).attr("id"),t.id)[0].isRequired:0,nextNodeId:qo()(S[k].target).attr("id"),pathId:t.id},this.wflow.nextNodes.push(this.curNextNode),this.nextNodeArr.push(this.curNextNode);this.emitData()}for(var L=0;L<this.wflow.nodes.length;L++){for(var D=0;D<this.nextNodeArr.length;D++)this.wflow.nodes[L].id===this.nextNodeArr[D].nextNodeId&&(this.nextNodeArr[D].nextNodeVal=this.wflow.nodes[L].name);this.emitData()}}for(var E=0;E<this.wflow.paths.length;E++)if("送决策"===this.wflow.paths[E].name&&(this.wflow.paths[E].pathType=6),t.id===this.wflow.paths[E].id)return this.curPath=this.wflow.paths[E],this.curPath.beforNodeId=t.sourceId,void qo()(".node").hide();qo()(".node").hide(),qo()(".panel_path").hide(),qo()(".panel_process").show()},getPathTypes:function(t,e){for(var n="",i="",r=0;r<this.wflow.nodes.length;r++)this.wflow.nodes[r].id===t&&(n=this.wflow.nodes[r].nodeNo),this.wflow.nodes[r].id===e&&(i=this.wflow.nodes[r].nodeNo);return n<parseInt(i)},getProcessNum:function(t){var e="ptjd"===t||"jzjd"===t||"drbx"===t||"drcx"===t||"hqjd"===t||"ywjd"===t||"jcjd"===t||"jhjd"===t||"childWf"===t,n=qo()(".process"),i=[];e?(n.each((function(t,e){var r=qo()(e).hasClass("ptjd")||qo()(e).hasClass("jzjd")||qo()(e).hasClass("drbx")||qo()(e).hasClass("drcx")||qo()(e).hasClass("hqjd")||qo()(e).hasClass("ywjd")||qo()(e).hasClass("jcjd")||qo()(e).hasClass("jhjd")||qo()(e).hasClass("childWf");r&&i.push(n.eq(t))})),this.processNum=i.length):this.processNum=""},changeCurNodeType:function(t){var e=this;t.hasClass("ptjd")?(this.curNode.processType=0,this.curNode.nodeType=1):t.hasClass("jzjd")?(this.curNode.processType=4,this.curNode.nodeType=1):t.hasClass("drbx")?(this.curNode.processType=1,this.curNode.nodeType=1):t.hasClass("drcx")?(this.curNode.processType=3,this.curNode.nodeType=1):t.hasClass("hqjd")?(this.curNode.processType=2,this.curNode.nodeType=1):t.hasClass("ywjd")&&setTimeout((function(){e.curNode.processType=0,e.curNode.nodeType=3}),100)},clickNodeFieldValues:function(){for(var t=[],e=!0,n=0;n<this.wflow.nodeFieldValues.length;n++)this.wflow.nodeFieldValues[n].nodeId===this.curNode.id&&(t.push(this.wflow.nodeFieldValues[n]),e=!1);if(e)this.nodeFieldValue={},this.addNodeFieldValue={};else for(var i=0;i<t.length;i++)0===t[i].valueType?this.nodeFieldValue=t[i]:this.nodeFieldValue={},6===t[i].valueType?this.addNodeFieldValue=t[i]:this.addNodeFieldValue={}},clickNodeOperation:function(){this.curNodeOperation=[],this.curNodeOperationArr=[];for(var t=0;t<this.wflow.operations.length;t++)this.wflow.operations[t].nodeId===this.curNode.id&&this.curNodeOperationArr.push(this.wflow.operations[t])},validateNode:function(t,e){"jcjd"===t.description?(qo()("#panelCircle").hide(100),qo()(".node").hide(),qo()(".panel_node").hide(),qo()(".panel_decision").show()):(qo()("#panelCircle").hide(100),qo()(".node").hide(),qo()(".right-form").show(),qo()(".panel_node").show()),this.$message({message:e,type:"warning"}),this.curNode=t,this.emitData(),qo()(".process").removeClass("seled"),qo()("#"+t.id).addClass("seled")},validatePath:function(t,e,n){console.log("验证path"),qo()("#panelCircle").hide(100),qo()(".node").hide(),this.$message({message:e,type:"warning"}),this.curPath=t,this.emitData();for(var i=0;i<n.length;i++)n[i].setPaintStyle({stroke:"#42546c"});for(var r=0;r<n.length;r++)t.id===n[r].id&&(Os.connection=n[r],n[r].setPaintStyle({stroke:"red"}))},filterEqual:function(t,e){for(var n=[],i=0;i<t.length;i++)for(var r=0;r<e.length;r++)t[i]===e[r].name&&n.push(e[r]);return n},filterDifferent:function(t,e){for(var n=[],i=0;i<t.length;i++){for(var r=!0,a=0;a<e.length;a++)t[i]===e[a].name&&(r=!1);r&&n.push(t[i])}return n},customValidate:function(t){var e=this;if(""===this.wflow.scene.name||void 0===this.wflow.scene.name||null===this.wflow.scene.name)return this.$message({message:"请填写场景名称",type:"warning"}),!1;if(""===this.wflow.scene.type||void 0===this.wflow.scene.type||null===this.wflow.scene.type)return this.$message({message:"请选择场景类型",type:"warning"}),!1;for(var n=function(t){if(""===e.wflow.nodes[t].name||void 0===e.wflow.nodes[t].name)return e.validateNode(e.wflow.nodes[t],"请填写任务名称"),{v:!1};if(0===e.wflow.nodes[t].problem.length&&0===e.wflow.nodes[t].type)return e.validateNode(e.wflow.nodes[t],"请添加问题示例"),{v:!1};if((""===e.wflow.nodes[t].keywords||void 0===e.wflow.nodes[t].keywords)&&0===e.wflow.nodes[t].type)return e.validateNode(e.wflow.nodes[t],"请填写匹配关键词"),{v:!1};if(""===e.wflow.nodes[t].speakType||void 0===e.wflow.nodes[t].speakType||null===e.wflow.nodes[t].speakType)return e.validateNode(e.wflow.nodes[t],"请选择Ai话术切换类型"),{v:!1};if(0===e.wflow.nodes[t].SpeakMethod.length&&0===e.wflow.nodes[t].type)return e.validateNode(e.wflow.nodes[t],"请添加AI话术"),{v:!1};if(0===e.wflow.nodes[t].successSpeakMethod.length&&1===e.wflow.nodes[t].type)return e.validateNode(e.wflow.nodes[t],"请添加AI成功话术"),{v:!1};if(0===e.wflow.nodes[t].errorSpeakMethod.length&&1===e.wflow.nodes[t].type)return e.validateNode(e.wflow.nodes[t],"请添加AI失败话术"),{v:!1};if(1===e.wflow.nodes[t].type&&(""===e.wflow.nodes[t].performId||null===e.wflow.nodes[t].performId))return e.validateNode(e.wflow.nodes[t],"请选择执行动作"),{v:!1};if(1===e.wflow.nodes[t].speakType){var n=e.wflow.speaks.filter((function(n){return e.wflow.nodes[t].id===n.nodeId}))[0];if(""===n.startTime||null===n.startTime||void 0===n.startTime)return e.validateNode(e.wflow.nodes[t],"请选择开始时间"),{v:!1};if(""===n.endTime||null===n.endTime||void 0===n.endTime)return e.validateNode(e.wflow.nodes[t],"请选择结束时间"),{v:!1}}},i=0;i<this.wflow.nodes.length;i++){var r=n(i);if("object"===Ys(r))return r.v}return!0},save:function(){for(var t=0;t<this.wflow.nodes.length;t++)if("0"===this.wflow.nodes[t].ideaLabelId&&(this.wflow.nodes[t].ideaLabelId=null),this.wflow.nodes[t].needWaitNodeId){var e="";for(var n in this.wflow.nodes[t].needWaitNodeId)this.wflow.nodes[t].needWaitNodeId[n]&&(""!==e&&(e+=","),e+=n);this.wflow.nodes[t].needWaitNodeId=e}for(var i=0;i<this.wflow.paths.length;i++)if(this.wflow.paths[i].multiLevelPathFieldValue)for(var r in this.wflow.paths[i].multiLevelPathFieldValue)if(this.wflow.paths[i].multiLevelPathFieldValue[r]){var a={id:Jo(),pathId:this.wflow.paths[i].id,passenger:{},value:r,valueType:0,memo:r};this.wflow.pathFieldValues.push(a)}for(var o=0;o<this.wflow.nodes.length;o++)if(1===this.wflow.nodes[o].isDocEditable&&1===this.wflow.nodes[o].formFieldEditable&&this.wflow.nodes[o].nodeFormFields){for(var s=0;s<this.wflow.nodeFormFields.length;s++)this.wflow.nodeFormFields[s].nodeId===this.wflow.nodes[o].id&&this.wflow.nodeFormFields.splice(s--,1);for(var l=0;l<this.wflow.nodes[o].nodeFormFields.length;l++)this.wflow.nodeFormFields.push(this.wflow.nodes[o].nodeFormFields[l])}},saveWorkflow:function(t){var e=this;this.$bus.emit("SplicingAttavhStr"),this.process.chartData={};var n=[],i=this;qo.a.each(Ks.getAllConnections(),(function(t,e){var r=[parseFloat(e.endpoints[0].anchor.x),parseFloat(e.endpoints[0].anchor.y),e.endpoints[0].anchor.orientation[0],e.endpoints[0].anchor.orientation[1]],a=[parseFloat(e.endpoints[1].anchor.x),parseFloat(e.endpoints[1].anchor.y),e.endpoints[1].anchor.orientation[0],e.endpoints[1].anchor.orientation[1]],o=i.connectsArr.filter((function(t){return t.ConnectionId===e.id}))[0],s=o?o.curMaxX||o.pathMaxX:e.connector.bounds.maxX,l=o?o.curMinX||o.pathMinX:e.connector.bounds.minX,u=o?o.topY:.5;n.push({ConnectionId:e.id,PageSourceId:e.sourceId,PageTargetId:e.targetId,uuid:e.getUuids(),label:e.getLabel(),firstEndpoints:r,secondEndpoints:a,type:e.connector.type,pathMaxX:s,pathMinX:l,topY:u})}));var r=[];qo()("#center .process").each((function(t,e){var n=qo()(e);r.push({domH:Zo.encode(n.prop("outerHTML"))})})),this.process.chartData.connects=n,this.process.chartData.domHtml=r,this.process.chartData=JSON.stringify(this.process.chartData),this.wflow.scene=this.process;var a="";void 0!==this.$route.query.udmid&&(a="?udmid="+this.$route.query.udmid);var o=[];this.wflow.nodes.forEach((function(t){t.sceneId=e.wflow.scene.id,t.createTime=e.wflow.scene.createTime,o=[].concat(Ns(o),Ns(t.SpeakMethod),Ns(t.successSpeakMethod),Ns(t.errorSpeakMethod))})),this.$set(this.wflow,"speaks",o),this.wflow.paths.forEach((function(t){var n=e.wflow.nextNodes.filter((function(e){return e.pathId===t.id}))[0];t.afterNodeId=n.nextNodeId}));var s={method:"POST",url:"/voice/scene/save"+a,contentType:"application/x-www-form-urlencoded",data:this.wflow};this.customValidate(this.wflow)&&this.$confirm("是否确认提交保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){"save"===t&&-1===e.wflow.scene.status&&(e.wflow.scene.status=0),"online"===t&&(e.wflow.scene.status=1),"outline"===t&&(e.wflow.scene.status=2),e.$http(s).then((function(n){if("success"===n.code){e.$message({message:"保存成功",type:"success"});var i=opener.document.querySelector(".el-icon-refresh");null!==i&&i.click(),"SaveAndClose"!==t?e.$route.query.id?e.$route.query.id===n.body.vo.scene.id?location.reload():setTimeout((function(){var t=window.location.href.substring(0,window.location.href.indexOf("?")),e=t+"?id="+n.body.vo.scene.id;window.location.href=e,location.reload()}),1e3):setTimeout((function(){var t=window.location.href;-1===t.indexOf("?")?t+="?id="+n.body.vo.scene.id:t+="&id="+n.body.vo.scene.id,window.location.href=t,location.reload()}),1e3):(window.open("","_self"),window.close())}else e.$message({message:n.message,type:"warning"})}),(function(t){console.log(t),e.$message.error("保存失败")}))})).catch((function(){}))},closeWorkflow:function(){if(this.id){var t=JSON.stringify(this.oldWflow)===JSON.stringify(this.wflow);!t||this.isDomChange||xs?this.saveWorkflow("CloseAndSave"):setTimeout((function(){window.close()}),10)}else setTimeout((function(){window.close()}),10)},emitData:function(){this.$bus.emit("emitProcess",this.process),this.$bus.emit("emitIdeaL",this.ideaL),this.$bus.emit("emitIdeaLables",this.ideaLables),this.$bus.emit("emitJcjdPath",this.jcjdPath),this.$bus.emit("emitJhjdPath",this.jhjdPath),this.$bus.emit("emitNextNodeArr",this.nextNodeArr),this.$bus.emit("emitCurPath",this.curPath),this.$bus.emit("emitWflow",this.wflow),this.$bus.emit("emitPathFieldValue",this.pathFieldValue),this.$bus.emit("emitCurNode",this.curNode),this.$bus.emit("emitNodeFieldValue",this.nodeFieldValue),this.$bus.emit("emitJobPosition",this.jobPosition),this.$bus.emit("emitWorkgroup",this.workgroup),this.$bus.emit("emitOrgStaff",this.orgStaff),this.$bus.emit("emitAddNodeFieldValue",this.addNodeFieldValue),this.$bus.emit("emitAddJobPosition",this.addJobPosition),this.$bus.emit("emitAddWorkgroup",this.addWorkgroup),this.$bus.emit("emitAddOrgStaff",this.addOrgStaff),this.$bus.emit("emitAssistNodeFieldValue",this.assistNodeFieldValue),this.$bus.emit("emitAssistJobPosition",this.assistJobPosition),this.$bus.emit("emitAssistWorkgroup",this.assistWorkgroup),this.$bus.emit("emitAssistOrgStaff",this.assistOrgStaff),this.$bus.emit("emitHistoryNodes",this.historyNodes),this.$bus.emit("emitAddHistoryNodes",this.addHistoryNodes),this.$bus.emit("emitWaitNodeArr",this.waitNodeArr),this.$bus.emit("emitCurNodeOperationArr",this.curNodeOperationArr),this.$bus.emit("emitCurNodeOperation",this.curNodeOperation),this.$bus.emit("emitJobPathFieldValue",this.jobPathFieldValue),this.$bus.emit("emitAddPathFieldValue",this.addPathFieldValue)},setIsRequired:function(){for(var t=0;t<this.nextNodeArr.length;t++)for(var e=0;e<this.wflow.nextNodes.length;e++)if(this.nextNodeArr[t].id===this.wflow.nextNodes[e].id){this.wflow.nextNodes[e]=this.nextNodeArr[t];break}this.emitData()},getIsRequired:function(t,e){var n=[];return this.responseVo.nextNodes&&(n=this.responseVo.nextNodes.filter((function(n){return n.nextNodeId===t&&n.pathId===e}))),n},labelChange:function(t){void 0!==Os.connection&&null!==Os.connection&&(""===t?Os.connection.setLabel({label:" ",cssClass:"line_text"}):Os.connection.setLabel({label:t,cssClass:"line_text"}))},bindName:function(t,e){qo()("#"+t).hasClass("jcjd")?qo()("#"+t).html(e):qo()("#"+t).find("p").html(e)},changeNodeType:function(t,e,n){switch(e){case 0:"start"!==n.nodeNo&&(1===n.nodeType?(qo()("#"+t).addClass("process model_process ptjd"),qo()("#"+t).find("img").attr("src",this.ptjd),qo()("#"+t).find("span").html("普通节点")):(qo()("#"+t).addClass("process model_process ywjd"),qo()("#"+t).find("img").attr("src",this.ywjd),qo()("#"+t).find("span").html("阅文节点")));break;case 1:qo()("#"+t).addClass("process model_process drbx"),qo()("#"+t).find("img").attr("src",this.drbx),qo()("#"+t).find("span").html("多人并行");break;case 2:qo()("#"+t).addClass("process model_process hqjd"),qo()("#"+t).find("img").attr("src",this.hqjd),qo()("#"+t).find("span").html("会签节点");break;case 3:qo()("#"+t).addClass("process model_process drcx"),qo()("#"+t).find("img").attr("src",this.drcx),qo()("#"+t).find("span").html("多人串行");break;case 4:qo()("#"+t).addClass("process model_process jzjd"),qo()("#"+t).find("img").attr("src",this.jzjd),qo()("#"+t).find("span").html("竞争节点");break}},saveIdeaLable:function(t){this.ideaLables=t;var e=qo()("#ideaLable").val()||t;this.ideaArr=e.split("\n");for(var n=0;n<this.ideaArr.length;n++)""!==this.ideaArr[n]&&void 0!==this.ideaArr[n]||this.ideaArr.splice(n,1);var i=this.filterEqual(this.ideaArr,this.wflow.ideaLabels);this.wflow.ideaLabels=i;for(var r=this.filterDifferent(this.ideaArr,this.wflow.ideaLabels),a=0;a<r.length;a++){var o={status:-1,id:Jo(),name:r[a],orderNo:"no"+(a<10?"0"+a:a),afterNodeId:this.process.id};this.wflow.ideaLabels.push(o)}for(var s=e.split("\n"),l=0;l<this.wflow.ideaLabels.length;l++)for(var u=0;u<s.length;u++)this.wflow.ideaLabels[l].name===s[u]&&(this.wflow.ideaLabels[l].orderNo="no"+(u<10?"0"+u:u));this.wflow.ideaLabels.sort((function(t,e){var n=t.orderNo,i=e.orderNo;return n<i?-1:n>i?1:0})),this.ideaL=this.wflow.ideaLabels;for(var c=0;c<this.wflow.nodes.length;c++){for(var d=!0,h=0;h<this.wflow.ideaLabels.length;h++)this.wflow.nodes[c].ideaLabelId===this.wflow.ideaLabels[h].id&&(d=!1);d&&(this.wflow.nodes[c].ideaLabelId=null)}this.emitData()},nodeFieldValueFn:function(t,e,n,i){var r=this,a={id:Jo(),passenger:{},value:n,memo:i};if(-1===t.toLowerCase().indexOf("pathfield")?a.nodeId=e:a.pathId=e,"nodeFieldValue"===t?a.valueType=0:"addNodeFieldValue"===t?a.valueType=6:"assistNodeFieldValue"===t?a.valueType=11:"workgroup"===t?a.valueType=1:"addWorkgroup"===t?a.valueType=7:"assistWorkgroup"===t?a.valueType=12:"jobPosition"===t?a.valueType=3:"addJobPosition"===t?a.valueType=9:"assistJobPosition"===t?a.valueType=14:"orgStaff"===t?a.valueType=2:"addOrgStaff"===t?a.valueType=8:"assistOrgStaff"===t?a.valueType=13:"pathFieldValue"===t?a.valueType=1:"addPathFieldValue"===t?a.valueType=2:"jobPathFieldValue"===t&&(a.valueType=3),this[t]=JSON.parse(JSON.stringify(a)),this.emitData(),-1===t.toLowerCase().indexOf("pathfield")){for(var o=0;o<this.wflow.nodeFieldValues.length;o++)this.wflow.nodeFieldValues[o].nodeId===e&&this.wflow.nodeFieldValues[o].valueType===a.valueType&&this.wflow.nodeFieldValues.splice(o--,1);var s=a.value.split(",");a.value="",s.forEach((function(t){var e=JSON.parse(JSON.stringify(a));e.value=t,e.id=Jo(),r.wflow.nodeFieldValues.push(e)}))}else{for(var l=0;l<this.wflow.pathFieldValues.length;l++)this.wflow.pathFieldValues[l].pathId===e&&this.wflow.pathFieldValues[l].valueType===a.valueType&&this.wflow.pathFieldValues.splice(l--,1);var u=a.value.split(",");a.value="",u.forEach((function(t){var e=JSON.parse(JSON.stringify(a));e.value=t,e.id=Jo(),r.wflow.pathFieldValues.push(e)}))}},onSelectSuborgCompleted:function(t,e){var n="",i="",r="",a=e.nodefield;r="pathFieldValue"===a||"addPathFieldValue"===a?this.curPath.id:this.curNode.id,t.forEach((function(t){""!==i&&(i+=",",n+=","),i+=t.title,n+=t.id})),this.nodeFieldValueFn(a,r,n,i)},onSelectStaffCompleted:function(t,e){var n=this,i="",r="",a=e.nodefield;t.forEach((function(t){""!==r&&(r+=",",i+=","),!t.orgCode||"group_all_corp"!==n.curNode.selectOrg&&"group_cur_corp"!==n.curNode.selectOrg?r+=t.name:r+=t.name+"/"+t.orgCode,i+=t.id})),this.nodeFieldValueFn(a,this.curNode.id,i,r)},onSelectWorkgroupCompleted:function(t,e){var n=e.nodefield,i="",r="",a="";a="pathFieldValue"===n||"addPathFieldValue"===n?this.curPath.id:this.curNode.id,t.forEach((function(t){""!==r&&(r+=",",i+=","),r+=t.name,i+=t.id})),this.nodeFieldValueFn(n,a,i,r)},onSelectJobPositionCompleted:function(t,e){var n=e.nodefield,i="",r="",a="";a="pathFieldValue"===n||"jobPathFieldValue"===n?this.curPath.id:this.curNode.id,t.forEach((function(t){""!==r&&(r+=",",i+=","),r+=t.name,i+=t.id})),this.nodeFieldValueFn(n,a,i,r)},addButton:function(){this.curNodeOperation={btnAlign:1,btnGroupId:null,btnOrderNo:10*(this.curNodeOperationArr.length+1),btnType:"1",btnShow:1,id:Jo(),nodeId:this.curNode.id,passenger:{},visitType:0,status:-1},this.vo=this.curNodeOperation,this.emitData()},queryAddButton:function(){if("2"!==this.curNodeOperation.btnType){if(-1===this.curNodeOperation.btnJavascript.indexOf("(")||-1===this.curNodeOperation.btnJavascript.indexOf(")"))return void this.$message({message:"按钮事件代码格式不正确!",type:"warning"});null!==this.curNodeOperation.btnCode&&""!==(this.curNodeOperation.btnCode+"").trim()||(this.curNodeOperation.btnCode=this.curNodeOperation.btnJavascript.split("(")[0].trim())}this.curNodeOperation.passenger.resRoles&&(this.curNodeOperation.passenger.tResRoles=this.curNodeOperation.passenger.resRoles),this.curNodeOperationArr.push(this.curNodeOperation),this.wflow.operations.push(this.curNodeOperation),this.$bus.emit("closeButtonForm"),this.emitData()},selAddButton:function(t){var e=this;t.forEach((function(t){var n=JSON.parse(JSON.stringify(t));n.nodeId=e.curNode.id,e.curNodeOperationArr.push(n),e.wflow.operations.push(n)})),this.$bus.emit("closeButtonForm"),this.emitData()},deleteButton:function(t,e,n,i){var r=this,a="确认要删除“"+e+"”按钮吗?";2===n?a="确认要删除“"+e+"”下拉按钮及全部子按钮吗?":3===n&&(a="确认要删除“"+e+"”下拉子按钮吗?"),this.$confirm(a,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){for(var e=0;e<r.curNodeOperationArr.length;e++)r.curNodeOperationArr[e].id!==t&&r.curNodeOperationArr[e].btnGroupId!==t||r.curNodeOperationArr.splice(e--,1);for(var n=0;n<r.wflow.operations.length;n++)r.wflow.operations[n].id!==t&&r.wflow.operations[n].btnGroupId!==t||r.wflow.operations.splice(n--,1);i.stopPropagation()}))},editButton:function(t,e){for(var n=0;n<this.curNodeOperationArr.length;n++)this.curNodeOperationArr[n].id===t&&(this.curNodeOperation=this.curNodeOperationArr[n],this.vo=this.curNodeOperation);e.stopPropagation(),this.emitData()},queryAlterButton:function(){if(void 0===this.curNodeOperation.passenger&&(this.curNodeOperation.passenger={}),"2"!==this.curNodeOperation.btnType){if(-1===this.curNodeOperation.btnJavascript.indexOf("(")||-1===this.curNodeOperation.btnJavascript.indexOf(")"))return void this.$message({message:"按钮事件代码格式不正确!",type:"warning"});null!==this.curNodeOperation.btnCode&&""!==(this.curNodeOperation.btnCode+"").trim()||(this.curNodeOperation.btnCode=this.curNodeOperation.btnJavascript.split("(")[0].trim())}this.curNodeOperation.passenger.resRoles&&(this.curNodeOperation.passenger.tResRoles=this.curNodeOperation.passenger.resRoles);for(var t=0;t<this.curNodeOperationArr.length;t++)this.curNodeOperation.id===this.curNodeOperationArr[t].id&&(this.curNodeOperationArr[t]=this.curNodeOperation);for(var e=0;e<this.wflow.operations.length;e++)this.wflow.operations[e].id===this.curNodeOperation.id&&(this.wflow.operations[e]=this.curNodeOperation);this.$bus.emit("closeButtonForm"),this.emitData()},onSelectListpageRowCompleted:function(t,e){if("workFormW"===e.name){var n=t[0].frmViewUrl;n=n.substring(1,n.lastIndexOf(".")).replace(/\//g,"."),this.wflow.process.workFormW="#/dcontent/"+n+"/",this.process.workFormW="#/dcontent/"+n+"/"}else if("nodeFormW"===e.name){var i=t[0].frmViewUrl;i=i.substring(1,i.lastIndexOf(".")).replace(/\//g,"."),this.$set(this.curNode,"workFormW","#/dcontent/"+i+"/")}else"productName"===e.name?(this.$set(this.process,"sysName",t[0].name),this.$set(this.process,"sysCode",t[0].code)):"sysName"===e.name&&(this.$set(this.process,"sysName",t[0].sysName),this.$set(this.process,"sysCode",t[0].sysCode),this.$set(this.process,"orgName",t[0].orgFullname),this.$set(this.process,"orgCode",t[0].orgCode));this.emitData()},watchLine:function(t){var e="",n="";1===t?(e="Flowchart",n="#42546c",rs.connector=["Flowchart",{stub:[0,0],gap:0,cornerRadius:5,alwaysRespectStubs:!0}]):2===t?(e="Straight",n="#42546c",rs.connector=["Straight",{stub:[0,0]}]):3===t&&(e="Bezier",n="#42546c",rs.connector=["Bezier",{stub:[0,0],gap:0,cornerRadius:5,alwaysRespectStubs:!0}]);for(var i=qo()("#center").find(".process"),r=0;r<i.length;r++){var a=Ks.getEndpoints(qo()(i[r]).attr("id"));if(void 0===a||null===a)return;var o=a[0].connector;if(null===o||void 0===o)return;o[0]=e;var s=a[0].connectorStyle;if(null===s||void 0===s)return;s.strokeStyle=n}},dragLine:function(t,e){var n=this,i=0;qo()(document).bind("mousedown",(function(r){if("Bezier"!==e.type){var a;n.dragLineObj.disX=r.pageX,n.dragLineObj.disY=r.pageY;var o=e.curMaxX||e.pathMaxX||t.connector.bounds.maxX,s=e.curMinX||e.pathMinX||t.connector.bounds.minX;a=Math.abs(o)>=Math.abs(s)?Math.abs(o):s,qo()(document).bind("mousemove",(function(r){if(r.pageX>=1915&&qo()("#center").width(3e3),!(t.endpoints.length<2)){r.pageX<0?r.pageX=0:r.pageX>1920&&(r.pageX=1920),r.pageY<60&&(r.pageY=60);var l=r.pageX,u=r.pageY,c=t.endpoints[0].anchor?t.endpoints[0].anchor:t.endpoints[0].anchor.anchors[0],d=t.endpoints[1].anchor?t.endpoints[1].anchor:t.endpoints[1].anchor.anchors[1];if((0===c.x||1===c.x)&&c.y>=0&&(0===d.x||1===d.x)&&d.y>=0&&(Math.abs(o)>=Math.abs(s)?(i=-(a+(l-n.dragLineObj.disX)),i>=0&&(i=1),e.curMaxX=i,e.curMinX=s):(i=a+(l-n.dragLineObj.disX),i>=0&&(i=1),e.curMaxX=o,e.curMinX=i),t.setConnector(["Flowchart",{stub:[-i,20],gap:3,cornerRadius:5,alwaysRespectStubs:!0}]),t.addOverlay(["Arrow",{width:10,length:10,location:1}])),(0===c.y||1===c.y)&&c.x>=0&&(0===d.y||1===d.y)&&d.x>=0){var h=0;h=0===c.y&&1===d.y?n.dragLineObj.disY-u:u-n.dragLineObj.disY,h=(h+t.connector.bounds.maxY/2)/t.connector.bounds.maxY,e.topY=h,h>1&&(h=1),h<0&&(h=0),t.setConnector(["Flowchart",{stub:[10,10],gap:3,cornerRadius:5,alwaysRespectStubs:!0,midpoint:h}]),t.addOverlay(["Arrow",{width:10,length:10,location:1}])}}})),qo()(document).bind("mouseup",(function(t){qo()(document).unbind("mousedown"),qo()(document).unbind("mousemove"),qo()(document).unbind("mouseup")}))}}))},AddAnchor:function(){qo()(".process").bind("dblclick",(function(t){var e=t.currentTarget.classList;if(1!==qo.a.inArray("jcjd",e)){var n,i,r,a,o=t.pageX,s=t.pageY,l=qo()("#"+t.currentTarget.id).offset().top,u=qo()("#"+t.currentTarget.id).offset().left,c=qo()("#"+t.currentTarget.id).width(),d=qo()("#"+t.currentTarget.id).height();s-l<=d/2?o-u<=c/2?o-u<=s-l?(n=0,i=parseFloat((s-l)/d),r=-1,a=0):(i=0,n=parseFloat((o-u)/c),r=0,a=-1):c-(o-u)<=s-l?(n=1,i=parseFloat((s-l)/d),r=1,a=0):(i=0,n=parseFloat((o-u)/c),r=0,a=-1):o-u<=c/2?d-(s-l)<=o-u?(n=parseFloat((o-u)/c),i=1,r=0,a=1):(n=0,i=parseFloat((s-l)/d),r=-1,a=0):d-(s-l)<=c-(o-u)?(n=parseFloat((o-u)/c),i=1,r=0,a=1):(n=1,i=parseFloat((s-l)/d),r=1,a=0),Ks.addEndpoint(t.currentTarget.id,{anchor:[n,i,r,a]},rs)}}))},addNum:function(t){for(var e=0,n=0;n<this.wflow.paths.length;n++)t.beforNodeId===this.wflow.paths[n].beforNodeId&&(e+=1);t.pathNo=10*e},ComparePath:function(){for(var t=document.querySelectorAll(".line_path"),e=0;e<t.length;e++){var n=t[e].getBoundingClientRect(),i=n.x+n.width;i>=1900&&qo()("#center").width(i+100)}}}},qs=$s,Xs=(n("f52d"),Object(g["a"])(qs,Go,Ko,!1,null,"610f603a",null)),Js=Xs.exports,Zs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"right-form"},[e("el-form",{attrs:{id:"workflowForm",name:"workflowForm",method:"post","bootstrap-validator":"",novalidate:"",autocomplete:"off"}},[e("PanelNode")],1)],1)},tl=[],el=function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel_node node",staticStyle:{display:"none",height:"100%"}},[e("div",{staticClass:"right",staticStyle:{height:"100%"}},[e("div",{staticClass:"attr_title"},[e("h3",[t._v("节点属性设置窗口")]),e("i",{staticClass:"el-icon-close",on:{click:t.hidePanel}})]),e("tab0")],1)])},nl=[],il=function(){var t=this,e=t._self._c;return e("div",[e("div",{attrs:{align:"center"}},[0===t.curNode.type?e("table",{staticClass:"list",staticStyle:{border:"1px solid #aeaeae","margin-top":"20px"},attrs:{width:"450"}},[e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" 节点名称 ")]),e("td",{staticStyle:{width:"340px"}},[e("div",{attrs:{id:"WFNameNode"}},[e("el-input",{attrs:{placeholder:"请输入节点名称"},model:{value:t.curNode.name,callback:function(e){t.$set(t.curNode,"name",e)},expression:"curNode.name"}})],1)])]),e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" 问题示例 ")]),e("td",{staticStyle:{width:"340px"}},[e("div",{attrs:{id:"WFNameNode"}},[e("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:t.addProblem}},[t._v("添加问题")]),t._l(t.curNode.problem,(function(n,i){return e("div",{key:i,staticClass:"problem-list"},[e("el-input",{attrs:{placeholder:"请输入问题示例"},model:{value:n.content,callback:function(e){t.$set(n,"content",e)},expression:"item.content"}}),t._v(" "),e("i",{staticClass:"el-icon-delete delete-icon",on:{click:function(e){return t.deleteProblem(n.id)}}})],1)}))],2)])]),e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" 匹配关键词 ")]),e("td",{staticStyle:{width:"340px"}},[e("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入关键词"},model:{value:t.curNode.keywords,callback:function(e){t.$set(t.curNode,"keywords",e)},expression:"curNode.keywords"}})],1)]),e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" AI话术切换 ")]),e("td",{staticStyle:{width:"340px"}},[e("div",{attrs:{id:"WFNameNode"}},[e("el-radio-group",{model:{value:t.curNode.speakType,callback:function(e){t.$set(t.curNode,"speakType",e)},expression:"curNode.speakType"}},[e("el-radio",{attrs:{label:0}},[t._v("顺序")]),e("el-radio",{attrs:{label:1}},[t._v("系统时间")]),e("el-radio",{attrs:{label:2}},[t._v("随机")])],1),e("el-popover",{attrs:{placement:"bottom",width:"300",trigger:"click",content:"当切换规则为顺序时,每次进入当前节点都会顺序循环播放下一个话术; 当切换规则为系统时间时,每次进入当前节点需根据当前系统时间按照配置播放话术,如果没有满足配置的时间点,则播放第一个话术"}},[e("div",{staticStyle:{"margin-right":"100px",float:"right",height:"20px","margin-top":"2px"},attrs:{slot:"reference"},slot:"reference"},[e("i",{staticClass:"el-icon-question",staticStyle:{cursor:"pointer","font-size":"16px"}})])])],1)])]),e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" AI话术 ")]),e("td",{staticStyle:{width:"340px"}},[e("div",{attrs:{id:"WFNameNode"}},[e("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:function(e){return t.addSpeakMethod(2,"SpeakMethod")}}},[t._v("添加话术")]),t._l(t.curNode.SpeakMethod,(function(n,i){return e("div",{key:i},[e("div",{staticClass:"problem-list"},[e("el-input",{attrs:{placeholder:"请输入AI话术"},model:{value:n.content,callback:function(e){t.$set(n,"content",e)},expression:"item.content"}}),t._v(" "),e("i",{staticClass:"el-icon-delete delete-icon",on:{click:function(e){return t.deleteSpeakMethod(n.id,"SpeakMethod")}}})],1),1===t.curNode.speakType?e("div",[e("el-time-picker",{staticStyle:{width:"340px","margin-top":"8px"},attrs:{"is-range":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"HH:mm:ss","value-format":"HH:mm:ss"},on:{change:function(e){return t.timeChange(n.time,i,"SpeakMethod")}},model:{value:n.time,callback:function(e){t.$set(n,"time",e)},expression:"item.time"}})],1):t._e()])}))],2)])])]):t._e(),1===t.curNode.type?e("table",{staticClass:"list",staticStyle:{border:"1px solid #aeaeae","margin-top":"20px"},attrs:{width:"450"}},[e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" 节点名称 ")]),e("td",{staticStyle:{width:"340px"}},[e("div",{attrs:{id:"WFNameNode"}},[e("el-input",{attrs:{placeholder:"请输入节点名称"},model:{value:t.curNode.name,callback:function(e){t.$set(t.curNode,"name",e)},expression:"curNode.name"}})],1)])]),e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" AI话术切换 ")]),e("td",{staticStyle:{width:"340px"}},[e("div",{attrs:{id:"WFNameNode"}},[e("el-radio-group",{model:{value:t.curNode.speakType,callback:function(e){t.$set(t.curNode,"speakType",e)},expression:"curNode.speakType"}},[e("el-radio",{attrs:{label:0}},[t._v("顺序")]),e("el-radio",{attrs:{label:1}},[t._v("系统时间")]),e("el-radio",{attrs:{label:2}},[t._v("随机")])],1),e("el-popover",{attrs:{placement:"bottom",width:"300",trigger:"click",content:"当切换规则为顺序时,每次进入当前节点都会顺序循环播放下一个话术; 当切换规则为系统时间时,每次进入当前节点需根据当前系统时间按照配置播放话术,如果没有满足配置的时间点,则播放第一个话术"}},[e("div",{staticStyle:{"margin-right":"100px",float:"right",height:"20px","margin-top":"2px"},attrs:{slot:"reference"},slot:"reference"},[e("i",{staticClass:"el-icon-question",staticStyle:{cursor:"pointer","font-size":"16px"}})])])],1)])]),e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" 成功话术 ")]),e("td",{staticStyle:{width:"340px"}},[e("div",{attrs:{id:"WFNameNode"}},[e("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:function(e){return t.addSpeakMethod(1,"successSpeakMethod")}}},[t._v("添加话术")]),t._l(t.curNode.successSpeakMethod,(function(n,i){return e("div",{key:i},[e("div",{staticClass:"problem-list"},[e("el-input",{attrs:{placeholder:"请输入成功话术"},model:{value:n.content,callback:function(e){t.$set(n,"content",e)},expression:"item.content"}}),t._v(" "),e("i",{staticClass:"el-icon-delete delete-icon",on:{click:function(e){return t.deleteSpeakMethod(n.id,"successSpeakMethod")}}})],1),1===t.curNode.speakType?e("div",[e("el-time-picker",{staticStyle:{width:"340px","margin-top":"8px"},attrs:{"is-range":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"HH:mm:ss","value-format":"HH:mm:ss"},on:{change:function(e){return t.timeChange(n.time,i,"successSpeakMethod")}},model:{value:n.time,callback:function(e){t.$set(n,"time",e)},expression:"item.time"}})],1):t._e()])}))],2)])]),e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" 失败话术 ")]),e("td",{staticStyle:{width:"340px"}},[e("div",{attrs:{id:"WFNameNode"}},[e("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:function(e){return t.addSpeakMethod(0,"errorSpeakMethod")}}},[t._v("添加话术")]),t._l(t.curNode.errorSpeakMethod,(function(n,i){return e("div",{key:i},[e("div",{staticClass:"problem-list"},[e("el-input",{attrs:{placeholder:"请输入失败话术"},model:{value:n.content,callback:function(e){t.$set(n,"content",e)},expression:"item.content"}}),t._v(" "),e("i",{staticClass:"el-icon-delete delete-icon",on:{click:function(e){return t.deleteSpeakMethod(n.id,"errorSpeakMethod")}}})],1),1===t.curNode.speakType?e("div",[e("el-time-picker",{staticStyle:{width:"340px","margin-top":"8px"},attrs:{"is-range":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"HH:mm:ss","value-format":"HH:mm:ss"},on:{change:function(e){return t.timeChange(n.time,i,"errorSpeakMethod")}},model:{value:n.time,callback:function(e){t.$set(n,"time",e)},expression:"item.time"}})],1):t._e()])}))],2)])]),e("tr",{attrs:{valign:"top"}},[e("td",{staticClass:"tdBg",staticStyle:{width:"90px"},attrs:{align:"right",valign:"middle"}},[t._v(" 执行动作 ")]),e("td",{staticStyle:{width:"340px"}},[e("el-select",{attrs:{placeholder:"请选择执行动作"},on:{"visible-change":t.visiblehange},model:{value:t.curNode.performId,callback:function(e){t.$set(t.curNode,"performId",e)},expression:"curNode.performId"}},t._l(t.showperformList,(function(t,n){return e("el-option",{key:n,attrs:{label:t.name,value:t.id}})})),1)],1)])]):t._e()])])},rl=[];function al(t){return al="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},al(t)}function ol(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ol=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),s=new D(i||[]);return r(o,"_invoke",{value:T(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function v(){}function y(){}function A(){}var b={};u(b,o,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==n&&i.call(w,o)&&(b=w);var x=A.prototype=v.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,a,o,s){var l=d(t[r],t,a);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==al(c)&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var a;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return a=a?a.then(r,r):r()}})}function T(e,n,i){var r=h;return function(a,o){if(r===p)throw Error("Generator is already running");if(r===g){if("throw"===a)throw o;return{value:t,done:!0}}for(i.method=a,i.arg=o;;){var s=i.delegate;if(s){var l=M(s,i);if(l){if(l===m)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var u=d(e,n,i);if("normal"===u.type){if(r=i.done?g:f,u.arg===m)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=g,i.method="throw",i.arg=u.arg)}}}function M(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var a=d(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(al(e)+" is not iterable")}return y.prototype=A,r(x,"constructor",{value:A,configurable:!0}),r(A,"constructor",{value:y,configurable:!0}),y.displayName=u(A,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var o=new C(c(t,n,i,r),a);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(x),u(x,l,"Generator"),u(x,o,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=E,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:E(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}function sl(t,e,n,i,r,a,o){try{var s=t[a](o),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(i,r)}function ll(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){sl(a,i,r,o,s,"next",t)}function s(t){sl(a,i,r,o,s,"throw",t)}o(void 0)}))}}var ul=n("c1df"),cl={components:{},props:{},data:function(){return{process:{},curNode:{},performList:[],showperformList:[],value:""}},computed:{},watch:{"curNode.name":function(t){this.$bus.emit("bindName",this.curNode.id,t)},"curNode.processType":function(t){},"process.type":function(t,e){void 0!==e&&(this.curNode.performId="")}},created:function(){this.$bus.on("emitProcess",this.processhandler),this.$bus.on("emitCurNode",this.curNodehandler),this.getPerformList()},beforeDestroy:function(){this.$bus.off("emitProcess",this.processhandler),this.$bus.off("emitCurNode",this.curNodehandler)},mounted:function(){},methods:{getPerformList:function(){var t=this;return ll(ol().mark((function e(){var n,i;return ol().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=[{compare:"number",field:"status",merge:!0,value:"1"}],e.next=3,t.$app.querydata("/voice/perform/querydata",n);case 3:i=e.sent,"success"===i.code?(t.performList=i.body.listdata,t.showperformList=t.performList):t.$message({message:i.message,type:"warning"});case 5:case"end":return e.stop()}}),e)})))()},visiblehange:function(t){var e=this;t&&(null!==this.process.type&&""!==this.process.type&&void 0!==this.process.type?this.showperformList=this.performList.filter((function(t){return t.type===e.process.type})):this.showperformList=this.performList)},addProblem:function(){var t={content:"",id:Jo(),nodeId:this.curNode.id};this.curNode.problem.push(t)},deleteProblem:function(t){var e=this.curNode.problem.filter((function(e){return e.id!==t}));this.curNode.problem=e},addSpeakMethod:function(t,e){var n={content:"",createTime:ul(new Date).format("YYYY-MM-DD HH:mm:ss"),endTime:"",id:Jo(),memo:"",nodeId:this.curNode.id,serial:this.curNode[e].length+1,startTime:"",updateTime:"",time:["",""],type:t};this.curNode[e].push(n)},deleteSpeakMethod:function(t,e){var n=this.curNode[e].filter((function(e){return e.id!==t}));this.curNode[e]=n},timeChange:function(t,e,n){t=t||["",""],this.curNode[n][e].startTime=t[0],this.curNode[n][e].endTime=t[1]},curNodehandler:function(t){"string"===typeof t.problem&&(t.problem=JSON.parse(t.problem)),this.curNode=t,console.log(t)},processhandler:function(t){this.process=t},changehandler:function(t){this.$bus.emit("changeNodeType",this.curNode.id,t,this.curNode)}}},dl=cl,hl=(n("d3e7"),Object(g["a"])(dl,il,rl,!1,null,"9207951a",null)),fl=hl.exports,pl={components:{Tab0:fl},props:{},data:function(){return{loginUser:this.$store.getters.loginUser,dwadmin:0,udmid:null}},computed:{},watch:{},created:function(){"plat"===this.loginUser.orgCode&&"1"!==this.$route.query.dwadmin||(this.dwadmin=1),this.$route.query.udmid&&(this.udmid=this.$route.query.udmid)},beforeDestroy:function(){},mounted:function(){},methods:{hidePanel:function(){$(".right-form").hide()}}},gl=pl,ml=(n("4a0b"),Object(g["a"])(gl,el,nl,!1,null,"4500663d",null)),vl=ml.exports,yl={components:{PanelNode:vl},props:{},data:function(){return{}},computed:{},watch:{},created:function(){},beforeDestroy:function(){},mounted:function(){},methods:{}},Al=yl,bl=(n("a4f8"),Object(g["a"])(Al,Zs,tl,!1,null,"225aeaf1",null)),_l=bl.exports,wl=n("b8fb"),xl=wl.title,Sl=wl.logo,Cl={components:{SideBar:Uo,Center:Js,RightForm:_l,MenuBar:Wo,TopBtn:Vi},data:function(){return{title:xl,logoUrl:Sl}},computed:{},watch:{},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){},methods:{}},Tl=Cl,Ml=(n("d4ad"),n("fff4"),Object(g["a"])(Tl,Ro,jo,!1,null,"32c32787",null)),kl=Ml.exports,Ll=n("9ba1"),Dl=n("8ad9");function El(t){return El="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},El(t)}function Bl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Il(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bl(Object(n),!0).forEach((function(e){Ol(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ol(t,e,n){return e=Pl(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pl(t){var e=Nl(t,"string");return"symbol"==El(e)?e:e+""}function Nl(t,e){if("object"!=El(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=El(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}n("e792"),so.install=function(t){t.component("BaseSystemSummary",so)};var Fl=Il(Il(Il(Il({CityCodeConfig:E,Cockpit:qt,Cockpit1:mi,ConversationSimulateLeft:xi,ConversationSimulateRight:Fi,ConversationSimulateTest:Ji,ConversationTbColumns:lr,ConversationTopBtn:Vi,BaseHoliday:Xr,InvoiceRecognition:ha,InvoiceRecognitionRegister:ya,OrganMgrSyncToWechat:Sa,PasswordPolicy:Da,BaseProductMenuMgr:za,BaseSysLog:$a,BaseSystemSummary:so,BaseUiStyle:To,BaseUiStyleSkinSet:wo,BaseUiStyleUserForm:Bo,VoiceSideBar:Uo,VoiceVoiceDesigner:kl,VoiceCenter:Js,VoiceMenuBar:Wo,VoiceRight:_l,VoiceRightFormPanelNode:vl,VoiceRightFormTab:fl},ur["default"]),Ea["default"]),Ll["default"]),Dl["default"]),Ul=function t(e){t.installed||(t.installed=!0,Object.keys(Fl).forEach((function(t){e.component(t,Fl[t])})))};"undefined"!==typeof window&&window.Vue&&Ul(window.Vue);var Rl=Il({install:Ul},Fl);e["default"]=Rl},fbd0:function(t,e,n){"use strict";var i=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],r=function(t){return t[0]==="I".charCodeAt(0)&&t[1]==="D".charCodeAt(0)&&t[2]==="3".charCodeAt(0)},a=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},o=function(t,e,n){var i,r="";for(i=e;i<n;i++)r+="%"+("00"+t[i].toString(16)).slice(-2);return r},s=function(t,e,n){return unescape(o(t,e,n))},l=function(t,e){var n=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9],i=t[e+5],r=(16&i)>>4;return r?n+20:n+10},u=function(t,e){var n=(224&t[e+5])>>5,i=t[e+4]<<3,r=6144&t[e+3];return r|i|n},c=function(t,e){return t[e]==="I".charCodeAt(0)&&t[e+1]==="D".charCodeAt(0)&&t[e+2]==="3".charCodeAt(0)?"timed-metadata":!0&t[e]&&240===(240&t[e+1])?"audio":null},d=function(t){var e=0;while(e+5<t.length){if(255===t[e]&&240===(246&t[e+1]))return i[(60&t[e+2])>>>2];e++}return null},h=function(t){var e,n,i,r;e=10,64&t[5]&&(e+=4,e+=a(t.subarray(10,14)));do{if(n=a(t.subarray(e+4,e+8)),n<1)return null;if(r=String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3]),"PRIV"===r){i=t.subarray(e+10,e+n+10);for(var o=0;o<i.byteLength;o++)if(0===i[o]){var l=s(i,0,o);if("com.apple.streaming.transportStreamTimestamp"===l){var u=i.subarray(o+1),c=(1&u[3])<<30|u[4]<<22|u[5]<<14|u[6]<<6|u[7]>>>2;return c*=4,c+=3&u[7],c}break}}e+=10,e+=n}while(e<t.byteLength);return null};t.exports={isLikelyAacData:r,parseId3TagSize:l,parseAdtsSize:u,parseType:c,parseSampleRate:d,parseAacTimestamp:h}},fbe8:function(t,e,n){var i=n("6541");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("bfc061b4",i,!0,{sourceMap:!1,shadowMode:!1})},fc21:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".date_table_tree[data-v-18249695],.date_table_tree .date_table_tree_border[data-v-18249695]{display:-webkit-box;display:-ms-flexbox;display:flex}.date_table_tree .date_table_tree_border[data-v-18249695]{width:240px;min-width:240px;border:1px solid #d8dce5;margin-right:10px;height:calc(100vh - 200px);-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.date_table_tree .date_table_tree_btn[data-v-18249695]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:50px}",""]),t.exports=e},fca0:function(t,e,n){var i=n("5ca1"),r=n("7726").isFinite;i(i.S,"Number",{isFinite:function(t){return"number"==typeof t&&r(t)}})},fd24:function(t,e,n){var i=n("5ca1");i(i.S,"Object",{setPrototypeOf:n("8b97").set})},fd7e:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}});return e}))},fd86:function(t,e,n){"use strict";n("f1bd")},fdaf:function(t,e,n){"use strict";n("2c04")},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},fe06:function(t,e,n){var i=n("0d31");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("2accbd0a",i,!0,{sourceMap:!1,shadowMode:!1})},ffc1:function(t,e,n){var i=n("5ca1"),r=n("504c")(!0);i(i.S,"Object",{entries:function(t){return r(t)}})},fff4:function(t,e,n){"use strict";n("bcf9")},ffff:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict";var e=t.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return e}))}})}));
|
|
114
114
|
//# sourceMappingURL=ecyoabase.umd.min.js.map
|