Version 1.0.91
Ylian Saint-Hilaire committed
Oct 27, 2022 at 11:13 UTC
c94ddfcf5c5a0c0a893f07ede244a4fd004c33d4
23 files changed
+3033
-3014
package.json
+2
-10
@@ -1,6 +1,6 @@
1
{
2
"name": "meshcentral",
3
- "version": "1.0.90",
3
+ "version": "1.0.91",
4
"keywords": [
5
"Remote Device Management",
6
"Remote Device Monitoring",
@@ -37,27 +37,19 @@
37
"sample-config-advanced.json"
38
],
39
"dependencies": {
40
- "@yetzt/nedb": "^1.8.0",
40
"archiver": "^5.3.1",
41
"body-parser": "^1.19.0",
42
"cbor": "~5.2.0",
43
"compression": "^1.7.4",
44
"cookie-session": "^1.4.0",
46
- "discord.js": "^14.6.0",
45
"express": "^4.17.0",
46
"express-handlebars": "^5.3.5",
47
"express-ws": "^4.0.0",
50
- "input": "^1.0.1",
48
"ipcheck": "^0.1.0",
52
- "loadavg-windows": "^1.1.1",
49
"minimist": "^1.2.5",
50
"multiparty": "^4.2.1",
55
- "mysql": "^2.18.1",
51
+ "@yetzt/nedb": "^1.8.0",
52
"node-forge": "^1.0.0",
57
- "node-windows": "^0.1.4",
58
- "otplib": "^10.2.3",
59
- "ssh2": "^1.11.0",
60
- "telegram": "^2.13.6",
53
"ws": "^5.2.3",
54
"yauzl": "^2.10.0"
55
},
public/scripts/agent-desktop-0.0.2-min.js
+1
-1
@@ -1 +1 @@
1
-Uint8Array.prototype.slice||Object.defineProperty(Uint8Array.prototype,"slice",{value:function(e,t){return new Uint8Array(Array.prototype.slice.call(this,e,t))}});var CreateAgentRemoteDesktop=function(e,t){var p={},S=("string"==typeof(p.CanvasId=e)&&(p.CanvasId=Q(e)),p.Canvas=p.CanvasId.getContext("2d"),p.scrolldiv=t,p.State=0,p.PendingOperations=[],p.tilesReceived=0,p.TilesDrawn=0,p.KillDraw=0,p.ipad=!1,p.tabletKeyboardVisible=!1,p.LastX=0,p.LastY=0,p.touchenabled=0,p.submenuoffset=0,p.touchtimer=null,p.TouchArray={},p.connectmode=0,p.connectioncount=0,p.rotation=0,p.protocol=2,p.debugmode=0,p.firstUpKeys=[],p.stopInput=!1,p.localKeyMap=!0,p.remoteKeyMap=!1,p.pressedKeys=[],p.sessionid=0,p.username,p.oldie=!1,p.ImageType=1,p.CompressionLevel=50,p.ScalingLevel=1024,p.FrameRateTimer=100,p.SwapMouse=!1,p.UseExtendedKeyFlag=!0,p.FirstDraw=!1,p.onRemoteInputLockChanged=null,p.RemoteInputLock=null,p.onKeyboardStateChanged=null,p.KeyboardState=0,p.ScreenWidth=960,p.ScreenHeight=701,p.width=960,p.height=960,p.displays=null,p.selectedDisplay=null,p.onScreenSizeChange=null,p.onMessage=null,p.onConnectCountChanged=null,p.onDebugMessage=null,p.onTouchEnabledChanged=null,p.onDisplayinfo=null,!(p.accumulator=null)),v="default",C=(p.mouseCursorActive=function(e){S!=e&&(S=e,p.CanvasId.style.cursor=1==e?v:"default")},["default","progress","crosshair","pointer","help","text","no-drop","move","nesw-resize","ns-resize","nwse-resize","w-resize","alias","wait","none","not-allowed","col-resize","row-resize","copy","zoom-in","zoom-out"]),a=(p.Start=function(){p.State=0,p.accumulator=null},p.Stop=function(){p.setRotation(0),p.UnGrabKeyInput(),p.UnGrabMouseInput(),p.touchenabled=0,null!=p.onScreenSizeChange&&p.onScreenSizeChange(p,p.ScreenWidth,p.ScreenHeight,p.CanvasId),p.Canvas.clearRect(0,0,p.CanvasId.width,p.CanvasId.height)},p.xxStateChange=function(e){p.State!=e&&(p.State=e,p.CanvasId.style.cursor="default",0===e&&p.Stop())},p.send=function(e){2<p.debugmode&&console.log("KSend("+e.length+"): "+rstr2hex(e)),null!=p.parent&&p.parent.send(e)},p.ProcessPictureMsg=function(e,t,n){for(var o=new Image,a=(o.xcount=p.tilesReceived++,p.tilesReceived),r=e.slice(4),s=0,i=[];5e4<r.byteLength-s;)i.push(String.fromCharCode.apply(null,r.slice(s,s+5e4))),s+=5e4;0<s?i.push(String.fromCharCode.apply(null,r.slice(s))):i.push(String.fromCharCode.apply(null,r)),o.src="data:image/jpeg;base64,"+btoa(i.join("")),o.onload=function(){if(null!=p.Canvas&&p.KillDraw<a&&0!=p.State)for(p.PendingOperations.push([a,2,o,t,n]);p.DoPendingOperations(););else p.PendingOperations.push([a,0])},o.error=function(){console.log("DecodeTileError")}},p.DoPendingOperations=function(){if(0!=p.PendingOperations.length){for(var e=0;e<p.PendingOperations.length;e++){var t=p.PendingOperations[e];if(t[0]==p.TilesDrawn+1)return null!=p.onPreDrawImage&&p.onPreDrawImage(),1==t[1]?p.ProcessCopyRectMsg(t[2]):2==t[1]&&(p.Canvas.drawImage(t[2],p.rotX(t[3],t[4]),p.rotY(t[3],t[4])),delete t[2]),p.PendingOperations.splice(e,1),delete t,p.TilesDrawn++,p.TilesDrawn==p.tilesReceived&&p.KillDraw<p.TilesDrawn&&(p.KillDraw=p.TilesDrawn=p.tilesReceived=0),!0}p.oldie&&0<p.PendingOperations.length&&p.TilesDrawn++}return!1},p.ProcessCopyRectMsg=function(e){var t=((255&e.charCodeAt(0))<<8)+(255&e.charCodeAt(1)),n=((255&e.charCodeAt(2))<<8)+(255&e.charCodeAt(3)),o=((255&e.charCodeAt(4))<<8)+(255&e.charCodeAt(5)),a=((255&e.charCodeAt(6))<<8)+(255&e.charCodeAt(7)),r=((255&e.charCodeAt(8))<<8)+(255&e.charCodeAt(9)),e=((255&e.charCodeAt(10))<<8)+(255&e.charCodeAt(11));p.Canvas.drawImage(Canvas.canvas,t,n,r,e,o,a,r,e)},p.SendUnPause=function(){1<p.debugmode&&console.log("SendUnPause"),p.send(String.fromCharCode(0,8,0,5,0))},p.SendPause=function(){1<p.debugmode&&console.log("SendPause"),p.send(String.fromCharCode(0,8,0,5,1))},p.SendCompressionLevel=function(e,t,n,o){p.ImageType=e,t&&(p.CompressionLevel=t),n&&(p.ScalingLevel=n),o&&(p.FrameRateTimer=o),p.send(String.fromCharCode(0,5,0,10,e,p.CompressionLevel)+p.shortToStr(p.ScalingLevel)+p.shortToStr(p.FrameRateTimer))},p.SendRefresh=function(){p.send(String.fromCharCode(0,6,0,4))},p.ProcessScreenMsg=function(e,t){if(0<p.debugmode&&console.log("ScreenSize: "+e+" x "+t),p.ScreenWidth!=e||p.ScreenHeight!=t){for(p.Canvas.setTransform(1,0,0,1,0,0),p.rotation=0,p.FirstDraw=!0,p.ScreenWidth=p.width=e,p.ScreenHeight=p.height=t,p.KillDraw=p.tilesReceived;0<p.PendingOperations.length;)p.PendingOperations.shift();p.SendCompressionLevel(p.ImageType),p.SendUnPause(),p.SendRemoteInputLock(2),null!=p.onScreenSizeChange&&p.onScreenSizeChange(p,p.ScreenWidth,p.ScreenHeight,p.CanvasId)}},p.ProcessBinaryCommand=function(e,t,n){var o,a;switch(3!=e&&4!=e&&7!=e||(o=(n[4]<<8)+n[5],a=(n[6]<<8)+n[7]),2<p.debugmode&&console.log("CMD",e,t,o,a),null!=p.recordedData&&(65e3<t?p.recordedData.push(f(2,1,p.shortToStr(27)+p.shortToStr(8)+p.intToStr(t)+p.shortToStr(e)+p.shortToStr(0)+p.shortToStr(0)+p.shortToStr(0)+String.fromCharCode.apply(null,n))):p.recordedData.push(f(2,1,String.fromCharCode.apply(null,n)))),e){case 3:p.FirstDraw&&p.onResize(),p.ProcessPictureMsg(n.slice(4),o,a);break;case 7:p.ProcessScreenMsg(o,a),p.SendKeyMsgKC(p.KeyAction.UP,16),p.SendKeyMsgKC(p.KeyAction.UP,17),p.SendKeyMsgKC(p.KeyAction.UP,18),p.SendKeyMsgKC(p.KeyAction.UP,91),p.SendKeyMsgKC(p.KeyAction.UP,92),p.SendKeyMsgKC(p.KeyAction.UP,16),p.send(String.fromCharCode(0,14,0,4));break;case 11:var r=0,s={},i=(n[4]<<8)+n[5];if(0<i)for(var r=(n[6+2*i]<<8)+n[7+2*i],c=0;c<i;c++){var u=(n[6+2*c]<<8)+n[7+2*c];s[u]=65535==u?"All Displays":"Display "+u}p.displays=s,p.selectedDisplay=r,null!=p.onDisplayinfo&&p.onDisplayinfo(p,s,r);break;case 12:break;case 14:p.touchenabled=1,p.TouchArray={},null!=p.onTouchEnabledChanged&&p.onTouchEnabledChanged(p.touchenabled);break;case 15:p.TouchArray={};break;case 17:var d=String.fromCharCode.apply(null,n.slice(4));console.log("Got KVM Message: "+d),null!=p.onMessage&&p.onMessage(d,p);break;case 18:if(5!=t||p.KeyboardState==n[4])break;p.KeyboardState=n[4],p.onKeyboardStateChanged&&p.onKeyboardStateChanged(p,p.KeyboardState),console.log("MNG_KVM_KEYSTATE:"+(1&p.KeyboardState?" NumLock":"")+(2&p.KeyboardState?" ScrollLock":"")+(4&p.KeyboardState?" CapsLock":""));break;case 65:"."!=(d=String.fromCharCode.apply(null,n.slice(4)))[0]?(console.log(d),p.parent&&p.parent.setConsoleMessage&&p.parent.setConsoleMessage(d)):console.log("KVM: "+d.substring(1));break;case 82:if(t<4||(t-4)%10!=0)break;for(var l=(t-4)/10,h={},g=4,c=0;c<l;c++)h[(n[g+0]<<8)+n[g+1]]={x:(n[g+2]<<8)+n[g+3],y:(n[g+4]<<8)+n[g+5],w:(n[g+6]<<8)+n[g+7],h:(n[g+8]<<8)+n[g+9]},g+=10;break;case 87:if(5!=t)break;null!=p.RemoteInputLock&&p.RemoteInputLock===(0!=n[4])||(p.RemoteInputLock=0!=n[4],p.onRemoteInputLockChanged&&p.onRemoteInputLockChanged(p,p.RemoteInputLock));break;case 88:if(5!=t||p.stopInput)break;r=n[4];v=C[r=C.length<r?0:r],S&&(p.CanvasId.style.cursor=v);break;default:console.log("Unknown command",e,t)}},p.MouseButton={NONE:0,LEFT:2,RIGHT:8,MIDDLE:32},p.KeyAction={NONE:0,DOWN:1,UP:2,SCROLL:3,EXUP:4,EXDOWN:5,DBLCLICK:6},p.InputType={KEY:1,MOUSE:2,CTRLALTDEL:10,TOUCH:15,KEYUNICODE:85},p.Alternate=0,{Pause:19,CapsLock:20,Space:32,Quote:222,Minus:189,NumpadMultiply:106,NumpadAdd:107,PrintScreen:44,Comma:188,NumpadSubtract:109,NumpadDecimal:110,Period:190,Slash:191,NumpadDivide:111,Semicolon:186,Equal:187,OSLeft:91,BracketLeft:219,OSRight:91,Backslash:220,BracketRight:221,ContextMenu:93,Backquote:192,NumLock:144,ScrollLock:145,Backspace:8,Tab:9,Enter:13,NumpadEnter:13,Escape:27,Delete:46,Home:36,PageUp:33,PageDown:34,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,End:35,Insert:45,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,ShiftLeft:16,ShiftRight:16,ControlLeft:17,ControlRight:17,AltLeft:18,AltRight:18,MetaLeft:91,MetaRight:92,VolumeMute:181});var r=["ShiftRight","AltRight","ControlRight","Home","End","Insert","Delete","PageUp","PageDown","NumpadDivide","NumpadEnter","NumLock","Pause"];function f(e,t,n){var o=Date.now();return"number"==typeof n?(p.recordedSize+=n,p.shortToStr(e)+p.shortToStr(t)+p.intToStr(n)+p.intToStr(o>>32)+p.intToStr(32&o)):(p.recordedSize+=n.length,p.shortToStr(e)+p.shortToStr(t)+p.intToStr(n.length)+p.intToStr(o>>32)+p.intToStr(32&o)+n)}return p.SendKeyMsg=function(e,t){var n,o;null!=e&&(t=t||window.event,n=!1,0==(n=(p.UseExtendedKeyFlag||1==urlargs.extkeys)&&"string"==typeof t.code&&(t.code.startsWith("Arrow")||0<=r.indexOf(t.code))?!0:n)&&t.code&&0==t.code.startsWith("NumPad")&&0==p.localKeyMap?null!=(o=(o=t).code.startsWith("Key")&&4==o.code.length?o.code.charCodeAt(3):o.code.startsWith("Digit")&&6==o.code.length?o.code.charCodeAt(5):o.code.startsWith("Numpad")&&7==o.code.length?o.code.charCodeAt(6)+48:a[o.code])&&p.SendKeyMsgKC(e,o,n):(59==(o=t.keyCode)?o=186:173==o?o=189:61==o&&(o=187),p.SendKeyMsgKC(e,o,n)))},p.SendRemoteInputLock=function(e){p.send(String.fromCharCode(0,87,0,5,e))},p.SendMessage=function(e){3==p.State&&p.send(String.fromCharCode(0,17)+p.shortToStr(4+e.length)+e)},p.SendKeyMsgKC=function(e,t,n){if(3==p.State)if("object"==typeof e)for(var o in e)p.SendKeyMsgKC(e[o][0],e[o][1],e[o][2]);else{1==e?-1==p.pressedKeys.indexOf(t)&&p.pressedKeys.unshift(t):2==e&&-1!=(o=p.pressedKeys.indexOf(t))&&p.pressedKeys.splice(o,1),0<p.debugmode&&console.log("Sending Key "+t+", action "+e);var a=e-1;n&&(a=1==a?3:4),p.send(String.fromCharCode(0,p.InputType.KEY,0,6,a,t))}},p.SendStringUnicode=function(e){if(3==p.State)for(var t=0;t<e.length;t++)p.send(String.fromCharCode(0,p.InputType.KEYUNICODE,0,7,0)+ShortToStr(e.charCodeAt(t))),p.send(String.fromCharCode(0,p.InputType.KEYUNICODE,0,7,1)+ShortToStr(e.charCodeAt(t)))},p.SendKeyUnicode=function(e,t){3==p.State&&(0<p.debugmode&&console.log("Sending UnicodeKey "+t),p.send(String.fromCharCode(0,p.InputType.KEYUNICODE,0,7,e-1)+ShortToStr(t)))},p.sendcad=function(){p.SendCtrlAltDelMsg()},p.SendCtrlAltDelMsg=function(){3==p.State&&p.send(String.fromCharCode(0,p.InputType.CTRLALTDEL,0,4))},p.SendEscKey=function(){3==p.State&&p.send(String.fromCharCode(0,p.InputType.KEY,0,6,0,27,0,p.InputType.KEY,0,6,1,27))},p.SendStartMsg=function(){p.SendKeyMsgKC(p.KeyAction.EXDOWN,91),p.SendKeyMsgKC(p.KeyAction.EXUP,91)},p.SendCharmsMsg=function(){p.SendKeyMsgKC(p.KeyAction.EXDOWN,91),p.SendKeyMsgKC(p.KeyAction.DOWN,67),p.SendKeyMsgKC(p.KeyAction.UP,67),p.SendKeyMsgKC(p.KeyAction.EXUP,91)},p.SendTouchMsg1=function(e,t,n,o){3==p.State&&p.send(String.fromCharCode(0,p.InputType.TOUCH)+p.shortToStr(14)+String.fromCharCode(1,e)+p.intToStr(t)+p.shortToStr(n)+p.shortToStr(o))},p.SendTouchMsg2=function(e,t){var n,o,a="";for(o in p.TouchArray)o==e?n=t:1==p.TouchArray[o].f?(n=65542,p.TouchArray[o].f=3,0):2==p.TouchArray[o].f?(n=262144,0):n=131078,a+=String.fromCharCode(o)+p.intToStr(n)+p.shortToStr(p.TouchArray[o].x)+p.shortToStr(p.TouchArray[o].y),2==p.TouchArray[o].f&&delete p.TouchArray[o];3==p.State&&p.send(String.fromCharCode(0,p.InputType.TOUCH)+p.shortToStr(5+a.length)+String.fromCharCode(2)+a),0==Object.keys(p.TouchArray).length&&null!=p.touchtimer&&(clearInterval(p.touchtimer),p.touchtimer=null)},p.SendMouseMsg=function(e,t){var n,o,a,r,s,i;3==p.State&&null!=e&&null!=p.Canvas&&(t=t||window.event,a=p.Canvas.canvas.height/p.CanvasId.clientHeight,n=p.Canvas.canvas.width/p.CanvasId.clientWidth,o=p.GetPositionOfControl(p.Canvas.canvas),n=(t.pageX-o[0])*n,o=(t.pageY-o[1])*a,t.addx&&(n+=t.addx),t.addy&&(o+=t.addy),0<=n&&n<=p.Canvas.canvas.width&&0<=o&&o<=p.Canvas.canvas.height&&(r=a=0,e==p.KeyAction.UP||e==p.KeyAction.DOWN?t.which?a=1==t.which?p.MouseButton.LEFT:2==t.which?p.MouseButton.MIDDLE:p.MouseButton.RIGHT:t.button&&(a=0==t.button?p.MouseButton.LEFT:1==t.button?p.MouseButton.MIDDLE:p.MouseButton.RIGHT):e==p.KeyAction.SCROLL&&(t.detail?r=120*t.detail*-1:t.wheelDelta&&(r=3*t.wheelDelta)),!0===p.SwapMouse&&(a==p.MouseButton.LEFT?a=p.MouseButton.RIGHT:a==p.MouseButton.RIGHT&&(a=p.MouseButton.LEFT)),p.ReverseMouseWheel&&(r*=-1),t="",t=e==p.KeyAction.DBLCLICK?String.fromCharCode(0,p.InputType.MOUSE,0,10,0,136,n/256&255,255&n,o/256&255,255&o):e==p.KeyAction.SCROLL?(i=r<(i=s=0)?(s=255-(Math.abs(r)>>8),255-(255&Math.abs(r))):(s=r>>8,255&r),String.fromCharCode(0,p.InputType.MOUSE,0,12,0,0,n/256&255,255&n,o/256&255,255&o,s,i)):String.fromCharCode(0,p.InputType.MOUSE,0,10,0,e==p.KeyAction.DOWN?a:2*a&255,n/256&255,255&n,o/256&255,255&o),p.Action==p.KeyAction.NONE?0==p.Alternate||p.ipad?(p.send(t),p.Alternate=1):p.Alternate=0:p.send(t)))},p.GetDisplayNumbers=function(){p.send(String.fromCharCode(0,11,0,4))},p.SetDisplay=function(e){p.send(String.fromCharCode(0,12,0,6,e>>8,255&e))},p.intToStr=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},p.shortToStr=function(e){return String.fromCharCode(e>>8&255,255&e)},p.onResize=function(){0==p.ScreenWidth||0==p.ScreenHeight||p.Canvas.canvas.width==p.ScreenWidth&&p.Canvas.canvas.height==p.ScreenHeight||(p.FirstDraw&&(p.Canvas.canvas.width=p.ScreenWidth,p.Canvas.canvas.height=p.ScreenHeight,p.Canvas.fillRect(0,0,p.ScreenWidth,p.ScreenHeight),null!=p.onScreenSizeChange&&p.onScreenSizeChange(p,p.ScreenWidth,p.ScreenHeight,p.CanvasId)),p.FirstDraw=!1,1<p.debugmode&&console.log("onResize: "+p.ScreenWidth+" x "+p.ScreenHeight))},p.xxMouseInputGrab=!1,p.xxKeyInputGrab=!1,p.xxMouseMove=function(e){return 3==p.State&&p.SendMouseMsg(p.KeyAction.NONE,e),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},p.xxMouseUp=function(e){return 3==p.State&&p.SendMouseMsg(p.KeyAction.UP,e),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},p.xxMouseDown=function(e){return 3==p.State&&p.SendMouseMsg(p.KeyAction.DOWN,e),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},p.xxMouseDblClick=function(e){return 3==p.State&&p.SendMouseMsg(p.KeyAction.DBLCLICK,e),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},p.xxDOMMouseScroll=function(e){return 3!=p.State||(p.SendMouseMsg(p.KeyAction.SCROLL,e),!1)},p.xxMouseWheel=function(e){return 3!=p.State||(p.SendMouseMsg(p.KeyAction.SCROLL,e),!1)},p.xxKeyUp=function(e){return"Dead"!=e.key&&3==p.State&&("string"==typeof e.key&&1==e.key.length&&1!=e.ctrlKey&&1!=e.altKey&&0==p.remoteKeyMap?p.SendKeyUnicode(p.KeyAction.UP,e.key.charCodeAt(0)):p.SendKeyMsg(p.KeyAction.UP,e)),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},p.xxKeyDown=function(e){if("Dead"!=e.key&&3==p.State&&("string"!=typeof e.key||1!=e.key.length||1==e.ctrlKey||1==e.altKey||0!=p.remoteKeyMap))return p.SendKeyMsg(p.KeyAction.DOWN,e),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},p.xxKeyPress=function(e){return"Dead"!=e.key&&3==p.State&&"string"==typeof e.key&&1==e.key.length&&1!=e.ctrlKey&&1!=e.altKey&&0==p.remoteKeyMap&&p.SendKeyUnicode(p.KeyAction.DOWN,e.key.charCodeAt(0)),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},p.handleKeys=function(e){return 1!=p.stopInput&&3==desktop.State&&p.xxKeyPress(e)},p.handleKeyUp=function(e){return 1!=p.stopInput&&3==desktop.State&&(p.firstUpKeys.length<5&&(p.firstUpKeys.push(e.keyCode),5!=p.firstUpKeys.length||"16,17,91,91,16"!=(t=p.firstUpKeys.join(","))&&"16,17,18,91,92"!=t||(p.stopInput=!0)),p.xxKeyUp(e));var t},p.handleKeyDown=function(e){return 1!=p.stopInput&&3==desktop.State&&p.xxKeyDown(e)},p.handleReleaseKeys=function(){var e,t=JSON.parse(JSON.stringify(p.pressedKeys));for(e in t)p.SendKeyMsgKC(p.KeyAction.UP,t[e])},p.mousedblclick=function(e){return 1!=p.stopInput&&p.xxMouseDblClick(e)},p.mousedown=function(e){return 1!=p.stopInput&&p.xxMouseDown(e)},p.mouseup=function(e){return 1!=p.stopInput&&p.xxMouseUp(e)},p.mousemove=function(e){return 1!=p.stopInput&&p.xxMouseMove(e)},p.mousewheel=function(e){return 1!=p.stopInput&&p.xxMouseWheel(e)},p.xxMsTouchEvent=function(e){var t,n,o,a;if(4!=e.originalEvent.pointerType)return e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),"MSPointerDown"==e.type||"MSPointerMove"==e.type||"MSPointerUp"==e.type?(t=0,n=e.originalEvent.pointerId%256,o=e.offsetX*(Canvas.canvas.width/p.CanvasId.clientWidth),a=e.offsetY*(Canvas.canvas.height/p.CanvasId.clientHeight),"MSPointerDown"==e.type?t=65542:"MSPointerMove"==e.type?t=131078:"MSPointerUp"==e.type&&(t=262144),p.TouchArray[n]||(p.TouchArray[n]={x:o,y:a}),p.SendTouchMsg2(n,t),"MSPointerUp"==e.type&&delete p.TouchArray[n]):alert(e.type),!0},p.xxTouchStart=function(e){if(3==p.State)if(e.preventDefault&&e.preventDefault(),0==p.touchenabled||1==p.touchenabled){var t;1<e.originalEvent.touches.length||(t=e.originalEvent.touches[0],e.which=1,p.LastX=e.pageX=t.pageX,p.LastY=e.pageY=t.pageY,p.SendMouseMsg(KeyAction.DOWN,e))}else{var n,o,a=p.GetPositionOfControl(Canvas.canvas);for(n in e.originalEvent.changedTouches)e.originalEvent.changedTouches[n].identifier&&(o=e.originalEvent.changedTouches[n].identifier%256,p.TouchArray[o]||(p.TouchArray[o]={x:(e.originalEvent.touches[n].pageX-a[0])*(Canvas.canvas.width/p.CanvasId.clientWidth),y:(e.originalEvent.touches[n].pageY-a[1])*(Canvas.canvas.height/p.CanvasId.clientHeight),f:1}));0<Object.keys(p.TouchArray).length&&null==touchtimer&&(p.touchtimer=setInterval(function(){p.SendTouchMsg2(256,0)},50))}},p.xxTouchMove=function(e){if(3==p.State)if(e.preventDefault&&e.preventDefault(),0==p.touchenabled||1==p.touchenabled){var t;1<e.originalEvent.touches.length||(t=e.originalEvent.touches[0],e.which=1,p.LastX=e.pageX=t.pageX,p.LastY=e.pageY=t.pageY,p.SendMouseMsg(p.KeyAction.NONE,e))}else{var n,o,a=p.GetPositionOfControl(Canvas.canvas);for(n in e.originalEvent.changedTouches)e.originalEvent.changedTouches[n].identifier&&(o=e.originalEvent.changedTouches[n].identifier%256,p.TouchArray[o]&&(p.TouchArray[o].x=(e.originalEvent.touches[n].pageX-a[0])*(p.Canvas.canvas.width/p.CanvasId.clientWidth),p.TouchArray[o].y=(e.originalEvent.touches[n].pageY-a[1])*(p.Canvas.canvas.height/p.CanvasId.clientHeight)))}},p.xxTouchEnd=function(e){if(3==p.State)if(e.preventDefault&&e.preventDefault(),0==p.touchenabled||1==p.touchenabled)1<e.originalEvent.touches.length||(e.which=1,e.pageX=LastX,e.pageY=LastY,p.SendMouseMsg(KeyAction.UP,e));else for(var t in e.originalEvent.changedTouches)e.originalEvent.changedTouches[t].identifier&&(t=e.originalEvent.changedTouches[t].identifier%256,p.TouchArray[t]&&(p.TouchArray[t].f=2))},p.GrabMouseInput=function(){var e;1!=p.xxMouseInputGrab&&((e=p.CanvasId).onmousemove=p.xxMouseMove,e.onmouseup=p.xxMouseUp,e.onmousedown=p.xxMouseDown,e.touchstart=p.xxTouchStart,e.touchmove=p.xxTouchMove,e.touchend=p.xxTouchEnd,e.MSPointerDown=p.xxMsTouchEvent,e.MSPointerMove=p.xxMsTouchEvent,e.MSPointerUp=p.xxMsTouchEvent,navigator.userAgent.match(/mozilla/i)?e.DOMMouseScroll=p.xxDOMMouseScroll:e.onmousewheel=p.xxMouseWheel,p.xxMouseInputGrab=!0)},p.UnGrabMouseInput=function(){var e;0!=p.xxMouseInputGrab&&((e=p.CanvasId).onmousemove=null,e.onmouseup=null,e.onmousedown=null,e.touchstart=null,e.touchmove=null,e.touchend=null,e.MSPointerDown=null,e.MSPointerMove=null,e.MSPointerUp=null,navigator.userAgent.match(/mozilla/i)?e.DOMMouseScroll=null:e.onmousewheel=null,p.xxMouseInputGrab=!1)},p.GrabKeyInput=function(){1!=p.xxKeyInputGrab&&(document.onkeyup=p.xxKeyUp,document.onkeydown=p.xxKeyDown,document.onkeypress=p.xxKeyPress,c,p.xxKeyInputGrab=!0)},p.UnGrabKeyInput=function(){0!=p.xxKeyInputGrab&&(document.onkeyup=null,document.onkeydown=null,document.onkeypress=null,p.xxKeyInputGrab=!1)},p.GetPositionOfControl=function(e){var t=Array(2);for(t[0]=t[1]=0;e;)t[0]+=e.offsetLeft,t[1]+=e.offsetTop,e=e.offsetParent;return t},p.crotX=function(e,t){return 0==p.rotation?e:1==p.rotation?t:2==p.rotation?p.Canvas.canvas.width-e:3==p.rotation?p.Canvas.canvas.height-t:void 0},p.crotY=function(e,t){return 0==p.rotation?t:1==p.rotation?p.Canvas.canvas.width-e:2==p.rotation?p.Canvas.canvas.height-t:3==p.rotation?e:void 0},p.rotX=function(e,t){return 0==p.rotation||1==p.rotation?e:2==p.rotation?e-p.Canvas.canvas.width:3==p.rotation?e-p.Canvas.canvas.height:void 0},p.rotY=function(e,t){return 0==p.rotation||3==p.rotation?t:1==p.rotation?t-p.Canvas.canvas.width:2==p.rotation?t-p.Canvas.canvas.height:void 0},p.tcanvas=null,p.setRotation=function(e){for(;e<0;)e+=4;var t,n,o,a=e%4;return a!=p.rotation&&(t=p.Canvas.canvas.width,n=p.Canvas.canvas.height,1!=p.rotation&&3!=p.rotation||(t=p.Canvas.canvas.height,n=p.Canvas.canvas.width),null==p.tcanvas&&(p.tcanvas=document.createElement("canvas")),(o=p.tcanvas.getContext("2d")).setTransform(1,0,0,1,0,0),o.canvas.width=t,o.canvas.height=n,o.rotate(-90*p.rotation*Math.PI/180),0==p.rotation&&o.drawImage(p.Canvas.canvas,0,0),1==p.rotation&&o.drawImage(p.Canvas.canvas,-p.Canvas.canvas.width,0),2==p.rotation&&o.drawImage(p.Canvas.canvas,-p.Canvas.canvas.width,-p.Canvas.canvas.height),3==p.rotation&&o.drawImage(p.Canvas.canvas,0,-p.Canvas.canvas.height),0!=p.rotation&&2!=p.rotation||(p.Canvas.canvas.height=t,p.Canvas.canvas.width=n),1!=p.rotation&&3!=p.rotation||(p.Canvas.canvas.height=n,p.Canvas.canvas.width=t),p.Canvas.setTransform(1,0,0,1,0,0),p.Canvas.rotate(90*a*Math.PI/180),p.rotation=a,p.Canvas.drawImage(p.tcanvas,p.rotX(0,0),p.rotY(0,0)),p.ScreenWidth=p.Canvas.canvas.width,p.ScreenHeight=p.Canvas.canvas.height,null!=p.onScreenSizeChange&&(console.log("s4",p.ScreenWidth,p.ScreenHeight),p.onScreenSizeChange(p,p.ScreenWidth,p.ScreenHeight,p.CanvasId))),!0},p.StartRecording=function(){null==p.recordedData&&p.CanvasId.toBlob(function(e){var s=new FileReader;s.readAsArrayBuffer(e),s.onload=function(e){for(var t="",n=new Uint8Array(s.result),o=n.byteLength,a=0;a<o;a++)t+=String.fromCharCode(n[a]);p.recordedData=[],p.recordedStart=Date.now(),p.recordedSize=0,p.recordedData.push(f(1,0,JSON.stringify({magic:"MeshCentralRelaySession",ver:1,time:(new Date).toLocaleString(),protocol:2}))),p.recordedData.push(f(2,1,p.shortToStr(7)+p.shortToStr(8)+p.shortToStr(p.ScreenWidth)+p.shortToStr(p.ScreenHeight)));var r=8+t.length;65e3<r?p.recordedData.push(f(2,1,p.shortToStr(27)+p.shortToStr(8)+p.intToStr(r)+p.shortToStr(3)+p.shortToStr(0)+p.shortToStr(0)+p.shortToStr(0)+t)):p.recordedData.push(f(2,1,p.shortToStr(3)+p.shortToStr(r)+p.shortToStr(0)+p.shortToStr(0)+t))}})},p.StopRecording=function(){var e;if(null!=p.recordedData)return e=p.recordedData,e.push(f(3,0,"MeshCentralMCREC")),delete p.recordedData,delete p.recordedStart,delete p.recordedSize,e},p.MuchTheSame=function(e,t){return Math.abs(e-t)<4},p.Debug=function(e){console.log(e)},p.getIEVersion=function(){var e,t=-1;return"Microsoft Internet Explorer"==navigator.appName&&(e=navigator.userAgent,null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1))),t},p.haltEvent=function(e){return e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},p}
\ No newline at end of file
1
+Uint8Array.prototype.slice||Object.defineProperty(Uint8Array.prototype,"slice",{value:function(e,t){return new Uint8Array(Array.prototype.slice.call(this,e,t))}});var CreateAgentRemoteDesktop=function(e,t){var g={},p=("string"==typeof(g.CanvasId=e)&&(g.CanvasId=Q(e)),g.Canvas=g.CanvasId.getContext("2d"),g.scrolldiv=t,g.State=0,g.PendingOperations=[],g.tilesReceived=0,g.TilesDrawn=0,g.KillDraw=0,g.ipad=!1,g.tabletKeyboardVisible=!1,g.LastX=0,g.LastY=0,g.touchenabled=0,g.submenuoffset=0,g.touchtimer=null,g.TouchArray={},g.connectmode=0,g.connectioncount=0,g.rotation=0,g.protocol=2,g.debugmode=0,g.firstUpKeys=[],g.stopInput=!1,g.localKeyMap=!0,g.remoteKeyMap=!1,g.pressedKeys=[],g.sessionid=0,g.oldie=!1,g.ImageType=1,g.CompressionLevel=50,g.ScalingLevel=1024,g.FrameRateTimer=100,g.SwapMouse=!1,g.UseExtendedKeyFlag=!0,g.FirstDraw=!1,g.onRemoteInputLockChanged=null,g.RemoteInputLock=null,g.onKeyboardStateChanged=null,g.KeyboardState=0,g.ScreenWidth=960,g.ScreenHeight=701,g.width=960,g.height=960,g.displays=null,g.selectedDisplay=null,g.onScreenSizeChange=null,g.onMessage=null,g.onConnectCountChanged=null,g.onDebugMessage=null,g.onTouchEnabledChanged=null,g.onDisplayinfo=null,!(g.accumulator=null)),S="default",v=(g.mouseCursorActive=function(e){p!=e&&(p=e,g.CanvasId.style.cursor=1==e?S:"default")},["default","progress","crosshair","pointer","help","text","no-drop","move","nesw-resize","ns-resize","nwse-resize","w-resize","alias","wait","none","not-allowed","col-resize","row-resize","copy","zoom-in","zoom-out"]),a=(g.Start=function(){g.State=0,g.accumulator=null},g.Stop=function(){g.setRotation(0),g.UnGrabKeyInput(),g.UnGrabMouseInput(),g.touchenabled=0,null!=g.onScreenSizeChange&&g.onScreenSizeChange(g,g.ScreenWidth,g.ScreenHeight,g.CanvasId),g.Canvas.clearRect(0,0,g.CanvasId.width,g.CanvasId.height)},g.xxStateChange=function(e){g.State!=e&&(g.State=e,g.CanvasId.style.cursor="default",0===e)&&g.Stop()},g.send=function(e){2<g.debugmode&&console.log("KSend("+e.length+"): "+rstr2hex(e)),null!=g.parent&&g.parent.send(e)},g.ProcessPictureMsg=function(e,t,n){for(var o=new Image,a=(o.xcount=g.tilesReceived++,g.tilesReceived),r=e.slice(4),s=0,i=[];5e4<r.byteLength-s;)i.push(String.fromCharCode.apply(null,r.slice(s,s+5e4))),s+=5e4;i.push(0<s?String.fromCharCode.apply(null,r.slice(s)):String.fromCharCode.apply(null,r)),o.src="data:image/jpeg;base64,"+btoa(i.join("")),o.onload=function(){if(null!=g.Canvas&&g.KillDraw<a&&0!=g.State)for(g.PendingOperations.push([a,2,o,t,n]);g.DoPendingOperations(););else g.PendingOperations.push([a,0])},o.error=function(){console.log("DecodeTileError")}},g.DoPendingOperations=function(){if(0!=g.PendingOperations.length){for(var e=0;e<g.PendingOperations.length;e++){var t=g.PendingOperations[e];if(t[0]==g.TilesDrawn+1)return null!=g.onPreDrawImage&&g.onPreDrawImage(),1==t[1]?g.ProcessCopyRectMsg(t[2]):2==t[1]&&(g.Canvas.drawImage(t[2],g.rotX(t[3],t[4]),g.rotY(t[3],t[4])),delete t[2]),g.PendingOperations.splice(e,1),delete t,g.TilesDrawn++,g.TilesDrawn==g.tilesReceived&&g.KillDraw<g.TilesDrawn&&(g.KillDraw=g.TilesDrawn=g.tilesReceived=0),!0}g.oldie&&0<g.PendingOperations.length&&g.TilesDrawn++}return!1},g.ProcessCopyRectMsg=function(e){var t=((255&e.charCodeAt(0))<<8)+(255&e.charCodeAt(1)),n=((255&e.charCodeAt(2))<<8)+(255&e.charCodeAt(3)),o=((255&e.charCodeAt(4))<<8)+(255&e.charCodeAt(5)),a=((255&e.charCodeAt(6))<<8)+(255&e.charCodeAt(7)),r=((255&e.charCodeAt(8))<<8)+(255&e.charCodeAt(9)),e=((255&e.charCodeAt(10))<<8)+(255&e.charCodeAt(11));g.Canvas.drawImage(Canvas.canvas,t,n,r,e,o,a,r,e)},g.SendUnPause=function(){1<g.debugmode&&console.log("SendUnPause"),g.send(String.fromCharCode(0,8,0,5,0))},g.SendPause=function(){1<g.debugmode&&console.log("SendPause"),g.send(String.fromCharCode(0,8,0,5,1))},g.SendCompressionLevel=function(e,t,n,o){g.ImageType=e,t&&(g.CompressionLevel=t),n&&(g.ScalingLevel=n),o&&(g.FrameRateTimer=o),g.send(String.fromCharCode(0,5,0,10,e,g.CompressionLevel)+g.shortToStr(g.ScalingLevel)+g.shortToStr(g.FrameRateTimer))},g.SendRefresh=function(){g.send(String.fromCharCode(0,6,0,4))},g.ProcessScreenMsg=function(e,t){if(0<g.debugmode&&console.log("ScreenSize: "+e+" x "+t),g.ScreenWidth!=e||g.ScreenHeight!=t){for(g.Canvas.setTransform(1,0,0,1,0,0),g.rotation=0,g.FirstDraw=!0,g.ScreenWidth=g.width=e,g.ScreenHeight=g.height=t,g.KillDraw=g.tilesReceived;0<g.PendingOperations.length;)g.PendingOperations.shift();g.SendCompressionLevel(g.ImageType),g.SendUnPause(),g.SendRemoteInputLock(2),null!=g.onScreenSizeChange&&g.onScreenSizeChange(g,g.ScreenWidth,g.ScreenHeight,g.CanvasId)}},g.ProcessBinaryCommand=function(e,t,n){var o,a;switch(3!=e&&4!=e&&7!=e||(o=(n[4]<<8)+n[5],a=(n[6]<<8)+n[7]),2<g.debugmode&&console.log("CMD",e,t,o,a),null!=g.recordedData&&(65e3<t?g.recordedData.push(C(2,1,g.shortToStr(27)+g.shortToStr(8)+g.intToStr(t)+g.shortToStr(e)+g.shortToStr(0)+g.shortToStr(0)+g.shortToStr(0)+String.fromCharCode.apply(null,n))):g.recordedData.push(C(2,1,String.fromCharCode.apply(null,n)))),e){case 3:g.FirstDraw&&g.onResize(),g.ProcessPictureMsg(n.slice(4),o,a);break;case 7:g.ProcessScreenMsg(o,a),g.SendKeyMsgKC(g.KeyAction.UP,16),g.SendKeyMsgKC(g.KeyAction.UP,17),g.SendKeyMsgKC(g.KeyAction.UP,18),g.SendKeyMsgKC(g.KeyAction.UP,91),g.SendKeyMsgKC(g.KeyAction.UP,92),g.SendKeyMsgKC(g.KeyAction.UP,16),g.send(String.fromCharCode(0,14,0,4));break;case 11:var r=0,s={},i=(n[4]<<8)+n[5];if(0<i)for(var r=(n[6+2*i]<<8)+n[7+2*i],c=0;c<i;c++){var u=(n[6+2*c]<<8)+n[7+2*c];s[u]=65535==u?"All Displays":"Display "+u}g.displays=s,g.selectedDisplay=r,null!=g.onDisplayinfo&&g.onDisplayinfo(g,s,r);break;case 12:break;case 14:g.touchenabled=1,g.TouchArray={},null!=g.onTouchEnabledChanged&&g.onTouchEnabledChanged(g.touchenabled);break;case 15:g.TouchArray={};break;case 17:var d=String.fromCharCode.apply(null,n.slice(4));console.log("Got KVM Message: "+d),null!=g.onMessage&&g.onMessage(d,g);break;case 18:5==t&&g.KeyboardState!=n[4]&&(g.KeyboardState=n[4],g.onKeyboardStateChanged&&g.onKeyboardStateChanged(g,g.KeyboardState),console.log("MNG_KVM_KEYSTATE:"+(1&g.KeyboardState?" NumLock":"")+(2&g.KeyboardState?" ScrollLock":"")+(4&g.KeyboardState?" CapsLock":"")));break;case 65:"."!=(d=String.fromCharCode.apply(null,n.slice(4)))[0]?(console.log(d),g.parent&&g.parent.setConsoleMessage&&g.parent.setConsoleMessage(d)):console.log("KVM: "+d.substring(1));break;case 82:if(!(t<4||(t-4)%10!=0))for(var l=(t-4)/10,h=4,c=0;c<l;c++)(n[h+0]<<8)+n[h+1],{x:(n[h+2]<<8)+n[h+3],y:(n[h+4]<<8)+n[h+5],w:(n[h+6]<<8)+n[h+7],h:(n[h+8]<<8)+n[h+9]},h+=10;break;case 87:5!=t||null!=g.RemoteInputLock&&g.RemoteInputLock===(0!=n[4])||(g.RemoteInputLock=0!=n[4],g.onRemoteInputLockChanged&&g.onRemoteInputLockChanged(g,g.RemoteInputLock));break;case 88:5!=t||g.stopInput||(r=n[4],S=v[r=v.length<r?0:r],p&&(g.CanvasId.style.cursor=S));break;default:console.log("Unknown command",e,t)}},g.MouseButton={NONE:0,LEFT:2,RIGHT:8,MIDDLE:32},g.KeyAction={NONE:0,DOWN:1,UP:2,SCROLL:3,EXUP:4,EXDOWN:5,DBLCLICK:6},g.InputType={KEY:1,MOUSE:2,CTRLALTDEL:10,TOUCH:15,KEYUNICODE:85},g.Alternate=0,{Pause:19,CapsLock:20,Space:32,Quote:222,Minus:189,NumpadMultiply:106,NumpadAdd:107,PrintScreen:44,Comma:188,NumpadSubtract:109,NumpadDecimal:110,Period:190,Slash:191,NumpadDivide:111,Semicolon:186,Equal:187,OSLeft:91,BracketLeft:219,OSRight:91,Backslash:220,BracketRight:221,ContextMenu:93,Backquote:192,NumLock:144,ScrollLock:145,Backspace:8,Tab:9,Enter:13,NumpadEnter:13,Escape:27,Delete:46,Home:36,PageUp:33,PageDown:34,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,End:35,Insert:45,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,ShiftLeft:16,ShiftRight:16,ControlLeft:17,ControlRight:17,AltLeft:18,AltRight:18,MetaLeft:91,MetaRight:92,VolumeMute:181});var r=["ShiftRight","AltRight","ControlRight","Home","End","Insert","Delete","PageUp","PageDown","NumpadDivide","NumpadEnter","NumLock","Pause"];function C(e,t,n){var o=Date.now();return"number"==typeof n?(g.recordedSize+=n,g.shortToStr(e)+g.shortToStr(t)+g.intToStr(n)+g.intToStr(o>>32)+g.intToStr(32&o)):(g.recordedSize+=n.length,g.shortToStr(e)+g.shortToStr(t)+g.intToStr(n.length)+g.intToStr(o>>32)+g.intToStr(32&o)+n)}return g.SendKeyMsg=function(e,t){var n,o;null!=e&&(t=t||window.event,n=!1,0==(n=(g.UseExtendedKeyFlag||1==urlargs.extkeys)&&"string"==typeof t.code&&(t.code.startsWith("Arrow")||0<=r.indexOf(t.code))?!0:n)&&t.code&&0==t.code.startsWith("NumPad")&&0==g.localKeyMap?null!=(o=(o=t).code.startsWith("Key")&&4==o.code.length?o.code.charCodeAt(3):o.code.startsWith("Digit")&&6==o.code.length?o.code.charCodeAt(5):o.code.startsWith("Numpad")&&7==o.code.length?o.code.charCodeAt(6)+48:a[o.code])&&g.SendKeyMsgKC(e,o,n):(59==(o=t.keyCode)?o=186:173==o?o=189:61==o&&(o=187),g.SendKeyMsgKC(e,o,n)))},g.SendRemoteInputLock=function(e){g.send(String.fromCharCode(0,87,0,5,e))},g.SendMessage=function(e){3==g.State&&g.send(String.fromCharCode(0,17)+g.shortToStr(4+e.length)+e)},g.SendKeyMsgKC=function(e,t,n){if(3==g.State)if("object"==typeof e)for(var o in e)g.SendKeyMsgKC(e[o][0],e[o][1],e[o][2]);else{1==e?-1==g.pressedKeys.indexOf(t)&&g.pressedKeys.unshift(t):2==e&&-1!=(o=g.pressedKeys.indexOf(t))&&g.pressedKeys.splice(o,1),0<g.debugmode&&console.log("Sending Key "+t+", action "+e);var a=e-1;n&&(a=1==a?3:4),g.send(String.fromCharCode(0,g.InputType.KEY,0,6,a,t))}},g.SendStringUnicode=function(e){if(3==g.State)for(var t=0;t<e.length;t++)g.send(String.fromCharCode(0,g.InputType.KEYUNICODE,0,7,0)+ShortToStr(e.charCodeAt(t))),g.send(String.fromCharCode(0,g.InputType.KEYUNICODE,0,7,1)+ShortToStr(e.charCodeAt(t)))},g.SendKeyUnicode=function(e,t){3==g.State&&(0<g.debugmode&&console.log("Sending UnicodeKey "+t),g.send(String.fromCharCode(0,g.InputType.KEYUNICODE,0,7,e-1)+ShortToStr(t)))},g.sendcad=function(){g.SendCtrlAltDelMsg()},g.SendCtrlAltDelMsg=function(){3==g.State&&g.send(String.fromCharCode(0,g.InputType.CTRLALTDEL,0,4))},g.SendEscKey=function(){3==g.State&&g.send(String.fromCharCode(0,g.InputType.KEY,0,6,0,27,0,g.InputType.KEY,0,6,1,27))},g.SendStartMsg=function(){g.SendKeyMsgKC(g.KeyAction.EXDOWN,91),g.SendKeyMsgKC(g.KeyAction.EXUP,91)},g.SendCharmsMsg=function(){g.SendKeyMsgKC(g.KeyAction.EXDOWN,91),g.SendKeyMsgKC(g.KeyAction.DOWN,67),g.SendKeyMsgKC(g.KeyAction.UP,67),g.SendKeyMsgKC(g.KeyAction.EXUP,91)},g.SendTouchMsg1=function(e,t,n,o){3==g.State&&g.send(String.fromCharCode(0,g.InputType.TOUCH)+g.shortToStr(14)+String.fromCharCode(1,e)+g.intToStr(t)+g.shortToStr(n)+g.shortToStr(o))},g.SendTouchMsg2=function(e,t){var n,o,a="";for(o in g.TouchArray)o==e?n=t:1==g.TouchArray[o].f?(n=65542,g.TouchArray[o].f=3,0):2==g.TouchArray[o].f?(n=262144,0):n=131078,a+=String.fromCharCode(o)+g.intToStr(n)+g.shortToStr(g.TouchArray[o].x)+g.shortToStr(g.TouchArray[o].y),2==g.TouchArray[o].f&&delete g.TouchArray[o];3==g.State&&g.send(String.fromCharCode(0,g.InputType.TOUCH)+g.shortToStr(5+a.length)+String.fromCharCode(2)+a),0==Object.keys(g.TouchArray).length&&null!=g.touchtimer&&(clearInterval(g.touchtimer),g.touchtimer=null)},g.SendMouseMsg=function(e,t){var n,o,a,r,s,i;3==g.State&&null!=e&&null!=g.Canvas&&(t=t||window.event,a=g.Canvas.canvas.height/g.CanvasId.clientHeight,n=g.Canvas.canvas.width/g.CanvasId.clientWidth,o=g.GetPositionOfControl(g.Canvas.canvas),n=(t.pageX-o[0])*n,o=(t.pageY-o[1])*a,t.addx&&(n+=t.addx),t.addy&&(o+=t.addy),0<=n)&&n<=g.Canvas.canvas.width&&0<=o&&o<=g.Canvas.canvas.height&&(r=a=0,e==g.KeyAction.UP||e==g.KeyAction.DOWN?t.which?a=1==t.which?g.MouseButton.LEFT:2==t.which?g.MouseButton.MIDDLE:g.MouseButton.RIGHT:t.button&&(a=0==t.button?g.MouseButton.LEFT:1==t.button?g.MouseButton.MIDDLE:g.MouseButton.RIGHT):e==g.KeyAction.SCROLL&&(t.detail?r=120*t.detail*-1:t.wheelDelta&&(r=3*t.wheelDelta)),!0===g.SwapMouse&&(a==g.MouseButton.LEFT?a=g.MouseButton.RIGHT:a==g.MouseButton.RIGHT&&(a=g.MouseButton.LEFT)),g.ReverseMouseWheel&&(r*=-1),t="",t=e==g.KeyAction.DBLCLICK?String.fromCharCode(0,g.InputType.MOUSE,0,10,0,136,n/256&255,255&n,o/256&255,255&o):e==g.KeyAction.SCROLL?(i=r<(i=s=0)?(s=255-(Math.abs(r)>>8),255-(255&Math.abs(r))):(s=r>>8,255&r),String.fromCharCode(0,g.InputType.MOUSE,0,12,0,0,n/256&255,255&n,o/256&255,255&o,s,i)):String.fromCharCode(0,g.InputType.MOUSE,0,10,0,e==g.KeyAction.DOWN?a:2*a&255,n/256&255,255&n,o/256&255,255&o),g.Action==g.KeyAction.NONE?0==g.Alternate||g.ipad?(g.send(t),g.Alternate=1):g.Alternate=0:g.send(t))},g.GetDisplayNumbers=function(){g.send(String.fromCharCode(0,11,0,4))},g.SetDisplay=function(e){g.send(String.fromCharCode(0,12,0,6,e>>8,255&e))},g.intToStr=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},g.shortToStr=function(e){return String.fromCharCode(e>>8&255,255&e)},g.onResize=function(){0==g.ScreenWidth||0==g.ScreenHeight||g.Canvas.canvas.width==g.ScreenWidth&&g.Canvas.canvas.height==g.ScreenHeight||(g.FirstDraw&&(g.Canvas.canvas.width=g.ScreenWidth,g.Canvas.canvas.height=g.ScreenHeight,g.Canvas.fillRect(0,0,g.ScreenWidth,g.ScreenHeight),null!=g.onScreenSizeChange)&&g.onScreenSizeChange(g,g.ScreenWidth,g.ScreenHeight,g.CanvasId),g.FirstDraw=!1,1<g.debugmode&&console.log("onResize: "+g.ScreenWidth+" x "+g.ScreenHeight))},g.xxMouseInputGrab=!1,g.xxKeyInputGrab=!1,g.xxMouseMove=function(e){return 3==g.State&&g.SendMouseMsg(g.KeyAction.NONE,e),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},g.xxMouseUp=function(e){return 3==g.State&&g.SendMouseMsg(g.KeyAction.UP,e),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},g.xxMouseDown=function(e){return 3==g.State&&g.SendMouseMsg(g.KeyAction.DOWN,e),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},g.xxMouseDblClick=function(e){return 3==g.State&&g.SendMouseMsg(g.KeyAction.DBLCLICK,e),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},g.xxDOMMouseScroll=function(e){return 3!=g.State||(g.SendMouseMsg(g.KeyAction.SCROLL,e),!1)},g.xxMouseWheel=function(e){return 3!=g.State||(g.SendMouseMsg(g.KeyAction.SCROLL,e),!1)},g.xxKeyUp=function(e){return"Dead"!=e.key&&3==g.State&&("string"==typeof e.key&&1==e.key.length&&1!=e.ctrlKey&&1!=e.altKey&&0==g.remoteKeyMap?g.SendKeyUnicode(g.KeyAction.UP,e.key.charCodeAt(0)):g.SendKeyMsg(g.KeyAction.UP,e)),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},g.xxKeyDown=function(e){if("Dead"!=e.key&&3==g.State&&("string"!=typeof e.key||1!=e.key.length||1==e.ctrlKey||1==e.altKey||0!=g.remoteKeyMap))return g.SendKeyMsg(g.KeyAction.DOWN,e),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},g.xxKeyPress=function(e){return"Dead"!=e.key&&3==g.State&&"string"==typeof e.key&&1==e.key.length&&1!=e.ctrlKey&&1!=e.altKey&&0==g.remoteKeyMap&&g.SendKeyUnicode(g.KeyAction.DOWN,e.key.charCodeAt(0)),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},g.handleKeys=function(e){return 1!=g.stopInput&&3==desktop.State&&g.xxKeyPress(e)},g.handleKeyUp=function(e){var t;return 1!=g.stopInput&&3==desktop.State&&(g.firstUpKeys.length<5&&(g.firstUpKeys.push(e.keyCode),5!=g.firstUpKeys.length||"16,17,91,91,16"!=(t=g.firstUpKeys.join(","))&&"16,17,18,91,92"!=t||(g.stopInput=!0)),g.xxKeyUp(e))},g.handleKeyDown=function(e){return 1!=g.stopInput&&3==desktop.State&&g.xxKeyDown(e)},g.handleReleaseKeys=function(){var e,t=JSON.parse(JSON.stringify(g.pressedKeys));for(e in t)g.SendKeyMsgKC(g.KeyAction.UP,t[e])},g.mousedblclick=function(e){return 1!=g.stopInput&&g.xxMouseDblClick(e)},g.mousedown=function(e){return 1!=g.stopInput&&g.xxMouseDown(e)},g.mouseup=function(e){return 1!=g.stopInput&&g.xxMouseUp(e)},g.mousemove=function(e){return 1!=g.stopInput&&g.xxMouseMove(e)},g.mousewheel=function(e){return 1!=g.stopInput&&g.xxMouseWheel(e)},g.xxMsTouchEvent=function(e){var t,n,o,a;if(4!=e.originalEvent.pointerType)return e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),"MSPointerDown"==e.type||"MSPointerMove"==e.type||"MSPointerUp"==e.type?(t=0,n=e.originalEvent.pointerId%256,o=e.offsetX*(Canvas.canvas.width/g.CanvasId.clientWidth),a=e.offsetY*(Canvas.canvas.height/g.CanvasId.clientHeight),"MSPointerDown"==e.type?t=65542:"MSPointerMove"==e.type?t=131078:"MSPointerUp"==e.type&&(t=262144),g.TouchArray[n]||(g.TouchArray[n]={x:o,y:a}),g.SendTouchMsg2(n,t),"MSPointerUp"==e.type&&delete g.TouchArray[n]):alert(e.type),!0},g.xxTouchStart=function(e){if(3==g.State)if(e.preventDefault&&e.preventDefault(),0==g.touchenabled||1==g.touchenabled){var t;1<e.originalEvent.touches.length||(t=e.originalEvent.touches[0],e.which=1,g.LastX=e.pageX=t.pageX,g.LastY=e.pageY=t.pageY,g.SendMouseMsg(KeyAction.DOWN,e))}else{var n,o,a=g.GetPositionOfControl(Canvas.canvas);for(n in e.originalEvent.changedTouches)e.originalEvent.changedTouches[n].identifier&&(o=e.originalEvent.changedTouches[n].identifier%256,g.TouchArray[o]||(g.TouchArray[o]={x:(e.originalEvent.touches[n].pageX-a[0])*(Canvas.canvas.width/g.CanvasId.clientWidth),y:(e.originalEvent.touches[n].pageY-a[1])*(Canvas.canvas.height/g.CanvasId.clientHeight),f:1}));0<Object.keys(g.TouchArray).length&&null==touchtimer&&(g.touchtimer=setInterval(function(){g.SendTouchMsg2(256,0)},50))}},g.xxTouchMove=function(e){if(3==g.State)if(e.preventDefault&&e.preventDefault(),0==g.touchenabled||1==g.touchenabled){var t;1<e.originalEvent.touches.length||(t=e.originalEvent.touches[0],e.which=1,g.LastX=e.pageX=t.pageX,g.LastY=e.pageY=t.pageY,g.SendMouseMsg(g.KeyAction.NONE,e))}else{var n,o,a=g.GetPositionOfControl(Canvas.canvas);for(n in e.originalEvent.changedTouches)e.originalEvent.changedTouches[n].identifier&&(o=e.originalEvent.changedTouches[n].identifier%256,g.TouchArray[o])&&(g.TouchArray[o].x=(e.originalEvent.touches[n].pageX-a[0])*(g.Canvas.canvas.width/g.CanvasId.clientWidth),g.TouchArray[o].y=(e.originalEvent.touches[n].pageY-a[1])*(g.Canvas.canvas.height/g.CanvasId.clientHeight))}},g.xxTouchEnd=function(e){if(3==g.State)if(e.preventDefault&&e.preventDefault(),0==g.touchenabled||1==g.touchenabled)1<e.originalEvent.touches.length||(e.which=1,e.pageX=LastX,e.pageY=LastY,g.SendMouseMsg(KeyAction.UP,e));else for(var t in e.originalEvent.changedTouches)e.originalEvent.changedTouches[t].identifier&&(t=e.originalEvent.changedTouches[t].identifier%256,g.TouchArray[t])&&(g.TouchArray[t].f=2)},g.GrabMouseInput=function(){var e;1!=g.xxMouseInputGrab&&((e=g.CanvasId).onmousemove=g.xxMouseMove,e.onmouseup=g.xxMouseUp,e.onmousedown=g.xxMouseDown,e.touchstart=g.xxTouchStart,e.touchmove=g.xxTouchMove,e.touchend=g.xxTouchEnd,e.MSPointerDown=g.xxMsTouchEvent,e.MSPointerMove=g.xxMsTouchEvent,e.MSPointerUp=g.xxMsTouchEvent,navigator.userAgent.match(/mozilla/i)?e.DOMMouseScroll=g.xxDOMMouseScroll:e.onmousewheel=g.xxMouseWheel,g.xxMouseInputGrab=!0)},g.UnGrabMouseInput=function(){var e;0!=g.xxMouseInputGrab&&((e=g.CanvasId).onmousemove=null,e.onmouseup=null,e.onmousedown=null,e.touchstart=null,e.touchmove=null,e.touchend=null,e.MSPointerDown=null,e.MSPointerMove=null,e.MSPointerUp=null,navigator.userAgent.match(/mozilla/i)?e.DOMMouseScroll=null:e.onmousewheel=null,g.xxMouseInputGrab=!1)},g.GrabKeyInput=function(){1!=g.xxKeyInputGrab&&(document.onkeyup=g.xxKeyUp,document.onkeydown=g.xxKeyDown,document.onkeypress=g.xxKeyPress,c,g.xxKeyInputGrab=!0)},g.UnGrabKeyInput=function(){0!=g.xxKeyInputGrab&&(document.onkeyup=null,document.onkeydown=null,document.onkeypress=null,g.xxKeyInputGrab=!1)},g.GetPositionOfControl=function(e){var t=Array(2);for(t[0]=t[1]=0;e;)t[0]+=e.offsetLeft,t[1]+=e.offsetTop,e=e.offsetParent;return t},g.crotX=function(e,t){return 0==g.rotation?e:1==g.rotation?t:2==g.rotation?g.Canvas.canvas.width-e:3==g.rotation?g.Canvas.canvas.height-t:void 0},g.crotY=function(e,t){return 0==g.rotation?t:1==g.rotation?g.Canvas.canvas.width-e:2==g.rotation?g.Canvas.canvas.height-t:3==g.rotation?e:void 0},g.rotX=function(e,t){return 0==g.rotation||1==g.rotation?e:2==g.rotation?e-g.Canvas.canvas.width:3==g.rotation?e-g.Canvas.canvas.height:void 0},g.rotY=function(e,t){return 0==g.rotation||3==g.rotation?t:1==g.rotation?t-g.Canvas.canvas.width:2==g.rotation?t-g.Canvas.canvas.height:void 0},g.tcanvas=null,g.setRotation=function(e){for(;e<0;)e+=4;var t,n,o,a=e%4;return a!=g.rotation&&(t=g.Canvas.canvas.width,n=g.Canvas.canvas.height,1!=g.rotation&&3!=g.rotation||(t=g.Canvas.canvas.height,n=g.Canvas.canvas.width),null==g.tcanvas&&(g.tcanvas=document.createElement("canvas")),(o=g.tcanvas.getContext("2d")).setTransform(1,0,0,1,0,0),o.canvas.width=t,o.canvas.height=n,o.rotate(-90*g.rotation*Math.PI/180),0==g.rotation&&o.drawImage(g.Canvas.canvas,0,0),1==g.rotation&&o.drawImage(g.Canvas.canvas,-g.Canvas.canvas.width,0),2==g.rotation&&o.drawImage(g.Canvas.canvas,-g.Canvas.canvas.width,-g.Canvas.canvas.height),3==g.rotation&&o.drawImage(g.Canvas.canvas,0,-g.Canvas.canvas.height),0!=g.rotation&&2!=g.rotation||(g.Canvas.canvas.height=t,g.Canvas.canvas.width=n),1!=g.rotation&&3!=g.rotation||(g.Canvas.canvas.height=n,g.Canvas.canvas.width=t),g.Canvas.setTransform(1,0,0,1,0,0),g.Canvas.rotate(90*a*Math.PI/180),g.rotation=a,g.Canvas.drawImage(g.tcanvas,g.rotX(0,0),g.rotY(0,0)),g.ScreenWidth=g.Canvas.canvas.width,g.ScreenHeight=g.Canvas.canvas.height,null!=g.onScreenSizeChange)&&(console.log("s4",g.ScreenWidth,g.ScreenHeight),g.onScreenSizeChange(g,g.ScreenWidth,g.ScreenHeight,g.CanvasId)),!0},g.StartRecording=function(){null==g.recordedData&&g.CanvasId.toBlob(function(e){var s=new FileReader;s.readAsArrayBuffer(e),s.onload=function(e){for(var t="",n=new Uint8Array(s.result),o=n.byteLength,a=0;a<o;a++)t+=String.fromCharCode(n[a]);g.recordedData=[],g.recordedStart=Date.now(),g.recordedSize=0,g.recordedData.push(C(1,0,JSON.stringify({magic:"MeshCentralRelaySession",ver:1,time:(new Date).toLocaleString(),protocol:2}))),g.recordedData.push(C(2,1,g.shortToStr(7)+g.shortToStr(8)+g.shortToStr(g.ScreenWidth)+g.shortToStr(g.ScreenHeight)));var r=8+t.length;65e3<r?g.recordedData.push(C(2,1,g.shortToStr(27)+g.shortToStr(8)+g.intToStr(r)+g.shortToStr(3)+g.shortToStr(0)+g.shortToStr(0)+g.shortToStr(0)+t)):g.recordedData.push(C(2,1,g.shortToStr(3)+g.shortToStr(r)+g.shortToStr(0)+g.shortToStr(0)+t))}})},g.StopRecording=function(){var e;if(null!=g.recordedData)return(e=g.recordedData).push(C(3,0,"MeshCentralMCREC")),delete g.recordedData,delete g.recordedStart,delete g.recordedSize,e},g.MuchTheSame=function(e,t){return Math.abs(e-t)<4},g.Debug=function(e){console.log(e)},g.getIEVersion=function(){var e,t=-1;return t="Microsoft Internet Explorer"==navigator.appName&&(e=navigator.userAgent,null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(e))?parseFloat(RegExp.$1):t},g.haltEvent=function(e){return e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},g}
\ No newline at end of file
public/scripts/agent-rdp-0.0.1-min.js
+1
-1
@@ -1 +1 @@
1
-var CreateRDPDesktop=function(e,a){var o={m:{KeyAction:{NONE:0,DOWN:1,UP:2,SCROLL:3,EXUP:4,EXDOWN:5,DBLCLICK:6}},State:0},i=(o.canvas=Q(e),"string"==typeof(o.CanvasId=e)&&(o.CanvasId=Q(e)),o.Canvas=o.CanvasId.getContext("2d"),o.ScreenWidth=o.width=1280,o.ScreenHeight=o.height=1024,o.m.onClipboardChanged=null,!(o.onConsoleMessageChange=null)),r="default";function n(e){return(!0===o.m.SwapMouse?[2,0,1,0,0]:[1,0,2,0,0])[e]}function c(e){o.State!=e&&(o.State=e,null!=o.onStateChanged&&o.onStateChanged(o,o.State))}function s(e){var t=o.Canvas.canvas.height/o.CanvasId.clientHeight,n=o.Canvas.canvas.width/o.CanvasId.clientWidth,s=function(e){var t=Array(2);for(t[0]=t[1]=0;e;)t[0]+=e.offsetLeft,t[1]+=e.offsetTop,e=e.offsetParent;return t}(o.Canvas.canvas),n=(e.pageX-s[0])*n,s=(e.pageY-s[1])*t;return e.addx&&(n+=e.addx),e.addy&&(s+=e.addy),{x:n,y:s}}o.mouseCursorActive=function(e){i!=e&&(i=e,o.CanvasId.style.cursor=1==e?r:"default")},o.Start=function(e,t,n){c(1),o.nodeid=e,o.port=t;var s={savepass:(o.credentials=n).savecred,useServerCreds:n.servercred,width:n.width,height:n.height,flags:n.flags,workingDir:n.workdir,alternateShell:n.altshell};n.width&&n.height&&(s.width=o.ScreenWidth=o.width=n.width,s.height=o.ScreenHeight=o.height=n.height,delete n.width,delete n.height),o.render=new Mstsc.Canvas.create(o.canvas),o.socket=new WebSocket("wss://"+window.location.host+a+"mstscrelay.ashx"),o.socket.binaryType="arraybuffer",o.socket.onopen=function(){c(2),o.socket.send(JSON.stringify(["infos",{ip:o.nodeid,port:o.port,screen:{width:o.width,height:o.height},domain:n.domain,username:n.username,password:n.password,options:s,locale:Mstsc.locale()}]))},o.socket.onmessage=function(e){if("string"==typeof e.data){var t=JSON.parse(e.data);switch(t[0]){case"rdp-connect":c(3),o.rotation=0,o.Canvas.setTransform(1,0,0,1,0,0),o.Canvas.canvas.width=o.ScreenWidth,o.Canvas.canvas.height=o.ScreenHeight,o.Canvas.fillRect(0,0,o.ScreenWidth,o.ScreenHeight),null!=o.m.onScreenSizeChange&&o.m.onScreenSizeChange(o,o.ScreenWidth,o.ScreenHeight,o.CanvasId);break;case"rdp-bitmap":if(null==o.bitmapData)break;var n=t[1];n.data=o.bitmapData,delete o.bitmapData,o.render.update(n);break;case"rdp-pointer":n=t[1];r=n,i&&(o.CanvasId.style.cursor=n);break;case"rdp-close":o.Stop();break;case"rdp-error":switch(o.consoleMessageTimeout=5,o.consoleMessage=t[1],delete o.consoleMessageArgs,2<t.length&&(o.consoleMessageArgs=[t[2]]),t[1]){case"NODE_RDP_PROTOCOL_X224_NEG_FAILURE":1==t[2]?o.consoleMessageId=9:2==t[2]?o.consoleMessageId=10:3==t[2]?o.consoleMessageId=11:4==t[2]?o.consoleMessageId=12:5==t[2]?o.consoleMessageId=13:6==t[2]?o.consoleMessageId=14:o.consoleMessageId=7;break;case"NODE_RDP_PROTOCOL_X224_NLA_NOT_SUPPORTED":o.consoleMessageId=8;break;default:o.consoleMessageId=null}o.onConsoleMessageChange&&o.onConsoleMessageChange(),o.Stop();break;case"rdp-clipboard":o.lastClipboardContent=t[1],o.m.onClipboardChanged&&o.m.onClipboardChanged(t[1]);break;case"ping":o.socket.send('["pong"]')}}else o.bitmapData=e.data},o.socket.onclose=function(){c(0)},c(1)},o.Stop=function(){o.Canvas.fillRect(0,0,o.ScreenWidth,o.ScreenHeight),o.socket&&o.socket.close()},o.m.setClipboard=function(e){o.socket&&o.socket.send(JSON.stringify(["clipboard",e]))},o.m.getClipboard=function(){return o.lastClipboardContent},o.m.mousemove=function(e){if(o.socket&&3==o.State){var t=s(e);if(!(t.x<0||t.y<0||t.x>o.ScreenWidth||t.y>o.ScreenHeight))return o.mouseNagleData=["mouse",t.x,t.y,0,!1],null==o.mouseNagleTimer&&(o.mouseNagleTimer=setTimeout(function(){o.socket.send(JSON.stringify(o.mouseNagleData)),o.mouseNagleTimer=null},50)),e.preventDefault(),!1}},o.m.mouseup=function(e){if(o.socket&&3==o.State){var t=s(e);if(!(t.x<0||t.y<0||t.x>o.ScreenWidth||t.y>o.ScreenHeight))return null!=o.mouseNagleTimer&&(clearTimeout(o.mouseNagleTimer),o.mouseNagleTimer=null),o.socket.send(JSON.stringify(["mouse",t.x,t.y,n(e.button),!1])),e.preventDefault(),!1}},o.m.mousedown=function(e){if(o.socket&&3==o.State){var t=s(e);if(!(t.x<0||t.y<0||t.x>o.ScreenWidth||t.y>o.ScreenHeight))return null!=o.mouseNagleTimer&&(clearTimeout(o.mouseNagleTimer),o.mouseNagleTimer=null),o.socket.send(JSON.stringify(["mouse",t.x,t.y,n(e.button),!0])),e.preventDefault(),!1}},o.m.handleKeyUp=function(e){if(o.socket&&3==o.State)return o.socket.send(JSON.stringify(["scancode",Mstsc.scancode(e),!1])),e.preventDefault(),!1},o.m.handleKeyDown=function(e){if(o.socket&&3==o.State)return o.socket.send(JSON.stringify(["scancode",Mstsc.scancode(e),!0])),e.preventDefault(),!1},o.m.mousewheel=function(e){if(o.socket&&3==o.State){var t,n=s(e);if(!(n.x<0||n.y<0||n.x>o.ScreenWidth||n.y>o.ScreenHeight))return null!=o.mouseNagleTimer&&(clearTimeout(o.mouseNagleTimer),o.mouseNagleTimer=null),t=0,e.detail?t=120*e.detail:e.wheelDelta&&(t=3*e.wheelDelta),o.m.ReverseMouseWheel&&(t*=-1),0!=t&&o.socket.send(JSON.stringify(["wheel",n.x,n.y,t,!1,!1])),e.preventDefault(),!1}},o.m.SendStringUnicode=function(e){o.socket&&3==o.State&&o.socket.send(JSON.stringify(["utype",e]))},o.m.SendKeyMsgKC=function(e,t,n){if(3==o.State)if("object"==typeof e)for(var s in e)o.m.SendKeyMsgKC(e[s][0],e[s][1],e[s][2]);else{t=d[t];null!=t&&o.socket.send(JSON.stringify(["scancode",t,0!=(1&e)]))}},o.m.mousedblclick=function(){},o.m.handleKeyPress=function(){},o.m.setRotation=function(){},o.m.sendcad=function(){o.socket.send(JSON.stringify(["scancode",29,!0])),o.socket.send(JSON.stringify(["scancode",56,!0])),o.socket.send(JSON.stringify(["scancode",57427,!0])),o.socket.send(JSON.stringify(["scancode",57427,!1])),o.socket.send(JSON.stringify(["scancode",56,!1])),o.socket.send(JSON.stringify(["scancode",29,!1]))};var d={9:15,16:42,17:29,18:56,27:1,33:57417,34:57425,35:57423,36:57415,37:57419,38:57416,39:57421,40:57424,44:57399,45:57426,46:57427,65:30,66:48,67:46,68:32,69:18,70:33,71:34,72:35,73:23,74:36,75:37,76:38,77:50,78:49,79:24,80:25,81:16,82:19,83:31,84:20,85:22,86:47,87:17,88:45,89:21,90:44,91:57435,112:59,113:60,114:61,115:62,116:63,117:64,118:65,119:66,120:67,121:68,122:87,123:88};return o}
\ No newline at end of file
1
+var CreateRDPDesktop=function(e,a){var o={m:{KeyAction:{NONE:0,DOWN:1,UP:2,SCROLL:3,EXUP:4,EXDOWN:5,DBLCLICK:6}},State:0},i=(o.canvas=Q(e),"string"==typeof(o.CanvasId=e)&&(o.CanvasId=Q(e)),o.Canvas=o.CanvasId.getContext("2d"),o.ScreenWidth=o.width=1280,o.ScreenHeight=o.height=1024,o.m.onClipboardChanged=null,!(o.onConsoleMessageChange=null)),r="default";function n(e){return(!0===o.m.SwapMouse?[2,0,1,0,0]:[1,0,2,0,0])[e]}function c(e){o.State!=e&&(o.State=e,null!=o.onStateChanged)&&o.onStateChanged(o,o.State)}function s(e){var t=o.Canvas.canvas.height/o.CanvasId.clientHeight,n=o.Canvas.canvas.width/o.CanvasId.clientWidth,s=function(e){var t=Array(2);for(t[0]=t[1]=0;e;)t[0]+=e.offsetLeft,t[1]+=e.offsetTop,e=e.offsetParent;return t}(o.Canvas.canvas),n=(e.pageX-s[0])*n,s=(e.pageY-s[1])*t;return e.addx&&(n+=e.addx),e.addy&&(s+=e.addy),{x:n,y:s}}o.mouseCursorActive=function(e){i!=e&&(i=e,o.CanvasId.style.cursor=1==e?r:"default")},o.Start=function(e,t,n){c(1),o.nodeid=e,o.port=t;var s={savepass:(o.credentials=n).savecred,useServerCreds:n.servercred,width:n.width,height:n.height,flags:n.flags,workingDir:n.workdir,alternateShell:n.altshell};n.width&&n.height&&(s.width=o.ScreenWidth=o.width=n.width,s.height=o.ScreenHeight=o.height=n.height,delete n.width,delete n.height),o.render=new Mstsc.Canvas.create(o.canvas),o.socket=new WebSocket("wss://"+window.location.host+a+"mstscrelay.ashx"),o.socket.binaryType="arraybuffer",o.socket.onopen=function(){c(2),o.socket.send(JSON.stringify(["infos",{ip:o.nodeid,port:o.port,screen:{width:o.width,height:o.height},domain:n.domain,username:n.username,password:n.password,options:s,locale:Mstsc.locale()}]))},o.socket.onmessage=function(e){if("string"==typeof e.data){var t=JSON.parse(e.data);switch(t[0]){case"rdp-connect":c(3),o.rotation=0,o.Canvas.setTransform(1,0,0,1,0,0),o.Canvas.canvas.width=o.ScreenWidth,o.Canvas.canvas.height=o.ScreenHeight,o.Canvas.fillRect(0,0,o.ScreenWidth,o.ScreenHeight),null!=o.m.onScreenSizeChange&&o.m.onScreenSizeChange(o,o.ScreenWidth,o.ScreenHeight,o.CanvasId);break;case"rdp-bitmap":null!=o.bitmapData&&((n=t[1]).data=o.bitmapData,delete o.bitmapData,o.render.update(n));break;case"rdp-pointer":var n=t[1];r=n,i&&(o.CanvasId.style.cursor=n);break;case"rdp-close":o.Stop();break;case"rdp-error":switch(o.consoleMessageTimeout=5,o.consoleMessage=t[1],delete o.consoleMessageArgs,2<t.length&&(o.consoleMessageArgs=[t[2]]),t[1]){case"NODE_RDP_PROTOCOL_X224_NEG_FAILURE":1==t[2]?o.consoleMessageId=9:2==t[2]?o.consoleMessageId=10:3==t[2]?o.consoleMessageId=11:4==t[2]?o.consoleMessageId=12:5==t[2]?o.consoleMessageId=13:6==t[2]?o.consoleMessageId=14:o.consoleMessageId=7;break;case"NODE_RDP_PROTOCOL_X224_NLA_NOT_SUPPORTED":o.consoleMessageId=8;break;default:o.consoleMessageId=null}o.onConsoleMessageChange&&o.onConsoleMessageChange(),o.Stop();break;case"rdp-clipboard":o.lastClipboardContent=t[1],o.m.onClipboardChanged&&o.m.onClipboardChanged(t[1]);break;case"ping":o.socket.send('["pong"]')}}else o.bitmapData=e.data},o.socket.onclose=function(){c(0)},c(1)},o.Stop=function(){o.Canvas.fillRect(0,0,o.ScreenWidth,o.ScreenHeight),o.socket&&o.socket.close()},o.m.setClipboard=function(e){o.socket&&o.socket.send(JSON.stringify(["clipboard",e]))},o.m.getClipboard=function(){return o.lastClipboardContent},o.m.mousemove=function(e){if(o.socket&&3==o.State){var t=s(e);if(!(t.x<0||t.y<0||t.x>o.ScreenWidth||t.y>o.ScreenHeight))return o.mouseNagleData=["mouse",t.x,t.y,0,!1],null==o.mouseNagleTimer&&(o.mouseNagleTimer=setTimeout(function(){o.socket.send(JSON.stringify(o.mouseNagleData)),o.mouseNagleTimer=null},50)),e.preventDefault(),!1}},o.m.mouseup=function(e){if(o.socket&&3==o.State){var t=s(e);if(!(t.x<0||t.y<0||t.x>o.ScreenWidth||t.y>o.ScreenHeight))return null!=o.mouseNagleTimer&&(clearTimeout(o.mouseNagleTimer),o.mouseNagleTimer=null),o.socket.send(JSON.stringify(["mouse",t.x,t.y,n(e.button),!1])),e.preventDefault(),!1}},o.m.mousedown=function(e){if(o.socket&&3==o.State){var t=s(e);if(!(t.x<0||t.y<0||t.x>o.ScreenWidth||t.y>o.ScreenHeight))return null!=o.mouseNagleTimer&&(clearTimeout(o.mouseNagleTimer),o.mouseNagleTimer=null),o.socket.send(JSON.stringify(["mouse",t.x,t.y,n(e.button),!0])),e.preventDefault(),!1}},o.m.handleKeyUp=function(e){if(o.socket&&3==o.State)return o.socket.send(JSON.stringify(["scancode",Mstsc.scancode(e),!1])),e.preventDefault(),!1},o.m.handleKeyDown=function(e){if(o.socket&&3==o.State)return o.socket.send(JSON.stringify(["scancode",Mstsc.scancode(e),!0])),e.preventDefault(),!1},o.m.mousewheel=function(e){if(o.socket&&3==o.State){var t,n=s(e);if(!(n.x<0||n.y<0||n.x>o.ScreenWidth||n.y>o.ScreenHeight))return null!=o.mouseNagleTimer&&(clearTimeout(o.mouseNagleTimer),o.mouseNagleTimer=null),t=0,e.detail?t=120*e.detail:e.wheelDelta&&(t=3*e.wheelDelta),o.m.ReverseMouseWheel&&(t*=-1),0!=t&&o.socket.send(JSON.stringify(["wheel",n.x,n.y,t,!1,!1])),e.preventDefault(),!1}},o.m.SendStringUnicode=function(e){o.socket&&3==o.State&&o.socket.send(JSON.stringify(["utype",e]))},o.m.SendKeyMsgKC=function(e,t,n){if(3==o.State)if("object"==typeof e)for(var s in e)o.m.SendKeyMsgKC(e[s][0],e[s][1],e[s][2]);else{t=d[t];null!=t&&o.socket.send(JSON.stringify(["scancode",t,0!=(1&e)]))}},o.m.mousedblclick=function(){},o.m.handleKeyPress=function(){},o.m.setRotation=function(){},o.m.sendcad=function(){o.socket.send(JSON.stringify(["scancode",29,!0])),o.socket.send(JSON.stringify(["scancode",56,!0])),o.socket.send(JSON.stringify(["scancode",57427,!0])),o.socket.send(JSON.stringify(["scancode",57427,!1])),o.socket.send(JSON.stringify(["scancode",56,!1])),o.socket.send(JSON.stringify(["scancode",29,!1]))};var d={9:15,16:42,17:29,18:56,27:1,33:57417,34:57425,35:57423,36:57415,37:57419,38:57416,39:57421,40:57424,44:57399,45:57426,46:57427,65:30,66:48,67:46,68:32,69:18,70:33,71:34,72:35,73:23,74:36,75:37,76:38,77:50,78:49,79:24,80:25,81:16,82:19,83:31,84:20,85:22,86:47,87:17,88:45,89:21,90:44,91:57435,112:59,113:60,114:61,115:62,116:63,117:64,118:65,119:66,120:67,121:68,122:87,123:88};return o}
\ No newline at end of file
public/scripts/agent-redir-rtc-0.1.0-min.js
+1
-1
@@ -1 +1 @@
1
-var CreateKvmDataChannel=function(e,t,n){var o={},l=(((o.m=t).parent=o).webchannel=e,o.State=0,o.protocol=t.protocol,o.onStateChanged=null,o.onControlMsg=null,o.debugmode=0,o.keepalive=n,o.rtcKeepAlive=null,o.Start=function(){1==o.debugmode&&console.log("start"),o.xxStateChange(3),o.webchannel.onmessage=o.xxOnMessage,o.rtcKeepAlive=setInterval(o.xxSendRtcKeepAlive,3e4)},new FileReader),i=!1,s=[];return l.readAsBinaryString?l.onload=function(e){o.xxOnSocketData(e.target.result),0==s.length?i=!1:l.readAsBinaryString(new Blob([s.shift()]))}:l.readAsArrayBuffer&&(l.onloadend=function(e){o.xxOnSocketData(e.target.result),0==s.length?i=!1:l.readAsArrayBuffer(s.shift())}),o.xxOnMessage=function(e){if("string"==typeof e.data)null!=o.onControlMsg&&o.onControlMsg(e.data);else if("object"==typeof e.data)if(1==i)s.push(e.data);else if(l.readAsBinaryString)i=!0,l.readAsBinaryString(new Blob([e.data]));else if(f.readAsArrayBuffer)i=!0,l.readAsArrayBuffer(e.data);else{for(var t="",n=new Uint8Array(e.data),a=n.byteLength,r=0;r<a;r++)t+=String.fromCharCode(n[r]);o.xxOnSocketData(t)}else o.xxOnSocketData(e.data)},o.xxOnSocketData=function(e){if(e){if("object"==typeof e){for(var t="",n=new Uint8Array(e),a=n.byteLength,r=0;r<a;r++)t+=String.fromCharCode(n[r]);e=t}else if("string"!=typeof e)return;return o.m.ProcessData(e)}},o.sendCtrlMsg=function(e){"string"==typeof e&&(o.webchannel.send(e),null!=o.keepalive&&o.keepalive.sendKeepAlive())},o.send=function(e){if("string"==typeof e){for(var t=new Uint8Array(e.length),n=0;n<e.length;++n)t[n]=e.charCodeAt(n);e=t}o.webchannel.send(e)},o.xxStateChange=function(e){o.State!=e&&(o.State=e,o.m.xxStateChange(o.State),null!=o.onStateChanged&&o.onStateChanged(o,o.State))},o.Stop=function(){1==o.debugmode&&console.log("stop"),null!=o.rtcKeepAlive&&(clearInterval(o.rtcKeepAlive),o.rtcKeepAlive=null),o.xxStateChange(0)},o.xxSendRtcKeepAlive=function(){o.sendCtrlMsg(JSON.stringify({action:"ping"}))},o}
\ No newline at end of file
1
+var CreateKvmDataChannel=function(e,t,n){var o={},l=(((o.m=t).parent=o).webchannel=e,o.State=0,o.protocol=t.protocol,o.onStateChanged=null,o.onControlMsg=null,o.debugmode=0,o.keepalive=n,o.rtcKeepAlive=null,o.Start=function(){1==o.debugmode&&console.log("start"),o.xxStateChange(3),o.webchannel.onmessage=o.xxOnMessage,o.rtcKeepAlive=setInterval(o.xxSendRtcKeepAlive,3e4)},new FileReader),i=!1,s=[];return l.readAsBinaryString?l.onload=function(e){o.xxOnSocketData(e.target.result),0==s.length?i=!1:l.readAsBinaryString(new Blob([s.shift()]))}:l.readAsArrayBuffer&&(l.onloadend=function(e){o.xxOnSocketData(e.target.result),0==s.length?i=!1:l.readAsArrayBuffer(s.shift())}),o.xxOnMessage=function(e){if("string"==typeof e.data)null!=o.onControlMsg&&o.onControlMsg(e.data);else if("object"==typeof e.data)if(1==i)s.push(e.data);else if(l.readAsBinaryString)i=!0,l.readAsBinaryString(new Blob([e.data]));else if(f.readAsArrayBuffer)i=!0,l.readAsArrayBuffer(e.data);else{for(var t="",n=new Uint8Array(e.data),a=n.byteLength,r=0;r<a;r++)t+=String.fromCharCode(n[r]);o.xxOnSocketData(t)}else o.xxOnSocketData(e.data)},o.xxOnSocketData=function(e){if(e){if("object"==typeof e){for(var t="",n=new Uint8Array(e),a=n.byteLength,r=0;r<a;r++)t+=String.fromCharCode(n[r]);e=t}else if("string"!=typeof e)return;return o.m.ProcessData(e)}},o.sendCtrlMsg=function(e){"string"==typeof e&&(o.webchannel.send(e),null!=o.keepalive)&&o.keepalive.sendKeepAlive()},o.send=function(e){if("string"==typeof e){for(var t=new Uint8Array(e.length),n=0;n<e.length;++n)t[n]=e.charCodeAt(n);e=t}o.webchannel.send(e)},o.xxStateChange=function(e){o.State!=e&&(o.State=e,o.m.xxStateChange(o.State),null!=o.onStateChanged)&&o.onStateChanged(o,o.State)},o.Stop=function(){1==o.debugmode&&console.log("stop"),null!=o.rtcKeepAlive&&(clearInterval(o.rtcKeepAlive),o.rtcKeepAlive=null),o.xxStateChange(0)},o.xxSendRtcKeepAlive=function(){o.sendCtrlMsg(JSON.stringify({action:"ping"}))},o}
\ No newline at end of file
public/scripts/agent-redir-ws-0.1.1-min.js
+1
-1
@@ -1 +1 @@
1
-var CreateAgentRedirect=function(e,t,n,o,a,c){var s={};function l(){1==s.webSwitchOk&&1==s.webRtcActive&&(s.latency.current=-1,s.sendCtrlMsg('{"ctrlChannel":"102938","type":"webrtc0"}'),s.sendCtrlMsg('{"ctrlChannel":"102938","type":"webrtc1"}'),null!=s.onStateChanged&&s.onStateChanged(s,s.State))}((s.m=t).parent=s).meshserver=e,s.authCookie=o,s.rauthCookie=a,s.State=0,s.nodeid=null,s.options=null,s.socket=null,s.connectstate=-1,s.tunnelid=Math.random().toString(36).substring(2),s.protocol=t.protocol,s.onStateChanged=null,s.ctrlMsgAllowed=!0,s.attemptWebRTC=!1,s.webRtcActive=!1,s.webSwitchOk=!1,s.webchannel=null,s.webrtc=null,s.debugmode=0,s.serverIsRecording=!1,s.urlname="meshrelay.ashx",s.latency={lastSend:null,current:-1,callback:null},null==c&&(c="/"),s.consoleMessage=null,s.onConsoleMessageChange=null,s.metadata=null,s.onMetadataChange=null,s.Start=function(e){var t=window.location.protocol.replace("http","ws")+"//"+window.location.host+window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/"+s.urlname+"?browser=1&p="+s.protocol+(e?"&nodeid="+e:"")+"&id="+s.tunnelid;null!=o&&""!=o&&(t+="&auth="+o),null!=urlargs&&null!=urlargs.slowrelay&&(t+="&slowrelay="+urlargs.slowrelay),s.nodeid=e,s.connectstate=0,s.socket=new WebSocket(t),s.socket.binaryType="arraybuffer",s.socket.onopen=s.xxOnSocketConnected,s.socket.onmessage=s.xxOnMessage,s.socket.onerror=function(e){},s.socket.onclose=s.xxOnSocketClosed,s.xxStateChange(1),null!=s.meshserver&&(t="*"+c+"meshrelay.ashx?p="+s.protocol+"&nodeid="+e+"&id="+s.tunnelid,null!=a&&""!=a&&(t+="&rauth="+a),s.meshserver.send({action:"msg",type:"tunnel",nodeid:s.nodeid,value:t,usage:s.protocol}))},s.xxOnSocketConnected=function(){1==s.debugmode&&console.log("onSocketConnected"),s.xxStateChange(2)},s.xxOnControlCommand=function(e){var t;try{t=JSON.parse(e)}catch(e){return}"102938"!=t.ctrlChannel?s.m.ProcessData?s.m.ProcessData(e):console.log(e):("undefined"!=typeof args&&args.redirtrace&&console.log("RedirRecv",t),"console"==t.type?s.setConsoleMessage(t.msg,t.msgid,t.msgargs,t.timeout):"metadata"==t.type?(s.metadata=t,s.onMetadataChange&&s.onMetadataChange(s.metadata)):"rtt"==t.type&&"number"==typeof t.time?(s.latency.current=(new Date).getTime()-t.time,null!=s.latency.callbacks&&s.latency.callback(s.latency.current)):null!=s.webrtc?"answer"==t.type?s.webrtc.setRemoteDescription(new RTCSessionDescription(t),function(){},s.xxCloseWebRTC):"webrtc0"==t.type?(s.webSwitchOk=!0,l()):"webrtc1"==t.type?s.sendCtrlMsg('{"ctrlChannel":"102938","type":"webrtc2"}'):t.type:"ping"==t.type&&s.sendCtrlMsg('{"ctrlChannel":"102938","type":"pong"}'))},s.setConsoleMessage=function(e,t,n,o){s.consoleMessage!=e&&(s.consoleMessage=e,s.consoleMessageId=t,s.consoleMessageArgs=n,s.consoleMessageTimeout=o,s.onConsoleMessageChange&&s.onConsoleMessageChange(s,s.consoleMessage,s.consoleMessageId))},s.sendCtrlMsg=function(e){if(1==s.ctrlMsgAllowed){"undefined"!=typeof args&&args.redirtrace&&console.log("RedirSend",typeof e,e);try{s.socket.send(e)}catch(e){}}},s.xxOnMessage=function(e){if(s.State<3&&("c"==e.data||"cr"==e.data)){if("cr"==e.data&&(s.serverIsRecording=!0),null!=s.options){delete s.options.action,s.options.type="options";try{s.sendCtrlMsg(JSON.stringify(s.options))}catch(e){}}try{s.socket.send(s.protocol)}catch(e){}return s.xxStateChange(3),void(1==s.attemptWebRTC&&("undefined"!=typeof RTCPeerConnection?s.webrtc=new RTCPeerConnection(null):"undefined"!=typeof webkitRTCPeerConnection&&(s.webrtc=new webkitRTCPeerConnection(null)),null!=s.webrtc&&s.webrtc.createDataChannel&&(s.webchannel=s.webrtc.createDataChannel("DataChannel",{}),s.webchannel.binaryType="arraybuffer",s.webchannel.onmessage=s.xxOnMessage,s.webchannel.onopen=function(){s.webRtcActive=!0,l()},s.webchannel.onclose=function(e){s.webRtcActive&&s.Stop()},s.webrtc.onicecandidate=function(e){if(null==e.candidate)try{s.sendCtrlMsg(JSON.stringify(s.webrtcoffer))}catch(e){}else s.webrtcoffer.sdp+="a="+e.candidate.candidate+"\r\n"},s.webrtc.oniceconnectionstatechange=function(){null!=s.webrtc&&("disconnected"==s.webrtc.iceConnectionState?1==s.webRtcActive?s.Stop():s.xxCloseWebRTC():"failed"==s.webrtc.iceConnectionState&&s.xxCloseWebRTC())},s.webrtc.createOffer(function(e){s.webrtcoffer=e,s.webrtc.setLocalDescription(e,function(){},s.xxCloseWebRTC)},s.xxCloseWebRTC,{mandatory:{OfferToReceiveAudio:!1,OfferToReceiveVideo:!1}}))))}if("string"==typeof e.data)"~"==e.data[0]?s.m.ProcessData(e.data):s.xxOnControlCommand(e.data);else if(s.m.ProcessBinaryCommand){if(!(0==u&&e.data.byteLength<4))if(0!=u){var t=new Uint8Array(e.data);if(g.push(t),u+=t.byteLength,d<=u){var n,o=new Uint8Array(u),a=0;for(n in g)o.set(g[n],a),a+=g[n].byteLength;s.m.ProcessBinaryCommand(i,d,o),u=d=i=0,g=[]}}else{var c=((t=new Uint8Array(e.data))[0]<<8)+t[1],r=(t[2]<<8)+t[3];27==c&&8==r&&(c=(t[8]<<8)+t[9],r=(t[5]<<16)+(t[6]<<8)+t[7],t=t.slice(8)),r!=t.byteLength?(i=c,d=r,u=t.byteLength,g=[t]):s.m.ProcessBinaryCommand(c,r,t)}}else s.m.ProcessBinaryData?s.m.ProcessBinaryData(new Uint8Array(e.data)):e.data.byteLength<16e3?s.m.ProcessData(String.fromCharCode.apply(null,new Uint8Array(e.data))):(c=new Blob([new Uint8Array(e.data)]),(r=new FileReader).onload=function(e){s.m.ProcessData(e.target.result)},r.readAsBinaryString(c))};var i=0,d=0,u=0,g=[];return s.sendText=function(e){"string"!=typeof e&&(e=JSON.stringify(e)),s.send(encode_utf8(e))},s.send=function(e){"undefined"!=typeof args&&args.redirtrace&&console.log("RedirSend",typeof e,e.length,"{"==e[0]?e:rstr2hex(e).substring(0,64));try{if(null!=s.socket&&s.socket.readyState==WebSocket.OPEN)if("string"==typeof e)if(1==s.debugmode){for(var t=new Uint8Array(e.length),n=[],o=0;o<e.length;++o)t[o]=e.charCodeAt(o),n.push(e.charCodeAt(o));(1==s.webRtcActive?s.webchannel:s.socket).send(t.buffer)}else{for(t=new Uint8Array(e.length),o=0;o<e.length;++o)t[o]=e.charCodeAt(o);(1==s.webRtcActive?s.webchannel:s.socket).send(t.buffer)}else(1==s.webRtcActive?s.webchannel:s.socket).send(e)}catch(e){}},s.xxOnSocketClosed=function(){s.Stop(1)},s.xxStateChange=function(e){s.State!=e&&(s.State=e,s.m.xxStateChange(s.State),null!=s.onStateChanged&&s.onStateChanged(s,s.State))},s.xxCloseWebRTC=function(){if(null!=s.webchannel){try{s.webchannel.close()}catch(e){}s.webchannel=null}if(null!=s.webrtc){try{s.webrtc.close()}catch(e){}s.webrtc=null}s.webRtcActive=!1},s.Stop=function(e){if(1==s.debugmode&&console.log("stop",e),s.xxCloseWebRTC(),s.connectstate=-1,null!=s.socket){try{1==s.socket.readyState&&s.sendCtrlMsg('{"ctrlChannel":"102938","type":"close"}')}catch(e){}try{s.socket.readyState<=1&&s.socket.close()}catch(e){}s.socket=null}s.xxStateChange(0)},s}
\ No newline at end of file
1
+var CreateAgentRedirect=function(e,t,n,o,a,c){var s={};function l(){1==s.webSwitchOk&&1==s.webRtcActive&&(s.latency.current=-1,s.sendCtrlMsg('{"ctrlChannel":"102938","type":"webrtc0"}'),s.sendCtrlMsg('{"ctrlChannel":"102938","type":"webrtc1"}'),null!=s.onStateChanged)&&s.onStateChanged(s,s.State)}((s.m=t).parent=s).meshserver=e,s.authCookie=o,s.rauthCookie=a,s.State=0,s.nodeid=null,s.options=null,s.socket=null,s.connectstate=-1,s.tunnelid=Math.random().toString(36).substring(2),s.protocol=t.protocol,s.onStateChanged=null,s.ctrlMsgAllowed=!0,s.attemptWebRTC=!1,s.webRtcActive=!1,s.webSwitchOk=!1,s.webchannel=null,s.webrtc=null,s.debugmode=0,s.serverIsRecording=!1,s.urlname="meshrelay.ashx",s.latency={lastSend:null,current:-1,callback:null},null==c&&(c="/"),s.consoleMessage=null,s.onConsoleMessageChange=null,s.metadata=null,s.onMetadataChange=null,s.Start=function(e){var t=window.location.protocol.replace("http","ws")+"//"+window.location.host+window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/"+s.urlname+"?browser=1&p="+s.protocol+(e?"&nodeid="+e:"")+"&id="+s.tunnelid;null!=o&&""!=o&&(t+="&auth="+o),null!=urlargs&&null!=urlargs.slowrelay&&(t+="&slowrelay="+urlargs.slowrelay),s.nodeid=e,s.connectstate=0,s.socket=new WebSocket(t),s.socket.binaryType="arraybuffer",s.socket.onopen=s.xxOnSocketConnected,s.socket.onmessage=s.xxOnMessage,s.socket.onerror=function(e){},s.socket.onclose=s.xxOnSocketClosed,s.xxStateChange(1),null!=s.meshserver&&(t="*"+c+"meshrelay.ashx?p="+s.protocol+"&nodeid="+e+"&id="+s.tunnelid,null!=a&&""!=a&&(t+="&rauth="+a),s.meshserver.send({action:"msg",type:"tunnel",nodeid:s.nodeid,value:t,usage:s.protocol}))},s.xxOnSocketConnected=function(){1==s.debugmode&&console.log("onSocketConnected"),s.xxStateChange(2)},s.xxOnControlCommand=function(e){var t;try{t=JSON.parse(e)}catch(e){return}"102938"!=t.ctrlChannel?s.m.ProcessData?s.m.ProcessData(e):console.log(e):("undefined"!=typeof args&&args.redirtrace&&console.log("RedirRecv",t),"console"==t.type?s.setConsoleMessage(t.msg,t.msgid,t.msgargs,t.timeout):"metadata"==t.type?(s.metadata=t,s.onMetadataChange&&s.onMetadataChange(s.metadata)):"rtt"==t.type&&"number"==typeof t.time?(s.latency.current=(new Date).getTime()-t.time,null!=s.latency.callbacks&&s.latency.callback(s.latency.current)):null!=s.webrtc?"answer"==t.type?s.webrtc.setRemoteDescription(new RTCSessionDescription(t),function(){},s.xxCloseWebRTC):"webrtc0"==t.type?(s.webSwitchOk=!0,l()):"webrtc1"==t.type?s.sendCtrlMsg('{"ctrlChannel":"102938","type":"webrtc2"}'):t.type:"ping"==t.type&&s.sendCtrlMsg('{"ctrlChannel":"102938","type":"pong"}'))},s.setConsoleMessage=function(e,t,n,o){s.consoleMessage!=e&&(s.consoleMessage=e,s.consoleMessageId=t,s.consoleMessageArgs=n,s.consoleMessageTimeout=o,s.onConsoleMessageChange)&&s.onConsoleMessageChange(s,s.consoleMessage,s.consoleMessageId)},s.sendCtrlMsg=function(e){if(1==s.ctrlMsgAllowed){"undefined"!=typeof args&&args.redirtrace&&console.log("RedirSend",typeof e,e);try{s.socket.send(e)}catch(e){}}},s.xxOnMessage=function(e){if(s.State<3&&("c"==e.data||"cr"==e.data)){if("cr"==e.data&&(s.serverIsRecording=!0),null!=s.options){delete s.options.action,s.options.type="options";try{s.sendCtrlMsg(JSON.stringify(s.options))}catch(e){}}try{s.socket.send(s.protocol)}catch(e){}s.xxStateChange(3),1==s.attemptWebRTC&&("undefined"!=typeof RTCPeerConnection?s.webrtc=new RTCPeerConnection(null):"undefined"!=typeof webkitRTCPeerConnection&&(s.webrtc=new webkitRTCPeerConnection(null)),null!=s.webrtc)&&s.webrtc.createDataChannel&&(s.webchannel=s.webrtc.createDataChannel("DataChannel",{}),s.webchannel.binaryType="arraybuffer",s.webchannel.onmessage=s.xxOnMessage,s.webchannel.onopen=function(){s.webRtcActive=!0,l()},s.webchannel.onclose=function(e){s.webRtcActive&&s.Stop()},s.webrtc.onicecandidate=function(e){if(null==e.candidate)try{s.sendCtrlMsg(JSON.stringify(s.webrtcoffer))}catch(e){}else s.webrtcoffer.sdp+="a="+e.candidate.candidate+"\r\n"},s.webrtc.oniceconnectionstatechange=function(){null!=s.webrtc&&("disconnected"==s.webrtc.iceConnectionState?1==s.webRtcActive?s.Stop():s.xxCloseWebRTC():"failed"==s.webrtc.iceConnectionState&&s.xxCloseWebRTC())},s.webrtc.createOffer(function(e){s.webrtcoffer=e,s.webrtc.setLocalDescription(e,function(){},s.xxCloseWebRTC)},s.xxCloseWebRTC,{mandatory:{OfferToReceiveAudio:!1,OfferToReceiveVideo:!1}}))}else if("string"==typeof e.data)"~"==e.data[0]?s.m.ProcessData(e.data):s.xxOnControlCommand(e.data);else if(s.m.ProcessBinaryCommand){if(!(0==u&&e.data.byteLength<4))if(0!=u){var t=new Uint8Array(e.data);if(g.push(t),u+=t.byteLength,d<=u){var n,o=new Uint8Array(u),a=0;for(n in g)o.set(g[n],a),a+=g[n].byteLength;s.m.ProcessBinaryCommand(i,d,o),u=d=i=0,g=[]}}else{var c=((t=new Uint8Array(e.data))[0]<<8)+t[1],r=(t[2]<<8)+t[3];27==c&&8==r&&(c=(t[8]<<8)+t[9],r=(t[5]<<16)+(t[6]<<8)+t[7],t=t.slice(8)),r!=t.byteLength?(i=c,d=r,u=t.byteLength,g=[t]):s.m.ProcessBinaryCommand(c,r,t)}}else s.m.ProcessBinaryData?s.m.ProcessBinaryData(new Uint8Array(e.data)):e.data.byteLength<16e3?s.m.ProcessData(String.fromCharCode.apply(null,new Uint8Array(e.data))):(c=new Blob([new Uint8Array(e.data)]),(r=new FileReader).onload=function(e){s.m.ProcessData(e.target.result)},r.readAsBinaryString(c))};var i=0,d=0,u=0,g=[];return s.sendText=function(e){"string"!=typeof e&&(e=JSON.stringify(e)),s.send(encode_utf8(e))},s.send=function(e){"undefined"!=typeof args&&args.redirtrace&&console.log("RedirSend",typeof e,e.length,"{"==e[0]?e:rstr2hex(e).substring(0,64));try{if(null!=s.socket&&s.socket.readyState==WebSocket.OPEN)if("string"==typeof e){if(1==s.debugmode)for(var t=new Uint8Array(e.length),n=[],o=0;o<e.length;++o)t[o]=e.charCodeAt(o),n.push(e.charCodeAt(o));else for(t=new Uint8Array(e.length),o=0;o<e.length;++o)t[o]=e.charCodeAt(o);(1==s.webRtcActive?s.webchannel:s.socket).send(t.buffer)}else(1==s.webRtcActive?s.webchannel:s.socket).send(e)}catch(e){}},s.xxOnSocketClosed=function(){s.Stop(1)},s.xxStateChange=function(e){s.State!=e&&(s.State=e,s.m.xxStateChange(s.State),null!=s.onStateChanged)&&s.onStateChanged(s,s.State)},s.xxCloseWebRTC=function(){if(null!=s.webchannel){try{s.webchannel.close()}catch(e){}s.webchannel=null}if(null!=s.webrtc){try{s.webrtc.close()}catch(e){}s.webrtc=null}s.webRtcActive=!1},s.Stop=function(e){if(1==s.debugmode&&console.log("stop",e),s.xxCloseWebRTC(),s.connectstate=-1,null!=s.socket){try{1==s.socket.readyState&&s.sendCtrlMsg('{"ctrlChannel":"102938","type":"close"}')}catch(e){}try{s.socket.readyState<=1&&s.socket.close()}catch(e){}s.socket=null}s.xxStateChange(0)},s}
\ No newline at end of file
public/scripts/amt-0.2.0-min.js
+1
-1
@@ -1 +1 @@
1
-function AmtStackCreateService(e){var E=new Object,t=(E.wsman=e,E.pfx=["http://intel.com/wbem/wscim/1/amt-schema/1/","http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/","http://intel.com/wbem/wscim/1/ips-schema/1/"],E.PendingEnums=[],E.PendingBatchOperations=0,E.ActiveEnumsCount=0,E.MaxActiveEnumsCount=1,E.onProcessChanged=null,0),n=0;function A(){var e=E.GetPendingActions();t<e&&(t=e),null!=E.onProcessChanged&&n!=e&&(n=e,E.onProcessChanged(e,t)),0==e&&(t=0)}function _(e){E.ActiveEnumsCount-=e,E.ActiveEnumsCount>=E.MaxActiveEnumsCount||0==E.PendingEnums.length||(e=E.PendingEnums.shift(),E.Enum(e[0],e[1],e[2]),_(0))}function c(r){r.names.length<=r.current?r.callback(E,r.name,r.responses,200,r.tag):(E.wsman.ExecGet(E.CompleteName(r.names[r.current]),function(e,t,n,i){var o;o=r,i=i,null==(n=n)||200!=i?o.callback(E,o.name,null,i,o.tag):(o.responses[n.Header.Method]=n,c(o))},r.pri),r.current++),A()}function i(e,t,n,i,o){200!=i||"0"!=n.Body.ReturnValue?o[0](E,null,o[2]):E.AMT_MessageLog_GetRecords(n.Body.IterationIdentifier,390,C,o)}function C(e,t,n,i,o){if(200!=i||"0"!=n.Body.ReturnValue)o[0](E,null,o[2]);else{var r,c,a,s,u,d,S,A=o[2],_=new Date,l=n.Body.RecordArray;for(r in"string"==typeof l&&(n.Body.RecordArray=[n.Body.RecordArray]),l){s=null;try{s=window.atob(l[r])}catch(e){}if(null!=s&&0<(u=ReadIntX(s,0))&&u<4294967295){for(a={DeviceAddress:s.charCodeAt(4),EventSensorType:s.charCodeAt(5),EventType:s.charCodeAt(6),EventOffset:s.charCodeAt(7),EventSourceType:s.charCodeAt(8),EventSeverity:s.charCodeAt(9),SensorNumber:s.charCodeAt(10),Entity:s.charCodeAt(11),EntityInstance:s.charCodeAt(12),EventData:[],Time:new Date(1e3*(u+60*_.getTimezoneOffset()))},c=13;c<21;c++)a.EventData.push(s.charCodeAt(c));a.EntityStr=M[a.Entity],a.Desc=(u=a.EventSensorType,d=a.EventOffset,S=a.EventData,a.Entity,15!=u?18!=u||170!=S[0]?6==u?"Authentication failed "+(S[1]+(S[2]<<8))+" times. The system may be under attack.":30==u?"No bootable media":32==u?"Operating system lockup or power interrupt":35!=u?37==u?"System firmware started (at least one CPU is properly executing).":"Unknown Sensor Type #"+u:64==S[0]?"BIOS POST (Power On Self-Test) Watchdog Timeout.":"System boot failure":"Agent watchdog "+char2hex(S[4])+char2hex(S[3])+char2hex(S[2])+char2hex(S[1])+"-"+char2hex(S[6])+char2hex(S[5])+"-... changed to "+E.WatchdogCurrentStates[S[7]]:235==S[0]?"Invalid Data":(0==d?m:g)[S[1]]),a.EntityStr||(a.EntityStr="Unknown"),A.push(a)}}1!=n.Body.NoMoreRecords?E.AMT_MessageLog_GetRecords(n.Body.IterationIdentifier,390,C,[o[0],A,o[2]]):o[0](E,A,o[2])}}E.GetPendingActions=function(){return 2*E.PendingEnums.length+E.ActiveEnumsCount+E.wsman.comm.PendingAjax.length+E.wsman.comm.ActiveAjaxCount+E.PendingBatchOperations},E.Subscribe=function(o,e,t,r,c,n,i,a,s,u){E.wsman.ExecSubscribe(E.CompleteName(o),e,t,function(e,t,n,i){A(),r(E,o,n,i,c)},0,n,i,a,s,u),A()},E.UnSubscribe=function(o,r,c,e,t){E.wsman.ExecUnSubscribe(E.CompleteName(o),function(e,t,n,i){A(),r(E,o,n,i,c)},0,e,t),A()},E.Get=function(o,r,c,e){E.wsman.ExecGet(E.CompleteName(o),function(e,t,n,i){A(),r(E,o,n,i,c)},0,e),A()},E.Put=function(o,e,r,c,t,n){E.wsman.ExecPut(E.CompleteName(o),e,function(e,t,n,i){A(),r(E,o,n,i,c)},0,t,n),A()},E.Create=function(o,e,r,c,t){E.wsman.ExecCreate(E.CompleteName(o),e,function(e,t,n,i){A(),r(E,o,n,i,c)},0,t),A()},E.Delete=function(o,e,r,c,t){E.wsman.ExecDelete(E.CompleteName(o),e,function(e,t,n,i){A(),r(E,o,n,i,c)},0,t),A()},E.Exec=function(o,e,t,r,c,n,i){E.wsman.ExecMethod(E.CompleteName(o),e,t,function(e,t,n,i){A(),r(E,o,E.CompleteExecResponse(n),i,c)},0,n,i),A()},E.ExecWithXml=function(o,e,t,r,c,n,i){E.wsman.ExecMethodXml(E.CompleteName(o),e,execArgumentsToXml(t),function(e,t,n,i){A(),r(E,o,E.CompleteExecResponse(n),i,c)},0,n,i),A()},E.Enum=function(s,u,e,t){E.ActiveEnumsCount<E.MaxActiveEnumsCount?(E.ActiveEnumsCount++,E.wsman.ExecEnum(E.CompleteName(s),function(e,t,n,i,o){var r,c,a;A(),r=s,n=n,c=u,t=t,a=o,200!=(o=i)?(c(E,r,null,o,a),_(1)):null!=n&&"EnumerateResponse"==n.Header.Method&&n.Body.EnumerationContext?(o=n.Body.EnumerationContext,E.wsman.ExecPull(t,o,function(e,t,n,i){!function o(r,e,c,t,a,n,s,i){if(200!=n)return c(E,r,null,n,s),void _(1);if(null==e||"PullResponse"!=e.Header.Method)return c(E,r,null,604,s),void _(1);for(var u in e.Body.Items)if(e.Body.Items[u]instanceof Array)for(var d in e.Body.Items[u])a.push(e.Body.Items[u][d]);else a.push(e.Body.Items[u]);{var S;e.Body.EnumerationContext?(S=e.Body.EnumerationContext,E.wsman.ExecPull(t,S,function(e,t,n,i){o(r,n,c,t,a,i,s,1)})):(_(1),c(E,r,a,n,s),A())}}(r,n,c,t,[],i,a)})):(c(E,r,null,603,a),_(1))},e,t)):E.PendingEnums.push([s,u,e,t]),A()},E.BatchEnum=function(e,t,n,i,o,r){E.PendingBatchOperations+=2*t.length,function r(c,a,s,u,e,d,S){E.PendingBatchOperations-=2;var t=a.shift(),n=E.Enum;"*"==t[0]&&(n=E.Get,t=t.substring(1));n(t,function(e,t,n,i,o){o[2][t]={response:null==n?null:n.Body,responses:n,status:i},0==o[1].length||401==i||1!=d&&200!=i&&400!=i?(E.PendingBatchOperations-=2*a.length,A(),s(E,c,o[2],i,u)):(A(),r(c,a,s,u,o[2],S))},[c,a,e],S);A()}(e,Clone(t),n,i,{},o,r),A()},E.BatchGet=function(e,t,n,i,o){c({name:e,names:t,callback:n,current:0,responses:{},tag:i,pri:o}),A()},E.CompleteName=function(e){return 0==e.indexOf("AMT_")?E.pfx[0]+e:0==e.indexOf("CIM_")?E.pfx[1]+e:0==e.indexOf("IPS_")?E.pfx[2]+e:void 0},E.CompleteExecResponse=function(e){return e&&null!=e&&e.Body&&e.Body.ReturnValue&&(e.Body.ReturnValueStr=E.AmtStatusToStr(e.Body.ReturnValue)),e},E.RequestPowerStateChange=function(e,t){E.CIM_PowerManagementService_RequestPowerStateChange(e,'<Address xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2004/08/addressing</Address><ReferenceParameters xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"><ResourceURI xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem</ResourceURI><SelectorSet xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"><Selector Name="CreationClassName">CIM_ComputerSystem</Selector><Selector Name="Name">ManagedSystem</Selector></SelectorSet></ReferenceParameters>',null,null,t)},E.SetBootConfigRole=function(e,t){E.CIM_BootService_SetBootConfigRole('<Address xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2004/08/addressing</Address><ReferenceParameters xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"><ResourceURI xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootConfigSetting</ResourceURI><SelectorSet xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"><Selector Name="InstanceID">Intel(r) AMT: Boot Configuration 0</Selector></SelectorSet></ReferenceParameters>',e,t)},E.CancelAllQueries=function(e){E.wsman.CancelAllQueries(e)},E.AMT_AgentPresenceWatchdog_RegisterAgent=function(e){E.Exec("AMT_AgentPresenceWatchdog","RegisterAgent",{},e)},E.AMT_AgentPresenceWatchdog_AssertPresence=function(e,t){E.Exec("AMT_AgentPresenceWatchdog","AssertPresence",{SequenceNumber:e},t)},E.AMT_AgentPresenceWatchdog_AssertShutdown=function(e,t){E.Exec("AMT_AgentPresenceWatchdog","AssertShutdown",{SequenceNumber:e},t)},E.AMT_AgentPresenceWatchdog_AddAction=function(e,t,n,i,o,r,c,a,s){E.Exec("AMT_AgentPresenceWatchdog","AddAction",{OldState:e,NewState:t,EventOnTransition:n,ActionSd:i,ActionEac:o},r,c,a,s)},E.AMT_AgentPresenceWatchdog_DeleteAllActions=function(e,t,n,i){E.Exec("AMT_AgentPresenceWatchdog","DeleteAllActions",{},e,t,n,i)},E.AMT_AgentPresenceWatchdogAction_GetActionEac=function(e){E.Exec("AMT_AgentPresenceWatchdogAction","GetActionEac",{},e)},E.AMT_AgentPresenceWatchdogVA_RegisterAgent=function(e){E.Exec("AMT_AgentPresenceWatchdogVA","RegisterAgent",{},e)},E.AMT_AgentPresenceWatchdogVA_AssertPresence=function(e,t){E.Exec("AMT_AgentPresenceWatchdogVA","AssertPresence",{SequenceNumber:e},t)},E.AMT_AgentPresenceWatchdogVA_AssertShutdown=function(e,t){E.Exec("AMT_AgentPresenceWatchdogVA","AssertShutdown",{SequenceNumber:e},t)},E.AMT_AgentPresenceWatchdogVA_AddAction=function(e,t,n,i,o,r){E.Exec("AMT_AgentPresenceWatchdogVA","AddAction",{OldState:e,NewState:t,EventOnTransition:n,ActionSd:i,ActionEac:o},r)},E.AMT_AgentPresenceWatchdogVA_DeleteAllActions=function(e,t){E.Exec("AMT_AgentPresenceWatchdogVA","DeleteAllActions",{_method_dummy:e},t)},E.AMT_AuditLog_ClearLog=function(e){E.Exec("AMT_AuditLog","ClearLog",{},e)},E.AMT_AuditLog_RequestStateChange=function(e,t,n){E.Exec("AMT_AuditLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.AMT_AuditLog_ReadRecords=function(e,t,n){E.Exec("AMT_AuditLog","ReadRecords",{StartIndex:e},t,n)},E.AMT_AuditLog_SetAuditLock=function(e,t,n,i){E.Exec("AMT_AuditLog","SetAuditLock",{LockTimeoutInSeconds:e,Flag:t,Handle:n},i)},E.AMT_AuditLog_ExportAuditLogSignature=function(e,t){E.Exec("AMT_AuditLog","ExportAuditLogSignature",{SigningMechanism:e},t)},E.AMT_AuditLog_SetSigningKeyMaterial=function(e,t,n,i,o){E.Exec("AMT_AuditLog","SetSigningKeyMaterial",{SigningMechanismType:e,SigningKey:t,LengthOfCertificates:n,Certificates:i},o)},E.AMT_AuditPolicyRule_SetAuditPolicy=function(e,t,n,i,o){E.Exec("AMT_AuditPolicyRule","SetAuditPolicy",{Enable:e,AuditedAppID:t,EventID:n,PolicyType:i},o)},E.AMT_AuditPolicyRule_SetAuditPolicyBulk=function(e,t,n,i,o){E.Exec("AMT_AuditPolicyRule","SetAuditPolicyBulk",{Enable:e,AuditedAppID:t,EventID:n,PolicyType:i},o)},E.AMT_AuthorizationService_AddUserAclEntryEx=function(e,t,n,i,o,r){E.Exec("AMT_AuthorizationService","AddUserAclEntryEx",{DigestUsername:e,DigestPassword:t,KerberosUserSid:n,AccessPermission:i,Realms:o},r)},E.AMT_AuthorizationService_EnumerateUserAclEntries=function(e,t){E.Exec("AMT_AuthorizationService","EnumerateUserAclEntries",{StartIndex:e},t)},E.AMT_AuthorizationService_GetUserAclEntryEx=function(e,t,n){E.Exec("AMT_AuthorizationService","GetUserAclEntryEx",{Handle:e},t,n)},E.AMT_AuthorizationService_UpdateUserAclEntryEx=function(e,t,n,i,o,r,c){E.Exec("AMT_AuthorizationService","UpdateUserAclEntryEx",{Handle:e,DigestUsername:t,DigestPassword:n,KerberosUserSid:i,AccessPermission:o,Realms:r},c)},E.AMT_AuthorizationService_RemoveUserAclEntry=function(e,t){E.Exec("AMT_AuthorizationService","RemoveUserAclEntry",{Handle:e},t)},E.AMT_AuthorizationService_SetAdminAclEntryEx=function(e,t,n){E.Exec("AMT_AuthorizationService","SetAdminAclEntryEx",{Username:e,DigestPassword:t},n)},E.AMT_AuthorizationService_GetAdminAclEntry=function(e){E.Exec("AMT_AuthorizationService","GetAdminAclEntry",{},e)},E.AMT_AuthorizationService_GetAdminAclEntryStatus=function(e){E.Exec("AMT_AuthorizationService","GetAdminAclEntryStatus",{},e)},E.AMT_AuthorizationService_GetAdminNetAclEntryStatus=function(e){E.Exec("AMT_AuthorizationService","GetAdminNetAclEntryStatus",{},e)},E.AMT_AuthorizationService_SetAclEnabledState=function(e,t,n,i){E.Exec("AMT_AuthorizationService","SetAclEnabledState",{Handle:e,Enabled:t},n,i)},E.AMT_AuthorizationService_GetAclEnabledState=function(e,t,n){E.Exec("AMT_AuthorizationService","GetAclEnabledState",{Handle:e},t,n)},E.AMT_EndpointAccessControlService_RequestStateChange=function(e,t,n){E.Exec("AMT_EndpointAccessControlService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.AMT_EndpointAccessControlService_GetPosture=function(e,t){E.Exec("AMT_EndpointAccessControlService","GetPosture",{PostureType:e},t)},E.AMT_EndpointAccessControlService_GetPostureHash=function(e,t){E.Exec("AMT_EndpointAccessControlService","GetPostureHash",{PostureType:e},t)},E.AMT_EndpointAccessControlService_UpdatePostureState=function(e,t){E.Exec("AMT_EndpointAccessControlService","UpdatePostureState",{UpdateType:e},t)},E.AMT_EndpointAccessControlService_GetEacOptions=function(e){E.Exec("AMT_EndpointAccessControlService","GetEacOptions",{},e)},E.AMT_EndpointAccessControlService_SetEacOptions=function(e,t,n){E.Exec("AMT_EndpointAccessControlService","SetEacOptions",{EacVendors:e,PostureHashAlgorithm:t},n)},E.AMT_EnvironmentDetectionSettingData_SetSystemDefensePolicy=function(e,t){E.Exec("AMT_EnvironmentDetectionSettingData","SetSystemDefensePolicy",{Policy:e},t)},E.AMT_EnvironmentDetectionSettingData_EnableVpnRouting=function(e,t){E.Exec("AMT_EnvironmentDetectionSettingData","EnableVpnRouting",{Enable:e},t)},E.AMT_EthernetPortSettings_SetLinkPreference=function(e,t,n){E.Exec("AMT_EthernetPortSettings","SetLinkPreference",{LinkPreference:e,Timeout:t},n)},E.AMT_HeuristicPacketFilterStatistics_ResetSelectedStats=function(e,t){E.Exec("AMT_HeuristicPacketFilterStatistics","ResetSelectedStats",{SelectedStatistics:e},t)},E.AMT_KerberosSettingData_GetCredentialCacheState=function(e){E.Exec("AMT_KerberosSettingData","GetCredentialCacheState",{},e)},E.AMT_KerberosSettingData_SetCredentialCacheState=function(e,t){E.Exec("AMT_KerberosSettingData","SetCredentialCacheState",{Enable:e},t)},E.AMT_MessageLog_CancelIteration=function(e,t){E.Exec("AMT_MessageLog","CancelIteration",{IterationIdentifier:e},t)},E.AMT_MessageLog_RequestStateChange=function(e,t,n){E.Exec("AMT_MessageLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.AMT_MessageLog_ClearLog=function(e){E.Exec("AMT_MessageLog","ClearLog",{},e)},E.AMT_MessageLog_GetRecords=function(e,t,n,i){E.Exec("AMT_MessageLog","GetRecords",{IterationIdentifier:e,MaxReadRecords:t},n,i)},E.AMT_MessageLog_GetRecord=function(e,t,n){E.Exec("AMT_MessageLog","GetRecord",{IterationIdentifier:e,PositionToNext:t},n)},E.AMT_MessageLog_PositionAtRecord=function(e,t,n,i){E.Exec("AMT_MessageLog","PositionAtRecord",{IterationIdentifier:e,MoveAbsolute:t,RecordNumber:n},i)},E.AMT_MessageLog_PositionToFirstRecord=function(e,t){E.Exec("AMT_MessageLog","PositionToFirstRecord",{},e,t)},E.AMT_MessageLog_FreezeLog=function(e,t){E.Exec("AMT_MessageLog","FreezeLog",{Freeze:e},t)},E.AMT_PublicKeyManagementService_AddCRL=function(e,t,n){E.Exec("AMT_PublicKeyManagementService","AddCRL",{Url:e,SerialNumbers:t},n)},E.AMT_PublicKeyManagementService_ResetCRLList=function(e,t){E.Exec("AMT_PublicKeyManagementService","ResetCRLList",{_method_dummy:e},t)},E.AMT_PublicKeyManagementService_AddCertificate=function(e,t){E.Exec("AMT_PublicKeyManagementService","AddCertificate",{CertificateBlob:e},t)},E.AMT_PublicKeyManagementService_AddTrustedRootCertificate=function(e,t){E.Exec("AMT_PublicKeyManagementService","AddTrustedRootCertificate",{CertificateBlob:e},t)},E.AMT_PublicKeyManagementService_AddKey=function(e,t){E.Exec("AMT_PublicKeyManagementService","AddKey",{KeyBlob:e},t)},E.AMT_PublicKeyManagementService_GeneratePKCS10Request=function(e,t,n,i){E.Exec("AMT_PublicKeyManagementService","GeneratePKCS10Request",{KeyPair:e,DNName:t,Usage:n},i)},E.AMT_PublicKeyManagementService_GeneratePKCS10RequestEx=function(e,t,n,i){E.Exec("AMT_PublicKeyManagementService","GeneratePKCS10RequestEx",{KeyPair:e,SigningAlgorithm:t,NullSignedCertificateRequest:n},i)},E.AMT_PublicKeyManagementService_GenerateKeyPair=function(e,t,n){E.Exec("AMT_PublicKeyManagementService","GenerateKeyPair",{KeyAlgorithm:e,KeyLength:t},n)},E.AMT_RedirectionService_RequestStateChange=function(e,t){E.Exec("AMT_RedirectionService","RequestStateChange",{RequestedState:e},t)},E.AMT_RedirectionService_TerminateSession=function(e,t){E.Exec("AMT_RedirectionService","TerminateSession",{SessionType:e},t)},E.AMT_RemoteAccessService_AddMpServer=function(e,t,n,i,o,r,c,a,s){E.Exec("AMT_RemoteAccessService","AddMpServer",{AccessInfo:e,InfoFormat:t,Port:n,AuthMethod:i,Certificate:o,Username:r,Password:c,CN:a},s)},E.AMT_RemoteAccessService_AddRemoteAccessPolicyRule=function(e,t,n,i,o){E.Exec("AMT_RemoteAccessService","AddRemoteAccessPolicyRule",{Trigger:e,TunnelLifeTime:t,ExtendedData:n,MpServer:i},o)},E.AMT_RemoteAccessService_CloseRemoteAccessConnection=function(e,t){E.Exec("AMT_RemoteAccessService","CloseRemoteAccessConnection",{_method_dummy:e},t)},E.AMT_SetupAndConfigurationService_CommitChanges=function(e,t){E.Exec("AMT_SetupAndConfigurationService","CommitChanges",{_method_dummy:e},t)},E.AMT_SetupAndConfigurationService_Unprovision=function(e,t){E.Exec("AMT_SetupAndConfigurationService","Unprovision",{ProvisioningMode:e},t)},E.AMT_SetupAndConfigurationService_PartialUnprovision=function(e,t){E.Exec("AMT_SetupAndConfigurationService","PartialUnprovision",{_method_dummy:e},t)},E.AMT_SetupAndConfigurationService_ResetFlashWearOutProtection=function(e,t){E.Exec("AMT_SetupAndConfigurationService","ResetFlashWearOutProtection",{_method_dummy:e},t)},E.AMT_SetupAndConfigurationService_ExtendProvisioningPeriod=function(e,t){E.Exec("AMT_SetupAndConfigurationService","ExtendProvisioningPeriod",{Duration:e},t)},E.AMT_SetupAndConfigurationService_SetMEBxPassword=function(e,t){E.Exec("AMT_SetupAndConfigurationService","SetMEBxPassword",{Password:e},t)},E.AMT_SetupAndConfigurationService_SetTLSPSK=function(e,t,n){E.Exec("AMT_SetupAndConfigurationService","SetTLSPSK",{PID:e,PPS:t},n)},E.AMT_SetupAndConfigurationService_GetProvisioningAuditRecord=function(e){E.Exec("AMT_SetupAndConfigurationService","GetProvisioningAuditRecord",{},e)},E.AMT_SetupAndConfigurationService_GetUuid=function(e){E.Exec("AMT_SetupAndConfigurationService","GetUuid",{},e)},E.AMT_SetupAndConfigurationService_GetUnprovisionBlockingComponents=function(e){E.Exec("AMT_SetupAndConfigurationService","GetUnprovisionBlockingComponents",{},e)},E.AMT_SetupAndConfigurationService_GetProvisioningAuditRecordV2=function(e){E.Exec("AMT_SetupAndConfigurationService","GetProvisioningAuditRecordV2",{},e)},E.AMT_SystemDefensePolicy_GetTimeout=function(e){E.Exec("AMT_SystemDefensePolicy","GetTimeout",{},e)},E.AMT_SystemDefensePolicy_SetTimeout=function(e,t){E.Exec("AMT_SystemDefensePolicy","SetTimeout",{Timeout:e},t)},E.AMT_SystemDefensePolicy_UpdateStatistics=function(e,t,n,i,o,r){E.Exec("AMT_SystemDefensePolicy","UpdateStatistics",{NetworkInterface:e,ResetOnRead:t},n,i,o,r)},E.AMT_SystemPowerScheme_SetPowerScheme=function(e,t,n){E.Exec("AMT_SystemPowerScheme","SetPowerScheme",{},e,n,0,{InstanceID:t})},E.AMT_TimeSynchronizationService_GetLowAccuracyTimeSynch=function(e,t){E.Exec("AMT_TimeSynchronizationService","GetLowAccuracyTimeSynch",{},e,t)},E.AMT_TimeSynchronizationService_SetHighAccuracyTimeSynch=function(e,t,n,i,o){E.Exec("AMT_TimeSynchronizationService","SetHighAccuracyTimeSynch",{Ta0:e,Tm1:t,Tm2:n},i,o)},E.AMT_UserInitiatedConnectionService_RequestStateChange=function(e,t,n){E.Exec("AMT_UserInitiatedConnectionService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.AMT_WebUIService_RequestStateChange=function(e,t,n){E.Exec("AMT_WebUIService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.AMT_WiFiPortConfigurationService_AddWiFiSettings=function(e,t,n,i,o,r){E.ExecWithXml("AMT_WiFiPortConfigurationService","AddWiFiSettings",{WiFiEndpoint:e,WiFiEndpointSettingsInput:t,IEEE8021xSettingsInput:n,ClientCredential:i,CACredential:o},r)},E.AMT_WiFiPortConfigurationService_UpdateWiFiSettings=function(e,t,n,i,o,r){E.ExecWithXml("AMT_WiFiPortConfigurationService","UpdateWiFiSettings",{WiFiEndpointSettings:e,WiFiEndpointSettingsInput:t,IEEE8021xSettingsInput:n,ClientCredential:i,CACredential:o},r)},E.AMT_WiFiPortConfigurationService_DeleteAllITProfiles=function(e,t){E.Exec("AMT_WiFiPortConfigurationService","DeleteAllITProfiles",{_method_dummy:e},t)},E.AMT_WiFiPortConfigurationService_DeleteAllUserProfiles=function(e,t){E.Exec("AMT_WiFiPortConfigurationService","DeleteAllUserProfiles",{_method_dummy:e},t)},E.CIM_Account_RequestStateChange=function(e,t,n){E.Exec("CIM_Account","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_AccountManagementService_CreateAccount=function(e,t,n){E.Exec("CIM_AccountManagementService","CreateAccount",{System:e,AccountTemplate:t},n)},E.CIM_BootConfigSetting_ChangeBootOrder=function(e,t){E.Exec("CIM_BootConfigSetting","ChangeBootOrder",{Source:e},t)},E.CIM_BootService_SetBootConfigRole=function(e,t,n){E.Exec("CIM_BootService","SetBootConfigRole",{BootConfigSetting:e,Role:t},n,0,1)},E.CIM_Card_ConnectorPower=function(e,t,n){E.Exec("CIM_Card","ConnectorPower",{Connector:e,PoweredOn:t},n)},E.CIM_Card_IsCompatible=function(e,t){E.Exec("CIM_Card","IsCompatible",{ElementToCheck:e},t)},E.CIM_Chassis_IsCompatible=function(e,t){E.Exec("CIM_Chassis","IsCompatible",{ElementToCheck:e},t)},E.CIM_Fan_SetSpeed=function(e,t){E.Exec("CIM_Fan","SetSpeed",{DesiredSpeed:e},t)},E.CIM_KVMRedirectionSAP_RequestStateChange=function(e,t,n){E.Exec("CIM_KVMRedirectionSAP","RequestStateChange",{RequestedState:e},n)},E.CIM_MediaAccessDevice_LockMedia=function(e,t){E.Exec("CIM_MediaAccessDevice","LockMedia",{Lock:e},t)},E.CIM_MediaAccessDevice_SetPowerState=function(e,t,n){E.Exec("CIM_MediaAccessDevice","SetPowerState",{PowerState:e,Time:t},n)},E.CIM_MediaAccessDevice_Reset=function(e){E.Exec("CIM_MediaAccessDevice","Reset",{},e)},E.CIM_MediaAccessDevice_EnableDevice=function(e,t){E.Exec("CIM_MediaAccessDevice","EnableDevice",{Enabled:e},t)},E.CIM_MediaAccessDevice_OnlineDevice=function(e,t){E.Exec("CIM_MediaAccessDevice","OnlineDevice",{Online:e},t)},E.CIM_MediaAccessDevice_QuiesceDevice=function(e,t){E.Exec("CIM_MediaAccessDevice","QuiesceDevice",{Quiesce:e},t)},E.CIM_MediaAccessDevice_SaveProperties=function(e){E.Exec("CIM_MediaAccessDevice","SaveProperties",{},e)},E.CIM_MediaAccessDevice_RestoreProperties=function(e){E.Exec("CIM_MediaAccessDevice","RestoreProperties",{},e)},E.CIM_MediaAccessDevice_RequestStateChange=function(e,t,n){E.Exec("CIM_MediaAccessDevice","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_PhysicalFrame_IsCompatible=function(e,t){E.Exec("CIM_PhysicalFrame","IsCompatible",{ElementToCheck:e},t)},E.CIM_PhysicalPackage_IsCompatible=function(e,t){E.Exec("CIM_PhysicalPackage","IsCompatible",{ElementToCheck:e},t)},E.CIM_PowerManagementService_RequestPowerStateChange=function(e,t,n,i,o){E.Exec("CIM_PowerManagementService","RequestPowerStateChange",{PowerState:e,ManagedElement:t,Time:n,TimeoutPeriod:i},o,0,1)},E.CIM_PowerSupply_SetPowerState=function(e,t,n){E.Exec("CIM_PowerSupply","SetPowerState",{PowerState:e,Time:t},n)},E.CIM_PowerSupply_Reset=function(e){E.Exec("CIM_PowerSupply","Reset",{},e)},E.CIM_PowerSupply_EnableDevice=function(e,t){E.Exec("CIM_PowerSupply","EnableDevice",{Enabled:e},t)},E.CIM_PowerSupply_OnlineDevice=function(e,t){E.Exec("CIM_PowerSupply","OnlineDevice",{Online:e},t)},E.CIM_PowerSupply_QuiesceDevice=function(e,t){E.Exec("CIM_PowerSupply","QuiesceDevice",{Quiesce:e},t)},E.CIM_PowerSupply_SaveProperties=function(e){E.Exec("CIM_PowerSupply","SaveProperties",{},e)},E.CIM_PowerSupply_RestoreProperties=function(e){E.Exec("CIM_PowerSupply","RestoreProperties",{},e)},E.CIM_PowerSupply_RequestStateChange=function(e,t,n){E.Exec("CIM_PowerSupply","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_Processor_SetPowerState=function(e,t,n){E.Exec("CIM_Processor","SetPowerState",{PowerState:e,Time:t},n)},E.CIM_Processor_Reset=function(e){E.Exec("CIM_Processor","Reset",{},e)},E.CIM_Processor_EnableDevice=function(e,t){E.Exec("CIM_Processor","EnableDevice",{Enabled:e},t)},E.CIM_Processor_OnlineDevice=function(e,t){E.Exec("CIM_Processor","OnlineDevice",{Online:e},t)},E.CIM_Processor_QuiesceDevice=function(e,t){E.Exec("CIM_Processor","QuiesceDevice",{Quiesce:e},t)},E.CIM_Processor_SaveProperties=function(e){E.Exec("CIM_Processor","SaveProperties",{},e)},E.CIM_Processor_RestoreProperties=function(e){E.Exec("CIM_Processor","RestoreProperties",{},e)},E.CIM_Processor_RequestStateChange=function(e,t,n){E.Exec("CIM_Processor","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_RecordLog_ClearLog=function(e){E.Exec("CIM_RecordLog","ClearLog",{},e)},E.CIM_RecordLog_RequestStateChange=function(e,t,n){E.Exec("CIM_RecordLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_RedirectionService_RequestStateChange=function(e,t,n){E.Exec("CIM_RedirectionService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_Sensor_SetPowerState=function(e,t,n){E.Exec("CIM_Sensor","SetPowerState",{PowerState:e,Time:t},n)},E.CIM_Sensor_Reset=function(e){E.Exec("CIM_Sensor","Reset",{},e)},E.CIM_Sensor_EnableDevice=function(e,t){E.Exec("CIM_Sensor","EnableDevice",{Enabled:e},t)},E.CIM_Sensor_OnlineDevice=function(e,t){E.Exec("CIM_Sensor","OnlineDevice",{Online:e},t)},E.CIM_Sensor_QuiesceDevice=function(e,t){E.Exec("CIM_Sensor","QuiesceDevice",{Quiesce:e},t)},E.CIM_Sensor_SaveProperties=function(e){E.Exec("CIM_Sensor","SaveProperties",{},e)},E.CIM_Sensor_RestoreProperties=function(e){E.Exec("CIM_Sensor","RestoreProperties",{},e)},E.CIM_Sensor_RequestStateChange=function(e,t,n){E.Exec("CIM_Sensor","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_StatisticalData_ResetSelectedStats=function(e,t){E.Exec("CIM_StatisticalData","ResetSelectedStats",{SelectedStatistics:e},t)},E.CIM_Watchdog_KeepAlive=function(e){E.Exec("CIM_Watchdog","KeepAlive",{},e)},E.CIM_Watchdog_SetPowerState=function(e,t,n){E.Exec("CIM_Watchdog","SetPowerState",{PowerState:e,Time:t},n)},E.CIM_Watchdog_Reset=function(e){E.Exec("CIM_Watchdog","Reset",{},e)},E.CIM_Watchdog_EnableDevice=function(e,t){E.Exec("CIM_Watchdog","EnableDevice",{Enabled:e},t)},E.CIM_Watchdog_OnlineDevice=function(e,t){E.Exec("CIM_Watchdog","OnlineDevice",{Online:e},t)},E.CIM_Watchdog_QuiesceDevice=function(e,t){E.Exec("CIM_Watchdog","QuiesceDevice",{Quiesce:e},t)},E.CIM_Watchdog_SaveProperties=function(e){E.Exec("CIM_Watchdog","SaveProperties",{},e)},E.CIM_Watchdog_RestoreProperties=function(e){E.Exec("CIM_Watchdog","RestoreProperties",{},e)},E.CIM_Watchdog_RequestStateChange=function(e,t,n){E.Exec("CIM_Watchdog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_WiFiPort_SetPowerState=function(e,t,n){E.Exec("CIM_WiFiPort","SetPowerState",{PowerState:e,Time:t},n)},E.CIM_WiFiPort_Reset=function(e){E.Exec("CIM_WiFiPort","Reset",{},e)},E.CIM_WiFiPort_EnableDevice=function(e,t){E.Exec("CIM_WiFiPort","EnableDevice",{Enabled:e},t)},E.CIM_WiFiPort_OnlineDevice=function(e,t){E.Exec("CIM_WiFiPort","OnlineDevice",{Online:e},t)},E.CIM_WiFiPort_QuiesceDevice=function(e,t){E.Exec("CIM_WiFiPort","QuiesceDevice",{Quiesce:e},t)},E.CIM_WiFiPort_SaveProperties=function(e){E.Exec("CIM_WiFiPort","SaveProperties",{},e)},E.CIM_WiFiPort_RestoreProperties=function(e){E.Exec("CIM_WiFiPort","RestoreProperties",{},e)},E.CIM_WiFiPort_RequestStateChange=function(e,t,n){E.Exec("CIM_WiFiPort","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.IPS_HostBasedSetupService_Setup=function(e,t,n,i,o,r,c){E.Exec("IPS_HostBasedSetupService","Setup",{NetAdminPassEncryptionType:e,NetworkAdminPassword:t,McNonce:n,Certificate:i,SigningAlgorithm:o,DigitalSignature:r},c)},E.IPS_HostBasedSetupService_AddNextCertInChain=function(e,t,n,i){E.Exec("IPS_HostBasedSetupService","AddNextCertInChain",{NextCertificate:e,IsLeafCertificate:t,IsRootCertificate:n},i)},E.IPS_HostBasedSetupService_AdminSetup=function(e,t,n,i,o,r){E.Exec("IPS_HostBasedSetupService","AdminSetup",{NetAdminPassEncryptionType:e,NetworkAdminPassword:t,McNonce:n,SigningAlgorithm:i,DigitalSignature:o},r)},E.IPS_HostBasedSetupService_UpgradeClientToAdmin=function(e,t,n,i){E.Exec("IPS_HostBasedSetupService","UpgradeClientToAdmin",{McNonce:e,SigningAlgorithm:t,DigitalSignature:n},i)},E.IPS_HostBasedSetupService_DisableClientControlMode=function(e,t){E.Exec("IPS_HostBasedSetupService","DisableClientControlMode",{_method_dummy:e},t)},E.IPS_KVMRedirectionSettingData_TerminateSession=function(e){E.Exec("IPS_KVMRedirectionSettingData","TerminateSession",{},e)},E.IPS_OptInService_StartOptIn=function(e){E.Exec("IPS_OptInService","StartOptIn",{},e)},E.IPS_OptInService_CancelOptIn=function(e){E.Exec("IPS_OptInService","CancelOptIn",{},e)},E.IPS_OptInService_SendOptInCode=function(e,t){E.Exec("IPS_OptInService","SendOptInCode",{OptInCode:e},t)},E.IPS_OptInService_StartService=function(e){E.Exec("IPS_OptInService","StartService",{},e)},E.IPS_OptInService_StopService=function(e){E.Exec("IPS_OptInService","StopService",{},e)},E.IPS_OptInService_RequestStateChange=function(e,t,n){E.Exec("IPS_OptInService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.IPS_ProvisioningRecordLog_RequestStateChange=function(e,t,n){E.Exec("IPS_ProvisioningRecordLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.IPS_ProvisioningRecordLog_ClearLog=function(e,t){E.Exec("IPS_ProvisioningRecordLog","ClearLog",{_method_dummy:e},t)},E.IPS_SecIOService_RequestStateChange=function(e,t,n){E.Exec("IPS_SecIOService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.AmtStatusToStr=function(e){return E.AmtStatusCodes[e]||"UNKNOWN_ERROR"},E.AmtStatusCodes={0:"SUCCESS",1:"INTERNAL_ERROR",2:"NOT_READY",3:"INVALID_PT_MODE",4:"INVALID_MESSAGE_LENGTH",5:"TABLE_FINGERPRINT_NOT_AVAILABLE",6:"INTEGRITY_CHECK_FAILED",7:"UNSUPPORTED_ISVS_VERSION",8:"APPLICATION_NOT_REGISTERED",9:"INVALID_REGISTRATION_DATA",10:"APPLICATION_DOES_NOT_EXIST",11:"NOT_ENOUGH_STORAGE",12:"INVALID_NAME",13:"BLOCK_DOES_NOT_EXIST",14:"INVALID_BYTE_OFFSET",15:"INVALID_BYTE_COUNT",16:"NOT_PERMITTED",17:"NOT_OWNER",18:"BLOCK_LOCKED_BY_OTHER",19:"BLOCK_NOT_LOCKED",20:"INVALID_GROUP_PERMISSIONS",21:"GROUP_DOES_NOT_EXIST",22:"INVALID_MEMBER_COUNT",23:"MAX_LIMIT_REACHED",24:"INVALID_AUTH_TYPE",25:"AUTHENTICATION_FAILED",26:"INVALID_DHCP_MODE",27:"INVALID_IP_ADDRESS",28:"INVALID_DOMAIN_NAME",29:"UNSUPPORTED_VERSION",30:"REQUEST_UNEXPECTED",31:"INVALID_TABLE_TYPE",32:"INVALID_PROVISIONING_STATE",33:"UNSUPPORTED_OBJECT",34:"INVALID_TIME",35:"INVALID_INDEX",36:"INVALID_PARAMETER",37:"INVALID_NETMASK",38:"FLASH_WRITE_LIMIT_EXCEEDED",39:"INVALID_IMAGE_LENGTH",40:"INVALID_IMAGE_SIGNATURE",41:"PROPOSE_ANOTHER_VERSION",42:"INVALID_PID_FORMAT",43:"INVALID_PPS_FORMAT",44:"BIST_COMMAND_BLOCKED",45:"CONNECTION_FAILED",46:"CONNECTION_TOO_MANY",47:"RNG_GENERATION_IN_PROGRESS",48:"RNG_NOT_READY",49:"CERTIFICATE_NOT_READY",1024:"DISABLED_BY_POLICY",2048:"NETWORK_IF_ERROR_BASE",2049:"UNSUPPORTED_OEM_NUMBER",2050:"UNSUPPORTED_BOOT_OPTION",2051:"INVALID_COMMAND",2052:"INVALID_SPECIAL_COMMAND",2053:"INVALID_HANDLE",2054:"INVALID_PASSWORD",2055:"INVALID_REALM",2056:"STORAGE_ACL_ENTRY_IN_USE",2057:"DATA_MISSING",2058:"DUPLICATE",2059:"EVENTLOG_FROZEN",2060:"PKI_MISSING_KEYS",2061:"PKI_GENERATING_KEYS",2062:"INVALID_KEY",2063:"INVALID_CERT",2064:"CERT_KEY_NOT_MATCH",2065:"MAX_KERB_DOMAIN_REACHED",2066:"UNSUPPORTED",2067:"INVALID_PRIORITY",2068:"NOT_FOUND",2069:"INVALID_CREDENTIALS",2070:"INVALID_PASSPHRASE",2072:"NO_ASSOCIATION",2075:"AUDIT_FAIL",2076:"BLOCKING_COMPONENT",2081:"USER_CONSENT_REQUIRED",4096:"APP_INTERNAL_ERROR",4097:"NOT_INITIALIZED",4098:"LIB_VERSION_UNSUPPORTED",4099:"INVALID_PARAM",4100:"RESOURCES",4101:"HARDWARE_ACCESS_ERROR",4102:"REQUESTOR_NOT_REGISTERED",4103:"NETWORK_ERROR",4104:"PARAM_BUFFER_TOO_SHORT",4105:"COM_NOT_INITIALIZED_IN_THREAD",4106:"URL_REQUIRED"},E.GetMessageLog=function(e,t){E.AMT_MessageLog_PositionToFirstRecord(i,[e,t,[]])};"Platform firmware (e.g. BIOS)|SMI handler|ISV system management software|Alert ASIC|IPMI|BIOS vendor|System board set vendor|System integrator|Third party add-in|OSV|NIC|System management card".split("|");var m="Unspecified.|No system memory is physically installed in the system.|No usable system memory, all installed memory has experienced an unrecoverable failure.|Unrecoverable hard-disk/ATAPI/IDE device failure.|Unrecoverable system-board failure.|Unrecoverable diskette subsystem failure.|Unrecoverable hard-disk controller failure.|Unrecoverable PS/2 or USB keyboard failure.|Removable boot media not found.|Unrecoverable video controller failure.|No video device detected.|Firmware (BIOS) ROM corruption detected.|CPU voltage mismatch (processors that share same supply have mismatched voltage requirements)|CPU speed matching failure".split("|"),g="Unspecified.|Memory initialization.|Starting hard-disk initialization and test|Secondary processor(s) initialization|User authentication|User-initiated system setup|USB resource configuration|PCI resource configuration|Option ROM initialization|Video initialization|Cache initialization|SM Bus initialization|Keyboard controller initialization|Embedded controller/management controller initialization|Docking station attachment|Enabling docking station|Docking station ejection|Disabling docking station|Calling operating system wake-up vector|Starting operating system boot process|Baseboard or motherboard initialization|reserved|Floppy initialization|Keyboard test|Pointing device test|Primary processor initialization".split("|"),M="Unspecified|Other|Unknown|Processor|Disk|Peripheral|System management module|System board|Memory module|Processor module|Power supply|Add in card|Front panel board|Back panel board|Power system board|Drive backplane|System internal expansion board|Other system board|Processor board|Power unit|Power module|Power management board|Chassis back panel board|System chassis|Sub chassis|Other chassis board|Disk drive bay|Peripheral bay|Device bay|Fan cooling|Cooling unit|Cable interconnect|Memory device|System management software|BIOS|Intel(r) ME|System bus|Group|Intel(r) ME|External environment|Battery|Processing blade|Connectivity switch|Processor/memory module|I/O module|Processor I/O module|Management controller firmware|IPMI channel|PCI bus|PCI express bus|SCSI bus|SATA/SAS bus|Processor front side bus".split("|");E.RealmNames="||Redirection|PT Administration|Hardware Asset|Remote Control|Storage|Event Manager|Storage Admin|Agent Presence Local|Agent Presence Remote|Circuit Breaker|Network Time|General Information|Firmware Update|EIT|LocalUN|Endpoint Access Control|Endpoint Access Control Admin|Event Log Reader|Audit Log|ACL Realm|||Local System".split("|"),E.WatchdogCurrentStates={1:"Not Started",2:"Stopped",4:"Running",8:"Expired",16:"Suspended"};var l={16:"Security Admin",17:"RCO",18:"Redirection Manager",19:"Firmware Update Manager",20:"Security Audit Log",21:"Network Time",22:"Network Administration",23:"Storage Administration",24:"Event Manager",25:"Circuit Breaker Manager",26:"Agent Presence Manager",27:"Wireless Configuration",28:"EAC",29:"KVM",30:"User Opt-In Events",32:"Screen Blanking",33:"Watchdog Events",1600:"Provisioning Started",1601:"Provisioning Completed",1602:"ACL Entry Added",1603:"ACL Entry Modified",1604:"ACL Entry Removed",1605:"ACL Access with Invalid Credentials",1606:"ACL Entry State",1607:"TLS State Changed",1608:"TLS Server Certificate Set",1609:"TLS Server Certificate Remove",1610:"TLS Trusted Root Certificate Added",1611:"TLS Trusted Root Certificate Removed",1612:"TLS Preshared Key Set",1613:"Kerberos Settings Modified",1614:"Kerberos Main Key Modified",1615:"Flash Wear out Counters Reset",1616:"Power Package Modified",1617:"Set Realm Authentication Mode",1618:"Upgrade Client to Admin Control Mode",1619:"Unprovisioning Started",1700:"Performed Power Up",1701:"Performed Power Down",1702:"Performed Power Cycle",1703:"Performed Reset",1704:"Set Boot Options",1800:"IDER Session Opened",1801:"IDER Session Closed",1802:"IDER Enabled",1803:"IDER Disabled",1804:"SoL Session Opened",1805:"SoL Session Closed",1806:"SoL Enabled",1807:"SoL Disabled",1808:"KVM Session Started",1809:"KVM Session Ended",1810:"KVM Enabled",1811:"KVM Disabled",1812:"VNC Password Failed 3 Times",1900:"Firmware Updated",1901:"Firmware Update Failed",2e3:"Security Audit Log Cleared",2001:"Security Audit Policy Modified",2002:"Security Audit Log Disabled",2003:"Security Audit Log Enabled",2004:"Security Audit Log Exported",2005:"Security Audit Log Recovered",2100:"Intel® ME Time Set",2200:"TCPIP Parameters Set",2201:"Host Name Set",2202:"Domain Name Set",2203:"VLAN Parameters Set",2204:"Link Policy Set",2205:"IPv6 Parameters Set",2300:"Global Storage Attributes Set",2301:"Storage EACL Modified",2302:"Storage FPACL Modified",2303:"Storage Write Operation",2400:"Alert Subscribed",2401:"Alert Unsubscribed",2402:"Event Log Cleared",2403:"Event Log Frozen",2500:"CB Filter Added",2501:"CB Filter Removed",2502:"CB Policy Added",2503:"CB Policy Removed",2504:"CB Default Policy Set",2505:"CB Heuristics Option Set",2506:"CB Heuristics State Cleared",2600:"Agent Watchdog Added",2601:"Agent Watchdog Removed",2602:"Agent Watchdog Action Set",2700:"Wireless Profile Added",2701:"Wireless Profile Removed",2702:"Wireless Profile Updated",2800:"EAC Posture Signer SET",2801:"EAC Enabled",2802:"EAC Disabled",2803:"EAC Posture State",2804:"EAC Set Options",2900:"KVM Opt-in Enabled",2901:"KVM Opt-in Disabled",2902:"KVM Password Changed",2903:"KVM Consent Succeeded",2904:"KVM Consent Failed",3e3:"Opt-In Policy Change",3001:"Send Consent Code Event",3002:"Start Opt-In Blocked Event"};function I(e,t,n,i,o){if(200!=i)o[0](E,[],i);else{var r,c,a,s=o[1],u=new Date;if(0<n.Body.RecordsReturned)for(c in n.Body.EventRecords=MakeToArray(n.Body.EventRecords),n.Body.EventRecords){a=null;try{a=window.atob(n.Body.EventRecords[c])}catch(a){console.log(a+" "+n.Body.EventRecords[c])}(S={AuditAppID:ReadShort(a,0),EventID:ReadShort(a,2),InitiatorType:a.charCodeAt(4)}).AuditApp=l[S.AuditAppID],S.Event=l[100*S.AuditAppID+S.EventID],S.Event||(S.Event="#"+S.EventID),0==S.InitiatorType&&(d=a.charCodeAt(5),S.Initiator=a.substring(6,6+d),r=6+d),1==S.InitiatorType&&(S.KerberosUserInDomain=ReadInt(a,5),d=a.charCodeAt(9),S.Initiator=GetSidString(a.substring(10,10+d)),r=10+d),2==S.InitiatorType&&(S.Initiator="<i>Local</i>",r=5),3==S.InitiatorType&&(S.Initiator="<i>KVM Default Port</i>",r=5),A=ReadInt(a,r),S.Time=new Date(1e3*(A+60*u.getTimezoneOffset())),r+=4,S.MCLocationType=a.charCodeAt(r++);var d,S,A=a.charCodeAt(r++),A=(S.NetAddress=a.substring(r,r+A),r+=A,a.charCodeAt(r++));S.Ex=a.substring(r,r+A),S.ExStr=E.GetAuditLogExtendedDataStr(100*S.AuditAppID+S.EventID,S.Ex),s.push(S)}n.Body.TotalRecordCount>s.length?E.AMT_AuditLog_ReadRecords(s.length+1,I,[o[0],s]):o[0](E,s,i)}}return E.GetAuditLogExtendedDataStr=function(e,t){return 1602!=e&&1604!=e||0!=t.charCodeAt(0)?1603==e?0==t.charCodeAt(1)?t.substring(3):null:1605==e?["Invalid ME access","Invalid MEBx access"][t.charCodeAt(0)]:1606==e?(n=["Disabled","Enabled"][t.charCodeAt(0)],0==t.charCodeAt(1)&&(n+=", "+t.substring(3)),n):1607==e?"Remote "+["NoAuth","ServerAuth","MutualAuth"][t.charCodeAt(0)]+", Local "+["NoAuth","ServerAuth","MutualAuth"][t.charCodeAt(1)]:1617==e?E.RealmNames[ReadInt(t,0)]+", "+["NoAuth","Auth","Disabled"][t.charCodeAt(4)]:1619==e?["BIOS","MEBx","Local MEI","Local WSMAN","Remote WSAMN"][t.charCodeAt(0)]:1900==e?"From "+ReadShort(t,0)+"."+ReadShort(t,2)+"."+ReadShort(t,4)+"."+ReadShort(t,6)+" to "+ReadShort(t,8)+"."+ReadShort(t,10)+"."+ReadShort(t,12)+"."+ReadShort(t,14):2100==e?((n=new Date).setTime(1e3*ReadInt(t,0)+6e4*(new Date).getTimezoneOffset()),n.toLocaleString()):3e3==e?"From "+["None","KVM","All"][t.charCodeAt(0)]+" to "+["None","KVM","All"][t.charCodeAt(1)]:3001==e?["Success","Failed 3 times"][t.charCodeAt(0)]:null:t.substring(2,2+t.charCodeAt(1));var n},E.GetAuditLog=function(e){E.AMT_AuditLog_ReadRecords(1,I,[e,[]])},E}function hex_md5(e){return null==e&&(e=""),forge.md.md5.create().update(e).digest().toHex()}for(var md5_k=[],i=0;i<64;)md5_k[i]=0|4294967296*Math.abs(Math.sin(++i));function hex_md5(e){null==e&&(e="");for(var t,n,i,o,r=[],c=unescape(encodeURI(e)),a=c.length,s=[t=1732584193,n=-271733879,~t,~n],u=0;u<=a;)r[u>>2]|=(c.charCodeAt(u)||128)<<u++%4*8;for(r[e=16*(a+8>>6)+14]=8*a,u=0;u<e;u+=16){for(a=s,o=0;o<64;)a=[i=a[3],(t=0|a[1])+((i=a[0]+[t&(n=a[2])|~t&i,i&t|~i&n,t^n^i,n^(t|~i)][a=o>>4]+(md5_k[o]+(0|r[[o,5*o+1,3*o+5,7*o][a]%16+u])))<<(a=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*a+o++%4])|i>>>32-a),t,n];for(o=4;o;)s[--o]=s[o]+a[o]}for(e="";o<32;)e+=(s[o>>3]>>4*(1^7&o++)&15).toString(16);return e}function rstr_md5(e){return hex2rstr(hex_md5(e))}function execArgumentsToXml(e){if(null==e)return null;var t,n="";for(t in e){var i=e[t];i&&("reference"===i.__parameterType?n+=referenceToXml(t,i):n+=instanceToXml(t,i))}return n}function instanceToXml(e,t){if(null==t)return null;var n=!!t.__namespace,i=n?"<q:":"<",o=n?"</q:":"</",r="<r:"+e+(n?' xmlns:q="'+t.__namespace+'"':"")+">";if("string"==typeof t)r+=t;else for(var c in t)!t.hasOwnProperty(c)||0===c.indexOf("__")||"function"==typeof t[c]||Array.isArray(t[c])||("object"==typeof t[c]?console.error("only convert one level down..."):r+=i+c+">"+t[c].toString()+o+c+">");return r+="</r:"+e+">"}function referenceToXml(e,t){if(null==t)return null;var n,i="<r:"+e+"><a:Address>/wsman</a:Address><a:ReferenceParameters><w:ResourceURI>"+t.__resourceUri+"</w:ResourceURI><w:SelectorSet>";for(n in t)!t.hasOwnProperty(n)||0===n.indexOf("__")||"function"==typeof t[n]||"object"==typeof t[n]||Array.isArray(t[n])||(i+='<w:Selector Name="'+n+'">'+t[n].toString()+"</w:Selector>");return i+="</w:SelectorSet></a:ReferenceParameters></r:"+e+">"}function GetSidString(e){for(var t="S-"+e.charCodeAt(0)+"-"+e.charCodeAt(7),n=2;n<e.length/4;n++)t+="-"+ReadIntX(e,4*n);return t}function GetSidByteArray(e){if(!e||null==e)return null;var t=e.split("-");if(t.length<4||"s"!=t[0]&&"S"!=t[0])return null;for(var n=1;n<t.length;n++){var i=parseInt(t[n]);if(i!=t[n])return null;t[n]=i}for(var o=String.fromCharCode(t[1])+String.fromCharCode(t.length-3)+ShortToStr(Math.floor(t[2]/Math.pow(2,32)))+IntToStr(65535&t[2]),n=3;n<t.length;n++)o+=IntToStrX(t[n]);return o}
\ No newline at end of file
1
+function AmtStackCreateService(e){var E=new Object,t=(E.wsman=e,E.pfx=["http://intel.com/wbem/wscim/1/amt-schema/1/","http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/","http://intel.com/wbem/wscim/1/ips-schema/1/"],E.PendingEnums=[],E.PendingBatchOperations=0,E.ActiveEnumsCount=0,E.MaxActiveEnumsCount=1,E.onProcessChanged=null,0),n=0;function A(){var e=E.GetPendingActions();t<e&&(t=e),null!=E.onProcessChanged&&n!=e&&(n=e,E.onProcessChanged(e,t)),0==e&&(t=0)}function _(e){E.ActiveEnumsCount-=e,E.ActiveEnumsCount>=E.MaxActiveEnumsCount||0==E.PendingEnums.length||(e=E.PendingEnums.shift(),E.Enum(e[0],e[1],e[2]),_(0))}function c(r){r.names.length<=r.current?r.callback(E,r.name,r.responses,200,r.tag):(E.wsman.ExecGet(E.CompleteName(r.names[r.current]),function(e,t,n,i){var o;o=r,i=i,null==(n=n)||200!=i?o.callback(E,o.name,null,i,o.tag):(o.responses[n.Header.Method]=n,c(o))},r.pri),r.current++),A()}function i(e,t,n,i,o){200!=i||"0"!=n.Body.ReturnValue?o[0](E,null,o[2]):E.AMT_MessageLog_GetRecords(n.Body.IterationIdentifier,390,C,o)}function C(e,t,n,i,o){if(200!=i||"0"!=n.Body.ReturnValue)o[0](E,null,o[2]);else{var r,c,a,s,u,d,S,A=o[2],_=new Date,l=n.Body.RecordArray;for(r in"string"==typeof l&&(n.Body.RecordArray=[n.Body.RecordArray]),l){s=null;try{s=window.atob(l[r])}catch(e){}if(null!=s&&0<(d=ReadIntX(s,0))&&d<4294967295){for(a={DeviceAddress:s.charCodeAt(4),EventSensorType:s.charCodeAt(5),EventType:s.charCodeAt(6),EventOffset:s.charCodeAt(7),EventSourceType:s.charCodeAt(8),EventSeverity:s.charCodeAt(9),SensorNumber:s.charCodeAt(10),Entity:s.charCodeAt(11),EntityInstance:s.charCodeAt(12),EventData:[],Time:new Date(1e3*(d+60*_.getTimezoneOffset()))},c=13;c<21;c++)a.EventData.push(s.charCodeAt(c));a.EntityStr=M[a.Entity],a.Desc=(d=a.EventOffset,S=a.EventData,15!=(u=a.EventSensorType)?18!=u||170!=S[0]?6==u?"Authentication failed "+(S[1]+(S[2]<<8))+" times. The system may be under attack.":30==u?"No bootable media":32==u?"Operating system lockup or power interrupt":35!=u?37==u?"System firmware started (at least one CPU is properly executing).":"Unknown Sensor Type #"+u:64==S[0]?"BIOS POST (Power On Self-Test) Watchdog Timeout.":"System boot failure":"Agent watchdog "+char2hex(S[4])+char2hex(S[3])+char2hex(S[2])+char2hex(S[1])+"-"+char2hex(S[6])+char2hex(S[5])+"-... changed to "+E.WatchdogCurrentStates[S[7]]:235==S[0]?"Invalid Data":(0==d?m:g)[S[1]]),a.EntityStr||(a.EntityStr="Unknown"),A.push(a)}}1!=n.Body.NoMoreRecords?E.AMT_MessageLog_GetRecords(n.Body.IterationIdentifier,390,C,[o[0],A,o[2]]):o[0](E,A,o[2])}}E.GetPendingActions=function(){return 2*E.PendingEnums.length+E.ActiveEnumsCount+E.wsman.comm.PendingAjax.length+E.wsman.comm.ActiveAjaxCount+E.PendingBatchOperations},E.Subscribe=function(o,e,t,r,c,n,i,a,s,u){E.wsman.ExecSubscribe(E.CompleteName(o),e,t,function(e,t,n,i){A(),r(E,o,n,i,c)},0,n,i,a,s,u),A()},E.UnSubscribe=function(o,r,c,e,t){E.wsman.ExecUnSubscribe(E.CompleteName(o),function(e,t,n,i){A(),r(E,o,n,i,c)},0,e,t),A()},E.Get=function(o,r,c,e){E.wsman.ExecGet(E.CompleteName(o),function(e,t,n,i){A(),r(E,o,n,i,c)},0,e),A()},E.Put=function(o,e,r,c,t,n){E.wsman.ExecPut(E.CompleteName(o),e,function(e,t,n,i){A(),r(E,o,n,i,c)},0,t,n),A()},E.Create=function(o,e,r,c,t){E.wsman.ExecCreate(E.CompleteName(o),e,function(e,t,n,i){A(),r(E,o,n,i,c)},0,t),A()},E.Delete=function(o,e,r,c,t){E.wsman.ExecDelete(E.CompleteName(o),e,function(e,t,n,i){A(),r(E,o,n,i,c)},0,t),A()},E.Exec=function(o,e,t,r,c,n,i){E.wsman.ExecMethod(E.CompleteName(o),e,t,function(e,t,n,i){A(),r(E,o,E.CompleteExecResponse(n),i,c)},0,n,i),A()},E.ExecWithXml=function(o,e,t,r,c,n,i){E.wsman.ExecMethodXml(E.CompleteName(o),e,execArgumentsToXml(t),function(e,t,n,i){A(),r(E,o,E.CompleteExecResponse(n),i,c)},0,n,i),A()},E.Enum=function(s,u,e,t){E.ActiveEnumsCount<E.MaxActiveEnumsCount?(E.ActiveEnumsCount++,E.wsman.ExecEnum(E.CompleteName(s),function(e,t,n,i,o){var r,c,a;A(),r=s,n=n,c=u,t=t,a=o,200!=(o=i)?(c(E,r,null,o,a),_(1)):null!=n&&"EnumerateResponse"==n.Header.Method&&n.Body.EnumerationContext?(o=n.Body.EnumerationContext,E.wsman.ExecPull(t,o,function(e,t,n,i){!function o(r,e,c,t,a,n,s,i){if(200!=n)return c(E,r,null,n,s),void _(1);if(null==e||"PullResponse"!=e.Header.Method)return c(E,r,null,604,s),void _(1);for(var u in e.Body.Items)if(e.Body.Items[u]instanceof Array)for(var d in e.Body.Items[u])a.push(e.Body.Items[u][d]);else a.push(e.Body.Items[u]);{var S;e.Body.EnumerationContext?(S=e.Body.EnumerationContext,E.wsman.ExecPull(t,S,function(e,t,n,i){o(r,n,c,t,a,i,s,1)})):(_(1),c(E,r,a,n,s),A())}}(r,n,c,t,[],i,a)})):(c(E,r,null,603,a),_(1))},e,t)):E.PendingEnums.push([s,u,e,t]),A()},E.BatchEnum=function(e,t,n,i,o,r){E.PendingBatchOperations+=2*t.length,function r(c,a,s,u,e,d,S){E.PendingBatchOperations-=2;var t=a.shift(),n=E.Enum;"*"==t[0]&&(n=E.Get,t=t.substring(1));n(t,function(e,t,n,i,o){o[2][t]={response:null==n?null:n.Body,responses:n,status:i},0==o[1].length||401==i||1!=d&&200!=i&&400!=i?(E.PendingBatchOperations-=2*a.length,A(),s(E,c,o[2],i,u)):(A(),r(c,a,s,u,o[2],S))},[c,a,e],S);A()}(e,Clone(t),n,i,{},o,r),A()},E.BatchGet=function(e,t,n,i,o){c({name:e,names:t,callback:n,current:0,responses:{},tag:i,pri:o}),A()},E.CompleteName=function(e){return 0==e.indexOf("AMT_")?E.pfx[0]+e:0==e.indexOf("CIM_")?E.pfx[1]+e:0==e.indexOf("IPS_")?E.pfx[2]+e:void 0},E.CompleteExecResponse=function(e){return e&&null!=e&&e.Body&&e.Body.ReturnValue&&(e.Body.ReturnValueStr=E.AmtStatusToStr(e.Body.ReturnValue)),e},E.RequestPowerStateChange=function(e,t){E.CIM_PowerManagementService_RequestPowerStateChange(e,'<Address xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2004/08/addressing</Address><ReferenceParameters xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"><ResourceURI xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem</ResourceURI><SelectorSet xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"><Selector Name="CreationClassName">CIM_ComputerSystem</Selector><Selector Name="Name">ManagedSystem</Selector></SelectorSet></ReferenceParameters>',null,null,t)},E.SetBootConfigRole=function(e,t){E.CIM_BootService_SetBootConfigRole('<Address xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2004/08/addressing</Address><ReferenceParameters xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"><ResourceURI xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootConfigSetting</ResourceURI><SelectorSet xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"><Selector Name="InstanceID">Intel(r) AMT: Boot Configuration 0</Selector></SelectorSet></ReferenceParameters>',e,t)},E.CancelAllQueries=function(e){E.wsman.CancelAllQueries(e)},E.AMT_AgentPresenceWatchdog_RegisterAgent=function(e){E.Exec("AMT_AgentPresenceWatchdog","RegisterAgent",{},e)},E.AMT_AgentPresenceWatchdog_AssertPresence=function(e,t){E.Exec("AMT_AgentPresenceWatchdog","AssertPresence",{SequenceNumber:e},t)},E.AMT_AgentPresenceWatchdog_AssertShutdown=function(e,t){E.Exec("AMT_AgentPresenceWatchdog","AssertShutdown",{SequenceNumber:e},t)},E.AMT_AgentPresenceWatchdog_AddAction=function(e,t,n,i,o,r,c,a,s){E.Exec("AMT_AgentPresenceWatchdog","AddAction",{OldState:e,NewState:t,EventOnTransition:n,ActionSd:i,ActionEac:o},r,c,a,s)},E.AMT_AgentPresenceWatchdog_DeleteAllActions=function(e,t,n,i){E.Exec("AMT_AgentPresenceWatchdog","DeleteAllActions",{},e,t,n,i)},E.AMT_AgentPresenceWatchdogAction_GetActionEac=function(e){E.Exec("AMT_AgentPresenceWatchdogAction","GetActionEac",{},e)},E.AMT_AgentPresenceWatchdogVA_RegisterAgent=function(e){E.Exec("AMT_AgentPresenceWatchdogVA","RegisterAgent",{},e)},E.AMT_AgentPresenceWatchdogVA_AssertPresence=function(e,t){E.Exec("AMT_AgentPresenceWatchdogVA","AssertPresence",{SequenceNumber:e},t)},E.AMT_AgentPresenceWatchdogVA_AssertShutdown=function(e,t){E.Exec("AMT_AgentPresenceWatchdogVA","AssertShutdown",{SequenceNumber:e},t)},E.AMT_AgentPresenceWatchdogVA_AddAction=function(e,t,n,i,o,r){E.Exec("AMT_AgentPresenceWatchdogVA","AddAction",{OldState:e,NewState:t,EventOnTransition:n,ActionSd:i,ActionEac:o},r)},E.AMT_AgentPresenceWatchdogVA_DeleteAllActions=function(e,t){E.Exec("AMT_AgentPresenceWatchdogVA","DeleteAllActions",{_method_dummy:e},t)},E.AMT_AuditLog_ClearLog=function(e){E.Exec("AMT_AuditLog","ClearLog",{},e)},E.AMT_AuditLog_RequestStateChange=function(e,t,n){E.Exec("AMT_AuditLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.AMT_AuditLog_ReadRecords=function(e,t,n){E.Exec("AMT_AuditLog","ReadRecords",{StartIndex:e},t,n)},E.AMT_AuditLog_SetAuditLock=function(e,t,n,i){E.Exec("AMT_AuditLog","SetAuditLock",{LockTimeoutInSeconds:e,Flag:t,Handle:n},i)},E.AMT_AuditLog_ExportAuditLogSignature=function(e,t){E.Exec("AMT_AuditLog","ExportAuditLogSignature",{SigningMechanism:e},t)},E.AMT_AuditLog_SetSigningKeyMaterial=function(e,t,n,i,o){E.Exec("AMT_AuditLog","SetSigningKeyMaterial",{SigningMechanismType:e,SigningKey:t,LengthOfCertificates:n,Certificates:i},o)},E.AMT_AuditPolicyRule_SetAuditPolicy=function(e,t,n,i,o){E.Exec("AMT_AuditPolicyRule","SetAuditPolicy",{Enable:e,AuditedAppID:t,EventID:n,PolicyType:i},o)},E.AMT_AuditPolicyRule_SetAuditPolicyBulk=function(e,t,n,i,o){E.Exec("AMT_AuditPolicyRule","SetAuditPolicyBulk",{Enable:e,AuditedAppID:t,EventID:n,PolicyType:i},o)},E.AMT_AuthorizationService_AddUserAclEntryEx=function(e,t,n,i,o,r){E.Exec("AMT_AuthorizationService","AddUserAclEntryEx",{DigestUsername:e,DigestPassword:t,KerberosUserSid:n,AccessPermission:i,Realms:o},r)},E.AMT_AuthorizationService_EnumerateUserAclEntries=function(e,t){E.Exec("AMT_AuthorizationService","EnumerateUserAclEntries",{StartIndex:e},t)},E.AMT_AuthorizationService_GetUserAclEntryEx=function(e,t,n){E.Exec("AMT_AuthorizationService","GetUserAclEntryEx",{Handle:e},t,n)},E.AMT_AuthorizationService_UpdateUserAclEntryEx=function(e,t,n,i,o,r,c){E.Exec("AMT_AuthorizationService","UpdateUserAclEntryEx",{Handle:e,DigestUsername:t,DigestPassword:n,KerberosUserSid:i,AccessPermission:o,Realms:r},c)},E.AMT_AuthorizationService_RemoveUserAclEntry=function(e,t){E.Exec("AMT_AuthorizationService","RemoveUserAclEntry",{Handle:e},t)},E.AMT_AuthorizationService_SetAdminAclEntryEx=function(e,t,n){E.Exec("AMT_AuthorizationService","SetAdminAclEntryEx",{Username:e,DigestPassword:t},n)},E.AMT_AuthorizationService_GetAdminAclEntry=function(e){E.Exec("AMT_AuthorizationService","GetAdminAclEntry",{},e)},E.AMT_AuthorizationService_GetAdminAclEntryStatus=function(e){E.Exec("AMT_AuthorizationService","GetAdminAclEntryStatus",{},e)},E.AMT_AuthorizationService_GetAdminNetAclEntryStatus=function(e){E.Exec("AMT_AuthorizationService","GetAdminNetAclEntryStatus",{},e)},E.AMT_AuthorizationService_SetAclEnabledState=function(e,t,n,i){E.Exec("AMT_AuthorizationService","SetAclEnabledState",{Handle:e,Enabled:t},n,i)},E.AMT_AuthorizationService_GetAclEnabledState=function(e,t,n){E.Exec("AMT_AuthorizationService","GetAclEnabledState",{Handle:e},t,n)},E.AMT_EndpointAccessControlService_RequestStateChange=function(e,t,n){E.Exec("AMT_EndpointAccessControlService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.AMT_EndpointAccessControlService_GetPosture=function(e,t){E.Exec("AMT_EndpointAccessControlService","GetPosture",{PostureType:e},t)},E.AMT_EndpointAccessControlService_GetPostureHash=function(e,t){E.Exec("AMT_EndpointAccessControlService","GetPostureHash",{PostureType:e},t)},E.AMT_EndpointAccessControlService_UpdatePostureState=function(e,t){E.Exec("AMT_EndpointAccessControlService","UpdatePostureState",{UpdateType:e},t)},E.AMT_EndpointAccessControlService_GetEacOptions=function(e){E.Exec("AMT_EndpointAccessControlService","GetEacOptions",{},e)},E.AMT_EndpointAccessControlService_SetEacOptions=function(e,t,n){E.Exec("AMT_EndpointAccessControlService","SetEacOptions",{EacVendors:e,PostureHashAlgorithm:t},n)},E.AMT_EnvironmentDetectionSettingData_SetSystemDefensePolicy=function(e,t){E.Exec("AMT_EnvironmentDetectionSettingData","SetSystemDefensePolicy",{Policy:e},t)},E.AMT_EnvironmentDetectionSettingData_EnableVpnRouting=function(e,t){E.Exec("AMT_EnvironmentDetectionSettingData","EnableVpnRouting",{Enable:e},t)},E.AMT_EthernetPortSettings_SetLinkPreference=function(e,t,n){E.Exec("AMT_EthernetPortSettings","SetLinkPreference",{LinkPreference:e,Timeout:t},n)},E.AMT_HeuristicPacketFilterStatistics_ResetSelectedStats=function(e,t){E.Exec("AMT_HeuristicPacketFilterStatistics","ResetSelectedStats",{SelectedStatistics:e},t)},E.AMT_KerberosSettingData_GetCredentialCacheState=function(e){E.Exec("AMT_KerberosSettingData","GetCredentialCacheState",{},e)},E.AMT_KerberosSettingData_SetCredentialCacheState=function(e,t){E.Exec("AMT_KerberosSettingData","SetCredentialCacheState",{Enable:e},t)},E.AMT_MessageLog_CancelIteration=function(e,t){E.Exec("AMT_MessageLog","CancelIteration",{IterationIdentifier:e},t)},E.AMT_MessageLog_RequestStateChange=function(e,t,n){E.Exec("AMT_MessageLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.AMT_MessageLog_ClearLog=function(e){E.Exec("AMT_MessageLog","ClearLog",{},e)},E.AMT_MessageLog_GetRecords=function(e,t,n,i){E.Exec("AMT_MessageLog","GetRecords",{IterationIdentifier:e,MaxReadRecords:t},n,i)},E.AMT_MessageLog_GetRecord=function(e,t,n){E.Exec("AMT_MessageLog","GetRecord",{IterationIdentifier:e,PositionToNext:t},n)},E.AMT_MessageLog_PositionAtRecord=function(e,t,n,i){E.Exec("AMT_MessageLog","PositionAtRecord",{IterationIdentifier:e,MoveAbsolute:t,RecordNumber:n},i)},E.AMT_MessageLog_PositionToFirstRecord=function(e,t){E.Exec("AMT_MessageLog","PositionToFirstRecord",{},e,t)},E.AMT_MessageLog_FreezeLog=function(e,t){E.Exec("AMT_MessageLog","FreezeLog",{Freeze:e},t)},E.AMT_PublicKeyManagementService_AddCRL=function(e,t,n){E.Exec("AMT_PublicKeyManagementService","AddCRL",{Url:e,SerialNumbers:t},n)},E.AMT_PublicKeyManagementService_ResetCRLList=function(e,t){E.Exec("AMT_PublicKeyManagementService","ResetCRLList",{_method_dummy:e},t)},E.AMT_PublicKeyManagementService_AddCertificate=function(e,t){E.Exec("AMT_PublicKeyManagementService","AddCertificate",{CertificateBlob:e},t)},E.AMT_PublicKeyManagementService_AddTrustedRootCertificate=function(e,t){E.Exec("AMT_PublicKeyManagementService","AddTrustedRootCertificate",{CertificateBlob:e},t)},E.AMT_PublicKeyManagementService_AddKey=function(e,t){E.Exec("AMT_PublicKeyManagementService","AddKey",{KeyBlob:e},t)},E.AMT_PublicKeyManagementService_GeneratePKCS10Request=function(e,t,n,i){E.Exec("AMT_PublicKeyManagementService","GeneratePKCS10Request",{KeyPair:e,DNName:t,Usage:n},i)},E.AMT_PublicKeyManagementService_GeneratePKCS10RequestEx=function(e,t,n,i){E.Exec("AMT_PublicKeyManagementService","GeneratePKCS10RequestEx",{KeyPair:e,SigningAlgorithm:t,NullSignedCertificateRequest:n},i)},E.AMT_PublicKeyManagementService_GenerateKeyPair=function(e,t,n){E.Exec("AMT_PublicKeyManagementService","GenerateKeyPair",{KeyAlgorithm:e,KeyLength:t},n)},E.AMT_RedirectionService_RequestStateChange=function(e,t){E.Exec("AMT_RedirectionService","RequestStateChange",{RequestedState:e},t)},E.AMT_RedirectionService_TerminateSession=function(e,t){E.Exec("AMT_RedirectionService","TerminateSession",{SessionType:e},t)},E.AMT_RemoteAccessService_AddMpServer=function(e,t,n,i,o,r,c,a,s){E.Exec("AMT_RemoteAccessService","AddMpServer",{AccessInfo:e,InfoFormat:t,Port:n,AuthMethod:i,Certificate:o,Username:r,Password:c,CN:a},s)},E.AMT_RemoteAccessService_AddRemoteAccessPolicyRule=function(e,t,n,i,o){E.Exec("AMT_RemoteAccessService","AddRemoteAccessPolicyRule",{Trigger:e,TunnelLifeTime:t,ExtendedData:n,MpServer:i},o)},E.AMT_RemoteAccessService_CloseRemoteAccessConnection=function(e,t){E.Exec("AMT_RemoteAccessService","CloseRemoteAccessConnection",{_method_dummy:e},t)},E.AMT_SetupAndConfigurationService_CommitChanges=function(e,t){E.Exec("AMT_SetupAndConfigurationService","CommitChanges",{_method_dummy:e},t)},E.AMT_SetupAndConfigurationService_Unprovision=function(e,t){E.Exec("AMT_SetupAndConfigurationService","Unprovision",{ProvisioningMode:e},t)},E.AMT_SetupAndConfigurationService_PartialUnprovision=function(e,t){E.Exec("AMT_SetupAndConfigurationService","PartialUnprovision",{_method_dummy:e},t)},E.AMT_SetupAndConfigurationService_ResetFlashWearOutProtection=function(e,t){E.Exec("AMT_SetupAndConfigurationService","ResetFlashWearOutProtection",{_method_dummy:e},t)},E.AMT_SetupAndConfigurationService_ExtendProvisioningPeriod=function(e,t){E.Exec("AMT_SetupAndConfigurationService","ExtendProvisioningPeriod",{Duration:e},t)},E.AMT_SetupAndConfigurationService_SetMEBxPassword=function(e,t){E.Exec("AMT_SetupAndConfigurationService","SetMEBxPassword",{Password:e},t)},E.AMT_SetupAndConfigurationService_SetTLSPSK=function(e,t,n){E.Exec("AMT_SetupAndConfigurationService","SetTLSPSK",{PID:e,PPS:t},n)},E.AMT_SetupAndConfigurationService_GetProvisioningAuditRecord=function(e){E.Exec("AMT_SetupAndConfigurationService","GetProvisioningAuditRecord",{},e)},E.AMT_SetupAndConfigurationService_GetUuid=function(e){E.Exec("AMT_SetupAndConfigurationService","GetUuid",{},e)},E.AMT_SetupAndConfigurationService_GetUnprovisionBlockingComponents=function(e){E.Exec("AMT_SetupAndConfigurationService","GetUnprovisionBlockingComponents",{},e)},E.AMT_SetupAndConfigurationService_GetProvisioningAuditRecordV2=function(e){E.Exec("AMT_SetupAndConfigurationService","GetProvisioningAuditRecordV2",{},e)},E.AMT_SystemDefensePolicy_GetTimeout=function(e){E.Exec("AMT_SystemDefensePolicy","GetTimeout",{},e)},E.AMT_SystemDefensePolicy_SetTimeout=function(e,t){E.Exec("AMT_SystemDefensePolicy","SetTimeout",{Timeout:e},t)},E.AMT_SystemDefensePolicy_UpdateStatistics=function(e,t,n,i,o,r){E.Exec("AMT_SystemDefensePolicy","UpdateStatistics",{NetworkInterface:e,ResetOnRead:t},n,i,o,r)},E.AMT_SystemPowerScheme_SetPowerScheme=function(e,t,n){E.Exec("AMT_SystemPowerScheme","SetPowerScheme",{},e,n,0,{InstanceID:t})},E.AMT_TimeSynchronizationService_GetLowAccuracyTimeSynch=function(e,t){E.Exec("AMT_TimeSynchronizationService","GetLowAccuracyTimeSynch",{},e,t)},E.AMT_TimeSynchronizationService_SetHighAccuracyTimeSynch=function(e,t,n,i,o){E.Exec("AMT_TimeSynchronizationService","SetHighAccuracyTimeSynch",{Ta0:e,Tm1:t,Tm2:n},i,o)},E.AMT_UserInitiatedConnectionService_RequestStateChange=function(e,t,n){E.Exec("AMT_UserInitiatedConnectionService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.AMT_WebUIService_RequestStateChange=function(e,t,n){E.Exec("AMT_WebUIService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.AMT_WiFiPortConfigurationService_AddWiFiSettings=function(e,t,n,i,o,r){E.ExecWithXml("AMT_WiFiPortConfigurationService","AddWiFiSettings",{WiFiEndpoint:e,WiFiEndpointSettingsInput:t,IEEE8021xSettingsInput:n,ClientCredential:i,CACredential:o},r)},E.AMT_WiFiPortConfigurationService_UpdateWiFiSettings=function(e,t,n,i,o,r){E.ExecWithXml("AMT_WiFiPortConfigurationService","UpdateWiFiSettings",{WiFiEndpointSettings:e,WiFiEndpointSettingsInput:t,IEEE8021xSettingsInput:n,ClientCredential:i,CACredential:o},r)},E.AMT_WiFiPortConfigurationService_DeleteAllITProfiles=function(e,t){E.Exec("AMT_WiFiPortConfigurationService","DeleteAllITProfiles",{_method_dummy:e},t)},E.AMT_WiFiPortConfigurationService_DeleteAllUserProfiles=function(e,t){E.Exec("AMT_WiFiPortConfigurationService","DeleteAllUserProfiles",{_method_dummy:e},t)},E.CIM_Account_RequestStateChange=function(e,t,n){E.Exec("CIM_Account","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_AccountManagementService_CreateAccount=function(e,t,n){E.Exec("CIM_AccountManagementService","CreateAccount",{System:e,AccountTemplate:t},n)},E.CIM_BootConfigSetting_ChangeBootOrder=function(e,t){E.Exec("CIM_BootConfigSetting","ChangeBootOrder",{Source:e},t)},E.CIM_BootService_SetBootConfigRole=function(e,t,n){E.Exec("CIM_BootService","SetBootConfigRole",{BootConfigSetting:e,Role:t},n,0,1)},E.CIM_Card_ConnectorPower=function(e,t,n){E.Exec("CIM_Card","ConnectorPower",{Connector:e,PoweredOn:t},n)},E.CIM_Card_IsCompatible=function(e,t){E.Exec("CIM_Card","IsCompatible",{ElementToCheck:e},t)},E.CIM_Chassis_IsCompatible=function(e,t){E.Exec("CIM_Chassis","IsCompatible",{ElementToCheck:e},t)},E.CIM_Fan_SetSpeed=function(e,t){E.Exec("CIM_Fan","SetSpeed",{DesiredSpeed:e},t)},E.CIM_KVMRedirectionSAP_RequestStateChange=function(e,t,n){E.Exec("CIM_KVMRedirectionSAP","RequestStateChange",{RequestedState:e},n)},E.CIM_MediaAccessDevice_LockMedia=function(e,t){E.Exec("CIM_MediaAccessDevice","LockMedia",{Lock:e},t)},E.CIM_MediaAccessDevice_SetPowerState=function(e,t,n){E.Exec("CIM_MediaAccessDevice","SetPowerState",{PowerState:e,Time:t},n)},E.CIM_MediaAccessDevice_Reset=function(e){E.Exec("CIM_MediaAccessDevice","Reset",{},e)},E.CIM_MediaAccessDevice_EnableDevice=function(e,t){E.Exec("CIM_MediaAccessDevice","EnableDevice",{Enabled:e},t)},E.CIM_MediaAccessDevice_OnlineDevice=function(e,t){E.Exec("CIM_MediaAccessDevice","OnlineDevice",{Online:e},t)},E.CIM_MediaAccessDevice_QuiesceDevice=function(e,t){E.Exec("CIM_MediaAccessDevice","QuiesceDevice",{Quiesce:e},t)},E.CIM_MediaAccessDevice_SaveProperties=function(e){E.Exec("CIM_MediaAccessDevice","SaveProperties",{},e)},E.CIM_MediaAccessDevice_RestoreProperties=function(e){E.Exec("CIM_MediaAccessDevice","RestoreProperties",{},e)},E.CIM_MediaAccessDevice_RequestStateChange=function(e,t,n){E.Exec("CIM_MediaAccessDevice","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_PhysicalFrame_IsCompatible=function(e,t){E.Exec("CIM_PhysicalFrame","IsCompatible",{ElementToCheck:e},t)},E.CIM_PhysicalPackage_IsCompatible=function(e,t){E.Exec("CIM_PhysicalPackage","IsCompatible",{ElementToCheck:e},t)},E.CIM_PowerManagementService_RequestPowerStateChange=function(e,t,n,i,o){E.Exec("CIM_PowerManagementService","RequestPowerStateChange",{PowerState:e,ManagedElement:t,Time:n,TimeoutPeriod:i},o,0,1)},E.CIM_PowerSupply_SetPowerState=function(e,t,n){E.Exec("CIM_PowerSupply","SetPowerState",{PowerState:e,Time:t},n)},E.CIM_PowerSupply_Reset=function(e){E.Exec("CIM_PowerSupply","Reset",{},e)},E.CIM_PowerSupply_EnableDevice=function(e,t){E.Exec("CIM_PowerSupply","EnableDevice",{Enabled:e},t)},E.CIM_PowerSupply_OnlineDevice=function(e,t){E.Exec("CIM_PowerSupply","OnlineDevice",{Online:e},t)},E.CIM_PowerSupply_QuiesceDevice=function(e,t){E.Exec("CIM_PowerSupply","QuiesceDevice",{Quiesce:e},t)},E.CIM_PowerSupply_SaveProperties=function(e){E.Exec("CIM_PowerSupply","SaveProperties",{},e)},E.CIM_PowerSupply_RestoreProperties=function(e){E.Exec("CIM_PowerSupply","RestoreProperties",{},e)},E.CIM_PowerSupply_RequestStateChange=function(e,t,n){E.Exec("CIM_PowerSupply","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_Processor_SetPowerState=function(e,t,n){E.Exec("CIM_Processor","SetPowerState",{PowerState:e,Time:t},n)},E.CIM_Processor_Reset=function(e){E.Exec("CIM_Processor","Reset",{},e)},E.CIM_Processor_EnableDevice=function(e,t){E.Exec("CIM_Processor","EnableDevice",{Enabled:e},t)},E.CIM_Processor_OnlineDevice=function(e,t){E.Exec("CIM_Processor","OnlineDevice",{Online:e},t)},E.CIM_Processor_QuiesceDevice=function(e,t){E.Exec("CIM_Processor","QuiesceDevice",{Quiesce:e},t)},E.CIM_Processor_SaveProperties=function(e){E.Exec("CIM_Processor","SaveProperties",{},e)},E.CIM_Processor_RestoreProperties=function(e){E.Exec("CIM_Processor","RestoreProperties",{},e)},E.CIM_Processor_RequestStateChange=function(e,t,n){E.Exec("CIM_Processor","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_RecordLog_ClearLog=function(e){E.Exec("CIM_RecordLog","ClearLog",{},e)},E.CIM_RecordLog_RequestStateChange=function(e,t,n){E.Exec("CIM_RecordLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_RedirectionService_RequestStateChange=function(e,t,n){E.Exec("CIM_RedirectionService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_Sensor_SetPowerState=function(e,t,n){E.Exec("CIM_Sensor","SetPowerState",{PowerState:e,Time:t},n)},E.CIM_Sensor_Reset=function(e){E.Exec("CIM_Sensor","Reset",{},e)},E.CIM_Sensor_EnableDevice=function(e,t){E.Exec("CIM_Sensor","EnableDevice",{Enabled:e},t)},E.CIM_Sensor_OnlineDevice=function(e,t){E.Exec("CIM_Sensor","OnlineDevice",{Online:e},t)},E.CIM_Sensor_QuiesceDevice=function(e,t){E.Exec("CIM_Sensor","QuiesceDevice",{Quiesce:e},t)},E.CIM_Sensor_SaveProperties=function(e){E.Exec("CIM_Sensor","SaveProperties",{},e)},E.CIM_Sensor_RestoreProperties=function(e){E.Exec("CIM_Sensor","RestoreProperties",{},e)},E.CIM_Sensor_RequestStateChange=function(e,t,n){E.Exec("CIM_Sensor","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_StatisticalData_ResetSelectedStats=function(e,t){E.Exec("CIM_StatisticalData","ResetSelectedStats",{SelectedStatistics:e},t)},E.CIM_Watchdog_KeepAlive=function(e){E.Exec("CIM_Watchdog","KeepAlive",{},e)},E.CIM_Watchdog_SetPowerState=function(e,t,n){E.Exec("CIM_Watchdog","SetPowerState",{PowerState:e,Time:t},n)},E.CIM_Watchdog_Reset=function(e){E.Exec("CIM_Watchdog","Reset",{},e)},E.CIM_Watchdog_EnableDevice=function(e,t){E.Exec("CIM_Watchdog","EnableDevice",{Enabled:e},t)},E.CIM_Watchdog_OnlineDevice=function(e,t){E.Exec("CIM_Watchdog","OnlineDevice",{Online:e},t)},E.CIM_Watchdog_QuiesceDevice=function(e,t){E.Exec("CIM_Watchdog","QuiesceDevice",{Quiesce:e},t)},E.CIM_Watchdog_SaveProperties=function(e){E.Exec("CIM_Watchdog","SaveProperties",{},e)},E.CIM_Watchdog_RestoreProperties=function(e){E.Exec("CIM_Watchdog","RestoreProperties",{},e)},E.CIM_Watchdog_RequestStateChange=function(e,t,n){E.Exec("CIM_Watchdog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_WiFiPort_SetPowerState=function(e,t,n){E.Exec("CIM_WiFiPort","SetPowerState",{PowerState:e,Time:t},n)},E.CIM_WiFiPort_Reset=function(e){E.Exec("CIM_WiFiPort","Reset",{},e)},E.CIM_WiFiPort_EnableDevice=function(e,t){E.Exec("CIM_WiFiPort","EnableDevice",{Enabled:e},t)},E.CIM_WiFiPort_OnlineDevice=function(e,t){E.Exec("CIM_WiFiPort","OnlineDevice",{Online:e},t)},E.CIM_WiFiPort_QuiesceDevice=function(e,t){E.Exec("CIM_WiFiPort","QuiesceDevice",{Quiesce:e},t)},E.CIM_WiFiPort_SaveProperties=function(e){E.Exec("CIM_WiFiPort","SaveProperties",{},e)},E.CIM_WiFiPort_RestoreProperties=function(e){E.Exec("CIM_WiFiPort","RestoreProperties",{},e)},E.CIM_WiFiPort_RequestStateChange=function(e,t,n){E.Exec("CIM_WiFiPort","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.IPS_HostBasedSetupService_Setup=function(e,t,n,i,o,r,c){E.Exec("IPS_HostBasedSetupService","Setup",{NetAdminPassEncryptionType:e,NetworkAdminPassword:t,McNonce:n,Certificate:i,SigningAlgorithm:o,DigitalSignature:r},c)},E.IPS_HostBasedSetupService_AddNextCertInChain=function(e,t,n,i){E.Exec("IPS_HostBasedSetupService","AddNextCertInChain",{NextCertificate:e,IsLeafCertificate:t,IsRootCertificate:n},i)},E.IPS_HostBasedSetupService_AdminSetup=function(e,t,n,i,o,r){E.Exec("IPS_HostBasedSetupService","AdminSetup",{NetAdminPassEncryptionType:e,NetworkAdminPassword:t,McNonce:n,SigningAlgorithm:i,DigitalSignature:o},r)},E.IPS_HostBasedSetupService_UpgradeClientToAdmin=function(e,t,n,i){E.Exec("IPS_HostBasedSetupService","UpgradeClientToAdmin",{McNonce:e,SigningAlgorithm:t,DigitalSignature:n},i)},E.IPS_HostBasedSetupService_DisableClientControlMode=function(e,t){E.Exec("IPS_HostBasedSetupService","DisableClientControlMode",{_method_dummy:e},t)},E.IPS_KVMRedirectionSettingData_TerminateSession=function(e){E.Exec("IPS_KVMRedirectionSettingData","TerminateSession",{},e)},E.IPS_OptInService_StartOptIn=function(e){E.Exec("IPS_OptInService","StartOptIn",{},e)},E.IPS_OptInService_CancelOptIn=function(e){E.Exec("IPS_OptInService","CancelOptIn",{},e)},E.IPS_OptInService_SendOptInCode=function(e,t){E.Exec("IPS_OptInService","SendOptInCode",{OptInCode:e},t)},E.IPS_OptInService_StartService=function(e){E.Exec("IPS_OptInService","StartService",{},e)},E.IPS_OptInService_StopService=function(e){E.Exec("IPS_OptInService","StopService",{},e)},E.IPS_OptInService_RequestStateChange=function(e,t,n){E.Exec("IPS_OptInService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.IPS_ProvisioningRecordLog_RequestStateChange=function(e,t,n){E.Exec("IPS_ProvisioningRecordLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.IPS_ProvisioningRecordLog_ClearLog=function(e,t){E.Exec("IPS_ProvisioningRecordLog","ClearLog",{_method_dummy:e},t)},E.IPS_SecIOService_RequestStateChange=function(e,t,n){E.Exec("IPS_SecIOService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.AmtStatusToStr=function(e){return E.AmtStatusCodes[e]||"UNKNOWN_ERROR"},E.AmtStatusCodes={0:"SUCCESS",1:"INTERNAL_ERROR",2:"NOT_READY",3:"INVALID_PT_MODE",4:"INVALID_MESSAGE_LENGTH",5:"TABLE_FINGERPRINT_NOT_AVAILABLE",6:"INTEGRITY_CHECK_FAILED",7:"UNSUPPORTED_ISVS_VERSION",8:"APPLICATION_NOT_REGISTERED",9:"INVALID_REGISTRATION_DATA",10:"APPLICATION_DOES_NOT_EXIST",11:"NOT_ENOUGH_STORAGE",12:"INVALID_NAME",13:"BLOCK_DOES_NOT_EXIST",14:"INVALID_BYTE_OFFSET",15:"INVALID_BYTE_COUNT",16:"NOT_PERMITTED",17:"NOT_OWNER",18:"BLOCK_LOCKED_BY_OTHER",19:"BLOCK_NOT_LOCKED",20:"INVALID_GROUP_PERMISSIONS",21:"GROUP_DOES_NOT_EXIST",22:"INVALID_MEMBER_COUNT",23:"MAX_LIMIT_REACHED",24:"INVALID_AUTH_TYPE",25:"AUTHENTICATION_FAILED",26:"INVALID_DHCP_MODE",27:"INVALID_IP_ADDRESS",28:"INVALID_DOMAIN_NAME",29:"UNSUPPORTED_VERSION",30:"REQUEST_UNEXPECTED",31:"INVALID_TABLE_TYPE",32:"INVALID_PROVISIONING_STATE",33:"UNSUPPORTED_OBJECT",34:"INVALID_TIME",35:"INVALID_INDEX",36:"INVALID_PARAMETER",37:"INVALID_NETMASK",38:"FLASH_WRITE_LIMIT_EXCEEDED",39:"INVALID_IMAGE_LENGTH",40:"INVALID_IMAGE_SIGNATURE",41:"PROPOSE_ANOTHER_VERSION",42:"INVALID_PID_FORMAT",43:"INVALID_PPS_FORMAT",44:"BIST_COMMAND_BLOCKED",45:"CONNECTION_FAILED",46:"CONNECTION_TOO_MANY",47:"RNG_GENERATION_IN_PROGRESS",48:"RNG_NOT_READY",49:"CERTIFICATE_NOT_READY",1024:"DISABLED_BY_POLICY",2048:"NETWORK_IF_ERROR_BASE",2049:"UNSUPPORTED_OEM_NUMBER",2050:"UNSUPPORTED_BOOT_OPTION",2051:"INVALID_COMMAND",2052:"INVALID_SPECIAL_COMMAND",2053:"INVALID_HANDLE",2054:"INVALID_PASSWORD",2055:"INVALID_REALM",2056:"STORAGE_ACL_ENTRY_IN_USE",2057:"DATA_MISSING",2058:"DUPLICATE",2059:"EVENTLOG_FROZEN",2060:"PKI_MISSING_KEYS",2061:"PKI_GENERATING_KEYS",2062:"INVALID_KEY",2063:"INVALID_CERT",2064:"CERT_KEY_NOT_MATCH",2065:"MAX_KERB_DOMAIN_REACHED",2066:"UNSUPPORTED",2067:"INVALID_PRIORITY",2068:"NOT_FOUND",2069:"INVALID_CREDENTIALS",2070:"INVALID_PASSPHRASE",2072:"NO_ASSOCIATION",2075:"AUDIT_FAIL",2076:"BLOCKING_COMPONENT",2081:"USER_CONSENT_REQUIRED",4096:"APP_INTERNAL_ERROR",4097:"NOT_INITIALIZED",4098:"LIB_VERSION_UNSUPPORTED",4099:"INVALID_PARAM",4100:"RESOURCES",4101:"HARDWARE_ACCESS_ERROR",4102:"REQUESTOR_NOT_REGISTERED",4103:"NETWORK_ERROR",4104:"PARAM_BUFFER_TOO_SHORT",4105:"COM_NOT_INITIALIZED_IN_THREAD",4106:"URL_REQUIRED"},E.GetMessageLog=function(e,t){E.AMT_MessageLog_PositionToFirstRecord(i,[e,t,[]])};"Platform firmware (e.g. BIOS)|SMI handler|ISV system management software|Alert ASIC|IPMI|BIOS vendor|System board set vendor|System integrator|Third party add-in|OSV|NIC|System management card".split("|");var m="Unspecified.|No system memory is physically installed in the system.|No usable system memory, all installed memory has experienced an unrecoverable failure.|Unrecoverable hard-disk/ATAPI/IDE device failure.|Unrecoverable system-board failure.|Unrecoverable diskette subsystem failure.|Unrecoverable hard-disk controller failure.|Unrecoverable PS/2 or USB keyboard failure.|Removable boot media not found.|Unrecoverable video controller failure.|No video device detected.|Firmware (BIOS) ROM corruption detected.|CPU voltage mismatch (processors that share same supply have mismatched voltage requirements)|CPU speed matching failure".split("|"),g="Unspecified.|Memory initialization.|Starting hard-disk initialization and test|Secondary processor(s) initialization|User authentication|User-initiated system setup|USB resource configuration|PCI resource configuration|Option ROM initialization|Video initialization|Cache initialization|SM Bus initialization|Keyboard controller initialization|Embedded controller/management controller initialization|Docking station attachment|Enabling docking station|Docking station ejection|Disabling docking station|Calling operating system wake-up vector|Starting operating system boot process|Baseboard or motherboard initialization|reserved|Floppy initialization|Keyboard test|Pointing device test|Primary processor initialization".split("|"),M="Unspecified|Other|Unknown|Processor|Disk|Peripheral|System management module|System board|Memory module|Processor module|Power supply|Add in card|Front panel board|Back panel board|Power system board|Drive backplane|System internal expansion board|Other system board|Processor board|Power unit|Power module|Power management board|Chassis back panel board|System chassis|Sub chassis|Other chassis board|Disk drive bay|Peripheral bay|Device bay|Fan cooling|Cooling unit|Cable interconnect|Memory device|System management software|BIOS|Intel(r) ME|System bus|Group|Intel(r) ME|External environment|Battery|Processing blade|Connectivity switch|Processor/memory module|I/O module|Processor I/O module|Management controller firmware|IPMI channel|PCI bus|PCI express bus|SCSI bus|SATA/SAS bus|Processor front side bus".split("|");E.RealmNames="||Redirection|PT Administration|Hardware Asset|Remote Control|Storage|Event Manager|Storage Admin|Agent Presence Local|Agent Presence Remote|Circuit Breaker|Network Time|General Information|Firmware Update|EIT|LocalUN|Endpoint Access Control|Endpoint Access Control Admin|Event Log Reader|Audit Log|ACL Realm|||Local System".split("|"),E.WatchdogCurrentStates={1:"Not Started",2:"Stopped",4:"Running",8:"Expired",16:"Suspended"};var l={16:"Security Admin",17:"RCO",18:"Redirection Manager",19:"Firmware Update Manager",20:"Security Audit Log",21:"Network Time",22:"Network Administration",23:"Storage Administration",24:"Event Manager",25:"Circuit Breaker Manager",26:"Agent Presence Manager",27:"Wireless Configuration",28:"EAC",29:"KVM",30:"User Opt-In Events",32:"Screen Blanking",33:"Watchdog Events",1600:"Provisioning Started",1601:"Provisioning Completed",1602:"ACL Entry Added",1603:"ACL Entry Modified",1604:"ACL Entry Removed",1605:"ACL Access with Invalid Credentials",1606:"ACL Entry State",1607:"TLS State Changed",1608:"TLS Server Certificate Set",1609:"TLS Server Certificate Remove",1610:"TLS Trusted Root Certificate Added",1611:"TLS Trusted Root Certificate Removed",1612:"TLS Preshared Key Set",1613:"Kerberos Settings Modified",1614:"Kerberos Main Key Modified",1615:"Flash Wear out Counters Reset",1616:"Power Package Modified",1617:"Set Realm Authentication Mode",1618:"Upgrade Client to Admin Control Mode",1619:"Unprovisioning Started",1700:"Performed Power Up",1701:"Performed Power Down",1702:"Performed Power Cycle",1703:"Performed Reset",1704:"Set Boot Options",1800:"IDER Session Opened",1801:"IDER Session Closed",1802:"IDER Enabled",1803:"IDER Disabled",1804:"SoL Session Opened",1805:"SoL Session Closed",1806:"SoL Enabled",1807:"SoL Disabled",1808:"KVM Session Started",1809:"KVM Session Ended",1810:"KVM Enabled",1811:"KVM Disabled",1812:"VNC Password Failed 3 Times",1900:"Firmware Updated",1901:"Firmware Update Failed",2e3:"Security Audit Log Cleared",2001:"Security Audit Policy Modified",2002:"Security Audit Log Disabled",2003:"Security Audit Log Enabled",2004:"Security Audit Log Exported",2005:"Security Audit Log Recovered",2100:"Intel® ME Time Set",2200:"TCPIP Parameters Set",2201:"Host Name Set",2202:"Domain Name Set",2203:"VLAN Parameters Set",2204:"Link Policy Set",2205:"IPv6 Parameters Set",2300:"Global Storage Attributes Set",2301:"Storage EACL Modified",2302:"Storage FPACL Modified",2303:"Storage Write Operation",2400:"Alert Subscribed",2401:"Alert Unsubscribed",2402:"Event Log Cleared",2403:"Event Log Frozen",2500:"CB Filter Added",2501:"CB Filter Removed",2502:"CB Policy Added",2503:"CB Policy Removed",2504:"CB Default Policy Set",2505:"CB Heuristics Option Set",2506:"CB Heuristics State Cleared",2600:"Agent Watchdog Added",2601:"Agent Watchdog Removed",2602:"Agent Watchdog Action Set",2700:"Wireless Profile Added",2701:"Wireless Profile Removed",2702:"Wireless Profile Updated",2800:"EAC Posture Signer SET",2801:"EAC Enabled",2802:"EAC Disabled",2803:"EAC Posture State",2804:"EAC Set Options",2900:"KVM Opt-in Enabled",2901:"KVM Opt-in Disabled",2902:"KVM Password Changed",2903:"KVM Consent Succeeded",2904:"KVM Consent Failed",3e3:"Opt-In Policy Change",3001:"Send Consent Code Event",3002:"Start Opt-In Blocked Event"};function I(e,t,n,i,o){if(200!=i)o[0](E,[],i);else{var r,c,a,s=o[1],u=new Date;if(0<n.Body.RecordsReturned)for(c in n.Body.EventRecords=MakeToArray(n.Body.EventRecords),n.Body.EventRecords){a=null;try{a=window.atob(n.Body.EventRecords[c])}catch(a){console.log(a+" "+n.Body.EventRecords[c])}(S={AuditAppID:ReadShort(a,0),EventID:ReadShort(a,2),InitiatorType:a.charCodeAt(4)}).AuditApp=l[S.AuditAppID],S.Event=l[100*S.AuditAppID+S.EventID],S.Event||(S.Event="#"+S.EventID),0==S.InitiatorType&&(d=a.charCodeAt(5),S.Initiator=a.substring(6,6+d),r=6+d),1==S.InitiatorType&&(S.KerberosUserInDomain=ReadInt(a,5),d=a.charCodeAt(9),S.Initiator=GetSidString(a.substring(10,10+d)),r=10+d),2==S.InitiatorType&&(S.Initiator="<i>Local</i>",r=5),3==S.InitiatorType&&(S.Initiator="<i>KVM Default Port</i>",r=5),A=ReadInt(a,r),S.Time=new Date(1e3*(A+60*u.getTimezoneOffset())),r+=4,S.MCLocationType=a.charCodeAt(r++);var d,S,A=a.charCodeAt(r++),A=(S.NetAddress=a.substring(r,r+A),r+=A,a.charCodeAt(r++));S.Ex=a.substring(r,r+A),S.ExStr=E.GetAuditLogExtendedDataStr(100*S.AuditAppID+S.EventID,S.Ex),s.push(S)}n.Body.TotalRecordCount>s.length?E.AMT_AuditLog_ReadRecords(s.length+1,I,[o[0],s]):o[0](E,s,i)}}return E.GetAuditLogExtendedDataStr=function(e,t){var n;return 1602!=e&&1604!=e||0!=t.charCodeAt(0)?1603==e?0==t.charCodeAt(1)?t.substring(3):null:1605==e?["Invalid ME access","Invalid MEBx access"][t.charCodeAt(0)]:1606==e?(n=["Disabled","Enabled"][t.charCodeAt(0)],0==t.charCodeAt(1)&&(n+=", "+t.substring(3)),n):1607==e?"Remote "+["NoAuth","ServerAuth","MutualAuth"][t.charCodeAt(0)]+", Local "+["NoAuth","ServerAuth","MutualAuth"][t.charCodeAt(1)]:1617==e?E.RealmNames[ReadInt(t,0)]+", "+["NoAuth","Auth","Disabled"][t.charCodeAt(4)]:1619==e?["BIOS","MEBx","Local MEI","Local WSMAN","Remote WSAMN"][t.charCodeAt(0)]:1900==e?"From "+ReadShort(t,0)+"."+ReadShort(t,2)+"."+ReadShort(t,4)+"."+ReadShort(t,6)+" to "+ReadShort(t,8)+"."+ReadShort(t,10)+"."+ReadShort(t,12)+"."+ReadShort(t,14):2100==e?((n=new Date).setTime(1e3*ReadInt(t,0)+6e4*(new Date).getTimezoneOffset()),n.toLocaleString()):3e3==e?"From "+["None","KVM","All"][t.charCodeAt(0)]+" to "+["None","KVM","All"][t.charCodeAt(1)]:3001==e?["Success","Failed 3 times"][t.charCodeAt(0)]:null:t.substring(2,2+t.charCodeAt(1))},E.GetAuditLog=function(e){E.AMT_AuditLog_ReadRecords(1,I,[e,[]])},E}function hex_md5(e){return null==e&&(e=""),forge.md.md5.create().update(e).digest().toHex()}for(var md5_k=[],i=0;i<64;)md5_k[i]=0|4294967296*Math.abs(Math.sin(++i));function hex_md5(e){null==e&&(e="");for(var t,n,i,o,r=[],c=unescape(encodeURI(e)),a=c.length,s=[t=1732584193,n=-271733879,~t,~n],u=0;u<=a;)r[u>>2]|=(c.charCodeAt(u)||128)<<u++%4*8;for(r[e=16*(a+8>>6)+14]=8*a,u=0;u<e;u+=16){for(a=s,o=0;o<64;)a=[i=a[3],(t=0|a[1])+((i=a[0]+[t&(n=a[2])|~t&i,i&t|~i&n,t^n^i,n^(t|~i)][a=o>>4]+(md5_k[o]+(0|r[[o,5*o+1,3*o+5,7*o][a]%16+u])))<<(a=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*a+o++%4])|i>>>32-a),t,n];for(o=4;o;)s[--o]=s[o]+a[o]}for(e="";o<32;)e+=(s[o>>3]>>4*(1^7&o++)&15).toString(16);return e}function rstr_md5(e){return hex2rstr(hex_md5(e))}function execArgumentsToXml(e){if(null==e)return null;var t,n="";for(t in e){var i=e[t];i&&("reference"===i.__parameterType?n+=referenceToXml(t,i):n+=instanceToXml(t,i))}return n}function instanceToXml(e,t){if(null==t)return null;var n=!!t.__namespace,i=n?"<q:":"<",o=n?"</q:":"</",r="<r:"+e+(n?' xmlns:q="'+t.__namespace+'"':"")+">";if("string"==typeof t)r+=t;else for(var c in t)!t.hasOwnProperty(c)||0===c.indexOf("__")||"function"==typeof t[c]||Array.isArray(t[c])||("object"==typeof t[c]?console.error("only convert one level down..."):r+=i+c+">"+t[c].toString()+o+c+">");return r+="</r:"+e+">"}function referenceToXml(e,t){if(null==t)return null;var n,i="<r:"+e+"><a:Address>/wsman</a:Address><a:ReferenceParameters><w:ResourceURI>"+t.__resourceUri+"</w:ResourceURI><w:SelectorSet>";for(n in t)!t.hasOwnProperty(n)||0===n.indexOf("__")||"function"==typeof t[n]||"object"==typeof t[n]||Array.isArray(t[n])||(i+='<w:Selector Name="'+n+'">'+t[n].toString()+"</w:Selector>");return i+="</w:SelectorSet></a:ReferenceParameters></r:"+e+">"}function GetSidString(e){for(var t="S-"+e.charCodeAt(0)+"-"+e.charCodeAt(7),n=2;n<e.length/4;n++)t+="-"+ReadIntX(e,4*n);return t}function GetSidByteArray(e){if(!e||null==e)return null;var t=e.split("-");if(t.length<4||"s"!=t[0]&&"S"!=t[0])return null;for(var n=1;n<t.length;n++){var i=parseInt(t[n]);if(i!=t[n])return null;t[n]=i}for(var o=String.fromCharCode(t[1])+String.fromCharCode(t.length-3)+ShortToStr(Math.floor(t[2]/Math.pow(2,32)))+IntToStr(65535&t[2]),n=3;n<t.length;n++)o+=IntToStrX(t[n]);return o}
\ No newline at end of file
public/scripts/amt-desktop-0.0.2-min.js
+1
-1
@@ -1 +1 @@
1
-var CreateAmtRemoteDesktop=function(e,t){var S={};function g(e){return String.fromCharCode.apply(null,e)}function p(e,t,a,n,r,o,i){var s,c,h,d,l=e[t++],u={},v=0,m=0;if(0==l){if(2==S.bpp)for(d=0;d<i;d++)y(e[t++]+(e[t++]<<8),d);else for(d=0;d<i;d++)C(e[t++],d);w(S.spare,a,n)}else if(1==l){S.graymode?(c=e[t++],S.lowcolor&&(c<<=4),S.canvas.fillStyle="rgb("+c+","+c+","+c+")"):(c=e[t++]+(2==S.bpp?e[t++]<<8:0),S.canvas.fillStyle="rgb("+(1==S.bpp?(224&c)+","+((28&c)<<3)+","+T((3&c)<<6):(c>>8&248)+","+(c>>3&252)+","+((31&c)<<3))+")");var f=k(a);n=x(0,n),S.canvas.fillRect(a=f,n,r,o)}else if(1<l&&l<17){var g=4,p=15;if(2==S.bpp){for(d=0;d<l;d++)u[d]=e[t++]+(e[t++]<<8);for(2==l?p=g=1:l<=4&&(g=2,p=3);v<i&&t<e.byteLength;)for(c=e[t++],d=8-g;0<=d;d-=g)y(u[c>>d&p],v++)}else{for(d=0;d<l;d++)u[d]=e[t++];for(2==l?p=g=1:l<=4&&(g=2,p=3);v<i&&t<e.byteLength;)for(c=e[t++],d=8-g;0<=d;d-=g)C(u[c>>d&p],v++)}w(S.spare,a,n)}else if(128==l){if(2==S.bpp)for(;v<i&&t<e.byteLength;){for(c=e[t++]+(e[t++]<<8),m=1;m+=h=e[t++],255==h;);if(0==S.rotation)D(c,v,m),v+=m;else for(;0<=--m;)y(c,v++)}else for(;v<i&&t<e.byteLength;){for(c=e[t++],m=1;m+=h=e[t++],255==h;);if(0==S.rotation)b(c,v,m),v+=m;else for(;0<=--m;)C(c,v++)}w(S.spare,a,n)}else if(129<l){if(2==S.bpp)for(d=0;d<l-128;d++)u[d]=e[t++]+(e[t++]<<8);else for(d=0;d<l-128;d++)u[d]=e[t++];for(;v<i&&t<e.byteLength;){if(m=1,c=u[(s=e[t++])%128],127<s)for(;m+=h=e[t++],255==h;);if(0==S.rotation)(2==S.bpp?D:b)(c,v,m),v+=m;else if(2==S.bpp)for(;0<=--m;)y(c,v++);else for(;0<=--m;)C(c,v++)}w(S.spare,a,n)}}function w(e,t,a){var n,r,o;1!=S.holding&&(n=t,r=a,n=0==S.rotation?n:1==S.rotation?S.canvas.canvas.width-S.sparew2-r:2==S.rotation?S.canvas.canvas.width-S.sparew2-n:3==S.rotation?r:0,r=t,o=a,a=0==S.rotation?o:1==S.rotation?r:2==S.rotation?S.canvas.canvas.height-S.spareh2-o:3==S.rotation?S.canvas.canvas.height-S.spareh-r:0,S.canvas.putImageData(e,t=n,a))}function C(e,t){var a,n,r=t<<2;0<S.rotation&&(1==S.rotation?(a=t%S.sparew,n=Math.floor(t/S.sparew),r=(t=a*S.sparew2+(S.sparew2-1-n))<<2):2==S.rotation?r=S.sparew*S.spareh*4-4-r:3==S.rotation&&(a=t%S.sparew,n=Math.floor(t/S.sparew),r=(t=(S.sparew2-1-a)*S.sparew2+n)<<2)),S.graymode?(S.lowcolor&&(e<<=4),S.spare.data[r]=S.spare.data[r+1]=S.spare.data[r+2]=e):(S.spare.data[r]=224&e,S.spare.data[r+1]=(28&e)<<3,S.spare.data[r+2]=T((3&e)<<6))}function y(e,t){var a,n,r=t<<2;0<S.rotation&&(1==S.rotation?(a=t%S.sparew,n=Math.floor(t/S.sparew),r=(t=a*S.sparew2+(S.sparew2-1-n))<<2):2==S.rotation?r=S.sparew*S.spareh*4-4-r:3==S.rotation&&(a=t%S.sparew,n=Math.floor(t/S.sparew),r=(t=(S.sparew2-1-a)*S.sparew2+n)<<2)),S.spare.data[r]=e>>8&248,S.spare.data[r+1]=e>>3&252,S.spare.data[r+2]=(31&e)<<3}function b(e,t,a){if(S.graymode){var n=t<<2;for(S.lowcolor&&(e<<=4);0<=--a;)S.spare.data[n]=S.spare.data[n+1]=S.spare.data[n+2]=e,n+=4}else for(var n=t<<2,r=224&e,o=(28&e)<<3,i=T((3&e)<<6);0<=--a;)S.spare.data[n]=r,S.spare.data[n+1]=o,S.spare.data[n+2]=i,n+=4}function D(e,t,a){for(var n=t<<2,r=e>>8&248,o=e>>3&252,i=(31&e)<<3;0<=--a;)S.spare.data[n]=r,S.spare.data[n+1]=o,S.spare.data[n+2]=i,n+=4}function k(e){return 0==S.rotation||1==S.rotation?e:2==S.rotation?e-S.canvas.canvas.width:3==S.rotation?e-S.canvas.canvas.height:0}function x(e,t){return 0==S.rotation?t:1==S.rotation?t-S.canvas.canvas.width:2==S.rotation?t-S.canvas.canvas.height:3==S.rotation?t:0}function T(e){return 127<e?e+32:e}function K(){var e;1!=S.holding&&(0<S.focusmode?(e=2*S.focusmode,S.send(String.fromCharCode(3,1)+ShortToStr(Math.max(Math.min(S.ox,S.mx)-S.focusmode,0))+ShortToStr(Math.max(Math.min(S.oy,S.my)-S.focusmode,0))+ShortToStr(e+Math.abs(S.ox-S.mx))+ShortToStr(e+Math.abs(S.oy-S.my))),S.ox=S.mx,S.oy=S.my):S.send(String.fromCharCode(3,1,0,0,0,0)+ShortToStr(S.rwidth)+ShortToStr(S.rheight)))}S.canvasid=e,S.CanvasId=Q(e),S.scrolldiv=t,S.canvas=Q(e).getContext("2d"),S.protocol=2,S.state=0,S.acc=null,S.ScreenWidth=960,S.ScreenHeight=700,S.width=0,S.height=0,S.rwidth=0,S.rheight=0,S.bpp=2,S.useRLE=!0,S.showmouse=!0,S.buttonmask=0,S.localKeyMap=!0,S.spare=null,S.sparew=0,S.spareh=0,S.sparew2=0,S.spareh2=0,S.sparecache={},S.onScreenSizeChange=null,S.frameRateDelay=0,S.noMouseRotate=!1,S.rotation=0,S.kvmDataSupported=!1,S.onKvmData=null,S.onKvmDataPending=[],S.onKvmDataAck=-1,S.holding=!1,S.lastKeepAlive=Date.now(),S.kvmExt={},S.kvmExtChanged=null,S.useZLib=!1,S.decimationMode=0,S.graymode=!1,S.lowcolor=!1,S.mNagleTimer=null,S.mx=0,S.my=0,S.ox=-1,S.oy=-1,S.focusmode=0,S.inflate=ZLIB.inflateInit(-15),S.xxStateChange=function(e){0==e?(S.canvas.fillStyle="#000000",S.canvas.fillRect(0,0,S.width,S.height),S.canvas.canvas.width=S.rwidth=S.width=640,S.canvas.canvas.height=S.rheight=S.height=400,QS(S.canvasid).cursor="default"):QS(S.canvasid).cursor=S.showmouse?"default":"none"},S.ProcessBinaryData=function(e){var t;for(null!=S.recordedData&&!0!==S.recordedHolding&&S.recordedData.push(I(2,1,String.fromCharCode.apply(null,new Uint8Array(e)))),null==S.acc?S.acc=new Uint8Array(e):((t=new Uint8Array(S.acc.byteLength+e.byteLength)).set(S.acc,0),t.set(new Uint8Array(e),S.acc.byteLength),S.acc=t);null!=S.acc&&0<S.acc.byteLength;){var a=0,n=new DataView(S.acc.buffer);if(0==S.state&&12<=S.acc.byteLength)a=12,S.state=1,S.parent&&delete S.parent.connectTime,S.send("RFB 003.008\n");else if(1==S.state&&1<=S.acc.byteLength)a=S.acc[0]+1,S.send(String.fromCharCode(1)),S.state=2;else if(2==S.state&&4<=S.acc.byteLength){if(a=4,0!=n.getUint32(0))return S.Stop();S.send(String.fromCharCode(1)),S.state=3,S.parent&&(S.parent.disconnectCode=5e4)}else if(3==S.state&&24<=S.acc.byteLength){S.rotation=0;var r=n.getUint32(20);if(S.acc.byteLength<24+r)return;a=24+r,S.canvas.canvas.width=S.rwidth=S.width=S.ScreenWidth=n.getUint16(0),S.canvas.canvas.height=S.rheight=S.height=S.ScreenHeight=n.getUint16(2),S.DeskRecordServerInit=String.fromCharCode.apply(null,new Uint8Array(S.acc.buffer.slice(0,24+r)));r="";S.useRLE&&(r+=IntToStr(16)),r=(r+=IntToStr(0))+IntToStr(1092),S.send(String.fromCharCode(2,0)+ShortToStr(r.length/4+1)+r+IntToStr(-223)),0==S.graymode?1==S.bpp&&S.send(String.fromCharCode(0,0,0,0,8,8,0,1)+ShortToStr(7)+ShortToStr(7)+ShortToStr(3)+String.fromCharCode(5,2,0,0,0,0)):(2==S.bpp&&(S.bpp=1),0==S.lowcolor?S.send(String.fromCharCode(0,0,0,0,8,8,0,1)+ShortToStr(255)+ShortToStr(0)+ShortToStr(0)+String.fromCharCode(0,0,0,0,0,0)):S.send(String.fromCharCode(0,0,0,0,8,4,0,1)+ShortToStr(15)+ShortToStr(0)+ShortToStr(0)+String.fromCharCode(0,0,0,0,0,0))),S.state=4,S.parent&&(S.parent.connectTime=Date.now(),S.parent.disconnectCode=0,S.parent.xxStateChange(3)),S.ox=-1,null!=S.kvmExtChanged&&(0<S.decimationMode&&S.sendKvmExtCmd(2,S.decimationMode),S.sendKvmExtCmd(4,!0===S.useZLib?1:0)),K(),null!=S.onScreenSizeChange&&S.onScreenSizeChange(S,S.ScreenWidth,S.ScreenHeight),S.parent&&(S.parent.disconnectCode=50001,9216e3<S.bpp*S.width*S.height&&(S.parent.disconnectCode=50002))}else if(4==S.state)switch(S.acc[0]){case 0:if(S.acc.byteLength<4)return;S.state=100+n.getUint16(2),a=4,!0===S.recordedHolding&&(delete S.recordedHolding,S.recordedData.push(I(2,1,String.fromCharCode.apply(null,S.acc))));break;case 2:a=1;break;case 3:if(S.acc.byteLength<8)return;var o=n.getUint32(4)+8;if(S.acc.byteLength<o)return;a=function(e,t){if(e.byteLength<8)return 0;t=t.getUint32(4)+8;if(e.byteLength<t)return 0;if(null!=S.onKvmData){e=g(new Uint8Array(e.buffer.slice(8,t)));if(16<=e.length&&"\0KvmDataChannel"==e.substring(0,15)){0==S.kvmDataSupported&&(S.kvmDataSupported=!0),(-1==S.onKvmDataAck&&16==e.length||0!=e.charCodeAt(15))&&(S.onKvmDataAck=!0);try{urlvars&&urlvars.kvmdatatrace&&console.log("KVM-DataChannel-Recv("+(e.length-16)+"): "+e.substring(16))}catch(e){}16<=e.length&&S.onKvmData(e.substring(16)),1==S.onKvmDataAck&&0<S.onKvmDataPending.length&&S.sendKvmData(S.onKvmDataPending.shift())}else if(13<=e.length&&"\0KvmExtCmd\0"==e.substring(0,11)){var a=e.charCodeAt(11),n=e.charCodeAt(12);1==a&&(S.kvmExt.decimationMode=n,13<e.length&&(S.kvmExt.decimationState=e.charCodeAt(13)),null!=S.kvmExtChanged&&S.kvmExtChanged(1,S.kvmExt,S.kvmExt)),2==a&&S.sendKvmExtCmd(1),3==a&&(S.kvmExt.compression=n,null!=S.kvmExtChanged&&S.kvmExtChanged(3,S.kvmExt)),4==a&&S.sendKvmExtCmd(3)}else{console.log("Got KVM clipboard data:",e);try{urlvars&&urlvars.kvmdatatrace&&console.log("KVM-ClipBoard-Recv("+e.length+"): "+rstr2hex(e)+", "+e)}catch(e){}}}return t}(S.acc,n)}else if(100<S.state&&12<=S.acc.byteLength){var r=n.getUint16(0),i=n.getUint16(2),s=n.getUint16(4),c=n.getUint16(6),h=s*c,d=n.getUint32(8);if(d<17){if(s<1||64<s||c<1||64<c)return console.log("Invalid tile size ("+s+","+c+"), disconnecting."),S.Stop();if(S.sparew!=s||S.spareh!=c){S.sparew=S.sparew2=s,S.spareh=S.spareh2=c,1!=S.rotation&&3!=S.rotation||(S.sparew2=c,S.spareh2=s);var l=S.sparew2+"x"+S.spareh2;if(S.spare=S.sparecache[l],!S.spare){S.sparecache[l]=S.spare=S.canvas.createImageData(S.sparew2,S.spareh2);for(var u=S.sparew2*S.spareh2<<2,v=3;v<u;v+=4)S.spare.data[v]=255}}}if(4294967073==d)S.canvas.canvas.width=S.rwidth=S.width=s,S.canvas.canvas.height=S.rheight=S.height=c,S.send(String.fromCharCode(3,0,0,0,0,0)+ShortToStr(S.width)+ShortToStr(S.height)),a=12,null!=S.onScreenSizeChange&&S.onScreenSizeChange(S,S.ScreenWidth,S.ScreenHeight),S.parent&&9216e3<S.bpp*S.width*S.height&&(S.parent.disconnectCode=50002);else if(0==d){var m=12,l=12+h*S.bpp;if(S.acc.byteLength<l)return;if(a=l,2==S.bpp)for(v=0;v<h;v++)y(n.getUint16(m,!0),v),m+=2;else for(v=0;v<h;v++)C(S.acc[m++],v);w(S.spare,r,i)}else{if(16!=d)return S.Stop();if(S.acc.byteLength<16)return;d=n.getUint32(12);if(S.acc.byteLength<16+d)return;var f,m=16;5<d&&0==S.acc[m]&&n.getUint16(m+1,!0)==d-5?p(S.acc,m+5,r,i,s,c,h):0<(f=S.inflate.inflate(g(new Uint8Array(S.acc.buffer.slice(m,+(m+d)))))).length?p(function(e){for(var t=new Uint8Array(e.length),a=0,n=e.length;a<n;++a)t[a]=e.charCodeAt(a);return t}(f),0,r,i,s,c,h,f.length):console.log("Invalid deflate data"),a=16+d}100==--S.state&&(S.state=4,0==S.frameRateDelay?K():setTimeout(K,S.frameRateDelay))}if(0==a)return;a!=S.acc.byteLength?S.acc=new Uint8Array(S.acc.buffer.slice(a)):S.acc=null}},S.hold=function(e){S.holding!=e&&(S.holding=e,S.canvas.fillStyle="#000000",S.canvas.fillRect(0,0,S.width,S.height),0==S.holding?(S.canvas.canvas.width==S.width&&S.canvas.canvas.height==S.height||(S.canvas.canvas.width=S.width,S.canvas.canvas.height=S.height,null!=S.onScreenSizeChange&&S.onScreenSizeChange(S,S.ScreenWidth,S.ScreenHeight)),S.send(String.fromCharCode(3,0,0,0,0,0)+ShortToStr(S.width)+ShortToStr(S.height))):(S.UnGrabMouseInput(),S.UnGrabKeyInput()))},S.tcanvas=null,S.setRotation=function(e){for(;e<0;)e+=4;var t,a,n,r=e%4;{if(1!=S.holding)return r!=S.rotation&&(t=S.canvas.canvas.width,a=S.canvas.canvas.height,1!=S.rotation&&3!=S.rotation||(t=S.canvas.canvas.height,a=S.canvas.canvas.width),null==S.tcanvas&&(S.tcanvas=document.createElement("canvas")),(n=S.tcanvas.getContext("2d")).setTransform(1,0,0,1,0,0),n.canvas.width=t,n.canvas.height=a,n.rotate(-90*S.rotation*Math.PI/180),0==S.rotation&&n.drawImage(S.canvas.canvas,0,0),1==S.rotation&&n.drawImage(S.canvas.canvas,-S.canvas.canvas.width,0),2==S.rotation&&n.drawImage(S.canvas.canvas,-S.canvas.canvas.width,-S.canvas.canvas.height),3==S.rotation&&n.drawImage(S.canvas.canvas,0,-S.canvas.canvas.height),0!=S.rotation&&2!=S.rotation||(S.canvas.canvas.height=t,S.canvas.canvas.width=a),1!=S.rotation&&3!=S.rotation||(S.canvas.canvas.height=a,S.canvas.canvas.width=t),S.canvas.setTransform(1,0,0,1,0,0),S.canvas.rotate(90*r*Math.PI/180),S.rotation=r,S.canvas.drawImage(S.tcanvas,k(0),x(0,0)),S.width=S.canvas.canvas.width,S.height=S.canvas.canvas.height,null!=S.onScreenResize&&S.onScreenResize(S,S.width,S.height,S.CanvasId)),!0;S.rotation=r}},S.Start=function(){for(var e in S.state=0,S.acc=null,S.inflate.inflateReset(),S.onKvmDataPending=[],S.onKvmDataAck=-1,S.kvmDataSupported=!1,S.kvmExt={},S.sparecache)delete S.sparecache[e]},S.Stop=function(){S.UnGrabMouseInput(),S.UnGrabKeyInput(),S.parent&&S.parent.Stop()},S.send=function(e){S.parent&&S.parent.send(e)};var r={Pause:19,CapsLock:20,Space:32,Quote:39,Minus:45,NumpadMultiply:42,NumpadAdd:43,PrintScreen:44,Comma:44,NumpadSubtract:45,NumpadDecimal:46,Period:46,Slash:47,NumpadDivide:47,Semicolon:59,Equal:61,OSLeft:91,BracketLeft:91,OSRight:91,Backslash:92,BracketRight:93,ContextMenu:93,Backquote:96,NumLock:144,ScrollLock:145,Backspace:65288,Tab:65289,Enter:65293,NumpadEnter:65293,Escape:65307,Delete:65535,Home:65360,PageUp:65365,PageDown:65366,ArrowLeft:65361,ArrowUp:65362,ArrowRight:65363,ArrowDown:65364,End:65367,Insert:65379,F1:65470,F2:65471,F3:65472,F4:65473,F5:65474,F6:65475,F7:65476,F8:65477,F9:65478,F10:65479,F11:65480,F12:65481,ShiftLeft:65505,ShiftRight:65506,ControlLeft:65507,ControlRight:65508,AltLeft:65513,AltRight:65514,MetaLeft:65511,MetaRight:65512};function a(e,t){var a,n;return(t=t||window.event).code&&0==S.localKeyMap?null!=(n=(n=t).code.startsWith("Key")&&4==n.code.length?n.code.charCodeAt(3)+(0==n.shiftKey?32:0):n.code.startsWith("Digit")&&6==n.code.length?n.code.charCodeAt(5):n.code.startsWith("Numpad")&&7==n.code.length?n.code.charCodeAt(6):r[n.code])&&S.sendkey(n,e):(a=n=t.keyCode,0==t.shiftKey&&65<=n&&n<=90&&(a=n+32),112<=n&&n<=124&&(a=n+65358),8==n&&(a=65288),9==n&&(a=65289),13==n&&(a=65293),16==n&&(a=65505),17==n&&(a=65507),18==n&&(a=65513),27==n&&(a=65307),33==n&&(a=65365),34==n&&(a=65366),35==n&&(a=65367),36==n&&(a=65360),37==n&&(a=65361),38==n&&(a=65362),39==n&&(a=65363),40==n&&(a=65364),45==n&&(a=65379),46==n&&(a=65535),96<=n&&n<=105&&(a=n-48),106==n&&(a=42),107==n&&(a=43),109==n&&(a=45),110==n&&(a=46),111==n&&(a=47),186==n&&(a=59),187==n&&(a=61),188==n&&(a=44),189==n&&(a=45),190==n&&(a=46),191==n&&(a=47),192==n&&(a=96),219==n&&(a=91),220==n&&(a=92),221==n&&(a=93),S.sendkey(a=222==n?39:a,e)),S.haltEvent(t)}S.sendkey=function(e,t){if("object"==typeof e){var a,n="";for(a in e)n+=String.fromCharCode(4,e[a][1],0,0)+IntToStr(e[a][0]);S.send(n)}else S.send(String.fromCharCode(4,t,0,0)+IntToStr(e))},S.sendKvmExtCmd=function(e,t){e="\0KvmExtCmd\0"+String.fromCharCode(e)+(null!=t?String.fromCharCode(t):"");S.send(String.fromCharCode(6,0,0,0)+IntToStr(e.length)+e)},S.sendKvmData=function(e){if(!0!==S.onKvmDataAck)S.onKvmDataPending.push(e);else{try{urlvars&&urlvars.kvmdatatrace&&console.log("KVM-DataChannel-Send("+e.length+"): "+e)}catch(e){}e="\0KvmDataChannel\0"+e,S.send(String.fromCharCode(6,0,0,0)+IntToStr(e.length)+e),S.onKvmDataAck=!1}},S.sendKeepAlive=function(){S.lastKeepAlive<Date.now()-5e3&&(S.lastKeepAlive=Date.now(),S.send(String.fromCharCode(6,0,0,0)+IntToStr(16)+"\0KvmDataChannel\0"))},S.sendClipboardData=function(e){try{urlvars&&urlvars.kvmdatatrace&&console.log("KVM-ClipBoard-Send("+e.length+"): "+rstr2hex(e)+", "+e)}catch(e){}S.send(String.fromCharCode(6,0,0,0)+IntToStr(e.length)+e)},S.SendCtrlAltDelMsg=function(){S.sendcad()};var n=!(S.sendcad=function(){S.sendkey([[65507,1],[65513,1],[65535,1],[65535,0],[65513,0],[65507,0]])}),o=!1;function I(e,t,a){var n=Date.now();return"number"==typeof a?(S.recordedSize+=a,ShortToStr(e)+ShortToStr(t)+IntToStr(a)+IntToStr(n>>32)+IntToStr(32&n)):(S.recordedSize+=a.length,ShortToStr(e)+ShortToStr(t)+IntToStr(a.length)+IntToStr(n>>32)+IntToStr(32&n)+a)}return S.GrabMouseInput=function(){var e;1!=n&&((e=S.canvas.canvas).onmouseup=S.mouseup,e.onmousedown=S.mousedown,e.onmousemove=S.mousemove,e.onwheel=S.mousewheel,n=!0)},S.UnGrabMouseInput=function(){var e;0!=n&&((e=S.canvas.canvas).onmousemove=null,e.onmouseup=null,e.onmousedown=null,e.onwheel=null,n=!1)},S.GrabKeyInput=function(){1!=o&&(document.onkeyup=S.handleKeyUp,document.onkeydown=S.handleKeyDown,document.onkeypress=S.handleKeys,o=!0)},S.UnGrabKeyInput=function(){0!=o&&(document.onkeyup=null,document.onkeydown=null,document.onkeypress=null,o=!1)},S.handleKeys=function(e){return S.haltEvent(e)},S.handleKeyUp=function(e){return a(0,e)},S.handleKeyDown=function(e){return a(1,e)},S.haltEvent=function(e){return e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},S.mousedblclick=function(e){},S.mousewheel=function(e){var t,a=0;if("number"==typeof e.deltaY?a=-1*e.deltaY:"number"==typeof e.detail?a=-1*e.detail:"number"==typeof e.wheelDelta&&(a=e.wheelDelta),0!=a)return S.ReverseMouseWheel&&(a*=-1),t=S.buttonmask,S.buttonmask|=1<<(0<a?3:4),S.mousemove(e,1),S.buttonmask=t,S.mousemove(e,1)},S.mousedown=function(e){return S.buttonmask|=1<<e.button,S.mousemove(e,1)},S.mouseup=function(e){return S.buttonmask&=65535-(1<<e.button),S.mousemove(e,1)},S.mousemove=function(e,t){if(S.state<4)return!0;var a,n,r,o=S.canvas.canvas.height/Q(S.canvasid).offsetHeight,i=S.canvas.canvas.width/Q(S.canvasid).offsetWidth,s=S.getPositionOfControl(Q(S.canvasid));return S.mx=(event.pageX-s[0])*i,S.my=(event.pageY-s[1])*o,event.addx&&(S.mx+=event.addx),event.addy&&(S.my+=event.addy),1!=S.rotation&&3!=S.rotation||(S.mx=S.mx*S.rwidth/S.width,S.my=S.my*S.rheight/S.height),1!=S.noMouseRotate&&(i=S.mx,s=S.my,o=0==S.rotation?i:1==S.rotation?s:2==S.rotation?S.canvas.canvas.width-i:3==S.rotation?S.canvas.canvas.height-s:0,S.my=(i=S.mx,s=S.my,0==S.rotation?s:1==S.rotation?S.canvas.canvas.width-i:2==S.rotation?S.canvas.canvas.height-s:3==S.rotation?i:0),S.mx=o),1==t?(S.send(String.fromCharCode(5,S.buttonmask)+ShortToStr(S.mx)+ShortToStr(S.my)),null!=S.mNagleTimer&&(clearTimeout(S.mNagleTimer),S.mNagleTimer=null)):null==S.mNagleTimer&&(S.mNagleTimer=setTimeout(function(){S.send(String.fromCharCode(5,S.buttonmask)+ShortToStr(S.mx)+ShortToStr(S.my)),S.mNagleTimer=null},50)),QV("DeskFocus",S.focusmode),0!=S.focusmode&&(s=Math.min(S.mx,S.canvas.canvas.width-S.focusmode),i=Math.min(S.my,S.canvas.canvas.height-S.focusmode),o=2*S.focusmode,a=(t=Q(S.canvasid)).offsetHeight/S.canvas.canvas.height,t=t.offsetWidth/S.canvas.canvas.width,n=QS("DeskFocus"),r=S.getPositionOfControl(Q(S.canvasid).parentElement),n.left=Math.max((s-S.focusmode)*a,0)+(pos[0]-r[0])+"px",n.top=Math.max((i-S.focusmode)*t,0)+(pos[1]-r[1])+"px",n.width=o*a-6+"px",n.height=o*a-6+"px"),S.haltEvent(e)},S.getPositionOfControl=function(e){var t=Array(2);for(t[0]=t[1]=0;e;)t[0]+=e.offsetLeft,t[1]+=e.offsetTop,e=e.offsetParent;return t},S.StartRecording=function(){return(null==S.recordedData||null==S.DeskRecordServerInit)&&(S.recordedHolding=!0,S.recordedData=[],S.recordedStart=Date.now(),S.recordedSize=0,S.recordedData.push(I(1,0,JSON.stringify({magic:"MeshCentralRelaySession",ver:1,time:(new Date).toLocaleString(),protocol:200,bpp:S.bpp,graymode:S.graymode,lowcolor:S.lowcolor,screenSize:[S.width,S.height]}))),S.DeskRecordServerInit=String.fromCharCode(S.width>>8,255&S.width,S.height>>8,255&S.height)+S.DeskRecordServerInit.substring(4),S.recordedData.push(I(2,1,S.DeskRecordServerInit)),S.recordedData.push(I(3,0,atob(S.CanvasId.toDataURL("image/png").split(",")[1]))),!0)},S.StopRecording=function(){var e;if(null!=S.recordedData)return e=S.recordedData,e.push(I(3,0,"MeshCentralMCREC")),delete S.recordedData,delete S.recordedStart,delete S.recordedSize,e},S}
\ No newline at end of file
1
+var CreateAmtRemoteDesktop=function(e,t){var S={};function g(e){return String.fromCharCode.apply(null,e)}function p(e,t,a,n,r,o,i){var s,c,h,d,l=e[t++],v={},u=0,m=0;if(0==l){if(2==S.bpp)for(d=0;d<i;d++)y(e[t++]+(e[t++]<<8),d);else for(d=0;d<i;d++)C(e[t++],d);w(S.spare,a,n)}else if(1==l){S.graymode?(c=e[t++],S.lowcolor&&(c<<=4),S.canvas.fillStyle="rgb("+c+","+c+","+c+")"):(c=e[t++]+(2==S.bpp?e[t++]<<8:0),S.canvas.fillStyle="rgb("+(1==S.bpp?(224&c)+","+((28&c)<<3)+","+T((3&c)<<6):(c>>8&248)+","+(c>>3&252)+","+((31&c)<<3))+")");var f=k(a);n=x(0,n),S.canvas.fillRect(a=f,n,r,o)}else if(1<l&&l<17){var g=4,p=15;if(2==S.bpp){for(d=0;d<l;d++)v[d]=e[t++]+(e[t++]<<8);for(2==l?p=g=1:l<=4&&(g=2,p=3);u<i&&t<e.byteLength;)for(c=e[t++],d=8-g;0<=d;d-=g)y(v[c>>d&p],u++)}else{for(d=0;d<l;d++)v[d]=e[t++];for(2==l?p=g=1:l<=4&&(g=2,p=3);u<i&&t<e.byteLength;)for(c=e[t++],d=8-g;0<=d;d-=g)C(v[c>>d&p],u++)}w(S.spare,a,n)}else if(128==l){if(2==S.bpp)for(;u<i&&t<e.byteLength;){for(c=e[t++]+(e[t++]<<8),m=1;m+=h=e[t++],255==h;);if(0==S.rotation)D(c,u,m),u+=m;else for(;0<=--m;)y(c,u++)}else for(;u<i&&t<e.byteLength;){for(c=e[t++],m=1;m+=h=e[t++],255==h;);if(0==S.rotation)b(c,u,m),u+=m;else for(;0<=--m;)C(c,u++)}w(S.spare,a,n)}else if(129<l){if(2==S.bpp)for(d=0;d<l-128;d++)v[d]=e[t++]+(e[t++]<<8);else for(d=0;d<l-128;d++)v[d]=e[t++];for(;u<i&&t<e.byteLength;){if(m=1,c=v[(s=e[t++])%128],127<s)for(;m+=h=e[t++],255==h;);if(0==S.rotation)(2==S.bpp?D:b)(c,u,m),u+=m;else if(2==S.bpp)for(;0<=--m;)y(c,u++);else for(;0<=--m;)C(c,u++)}w(S.spare,a,n)}}function w(e,t,a){var n,r,o;1!=S.holding&&(n=t,r=a,n=0==S.rotation?n:1==S.rotation?S.canvas.canvas.width-S.sparew2-r:2==S.rotation?S.canvas.canvas.width-S.sparew2-n:3==S.rotation?r:0,r=t,o=a,a=0==S.rotation?o:1==S.rotation?r:2==S.rotation?S.canvas.canvas.height-S.spareh2-o:3==S.rotation?S.canvas.canvas.height-S.spareh-r:0,S.canvas.putImageData(e,t=n,a))}function C(e,t){var a,n,r=t<<2;0<S.rotation&&(1==S.rotation?(a=t%S.sparew,n=Math.floor(t/S.sparew),r=(t=a*S.sparew2+(S.sparew2-1-n))<<2):2==S.rotation?r=S.sparew*S.spareh*4-4-r:3==S.rotation&&(a=t%S.sparew,n=Math.floor(t/S.sparew),r=(t=(S.sparew2-1-a)*S.sparew2+n)<<2)),S.graymode?(S.lowcolor&&(e<<=4),S.spare.data[r]=S.spare.data[r+1]=S.spare.data[r+2]=e):(S.spare.data[r]=224&e,S.spare.data[r+1]=(28&e)<<3,S.spare.data[r+2]=T((3&e)<<6))}function y(e,t){var a,n,r=t<<2;0<S.rotation&&(1==S.rotation?(a=t%S.sparew,n=Math.floor(t/S.sparew),r=(t=a*S.sparew2+(S.sparew2-1-n))<<2):2==S.rotation?r=S.sparew*S.spareh*4-4-r:3==S.rotation&&(a=t%S.sparew,n=Math.floor(t/S.sparew),r=(t=(S.sparew2-1-a)*S.sparew2+n)<<2)),S.spare.data[r]=e>>8&248,S.spare.data[r+1]=e>>3&252,S.spare.data[r+2]=(31&e)<<3}function b(e,t,a){if(S.graymode){var n=t<<2;for(S.lowcolor&&(e<<=4);0<=--a;)S.spare.data[n]=S.spare.data[n+1]=S.spare.data[n+2]=e,n+=4}else for(var n=t<<2,r=224&e,o=(28&e)<<3,i=T((3&e)<<6);0<=--a;)S.spare.data[n]=r,S.spare.data[n+1]=o,S.spare.data[n+2]=i,n+=4}function D(e,t,a){for(var n=t<<2,r=e>>8&248,o=e>>3&252,i=(31&e)<<3;0<=--a;)S.spare.data[n]=r,S.spare.data[n+1]=o,S.spare.data[n+2]=i,n+=4}function k(e){return 0==S.rotation||1==S.rotation?e:2==S.rotation?e-S.canvas.canvas.width:3==S.rotation?e-S.canvas.canvas.height:0}function x(e,t){return 0==S.rotation?t:1==S.rotation?t-S.canvas.canvas.width:2==S.rotation?t-S.canvas.canvas.height:3==S.rotation?t:0}function T(e){return 127<e?e+32:e}function K(){var e;1!=S.holding&&(0<S.focusmode?(e=2*S.focusmode,S.send(String.fromCharCode(3,1)+ShortToStr(Math.max(Math.min(S.ox,S.mx)-S.focusmode,0))+ShortToStr(Math.max(Math.min(S.oy,S.my)-S.focusmode,0))+ShortToStr(e+Math.abs(S.ox-S.mx))+ShortToStr(e+Math.abs(S.oy-S.my))),S.ox=S.mx,S.oy=S.my):S.send(String.fromCharCode(3,1,0,0,0,0)+ShortToStr(S.rwidth)+ShortToStr(S.rheight)))}S.canvasid=e,S.CanvasId=Q(e),S.scrolldiv=t,S.canvas=Q(e).getContext("2d"),S.protocol=2,S.state=0,S.acc=null,S.ScreenWidth=960,S.ScreenHeight=700,S.width=0,S.height=0,S.rwidth=0,S.rheight=0,S.bpp=2,S.useRLE=!0,S.showmouse=!0,S.buttonmask=0,S.localKeyMap=!0,S.spare=null,S.sparew=0,S.spareh=0,S.sparew2=0,S.spareh2=0,S.sparecache={},S.onScreenSizeChange=null,S.frameRateDelay=0,S.noMouseRotate=!1,S.rotation=0,S.kvmDataSupported=!1,S.onKvmData=null,S.onKvmDataPending=[],S.onKvmDataAck=-1,S.holding=!1,S.lastKeepAlive=Date.now(),S.kvmExt={},S.kvmExtChanged=null,S.useZLib=!1,S.decimationMode=0,S.graymode=!1,S.lowcolor=!1,S.mNagleTimer=null,S.mx=0,S.my=0,S.ox=-1,S.oy=-1,S.focusmode=0,S.inflate=ZLIB.inflateInit(-15),S.xxStateChange=function(e){0==e?(S.canvas.fillStyle="#000000",S.canvas.fillRect(0,0,S.width,S.height),S.canvas.canvas.width=S.rwidth=S.width=640,S.canvas.canvas.height=S.rheight=S.height=400,QS(S.canvasid).cursor="default"):QS(S.canvasid).cursor=S.showmouse?"default":"none"},S.ProcessBinaryData=function(e){var t;for(null!=S.recordedData&&!0!==S.recordedHolding&&S.recordedData.push(I(2,1,String.fromCharCode.apply(null,new Uint8Array(e)))),null==S.acc?S.acc=new Uint8Array(e):((t=new Uint8Array(S.acc.byteLength+e.byteLength)).set(S.acc,0),t.set(new Uint8Array(e),S.acc.byteLength),S.acc=t);null!=S.acc&&0<S.acc.byteLength;){var a=0,n=new DataView(S.acc.buffer);if(0==S.state&&12<=S.acc.byteLength)a=12,S.state=1,S.parent&&delete S.parent.connectTime,S.send("RFB 003.008\n");else if(1==S.state&&1<=S.acc.byteLength)a=S.acc[0]+1,S.send(String.fromCharCode(1)),S.state=2;else if(2==S.state&&4<=S.acc.byteLength){if(a=4,0!=n.getUint32(0))return S.Stop();S.send(String.fromCharCode(1)),S.state=3,S.parent&&(S.parent.disconnectCode=5e4)}else if(3==S.state&&24<=S.acc.byteLength){S.rotation=0;var r=n.getUint32(20);if(S.acc.byteLength<24+r)return;a=24+r,S.canvas.canvas.width=S.rwidth=S.width=S.ScreenWidth=n.getUint16(0),S.canvas.canvas.height=S.rheight=S.height=S.ScreenHeight=n.getUint16(2),S.DeskRecordServerInit=String.fromCharCode.apply(null,new Uint8Array(S.acc.buffer.slice(0,24+r)));r="";S.useRLE&&(r+=IntToStr(16)),r=(r+=IntToStr(0))+IntToStr(1092),S.send(String.fromCharCode(2,0)+ShortToStr(r.length/4+1)+r+IntToStr(-223)),0==S.graymode?1==S.bpp&&S.send(String.fromCharCode(0,0,0,0,8,8,0,1)+ShortToStr(7)+ShortToStr(7)+ShortToStr(3)+String.fromCharCode(5,2,0,0,0,0)):(2==S.bpp&&(S.bpp=1),0==S.lowcolor?S.send(String.fromCharCode(0,0,0,0,8,8,0,1)+ShortToStr(255)+ShortToStr(0)+ShortToStr(0)+String.fromCharCode(0,0,0,0,0,0)):S.send(String.fromCharCode(0,0,0,0,8,4,0,1)+ShortToStr(15)+ShortToStr(0)+ShortToStr(0)+String.fromCharCode(0,0,0,0,0,0))),S.state=4,S.parent&&(S.parent.connectTime=Date.now(),S.parent.disconnectCode=0,S.parent.xxStateChange(3)),S.ox=-1,null!=S.kvmExtChanged&&(0<S.decimationMode&&S.sendKvmExtCmd(2,S.decimationMode),S.sendKvmExtCmd(4,!0===S.useZLib?1:0)),K(),null!=S.onScreenSizeChange&&S.onScreenSizeChange(S,S.ScreenWidth,S.ScreenHeight),S.parent&&(S.parent.disconnectCode=50001,9216e3<S.bpp*S.width*S.height)&&(S.parent.disconnectCode=50002)}else if(4==S.state)switch(S.acc[0]){case 0:if(S.acc.byteLength<4)return;S.state=100+n.getUint16(2),a=4,!0===S.recordedHolding&&(delete S.recordedHolding,S.recordedData.push(I(2,1,String.fromCharCode.apply(null,S.acc))));break;case 2:a=1;break;case 3:if(S.acc.byteLength<8)return;var o=n.getUint32(4)+8;if(S.acc.byteLength<o)return;a=function(e,t){if(e.byteLength<8)return 0;t=t.getUint32(4)+8;if(e.byteLength<t)return 0;if(null!=S.onKvmData){e=g(new Uint8Array(e.buffer.slice(8,t)));if(16<=e.length&&"\0KvmDataChannel"==e.substring(0,15)){0==S.kvmDataSupported&&(S.kvmDataSupported=!0),(-1==S.onKvmDataAck&&16==e.length||0!=e.charCodeAt(15))&&(S.onKvmDataAck=!0);try{urlvars&&urlvars.kvmdatatrace&&console.log("KVM-DataChannel-Recv("+(e.length-16)+"): "+e.substring(16))}catch(e){}16<=e.length&&S.onKvmData(e.substring(16)),1==S.onKvmDataAck&&0<S.onKvmDataPending.length&&S.sendKvmData(S.onKvmDataPending.shift())}else if(13<=e.length&&"\0KvmExtCmd\0"==e.substring(0,11)){var a=e.charCodeAt(11),n=e.charCodeAt(12);1==a&&(S.kvmExt.decimationMode=n,13<e.length&&(S.kvmExt.decimationState=e.charCodeAt(13)),null!=S.kvmExtChanged)&&S.kvmExtChanged(1,S.kvmExt,S.kvmExt),2==a&&S.sendKvmExtCmd(1),3==a&&(S.kvmExt.compression=n,null!=S.kvmExtChanged)&&S.kvmExtChanged(3,S.kvmExt),4==a&&S.sendKvmExtCmd(3)}else{console.log("Got KVM clipboard data:",e);try{urlvars&&urlvars.kvmdatatrace&&console.log("KVM-ClipBoard-Recv("+e.length+"): "+rstr2hex(e)+", "+e)}catch(e){}}}return t}(S.acc,n)}else if(100<S.state&&12<=S.acc.byteLength){var r=n.getUint16(0),i=n.getUint16(2),s=n.getUint16(4),c=n.getUint16(6),h=s*c,d=n.getUint32(8);if(d<17){if(s<1||64<s||c<1||64<c)return console.log("Invalid tile size ("+s+","+c+"), disconnecting."),S.Stop();if(S.sparew!=s||S.spareh!=c){S.sparew=S.sparew2=s,S.spareh=S.spareh2=c,1!=S.rotation&&3!=S.rotation||(S.sparew2=c,S.spareh2=s);var l=S.sparew2+"x"+S.spareh2;if(S.spare=S.sparecache[l],!S.spare){S.sparecache[l]=S.spare=S.canvas.createImageData(S.sparew2,S.spareh2);for(var v=S.sparew2*S.spareh2<<2,u=3;u<v;u+=4)S.spare.data[u]=255}}}if(4294967073==d)S.canvas.canvas.width=S.rwidth=S.width=s,S.canvas.canvas.height=S.rheight=S.height=c,S.send(String.fromCharCode(3,0,0,0,0,0)+ShortToStr(S.width)+ShortToStr(S.height)),a=12,null!=S.onScreenSizeChange&&S.onScreenSizeChange(S,S.ScreenWidth,S.ScreenHeight),S.parent&&9216e3<S.bpp*S.width*S.height&&(S.parent.disconnectCode=50002);else if(0==d){var m=12,l=12+h*S.bpp;if(S.acc.byteLength<l)return;if(a=l,2==S.bpp)for(u=0;u<h;u++)y(n.getUint16(m,!0),u),m+=2;else for(u=0;u<h;u++)C(S.acc[m++],u);w(S.spare,r,i)}else{if(16!=d)return S.Stop();if(S.acc.byteLength<16)return;d=n.getUint32(12);if(S.acc.byteLength<16+d)return;var f,m=16;5<d&&0==S.acc[m]&&n.getUint16(m+1,!0)==d-5?p(S.acc,m+5,r,i,s,c,h):0<(f=S.inflate.inflate(g(new Uint8Array(S.acc.buffer.slice(m,+(m+d)))))).length?p(function(e){for(var t=new Uint8Array(e.length),a=0,n=e.length;a<n;++a)t[a]=e.charCodeAt(a);return t}(f),0,r,i,s,c,h,f.length):console.log("Invalid deflate data"),a=16+d}100==--S.state&&(S.state=4,0==S.frameRateDelay?K():setTimeout(K,S.frameRateDelay))}if(0==a)return;a!=S.acc.byteLength?S.acc=new Uint8Array(S.acc.buffer.slice(a)):S.acc=null}},S.hold=function(e){S.holding!=e&&(S.holding=e,S.canvas.fillStyle="#000000",S.canvas.fillRect(0,0,S.width,S.height),0==S.holding?(S.canvas.canvas.width==S.width&&S.canvas.canvas.height==S.height||(S.canvas.canvas.width=S.width,S.canvas.canvas.height=S.height,null!=S.onScreenSizeChange&&S.onScreenSizeChange(S,S.ScreenWidth,S.ScreenHeight)),S.send(String.fromCharCode(3,0,0,0,0,0)+ShortToStr(S.width)+ShortToStr(S.height))):(S.UnGrabMouseInput(),S.UnGrabKeyInput()))},S.tcanvas=null,S.setRotation=function(e){for(;e<0;)e+=4;var t,a,n,r=e%4;if(1!=S.holding)return r!=S.rotation&&(t=S.canvas.canvas.width,a=S.canvas.canvas.height,1!=S.rotation&&3!=S.rotation||(t=S.canvas.canvas.height,a=S.canvas.canvas.width),null==S.tcanvas&&(S.tcanvas=document.createElement("canvas")),(n=S.tcanvas.getContext("2d")).setTransform(1,0,0,1,0,0),n.canvas.width=t,n.canvas.height=a,n.rotate(-90*S.rotation*Math.PI/180),0==S.rotation&&n.drawImage(S.canvas.canvas,0,0),1==S.rotation&&n.drawImage(S.canvas.canvas,-S.canvas.canvas.width,0),2==S.rotation&&n.drawImage(S.canvas.canvas,-S.canvas.canvas.width,-S.canvas.canvas.height),3==S.rotation&&n.drawImage(S.canvas.canvas,0,-S.canvas.canvas.height),0!=S.rotation&&2!=S.rotation||(S.canvas.canvas.height=t,S.canvas.canvas.width=a),1!=S.rotation&&3!=S.rotation||(S.canvas.canvas.height=a,S.canvas.canvas.width=t),S.canvas.setTransform(1,0,0,1,0,0),S.canvas.rotate(90*r*Math.PI/180),S.rotation=r,S.canvas.drawImage(S.tcanvas,k(0),x(0,0)),S.width=S.canvas.canvas.width,S.height=S.canvas.canvas.height,null!=S.onScreenResize)&&S.onScreenResize(S,S.width,S.height,S.CanvasId),!0;S.rotation=r},S.Start=function(){for(var e in S.state=0,S.acc=null,S.inflate.inflateReset(),S.onKvmDataPending=[],S.onKvmDataAck=-1,S.kvmDataSupported=!1,S.kvmExt={},S.sparecache)delete S.sparecache[e]},S.Stop=function(){S.UnGrabMouseInput(),S.UnGrabKeyInput(),S.parent&&S.parent.Stop()},S.send=function(e){S.parent&&S.parent.send(e)};var r={Pause:19,CapsLock:20,Space:32,Quote:39,Minus:45,NumpadMultiply:42,NumpadAdd:43,PrintScreen:44,Comma:44,NumpadSubtract:45,NumpadDecimal:46,Period:46,Slash:47,NumpadDivide:47,Semicolon:59,Equal:61,OSLeft:91,BracketLeft:91,OSRight:91,Backslash:92,BracketRight:93,ContextMenu:93,Backquote:96,NumLock:144,ScrollLock:145,Backspace:65288,Tab:65289,Enter:65293,NumpadEnter:65293,Escape:65307,Delete:65535,Home:65360,PageUp:65365,PageDown:65366,ArrowLeft:65361,ArrowUp:65362,ArrowRight:65363,ArrowDown:65364,End:65367,Insert:65379,F1:65470,F2:65471,F3:65472,F4:65473,F5:65474,F6:65475,F7:65476,F8:65477,F9:65478,F10:65479,F11:65480,F12:65481,ShiftLeft:65505,ShiftRight:65506,ControlLeft:65507,ControlRight:65508,AltLeft:65513,AltRight:65514,MetaLeft:65511,MetaRight:65512};function a(e,t){var a,n;return(t=t||window.event).code&&0==S.localKeyMap?null!=(n=(n=t).code.startsWith("Key")&&4==n.code.length?n.code.charCodeAt(3)+(0==n.shiftKey?32:0):n.code.startsWith("Digit")&&6==n.code.length?n.code.charCodeAt(5):n.code.startsWith("Numpad")&&7==n.code.length?n.code.charCodeAt(6):r[n.code])&&S.sendkey(n,e):(a=n=t.keyCode,0==t.shiftKey&&65<=n&&n<=90&&(a=n+32),112<=n&&n<=124&&(a=n+65358),8==n&&(a=65288),9==n&&(a=65289),13==n&&(a=65293),16==n&&(a=65505),17==n&&(a=65507),18==n&&(a=65513),27==n&&(a=65307),33==n&&(a=65365),34==n&&(a=65366),35==n&&(a=65367),36==n&&(a=65360),37==n&&(a=65361),38==n&&(a=65362),39==n&&(a=65363),40==n&&(a=65364),45==n&&(a=65379),46==n&&(a=65535),96<=n&&n<=105&&(a=n-48),106==n&&(a=42),107==n&&(a=43),109==n&&(a=45),110==n&&(a=46),111==n&&(a=47),186==n&&(a=59),187==n&&(a=61),188==n&&(a=44),189==n&&(a=45),190==n&&(a=46),191==n&&(a=47),192==n&&(a=96),219==n&&(a=91),220==n&&(a=92),221==n&&(a=93),S.sendkey(a=222==n?39:a,e)),S.haltEvent(t)}S.sendkey=function(e,t){if("object"==typeof e){var a,n="";for(a in e)n+=String.fromCharCode(4,e[a][1],0,0)+IntToStr(e[a][0]);S.send(n)}else S.send(String.fromCharCode(4,t,0,0)+IntToStr(e))},S.sendKvmExtCmd=function(e,t){e="\0KvmExtCmd\0"+String.fromCharCode(e)+(null!=t?String.fromCharCode(t):"");S.send(String.fromCharCode(6,0,0,0)+IntToStr(e.length)+e)},S.sendKvmData=function(e){if(!0!==S.onKvmDataAck)S.onKvmDataPending.push(e);else{try{urlvars&&urlvars.kvmdatatrace&&console.log("KVM-DataChannel-Send("+e.length+"): "+e)}catch(e){}e="\0KvmDataChannel\0"+e,S.send(String.fromCharCode(6,0,0,0)+IntToStr(e.length)+e),S.onKvmDataAck=!1}},S.sendKeepAlive=function(){S.lastKeepAlive<Date.now()-5e3&&(S.lastKeepAlive=Date.now(),S.send(String.fromCharCode(6,0,0,0)+IntToStr(16)+"\0KvmDataChannel\0"))},S.sendClipboardData=function(e){try{urlvars&&urlvars.kvmdatatrace&&console.log("KVM-ClipBoard-Send("+e.length+"): "+rstr2hex(e)+", "+e)}catch(e){}S.send(String.fromCharCode(6,0,0,0)+IntToStr(e.length)+e)},S.SendCtrlAltDelMsg=function(){S.sendcad()};var n=!(S.sendcad=function(){S.sendkey([[65507,1],[65513,1],[65535,1],[65535,0],[65513,0],[65507,0]])}),o=!1;function I(e,t,a){var n=Date.now();return"number"==typeof a?(S.recordedSize+=a,ShortToStr(e)+ShortToStr(t)+IntToStr(a)+IntToStr(n>>32)+IntToStr(32&n)):(S.recordedSize+=a.length,ShortToStr(e)+ShortToStr(t)+IntToStr(a.length)+IntToStr(n>>32)+IntToStr(32&n)+a)}return S.GrabMouseInput=function(){var e;1!=n&&((e=S.canvas.canvas).onmouseup=S.mouseup,e.onmousedown=S.mousedown,e.onmousemove=S.mousemove,e.onwheel=S.mousewheel,n=!0)},S.UnGrabMouseInput=function(){var e;0!=n&&((e=S.canvas.canvas).onmousemove=null,e.onmouseup=null,e.onmousedown=null,e.onwheel=null,n=!1)},S.GrabKeyInput=function(){1!=o&&(document.onkeyup=S.handleKeyUp,document.onkeydown=S.handleKeyDown,document.onkeypress=S.handleKeys,o=!0)},S.UnGrabKeyInput=function(){0!=o&&(document.onkeyup=null,document.onkeydown=null,document.onkeypress=null,o=!1)},S.handleKeys=function(e){return S.haltEvent(e)},S.handleKeyUp=function(e){return a(0,e)},S.handleKeyDown=function(e){return a(1,e)},S.haltEvent=function(e){return e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1},S.mousedblclick=function(e){},S.mousewheel=function(e){var t,a=0;if("number"==typeof e.deltaY?a=-1*e.deltaY:"number"==typeof e.detail?a=-1*e.detail:"number"==typeof e.wheelDelta&&(a=e.wheelDelta),0!=a)return S.ReverseMouseWheel&&(a*=-1),t=S.buttonmask,S.buttonmask|=1<<(0<a?3:4),S.mousemove(e,1),S.buttonmask=t,S.mousemove(e,1)},S.mousedown=function(e){return S.buttonmask|=1<<e.button,S.mousemove(e,1)},S.mouseup=function(e){return S.buttonmask&=65535-(1<<e.button),S.mousemove(e,1)},S.mousemove=function(e,t){var a,n,r,o,i,s;return S.state<4||(r=S.canvas.canvas.height/Q(S.canvasid).offsetHeight,n=S.canvas.canvas.width/Q(S.canvasid).offsetWidth,a=S.getPositionOfControl(Q(S.canvasid)),S.mx=(event.pageX-a[0])*n,S.my=(event.pageY-a[1])*r,event.addx&&(S.mx+=event.addx),event.addy&&(S.my+=event.addy),1!=S.rotation&&3!=S.rotation||(S.mx=S.mx*S.rwidth/S.width,S.my=S.my*S.rheight/S.height),1!=S.noMouseRotate&&(n=S.mx,a=S.my,r=0==S.rotation?n:1==S.rotation?a:2==S.rotation?S.canvas.canvas.width-n:3==S.rotation?S.canvas.canvas.height-a:0,S.my=(n=S.mx,a=S.my,0==S.rotation?a:1==S.rotation?S.canvas.canvas.width-n:2==S.rotation?S.canvas.canvas.height-a:3==S.rotation?n:0),S.mx=r),1==t?(S.send(String.fromCharCode(5,S.buttonmask)+ShortToStr(S.mx)+ShortToStr(S.my)),null!=S.mNagleTimer&&(clearTimeout(S.mNagleTimer),S.mNagleTimer=null)):null==S.mNagleTimer&&(S.mNagleTimer=setTimeout(function(){S.send(String.fromCharCode(5,S.buttonmask)+ShortToStr(S.mx)+ShortToStr(S.my)),S.mNagleTimer=null},50)),QV("DeskFocus",S.focusmode),0!=S.focusmode&&(a=Math.min(S.mx,S.canvas.canvas.width-S.focusmode),n=Math.min(S.my,S.canvas.canvas.height-S.focusmode),r=2*S.focusmode,o=(t=Q(S.canvasid)).offsetHeight/S.canvas.canvas.height,t=t.offsetWidth/S.canvas.canvas.width,i=QS("DeskFocus"),s=S.getPositionOfControl(Q(S.canvasid).parentElement),i.left=Math.max((a-S.focusmode)*o,0)+(pos[0]-s[0])+"px",i.top=Math.max((n-S.focusmode)*t,0)+(pos[1]-s[1])+"px",i.width=r*o-6+"px",i.height=r*o-6+"px"),S.haltEvent(e))},S.getPositionOfControl=function(e){var t=Array(2);for(t[0]=t[1]=0;e;)t[0]+=e.offsetLeft,t[1]+=e.offsetTop,e=e.offsetParent;return t},S.StartRecording=function(){return(null==S.recordedData||null==S.DeskRecordServerInit)&&(S.recordedHolding=!0,S.recordedData=[],S.recordedStart=Date.now(),S.recordedSize=0,S.recordedData.push(I(1,0,JSON.stringify({magic:"MeshCentralRelaySession",ver:1,time:(new Date).toLocaleString(),protocol:200,bpp:S.bpp,graymode:S.graymode,lowcolor:S.lowcolor,screenSize:[S.width,S.height]}))),S.DeskRecordServerInit=String.fromCharCode(S.width>>8,255&S.width,S.height>>8,255&S.height)+S.DeskRecordServerInit.substring(4),S.recordedData.push(I(2,1,S.DeskRecordServerInit)),S.recordedData.push(I(3,0,atob(S.CanvasId.toDataURL("image/png").split(",")[1]))),!0)},S.StopRecording=function(){var e;if(null!=S.recordedData)return(e=S.recordedData).push(I(3,0,"MeshCentralMCREC")),delete S.recordedData,delete S.recordedStart,delete S.recordedSize,e},S}
\ No newline at end of file
public/scripts/amt-ider-ws-0.0.1-min.js
+1
-1
@@ -1 +1 @@
1
-var CreateAmtRemoteIder=function(){var m={};function l(){urlvars&&urlvars.idertrace&&console.log(...arguments)}m.protocol=3,m.bytesToAmt=0,m.bytesFromAmt=0,m.rx_timeout=3e4,m.tx_timeout=0,m.heartbeat=2e4,m.version=1,m.acc="",m.inSequence=0,m.outSequence=0,m.iderinfo=null,m.enabled=!1,m.iderStart=0,m.floppy=null,m.cdrom=null,m.floppyReady=!1,m.cdromReady=!1,m.pingTimer=null;var f=String.fromCharCode(0,38,49,128,0,0,0,0,5,30,16,169,8,32,2,0,3,195,0,0,0,0,0,0,0,0,0,0,40,0,0,0,0,0,0,0,2,208,0,0),u=String.fromCharCode(0,92,36,128,0,0,0,0,1,10,0,1,0,0,0,0,2,0,0,0,3,22,0,160,0,0,0,0,0,18,2,0,0,0,0,0,0,0,160,0,0,0,5,30,16,169,8,32,2,0,3,195,0,0,0,0,0,0,0,0,0,0,40,0,0,0,0,0,0,0,2,208,0,0,8,10,0,0,0,0,0,0,0,0,0,0,11,6,0,0,0,17,36,49),h=String.fromCharCode(0,38,36,128,0,0,0,0,5,30,4,176,2,18,2,0,0,80,0,0,0,0,0,0,0,0,0,0,40,0,0,0,0,0,0,0,2,208,0,0),p=String.fromCharCode(0,92,36,128,0,0,0,0,1,10,0,1,0,0,0,0,2,0,0,0,3,22,0,160,0,0,0,0,0,18,2,0,0,0,0,0,0,0,160,0,0,0,5,30,4,176,2,18,2,0,0,80,0,0,0,0,0,0,0,0,0,0,40,0,0,0,0,0,0,0,2,208,0,0,8,10,0,0,0,0,0,0,0,0,0,0,11,6,0,0,0,17,36,49),R=String.fromCharCode(0,18,1,128,0,0,0,0,26,10,0,0,0,0,0,0,0,0,0,0),E=String.fromCharCode(0,18,1,128,0,0,0,0,29,10,0,0,0,0,0,0,0,0,0,0),I=String.fromCharCode(0,32,1,128,0,0,0,0,42,24,0,0,0,0,32,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0),g=String.fromCharCode(0,40,1,128,0,0,0,0,1,6,0,255,0,0,0,0,42,24,0,0,0,0,2,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0),b=(String.fromCharCode(0,0,0,40,0,0,0,8),String.fromCharCode(0,0,3,4,0,8,1,0)),A=String.fromCharCode(0,1,3,4,0,0,0,2),T=String.fromCharCode(0,2,3,4,0,0,0,0),D=String.fromCharCode(0,3,3,4,41,0,0,2),y=String.fromCharCode(0,16,1,8,0,0,8,0,0,1,0,0),_=String.fromCharCode(0,30,3,0),k=String.fromCharCode(1,0,3,0),v=String.fromCharCode(1,5,3,0),O=String.fromCharCode(0,18,36,128,0,0,0,0,1,10,0,1,0,0,0,0,2,0,0,0),X=String.fromCharCode(0,18,49,128,0,0,0,0,1,10,0,1,0,0,0,0,2,0,0,0),w=String.fromCharCode(0,14,1,128,0,0,0,0,1,6,0,255,0,0,0,0);function F(e,r,n,a){var o=null,t=0;160==e&&(o=m.floppy,null!=m.floppy&&(t=m.floppy.size>>9)),176==e&&(o=m.cdrom,null!=m.cdrom&&(t=m.cdrom.size>>11)),n<0||t<r+n?m.SendCommandEndResponse(1,5,e,33,0):0==n?m.SendCommandEndResponse(1,0,e,0,0):null!=o&&(160==e?(r<<=9,n<<=9):(r<<=11,n<<=11),null!==i?(console.log("IDERERROR: Read while performing read"),m.Stop()):(i=o,d=e,S=r,c=n,function e(r){var n=c,a=S;c>m.iderinfo.readbfr&&(n=m.iderinfo.readbfr);c-=n;S+=n;var o=new FileReader;o.onload=function(){m.SendDataToHost(d,0==c,this.result,1&r),0<c&&0==C?e(r):(i=null,C&&(m.SendCommand(71),C=!1))};o.readAsBinaryString(i.slice(a,a+n))}(a)))}m.xxStateChange=function(e){l("IDER-StateChange",e),0==e&&m.Stop(),3==e&&m.Start()},m.Start=function(){l("IDER-Start"),l(m.floppy,m.cdrom),m.bytesToAmt=0,m.bytesFromAmt=0,m.inSequence=0,m.outSequence=0,m.SendCommand(64,ShortToStrX(m.rx_timeout)+ShortToStrX(m.tx_timeout)+ShortToStrX(m.heartbeat)+IntToStrX(m.version))},m.Stop=function(){l("IDER-Stop"),m.pingTimer&&(clearInterval(m.pingTimer),m.pingTimer=null),m.parent.Stop()},m.ProcessData=function(e){for(m.bytesFromAmt+=e.length,m.acc+=e,l("IDER-ProcessData",m.acc.length,rstr2hex(m.acc));;){var r=m.ProcessDataEx();if(0==r)return;if(m.inSequence!=ReadIntX(m.acc,4))return l("ERROR: Out of sequence",m.inSequence,ReadIntX(m.acc,4)),void m.Stop();m.inSequence++,m.acc=m.acc.substring(r)}},m.SendCommand=function(e,r,n,a){null==r&&(r="");n=50<e&&1==n?2:0,a&&(n+=1),a=String.fromCharCode(e,0,0,n)+IntToStrX(m.outSequence++)+r;m.parent.xxSend(a),m.bytesToAmt+=a.length,75!=e&&l("IDER-SendData",a.length,rstr2hex(a))},m.SendCommandEndResponse=function(e,r,n,a,o){e?m.SendCommand(81,String.fromCharCode(0,0,0,0,0,0,0,0,0,0,0,0,197,0,3,0,0,0,n,80,0,0,0),!0):m.SendCommand(81,String.fromCharCode(0,0,0,0,0,0,0,0,0,0,0,0,135,r<<4,3,0,0,0,n,81,r,a,o),!0)},m.SendDataToHost=function(e,r,n,a){var o=a?0:n.length;1==r?m.SendCommand(84,String.fromCharCode(0,255&n.length,n.length>>8,0,a?180:181,0,2,0,255&o,o>>8,e,88,133,0,3,0,0,0,e,80,0,0,0,0,0,0)+n,r,a):m.SendCommand(84,String.fromCharCode(0,255&n.length,n.length>>8,0,a?180:181,0,2,0,255&o,o>>8,e,88,0,0,0,0,0,0,0,0,0,0,0,0,0,0)+n,r,a)},m.SendGetDataFromHost=function(e,r){m.SendCommand(82,String.fromCharCode(0,255&r,r>>8,0,181,0,0,0,255&r,r>>8,e,88,0,0,0,0,0,0,0,0,0,0,0),!1)},m.SendDisableEnableFeatures=function(e,r){null==r&&(r=""),m.SendCommand(72,String.fromCharCode(e)+r)};var d,S,c,C=!(m.ProcessDataEx=function(){if(!(m.acc.length<8))switch(m.acc.charCodeAt(0)){case 65:if(m.acc.length<30)return 0;var e=m.acc.charCodeAt(29);return m.acc.length<30+e?0:(m.iderinfo={},m.iderinfo.major=m.acc.charCodeAt(8),m.iderinfo.minor=m.acc.charCodeAt(9),m.iderinfo.fwmajor=m.acc.charCodeAt(10),m.iderinfo.fwminor=m.acc.charCodeAt(11),m.iderinfo.readbfr=ReadShortX(m.acc,16),m.iderinfo.writebfr=ReadShortX(m.acc,18),m.iderinfo.proto=m.acc.charCodeAt(21),m.iderinfo.iana=ReadIntX(m.acc,25),l(m.iderinfo),0!=m.iderinfo.proto&&(l("Unknown proto",m.iderinfo.proto),m.Stop()),8192<m.iderinfo.readbfr&&(l("Illegal read buffer size",m.iderinfo.readbfr),m.Stop()),8192<m.iderinfo.writebfr&&(l("Illegal write buffer size",m.iderinfo.writebfr),m.Stop()),0==m.iderStart?m.SendDisableEnableFeatures(3,IntToStrX(9)):1==m.iderStart?m.SendDisableEnableFeatures(3,IntToStrX(17)):2==m.iderStart&&m.SendDisableEnableFeatures(3,IntToStrX(25)),30+e);case 67:return l("CLOSE"),m.Stop(),8;case 68:return m.SendCommand(69),8;case 69:return l("PONG"),8;case 70:if(m.acc.length<9)return 0;var r=m.acc.charCodeAt(8);return null===i?(m.SendCommand(71),l("RESETOCCURED1",r)):(C=!0,l("RESETOCCURED2",r)),9;case 73:if(m.acc.length<13)return 0;var r=m.acc.charCodeAt(8),n=ReadIntX(m.acc,9);switch(l("STATUS_DATA",r,n),r){case 1:1&n&&(0==m.iderStart?m.SendDisableEnableFeatures(3,IntToStrX(9)):1==m.iderStart?m.SendDisableEnableFeatures(3,IntToStrX(17)):2==m.iderStart&&m.SendDisableEnableFeatures(3,IntToStrX(25)));break;case 2:m.enabled=!!(2&n),l("IDER Status: "+m.enabled);break;case 3:1!=n&&l("Register toggle failure")}return 13;case 74:return m.acc.length<11?0:(l("IDER: ABORT",m.acc.charCodeAt(8)),11);case 75:return 8;case 80:if(m.acc.length<28)return 0;var r=16&m.acc.charCodeAt(14)?176:160,a=m.acc.charCodeAt(14),o=m.acc.substring(16,28),t=m.acc.charCodeAt(9);return l("SCSI_CMD",r,rstr2hex(o),t,a),function(e,r,n,a){switch(r.charCodeAt(0)){case 0:switch(l("SCSI: TEST_UNIT_READY",e),e){case 160:if(null==m.floppy)return m.SendCommandEndResponse(1,2,e,58,0);if(0==m.floppyReady)return m.floppyReady=!0,m.SendCommandEndResponse(1,6,e,40,0);break;case 176:if(null==m.cdrom)return m.SendCommandEndResponse(1,2,e,58,0);if(0==m.cdromReady)return m.cdromReady=!0,m.SendCommandEndResponse(1,6,e,40,0);break;default:return l("SCSI Internal error 3",e)}m.SendCommandEndResponse(1,0,e,0,0);break;case 8:c=((31&r.charCodeAt(1))<<16)+(r.charCodeAt(2)<<8)+r.charCodeAt(3),S=r.charCodeAt(4),l("SCSI: READ_6",e,c,S=0==S?256:S),F(e,c,S,n);break;case 10:return c=((31&r.charCodeAt(1))<<16)+(r.charCodeAt(2)<<8)+r.charCodeAt(3),S=r.charCodeAt(4),l("SCSI: WRITE_6",e,c,S=0==S?256:S),m.SendCommandEndResponse(1,2,e,58,0);case 26:if(l("SCSI: MODE_SENSE_6",e),63==r.charCodeAt(2)&&0==r.charCodeAt(3)){var o=0,t=0;switch(e){case 160:if(null==m.floppy)return m.SendCommandEndResponse(1,2,e,58,0);o=0,t=128;break;case 176:if(null==m.cdrom)return m.SendCommandEndResponse(1,2,e,58,0);o=5,t=128;break;default:return l("SCSI Internal error 6",e)}return m.SendDataToHost(e,!0,String.fromCharCode(0,o,t,0),1&n)}m.SendCommandEndResponse(1,5,e,36,0);break;case 27:m.SendCommandEndResponse(1,0,e);break;case 30:if(l("SCSI: ALLOW_MEDIUM_REMOVAL",e),160==e&&null==m.floppy)return m.SendCommandEndResponse(1,2,e,58,0);if(176==e&&null==m.cdrom)return m.SendCommandEndResponse(1,2,e,58,0);m.SendCommandEndResponse(1,0,e,0,0);break;case 35:l("SCSI: READ_FORMAT_CAPACITIES",e);var d=ReadShort(r,7);switch(e){case 160:if(null==m.floppy||0==m.floppy.size)return m.SendCommandEndResponse(0,5,e,36,0);m.floppy.size;break;case 176:if(null==m.cdrom||0==m.cdrom.size)return m.SendCommandEndResponse(0,5,e,36,0);m.cdrom.size;break;default:return l("SCSI Internal error 4",e)}m.SendDataToHost(e,!0,IntToStr(8)+String.fromCharCode(0,0,11,64,2,0,2,0),1&n);break;case 37:l("SCSI: READ_CAPACITY",e);var S=0;switch(e){case 160:if(null==m.floppy||0==m.floppy.size)return m.SendCommandEndResponse(0,2,e,58,0);l("DEV_FLOPPY",S=null!=m.floppy?(m.floppy.size>>9)-1:S);break;case 176:if(null==m.floppy||0==m.floppy.size)return m.SendCommandEndResponse(0,2,e,58,0);l("DEV_CDDVD",S=null!=m.cdrom?(m.cdrom.size>>11)-1:S);break;default:return l("SCSI Internal error 4",e)}l("SCSI: READ_CAPACITY2",e,a),m.SendDataToHost(a,!0,IntToStr(S)+String.fromCharCode(0,0,176==e?8:2,0),1&n);break;case 40:c=ReadInt(r,2),S=ReadShort(r,7),l("SCSI: READ_10",e,c,S),F(e,c,S,n);break;case 42:case 46:c=ReadInt(r,2),S=ReadShort(r,7),l("SCSI: WRITE_10",e,c,S),m.SendGetDataFromHost(e,512*S);break;case 67:var d=ReadShort(r,7),c=2&r.charCodeAt(1),C=7&r.charCodeAt(2);switch(0==C&&(C=r.charCodeAt(9)>>6),l("SCSI: READ_TOC, dev="+e+", buflen="+d+", msf="+c+", format="+C),e){case 160:return m.SendCommandEndResponse(1,5,e,32,0);case 176:break;default:return l("SCSI Internal error 9",e)}1==C?m.SendDataToHost(e,!0,String.fromCharCode(0,10,1,1,0,20,1,0,0,0,0,0),1&n):0==C&&(c?m.SendDataToHost(e,!0,String.fromCharCode(0,18,1,1,0,20,1,0,0,0,2,0,0,20,170,0,0,0,52,19),1&n):m.SendDataToHost(e,!0,String.fromCharCode(0,18,1,1,0,20,1,0,0,0,0,0,0,20,170,0,0,0,0,0),1&n));break;case 70:C=2!=r.charCodeAt(1),c=ReadShort(r,2),d=ReadShort(r,7);if(l("SCSI: GET_CONFIGURATION",e,C,c,d),0==d)return m.SendDataToHost(e,!0,IntToStr(60)+IntToStr(8),1&n);var i=IntToStr(8);return 0==c&&(i+=b),(1==c||C&&c<1)&&(i+=A),(2==c||C&&c<2)&&(i+=T),(3==c||C&&c<3)&&(i+=D),(16==c||C&&c<16)&&(i+=y),(30==c||C&&c<30)&&(i+=_),(256==c||C&&c<256)&&(i+=k),(261==c||C&&c<261)&&(i+=v),(i=IntToStr(i.length)+i).length>d&&(i=i.substring(0,d)),m.SendDataToHost(e,!0,i,1&n);case 74:if(l("SCSI: GET_EVENT_STATUS_NOTIFICATION",e,r.charCodeAt(1),r.charCodeAt(4),r.charCodeAt(9)),1!=r.charCodeAt(1)&&16!=r.charCodeAt(4)){l("SCSI ERROR"),m.SendCommandEndResponse(1,5,e,38,1);break}C=0;(160==e&&null!=m.floppy||176==e&&null!=m.cdrom)&&(C=2),m.SendDataToHost(e,!0,String.fromCharCode(0,C,128,0),1&n);break;case 76:m.SendCommand(81,IntToStrX(0)+IntToStrX(0)+IntToStrX(0)+String.fromCharCode(135,80,3,0,0,0,176,81,5,32,0),!0);break;case 81:return l("SCSI READ_DISC_INFO",e),m.SendCommandEndResponse(0,5,e,32,0);case 85:return l("SCSI ERROR: MODE_SELECT_10",e),m.SendCommandEndResponse(1,5,e,32,0);case 90:l("SCSI: MODE_SENSE_10",e,63&r.charCodeAt(2));d=ReadShort(r,7),i=null;if(0==d)return m.SendDataToHost(e,!0,IntToStr(60)+IntToStr(8),1&n);var s=0;switch(160==e?null!=m.floppy&&(s=m.floppy.size>>9):null!=m.cdrom&&(s=m.cdrom.size>>11),63&r.charCodeAt(2)){case 1:i=160==e?s<=2880?O:X:w;break;case 5:160==e&&(i=s<=2880?h:f);break;case 63:i=160==e?s<=2880?p:u:g;break;case 26:176==e&&(i=R);break;case 29:176==e&&(i=E);break;case 42:176==e&&(i=I)}null==i?m.SendCommandEndResponse(0,5,e,32,0):m.SendDataToHost(e,!0,i,1&n);break;default:return l("IDER: Unknown SCSI command",r.charCodeAt(0)),m.SendCommandEndResponse(0,5,e,32,0)}}(r,o,t,a),28;case 83:if(m.acc.length<14)return 0;e=ReadShortX(m.acc,9);return m.acc.length<14+e?0:(l("SCSI_WRITE, len = "+(14+e)),m.SendCommand(81,String.fromCharCode(0,0,0,0,0,0,0,0,0,0,0,0,135,112,3,0,0,0,160,81,7,39,0),!0),14+e);default:l("Unknown IDER command",m.acc[0]),m.Stop()}return 0}),i=null;return m}
\ No newline at end of file
1
+var CreateAmtRemoteIder=function(){var m={};function l(){urlvars&&urlvars.idertrace&&console.log(...arguments)}m.protocol=3,m.bytesToAmt=0,m.bytesFromAmt=0,m.rx_timeout=3e4,m.tx_timeout=0,m.heartbeat=2e4,m.version=1,m.acc="",m.inSequence=0,m.outSequence=0,m.iderinfo=null,m.enabled=!1,m.iderStart=0,m.floppy=null,m.cdrom=null,m.floppyReady=!1,m.cdromReady=!1,m.pingTimer=null;var f=String.fromCharCode(0,38,49,128,0,0,0,0,5,30,16,169,8,32,2,0,3,195,0,0,0,0,0,0,0,0,0,0,40,0,0,0,0,0,0,0,2,208,0,0),u=String.fromCharCode(0,92,36,128,0,0,0,0,1,10,0,1,0,0,0,0,2,0,0,0,3,22,0,160,0,0,0,0,0,18,2,0,0,0,0,0,0,0,160,0,0,0,5,30,16,169,8,32,2,0,3,195,0,0,0,0,0,0,0,0,0,0,40,0,0,0,0,0,0,0,2,208,0,0,8,10,0,0,0,0,0,0,0,0,0,0,11,6,0,0,0,17,36,49),h=String.fromCharCode(0,38,36,128,0,0,0,0,5,30,4,176,2,18,2,0,0,80,0,0,0,0,0,0,0,0,0,0,40,0,0,0,0,0,0,0,2,208,0,0),p=String.fromCharCode(0,92,36,128,0,0,0,0,1,10,0,1,0,0,0,0,2,0,0,0,3,22,0,160,0,0,0,0,0,18,2,0,0,0,0,0,0,0,160,0,0,0,5,30,4,176,2,18,2,0,0,80,0,0,0,0,0,0,0,0,0,0,40,0,0,0,0,0,0,0,2,208,0,0,8,10,0,0,0,0,0,0,0,0,0,0,11,6,0,0,0,17,36,49),R=String.fromCharCode(0,18,1,128,0,0,0,0,26,10,0,0,0,0,0,0,0,0,0,0),E=String.fromCharCode(0,18,1,128,0,0,0,0,29,10,0,0,0,0,0,0,0,0,0,0),I=String.fromCharCode(0,32,1,128,0,0,0,0,42,24,0,0,0,0,32,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0),g=String.fromCharCode(0,40,1,128,0,0,0,0,1,6,0,255,0,0,0,0,42,24,0,0,0,0,2,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0),b=(String.fromCharCode(0,0,0,40,0,0,0,8),String.fromCharCode(0,0,3,4,0,8,1,0)),A=String.fromCharCode(0,1,3,4,0,0,0,2),T=String.fromCharCode(0,2,3,4,0,0,0,0),D=String.fromCharCode(0,3,3,4,41,0,0,2),y=String.fromCharCode(0,16,1,8,0,0,8,0,0,1,0,0),_=String.fromCharCode(0,30,3,0),k=String.fromCharCode(1,0,3,0),v=String.fromCharCode(1,5,3,0),O=String.fromCharCode(0,18,36,128,0,0,0,0,1,10,0,1,0,0,0,0,2,0,0,0),X=String.fromCharCode(0,18,49,128,0,0,0,0,1,10,0,1,0,0,0,0,2,0,0,0),w=String.fromCharCode(0,14,1,128,0,0,0,0,1,6,0,255,0,0,0,0);function F(e,r,n,a){var o=null,t=0;160==e&&(o=m.floppy,null!=m.floppy)&&(t=m.floppy.size>>9),176==e&&(o=m.cdrom,null!=m.cdrom)&&(t=m.cdrom.size>>11),n<0||t<r+n?m.SendCommandEndResponse(1,5,e,33,0):0==n?m.SendCommandEndResponse(1,0,e,0,0):null!=o&&(160==e?(r<<=9,n<<=9):(r<<=11,n<<=11),null!==s?(console.log("IDERERROR: Read while performing read"),m.Stop()):(s=o,d=e,S=r,c=n,function e(r){var n=c,a=S;c>m.iderinfo.readbfr&&(n=m.iderinfo.readbfr);c-=n;S+=n;var o=new FileReader;o.onload=function(){m.SendDataToHost(d,0==c,this.result,1&r),0<c&&0==C?e(r):(s=null,C&&(m.SendCommand(71),C=!1))};o.readAsBinaryString(s.slice(a,a+n))}(a)))}m.xxStateChange=function(e){l("IDER-StateChange",e),0==e&&m.Stop(),3==e&&m.Start()},m.Start=function(){l("IDER-Start"),l(m.floppy,m.cdrom),m.bytesToAmt=0,m.bytesFromAmt=0,m.inSequence=0,m.outSequence=0,m.SendCommand(64,ShortToStrX(m.rx_timeout)+ShortToStrX(m.tx_timeout)+ShortToStrX(m.heartbeat)+IntToStrX(m.version))},m.Stop=function(){l("IDER-Stop"),m.pingTimer&&(clearInterval(m.pingTimer),m.pingTimer=null),m.parent.Stop()},m.ProcessData=function(e){for(m.bytesFromAmt+=e.length,m.acc+=e,l("IDER-ProcessData",m.acc.length,rstr2hex(m.acc));;){var r=m.ProcessDataEx();if(0==r)return;if(m.inSequence!=ReadIntX(m.acc,4))return l("ERROR: Out of sequence",m.inSequence,ReadIntX(m.acc,4)),void m.Stop();m.inSequence++,m.acc=m.acc.substring(r)}},m.SendCommand=function(e,r,n,a){null==r&&(r="");n=50<e&&1==n?2:0,a&&(n+=1),a=String.fromCharCode(e,0,0,n)+IntToStrX(m.outSequence++)+r;m.parent.xxSend(a),m.bytesToAmt+=a.length,75!=e&&l("IDER-SendData",a.length,rstr2hex(a))},m.SendCommandEndResponse=function(e,r,n,a,o){e?m.SendCommand(81,String.fromCharCode(0,0,0,0,0,0,0,0,0,0,0,0,197,0,3,0,0,0,n,80,0,0,0),!0):m.SendCommand(81,String.fromCharCode(0,0,0,0,0,0,0,0,0,0,0,0,135,r<<4,3,0,0,0,n,81,r,a,o),!0)},m.SendDataToHost=function(e,r,n,a){var o=a?0:n.length;1==r?m.SendCommand(84,String.fromCharCode(0,255&n.length,n.length>>8,0,a?180:181,0,2,0,255&o,o>>8,e,88,133,0,3,0,0,0,e,80,0,0,0,0,0,0)+n,r,a):m.SendCommand(84,String.fromCharCode(0,255&n.length,n.length>>8,0,a?180:181,0,2,0,255&o,o>>8,e,88,0,0,0,0,0,0,0,0,0,0,0,0,0,0)+n,r,a)},m.SendGetDataFromHost=function(e,r){m.SendCommand(82,String.fromCharCode(0,255&r,r>>8,0,181,0,0,0,255&r,r>>8,e,88,0,0,0,0,0,0,0,0,0,0,0),!1)},m.SendDisableEnableFeatures=function(e,r){null==r&&(r=""),m.SendCommand(72,String.fromCharCode(e)+r)};var d,S,c,C=!(m.ProcessDataEx=function(){if(!(m.acc.length<8))switch(m.acc.charCodeAt(0)){case 65:return m.acc.length<30?0:(t=m.acc.charCodeAt(29),m.acc.length<30+t?0:(m.iderinfo={},m.iderinfo.major=m.acc.charCodeAt(8),m.iderinfo.minor=m.acc.charCodeAt(9),m.iderinfo.fwmajor=m.acc.charCodeAt(10),m.iderinfo.fwminor=m.acc.charCodeAt(11),m.iderinfo.readbfr=ReadShortX(m.acc,16),m.iderinfo.writebfr=ReadShortX(m.acc,18),m.iderinfo.proto=m.acc.charCodeAt(21),m.iderinfo.iana=ReadIntX(m.acc,25),l(m.iderinfo),0!=m.iderinfo.proto&&(l("Unknown proto",m.iderinfo.proto),m.Stop()),8192<m.iderinfo.readbfr&&(l("Illegal read buffer size",m.iderinfo.readbfr),m.Stop()),8192<m.iderinfo.writebfr&&(l("Illegal write buffer size",m.iderinfo.writebfr),m.Stop()),0==m.iderStart?m.SendDisableEnableFeatures(3,IntToStrX(9)):1==m.iderStart?m.SendDisableEnableFeatures(3,IntToStrX(17)):2==m.iderStart&&m.SendDisableEnableFeatures(3,IntToStrX(25)),30+t));case 67:return l("CLOSE"),m.Stop(),8;case 68:return m.SendCommand(69),8;case 69:return l("PONG"),8;case 70:return m.acc.length<9?0:(e=m.acc.charCodeAt(8),null===s?(m.SendCommand(71),l("RESETOCCURED1",e)):(C=!0,l("RESETOCCURED2",e)),9);case 73:if(m.acc.length<13)return 0;var e=m.acc.charCodeAt(8),r=ReadIntX(m.acc,9);switch(l("STATUS_DATA",e,r),e){case 1:1&r&&(0==m.iderStart?m.SendDisableEnableFeatures(3,IntToStrX(9)):1==m.iderStart?m.SendDisableEnableFeatures(3,IntToStrX(17)):2==m.iderStart&&m.SendDisableEnableFeatures(3,IntToStrX(25)));break;case 2:m.enabled=!!(2&r),l("IDER Status: "+m.enabled);break;case 3:1!=r&&l("Register toggle failure")}return 13;case 74:return m.acc.length<11?0:(l("IDER: ABORT",m.acc.charCodeAt(8)),11);case 75:return 8;case 80:var n,a,o;return m.acc.length<28?0:(e=16&m.acc.charCodeAt(14)?176:160,n=m.acc.charCodeAt(14),a=m.acc.substring(16,28),o=m.acc.charCodeAt(9),l("SCSI_CMD",e,rstr2hex(a),o,n),function(e,r,n,a){switch(r.charCodeAt(0)){case 0:switch(l("SCSI: TEST_UNIT_READY",e),e){case 160:if(null==m.floppy)return m.SendCommandEndResponse(1,2,e,58,0);if(0==m.floppyReady)return m.floppyReady=!0,m.SendCommandEndResponse(1,6,e,40,0);break;case 176:if(null==m.cdrom)return m.SendCommandEndResponse(1,2,e,58,0);if(0==m.cdromReady)return m.cdromReady=!0,m.SendCommandEndResponse(1,6,e,40,0);break;default:return l("SCSI Internal error 3",e)}m.SendCommandEndResponse(1,0,e,0,0);break;case 8:c=((31&r.charCodeAt(1))<<16)+(r.charCodeAt(2)<<8)+r.charCodeAt(3),S=r.charCodeAt(4),l("SCSI: READ_6",e,c,S=0==S?256:S),F(e,c,S,n);break;case 10:return c=((31&r.charCodeAt(1))<<16)+(r.charCodeAt(2)<<8)+r.charCodeAt(3),S=r.charCodeAt(4),l("SCSI: WRITE_6",e,c,S=0==S?256:S),m.SendCommandEndResponse(1,2,e,58,0);case 26:if(l("SCSI: MODE_SENSE_6",e),63==r.charCodeAt(2)&&0==r.charCodeAt(3)){var o=0,t=0;switch(e){case 160:if(null==m.floppy)return m.SendCommandEndResponse(1,2,e,58,0);o=0,t=128;break;case 176:if(null==m.cdrom)return m.SendCommandEndResponse(1,2,e,58,0);o=5,t=128;break;default:return l("SCSI Internal error 6",e)}return m.SendDataToHost(e,!0,String.fromCharCode(0,o,t,0),1&n)}m.SendCommandEndResponse(1,5,e,36,0);break;case 27:m.SendCommandEndResponse(1,0,e);break;case 30:if(l("SCSI: ALLOW_MEDIUM_REMOVAL",e),160==e&&null==m.floppy)return m.SendCommandEndResponse(1,2,e,58,0);if(176==e&&null==m.cdrom)return m.SendCommandEndResponse(1,2,e,58,0);m.SendCommandEndResponse(1,0,e,0,0);break;case 35:l("SCSI: READ_FORMAT_CAPACITIES",e);var d=ReadShort(r,7);switch(e){case 160:if(null==m.floppy||0==m.floppy.size)return m.SendCommandEndResponse(0,5,e,36,0);m.floppy.size;break;case 176:if(null==m.cdrom||0==m.cdrom.size)return m.SendCommandEndResponse(0,5,e,36,0);m.cdrom.size;break;default:return l("SCSI Internal error 4",e)}m.SendDataToHost(e,!0,IntToStr(8)+String.fromCharCode(0,0,11,64,2,0,2,0),1&n);break;case 37:l("SCSI: READ_CAPACITY",e);var S=0;switch(e){case 160:if(null==m.floppy||0==m.floppy.size)return m.SendCommandEndResponse(0,2,e,58,0);l("DEV_FLOPPY",S=null!=m.floppy?(m.floppy.size>>9)-1:S);break;case 176:if(null==m.floppy||0==m.floppy.size)return m.SendCommandEndResponse(0,2,e,58,0);l("DEV_CDDVD",S=null!=m.cdrom?(m.cdrom.size>>11)-1:S);break;default:return l("SCSI Internal error 4",e)}l("SCSI: READ_CAPACITY2",e,a),m.SendDataToHost(a,!0,IntToStr(S)+String.fromCharCode(0,0,176==e?8:2,0),1&n);break;case 40:c=ReadInt(r,2),S=ReadShort(r,7),l("SCSI: READ_10",e,c,S),F(e,c,S,n);break;case 42:case 46:c=ReadInt(r,2),S=ReadShort(r,7),l("SCSI: WRITE_10",e,c,S),m.SendGetDataFromHost(e,512*S);break;case 67:var d=ReadShort(r,7),c=2&r.charCodeAt(1),C=7&r.charCodeAt(2);switch(0==C&&(C=r.charCodeAt(9)>>6),l("SCSI: READ_TOC, dev="+e+", buflen="+d+", msf="+c+", format="+C),e){case 160:return m.SendCommandEndResponse(1,5,e,32,0);case 176:break;default:return l("SCSI Internal error 9",e)}1==C?m.SendDataToHost(e,!0,String.fromCharCode(0,10,1,1,0,20,1,0,0,0,0,0),1&n):0==C&&(c?m.SendDataToHost(e,!0,String.fromCharCode(0,18,1,1,0,20,1,0,0,0,2,0,0,20,170,0,0,0,52,19),1&n):m.SendDataToHost(e,!0,String.fromCharCode(0,18,1,1,0,20,1,0,0,0,0,0,0,20,170,0,0,0,0,0),1&n));break;case 70:C=2!=r.charCodeAt(1),c=ReadShort(r,2),d=ReadShort(r,7);return l("SCSI: GET_CONFIGURATION",e,C,c,d),0==d?m.SendDataToHost(e,!0,IntToStr(60)+IntToStr(8),1&n):(s=IntToStr(8),0==c&&(s+=b),(1==c||C&&c<1)&&(s+=A),(2==c||C&&c<2)&&(s+=T),(3==c||C&&c<3)&&(s+=D),(16==c||C&&c<16)&&(s+=y),(30==c||C&&c<30)&&(s+=_),(256==c||C&&c<256)&&(s+=k),(261==c||C&&c<261)&&(s+=v),(s=IntToStr(s.length)+s).length>d&&(s=s.substring(0,d)),m.SendDataToHost(e,!0,s,1&n));case 74:l("SCSI: GET_EVENT_STATUS_NOTIFICATION",e,r.charCodeAt(1),r.charCodeAt(4),r.charCodeAt(9)),1!=r.charCodeAt(1)&&16!=r.charCodeAt(4)?(l("SCSI ERROR"),m.SendCommandEndResponse(1,5,e,38,1)):(C=0,(160==e&&null!=m.floppy||176==e&&null!=m.cdrom)&&(C=2),m.SendDataToHost(e,!0,String.fromCharCode(0,C,128,0),1&n));break;case 76:m.SendCommand(81,IntToStrX(0)+IntToStrX(0)+IntToStrX(0)+String.fromCharCode(135,80,3,0,0,0,176,81,5,32,0),!0);break;case 81:return l("SCSI READ_DISC_INFO",e),m.SendCommandEndResponse(0,5,e,32,0);case 85:return l("SCSI ERROR: MODE_SELECT_10",e),m.SendCommandEndResponse(1,5,e,32,0);case 90:l("SCSI: MODE_SENSE_10",e,63&r.charCodeAt(2));var d=ReadShort(r,7),s=null;if(0==d)return m.SendDataToHost(e,!0,IntToStr(60)+IntToStr(8),1&n);var i=0;switch(160==e?null!=m.floppy&&(i=m.floppy.size>>9):null!=m.cdrom&&(i=m.cdrom.size>>11),63&r.charCodeAt(2)){case 1:s=160==e?i<=2880?O:X:w;break;case 5:160==e&&(s=i<=2880?h:f);break;case 63:s=160==e?i<=2880?p:u:g;break;case 26:176==e&&(s=R);break;case 29:176==e&&(s=E);break;case 42:176==e&&(s=I)}null==s?m.SendCommandEndResponse(0,5,e,32,0):m.SendDataToHost(e,!0,s,1&n);break;default:return l("IDER: Unknown SCSI command",r.charCodeAt(0)),m.SendCommandEndResponse(0,5,e,32,0)}}(e,a,o,n),28);case 83:var t;return m.acc.length<14?0:(t=ReadShortX(m.acc,9),m.acc.length<14+t?0:(l("SCSI_WRITE, len = "+(14+t)),m.SendCommand(81,String.fromCharCode(0,0,0,0,0,0,0,0,0,0,0,0,135,112,3,0,0,0,160,81,7,39,0),!0),14+t));default:l("Unknown IDER command",m.acc[0]),m.Stop()}return 0}),s=null;return m}
\ No newline at end of file
public/scripts/amt-redir-ws-0.1.0-min.js
+1
-1
@@ -1 +1 @@
1
-var CreateAmtRedirect=function(e,o){var x={};function y(e){return String.fromCharCode.apply(null,e)}return((x.m=e).parent=x).authCookie=o,x.State=0,x.socket=null,x.host=null,x.port=0,x.user=null,x.pass=null,x.authuri="/RedirectionService",x.tlsv1only=0,x.inDataCount=0,x.connectstate=0,x.protocol=e.protocol,x.acc=null,x.amtsequence=1,x.amtkeepalivetimer=null,x.onStateChanged=null,x.Start=function(e,t,n,r,a){x.host=e,x.port=t,x.user=n,x.pass=r,x.connectstate=0,x.inDataCount=0;e=window.location.protocol.replace("http","ws")+"//"+window.location.host+window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/webrelay.ashx?p=2&host="+e+"&port="+t+"&tls="+a+("*"==n?"&serverauth=1":"")+(void 0===r?"&serverauth=1&user="+n:"");null!=o&&""!=o&&(e+="&auth="+o),x.socket=new WebSocket(e),x.socket.binaryType="arraybuffer",x.socket.onopen=x.xxOnSocketConnected,x.socket.onmessage=x.xxOnMessage,x.socket.onclose=x.xxOnSocketClosed,x.xxStateChange(1)},x.xxOnSocketConnected=function(){x.xxStateChange(2),1==x.protocol&&x.directSend(new Uint8Array([16,0,0,0,83,79,76,32])),2==x.protocol&&x.directSend(new Uint8Array([16,1,0,0,75,86,77,82])),3==x.protocol&&x.directSend(new Uint8Array([16,0,0,0,73,68,69,82]))},x.xxOnMessage=function(e){if(e.data&&-1!=x.connectstate){if(x.inDataCount++,1==x.connectstate&&(2==x.protocol||3==x.protocol))return x.m.ProcessBinaryData?x.m.ProcessBinaryData(e.data):x.m.ProcessData(y(e.data));var t;for(null==x.acc?x.acc=e.data:((t=new Uint8Array(x.acc.byteLength+e.data.byteLength)).set(new Uint8Array(x.acc),0),t.set(new Uint8Array(e.data),x.acc.byteLength),x.acc=t.buffer);null!=x.acc&&1<=x.acc.byteLength;){var n=0,r=new Uint8Array(x.acc);switch(r[0]){case 17:if(r.byteLength<4)return;var a=r[1];if(0===a){if(r.byteLength<13)return;a=r[12];if(r.byteLength<13+a)return;x.directSend(new Uint8Array([19,0,0,0,0,0,0,0,0])),n=13+a}else x.Stop(1);break;case 20:if(r.byteLength<9)return;var o=new DataView(x.acc).getUint32(5,!0);if(r.byteLength<9+o)return;var a=r[1],c=r[4],s=[];for(i=0;i<o;i++)s.push(r[9+i]);var l=new Uint8Array(x.acc.slice(9,9+o)),n=9+o;if(0==c)0<=s.indexOf(4)?x.xxSend(String.fromCharCode(19,0,0,0,4)+IntToStrX(x.user.length+x.authuri.length+8)+String.fromCharCode(x.user.length)+x.user+String.fromCharCode(0,0)+String.fromCharCode(x.authuri.length)+x.authuri+String.fromCharCode(0,0,0,0)):x.Stop(2);else if(3!=c&&4!=c||1!=a)if(0==a)switch(x.protocol){case 1:x.xxSend(String.fromCharCode(32,0,0,0)+IntToStrX(x.amtsequence++)+ShortToStrX(1e4)+ShortToStrX(100)+ShortToStrX(0)+ShortToStrX(1e4)+ShortToStrX(100)+ShortToStrX(0)+IntToStrX(0));break;case 2:x.directSend(new Uint8Array([64,0,0,0,0,0,0,0]));break;case 3:x.connectstate=1,x.xxStateChange(3)}else x.Stop(3);else{var h=0,u=l[0],S=y(new Uint8Array(l.buffer.slice(1,1+u))),u=l[h+=u+1],d=y(new Uint8Array(l.buffer.slice(h+1,h+1+u))),u=(h+=u+1,null),f=function(e){for(var t="",n=0;n<e;n++)t+="abcdef0123456789".charAt(Math.floor(16*Math.random()));return t}(32),g="00000002",C="",l=(4==c&&(m=l[h],u=y(new Uint8Array(l.buffer.slice(h+1,h+1+m))),C=g+":"+f+":"+u+":"),hex_md5(hex_md5(x.user+":"+S+":"+x.pass)+":"+d+":"+C+hex_md5("POST:"+x.authuri))),h=x.user.length+S.length+d.length+x.authuri.length+f.length+g.length+l.length+7,m=(4==c&&(h+=u.length+1),String.fromCharCode(19,0,0,0,c)+IntToStrX(h)+String.fromCharCode(x.user.length)+x.user+String.fromCharCode(S.length)+S+String.fromCharCode(d.length)+d+String.fromCharCode(x.authuri.length)+x.authuri+String.fromCharCode(f.length)+f+String.fromCharCode(g.length)+g+String.fromCharCode(l.length)+l);4==c&&(m+=String.fromCharCode(u.length)+u),x.xxSend(m)}break;case 33:if(r.byteLength<23)break;n=23,x.xxSend(String.fromCharCode(39,0,0,0)+IntToStrX(x.amtsequence++)+String.fromCharCode(0,0,27,0,0,0)),1==x.protocol&&(x.amtkeepalivetimer=setInterval(x.xxSendAmtKeepAlive,2e3)),x.connectstate=1,x.xxStateChange(3);break;case 41:if(r.byteLength<10)break;n=10;break;case 42:if(r.byteLength<10)break;C=10+(r[9]<<8)+r[8];if(r.byteLength<C)break;x.m.ProcessBinaryData?x.m.ProcessBinaryData(new Uint8Array(r.buffer.slice(10,C))):x.m.ProcessData(y(new Uint8Array(r.buffer.slice(10,C)))),n=C;break;case 43:if(r.byteLength<8)break;n=8;break;case 65:if(r.byteLength<8)break;x.connectstate=1,x.m.Start(),8<r.byteLength&&(x.m.ProcessBinaryData?x.m.ProcessBinaryData(new Uint8Array(r.buffer.slice(8))):x.m.ProcessData(y(new Uint8Array(r.buffer.slice(8))))),n=r.byteLength;break;case 240:x.serverIsRecording=!0,n=1;break;default:return console.log("Unknown Intel AMT command: "+r[0]+" acclen="+r.byteLength),void x.Stop(4)}if(0==n)return;n!=x.acc.byteLength?x.acc=x.acc.slice(n):x.acc=null}}},x.directSend=function(e){try{x.socket.send(e.buffer)}catch(e){}},x.xxSend=function(e){if(null!=x.socket&&x.socket.readyState==WebSocket.OPEN){for(var t=new Uint8Array(e.length),n=0;n<e.length;++n)t[n]=e.charCodeAt(n);try{x.socket.send(t.buffer)}catch(e){}}},x.Send=x.send=function(e){null!=x.socket&&1==x.connectstate&&(1==x.protocol?x.xxSend(String.fromCharCode(40,0,0,0)+IntToStrX(x.amtsequence++)+ShortToStrX(e.length)+e):x.xxSend(e))},x.xxSendAmtKeepAlive=function(){null!=x.socket&&x.xxSend(String.fromCharCode(43,0,0,0)+IntToStrX(x.amtsequence++))},x.xxOnSocketClosed=function(){0==x.inDataCount&&0==x.tlsv1only?(x.tlsv1only=1,x.socket=new WebSocket(window.location.protocol.replace("http","ws")+"//"+window.location.host+window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/webrelay.ashx?p=2&host="+x.host+"&port="+x.port+"&tls="+x.tls+"&tls1only=1"+("*"==x.user?"&serverauth=1":"")+("undefined"==typeof pass?"&serverauth=1&user="+x.user:"")),x.socket.binaryType="arraybuffer",x.socket.onopen=x.xxOnSocketConnected,x.socket.onmessage=x.xxOnMessage,x.socket.onclose=x.xxOnSocketClosed):x.Stop(5)},x.xxStateChange=function(e){x.State!=e&&(x.State=e,x.m.xxStateChange(x.State),null!=x.onStateChanged&&x.onStateChanged(x,x.State))},x.Stop=function(e){x.xxStateChange(0),x.connectstate=-1,(x.acc=null)!=x.socket&&(x.socket.close(),x.socket=null),null!=x.amtkeepalivetimer&&(clearInterval(x.amtkeepalivetimer),x.amtkeepalivetimer=null)},x}
\ No newline at end of file
1
+var CreateAmtRedirect=function(e,o){var y={};function x(e){return String.fromCharCode.apply(null,e)}return((y.m=e).parent=y).authCookie=o,y.State=0,y.socket=null,y.host=null,y.port=0,y.user=null,y.pass=null,y.authuri="/RedirectionService",y.tlsv1only=0,y.inDataCount=0,y.connectstate=0,y.protocol=e.protocol,y.acc=null,y.amtsequence=1,y.amtkeepalivetimer=null,y.onStateChanged=null,y.Start=function(e,t,n,r,a){y.host=e,y.port=t,y.user=n,y.pass=r,y.connectstate=0,y.inDataCount=0;e=window.location.protocol.replace("http","ws")+"//"+window.location.host+window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/webrelay.ashx?p=2&host="+e+"&port="+t+"&tls="+a+("*"==n?"&serverauth=1":"")+(void 0===r?"&serverauth=1&user="+n:"");null!=o&&""!=o&&(e+="&auth="+o),y.socket=new WebSocket(e),y.socket.binaryType="arraybuffer",y.socket.onopen=y.xxOnSocketConnected,y.socket.onmessage=y.xxOnMessage,y.socket.onclose=y.xxOnSocketClosed,y.xxStateChange(1)},y.xxOnSocketConnected=function(){y.xxStateChange(2),1==y.protocol&&y.directSend(new Uint8Array([16,0,0,0,83,79,76,32])),2==y.protocol&&y.directSend(new Uint8Array([16,1,0,0,75,86,77,82])),3==y.protocol&&y.directSend(new Uint8Array([16,0,0,0,73,68,69,82]))},y.xxOnMessage=function(e){if(e.data&&-1!=y.connectstate){if(y.inDataCount++,1==y.connectstate&&(2==y.protocol||3==y.protocol))return y.m.ProcessBinaryData?y.m.ProcessBinaryData(e.data):y.m.ProcessData(x(e.data));var t;for(null==y.acc?y.acc=e.data:((t=new Uint8Array(y.acc.byteLength+e.data.byteLength)).set(new Uint8Array(y.acc),0),t.set(new Uint8Array(e.data),y.acc.byteLength),y.acc=t.buffer);null!=y.acc&&1<=y.acc.byteLength;){var n=0,r=new Uint8Array(y.acc);switch(r[0]){case 17:if(r.byteLength<4)return;var a=r[1];if(0===a){if(r.byteLength<13)return;a=r[12];if(r.byteLength<13+a)return;y.directSend(new Uint8Array([19,0,0,0,0,0,0,0,0])),n=13+a}else y.Stop(1);break;case 20:if(r.byteLength<9)return;var o=new DataView(y.acc).getUint32(5,!0);if(r.byteLength<9+o)return;var a=r[1],c=r[4],s=[];for(i=0;i<o;i++)s.push(r[9+i]);var l=new Uint8Array(y.acc.slice(9,9+o)),n=9+o;if(0==c)0<=s.indexOf(4)?y.xxSend(String.fromCharCode(19,0,0,0,4)+IntToStrX(y.user.length+y.authuri.length+8)+String.fromCharCode(y.user.length)+y.user+String.fromCharCode(0,0)+String.fromCharCode(y.authuri.length)+y.authuri+String.fromCharCode(0,0,0,0)):y.Stop(2);else if(3!=c&&4!=c||1!=a)if(0==a)switch(y.protocol){case 1:y.xxSend(String.fromCharCode(32,0,0,0)+IntToStrX(y.amtsequence++)+ShortToStrX(1e4)+ShortToStrX(100)+ShortToStrX(0)+ShortToStrX(1e4)+ShortToStrX(100)+ShortToStrX(0)+IntToStrX(0));break;case 2:y.directSend(new Uint8Array([64,0,0,0,0,0,0,0]));break;case 3:y.connectstate=1,y.xxStateChange(3)}else y.Stop(3);else{var h=0,u=l[0],S=x(new Uint8Array(l.buffer.slice(1,1+u))),u=l[h+=u+1],d=x(new Uint8Array(l.buffer.slice(h+1,h+1+u))),u=(h+=u+1,null),f=function(e){for(var t="",n=0;n<e;n++)t+="abcdef0123456789".charAt(Math.floor(16*Math.random()));return t}(32),g="00000002",C="",l=(4==c&&(m=l[h],u=x(new Uint8Array(l.buffer.slice(h+1,h+1+m))),C=g+":"+f+":"+u+":"),hex_md5(hex_md5(y.user+":"+S+":"+y.pass)+":"+d+":"+C+hex_md5("POST:"+y.authuri))),h=y.user.length+S.length+d.length+y.authuri.length+f.length+g.length+l.length+7,m=(4==c&&(h+=u.length+1),String.fromCharCode(19,0,0,0,c)+IntToStrX(h)+String.fromCharCode(y.user.length)+y.user+String.fromCharCode(S.length)+S+String.fromCharCode(d.length)+d+String.fromCharCode(y.authuri.length)+y.authuri+String.fromCharCode(f.length)+f+String.fromCharCode(g.length)+g+String.fromCharCode(l.length)+l);4==c&&(m+=String.fromCharCode(u.length)+u),y.xxSend(m)}break;case 33:r.byteLength<23||(n=23,y.xxSend(String.fromCharCode(39,0,0,0)+IntToStrX(y.amtsequence++)+String.fromCharCode(0,0,27,0,0,0)),1==y.protocol&&(y.amtkeepalivetimer=setInterval(y.xxSendAmtKeepAlive,2e3)),y.connectstate=1,y.xxStateChange(3));break;case 41:r.byteLength<10||(n=10);break;case 42:r.byteLength<10||(C=10+(r[9]<<8)+r[8],r.byteLength<C)||(y.m.ProcessBinaryData?y.m.ProcessBinaryData(new Uint8Array(r.buffer.slice(10,C))):y.m.ProcessData(x(new Uint8Array(r.buffer.slice(10,C)))),n=C);break;case 43:r.byteLength<8||(n=8);break;case 65:r.byteLength<8||(y.connectstate=1,y.m.Start(),8<r.byteLength&&(y.m.ProcessBinaryData?y.m.ProcessBinaryData(new Uint8Array(r.buffer.slice(8))):y.m.ProcessData(x(new Uint8Array(r.buffer.slice(8))))),n=r.byteLength);break;case 240:y.serverIsRecording=!0,n=1;break;default:return console.log("Unknown Intel AMT command: "+r[0]+" acclen="+r.byteLength),void y.Stop(4)}if(0==n)return;n!=y.acc.byteLength?y.acc=y.acc.slice(n):y.acc=null}}},y.directSend=function(e){try{y.socket.send(e.buffer)}catch(e){}},y.xxSend=function(e){if(null!=y.socket&&y.socket.readyState==WebSocket.OPEN){for(var t=new Uint8Array(e.length),n=0;n<e.length;++n)t[n]=e.charCodeAt(n);try{y.socket.send(t.buffer)}catch(e){}}},y.Send=y.send=function(e){null!=y.socket&&1==y.connectstate&&y.xxSend(1==y.protocol?String.fromCharCode(40,0,0,0)+IntToStrX(y.amtsequence++)+ShortToStrX(e.length)+e:e)},y.xxSendAmtKeepAlive=function(){null!=y.socket&&y.xxSend(String.fromCharCode(43,0,0,0)+IntToStrX(y.amtsequence++))},y.xxOnSocketClosed=function(){0==y.inDataCount&&0==y.tlsv1only?(y.tlsv1only=1,y.socket=new WebSocket(window.location.protocol.replace("http","ws")+"//"+window.location.host+window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/webrelay.ashx?p=2&host="+y.host+"&port="+y.port+"&tls="+y.tls+"&tls1only=1"+("*"==y.user?"&serverauth=1":"")+("undefined"==typeof pass?"&serverauth=1&user="+y.user:"")),y.socket.binaryType="arraybuffer",y.socket.onopen=y.xxOnSocketConnected,y.socket.onmessage=y.xxOnMessage,y.socket.onclose=y.xxOnSocketClosed):y.Stop(5)},y.xxStateChange=function(e){y.State!=e&&(y.State=e,y.m.xxStateChange(y.State),null!=y.onStateChanged)&&y.onStateChanged(y,y.State)},y.Stop=function(e){y.xxStateChange(0),y.connectstate=-1,(y.acc=null)!=y.socket&&(y.socket.close(),y.socket=null),null!=y.amtkeepalivetimer&&(clearInterval(y.amtkeepalivetimer),y.amtkeepalivetimer=null)},y}
\ No newline at end of file
public/scripts/amt-script-0.2.0-min.js
+1
-1
@@ -1 +1 @@
1
-function script_setup(e,t){var d={startvars:t};return e.length<6?(console.error("Invalid script length"),null):612182341!=ReadInt(e,0)?(console.error("Invalid binary script"),null):1<ReadShort(e,4)?(console.error("Unsupported script version"),null):(d.script=e.substring(6),d.reset=function(e){d.stop(),d.ip=0,d.variables=t,d.state=1},d.start=function(e){d.stop(),0<(d.stepspeed=e)&&(d.timer=setInterval(function(){d.step()},e))},d.stop=function(){null!=d.timer&&clearInterval(d.timer),d.timer=null,d.stepspeed=0},d.getVar=function(e){if(null!=e)return d.getVarEx(e.split("."),d.variables)},d.getVarEx=function(e,t){try{return null==e?void 0:0==e.length?t:d.getVarEx(e.slice(1),t[e[0]])}catch(e){return null}},d.setVar=function(e,t){d.setVarEx(e.split("."),d.variables,t)},d.setVarEx=function(e,t,r){1==e.length?t[e[0]]=r:d.setVarEx(e.slice(1),t[e[0]],r)},d.step=function(){if(1==d.state){if(d.ip<d.script.length){var e=ReadShort(d.script,d.ip),t=ReadShort(d.script,d.ip+2),r=ReadShort(d.script,d.ip+4),n=d.ip+6,a=[];for(s in d.variables)s.startsWith("__")&&delete d.variables[s];for(var s=0;s<r;s++){var o=ReadShort(d.script,n),i=(c=d.script.substring(n+2,n+2+o)).charCodeAt(0);if(c=c.substring(1),i<2){for(;1<c.split("{").length;)var l=c.split("{").pop().split("}").shift(),c=c.replace("{"+l+"}",d.getVar(l));1==i&&(d.variables["__"+s]=decodeURI(c),c="__"+s),a.push(c)}2!=i&&3!=i||(d.variables["__"+s]=ReadSInt(c,0),a.push("__"+s)),n+=2+o}d.ip+=t;for(var u,p=[],s=0;s<10;s++)p.push(d.getVar(a[s]));try{if(e<1e4)switch(e){case 0:break;case 1:(!p[2]||"<"==p[2]&&p[1]<p[3]||"<="==p[2]&&p[1]<=p[3]||"!="==p[2]&&p[1]!=p[3]||"="==p[2]&&p[1]==p[3]||">="==p[2]&&p[1]>=p[3]||">"==p[2]&&p[1]>p[3])&&(d.ip=p[0]);break;case 2:null==a[1]?delete d.variables[a[0]]:d.setVar(a[0],p[1]);break;case 3:d.onConsole?d.onConsole(d.toString(p[0]),d):console.log(d.toString(p[0]));break;case 4:d.state=2,d.dialog=!0,setDialogMode(11,p[0],p[2],d.xxStepDialogOk,p[1],d);break;case 5:for(var s in p[1])p[1][s][p[2]]==p[3]&&(u=s);break;case 6:u=p[1].substr(p[2],p[3]);break;case 7:u=p[1].indexOf(p[2]);break;case 8:u=p[1].split(p[2]);break;case 9:u=p[1].join(p[2]);break;case 10:u=p[1].length;break;case 11:u=JSON.parse(p[1]);break;case 12:u=JSON.stringify(p[1]);break;case 13:u=p[1]+p[2];break;case 14:u=p[1]-p[2];break;case 15:u=parseInt(p[1]);break;case 16:d.state=2,d.amtstack.BatchEnum(p[0],p[1],d.xxWsmanReturn,d);break;case 17:d.state=2,d.amtstack.Put(p[0],p[1],d.xxWsmanReturn,d);break;case 18:d.state=2,d.amtstack.Create(p[0],p[1],d.xxWsmanReturn,d);break;case 19:d.state=2,d.amtstack.Delete(p[0],p[1],d.xxWsmanReturn,d);break;case 20:d.state=2,d.amtstack.Exec(p[0],p[1],p[2],d.xxWsmanReturn,d,0,p[3]);break;case 21:d.stepspeed=p[0],null!=d.timer&&(clearInterval(d.timer),d.timer=setInterval(function(){d.step()},d.stepspeed));break;case 22:d.state=2,d.amtstack.Subscribe(p[0],p[1],p[2],d.xxWsmanReturn,d,0,p[3],p[4],p[5],p[6]);break;case 23:d.state=2,d.amtstack.UnSubscribe(p[0],d.xxWsmanReturn,d,0,p[1]);break;case 24:console.log(p[1],p[2],p[1].charCodeAt(p[2])),u=p[1].charCodeAt(p[2]);break;case 25:d.state=2,amtcert_signWithCaKey(p[0],null,p[1],{CN:"Untrusted Root Certificate"},d.xxSignWithDummyCaReturn);break;default:d.state=9,console.error("Script Error, unknown command: "+e)}else e<2e4?u=script_functionTableX2[e-1e4](p[1],p[2],p[3],p[4],p[5],p[6]):script_functionTableX3&&script_functionTableX3[e-2e4]&&(u=script_functionTableX3[e-2e4](d,p[1],p[2],p[3],p[4],p[5],p[6]));null!=u&&d.setVar(a[0],u)}catch(e){"object"==typeof e&&(e=e.message),d.setVar("_exception",e)}}return 1==d.state&&d.ip>=d.script.length&&(d.state=0,d.stop()),d.onStep&&d.onStep(d),d}},d.xxStepDialogOk=function(e){d.variables.DialogSelect=e,d.state=1,d.dialog=!1,d.onStep&&d.onStep(d)},d.xxWsmanReturnFix=function(e){e&&null!=e&&(e.Header&&(e.Header=e.Header,delete e.Header),e.Body&&(e.Body=e.Body,delete e.Body),e.Responses&&(e.Responses=e.Responses,delete e.Responses),e.Response&&(e.Response=e.Response,delete e.Response),e.ReturnValueStr&&(e.ReturnValueStr=e.ReturnValueStr,delete e.ReturnValueStr))},d.xxWsmanReturn=function(e,t,r,n){if(r)for(var a in d.xxWsmanReturnFix(r),r)for(var s in d.xxWsmanReturnFix(r[a]),r[a])d.xxWsmanReturnFix(r[a][s]);d.setVar(t,r),d.setVar("wsman_result",n),d.setVar("wsman_result_str",httpErrorTable[n]||"Error #"+n),d.state=1,d.onStep&&d.onStep(d)},d.xxSignWithDummyCaReturn=function(e){d.setVar("signed_cert",btoa(_arrayBufferToString(e))),d.state=1,d.onStep&&d.onStep(d)},d.toString=function(e){return"object"==typeof e?JSON.stringify(e):e},d.reset(),d)}function script_compile(e,t){var r,n="",a=e.split("\n"),s={},o=[],i=[];for(r in a){var l=a[r];if(l.startsWith("##SWAP ")&&3==(c=l.split(" ")).length&&(i[c[1]]=c[2]),"#"!=l[0]&&0!=l.length){for(var c in i)l=l.split(c).join(i[c]);var u=l.match(/"[^"]*"|[^\s"]+/g);if(0!=u.length)if(":"==l[0])s[u[0].toUpperCase()]=n.length;else{var p=script_functionTable1.indexOf(u[0].toLowerCase());if(-1==p&&0<=(p=script_functionTable2.indexOf(u[0].toLowerCase()))&&(p+=1e4),-1==p&&0<=(p=script_functionTable3.indexOf(u[0].toLowerCase()))&&(p+=2e4),-1==p)return t&&t("Unabled to compile, unknown command: "+u[0]),"";var d,h,b=ShortToStr(u.length-1);for(d in u)0!=d&&(":"==u[d][0]?(o.push([u[d],n.length+b.length+7]),b+=ShortToStr(5)+String.fromCharCode(3)+IntToStr(4294967295)):(h=parseInt(u[d]))==u[d]?b+=ShortToStr(5)+String.fromCharCode(2)+IntToStr(h):'"'==u[d][0]&&'"'==u[d][u[d].length-1]?b+=ShortToStr(u[d].length-1)+String.fromCharCode(1)+u[d].substring(1,u[d].length-1):b+=ShortToStr(u[d].length+1)+String.fromCharCode(0)+u[d]);n+=b=ShortToStr(p)+ShortToStr(b.length+4)+b}}}for(r in o){var f=o[r][0].toUpperCase(),g=o[r][1],S=s[f];if(null==S)return t&&t("Unabled to compile, unknown label: "+f),"";n=n.substr(0,g)+IntToStr(S)+n.substr(g+4)}return IntToStr(612182341)+ShortToStr(1)+n}function script_decompile(e,t){var r="",n=6,a={};if(0<=t)n=t;else{if(e.length<6)return"# Invalid script length";var s=ReadInt(e,0),o=ReadShort(e,4);if(612182341!=s)return"# Invalid binary script: "+s;if(1!=o)return"# Invalid script version"}for(;n<e.length;){var i=ReadShort(e,n),l=ReadShort(e,n+2),c=ReadShort(e,n+4),u=n+6,p="";0<=t||(r+=":label"+(n-6)+"\n");for(var d=0;d<c;d++){var h=ReadShort(e,u),b=e.substring(u+2,u+2+h),f=b.charCodeAt(0);0==f?p+=" "+b.substring(1):1==f?p+=' "'+b.substring(1)+'"':2==f?p+=" "+ReadInt(b,1):3==f&&((b=a[f=ReadInt(b,1)])||(a[b=":label"+f]=f),p+=" "+b),u+=2+h}if(r+=i<1e4?script_functionTable1[i]+p+"\n":2e4<=i?script_functionTable3[i-2e4]+p+"\n":script_functionTable2[i-1e4]+p+"\n",n+=l,0<=t)return r}var g=r.split("\n"),r="";for(d in g){var S=g[d];(":"!=S[0]||a[S])&&(r+=S+"\n")}return r}script_functionTable1=["nop","jump","set","print","dialog","getitem","substr","indexof","split","join","length","jsonparse","jsonstr","add","substract","parseint","wsbatchenum","wsput","wscreate","wsdelete","wsexec","scriptspeed","wssubscribe","wsunsubscribe","readchar","signwithdummyca"],script_functionTable2=["encodeuri","decodeuri","passwordcheck","atob","btoa","hex2str","str2hex","random","md5","maketoarray","readshort","readshortx","readint","readsint","readintx","shorttostr","shorttostrx","inttostr","inttostrx"],script_functionTableX2=[encodeURI,decodeURI,passwordcheck,window.atob.bind(window),window.btoa.bind(window),hex2rstr,rstr2hex,random,rstr_md5,MakeToArray,ReadShort,ReadShortX,ReadInt,ReadSInt,ReadIntX,ShortToStr,ShortToStrX,IntToStr,IntToStrX],script_functionTable3=["pullsystemstatus","pulleventlog","pullauditlog","pullcertificates","pullwatchdog","pullsystemdefense","pullhardware","pulluserinfo","pullremoteaccess","highlightblock","disconnect","getsidstring","getsidbytearray"],script_functionTableX3=[PullSystemStatus,PullEventLog,PullAuditLog,PullCertificates,PullWatchdog,PullSystemDefense,PullHardware,PullUserInfo,PullRemoteAccess,script_HighlightBlock,disconnect,function(e,t){return GetSidString(t)},function(e,t){return GetSidByteArray(t)}]
\ No newline at end of file
1
+function script_setup(e,t){var d={startvars:t};return e.length<6?(console.error("Invalid script length"),null):612182341!=ReadInt(e,0)?(console.error("Invalid binary script"),null):1<ReadShort(e,4)?(console.error("Unsupported script version"),null):(d.script=e.substring(6),d.reset=function(e){d.stop(),d.ip=0,d.variables=t,d.state=1},d.start=function(e){d.stop(),0<(d.stepspeed=e)&&(d.timer=setInterval(function(){d.step()},e))},d.stop=function(){null!=d.timer&&clearInterval(d.timer),d.timer=null,d.stepspeed=0},d.getVar=function(e){if(null!=e)return d.getVarEx(e.split("."),d.variables)},d.getVarEx=function(e,t){try{if(null!=e)return 0==e.length?t:d.getVarEx(e.slice(1),t[e[0]])}catch(e){return null}},d.setVar=function(e,t){d.setVarEx(e.split("."),d.variables,t)},d.setVarEx=function(e,t,r){1==e.length?t[e[0]]=r:d.setVarEx(e.slice(1),t[e[0]],r)},d.step=function(){if(1==d.state){if(d.ip<d.script.length){var e=ReadShort(d.script,d.ip),t=ReadShort(d.script,d.ip+2),r=ReadShort(d.script,d.ip+4),n=d.ip+6,a=[];for(s in d.variables)s.startsWith("__")&&delete d.variables[s];for(var s=0;s<r;s++){var o=ReadShort(d.script,n),i=(c=d.script.substring(n+2,n+2+o)).charCodeAt(0);if(c=c.substring(1),i<2){for(;1<c.split("{").length;)var l=c.split("{").pop().split("}").shift(),c=c.replace("{"+l+"}",d.getVar(l));1==i&&(d.variables["__"+s]=decodeURI(c),c="__"+s),a.push(c)}2!=i&&3!=i||(d.variables["__"+s]=ReadSInt(c,0),a.push("__"+s)),n+=2+o}d.ip+=t;for(var u,p=[],s=0;s<10;s++)p.push(d.getVar(a[s]));try{if(e<1e4)switch(e){case 0:break;case 1:(!p[2]||"<"==p[2]&&p[1]<p[3]||"<="==p[2]&&p[1]<=p[3]||"!="==p[2]&&p[1]!=p[3]||"="==p[2]&&p[1]==p[3]||">="==p[2]&&p[3]<=p[1]||">"==p[2]&&p[3]<p[1])&&(d.ip=p[0]);break;case 2:null==a[1]?delete d.variables[a[0]]:d.setVar(a[0],p[1]);break;case 3:d.onConsole?d.onConsole(d.toString(p[0]),d):console.log(d.toString(p[0]));break;case 4:d.state=2,d.dialog=!0,setDialogMode(11,p[0],p[2],d.xxStepDialogOk,p[1],d);break;case 5:for(var s in p[1])p[1][s][p[2]]==p[3]&&(u=s);break;case 6:u=p[1].substr(p[2],p[3]);break;case 7:u=p[1].indexOf(p[2]);break;case 8:u=p[1].split(p[2]);break;case 9:u=p[1].join(p[2]);break;case 10:u=p[1].length;break;case 11:u=JSON.parse(p[1]);break;case 12:u=JSON.stringify(p[1]);break;case 13:u=p[1]+p[2];break;case 14:u=p[1]-p[2];break;case 15:u=parseInt(p[1]);break;case 16:d.state=2,d.amtstack.BatchEnum(p[0],p[1],d.xxWsmanReturn,d);break;case 17:d.state=2,d.amtstack.Put(p[0],p[1],d.xxWsmanReturn,d);break;case 18:d.state=2,d.amtstack.Create(p[0],p[1],d.xxWsmanReturn,d);break;case 19:d.state=2,d.amtstack.Delete(p[0],p[1],d.xxWsmanReturn,d);break;case 20:d.state=2,d.amtstack.Exec(p[0],p[1],p[2],d.xxWsmanReturn,d,0,p[3]);break;case 21:d.stepspeed=p[0],null!=d.timer&&(clearInterval(d.timer),d.timer=setInterval(function(){d.step()},d.stepspeed));break;case 22:d.state=2,d.amtstack.Subscribe(p[0],p[1],p[2],d.xxWsmanReturn,d,0,p[3],p[4],p[5],p[6]);break;case 23:d.state=2,d.amtstack.UnSubscribe(p[0],d.xxWsmanReturn,d,0,p[1]);break;case 24:console.log(p[1],p[2],p[1].charCodeAt(p[2])),u=p[1].charCodeAt(p[2]);break;case 25:d.state=2,amtcert_signWithCaKey(p[0],null,p[1],{CN:"Untrusted Root Certificate"},d.xxSignWithDummyCaReturn);break;default:d.state=9,console.error("Script Error, unknown command: "+e)}else e<2e4?u=script_functionTableX2[e-1e4](p[1],p[2],p[3],p[4],p[5],p[6]):script_functionTableX3&&script_functionTableX3[e-2e4]&&(u=script_functionTableX3[e-2e4](d,p[1],p[2],p[3],p[4],p[5],p[6]));null!=u&&d.setVar(a[0],u)}catch(e){"object"==typeof e&&(e=e.message),d.setVar("_exception",e)}}return 1==d.state&&d.ip>=d.script.length&&(d.state=0,d.stop()),d.onStep&&d.onStep(d),d}},d.xxStepDialogOk=function(e){d.variables.DialogSelect=e,d.state=1,d.dialog=!1,d.onStep&&d.onStep(d)},d.xxWsmanReturnFix=function(e){e&&null!=e&&(e.Header&&(e.Header=e.Header,delete e.Header),e.Body&&(e.Body=e.Body,delete e.Body),e.Responses&&(e.Responses=e.Responses,delete e.Responses),e.Response&&(e.Response=e.Response,delete e.Response),e.ReturnValueStr)&&(e.ReturnValueStr=e.ReturnValueStr,delete e.ReturnValueStr)},d.xxWsmanReturn=function(e,t,r,n){if(r)for(var a in d.xxWsmanReturnFix(r),r)for(var s in d.xxWsmanReturnFix(r[a]),r[a])d.xxWsmanReturnFix(r[a][s]);d.setVar(t,r),d.setVar("wsman_result",n),d.setVar("wsman_result_str",httpErrorTable[n]||"Error #"+n),d.state=1,d.onStep&&d.onStep(d)},d.xxSignWithDummyCaReturn=function(e){d.setVar("signed_cert",btoa(_arrayBufferToString(e))),d.state=1,d.onStep&&d.onStep(d)},d.toString=function(e){return"object"==typeof e?JSON.stringify(e):e},d.reset(),d)}function script_compile(e,t){var r,n="",a=e.split("\n"),s={},o=[],i=[];for(r in a){var l=a[r];if(l.startsWith("##SWAP ")&&3==(c=l.split(" ")).length&&(i[c[1]]=c[2]),"#"!=l[0]&&0!=l.length){for(var c in i)l=l.split(c).join(i[c]);var u=l.match(/"[^"]*"|[^\s"]+/g);if(0!=u.length)if(":"==l[0])s[u[0].toUpperCase()]=n.length;else{var p=script_functionTable1.indexOf(u[0].toLowerCase());if(-1==p&&0<=(p=script_functionTable2.indexOf(u[0].toLowerCase()))&&(p+=1e4),-1==p&&0<=(p=script_functionTable3.indexOf(u[0].toLowerCase()))&&(p+=2e4),-1==p)return t&&t("Unabled to compile, unknown command: "+u[0]),"";var d,h,b=ShortToStr(u.length-1);for(d in u)0!=d&&(":"==u[d][0]?(o.push([u[d],n.length+b.length+7]),b+=ShortToStr(5)+String.fromCharCode(3)+IntToStr(4294967295)):(h=parseInt(u[d]))==u[d]?b+=ShortToStr(5)+String.fromCharCode(2)+IntToStr(h):'"'==u[d][0]&&'"'==u[d][u[d].length-1]?b+=ShortToStr(u[d].length-1)+String.fromCharCode(1)+u[d].substring(1,u[d].length-1):b+=ShortToStr(u[d].length+1)+String.fromCharCode(0)+u[d]);n+=b=ShortToStr(p)+ShortToStr(b.length+4)+b}}}for(r in o){var f=o[r][0].toUpperCase(),g=o[r][1],S=s[f];if(null==S)return t&&t("Unabled to compile, unknown label: "+f),"";n=n.substr(0,g)+IntToStr(S)+n.substr(g+4)}return IntToStr(612182341)+ShortToStr(1)+n}function script_decompile(e,t){var r="",n=6,a={};if(0<=t)n=t;else{if(e.length<6)return"# Invalid script length";var s=ReadInt(e,0),o=ReadShort(e,4);if(612182341!=s)return"# Invalid binary script: "+s;if(1!=o)return"# Invalid script version"}for(;n<e.length;){var i=ReadShort(e,n),l=ReadShort(e,n+2),c=ReadShort(e,n+4),u=n+6,p="";0<=t||(r+=":label"+(n-6)+"\n");for(var d=0;d<c;d++){var h=ReadShort(e,u),b=e.substring(u+2,u+2+h),f=b.charCodeAt(0);0==f?p+=" "+b.substring(1):1==f?p+=' "'+b.substring(1)+'"':2==f?p+=" "+ReadInt(b,1):3==f&&((b=a[f=ReadInt(b,1)])||(a[b=":label"+f]=f),p+=" "+b),u+=2+h}if(r+=i<1e4?script_functionTable1[i]+p+"\n":2e4<=i?script_functionTable3[i-2e4]+p+"\n":script_functionTable2[i-1e4]+p+"\n",n+=l,0<=t)return r}var g=r.split("\n"),r="";for(d in g){var S=g[d];(":"!=S[0]||a[S])&&(r+=S+"\n")}return r}script_functionTable1=["nop","jump","set","print","dialog","getitem","substr","indexof","split","join","length","jsonparse","jsonstr","add","substract","parseint","wsbatchenum","wsput","wscreate","wsdelete","wsexec","scriptspeed","wssubscribe","wsunsubscribe","readchar","signwithdummyca"],script_functionTable2=["encodeuri","decodeuri","passwordcheck","atob","btoa","hex2str","str2hex","random","md5","maketoarray","readshort","readshortx","readint","readsint","readintx","shorttostr","shorttostrx","inttostr","inttostrx"],script_functionTableX2=[encodeURI,decodeURI,passwordcheck,window.atob.bind(window),window.btoa.bind(window),hex2rstr,rstr2hex,random,rstr_md5,MakeToArray,ReadShort,ReadShortX,ReadInt,ReadSInt,ReadIntX,ShortToStr,ShortToStrX,IntToStr,IntToStrX],script_functionTable3=["pullsystemstatus","pulleventlog","pullauditlog","pullcertificates","pullwatchdog","pullsystemdefense","pullhardware","pulluserinfo","pullremoteaccess","highlightblock","disconnect","getsidstring","getsidbytearray"],script_functionTableX3=[PullSystemStatus,PullEventLog,PullAuditLog,PullCertificates,PullWatchdog,PullSystemDefense,PullHardware,PullUserInfo,PullRemoteAccess,script_HighlightBlock,disconnect,function(e,t){return GetSidString(t)},function(e,t){return GetSidByteArray(t)}]
\ No newline at end of file
public/scripts/amt-setupbin-0.1.0-min.js
+1
-1
@@ -1 +1 @@
1
-var AmtSetupBinSetupGuids=["µûqËùJ´AÊ{85xù","²XÏkrL¡^Q.Ä","§÷öÆÄöGíâå\r¥","ª©4Rá)©DM\b¹cS"],AmtSetupBinVarIds={1:{1:[0,"Current MEBx Password"],2:[0,"New MEBx Password"],3:[1,"Manageability Feature Selection"],4:[1,"Firmware Local Update",{0:"Disabled",1:"Enabled",2:"Password Protected"}],5:[1,"Firmware Update Qualifier",{0:"Always",1:"Never",2:"Restricted"}],6:[0,"Power Package"]},2:{1:[0,"Provisioning Preshared Key ID (PID)"],2:[0,"Provisioning Preshared Key (PPS)"],3:[0,"PKI DNS Suffix"],4:[0,"Configuration Server FQDN"],5:[1,"Remote Configuration Enabled (RCFG)",{0:"Off",1:"On"}],6:[1,"Pre-Installed Certificates Enabled",{0:"Off",1:"On"}],7:[1,"User Defined Certificate Configuration",{0:"Disabled",1:"Enabled",2:"Delete"}],8:[0,"User Defined Certificate Addition"],10:[1,"SOL/IDER Redirection Configuration"],11:[0,"Hostname"],12:[0,"Domain Name"],13:[0,"DHCP"],14:[1,"Secure Firmware Update (SFWU)",{0:"Disabled",1:"Enabled"}],15:[0,"ITO"],16:[1,"Provisioning Mode (PM)",{0:"Enterprise",1:"Small Buisness"}],17:[0,"Provisioning Server Address"],18:[2,"Provision Server Port Number (PSPO)"],19:[0,"Static PV4 Parameters"],20:[0,"VLAN"],21:[0,"PASS Policy Flag"],22:[0,"IPv6"],23:[1,"Shared/Dedicated FQDN",{0:"Dedicated",1:"Shared"}],24:[1,"Dynamic DNS Update",{0:"Disabled",1:"Enabled"}],25:[1,"Remote Desktop (KVM) State",{0:"Disabled",1:"Enabled"}],26:[1,"Opt-in User Consent Option",{0:"Disabled",1:"KVM",255:"All"}],27:[1,"Opt-in Remote IT Consent Policy",{0:"Disabled",1:"Enabled"}],28:[1,"ME Provision Halt Active",{0:"Stop",1:"Start"}],29:[1,"Manual Setup and Configuration",{0:"Automated",1:"Manual"}],30:[3,"Support Channel Identifier"],31:[0,"Support Channel Description"],32:[0,"Service Account Number"],33:[0,"Enrollement Passcode"],34:[3,"Service Type"],35:[0,"Service Provider Identifier"]}},AmtSetupBinCreate=function(e,r){var t={};return t.fileType=e,t.recordChunkCount=0,t.recordHeaderByteCount=0,t.recordNumber=0,t.majorVersion=e,t.minorVersion=0,t.flags=r,t.dataRecordsConsumed=0,t.dataRecordChunkCount=0,t.records=[],t},AmtSetupBinDecode=function(e){var r,t={},o=e.substring(0,16);for(r in t.fileType=0,AmtSetupBinSetupGuids)o==AmtSetupBinSetupGuids[r]&&(t.fileType=+r+1);if(0!=t.fileType){t.recordChunkCount=ReadShortX(e,16),t.recordHeaderByteCount=ReadShortX(e,18),t.recordNumber=ReadIntX(e,20),t.majorVersion=e.charCodeAt(24),t.minorVersion=e.charCodeAt(25),t.flags=ReadShortX(e,26);for(var a=ReadIntX(e,28),n=(t.dataRecordsConsumed=ReadIntX(e,32),t.dataRecordChunkCount=ReadShortX(e,36),t.records=[],512);n+512<=e.length;){var i={},d=(i.typeIdentifier=ReadIntX(e,n),i.flags=ReadIntX(e,n+4),i.chunkCount=ReadShortX(e,n+8),i.headerByteCount=ReadShortX(e,n+10),i.number=ReadIntX(e,n+12),i.variables=[],0),u=e.substring(n+24,n+512);for(0!=(2&i.flags)&&(u=AmtSetupBinDescrambleRecordData(u));;){var s={};if(s.moduleid=ReadShortX(u,d),s.varid=ReadShortX(u,d+2),0==s.moduleid||0==s.varid)break;AmtSetupBinVarIds[s.moduleid][s.varid]&&(s.length=ReadShortX(u,d+4),s.type=AmtSetupBinVarIds[s.moduleid][s.varid][0],s.desc=AmtSetupBinVarIds[s.moduleid][s.varid][1],s.value=u.substring(d+8,d+8+s.length),1==s.type&&1==s.length?s.value=s.value.charCodeAt(0):2==s.type&&2==s.length?s.value=ReadShortX(s.value,0):3==s.type&&4==s.length&&(s.value=ReadIntX(s.value,0)),i.variables.push(s)),d+=8+4*Math.floor((s.length+3)/4)}i.variables.sort(AmtSetupBinVariableCompare),t.records.push(i),n+=512}if(a==t.records.length)return t}},AmtSetupBinEncode=function(e){if(e.fileType<1&&e.fileType>AmtSetupBinSetupGuids.length)return null;for(var r,t=[],o=AmtSetupBinSetupGuids[e.fileType-1],a=0,o=(o=(o=(o=(o=(o=(o=(o+=ShortToStrX(e.recordChunkCount))+ShortToStrX(e.recordHeaderByteCount))+IntToStrX(e.recordNumber))+String.fromCharCode(e.majorVersion,e.minorVersion))+ShortToStrX(e.flags))+IntToStrX(e.records.length))+IntToStrX(e.dataRecordsConsumed))+ShortToStrX(e.dataRecordChunkCount);o.length<512;)o+="\0";for(r in t.push(o),e.records){var n,i="",d=e.records[r],i=(i=(i=(i=(i=(i=(i+=IntToStrX(d.typeIdentifier))+IntToStrX(d.flags))+IntToStrX(0))+IntToStrX(0))+ShortToStrX(1))+ShortToStrX(24))+IntToStrX(++a);for(n in d.variables.sort(AmtSetupBinVariableCompare),d.variables){var u="",s=d.variables[n],l=s.value;for(s.type=AmtSetupBinVarIds[s.moduleid][s.varid][0],0<s.type&&(l=parseInt(l),1==s.type&&(l=String.fromCharCode(l)),2==s.type&&(l=ShortToStrX(l)),3==s.type&&(l=IntToStrX(l))),u=(u=(u=(u+=ShortToStrX(s.moduleid))+ShortToStrX(s.varid))+ShortToStrX(l.length))+ShortToStrX(0)+l;u.length%4!=0;)u+="\0";i+=u}for(;i.length<512;)i+="\0";0!=(2&d.flags)&&(i=i.substring(0,24)+AmtSetupBinScrambleRecordData(i.substring(24))),t.push(i)}return t.join("")};function AmtSetupBinVariableCompare(e,r){return e.moduleid>r.moduleid?1:e.moduleid<r.moduleid?-1:e.varid>r.varid?1:e.varid<r.varid?-1:0}function AmtSetupBinScrambleRecordData(e){for(var r="",t=0;t<e.length;t++)r+=String.fromCharCode(e.charCodeAt(t)+17&255);return r}function AmtSetupBinDescrambleRecordData(e){for(var r="",t=0;t<e.length;t++)r+=String.fromCharCode(e.charCodeAt(t)+239&255);return r}
\ No newline at end of file
1
+var AmtSetupBinSetupGuids=["µûqËùJ´AÊ{85xù","²XÏkrL¡^Q.Ä","§÷öÆÄöGíâå\r¥","ª©4Rá)©DM\b¹cS"],AmtSetupBinVarIds={1:{1:[0,"Current MEBx Password"],2:[0,"New MEBx Password"],3:[1,"Manageability Feature Selection"],4:[1,"Firmware Local Update",{0:"Disabled",1:"Enabled",2:"Password Protected"}],5:[1,"Firmware Update Qualifier",{0:"Always",1:"Never",2:"Restricted"}],6:[0,"Power Package"]},2:{1:[0,"Provisioning Preshared Key ID (PID)"],2:[0,"Provisioning Preshared Key (PPS)"],3:[0,"PKI DNS Suffix"],4:[0,"Configuration Server FQDN"],5:[1,"Remote Configuration Enabled (RCFG)",{0:"Off",1:"On"}],6:[1,"Pre-Installed Certificates Enabled",{0:"Off",1:"On"}],7:[1,"User Defined Certificate Configuration",{0:"Disabled",1:"Enabled",2:"Delete"}],8:[0,"User Defined Certificate Addition"],10:[1,"SOL/IDER Redirection Configuration"],11:[0,"Hostname"],12:[0,"Domain Name"],13:[0,"DHCP"],14:[1,"Secure Firmware Update (SFWU)",{0:"Disabled",1:"Enabled"}],15:[0,"ITO"],16:[1,"Provisioning Mode (PM)",{0:"Enterprise",1:"Small Buisness"}],17:[0,"Provisioning Server Address"],18:[2,"Provision Server Port Number (PSPO)"],19:[0,"Static PV4 Parameters"],20:[0,"VLAN"],21:[0,"PASS Policy Flag"],22:[0,"IPv6"],23:[1,"Shared/Dedicated FQDN",{0:"Dedicated",1:"Shared"}],24:[1,"Dynamic DNS Update",{0:"Disabled",1:"Enabled"}],25:[1,"Remote Desktop (KVM) State",{0:"Disabled",1:"Enabled"}],26:[1,"Opt-in User Consent Option",{0:"Disabled",1:"KVM",255:"All"}],27:[1,"Opt-in Remote IT Consent Policy",{0:"Disabled",1:"Enabled"}],28:[1,"ME Provision Halt Active",{0:"Stop",1:"Start"}],29:[1,"Manual Setup and Configuration",{0:"Automated",1:"Manual"}],30:[3,"Support Channel Identifier"],31:[0,"Support Channel Description"],32:[0,"Service Account Number"],33:[0,"Enrollement Passcode"],34:[3,"Service Type"],35:[0,"Service Provider Identifier"]}},AmtSetupBinCreate=function(e,r){var t={};return t.fileType=e,t.recordChunkCount=0,t.recordHeaderByteCount=0,t.recordNumber=0,t.majorVersion=e,t.minorVersion=0,t.flags=r,t.dataRecordsConsumed=0,t.dataRecordChunkCount=0,t.records=[],t},AmtSetupBinDecode=function(e){var r,t={},o=e.substring(0,16);for(r in t.fileType=0,AmtSetupBinSetupGuids)o==AmtSetupBinSetupGuids[r]&&(t.fileType=+r+1);if(0!=t.fileType){t.recordChunkCount=ReadShortX(e,16),t.recordHeaderByteCount=ReadShortX(e,18),t.recordNumber=ReadIntX(e,20),t.majorVersion=e.charCodeAt(24),t.minorVersion=e.charCodeAt(25),t.flags=ReadShortX(e,26);for(var a=ReadIntX(e,28),n=(t.dataRecordsConsumed=ReadIntX(e,32),t.dataRecordChunkCount=ReadShortX(e,36),t.records=[],512);n+512<=e.length;){var i={},d=(i.typeIdentifier=ReadIntX(e,n),i.flags=ReadIntX(e,n+4),i.chunkCount=ReadShortX(e,n+8),i.headerByteCount=ReadShortX(e,n+10),i.number=ReadIntX(e,n+12),i.variables=[],0),u=e.substring(n+24,n+512);for(0!=(2&i.flags)&&(u=AmtSetupBinDescrambleRecordData(u));;){var s={};if(s.moduleid=ReadShortX(u,d),s.varid=ReadShortX(u,d+2),0==s.moduleid||0==s.varid)break;AmtSetupBinVarIds[s.moduleid][s.varid]&&(s.length=ReadShortX(u,d+4),s.type=AmtSetupBinVarIds[s.moduleid][s.varid][0],s.desc=AmtSetupBinVarIds[s.moduleid][s.varid][1],s.value=u.substring(d+8,d+8+s.length),1==s.type&&1==s.length?s.value=s.value.charCodeAt(0):2==s.type&&2==s.length?s.value=ReadShortX(s.value,0):3==s.type&&4==s.length&&(s.value=ReadIntX(s.value,0)),i.variables.push(s)),d+=8+4*Math.floor((s.length+3)/4)}i.variables.sort(AmtSetupBinVariableCompare),t.records.push(i),n+=512}if(a==t.records.length)return t}},AmtSetupBinEncode=function(e){if(e.fileType<1&&e.fileType>AmtSetupBinSetupGuids.length)return null;for(var r,t=[],o=AmtSetupBinSetupGuids[e.fileType-1],a=0,o=(o=(o=(o=(o=(o=(o=(o+=ShortToStrX(e.recordChunkCount))+ShortToStrX(e.recordHeaderByteCount))+IntToStrX(e.recordNumber))+String.fromCharCode(e.majorVersion,e.minorVersion))+ShortToStrX(e.flags))+IntToStrX(e.records.length))+IntToStrX(e.dataRecordsConsumed))+ShortToStrX(e.dataRecordChunkCount);o.length<512;)o+="\0";for(r in t.push(o),e.records){var n,i="",d=e.records[r],i=(i=(i=(i=(i=(i=(i+=IntToStrX(d.typeIdentifier))+IntToStrX(d.flags))+IntToStrX(0))+IntToStrX(0))+ShortToStrX(1))+ShortToStrX(24))+IntToStrX(++a);for(n in d.variables.sort(AmtSetupBinVariableCompare),d.variables){var u="",s=d.variables[n],l=s.value;for(s.type=AmtSetupBinVarIds[s.moduleid][s.varid][0],0<s.type&&(l=parseInt(l),1==s.type&&(l=String.fromCharCode(l)),2==s.type&&(l=ShortToStrX(l)),3==s.type)&&(l=IntToStrX(l)),u=(u=(u=(u+=ShortToStrX(s.moduleid))+ShortToStrX(s.varid))+ShortToStrX(l.length))+ShortToStrX(0)+l;u.length%4!=0;)u+="\0";i+=u}for(;i.length<512;)i+="\0";0!=(2&d.flags)&&(i=i.substring(0,24)+AmtSetupBinScrambleRecordData(i.substring(24))),t.push(i)}return t.join("")};function AmtSetupBinVariableCompare(e,r){return e.moduleid>r.moduleid?1:e.moduleid<r.moduleid?-1:e.varid>r.varid?1:e.varid<r.varid?-1:0}function AmtSetupBinScrambleRecordData(e){for(var r="",t=0;t<e.length;t++)r+=String.fromCharCode(e.charCodeAt(t)+17&255);return r}function AmtSetupBinDescrambleRecordData(e){for(var r="",t=0;t<e.length;t++)r+=String.fromCharCode(e.charCodeAt(t)+239&255);return r}
\ No newline at end of file
public/scripts/amt-terminal-0.0.2-min.js
+1
-1
@@ -1 +1 @@
1
-var CreateAmtRemoteTerminal=function(e,r){var l,m={},f=(m.DivId=e,m.DivElement=document.getElementById(e),m.protocol=1,r.protocol&&(m.protocol=r.protocol),m.terminalEmulation=1,m.fxEmulation=0,m.lineFeed="\r\n",m.debugmode=0,m.width=80,m.height=25,m.heightLock=0,["000000","BB0000","00BB00","BBBB00","0000BB","BB00BB","00BBBB","BBBBBB","555555","FF5555","55FF55","FFFF55","5555FF","FF55FF","55FFFF","FFFFFF"]),g=0,u=7,w=0,C=!0,S=0,T=0,c=0,s=0,d=0,b=[],k=0,v=0,p=[],y=[],n=!1,K=!0,D=!1,B=[],F="";m.title=null,m.onTitleChange=null,m.Start=function(){},m.Init=function(e,r){m.width=e||80,m.height=r||25;for(var t=0;t<m.height;t++){y[t]=[],p[t]=[];for(var i=0;i<m.width;i++)y[t][i]=" ",p[t][i]=448}m.TermInit(),m.TermDraw()},m.xxStateChange=function(e){},m.ProcessData=function(r){if(2==m.debugmode&&console.log("TRecv("+r.length+"): "+rstr2hex(r)),0==m.terminalEmulation)try{r=decode_utf8(F+r)}catch(e){return void(F+=r)}F="",null!=m.capture&&(m.capture+=r);for(var e=r,t=0;t<e.length;t++){o=h=a=n=i=void 0;var i=String.fromCharCode(e.charCodeAt(t)),n=e.charCodeAt(t);switch(d){case 0:27===n?(d=1,b=[],v=k=0):E(i);break;case 1:switch(i){case"[":d=2;break;case"(":d=4;break;case")":d=5;break;case"]":d=6;break;case"=":D=!0,d=0;break;case">":D=!1,d=0;break;case"7":c=S,s=T,d=0;break;case"8":S=c,T=s,d=0;break;case"M":for(var a=l[1];a>=l[0]+1;a--)for(var h=0;h<m.width;h++)y[a][h]=y[a-1][h],p[a][h]=p[a-1][h];for(a=l[0]+1-1;a>l[0]-1;a--)for(h=0;h<m.width;h++)y[a][h]=" ",p[a][h]=448;d=0;break;default:console.log("unknown terminal short code",i),d=0}break;case 2:if("0"<=i&&i<="9"){b[k]?b[k]=10*b[k]+(i-"0"):b[k]=i-"0";break}if(";"==i){k++;break}if("?"==i){v=1;break}b[0]||(b[0]=0),function(e,r,t,i){if(1==i)switch(e){case"l":25==r[0]&&(K=!1);break;case"h":25==r[0]&&(K=!0)}else if(0==i){var n,a;switch(e){case"c":m.TermResetScreen();break;case"A":1==t&&(0==r[0]?T--:T-=r[0],T<0&&(T=0));break;case"B":1==t&&(0==r[0]?T++:T+=r[0],T>m.height&&(T=m.height));break;case"C":1==t&&(0==r[0]?S++:S+=r[0],S>m.width&&(S=m.width));break;case"D":1==t&&(0==r[0]?S--:S-=r[0],S<0&&(S=0));break;case"d":1==t&&(T=(T=r[0]-1)>m.height?m.height:T)<0&&(T=0);break;case"G":1==t&&(S=(S=r[0]-1)<0?0:S)>m.width-1&&(S=m.width-1);break;case"P":var h=1;for(1==t&&(h=r[0]),n=S;n<m.width-h;n++)y[T][n]=y[T][n+h],p[T][n]=p[T][n+h];for(n=m.width-h;n<m.width;n++)y[T][n]=" ",p[T][n]=448;break;case"L":var o=1;for(0==(o=1==t?r[0]:o)&&(o=1),c=l[1];T+o<=c;c--)y[c]=y[c-o],p[c]=p[c-o];for(c=T;c<T+o;c++)for(y[c]=[],p[c]=[],h=0;h<m.width;h++)y[c][h]=" ",p[c][h]=448;break;case"J":if(1==t&&2==r[0])m.TermClear((w<<12)+(u<<6)),T=S=0,B=[];else if(0==t||1==t&&0==r[0])for(L(),n=T+1;n<m.height;n++)P(n);else if(1==t&&1==r[0])for(L(),n=0;n<T-1;n++)P(n);break;case"H":S=2==t?(r[0]<1&&(r[0]=1),r[1]<1&&(r[1]=1),r[0]>m.height&&(r[0]=m.height),r[1]>m.width&&(r[1]=m.width),T=r[0]-1,r[1]-1):T=0;break;case"m":for(n=0;n<t;n++)r[n]&&0!=r[n]?1==r[n]?u<8&&(u+=8):2==r[n]||22==r[n]?8<=u&&(u-=8):7==r[n]?g=2:27==r[n]?g=0:30<=r[n]&&r[n]<=37?(a=8<=u,u=r[n]-30,a&&u<=8&&(u+=8)):40<=r[n]&&r[n]<=47?w=r[n]-40:90<=r[n]&&r[n]<=99?u=r[n]-82:100<=r[n]&&r[n]<=109&&(w=r[n]-92):(u=7,g=w=0);break;case"K":0!=t&&(1!=t||r[0]&&0!=r[0])?1==t&&(1==r[0]?function(){for(var e=(u<<6)+(w<<12)+g,r=0;r<S;r++)y[T][r]=" ",p[T][r]=e}():2==r[0]&&P(T)):L();break;case"h":C=!0;break;case"l":C=!1;break;case"r":(l=2==t?[r[0]-1,r[1]-1]:l)[0]<0&&(l[0]=0),l[0]>m.height-1&&(l[0]=m.height-1),l[1]<0&&(l[1]=0),l[1]>m.height-1&&(l[1]=m.height-1),l[0]>l[1]&&(l[0]=l[1]);break;case"S":h=1;1==t&&(h=r[0]);for(var c=l[0];c<=l[1]-h;c++)for(var f=0;f<m.width;f++)y[c][f]=y[c+h][f],p[c][f]=p[c+h][f];for(c=l[1]-h+1;c<l[1];c++)for(f=0;f<m.width;f++)y[c][f]=" ",p[c][f]=448;break;case"M":h=1;1==t&&(h=r[0]);for(c=T;c<=l[1]-h;c++)for(f=0;f<m.width;f++)y[c][f]=y[c+h][f],p[c][f]=p[c+h][f];for(c=l[1]-h+1;c<l[1];c++)for(f=0;f<m.width;f++)y[c][f]=" ",p[c][f]=448;break;case"T":h=1;1==t&&(h=r[0]);for(c=l[1];c>l[0]+h;c--)for(f=0;f<m.width;f++)y[c][f]=y[c-h][f],p[c][f]=p[c-h][f];for(c=l[0]+h;c>l[0];c--)for(f=0;f<m.width;f++)y[c][f]=" ",p[c][f]=448;break;case"X":var h=1,s=S,d=T;for(1==t&&(h=r[0]);0<h&&d<m.height;)y[d][s]=" ",h--,++s>=m.width&&(s=0,d++);break;default:console.log("Unknown terminal code",e,r,i)}}}(i,b,k+1,v),d=0;break;case 4:case 5:d=0;break;case 6:var o=i.charCodeAt(0);";"==i?k++:7==o?(function(e){var r;0!=e.length&&(0==(r=parseInt(e[0]))||2==r)&&1<e.length&&"?"!=e[1]&&m.onTitleChange&&m.onTitleChange(m,m.title=e[1])}(b),d=0):b[k]?b[k]+=i:b[k]=i}}m.TermDraw()},m.ProcessVt100String=function(e){for(var r=0;r<e.length;r++)E(String.fromCharCode(e.charCodeAt(r)))};var a=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,171,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160],h=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,174,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160],a=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,171,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160],h=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,174,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160];function E(e){if("\0"!=e&&7!=e.charCodeAt()){var r=e.charCodeAt();switch(1==m.terminalEmulation?0!=(128&r)&&(e=String.fromCharCode(a[127&r])):2==m.terminalEmulation&&0!=(128&r)&&(e=String.fromCharCode(h[127&r])),r){case 16:e=" ";break;case 24:e="↑";break;case 25:e="↓"}switch(S>m.width&&(S=m.width),T>m.height-1&&(T=m.height-1),e){case"\b":0<S&&(S--,n&&o(" "));break;case"\t":for(var t=8-S%8,i=0;i<t;i++)E(" ");break;case"\n":++T>l[1]&&(m.recordLineTobackBuffer(0),x(1),T=l[1]),m.lineFeed="\r",S=0;break;case"\r":S=0;break;default:S>=m.width&&(S=0,C&&T++,T>=m.height-1&&(x(1),T=m.height-1)),o(e),S++}}}function o(e){y[T][S]=e,p[T][S]=(u<<6)+(w<<12)+g}function L(){for(var e=(u<<6)+(w<<12)+g,r=S;r<m.width;r++)y[T][r]=" ",p[T][r]=e}function P(e){for(var r=(u<<6)+(w<<12)+g,t=0;t<m.width;t++)y[e][t]=" ",p[e][t]=r}function x(e){for(var r,t=l[0];t<=l[1]-e;t++)y[t]=y[t+e],p[t]=p[t+e];for(t=l[1]-e+1;t<=l[1];t++)for(y[t]=[],p[t]=[],r=0;r<m.width;r++)y[t][r]=" ",p[t][r]=448}return m.TermClear=function(e){for(var r=0;r<m.height;r++)for(var t=0;t<m.width;t++)y[r][t]=" ",p[r][t]=e;B=[]},m.TermResetScreen=function(){C=K=!(w=g=0),S=T=0,n=!(u=7),l=[0,m.height-1],D=!1,m.TermClear(448),F=""},m.TermSendKeys=function(e){2==m.debugmode&&console.log("TSend("+e.length+"): "+rstr2hex(e),e),m.parent.send(e)},m.TermSendKey=function(e){2==m.debugmode&&console.log("TSend(1): "+rstr2hex(String.fromCharCode(e)),e),m.parent.send(String.fromCharCode(e))},m.TermHandleKeys=function(e){if(!e.ctrlKey)return 127==e.which?m.TermSendKey(8):13==e.which?m.TermSendKeys(m.lineFeed):0!=e.which&&m.TermSendKey(e.which),!1;e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()},m.TermHandleKeyUp=function(e){return 8!=e.which&&32!=e.which&&9!=e.which||(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1)},m.TermHandleKeyDown=function(e){if(65<=e.which&&e.which<=90&&1==e.ctrlKey)return m.TermSendKey(e.which-64),e.preventDefault&&e.preventDefault(),void(e.stopPropagation&&e.stopPropagation());if(27==e.which)return m.TermSendKeys(String.fromCharCode(27)),!0;if(1==D){if(37==e.which)return m.TermSendKeys(String.fromCharCode(27,79,68)),!0;if(38==e.which)return m.TermSendKeys(String.fromCharCode(27,79,65)),!0;if(39==e.which)return m.TermSendKeys(String.fromCharCode(27,79,67)),!0;if(40==e.which)return m.TermSendKeys(String.fromCharCode(27,79,66)),!0}else{if(37==e.which)return m.TermSendKeys(String.fromCharCode(27,91,68)),!0;if(38==e.which)return m.TermSendKeys(String.fromCharCode(27,91,65)),!0;if(39==e.which)return m.TermSendKeys(String.fromCharCode(27,91,67)),!0;if(40==e.which)return m.TermSendKeys(String.fromCharCode(27,91,66)),!0}if(33==e.which)return m.TermSendKeys(String.fromCharCode(27,91,53,126)),!0;if(34==e.which)return m.TermSendKeys(String.fromCharCode(27,91,54,126)),!0;if(35==e.which)return m.TermSendKeys(String.fromCharCode(27,91,70)),!0;if(36==e.which)return m.TermSendKeys(String.fromCharCode(27,91,72)),!0;if(45==e.which)return m.TermSendKeys(String.fromCharCode(27,91,50,126)),!0;if(46==e.which)return m.TermSendKeys(String.fromCharCode(27,91,51,126)),!0;if(9==e.which)return m.TermSendKeys("\t"),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!0;var r=[80,81,119,120,116,117,113,114,112,77],t=[49,50,51,52,53,54,55,56,57,48,33,64],i=[80,81,82,83,84,85,86,87,88,89,90,91];if(111<e.which&e.which<124&&0==e.repeat){if(0==m.fxEmulation&&e.which<122)return m.TermSendKeys(String.fromCharCode(27,91,79,r[e.which-112])),!0;if(1==m.fxEmulation)return m.TermSendKeys(String.fromCharCode(27,t[e.which-112])),!0;if(2==m.fxEmulation)return m.TermSendKeys(String.fromCharCode(27,79,i[e.which-112])),!0}r=[80,81,119,120,116,117,113,114,112,77];if(111<e.which&e.which<122&&0==e.repeat)return m.TermSendKeys(String.fromCharCode(27,91,79,r[e.which-112])),!0;t=[49,50,51,52,53,54,55,56,57,48,33,64];if(111<e.which&e.which<124&&0==e.repeat)return m.TermSendKeys(String.fromCharCode(27,t[e.which-112])),!0;i=[80,81,82,83,84,85,86,87,88,89,90,91];return 111<e.which&e.which<124&&0==e.repeat?(m.TermSendKeys(String.fromCharCode(27,79,i[e.which-112])),!0):8!=e.which&&32!=e.which&&9!=e.which||(m.TermSendKey(e.which),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1)},m.recordLineTobackBuffer=function(e){var e=m.TermDrawLine("",e,""),r=e[0],e=e[1];B.push(r+e+"<br>")},m.TermDrawLine=function(e,r,t){for(var i,n,a,h,o=1,c=0;c<m.width;++c)switch(i=p[r][c],S==c&&T==r&&K&&(i|=2),i!=o&&(a=6,h=12,2&i&&(a=12,h=6),e=e+t+'<span style="color:#'+f[i>>a&63]+";background-color:#"+f[i>>h&63],1&i&&(e+=";text-decoration:underline"),e+=';">',t="</span>"+(t=""),o=i),n=y[r][c]){case"&":e+="&";break;case"<":e+="<";break;case">":e+=">";break;case" ":e+=" ";break;default:e+=n}return[e,t]},m.TermDraw=function(){for(var e="",r="",t=0;t<m.height;++t){var i=m.TermDrawLine(r,t,e),r=i[0],e=i[1];t!=m.height-1&&(r+="<br>")}var n=(B=800<B.length?B.slice(B.length-800):B).join("");m.DivElement.innerHTML="<font size='4'><b>"+n+r+e+"</b></font>",m.DivElement.scrollTop=m.DivElement.scrollHeight,0==m.heightLock&&setTimeout(m.TermLockHeight,10)},m.TermLockHeight=function(){m.heightLock=m.DivElement.clientHeight,m.DivElement.style.height=m.DivElement.parentNode.style.height=m.heightLock+"px",m.DivElement.style["overflow-y"]="scroll"},m.TermInit=function(){m.TermResetScreen()},m.heightLock=0,m.DivElement.style.height="",null!=r&&null!=r.cols&&null!=r.rows?m.Init(r.cols,r.rows):m.Init(),m}
\ No newline at end of file
1
+var CreateAmtRemoteTerminal=function(e,r){var l,m={},f=(m.DivId=e,m.DivElement=document.getElementById(e),m.protocol=1,r.protocol&&(m.protocol=r.protocol),m.terminalEmulation=1,m.fxEmulation=0,m.lineFeed="\r\n",m.debugmode=0,m.width=80,m.height=25,m.heightLock=0,["000000","BB0000","00BB00","BBBB00","0000BB","BB00BB","00BBBB","BBBBBB","555555","FF5555","55FF55","FFFF55","5555FF","FF55FF","55FFFF","FFFFFF"]),g=0,u=7,w=0,C=!0,S=0,T=0,c=0,s=0,d=0,b=[],k=0,v=0,p=[],y=[],n=!1,K=!0,D=!1,B=[],F="";m.title=null,m.onTitleChange=null,m.Start=function(){},m.Init=function(e,r){m.width=e||80,m.height=r||25;for(var t=0;t<m.height;t++){y[t]=[],p[t]=[];for(var i=0;i<m.width;i++)y[t][i]=" ",p[t][i]=448}m.TermInit(),m.TermDraw()},m.xxStateChange=function(e){},m.ProcessData=function(r){if(2==m.debugmode&&console.log("TRecv("+r.length+"): "+rstr2hex(r)),0==m.terminalEmulation)try{r=decode_utf8(F+r)}catch(e){return void(F+=r)}F="",null!=m.capture&&(m.capture+=r);for(var e=r,t=0;t<e.length;t++){o=a=h=n=i=void 0;var i=String.fromCharCode(e.charCodeAt(t)),n=e.charCodeAt(t);switch(d){case 0:27===n?(d=1,b=[],v=k=0):E(i);break;case 1:switch(i){case"[":d=2;break;case"(":d=4;break;case")":d=5;break;case"]":d=6;break;case"=":D=!0,d=0;break;case">":D=!1,d=0;break;case"7":c=S,s=T,d=0;break;case"8":S=c,T=s,d=0;break;case"M":for(var h=l[1];h>=l[0]+1;h--)for(var a=0;a<m.width;a++)y[h][a]=y[h-1][a],p[h][a]=p[h-1][a];for(h=l[0]+1-1;h>l[0]-1;h--)for(a=0;a<m.width;a++)y[h][a]=" ",p[h][a]=448;d=0;break;default:console.log("unknown terminal short code",i),d=0}break;case 2:"0"<=i&&i<="9"?b[k]?b[k]=10*b[k]+(i-"0"):b[k]=i-"0":";"==i?k++:"?"==i?v=1:(b[0]||(b[0]=0),function(e,r,t,i){if(1==i)switch(e){case"l":25==r[0]&&(K=!1);break;case"h":25==r[0]&&(K=!0)}else if(0==i){var n,h;switch(e){case"c":m.TermResetScreen();break;case"A":1==t&&(0==r[0]?T--:T-=r[0],T<0)&&(T=0);break;case"B":1==t&&(0==r[0]?T++:T+=r[0],T>m.height)&&(T=m.height);break;case"C":1==t&&(0==r[0]?S++:S+=r[0],S>m.width)&&(S=m.width);break;case"D":1==t&&(0==r[0]?S--:S-=r[0],S<0)&&(S=0);break;case"d":1==t&&(T=(T=r[0]-1)>m.height?m.height:T)<0&&(T=0);break;case"G":1==t&&(S=(S=r[0]-1)<0?0:S)>m.width-1&&(S=m.width-1);break;case"P":var a=1;for(1==t&&(a=r[0]),n=S;n<m.width-a;n++)y[T][n]=y[T][n+a],p[T][n]=p[T][n+a];for(n=m.width-a;n<m.width;n++)y[T][n]=" ",p[T][n]=448;break;case"L":var o=1;for(0==(o=1==t?r[0]:o)&&(o=1),c=l[1];T+o<=c;c--)y[c]=y[c-o],p[c]=p[c-o];for(c=T;c<T+o;c++)for(y[c]=[],p[c]=[],a=0;a<m.width;a++)y[c][a]=" ",p[c][a]=448;break;case"J":if(1==t&&2==r[0])m.TermClear((w<<12)+(u<<6)),T=S=0,B=[];else if(0==t||1==t&&0==r[0])for(L(),n=T+1;n<m.height;n++)P(n);else if(1==t&&1==r[0])for(L(),n=0;n<T-1;n++)P(n);break;case"H":S=2==t?(r[0]<1&&(r[0]=1),r[1]<1&&(r[1]=1),r[0]>m.height&&(r[0]=m.height),r[1]>m.width&&(r[1]=m.width),T=r[0]-1,r[1]-1):T=0;break;case"m":for(n=0;n<t;n++)r[n]&&0!=r[n]?1==r[n]?u<8&&(u+=8):2==r[n]||22==r[n]?8<=u&&(u-=8):7==r[n]?g=2:27==r[n]?g=0:30<=r[n]&&r[n]<=37?(h=8<=u,u=r[n]-30,h&&u<=8&&(u+=8)):40<=r[n]&&r[n]<=47?w=r[n]-40:90<=r[n]&&r[n]<=99?u=r[n]-82:100<=r[n]&&r[n]<=109&&(w=r[n]-92):(u=7,g=w=0);break;case"K":0!=t&&(1!=t||r[0]&&0!=r[0])?1==t&&(1==r[0]?function(){for(var e=(u<<6)+(w<<12)+g,r=0;r<S;r++)y[T][r]=" ",p[T][r]=e}():2==r[0]&&P(T)):L();break;case"h":C=!0;break;case"l":C=!1;break;case"r":(l=2==t?[r[0]-1,r[1]-1]:l)[0]<0&&(l[0]=0),l[0]>m.height-1&&(l[0]=m.height-1),l[1]<0&&(l[1]=0),l[1]>m.height-1&&(l[1]=m.height-1),l[0]>l[1]&&(l[0]=l[1]);break;case"S":a=1;1==t&&(a=r[0]);for(var c=l[0];c<=l[1]-a;c++)for(var f=0;f<m.width;f++)y[c][f]=y[c+a][f],p[c][f]=p[c+a][f];for(c=l[1]-a+1;c<l[1];c++)for(f=0;f<m.width;f++)y[c][f]=" ",p[c][f]=448;break;case"M":a=1;1==t&&(a=r[0]);for(c=T;c<=l[1]-a;c++)for(f=0;f<m.width;f++)y[c][f]=y[c+a][f],p[c][f]=p[c+a][f];for(c=l[1]-a+1;c<l[1];c++)for(f=0;f<m.width;f++)y[c][f]=" ",p[c][f]=448;break;case"T":a=1;1==t&&(a=r[0]);for(c=l[1];c>l[0]+a;c--)for(f=0;f<m.width;f++)y[c][f]=y[c-a][f],p[c][f]=p[c-a][f];for(c=l[0]+a;c>l[0];c--)for(f=0;f<m.width;f++)y[c][f]=" ",p[c][f]=448;break;case"X":var a=1,s=S,d=T;for(1==t&&(a=r[0]);0<a&&d<m.height;)y[d][s]=" ",a--,++s>=m.width&&(s=0,d++);break;default:console.log("Unknown terminal code",e,r,i)}}}(i,b,k+1,v),d=0);break;case 4:case 5:d=0;break;case 6:var o=i.charCodeAt(0);";"==i?k++:7==o?(function(e){var r;0!=e.length&&(0==(r=parseInt(e[0]))||2==r)&&1<e.length&&"?"!=e[1]&&m.onTitleChange&&m.onTitleChange(m,m.title=e[1])}(b),d=0):b[k]?b[k]+=i:b[k]=i}}m.TermDraw()},m.ProcessVt100String=function(e){for(var r=0;r<e.length;r++)E(String.fromCharCode(e.charCodeAt(r)))};var h=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,171,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160],a=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,174,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160],h=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,171,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160],a=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,174,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160];function E(e){if("\0"!=e&&7!=e.charCodeAt()){var r=e.charCodeAt();switch(1==m.terminalEmulation?0!=(128&r)&&(e=String.fromCharCode(h[127&r])):2==m.terminalEmulation&&0!=(128&r)&&(e=String.fromCharCode(a[127&r])),r){case 16:e=" ";break;case 24:e="↑";break;case 25:e="↓"}switch(S>m.width&&(S=m.width),T>m.height-1&&(T=m.height-1),e){case"\b":0<S&&(S--,n)&&o(" ");break;case"\t":for(var t=8-S%8,i=0;i<t;i++)E(" ");break;case"\n":++T>l[1]&&(m.recordLineTobackBuffer(0),x(1),T=l[1]),m.lineFeed="\r",S=0;break;case"\r":S=0;break;default:S>=m.width&&(S=0,C&&T++,T>=m.height-1)&&(x(1),T=m.height-1),o(e),S++}}}function o(e){y[T][S]=e,p[T][S]=(u<<6)+(w<<12)+g}function L(){for(var e=(u<<6)+(w<<12)+g,r=S;r<m.width;r++)y[T][r]=" ",p[T][r]=e}function P(e){for(var r=(u<<6)+(w<<12)+g,t=0;t<m.width;t++)y[e][t]=" ",p[e][t]=r}function x(e){for(var r,t=l[0];t<=l[1]-e;t++)y[t]=y[t+e],p[t]=p[t+e];for(t=l[1]-e+1;t<=l[1];t++)for(y[t]=[],p[t]=[],r=0;r<m.width;r++)y[t][r]=" ",p[t][r]=448}return m.TermClear=function(e){for(var r=0;r<m.height;r++)for(var t=0;t<m.width;t++)y[r][t]=" ",p[r][t]=e;B=[]},m.TermResetScreen=function(){C=K=!(w=g=0),S=T=0,n=!(u=7),l=[0,m.height-1],D=!1,m.TermClear(448),F=""},m.TermSendKeys=function(e){2==m.debugmode&&console.log("TSend("+e.length+"): "+rstr2hex(e),e),m.parent.send(e)},m.TermSendKey=function(e){2==m.debugmode&&console.log("TSend(1): "+rstr2hex(String.fromCharCode(e)),e),m.parent.send(String.fromCharCode(e))},m.TermHandleKeys=function(e){if(!e.ctrlKey)return 127==e.which?m.TermSendKey(8):13==e.which?m.TermSendKeys(m.lineFeed):0!=e.which&&m.TermSendKey(e.which),!1;e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()},m.TermHandleKeyUp=function(e){return 8!=e.which&&32!=e.which&&9!=e.which||(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1)},m.TermHandleKeyDown=function(e){if(!(65<=e.which&&e.which<=90&&1==e.ctrlKey)){if(27==e.which)return m.TermSendKeys(String.fromCharCode(27)),!0;if(1==D){if(37==e.which)return m.TermSendKeys(String.fromCharCode(27,79,68)),!0;if(38==e.which)return m.TermSendKeys(String.fromCharCode(27,79,65)),!0;if(39==e.which)return m.TermSendKeys(String.fromCharCode(27,79,67)),!0;if(40==e.which)return m.TermSendKeys(String.fromCharCode(27,79,66)),!0}else{if(37==e.which)return m.TermSendKeys(String.fromCharCode(27,91,68)),!0;if(38==e.which)return m.TermSendKeys(String.fromCharCode(27,91,65)),!0;if(39==e.which)return m.TermSendKeys(String.fromCharCode(27,91,67)),!0;if(40==e.which)return m.TermSendKeys(String.fromCharCode(27,91,66)),!0}if(33==e.which)return m.TermSendKeys(String.fromCharCode(27,91,53,126)),!0;if(34==e.which)return m.TermSendKeys(String.fromCharCode(27,91,54,126)),!0;if(35==e.which)return m.TermSendKeys(String.fromCharCode(27,91,70)),!0;if(36==e.which)return m.TermSendKeys(String.fromCharCode(27,91,72)),!0;if(45==e.which)return m.TermSendKeys(String.fromCharCode(27,91,50,126)),!0;if(46==e.which)return m.TermSendKeys(String.fromCharCode(27,91,51,126)),!0;if(9==e.which)return m.TermSendKeys("\t"),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!0;var r=[80,81,119,120,116,117,113,114,112,77],t=[49,50,51,52,53,54,55,56,57,48,33,64],i=[80,81,82,83,84,85,86,87,88,89,90,91];if(111<e.which&e.which<124&&0==e.repeat){if(0==m.fxEmulation&&e.which<122)return m.TermSendKeys(String.fromCharCode(27,91,79,r[e.which-112])),!0;if(1==m.fxEmulation)return m.TermSendKeys(String.fromCharCode(27,t[e.which-112])),!0;if(2==m.fxEmulation)return m.TermSendKeys(String.fromCharCode(27,79,i[e.which-112])),!0}r=[80,81,119,120,116,117,113,114,112,77];return 111<e.which&e.which<122&&0==e.repeat?(m.TermSendKeys(String.fromCharCode(27,91,79,r[e.which-112])),!0):(t=[49,50,51,52,53,54,55,56,57,48,33,64],111<e.which&e.which<124&&0==e.repeat?(m.TermSendKeys(String.fromCharCode(27,t[e.which-112])),!0):(i=[80,81,82,83,84,85,86,87,88,89,90,91],111<e.which&e.which<124&&0==e.repeat?(m.TermSendKeys(String.fromCharCode(27,79,i[e.which-112])),!0):8!=e.which&&32!=e.which&&9!=e.which||(m.TermSendKey(e.which),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1)))}m.TermSendKey(e.which-64),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()},m.recordLineTobackBuffer=function(e){var e=m.TermDrawLine("",e,""),r=e[0],e=e[1];B.push(r+e+"<br>")},m.TermDrawLine=function(e,r,t){for(var i,n,h,a,o=1,c=0;c<m.width;++c)switch(i=p[r][c],S==c&&T==r&&K&&(i|=2),i!=o&&(h=6,a=12,2&i&&(h=12,a=6),e=e+t+'<span style="color:#'+f[i>>h&63]+";background-color:#"+f[i>>a&63],1&i&&(e+=";text-decoration:underline"),e+=';">',t="</span>"+(t=""),o=i),n=y[r][c]){case"&":e+="&";break;case"<":e+="<";break;case">":e+=">";break;case" ":e+=" ";break;default:e+=n}return[e,t]},m.TermDraw=function(){for(var e="",r="",t=0;t<m.height;++t){var i=m.TermDrawLine(r,t,e),r=i[0],e=i[1];t!=m.height-1&&(r+="<br>")}var n=(B=800<B.length?B.slice(B.length-800):B).join("");m.DivElement.innerHTML="<font size='4'><b>"+n+r+e+"</b></font>",m.DivElement.scrollTop=m.DivElement.scrollHeight,0==m.heightLock&&setTimeout(m.TermLockHeight,10)},m.TermLockHeight=function(){m.heightLock=m.DivElement.clientHeight,m.DivElement.style.height=m.DivElement.parentNode.style.height=m.heightLock+"px",m.DivElement.style["overflow-y"]="scroll"},m.TermInit=function(){m.TermResetScreen()},m.heightLock=0,m.DivElement.style.height="",null!=r&&null!=r.cols&&null!=r.rows?m.Init(r.cols,r.rows):m.Init(),m}
\ No newline at end of file
public/scripts/amt-wsman-0.2.0-min.js
+1
-1
@@ -1 +1 @@
1
-var WsmanStackCreateService=function(e,s,r,a,o,t){var u={};function l(e){if(!e)return"";var s,r=" ";for(s in e)e.hasOwnProperty(s)&&0===s.indexOf("@")&&(r+=s.substring(1)+'="'+e[s]+'" ');return r}function p(e){if(!e)return"";if("string"==typeof e)return e;if(e.InstanceID)return'<w:SelectorSet><w:Selector Name="InstanceID">'+e.InstanceID+"</w:Selector></w:SelectorSet>";var s,r="<w:SelectorSet>";for(s in e)if(e.hasOwnProperty(s)){if(r+='<w:Selector Name="'+s+'">',e[s].ReferenceParameters){var r=(r+="<a:EndpointReference>")+("<a:Address>"+e[s].Address+"</a:Address><a:ReferenceParameters><w:ResourceURI>"+e[s].ReferenceParameters.ResourceURI+"</w:ResourceURI><w:SelectorSet>"),a=e[s].ReferenceParameters.SelectorSet.Selector;if(Array.isArray(a))for(var o=0;o<a.length;o++)r+="<w:Selector"+l(a[o])+">"+a[o].Value+"</w:Selector>";else r+="<w:Selector"+l(a)+">"+a.Value+"</w:Selector>";r+="</w:SelectorSet></a:ReferenceParameters></a:EndpointReference>"}else r+=e[s];r+="</w:Selector>"}return r+="</w:SelectorSet>"}return u.NextMessageId=1,u.Address="/wsman",u.comm=CreateWsmanComm(e,s,r,a,o,t),u.PerformAjax=function(e,a,s,r,o){u.comm.PerformAjax('<?xml version=\"1.0\" encoding=\"utf-8\"?><Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns="http://www.w3.org/2003/05/soap-envelope" '+(o=null==o?"":o)+"><Header><a:Action>"+e,function(e,s,r){200!=s?a(u,null,{Header:{HttpError:s}},s,r):(e=u.ParseWsman(e))&&null!=e?a(u,e.Header.ResourceURI,e,200,r):a(u,null,{Header:{HttpError:s}},601,r)},s,r)},u.CancelAllQueries=function(e){u.comm.CancelAllQueries(e)},u.GetNameFromUrl=function(e){var s=e.lastIndexOf("/");return-1==s?e:e.substring(s+1)},u.ExecSubscribe=function(e,s,r,a,o,t,n,l,d,c){var m="",i="",d=(null!=d&&null!=c&&(m="<t:IssuedTokens><t:RequestSecurityTokenResponse><t:TokenType>http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken</t:TokenType><t:RequestedSecurityToken><se:UsernameToken><se:Username>"+d+'</se:Username><se:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd#PasswordText">'+c+"</se:Password></se:UsernameToken></t:RequestedSecurityToken></t:RequestSecurityTokenResponse></t:IssuedTokens>",i='<Auth Profile="http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryModes/secprofile/http/digest"/>'),l=null!=l?"<a:ReferenceParameters>"+l+"</a:ReferenceParameters>":"","http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo>"+p(n)+m+'</Header><Body><e:Subscribe><e:Delivery Mode="http://schemas.dmtf.org/wbem/wsman/1/wsman/'+s+'"><e:NotifyTo><a:Address>'+r+"</a:Address></e:NotifyTo>"+i+"</e:Delivery><e:Expires>PT0.000000S</e:Expires></e:Subscribe>");u.PerformAjax(d+"</Body></Envelope>",a,o,t,'xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:t="http://schemas.xmlsoap.org/ws/2005/02/trust" xmlns:se="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:m="http://x.com"')},u.ExecUnSubscribe=function(e,s,r,a,o){e="http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscribe</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo>"+p(o)+"</Header><Body><e:Unsubscribe/>";u.PerformAjax(e+"</Body></Envelope>",s,r,a,'xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing"')},u.ExecPut=function(e,s,r,a,o,t){t="http://schemas.xmlsoap.org/ws/2004/09/transfer/Put</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60.000S</w:OperationTimeout>"+p(t)+"</Header><Body>"+function(e,s){if(!e||null==s)return"";var r,a=u.GetNameFromUrl(e),o="<r:"+a+' xmlns:r="'+e+'">';for(r in s)if(s.hasOwnProperty(r)&&0!==r.indexOf("__")&&0!==r.indexOf("@")&&void 0!==s[r]&&null!==s[r]&&"function"!=typeof s[r])if("object"==typeof s[r]&&s[r].ReferenceParameters){o+="<r:"+r+"><a:Address>"+s[r].Address+"</a:Address><a:ReferenceParameters><w:ResourceURI>"+s[r].ReferenceParameters.ResourceURI+"</w:ResourceURI><w:SelectorSet>";var t=s[r].ReferenceParameters.SelectorSet.Selector;if(Array.isArray(t))for(var n=0;n<t.length;n++)o+="<w:Selector"+l(t[n])+">"+t[n].Value+"</w:Selector>";else o+="<w:Selector"+l(t)+">"+t.Value+"</w:Selector>";o+="</w:SelectorSet></a:ReferenceParameters></r:"+r+">"}else if(Array.isArray(s[r]))for(n=0;n<s[r].length;n++)o+="<r:"+r+">"+s[r][n].toString()+"</r:"+r+">";else o+="<r:"+r+">"+s[r].toString()+"</r:"+r+">";return o+="</r:"+a+">"}(e,s);u.PerformAjax(t+"</Body></Envelope>",r,a,o)},u.ExecCreate=function(e,s,r,a,o,t){var n,l=u.GetNameFromUrl(e),d="http://schemas.xmlsoap.org/ws/2004/09/transfer/Create</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout>"+p(t)+"</Header><Body><g:"+l+' xmlns:g="'+e+'">';for(n in s)d+="<g:"+n+">"+s[n]+"</g:"+n+">";u.PerformAjax(d+"</g:"+l+"></Body></Envelope>",r,a,o)},u.ExecCreateXml=function(e,s,r,a,o){var t=u.GetNameFromUrl(e);u.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/transfer/Create</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60.000S</w:OperationTimeout></Header><Body><r:"+t+' xmlns:r="'+e+'">'+s+"</r:"+t+"></Body></Envelope>",r,a,o)},u.ExecDelete=function(e,s,r,a,o){e="http://schemas.xmlsoap.org/ws/2004/09/transfer/Delete</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout>"+p(s)+"</Header><Body /></Envelope>";u.PerformAjax(e,r,a,o)},u.ExecGet=function(e,s,r,a){u.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/transfer/Get</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout></Header><Body /></Envelope>",s,r,a)},u.ExecMethod=function(e,s,r,a,o,t,n){var l,d="";for(l in r)if(null!=r[l])if(Array.isArray(r[l]))for(var c in r[l])d+="<r:"+l+">"+r[l][c]+"</r:"+l+">";else d+="<r:"+l+">"+r[l]+"</r:"+l+">";u.ExecMethodXml(e,s,d,a,o,t,n)},u.ExecMethodXml=function(e,s,r,a,o,t,n){u.PerformAjax(e+"/"+s+"</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout>"+p(n)+"</Header><Body><r:"+s+'_INPUT xmlns:r="'+e+'">'+r+"</r:"+s+"_INPUT></Body></Envelope>",a,o,t)},u.ExecEnum=function(e,s,r,a){u.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++'</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout></Header><Body><Enumerate xmlns="http://schemas.xmlsoap.org/ws/2004/09/enumeration" /></Body></Envelope>',s,r,a)},u.ExecPull=function(e,s,r,a,o){u.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++'</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout></Header><Body><Pull xmlns="http://schemas.xmlsoap.org/ws/2004/09/enumeration"><EnumerationContext>'+s+"</EnumerationContext><MaxElements>999</MaxElements><MaxCharacters>99999</MaxCharacters></Pull></Body></Envelope>",r,a,o)},u.ParseWsman=function(s){try{s.childNodes||(s=function(e){{var s;return window.DOMParser?(new DOMParser).parseFromString(e,"text/xml"):((s=new ActiveXObject("Microsoft.XMLDOM")).async=!1,s.loadXML(e),s)}}(s));var e={Header:{}},r=s.getElementsByTagName("Header")[0];if(!(r=r||s.getElementsByTagName("a:Header")[0]))return null;for(var a=0;a<r.childNodes.length;a++){var o=r.childNodes[a];e.Header[o.localName]=o.textContent}var t,n,l=s.getElementsByTagName("Body")[0];return(l=l||s.getElementsByTagName("a:Body")[0])?(0<l.childNodes.length&&(-1!=(n=(t=l.childNodes[0].localName).indexOf("_OUTPUT"))&&n==t.length-7&&(t=t.substring(0,t.length-7)),e.Header.Method=t,e.Body=function e(s){var r,a={};for(var o=0;o<s.childNodes.length;o++){var t=s.childNodes[o],n=r="false"==(r="true"==(r=0==t.childElementCount?t.textContent:e(t))?!0:r)?!1:r;if(0<t.attributes.length){n={Value:r};for(var l=0;l<t.attributes.length;l++)n["@"+t.attributes[l].name]=t.attributes[l].value}a[t.localName]instanceof Array?a[t.localName].push(n):null==a[t.localName]?a[t.localName]=n:a[t.localName]=[a[t.localName],n]}return a}(l.childNodes[0])),e):null}catch(e){return console.log("Unable to parse XML: "+s),null}},u}
\ No newline at end of file
1
+var WsmanStackCreateService=function(e,s,r,a,o,t){var u={};function l(e){if(!e)return"";var s,r=" ";for(s in e)e.hasOwnProperty(s)&&0===s.indexOf("@")&&(r+=s.substring(1)+'="'+e[s]+'" ');return r}function p(e){if(!e)return"";if("string"==typeof e)return e;if(e.InstanceID)return'<w:SelectorSet><w:Selector Name="InstanceID">'+e.InstanceID+"</w:Selector></w:SelectorSet>";var s,r="<w:SelectorSet>";for(s in e)if(e.hasOwnProperty(s)){if(r+='<w:Selector Name="'+s+'">',e[s].ReferenceParameters){var r=(r+="<a:EndpointReference>")+("<a:Address>"+e[s].Address+"</a:Address><a:ReferenceParameters><w:ResourceURI>"+e[s].ReferenceParameters.ResourceURI+"</w:ResourceURI><w:SelectorSet>"),a=e[s].ReferenceParameters.SelectorSet.Selector;if(Array.isArray(a))for(var o=0;o<a.length;o++)r+="<w:Selector"+l(a[o])+">"+a[o].Value+"</w:Selector>";else r+="<w:Selector"+l(a)+">"+a.Value+"</w:Selector>";r+="</w:SelectorSet></a:ReferenceParameters></a:EndpointReference>"}else r+=e[s];r+="</w:Selector>"}return r+="</w:SelectorSet>"}return u.NextMessageId=1,u.Address="/wsman",u.comm=CreateWsmanComm(e,s,r,a,o,t),u.PerformAjax=function(e,a,s,r,o){u.comm.PerformAjax('<?xml version=\"1.0\" encoding=\"utf-8\"?><Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns="http://www.w3.org/2003/05/soap-envelope" '+(o=null==o?"":o)+"><Header><a:Action>"+e,function(e,s,r){200!=s?a(u,null,{Header:{HttpError:s}},s,r):(e=u.ParseWsman(e))&&null!=e?a(u,e.Header.ResourceURI,e,200,r):a(u,null,{Header:{HttpError:s}},601,r)},s,r)},u.CancelAllQueries=function(e){u.comm.CancelAllQueries(e)},u.GetNameFromUrl=function(e){var s=e.lastIndexOf("/");return-1==s?e:e.substring(s+1)},u.ExecSubscribe=function(e,s,r,a,o,t,n,l,c,d){var m="",i="",c=(null!=c&&null!=d&&(m="<t:IssuedTokens><t:RequestSecurityTokenResponse><t:TokenType>http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken</t:TokenType><t:RequestedSecurityToken><se:UsernameToken><se:Username>"+c+'</se:Username><se:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd#PasswordText">'+d+"</se:Password></se:UsernameToken></t:RequestedSecurityToken></t:RequestSecurityTokenResponse></t:IssuedTokens>",i='<Auth Profile="http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryModes/secprofile/http/digest"/>'),l=null!=l?"<a:ReferenceParameters>"+l+"</a:ReferenceParameters>":"","http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo>"+p(n)+m+'</Header><Body><e:Subscribe><e:Delivery Mode="http://schemas.dmtf.org/wbem/wsman/1/wsman/'+s+'"><e:NotifyTo><a:Address>'+r+"</a:Address></e:NotifyTo>"+i+"</e:Delivery><e:Expires>PT0.000000S</e:Expires></e:Subscribe>");u.PerformAjax(c+"</Body></Envelope>",a,o,t,'xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:t="http://schemas.xmlsoap.org/ws/2005/02/trust" xmlns:se="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:m="http://x.com"')},u.ExecUnSubscribe=function(e,s,r,a,o){e="http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscribe</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo>"+p(o)+"</Header><Body><e:Unsubscribe/>";u.PerformAjax(e+"</Body></Envelope>",s,r,a,'xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing"')},u.ExecPut=function(e,s,r,a,o,t){t="http://schemas.xmlsoap.org/ws/2004/09/transfer/Put</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60.000S</w:OperationTimeout>"+p(t)+"</Header><Body>"+function(e,s){if(!e||null==s)return"";var r,a=u.GetNameFromUrl(e),o="<r:"+a+' xmlns:r="'+e+'">';for(r in s)if(s.hasOwnProperty(r)&&0!==r.indexOf("__")&&0!==r.indexOf("@")&&void 0!==s[r]&&null!==s[r]&&"function"!=typeof s[r])if("object"==typeof s[r]&&s[r].ReferenceParameters){o+="<r:"+r+"><a:Address>"+s[r].Address+"</a:Address><a:ReferenceParameters><w:ResourceURI>"+s[r].ReferenceParameters.ResourceURI+"</w:ResourceURI><w:SelectorSet>";var t=s[r].ReferenceParameters.SelectorSet.Selector;if(Array.isArray(t))for(var n=0;n<t.length;n++)o+="<w:Selector"+l(t[n])+">"+t[n].Value+"</w:Selector>";else o+="<w:Selector"+l(t)+">"+t.Value+"</w:Selector>";o+="</w:SelectorSet></a:ReferenceParameters></r:"+r+">"}else if(Array.isArray(s[r]))for(n=0;n<s[r].length;n++)o+="<r:"+r+">"+s[r][n].toString()+"</r:"+r+">";else o+="<r:"+r+">"+s[r].toString()+"</r:"+r+">";return o+="</r:"+a+">"}(e,s);u.PerformAjax(t+"</Body></Envelope>",r,a,o)},u.ExecCreate=function(e,s,r,a,o,t){var n,l=u.GetNameFromUrl(e),c="http://schemas.xmlsoap.org/ws/2004/09/transfer/Create</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout>"+p(t)+"</Header><Body><g:"+l+' xmlns:g="'+e+'">';for(n in s)c+="<g:"+n+">"+s[n]+"</g:"+n+">";u.PerformAjax(c+"</g:"+l+"></Body></Envelope>",r,a,o)},u.ExecCreateXml=function(e,s,r,a,o){var t=u.GetNameFromUrl(e);u.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/transfer/Create</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60.000S</w:OperationTimeout></Header><Body><r:"+t+' xmlns:r="'+e+'">'+s+"</r:"+t+"></Body></Envelope>",r,a,o)},u.ExecDelete=function(e,s,r,a,o){e="http://schemas.xmlsoap.org/ws/2004/09/transfer/Delete</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout>"+p(s)+"</Header><Body /></Envelope>";u.PerformAjax(e,r,a,o)},u.ExecGet=function(e,s,r,a){u.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/transfer/Get</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout></Header><Body /></Envelope>",s,r,a)},u.ExecMethod=function(e,s,r,a,o,t,n){var l,c="";for(l in r)if(null!=r[l])if(Array.isArray(r[l]))for(var d in r[l])c+="<r:"+l+">"+r[l][d]+"</r:"+l+">";else c+="<r:"+l+">"+r[l]+"</r:"+l+">";u.ExecMethodXml(e,s,c,a,o,t,n)},u.ExecMethodXml=function(e,s,r,a,o,t,n){u.PerformAjax(e+"/"+s+"</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout>"+p(n)+"</Header><Body><r:"+s+'_INPUT xmlns:r="'+e+'">'+r+"</r:"+s+"_INPUT></Body></Envelope>",a,o,t)},u.ExecEnum=function(e,s,r,a){u.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++'</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout></Header><Body><Enumerate xmlns="http://schemas.xmlsoap.org/ws/2004/09/enumeration" /></Body></Envelope>',s,r,a)},u.ExecPull=function(e,s,r,a,o){u.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++'</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout></Header><Body><Pull xmlns="http://schemas.xmlsoap.org/ws/2004/09/enumeration"><EnumerationContext>'+s+"</EnumerationContext><MaxElements>999</MaxElements><MaxCharacters>99999</MaxCharacters></Pull></Body></Envelope>",r,a,o)},u.ParseWsman=function(s){try{s.childNodes||(s=function(e){{var s;return window.DOMParser?(new DOMParser).parseFromString(e,"text/xml"):((s=new ActiveXObject("Microsoft.XMLDOM")).async=!1,s.loadXML(e),s)}}(s));var e={Header:{}},r=s.getElementsByTagName("Header")[0];if(!(r=r||s.getElementsByTagName("a:Header")[0]))return null;for(var a=0;a<r.childNodes.length;a++){var o=r.childNodes[a];e.Header[o.localName]=o.textContent}var t,n,l=s.getElementsByTagName("Body")[0];return(l=l||s.getElementsByTagName("a:Body")[0])?(0<l.childNodes.length&&(-1!=(n=(t=l.childNodes[0].localName).indexOf("_OUTPUT"))&&n==t.length-7&&(t=t.substring(0,t.length-7)),e.Header.Method=t,e.Body=function e(s){var r,a={};for(var o=0;o<s.childNodes.length;o++){var t=s.childNodes[o],n=r="false"==(r="true"==(r=0==t.childElementCount?t.textContent:e(t))?!0:r)?!1:r;if(0<t.attributes.length){n={Value:r};for(var l=0;l<t.attributes.length;l++)n["@"+t.attributes[l].name]=t.attributes[l].value}a[t.localName]instanceof Array?a[t.localName].push(n):null==a[t.localName]?a[t.localName]=n:a[t.localName]=[a[t.localName],n]}return a}(l.childNodes[0])),e):null}catch(e){return console.log("Unable to parse XML: "+s),null}},u}
\ No newline at end of file
public/scripts/amt-wsman-ws-0.2.0-min.js
+1
-1
@@ -1 +1 @@
1
-var CreateWsmanComm=function(e,t,n,r,o){var u={};function c(e){e="00000000"+e.toString(16);return e.substring(e.length-8)}function a(){for(i in u.socketState=2,u.pendingAjaxCall)u.sendRequest(u.pendingAjaxCall[i][0],u.pendingAjaxCall[i][3],u.pendingAjaxCall[i][4])}function s(e){for(u.socketAccumulator+=(e=new Uint8Array(e.data),String.fromCharCode.apply(null,e));;){if(0==u.socketParseState){var t,n=u.socketAccumulator.indexOf("\r\n\r\n");if(n<0)return;if(u.socketHeader=u.socketAccumulator.substring(0,n).split("\r\n"),null==u.amtVersion)for(var r in u.socketHeader)0==u.socketHeader[r].indexOf("Server: Intel(R) Active Management Technology ")&&(u.amtVersion=u.socketHeader[r].substring(46));for(r in u.socketAccumulator=u.socketAccumulator.substring(n+4),u.socketParseState=1,u.socketData="",u.socketXHeader={Directive:u.socketHeader[0].split(" ")},u.socketHeader)0!=r&&(t=u.socketHeader[r].indexOf(":"),u.socketXHeader[u.socketHeader[r].substring(0,t).toLowerCase()]=u.socketHeader[r].substring(t+2))}if(1==u.socketParseState){n=-1;if(null==u.socketXHeader.connection||"close"!=u.socketXHeader.connection.toLowerCase()||null!=u.socketXHeader["transfer-encoding"]&&"chunked"==u.socketXHeader["transfer-encoding"].toLowerCase())if(null!=u.socketXHeader["content-length"]){if(n=parseInt(u.socketXHeader["content-length"]),u.socketAccumulator.length<n)return;var o=u.socketAccumulator.substring(0,n);u.socketAccumulator=u.socketAccumulator.substring(n),u.socketData=o,n=0}else{var a=u.socketAccumulator.indexOf("\r\n");if(a<0)return;if(n=parseInt(u.socketAccumulator.substring(0,a),16),isNaN(n))return void(u.websocket&&u.websocket.close());if(u.socketAccumulator.length<a+2+n+2)return;o=u.socketAccumulator.substring(a+2,a+2+n);u.socketAccumulator=u.socketAccumulator.substring(a+2+n+2),u.socketData+=o}else n=0;if(0==n){a=l=i=c=s=a=void 0;var a=u.socketXHeader,s=u.socketData,c=parseInt(a.Directive[1]);if(401==(c=isNaN(c)?602:c)&&++u.authcounter<3){if(u.challengeParams=u.parseDigest(a["www-authenticate"]),null!=u.challengeParams.qop){var l,i=u.challengeParams.qop.split(",");for(l in i)i[l]=i[l].trim();0<=i.indexOf("auth-int")?u.challengeParams.qop="auth-int":u.challengeParams.qop="auth"}}else{a=u.pendingAjaxCall.shift();u.authcounter=0,u.ActiveAjaxCount--,u.gotNextMessages(s,"success",{status:c},a),u.PerformNextAjax()}u.socketParseState=0,u.socketHeader=null}}}}function l(e){var t,n;u.socketState=0,null!=u.socket&&(u.socket.close(),u.socket=null),0<u.pendingAjaxCall.length&&(n=(t=u.pendingAjaxCall.shift())[5],u.PerformAjaxExNodeJS2(t[0],t[1],t[2],t[3],t[4],--n))}return u.PendingAjax=[],u.ActiveAjaxCount=0,u.MaxActiveAjaxCount=1,u.FailAllError=0,u.challengeParams=null,u.noncecounter=1,u.authcounter=0,u.socket=null,u.socketState=0,u.host=e,u.port=t,u.user=n,u.pass=r,u.tls=o,u.tlsv1only=1,u.cnonce=Math.random().toString(36).substring(7),u.PerformAjax=function(e,t,n,r,o,a){u.ActiveAjaxCount<u.MaxActiveAjaxCount&&0==u.PendingAjax.length?u.PerformAjaxEx(e,t,n,o,a):1==r?u.PendingAjax.unshift([e,t,n,o,a]):u.PendingAjax.push([e,t,n,o,a])},u.PerformNextAjax=function(){var e;u.ActiveAjaxCount>=u.MaxActiveAjaxCount||0==u.PendingAjax.length||(e=u.PendingAjax.shift(),u.PerformAjaxEx(e[0],e[1],e[2],e[3],e[4]),u.PerformNextAjax())},u.PerformAjaxEx=function(e,t,n,r,o){if(0==u.FailAllError)return e=e||"",u.ActiveAjaxCount++,u.PerformAjaxExNodeJS(e,t,n,r,o);u.gotNextMessagesError({status:u.FailAllError},"error",null,[e,t,n,r,o])},u.pendingAjaxCall=[],u.PerformAjaxExNodeJS=function(e,t,n,r,o){u.PerformAjaxExNodeJS2(e,t,n,r,o,3)},u.PerformAjaxExNodeJS2=function(e,t,n,r,o,a){if(a<=0||0!=u.FailAllError)return u.ActiveAjaxCount--,999!=u.FailAllError&&u.gotNextMessages(null,"error",{status:0==u.FailAllError?408:u.FailAllError},[e,t,n,r,o]),void u.PerformNextAjax();u.pendingAjaxCall.push([e,t,n,r,o,a]),0==u.socketState?u.xxConnectHttpSocket():2==u.socketState&&u.sendRequest(e,r,o)},u.sendRequest=function(e,t,n){var r=(n=n||"POST")+" "+(t=t||"/wsman")+" HTTP/1.1\r\n",o=(null!=u.challengeParams&&(n=hex_md5(hex_md5(u.user+":"+u.challengeParams.realm+":"+u.pass)+":"+u.challengeParams.nonce+":"+c(u.noncecounter)+":"+u.cnonce+":"+u.challengeParams.qop+":"+hex_md5(n+":"+t+("auth-int"==u.challengeParams.qop?":"+hex_md5(e):""))),r+="Authorization: "+u.renderDigest({username:u.user,realm:u.challengeParams.realm,nonce:u.challengeParams.nonce,uri:t,qop:u.challengeParams.qop,response:n,nc:c(u.noncecounter++),cnonce:u.cnonce})+"\r\n"),r+="Host: "+u.host+":"+u.port+"\r\nTransfer-Encoding: chunked\r\n\r\n"+e.length.toString(16).toUpperCase()+"\r\n"+e+"\r\n0\r\n\r\n");if(2==u.socketState&&null!=u.socket&&u.socket.readyState==WebSocket.OPEN){for(var a=new Uint8Array(o.length),s=0;s<o.length;++s)a[s]=o.charCodeAt(s);try{u.socket.send(a.buffer)}catch(e){}}},u.parseDigest=function(e){return e.substring(7).split(",").reduce(function(e,t){return e.ic?e.st[e.st.length-1]+=","+t:e.st.push(t),t.split('"').length%2==0&&(e.ic=!e.ic),e},{st:[],ic:!1}).st.reduce(function(e,t){t=t.trim().split("=");return e[t[0]]=t[1].replace(new RegExp('"',"g"),""),e},{})},u.renderDigest=function(n){var e=[];for(i in n)e.push(i);return"Digest "+e.reduce(function(e,t){return e+","+("nc"==t||"qop"==t?t+"="+n[t]:t+'="'+n[t]+'"')},"").substring(1)},u.xxConnectHttpSocket=function(){u.socketParseState=0,u.socketAccumulator="",u.socketHeader=null,u.socketData="",u.socketState=1,u.socket=new WebSocket(window.location.protocol.replace("http","ws")+"//"+window.location.host+window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/webrelay.ashx?p=1&host="+u.host+"&port="+u.port+"&tls="+u.tls+"&tlsv1only="+u.tlsv1only+("*"==n?"&serverauth=1":"")+(void 0===r?"&serverauth=1&user="+n:"")),u.socket.binaryType="arraybuffer",u.socket.onopen=a,u.socket.onmessage=s,u.socket.onclose=l},u.gotNextMessages=function(e,t,n,r){999!=u.FailAllError&&(0!=u.FailAllError?r[1](null,u.FailAllError,r[2]):200!=n.status?r[1](null,n.status,r[2]):r[1](e,200,r[2]))},u.gotNextMessagesError=function(e,t,n,r){999!=u.FailAllError&&(0!=u.FailAllError?r[1](null,u.FailAllError,r[2]):r[1](u,null,{Header:{HttpError:e.status}},e.status,r[2]))},u.CancelAllQueries=function(e){for(;0<u.PendingAjax.length;){var t=u.PendingAjax.shift();t[1](null,e,t[2])}null!=u.websocket&&(u.websocket.close(),u.websocket=null,u.socketState=0)},u}
\ No newline at end of file
1
+var CreateWsmanComm=function(e,t,n,r,o){var u={};function c(e){e="00000000"+e.toString(16);return e.substring(e.length-8)}function a(){for(i in u.socketState=2,u.pendingAjaxCall)u.sendRequest(u.pendingAjaxCall[i][0],u.pendingAjaxCall[i][3],u.pendingAjaxCall[i][4])}function s(e){for(u.socketAccumulator+=(e=new Uint8Array(e.data),String.fromCharCode.apply(null,e));;){if(0==u.socketParseState){var t,n=u.socketAccumulator.indexOf("\r\n\r\n");if(n<0)return;if(u.socketHeader=u.socketAccumulator.substring(0,n).split("\r\n"),null==u.amtVersion)for(var r in u.socketHeader)0==u.socketHeader[r].indexOf("Server: Intel(R) Active Management Technology ")&&(u.amtVersion=u.socketHeader[r].substring(46));for(r in u.socketAccumulator=u.socketAccumulator.substring(n+4),u.socketParseState=1,u.socketData="",u.socketXHeader={Directive:u.socketHeader[0].split(" ")},u.socketHeader)0!=r&&(t=u.socketHeader[r].indexOf(":"),u.socketXHeader[u.socketHeader[r].substring(0,t).toLowerCase()]=u.socketHeader[r].substring(t+2))}if(1==u.socketParseState){n=-1;if(null==u.socketXHeader.connection||"close"!=u.socketXHeader.connection.toLowerCase()||null!=u.socketXHeader["transfer-encoding"]&&"chunked"==u.socketXHeader["transfer-encoding"].toLowerCase())if(null!=u.socketXHeader["content-length"]){if(n=parseInt(u.socketXHeader["content-length"]),u.socketAccumulator.length<n)return;var o=u.socketAccumulator.substring(0,n);u.socketAccumulator=u.socketAccumulator.substring(n),u.socketData=o,n=0}else{var a=u.socketAccumulator.indexOf("\r\n");if(a<0)return;if(n=parseInt(u.socketAccumulator.substring(0,a),16),isNaN(n))return void(u.websocket&&u.websocket.close());if(u.socketAccumulator.length<a+2+n+2)return;o=u.socketAccumulator.substring(a+2,a+2+n);u.socketAccumulator=u.socketAccumulator.substring(a+2+n+2),u.socketData+=o}else n=0;if(0==n){l=i=c=s=a=void 0;var a=u.socketXHeader,s=u.socketData,c=parseInt(a.Directive[1]);if(401==(c=isNaN(c)?602:c)&&++u.authcounter<3){if(u.challengeParams=u.parseDigest(a["www-authenticate"]),null!=u.challengeParams.qop){var l,i=u.challengeParams.qop.split(",");for(l in i)i[l]=i[l].trim();0<=i.indexOf("auth-int")?u.challengeParams.qop="auth-int":u.challengeParams.qop="auth"}}else{a=u.pendingAjaxCall.shift();u.authcounter=0,u.ActiveAjaxCount--,u.gotNextMessages(s,"success",{status:c},a),u.PerformNextAjax()}u.socketParseState=0,u.socketHeader=null}}}}function l(e){var t,n;u.socketState=0,null!=u.socket&&(u.socket.close(),u.socket=null),0<u.pendingAjaxCall.length&&(n=(t=u.pendingAjaxCall.shift())[5],u.PerformAjaxExNodeJS2(t[0],t[1],t[2],t[3],t[4],--n))}return u.PendingAjax=[],u.ActiveAjaxCount=0,u.MaxActiveAjaxCount=1,u.FailAllError=0,u.challengeParams=null,u.noncecounter=1,u.authcounter=0,u.socket=null,u.socketState=0,u.host=e,u.port=t,u.user=n,u.pass=r,u.tls=o,u.tlsv1only=1,u.cnonce=Math.random().toString(36).substring(7),u.PerformAjax=function(e,t,n,r,o,a){u.ActiveAjaxCount<u.MaxActiveAjaxCount&&0==u.PendingAjax.length?u.PerformAjaxEx(e,t,n,o,a):1==r?u.PendingAjax.unshift([e,t,n,o,a]):u.PendingAjax.push([e,t,n,o,a])},u.PerformNextAjax=function(){var e;u.ActiveAjaxCount>=u.MaxActiveAjaxCount||0==u.PendingAjax.length||(e=u.PendingAjax.shift(),u.PerformAjaxEx(e[0],e[1],e[2],e[3],e[4]),u.PerformNextAjax())},u.PerformAjaxEx=function(e,t,n,r,o){if(0==u.FailAllError)return e=e||"",u.ActiveAjaxCount++,u.PerformAjaxExNodeJS(e,t,n,r,o);u.gotNextMessagesError({status:u.FailAllError},"error",null,[e,t,n,r,o])},u.pendingAjaxCall=[],u.PerformAjaxExNodeJS=function(e,t,n,r,o){u.PerformAjaxExNodeJS2(e,t,n,r,o,3)},u.PerformAjaxExNodeJS2=function(e,t,n,r,o,a){a<=0||0!=u.FailAllError?(u.ActiveAjaxCount--,999!=u.FailAllError&&u.gotNextMessages(null,"error",{status:0==u.FailAllError?408:u.FailAllError},[e,t,n,r,o]),u.PerformNextAjax()):(u.pendingAjaxCall.push([e,t,n,r,o,a]),0==u.socketState?u.xxConnectHttpSocket():2==u.socketState&&u.sendRequest(e,r,o))},u.sendRequest=function(e,t,n){var r=(n=n||"POST")+" "+(t=t||"/wsman")+" HTTP/1.1\r\n",o=(null!=u.challengeParams&&(n=hex_md5(hex_md5(u.user+":"+u.challengeParams.realm+":"+u.pass)+":"+u.challengeParams.nonce+":"+c(u.noncecounter)+":"+u.cnonce+":"+u.challengeParams.qop+":"+hex_md5(n+":"+t+("auth-int"==u.challengeParams.qop?":"+hex_md5(e):""))),r+="Authorization: "+u.renderDigest({username:u.user,realm:u.challengeParams.realm,nonce:u.challengeParams.nonce,uri:t,qop:u.challengeParams.qop,response:n,nc:c(u.noncecounter++),cnonce:u.cnonce})+"\r\n"),r+="Host: "+u.host+":"+u.port+"\r\nTransfer-Encoding: chunked\r\n\r\n"+e.length.toString(16).toUpperCase()+"\r\n"+e+"\r\n0\r\n\r\n");if(2==u.socketState&&null!=u.socket&&u.socket.readyState==WebSocket.OPEN){for(var a=new Uint8Array(o.length),s=0;s<o.length;++s)a[s]=o.charCodeAt(s);try{u.socket.send(a.buffer)}catch(e){}}},u.parseDigest=function(e){return e.substring(7).split(",").reduce(function(e,t){return e.ic?e.st[e.st.length-1]+=","+t:e.st.push(t),t.split('"').length%2==0&&(e.ic=!e.ic),e},{st:[],ic:!1}).st.reduce(function(e,t){t=t.trim().split("=");return e[t[0]]=t[1].replace(new RegExp('"',"g"),""),e},{})},u.renderDigest=function(n){var e=[];for(i in n)e.push(i);return"Digest "+e.reduce(function(e,t){return e+","+("nc"==t||"qop"==t?t+"="+n[t]:t+'="'+n[t]+'"')},"").substring(1)},u.xxConnectHttpSocket=function(){u.socketParseState=0,u.socketAccumulator="",u.socketHeader=null,u.socketData="",u.socketState=1,u.socket=new WebSocket(window.location.protocol.replace("http","ws")+"//"+window.location.host+window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))+"/webrelay.ashx?p=1&host="+u.host+"&port="+u.port+"&tls="+u.tls+"&tlsv1only="+u.tlsv1only+("*"==n?"&serverauth=1":"")+(void 0===r?"&serverauth=1&user="+n:"")),u.socket.binaryType="arraybuffer",u.socket.onopen=a,u.socket.onmessage=s,u.socket.onclose=l},u.gotNextMessages=function(e,t,n,r){999!=u.FailAllError&&(0!=u.FailAllError?r[1](null,u.FailAllError,r[2]):200!=n.status?r[1](null,n.status,r[2]):r[1](e,200,r[2]))},u.gotNextMessagesError=function(e,t,n,r){999!=u.FailAllError&&(0!=u.FailAllError?r[1](null,u.FailAllError,r[2]):r[1](u,null,{Header:{HttpError:e.status}},e.status,r[2]))},u.CancelAllQueries=function(e){for(;0<u.PendingAjax.length;){var t=u.PendingAjax.shift();t[1](null,e,t[2])}null!=u.websocket&&(u.websocket.close(),u.websocket=null,u.socketState=0)},u}
\ No newline at end of file
public/scripts/charts-min.js
+1
-1
@@ -1 +1 @@
1
-!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=t()}(function(){return function i(a,o,r){function s(n,t){if(!o[n]){if(!a[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(l)return l(n,!0);throw(t=new Error("Cannot find module '"+n+"'")).code="MODULE_NOT_FOUND",t}e=o[n]={exports:{}},a[n][0].call(e.exports,function(t){var e=a[n][1][t];return s(e||t)},e,e.exports,i,a,o,r)}return o[n].exports}for(var l="function"==typeof require&&require,t=0;t<r.length;t++)s(r[t]);return s}({1:[function(t,e,n){var o=t(5);function i(t){if(t){var e=[0,0,0],n=1;if(i=t.match(/^#([a-fA-F0-9]{3})$/i))for(var i=i[1],a=0;a<e.length;a++)e[a]=parseInt(i[a]+i[a],16);else if(i=t.match(/^#([a-fA-F0-9]{6})$/i)){i=i[1];for(a=0;a<e.length;a++)e[a]=parseInt(i.slice(2*a,2*a+2),16)}else if(i=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(a=0;a<e.length;a++)e[a]=parseInt(i[a+1]);n=parseFloat(i[4])}else if(i=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(a=0;a<e.length;a++)e[a]=Math.round(2.55*parseFloat(i[a+1]));n=parseFloat(i[4])}else if(i=t.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(e=o[i[1]]))return}for(a=0;a<e.length;a++)e[a]=d(e[a],0,255);return n=n||0==n?d(n,0,1):1,e[3]=n,e}}function a(t){var e;if(t)return t=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/),t?(e=parseFloat(t[4]),[d(parseInt(t[1]),0,360),d(parseFloat(t[2]),0,100),d(parseFloat(t[3]),0,100),d(isNaN(e)?1:e,0,1)]):void 0}function r(t){var e;if(t)return t=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/),t?(e=parseFloat(t[4]),[d(parseInt(t[1]),0,360),d(parseFloat(t[2]),0,100),d(parseFloat(t[3]),0,100),d(isNaN(e)?1:e,0,1)]):void 0}function s(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function l(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function u(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function d(t,e,n){return Math.min(Math.max(e,t),n)}function h(t){t=t.toString(16).toUpperCase();return t.length<2?"0"+t:t}e.exports={getRgba:i,getHsla:a,getRgb:function(t){t=i(t);return t&&t.slice(0,3)},getHsl:function(t){t=a(t);return t&&t.slice(0,3)},getHwb:r,getAlpha:function(t){var e=i(t);return(e=e||a(t))||(e=r(t))?e[3]:void 0},hexString:function(t){return"#"+h(t[0])+h(t[1])+h(t[2])},rgbString:function(t,e){if(e<1||t[3]&&t[3]<1)return s(t,e);return"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:s,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return l(t,e);var e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),t=Math.round(t[2]/255*100);return"rgb("+e+"%, "+n+"%, "+t+"%)"},percentaString:l,hslString:function(t,e){if(e<1||t[3]&&t[3]<1)return u(t,e);return"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:u,hwbString:function(t,e){void 0===e&&(e=void 0!==t[3]?t[3]:1);return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return f[t.slice(0,3)]}};var c,f={};for(c in o)f[o[c]]=c},{5:5}],2:[function(t,e,n){function r(t){return t instanceof r?t:this instanceof r?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof t?(e=i.getRgba(t))?this.setValues("rgb",e):(e=i.getHsla(t))?this.setValues("hsl",e):(e=i.getHwb(t))&&this.setValues("hwb",e):"object"==typeof t&&(void 0!==(e=t).r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e)))):new r(t);var e}var d=t(4),i=t(1);(r.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t=t&&((t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return i.hexString(this.values.rgb)},rgbString:function(){return i.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return i.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return i.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return i.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return i.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return i.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return i.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((.055+i)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),t=t.luminosity();return t<e?(e+.05)/(t+.05):(t+.05)/(e+.05)},level:function(t){t=this.contrast(t);return 7.1<=t?"AAA":4.5<=t?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,t=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,t=(e[0]+t)%360;return e[0]=t<0?360+t:t,this.setValues("hsl",e),this},mix:function(t,e){var n=this,e=void 0===e?.5:e,i=2*e-1,a=n.alpha()-t.alpha(),i=(1+(i*a==-1?i:(i+a)/(1+i*a)))/2,a=1-i;return this.rgb(i*n.red()+a*t.red(),i*n.green()+a*t.green(),i*n.blue()+a*t.blue()).alpha(n.alpha()*e+t.alpha()*(1-e))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n,i=new r,a=this.values,o=i.values;for(n in a)a.hasOwnProperty(n)&&(t=a[n],"[object Array]"===(e={}.toString.call(t))?o[n]=t.slice(0):"[object Number]"===e?o[n]=t:console.error("unexpected color value:",t));return i}}).spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},r.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},r.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i<t.length;i++)n[t.charAt(i)]=e[t][i];return 1!==e.alpha&&(n.a=e.alpha),n},r.prototype.setValues=function(t,e){var n,i,a=this.values,o=this.spaces,r=this.maxes,s=1;if(this.valid=!0,"alpha"===t)s=e;else if(e.length)a[t]=e.slice(0,t.length),s=e[t.length];else if(void 0!==e[t.charAt(0)]){for(u=0;u<t.length;u++)a[t][u]=e[t.charAt(u)];s=e.a}else if(void 0!==e[o[t][0]]){for(var l=o[t],u=0;u<t.length;u++)a[t][u]=e[l[u]];s=e.alpha}if(a.alpha=Math.max(0,Math.min(1,void 0===s?a.alpha:s)),"alpha"===t)return!1;for(u=0;u<t.length;u++)n=Math.max(0,Math.min(r[t][u],a[t][u])),a[t][u]=Math.round(n);for(i in o)i!==t&&(a[i]=d[t][i](a[t]));return!0},r.prototype.setSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},r.prototype.setChannel=function(t,e,n){var i=this.values[t];return void 0===n?i[e]:(n!==i[e]&&(i[e]=n,this.setValues(t,i)),this)},"undefined"!=typeof window&&(window.Color=r),e.exports=r},{1:1,4:4}],3:[function(t,e,n){function a(t){var e,n=t[0]/255,i=t[1]/255,t=t[2]/255,a=Math.min(n,i,t),o=Math.max(n,i,t),r=o-a;return o==a?e=0:n==o?e=(i-t)/r:i==o?e=2+(t-n)/r:t==o&&(e=4+(n-i)/r),(e=Math.min(60*e,360))<0&&(e+=360),t=(a+o)/2,[e,100*(o==a?0:t<=.5?r/(o+a):r/(2-o-a)),100*t]}function i(t){var e,n=t[0],i=t[1],t=t[2],a=Math.min(n,i,t),o=Math.max(n,i,t),r=o-a,s=0==o?0:r/o*1e3/10;return o==a?e=0:n==o?e=(i-t)/r:i==o?e=2+(t-n)/r:t==o&&(e=4+(n-i)/r),(e=Math.min(60*e,360))<0&&(e+=360),[e,s,o/255*1e3/10]}function o(t){var e=t[0],n=t[1],i=t[2];return[a(t)[0],100*(1/255*Math.min(e,Math.min(n,i))),100*(1-1/255*Math.max(e,Math.max(n,i)))]}function s(t){var e=t[0]/255,n=t[1]/255,t=t[2]/255,i=Math.min(1-e,1-n,1-t);return[100*((1-e-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-t-i)/(1-i)||0),100*i]}function l(t){return D[JSON.stringify(t)]}function u(t){var e=t[0]/255,n=t[1]/255,t=t[2]/255;return[100*(.4124*(e=.04045<e?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=.04045<n?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(t=.04045<t?Math.pow((t+.055)/1.055,2.4):t/12.92)),100*(.2126*e+.7152*n+.0722*t),100*(.0193*e+.1192*n+.9505*t)]}function d(t){var t=u(t),e=t[0],n=t[1],t=t[2];return n/=100,t/=108.883,e=.008856<(e/=95.047)?Math.pow(e,1/3):7.787*e+16/116,[116*(n=.008856<n?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(t=.008856<t?Math.pow(t,1/3):7.787*t+16/116))]}function h(t){var e,n,i=t[0]/360,a=t[1]/100,t=t[2]/100;if(0==a)return[n=255*t,n,n];for(var o,r=2*t-(o=t<.5?t*(1+a):t+a-t*a),s=[0,0,0],l=0;l<3;l++)(e=i+1/3*-(l-1))<0&&e++,1<e&&e--,s[l]=255*(n=6*e<1?r+6*(o-r)*e:2*e<1?o:3*e<2?r+(o-r)*(2/3-e)*6:r);return s}function c(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,t=Math.floor(e)%6,e=e-Math.floor(e),a=255*i*(1-n),o=255*i*(1-n*e),r=255*i*(1-n*(1-e)),i=255*i;switch(t){case 0:return[i,r,a];case 1:return[o,i,a];case 2:return[a,i,r];case 3:return[a,o,i];case 4:return[r,a,i];case 5:return[i,a,o]}}function f(t){var e,n,i=t[0]/360,a=t[1]/100,t=t[2]/100,o=a+t;switch(1<o&&(a/=o,t/=o),i=6*i-(o=Math.floor(6*i)),n=a+(i=0!=(1&o)?1-i:i)*((e=1-t)-a),o){default:case 6:case 0:r=e,g=n,b=a;break;case 1:r=n,g=e,b=a;break;case 2:r=a,g=e,b=n;break;case 3:r=a,g=n,b=e;break;case 4:r=n,g=a,b=e;break;case 5:r=e,g=a,b=n}return[255*r,255*g,255*b]}function m(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,t=t[3]/100;return[255*(1-Math.min(1,e*(1-t)+t)),255*(1-Math.min(1,n*(1-t)+t)),255*(1-Math.min(1,i*(1-t)+t))]}function p(t){var e=t[0]/100,n=t[1]/100,t=t[2]/100,i=3.2406*e+-1.5372*n+-.4986*t,a=-.9689*e+1.8758*n+.0415*t,e=.0557*e+-.204*n+1.057*t;return i=.0031308<i?1.055*Math.pow(i,1/2.4)-.055:12.92*i,a=.0031308<a?1.055*Math.pow(a,1/2.4)-.055:12.92*a,e=.0031308<e?1.055*Math.pow(e,1/2.4)-.055:12.92*e,[255*(i=Math.min(Math.max(0,i),1)),255*(a=Math.min(Math.max(0,a),1)),255*(e=Math.min(Math.max(0,e),1))]}function v(t){var e=t[0],n=t[1],t=t[2];return n/=100,t/=108.883,e=.008856<(e/=95.047)?Math.pow(e,1/3):7.787*e+16/116,[116*(n=.008856<n?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(t=.008856<t?Math.pow(t,1/3):7.787*t+16/116))]}function y(t){var e,n=t[0],i=t[1],t=t[2],n=n<=8?(e=100*n/903.3)/100*7.787+16/116:(e=100*Math.pow((n+16)/116,3),Math.pow(e/100,1/3)),a=a/95.047<=.008856?95.047*(i/500+n-16/116)/7.787:95.047*Math.pow(i/500+n,3),o=o/108.883<=.008859?108.883*(n-t/200-16/116)/7.787:108.883*Math.pow(n-t/200,3);return[a,e,o]}function x(t){var e=t[0],n=t[1],t=t[2],i=360*Math.atan2(t,n)/2/Math.PI;return i<0&&(i+=360),[e,Math.sqrt(n*n+t*t),i]}function _(t){return p(y(t))}function k(t){var e=t[0],n=t[1],t=t[2]/360*2*Math.PI;return[e,n*Math.cos(t),n*Math.sin(t)]}function w(t){return S[t]}e.exports={rgb2hsl:a,rgb2hsv:i,rgb2hwb:o,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:d,rgb2lch:function(t){return x(d(t))},hsl2rgb:h,hsl2hsv:function(t){var e=t[0],n=t[1]/100,t=t[2]/100;return 0!=t?[e,100*(2*(n*=(t*=2)<=1?t:2-t)/(t+n)),100*((t+n)/2)]:[0,0,0]},hsl2hwb:function(t){return o(h(t))},hsl2cmyk:function(t){return s(h(t))},hsl2keyword:function(t){return l(h(t))},hsv2rgb:c,hsv2hsl:function(t){var e,n=t[0],i=t[1]/100,t=t[2]/100;return e=i*t,[n,100*(e=(e/=(n=(2-i)*t)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(t){return o(c(t))},hsv2cmyk:function(t){return s(c(t))},hsv2keyword:function(t){return l(c(t))},hwb2rgb:f,hwb2hsl:function(t){return a(f(t))},hwb2hsv:function(t){return i(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:m,cmyk2hsl:function(t){return a(m(t))},cmyk2hsv:function(t){return i(m(t))},cmyk2hwb:function(t){return o(m(t))},cmyk2keyword:function(t){return l(m(t))},keyword2rgb:w,keyword2hsl:function(t){return a(w(t))},keyword2hsv:function(t){return i(w(t))},keyword2hwb:function(t){return o(w(t))},keyword2cmyk:function(t){return s(w(t))},keyword2lab:function(t){return d(w(t))},keyword2xyz:function(t){return u(w(t))},xyz2rgb:p,xyz2lab:v,xyz2lch:function(t){return x(v(t))},lab2xyz:y,lab2rgb:_,lab2lch:x,lch2lab:k,lch2xyz:function(t){return y(k(t))},lch2rgb:function(t){return _(k(t))}};var M,S={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},D={};for(M in S)D[JSON.stringify(S[M])]=M},{}],4:[function(t,e,n){function a(){return new l}var i,o=t(3);for(i in o){a[i+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),o[e](t)}}(i);var r=/(\w+)2(\w+)/.exec(i),s=r[1],r=r[2];(a[s]=a[s]||{})[r]=a[i]=function(i){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var e=o[i](t);if("string"!=typeof e&&void 0!==e)for(var n=0;n<e.length;n++)e[n]=Math.round(e[n]);return e}}(i)}var l=function(){this.convs={}};l.prototype.routeSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n))},l.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},l.prototype.getValues=function(t){var e,n,i=this.convs[t];return i||(e=this.space,n=this.convs[e],i=a[e][t](n),this.convs[t]=i),i},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){l.prototype[e]=function(t){return this.routeSpace(e,arguments)}}),e.exports=a},{3:3}],5:[function(t,e,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],6:[function(xn,_n,t){var e,n;e=this,n=function(){"use strict";var Y;function f(){return Y.apply(null,arguments)}function l(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function W(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t){return void 0===t}function N(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function z(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function H(t,e){for(var n=[],i=0;i<t.length;++i)n.push(e(t[i],i));return n}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function s(t,e){for(var n in e)h(e,n)&&(t[n]=e[n]);return h(e,"toString")&&(t.toString=e.toString),h(e,"valueOf")&&(t.valueOf=e.valueOf),t}function u(t,e,n,i){return Ie(t,e,n,i,!0).utc()}function g(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function V(t){if(null==t._isValid){var e=g(t),n=E.call(e.parsedDateParts,function(t){return null!=t}),n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function B(t){var e=u(NaN);return null!=t?s(g(e),t):g(e).userInvalidated=!0,e}var E=Array.prototype.some||function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1},j=f.momentProperties=[];function U(t,e){var n,i,a;if(o(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),o(e._i)||(t._i=e._i),o(e._f)||(t._f=e._f),o(e._l)||(t._l=e._l),o(e._strict)||(t._strict=e._strict),o(e._tzm)||(t._tzm=e._tzm),o(e._isUTC)||(t._isUTC=e._isUTC),o(e._offset)||(t._offset=e._offset),o(e._pf)||(t._pf=g(e)),o(e._locale)||(t._locale=e._locale),0<j.length)for(n=0;n<j.length;n++)o(a=e[i=j[n]])||(t[i]=a);return t}var q=!1;function G(t){U(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===q&&(q=!0,f.updateOffset(this),q=!1)}function r(t){return t instanceof G||null!=t&&null!=t._isAMomentObject}function d(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function c(t){var t=+t,e=0;return e=0!=t&&isFinite(t)?d(t):e}function Z(t,e,n){for(var i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0,r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&c(t[r])!==c(e[r]))&&o++;return o+a}function X(t){!1===f.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function t(a,o){var r=!0;return s(function(){if(null!=f.deprecationHandler&&f.deprecationHandler(null,a),r){for(var t,e=[],n=0;n<arguments.length;n++){if(t="","object"==typeof arguments[n]){for(var i in t+="\n["+n+"] ",arguments[0])t+=i+": "+arguments[0][i]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}X(a+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),r=!1}return o.apply(this,arguments)},o)}var J={};function K(t,e){null!=f.deprecationHandler&&f.deprecationHandler(t,e),J[t]||(X(e),J[t]=!0)}function m(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function $(t,e){var n,i=s({},t);for(n in e)h(e,n)&&(W(t[n])&&W(e[n])?(i[n]={},s(i[n],t[n]),s(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)h(t,n)&&!h(e,n)&&W(t[n])&&(i[n]=s({},i[n]));return i}function Q(t){null!=t&&this.set(t)}f.suppressDeprecationWarnings=!1,f.deprecationHandler=null;var tt=Object.keys||function(t){var e,n=[];for(e in t)h(t,e)&&n.push(e);return n};var et={};function e(t,e){var n=t.toLowerCase();et[n]=et[n+"s"]=et[e]=t}function p(t){return"string"==typeof t?et[t]||et[t.toLowerCase()]:void 0}function nt(t){var e,n,i={};for(n in t)h(t,n)&&(e=p(n))&&(i[e]=t[n]);return i}var it={};function n(t,e){it[t]=e}function v(t,e,n){var i=""+Math.abs(t);return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,e-i.length)).toString().substr(1)+i}var at=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ot=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,rt={},st={};function i(t,e,n,i){var a="string"==typeof i?function(){return this[i]()}:i;t&&(st[t]=a),e&&(st[e[0]]=function(){return v(a.apply(this,arguments),e[1],e[2])}),n&&(st[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function lt(t,e){return t.isValid()?(e=ut(e,t.localeData()),rt[e]=rt[e]||function(i){for(var t,a=i.match(at),e=0,o=a.length;e<o;e++)st[a[e]]?a[e]=st[a[e]]:a[e]=(t=a[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var e="",n=0;n<o;n++)e+=m(a[n])?a[n].call(t,i):a[n];return e}}(e),rt[e](t)):t.localeData().invalidDate()}function ut(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(ot.lastIndex=0;0<=n&&ot.test(t);)t=t.replace(ot,i),ot.lastIndex=0,--n;return t}var a=/\d/,y=/\d\d/,dt=/\d{3}/,ht=/\d{4}/,ct=/[+-]?\d{6}/,b=/\d\d?/,ft=/\d\d\d\d?/,gt=/\d\d\d\d\d\d?/,mt=/\d{1,3}/,pt=/\d{1,4}/,vt=/[+-]?\d{1,6}/,yt=/\d+/,bt=/[+-]?\d+/,xt=/Z|[+-]\d\d:?\d\d/gi,_t=/Z|[+-]\d\d(?::?\d\d)?/gi,x=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,kt={};function _(t,n,i){kt[t]=m(n)?n:function(t,e){return t&&i?i:n}}function wt(t,e){return h(kt,t)?kt[t](e._strict,e._locale):new RegExp(Mt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,a){return e||n||i||a})))}function Mt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var St={};function k(t,n){var e,i=n;for("string"==typeof t&&(t=[t]),N(n)&&(i=function(t,e){e[n]=c(t)}),e=0;e<t.length;e++)St[t[e]]=i}function Dt(t,a){k(t,function(t,e,n,i){n._w=n._w||{},a(t,n._w,n,i)})}var w=0,M=1,S=2,D=3,C=4,P=5,Ct=6,Pt=7,Tt=8;function Ot(t){return It(t)?366:365}function It(t){return t%4==0&&t%100!=0||t%400==0}i("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),i(0,["YY",2],0,function(){return this.year()%100}),i(0,["YYYY",4],0,"year"),i(0,["YYYYY",5],0,"year"),i(0,["YYYYYY",6,!0],0,"year"),e("year","y"),n("year",1),_("Y",bt),_("YY",b,y),_("YYYY",pt,ht),_("YYYYY",vt,ct),_("YYYYYY",vt,ct),k(["YYYYY","YYYYYY"],w),k("YYYY",function(t,e){e[w]=2===t.length?f.parseTwoDigitYear(t):c(t)}),k("YY",function(t,e){e[w]=f.parseTwoDigitYear(t)}),k("Y",function(t,e){e[w]=parseInt(t,10)}),f.parseTwoDigitYear=function(t){return c(t)+(68<c(t)?1900:2e3)};var T,At=Ft("FullYear",!0);function Ft(e,n){return function(t){return null!=t?(Lt(this,e,t),f.updateOffset(this,n),this):Rt(this,e)}}function Rt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Lt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&It(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Yt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Yt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=(e%(n=12)+n)%n;return t+=(e-n)/12,1==n?It(t)?29:28:31-n%7%2}T=Array.prototype.indexOf||function(t){for(var e=0;e<this.length;++e)if(this[e]===t)return e;return-1},i("M",["MM",2],"Mo",function(){return this.month()+1}),i("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),i("MMMM",0,0,function(t){return this.localeData().months(this,t)}),e("month","M"),n("month",8),_("M",b),_("MM",b,y),_("MMM",function(t,e){return e.monthsShortRegex(t)}),_("MMMM",function(t,e){return e.monthsRegex(t)}),k(["M","MM"],function(t,e){e[M]=c(t)-1}),k(["MMM","MMMM"],function(t,e,n,i){i=n._locale.monthsParse(t,i,n._strict);null!=i?e[M]=i:g(n).invalidMonth=t});var Wt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Nt="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var zt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Ht(t,e){var n;if(t.isValid()){if("string"==typeof e)if(/^\d+$/.test(e))e=c(e);else if(!N(e=t.localeData().monthsParse(e)))return;n=Math.min(t.date(),Yt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n)}}function Vt(t){return null!=t?(Ht(this,t),f.updateOffset(this,!0),this):Rt(this,"Month")}var Bt=x;var Et=x;function jt(){function t(t,e){return e.length-t.length}for(var e,n=[],i=[],a=[],o=0;o<12;o++)e=u([2e3,o]),n.push(this.monthsShort(e,"")),i.push(this.months(e,"")),a.push(this.months(e,"")),a.push(this.monthsShort(e,""));for(n.sort(t),i.sort(t),a.sort(t),o=0;o<12;o++)n[o]=Mt(n[o]),i[o]=Mt(i[o]);for(o=0;o<24;o++)a[o]=Mt(a[o]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Ut(t,e,n,i,a,o,r){e=new Date(t,e,n,i,a,o,r);return t<100&&0<=t&&isFinite(e.getFullYear())&&e.setFullYear(t),e}function qt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&0<=t&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Gt(t,e,n){n=7+e-n;return n-(7+qt(t,0,n).getUTCDay()-e)%7-1}function Zt(t,e,n,i,a){var o,e=1+7*(e-1)+(7+n-i)%7+Gt(t,i,a),n=e<=0?Ot(o=t-1)+e:e>Ot(t)?(o=t+1,e-Ot(t)):(o=t,e);return{year:o,dayOfYear:n}}function Xt(t,e,n){var i,a,o=Gt(t.year(),e,n),o=Math.floor((t.dayOfYear()-o-1)/7)+1;return o<1?i=o+Jt(a=t.year()-1,e,n):o>Jt(t.year(),e,n)?(i=o-Jt(t.year(),e,n),a=t.year()+1):(a=t.year(),i=o),{week:i,year:a}}function Jt(t,e,n){var i=Gt(t,e,n),e=Gt(t+1,e,n);return(Ot(t)-i+e)/7}i("w",["ww",2],"wo","week"),i("W",["WW",2],"Wo","isoWeek"),e("week","w"),e("isoWeek","W"),n("week",5),n("isoWeek",5),_("w",b),_("ww",b,y),_("W",b),_("WW",b,y),Dt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=c(t)});i("d",0,"do","day"),i("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),i("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),i("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),i("e",0,0,"weekday"),i("E",0,0,"isoWeekday"),e("day","d"),e("weekday","e"),e("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),_("d",b),_("e",b),_("E",b),_("dd",function(t,e){return e.weekdaysMinRegex(t)}),_("ddd",function(t,e){return e.weekdaysShortRegex(t)}),_("dddd",function(t,e){return e.weekdaysRegex(t)}),Dt(["dd","ddd","dddd"],function(t,e,n,i){i=n._locale.weekdaysParse(t,i,n._strict);null!=i?e.d=i:g(n).invalidWeekday=t}),Dt(["d","e","E"],function(t,e,n,i){e[i]=c(t)});var Kt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var $t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var te=x;var ee=x;var ne=x;function ie(){function t(t,e){return e.length-t.length}for(var e,n,i,a=[],o=[],r=[],s=[],l=0;l<7;l++)i=u([2e3,1]).day(l),e=this.weekdaysMin(i,""),n=this.weekdaysShort(i,""),i=this.weekdays(i,""),a.push(e),o.push(n),r.push(i),s.push(e),s.push(n),s.push(i);for(a.sort(t),o.sort(t),r.sort(t),s.sort(t),l=0;l<7;l++)o[l]=Mt(o[l]),r[l]=Mt(r[l]),s[l]=Mt(s[l]);this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ae(){return this.hours()%12||12}function oe(t,e){i(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function re(t,e){return e._meridiemParse}i("H",["HH",2],0,"hour"),i("h",["hh",2],0,ae),i("k",["kk",2],0,function(){return this.hours()||24}),i("hmm",0,0,function(){return""+ae.apply(this)+v(this.minutes(),2)}),i("hmmss",0,0,function(){return""+ae.apply(this)+v(this.minutes(),2)+v(this.seconds(),2)}),i("Hmm",0,0,function(){return""+this.hours()+v(this.minutes(),2)}),i("Hmmss",0,0,function(){return""+this.hours()+v(this.minutes(),2)+v(this.seconds(),2)}),oe("a",!0),oe("A",!1),e("hour","h"),n("hour",13),_("a",re),_("A",re),_("H",b),_("h",b),_("k",b),_("HH",b,y),_("hh",b,y),_("kk",b,y),_("hmm",ft),_("hmmss",gt),_("Hmm",ft),_("Hmmss",gt),k(["H","HH"],D),k(["k","kk"],function(t,e,n){t=c(t);e[D]=24===t?0:t}),k(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),k(["h","hh"],function(t,e,n){e[D]=c(t),g(n).bigHour=!0}),k("hmm",function(t,e,n){var i=t.length-2;e[D]=c(t.substr(0,i)),e[C]=c(t.substr(i)),g(n).bigHour=!0}),k("hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[D]=c(t.substr(0,i)),e[C]=c(t.substr(i,2)),e[P]=c(t.substr(a)),g(n).bigHour=!0}),k("Hmm",function(t,e,n){var i=t.length-2;e[D]=c(t.substr(0,i)),e[C]=c(t.substr(i))}),k("Hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[D]=c(t.substr(0,i)),e[C]=c(t.substr(i,2)),e[P]=c(t.substr(a))});var se,x=Ft("Hours",!0),le={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,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"},months:Nt,monthsShort:zt,week:{dow:0,doy:6},weekdays:Kt,weekdaysMin:Qt,weekdaysShort:$t,meridiemParse:/[ap]\.?m?\.?/i},O={},ue={};function de(t){return t&&t.toLowerCase().replace("_","-")}function he(t){if(!O[t]&&void 0!==_n&&_n&&_n.exports)try{var e=se._abbr;xn("./locale/"+t),ce(e)}catch(t){}return O[t]}function ce(t,e){return(se=t&&(t=o(e)?ge(t):fe(t,e))?t:se)._abbr}function fe(t,e){if(null===e)return delete O[t],null;var n=le;if(e.abbr=t,null!=O[t])K("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=O[t]._config;else if(null!=e.parentLocale){if(null==O[e.parentLocale])return ue[e.parentLocale]||(ue[e.parentLocale]=[]),ue[e.parentLocale].push({name:t,config:e}),null;n=O[e.parentLocale]._config}return O[t]=new Q($(n,e)),ue[t]&&ue[t].forEach(function(t){fe(t.name,t.config)}),ce(t),O[t]}function ge(t){var e;if(!(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t))return se;if(!l(t)){if(e=he(t))return e;t=[t]}for(var n,i,a,o,r=t,s=0;s<r.length;){for(n=(o=de(r[s]).split("-")).length,i=(i=de(r[s+1]))?i.split("-"):null;0<n;){if(a=he(o.slice(0,n).join("-")))return a;if(i&&i.length>=n&&Z(o,i,!0)>=n-1)break;n--}s++}return null}function me(t){var e=t._a;return e&&-2===g(t).overflow&&(e=e[M]<0||11<e[M]?M:e[S]<1||e[S]>Yt(e[w],e[M])?S:e[D]<0||24<e[D]||24===e[D]&&(0!==e[C]||0!==e[P]||0!==e[Ct])?D:e[C]<0||59<e[C]?C:e[P]<0||59<e[P]?P:e[Ct]<0||999<e[Ct]?Ct:-1,g(t)._overflowDayOfYear&&(e<w||S<e)&&(e=S),g(t)._overflowWeeks&&-1===e&&(e=Pt),g(t)._overflowWeekday&&-1===e&&(e=Tt),g(t).overflow=e),t}function pe(t,e,n){return null!=t?t:null!=e?e:n}function ve(t){var e,n,i,a,o,r,s,l,u,d,h,c=[];if(!t._d){for(i=t,a=new Date(f.now()),n=i._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()],t._w&&null==t._a[S]&&null==t._a[M]&&(null!=(a=(i=t)._w).GG||null!=a.W||null!=a.E?(l=1,u=4,o=pe(a.GG,i._a[w],Xt(I(),1,4).year),r=pe(a.W,1),((s=pe(a.E,1))<1||7<s)&&(d=!0)):(l=i._locale._week.dow,u=i._locale._week.doy,h=Xt(I(),l,u),o=pe(a.gg,i._a[w],h.year),r=pe(a.w,h.week),null!=a.d?((s=a.d)<0||6<s)&&(d=!0):null!=a.e?(s=a.e+l,(a.e<0||6<a.e)&&(d=!0)):s=l),r<1||r>Jt(o,l,u)?g(i)._overflowWeeks=!0:null!=d?g(i)._overflowWeekday=!0:(h=Zt(o,r,s,l,u),i._a[w]=h.year,i._dayOfYear=h.dayOfYear)),null!=t._dayOfYear&&(a=pe(t._a[w],n[w]),(t._dayOfYear>Ot(a)||0===t._dayOfYear)&&(g(t)._overflowDayOfYear=!0),d=qt(a,0,t._dayOfYear),t._a[M]=d.getUTCMonth(),t._a[S]=d.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=c[e]=n[e];for(;e<7;e++)t._a[e]=c[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[D]&&0===t._a[C]&&0===t._a[P]&&0===t._a[Ct]&&(t._nextDay=!0,t._a[D]=0),t._d=(t._useUTC?qt:Ut).apply(null,c),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[D]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(g(t).weekdayMismatch=!0)}}var ye=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,be=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xe=/Z|[+-]\d\d(?::?\d\d)?/,_e=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ke=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],we=/^\/?Date\((\-?\d+)/i;function Me(t){var e,n,i,a,o,r,s=t._i,l=ye.exec(s)||be.exec(s);if(l){for(g(t).iso=!0,e=0,n=_e.length;e<n;e++)if(_e[e][1].exec(l[1])){a=_e[e][0],i=!1!==_e[e][2];break}if(null==a)t._isValid=!1;else{if(l[3]){for(e=0,n=ke.length;e<n;e++)if(ke[e][1].exec(l[3])){o=(l[2]||" ")+ke[e][0];break}if(null==o)return void(t._isValid=!1)}if(i||null==o){if(l[4]){if(!xe.exec(l[4]))return void(t._isValid=!1);r="Z"}t._f=a+(o||"")+(r||""),Te(t)}else t._isValid=!1}}else t._isValid=!1}var Se=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function De(t,e,n,i,a,o){t=[function(t){t=parseInt(t,10);{if(t<=49)return 2e3+t;if(t<=999)return 1900+t}return t}(t),zt.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(a,10)];return o&&t.push(parseInt(o,10)),t}var Ce={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pe(t){var e,n,i,a,o=Se.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());o?(e=De(o[4],o[3],o[2],o[5],o[6],o[7]),n=o[1],i=e,a=t,n&&$t.indexOf(n)!==new Date(i[0],i[1],i[2]).getDay()?(g(a).weekdayMismatch=!0,a._isValid=!1):(t._a=e,t._tzm=(n=o[8],i=o[9],a=o[10],n?Ce[n]:i?0:60*(((n=parseInt(a,10))-(i=n%100))/100)+i),t._d=qt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),g(t).rfc2822=!0)):t._isValid=!1}function Te(t){if(t._f===f.ISO_8601)Me(t);else if(t._f===f.RFC_2822)Pe(t);else{t._a=[],g(t).empty=!0;for(var e,n,i,a,o,r=""+t._i,s=r.length,l=0,u=ut(t._f,t._locale).match(at)||[],d=0;d<u.length;d++)n=u[d],(e=(r.match(wt(n,t))||[])[0])&&(0<(i=r.substr(0,r.indexOf(e))).length&&g(t).unusedInput.push(i),r=r.slice(r.indexOf(e)+e.length),l+=e.length),st[n]?(e?g(t).empty=!1:g(t).unusedTokens.push(n),i=n,o=t,null!=(a=e)&&h(St,i)&&St[i](a,o._a,o,i)):t._strict&&!e&&g(t).unusedTokens.push(n);g(t).charsLeftOver=s-l,0<r.length&&g(t).unusedInput.push(r),t._a[D]<=12&&!0===g(t).bigHour&&0<t._a[D]&&(g(t).bigHour=void 0),g(t).parsedDateParts=t._a.slice(0),g(t).meridiem=t._meridiem,t._a[D]=function(t,e,n){if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((t=t.isPM(n))&&e<12&&(e+=12),e=t||12!==e?e:0):e}(t._locale,t._a[D],t._meridiem),ve(t),me(t)}}function Oe(t){var e,n,i=t._i,a=t._f;if(t._locale=t._locale||ge(t._l),null===i||void 0===a&&""===i)return B({nullInput:!0});if("string"==typeof i&&(t._i=i=t._locale.preparse(i)),r(i))return new G(me(i));if(z(i))t._d=i;else if(l(a))!function(t){var e,n,i,a,o;if(0===t._f.length)return g(t).invalidFormat=!0,t._d=new Date(NaN);for(a=0;a<t._f.length;a++)o=0,e=U({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[a],Te(e),V(e)&&(o=(o+=g(e).charsLeftOver)+10*g(e).unusedTokens.length,g(e).score=o,(null==i||o<i)&&(i=o,n=e));s(t,n||e)}(t);else if(a)Te(t);else if(o(a=(i=t)._i))i._d=new Date(f.now());else z(a)?i._d=new Date(a.valueOf()):"string"==typeof a?(n=i,null!==(e=we.exec(n._i))?n._d=new Date(+e[1]):(Me(n),!1===n._isValid&&(delete n._isValid,Pe(n),!1===n._isValid&&(delete n._isValid,f.createFromInputFallback(n))))):l(a)?(i._a=H(a.slice(0),function(t){return parseInt(t,10)}),ve(i)):W(a)?(e=i)._d||(n=nt(e._i),e._a=H([n.year,n.month,n.day||n.date,n.hour,n.minute,n.second,n.millisecond],function(t){return t&&parseInt(t,10)}),ve(e)):N(a)?i._d=new Date(a):f.createFromInputFallback(i);return V(t)||(t._d=null),t}function Ie(t,e,n,i,a){var o={};return!0!==n&&!1!==n||(i=n,n=void 0),(W(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(var e in t)if(t.hasOwnProperty(e))return;return 1}(t)||l(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=a,o._l=n,o._i=t,o._f=e,o._strict=i,(a=new G(me(Oe(a=o))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function I(t,e,n,i){return Ie(t,e,n,i,!1)}f.createFromInputFallback=t("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),f.ISO_8601=function(){},f.RFC_2822=function(){};ft=t("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=I.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:B()}),gt=t("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=I.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:B()});function Ae(t,e){var n,i;if(!(e=1===e.length&&l(e[0])?e[0]:e).length)return I();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Fe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Re(t){var t=nt(t),e=t.year||0,n=t.quarter||0,i=t.month||0,a=t.week||0,o=t.day||0,r=t.hour||0,s=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===T.call(Fe,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Fe.length;++i)if(t[Fe[i]]){if(n)return!1;parseFloat(t[Fe[i]])!==c(t[Fe[i]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*l+6e4*s+1e3*r*60*60,this._days=+o+7*a,this._months=+i+3*n+12*e,this._data={},this._locale=ge(),this._bubble()}function Le(t){return t instanceof Re}function Ye(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function We(t,n){i(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+v(~~(t/60),2)+n+v(~~t%60,2)})}We("Z",":"),We("ZZ",""),_("Z",_t),_("ZZ",_t),k(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=ze(_t,t)});var Ne=/([\+\-]|\d\d)/gi;function ze(t,e){e=(e||"").match(t);if(null===e)return null;t=((e[e.length-1]||[])+"").match(Ne)||["-",0,0],e=60*t[1]+c(t[2]);return 0===e?0:"+"===t[0]?e:-e}function He(t,e){var n;return e._isUTC?(e=e.clone(),n=(r(t)||z(t)?t:I(t)).valueOf()-e.valueOf(),e._d.setTime(e._d.valueOf()+n),f.updateOffset(e,!1),e):I(t).local()}function Ve(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Be(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}f.updateOffset=function(){};var Ee=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,je=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function A(t,e){var n,i=t,a=null;return Le(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:N(t)?(i={},e?i[e]=t:i.milliseconds=t):(a=Ee.exec(t))?(n="-"===a[1]?-1:1,i={y:0,d:c(a[S])*n,h:c(a[D])*n,m:c(a[C])*n,s:c(a[P])*n,ms:c(Ye(1e3*a[Ct]))*n}):(a=je.exec(t))?(n="-"===a[1]?-1:(a[1],1),i={y:Ue(a[2],n),M:Ue(a[3],n),w:Ue(a[4],n),d:Ue(a[5],n),h:Ue(a[6],n),m:Ue(a[7],n),s:Ue(a[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(e=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=He(e,t),t.isBefore(e)?n=qe(t,e):((n=qe(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(I(i.from),I(i.to)),(i={}).ms=e.milliseconds,i.M=e.months),a=new Re(i),Le(t)&&h(t,"_locale")&&(a._locale=t._locale),a}function Ue(t,e){t=t&&parseFloat(t.replace(",","."));return(isNaN(t)?0:t)*e}function qe(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ge(i,a){return function(t,e){var n;return null===e||isNaN(+e)||(K(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),Ze(this,A(t="string"==typeof t?+t:t,e),i),this}}function Ze(t,e,n,i){var a=e._milliseconds,o=Ye(e._days),e=Ye(e._months);t.isValid()&&(i=null==i||i,e&&Ht(t,Rt(t,"Month")+e*n),o&&Lt(t,"Date",Rt(t,"Date")+o*n),a&&t._d.setTime(t._d.valueOf()+a*n),i&&f.updateOffset(t,o||e))}A.fn=Re.prototype,A.invalid=function(){return A(NaN)};Nt=Ge(1,"add"),Kt=Ge(-1,"subtract");function Xe(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months"),e=e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(1+n,"months")-i);return-(n+e)||0}function Je(t){return void 0===t?this._locale._abbr:(null!=(t=ge(t))&&(this._locale=t),this)}f.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",f.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qt=t("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function Ke(){return this._locale}function $e(t,e){i(0,[t,t.length],0,e)}function Qe(t,e,n,i,a){var o;return null==t?Xt(this,i,a).year:(o=Jt(t,i,a),function(t,e,n,i,a){t=Zt(t,e,n,i,a),e=qt(t.year,0,t.dayOfYear);return this.year(e.getUTCFullYear()),this.month(e.getUTCMonth()),this.date(e.getUTCDate()),this}.call(this,t,e=o<e?o:e,n,i,a))}i(0,["gg",2],0,function(){return this.weekYear()%100}),i(0,["GG",2],0,function(){return this.isoWeekYear()%100}),$e("gggg","weekYear"),$e("ggggg","weekYear"),$e("GGGG","isoWeekYear"),$e("GGGGG","isoWeekYear"),e("weekYear","gg"),e("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),_("G",bt),_("g",bt),_("GG",b,y),_("gg",b,y),_("GGGG",pt,ht),_("gggg",pt,ht),_("GGGGG",vt,ct),_("ggggg",vt,ct),Dt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=c(t)}),Dt(["gg","GG"],function(t,e,n,i){e[i]=f.parseTwoDigitYear(t)}),i("Q",0,"Qo","quarter"),e("quarter","Q"),n("quarter",7),_("Q",a),k("Q",function(t,e){e[M]=3*(c(t)-1)}),i("D",["DD",2],"Do","date"),e("date","D"),n("date",9),_("D",b),_("DD",b,y),_("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),k(["D","DD"],S),k("Do",function(t,e){e[S]=c(t.match(b)[0])});pt=Ft("Date",!0);i("DDD",["DDDD",3],"DDDo","dayOfYear"),e("dayOfYear","DDD"),n("dayOfYear",4),_("DDD",mt),_("DDDD",dt),k(["DDD","DDDD"],function(t,e,n){n._dayOfYear=c(t)}),i("m",["mm",2],0,"minute"),e("minute","m"),n("minute",14),_("m",b),_("mm",b,y),k(["m","mm"],C);var tn,ht=Ft("Minutes",!1),vt=(i("s",["ss",2],0,"second"),e("second","s"),n("second",15),_("s",b),_("ss",b,y),k(["s","ss"],P),Ft("Seconds",!1));for(i("S",0,0,function(){return~~(this.millisecond()/100)}),i(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),i(0,["SSS",3],0,"millisecond"),i(0,["SSSS",4],0,function(){return 10*this.millisecond()}),i(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),i(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),i(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),i(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),i(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),e("millisecond","ms"),n("millisecond",16),_("S",mt,a),_("SS",mt,y),_("SSS",mt,dt),tn="SSSS";tn.length<=9;tn+="S")_(tn,yt);function en(t,e){e[Ct]=c(1e3*("0."+t))}for(tn="S";tn.length<=9;tn+="S")k(tn,en);ct=Ft("Milliseconds",!1);i("z",0,0,"zoneAbbr"),i("zz",0,0,"zoneName");a=G.prototype;function nn(t){return t}a.add=Nt,a.calendar=function(t,e){var n=He(t=t||I(),this).startOf("day"),n=f.calendarFormat(this,n)||"sameElse",e=e&&(m(e[n])?e[n].call(this,t):e[n]);return this.format(e||this.localeData().calendar(n,this,I(t)))},a.clone=function(){return new G(this)},a.diff=function(t,e,n){var i,a,o;if(!this.isValid())return NaN;if(!(i=He(t,this)).isValid())return NaN;switch(a=6e4*(i.utcOffset()-this.utcOffset()),e=p(e)){case"year":o=Xe(this,i)/12;break;case"month":o=Xe(this,i);break;case"quarter":o=Xe(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-a)/864e5;break;case"week":o=(this-i-a)/6048e5;break;default:o=this-i}return n?o:d(o)},a.endOf=function(t){return void 0===(t=p(t))||"millisecond"===t?this:this.startOf(t="date"===t?"day":t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")},a.format=function(t){return t=t||(this.isUtc()?f.defaultFormatUtc:f.defaultFormat),t=lt(this,t),this.localeData().postformat(t)},a.from=function(t,e){return this.isValid()&&(r(t)&&t.isValid()||I(t).isValid())?A({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},a.fromNow=function(t){return this.from(I(),t)},a.to=function(t,e){return this.isValid()&&(r(t)&&t.isValid()||I(t).isValid())?A({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},a.toNow=function(t){return this.to(I(),t)},a.get=function(t){return m(this[t=p(t)])?this[t]():this},a.invalidAt=function(){return g(this).overflow},a.isAfter=function(t,e){return t=r(t)?t:I(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=p(o(e)?"millisecond":e))?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf())},a.isBefore=function(t,e){return t=r(t)?t:I(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=p(o(e)?"millisecond":e))?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf())},a.isBetween=function(t,e,n,i){return("("===(i=i||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===i[1]?this.isBefore(e,n):!this.isAfter(e,n))},a.isSame=function(t,e){var t=r(t)?t:I(t);return!(!this.isValid()||!t.isValid())&&("millisecond"===(e=p(e||"millisecond"))?this.valueOf()===t.valueOf():(t=t.valueOf(),this.clone().startOf(e).valueOf()<=t&&t<=this.clone().endOf(e).valueOf()))},a.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},a.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},a.isValid=function(){return V(this)},a.lang=Qt,a.locale=Je,a.localeData=Ke,a.max=gt,a.min=ft,a.parsingFlags=function(){return s({},g(this))},a.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e,n=[];for(e in t)n.push({unit:e,priority:it[e]});return n.sort(function(t,e){return t.priority-e.priority}),n}(t=nt(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(m(this[t=p(t)]))return this[t](e);return this},a.startOf=function(t){switch(t=p(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},a.subtract=Kt,a.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},a.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},a.toDate=function(){return new Date(this.valueOf())},a.toISOString=function(t){if(!this.isValid())return null;var e=(t=!0!==t)?this.clone().utc():this;return e.year()<0||9999<e.year()?lt(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):m(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",lt(e,"Z")):lt(e,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},a.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",t=(this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z"),"["+t+'("]'),n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+(e+'[")]'))},a.toJSON=function(){return this.isValid()?this.toISOString():null},a.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},a.unix=function(){return Math.floor(this.valueOf()/1e3)},a.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},a.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},a.year=At,a.isLeapYear=function(){return It(this.year())},a.weekYear=function(t){return Qe.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},a.isoWeekYear=function(t){return Qe.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},a.quarter=a.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},a.month=Vt,a.daysInMonth=function(){return Yt(this.year(),this.month())},a.week=a.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},a.isoWeek=a.isoWeeks=function(t){var e=Xt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},a.weeksInYear=function(){var t=this.localeData()._week;return Jt(this.year(),t.dow,t.doy)},a.isoWeeksInYear=function(){return Jt(this.year(),1,4)},a.date=pt,a.day=a.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-i,"d")):i},a.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},a.isoWeekday=function(t){return this.isValid()?null!=t?(e=t,n=this.localeData(),n="string"==typeof e?n.weekdaysParse(e)%7||7:isNaN(e)?null:e,this.day(this.day()%7?n:n-7)):this.day()||7:null!=t?this:NaN;var e,n},a.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},a.hour=a.hours=x,a.minute=a.minutes=ht,a.second=a.seconds=vt,a.millisecond=a.milliseconds=ct,a.utcOffset=function(t,e,n){var i,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?a:Ve(this);if("string"==typeof t){if(null===(t=ze(_t,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=Ve(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!e||this._changeInProgress?Ze(this,A(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,f.updateOffset(this,!0),this._changeInProgress=null)),this},a.utc=function(t){return this.utcOffset(0,t)},a.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ve(this),"m")),this},a.parseZone=function(){var t;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(t=ze(xt,this._i))?this.utcOffset(t):this.utcOffset(0,!0)),this},a.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?I(t).utcOffset():0,(this.utcOffset()-t)%60==0)},a.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},a.isLocal=function(){return!!this.isValid()&&!this._isUTC},a.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},a.isUtc=Be,a.isUTC=Be,a.zoneAbbr=function(){return this._isUTC?"UTC":""},a.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},a.dates=t("dates accessor is deprecated. Use date instead.",pt),a.months=t("months accessor is deprecated. Use month instead",Vt),a.years=t("years accessor is deprecated. Use year instead",At),a.zone=t("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?(this.utcOffset(t="string"!=typeof t?-t:t,e),this):-this.utcOffset()}),a.isDSTShifted=t("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var t,e;return o(this._isDSTShifted)&&(U(t={},this),(t=Oe(t))._a?(e=(t._isUTC?u:I)(t._a),this._isDSTShifted=this.isValid()&&0<Z(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=Q.prototype;function an(t,e,n,i){var a=ge(),i=u().set(i,e);return a[n](i,t)}function on(t,e,n){if(N(t)&&(e=t,t=void 0),t=t||"",null!=e)return an(t,e,n,"month");for(var i=[],a=0;a<12;a++)i[a]=an(t,a,n,"month");return i}function rn(t,e,n,i){e=("boolean"==typeof t?N(e)&&(n=e,e=void 0):(e=t,t=!1,N(n=e)&&(n=e,e=void 0)),e||"");var a=ge(),o=t?a._week.dow:0;if(null!=n)return an(e,(n+o)%7,i,"day");for(var r=[],s=0;s<7;s++)r[s]=an(e,(s+o)%7,i,"day");return r}y.calendar=function(t,e,n){return m(t=this._calendar[t]||this._calendar.sameElse)?t.call(e,n):t},y.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(t){return this._ordinal.replace("%d",t)},y.preparse=nn,y.postformat=nn,y.relativeTime=function(t,e,n,i){var a=this._relativeTime[n];return m(a)?a(t,e,n,i):a.replace(/%d/i,t)},y.pastFuture=function(t,e){return m(t=this._relativeTime[0<t?"future":"past"])?t(e):t.replace(/%s/i,e)},y.set=function(t){var e,n;for(n in t)m(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.months=function(t,e){return t?(l(this._months)?this._months:this._months[(this._months.isFormat||Wt).test(e)?"format":"standalone"])[t.month()]:l(this._months)?this._months:this._months.standalone},y.monthsShort=function(t,e){return t?(l(this._monthsShort)?this._monthsShort:this._monthsShort[Wt.test(e)?"format":"standalone"])[t.month()]:l(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(t,e,n){var i,a;if(this._monthsParseExact)return function(t,e,n){var i,a,o,t=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=u([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(a=T.call(this._shortMonthsParse,t))?a:null:-1!==(a=T.call(this._longMonthsParse,t))?a:null:"MMM"===e?-1!==(a=T.call(this._shortMonthsParse,t))||-1!==(a=T.call(this._longMonthsParse,t))?a:null:-1!==(a=T.call(this._longMonthsParse,t))||-1!==(a=T.call(this._shortMonthsParse,t))?a:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=u([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},y.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||jt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Et),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||jt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Bt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(t){return Xt(t,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(t,e){return t?(l(this._weekdays)?this._weekdays:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"])[t.day()]:l(this._weekdays)?this._weekdays:this._weekdays.standalone},y.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},y.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},y.weekdaysParse=function(t,e,n){var i,a;if(this._weekdaysParseExact)return function(t,e,n){var i,a,o,t=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=u([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(a=T.call(this._weekdaysParse,t))?a:null:"ddd"===e?-1!==(a=T.call(this._shortWeekdaysParse,t))?a:null:-1!==(a=T.call(this._minWeekdaysParse,t))?a:null:"dddd"===e?-1!==(a=T.call(this._weekdaysParse,t))||-1!==(a=T.call(this._shortWeekdaysParse,t))||-1!==(a=T.call(this._minWeekdaysParse,t))?a:null:"ddd"===e?-1!==(a=T.call(this._shortWeekdaysParse,t))||-1!==(a=T.call(this._weekdaysParse,t))||-1!==(a=T.call(this._minWeekdaysParse,t))?a:null:-1!==(a=T.call(this._minWeekdaysParse,t))||-1!==(a=T.call(this._weekdaysParse,t))||-1!==(a=T.call(this._shortWeekdaysParse,t))?a:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=u([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},y.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||ie.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=te),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||ie.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ee),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||ie.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ne),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},y.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},ce("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===c(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),f.lang=t("moment.lang is deprecated. Use moment.locale instead.",ce),f.langData=t("moment.langData is deprecated. Use moment.localeData instead.",ge);var F=Math.abs;function sn(t,e,n,i){e=A(e,n);return t._milliseconds+=i*e._milliseconds,t._days+=i*e._days,t._months+=i*e._months,t._bubble()}function ln(t){return t<0?Math.floor(t):Math.ceil(t)}function un(t){return 4800*t/146097}function dn(t){return 146097*t/4800}function hn(t){return function(){return this.as(t)}}mt=hn("ms"),dt=hn("s"),Nt=hn("m"),gt=hn("h"),ft=hn("d"),Kt=hn("w"),x=hn("M"),ht=hn("y");function cn(t){return function(){return this.isValid()?this._data[t]:NaN}}var vt=cn("milliseconds"),ct=cn("seconds"),pt=cn("minutes"),At=cn("hours"),y=cn("days"),fn=cn("months"),gn=cn("years");var mn=Math.round,R={ss:44,s:45,m:45,h:22,d:26,M:11};function pn(t,e,n){var i=A(t).abs(),a=mn(i.as("s")),o=mn(i.as("m")),r=mn(i.as("h")),s=mn(i.as("d")),l=mn(i.as("M")),i=mn(i.as("y")),a=(a<=R.ss?["s",a]:a<R.s&&["ss",a])||o<=1&&["m"]||o<R.m&&["mm",o]||r<=1&&["h"]||r<R.h&&["hh",r]||s<=1&&["d"]||s<R.d&&["dd",s]||l<=1&&["M"]||l<R.M&&["MM",l]||i<=1&&["y"]||["yy",i];return a[2]=e,a[3]=0<+t,a[4]=n,function(t,e,n,i,a){return a.relativeTime(e||1,!!n,t,i)}.apply(null,a)}var vn=Math.abs;function yn(t){return(0<t)-(t<0)||+t}function bn(){if(!this.isValid())return this.localeData().invalidDate();var t=vn(this._milliseconds)/1e3,e=vn(this._days),n=vn(this._months),i=d(t/60),a=d(i/60),o=(t%=60,i%=60,d(n/12)),n=n%=12,t=t?t.toFixed(3).replace(/\.?0+$/,""):"",r=this.asSeconds();if(!r)return"P0D";var s=yn(this._months)!==yn(r)?"-":"",l=yn(this._days)!==yn(r)?"-":"",u=yn(this._milliseconds)!==yn(r)?"-":"";return(r<0?"-":"")+"P"+(o?s+o+"Y":"")+(n?s+n+"M":"")+(e?l+e+"D":"")+(a||i||t?"T":"")+(a?u+a+"H":"")+(i?u+i+"M":"")+(t?u+t+"S":"")}var L=Re.prototype;return L.isValid=function(){return this._isValid},L.abs=function(){var t=this._data;return this._milliseconds=F(this._milliseconds),this._days=F(this._days),this._months=F(this._months),t.milliseconds=F(t.milliseconds),t.seconds=F(t.seconds),t.minutes=F(t.minutes),t.hours=F(t.hours),t.months=F(t.months),t.years=F(t.years),this},L.add=function(t,e){return sn(this,t,e,1)},L.subtract=function(t,e){return sn(this,t,e,-1)},L.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=p(t))||"year"===t)return e=this._days+i/864e5,n=this._months+un(e),"month"===t?n:n/12;switch(e=this._days+Math.round(dn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},L.asMilliseconds=mt,L.asSeconds=dt,L.asMinutes=Nt,L.asHours=gt,L.asDays=ft,L.asWeeks=Kt,L.asMonths=x,L.asYears=ht,L.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*c(this._months/12):NaN},L._bubble=function(){var t=this._milliseconds,e=this._days,n=this._months,i=this._data;return 0<=t&&0<=e&&0<=n||t<=0&&e<=0&&n<=0||(t+=864e5*ln(dn(n)+e),n=e=0),i.milliseconds=t%1e3,t=d(t/1e3),i.seconds=t%60,t=d(t/60),i.minutes=t%60,t=d(t/60),i.hours=t%24,e+=d(t/24),n+=t=d(un(e)),e-=ln(dn(t)),t=d(n/12),n%=12,i.days=e,i.months=n,i.years=t,this},L.clone=function(){return A(this)},L.get=function(t){return t=p(t),this.isValid()?this[t+"s"]():NaN},L.milliseconds=vt,L.seconds=ct,L.minutes=pt,L.hours=At,L.days=y,L.weeks=function(){return d(this.days()/7)},L.months=fn,L.years=gn,L.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=pn(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},L.toISOString=bn,L.toString=bn,L.toJSON=bn,L.locale=Je,L.localeData=Ke,L.toIsoString=t("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",bn),L.lang=Qt,i("X",0,0,"unix"),i("x",0,0,"valueOf"),_("x",bt),_("X",/[+-]?\d+(\.\d{1,3})?/),k("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),k("x",function(t,e,n){n._d=new Date(c(t))}),f.version="2.20.1",Y=I,f.fn=a,f.min=function(){return Ae("isBefore",[].slice.call(arguments,0))},f.max=function(){return Ae("isAfter",[].slice.call(arguments,0))},f.now=function(){return Date.now?Date.now():+new Date},f.utc=u,f.unix=function(t){return I(1e3*t)},f.months=function(t,e){return on(t,e,"months")},f.isDate=z,f.locale=ce,f.invalid=B,f.duration=A,f.isMoment=r,f.weekdays=function(t,e,n){return rn(t,e,n,"weekdays")},f.parseZone=function(){return I.apply(null,arguments).parseZone()},f.localeData=ge,f.isDuration=Le,f.monthsShort=function(t,e){return on(t,e,"monthsShort")},f.weekdaysMin=function(t,e,n){return rn(t,e,n,"weekdaysMin")},f.defineLocale=fe,f.updateLocale=function(t,e){var n,i;return null!=e?(n=le,(i=new Q(e=$(n=null!=(i=he(t))?i._config:n,e))).parentLocale=O[t],O[t]=i,ce(t)):null!=O[t]&&(null!=O[t].parentLocale?O[t]=O[t].parentLocale:null!=O[t]&&delete O[t]),O[t]},f.locales=function(){return tt(O)},f.weekdaysShort=function(t,e,n){return rn(t,e,n,"weekdaysShort")},f.normalizeUnits=p,f.relativeTimeRounding=function(t){return void 0===t?mn:"function"==typeof t&&(mn=t,!0)},f.relativeTimeThreshold=function(t,e){return void 0!==R[t]&&(void 0===e?R[t]:(R[t]=e,"s"===t&&(R.ss=e-1),!0))},f.calendarFormat=function(t,e){return(t=t.diff(e,"days",!0))<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"},f.prototype=a,f.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},f},"object"==typeof t&&void 0!==_n?_n.exports=n():e.moment=n()},{}],7:[function(t,e,n){var i,a=t(29)(),o=(a.helpers=t(45),t(27)(a),a.defaults=t(25),a.Element=t(26),a.elements=t(40),a.Interaction=t(28),a.layouts=t(30),a.platform=t(48),a.plugins=t(31),a.Ticks=t(34),t(22)(a),t(23)(a),t(24)(a),t(33)(a),t(32)(a),t(35)(a),t(55)(a),t(53)(a),t(54)(a),t(56)(a),t(57)(a),t(58)(a),t(15)(a),t(16)(a),t(17)(a),t(18)(a),t(19)(a),t(20)(a),t(21)(a),t(8)(a),t(9)(a),t(10)(a),t(11)(a),t(12)(a),t(13)(a),t(14)(a),t(49));for(i in o)o.hasOwnProperty(i)&&a.plugins.register(o[i]);a.platform.initialize(),e.exports=a,"undefined"!=typeof window&&(window.Chart=a),a.Legend=o.legend._element,a.Title=o.title._element,a.pluginService=a.plugins,a.PluginBase=a.Element.extend({}),a.canvasHelpers=a.helpers.canvas,a.layoutService=a.layouts},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,40:40,45:45,48:48,49:49,53:53,54:54,55:55,56:56,57:57,58:58,8:8,9:9}],8:[function(t,e,n){"use strict";e.exports=function(n){n.Bar=function(t,e){return e.type="bar",new n(t,e)}}},{}],9:[function(t,e,n){"use strict";e.exports=function(n){n.Bubble=function(t,e){return e.type="bubble",new n(t,e)}}},{}],10:[function(t,e,n){"use strict";e.exports=function(n){n.Doughnut=function(t,e){return e.type="doughnut",new n(t,e)}}},{}],11:[function(t,e,n){"use strict";e.exports=function(n){n.Line=function(t,e){return e.type="line",new n(t,e)}}},{}],12:[function(t,e,n){"use strict";e.exports=function(n){n.PolarArea=function(t,e){return e.type="polarArea",new n(t,e)}}},{}],13:[function(t,e,n){"use strict";e.exports=function(n){n.Radar=function(t,e){return e.type="radar",new n(t,e)}}},{}],14:[function(t,e,n){"use strict";e.exports=function(n){n.Scatter=function(t,e){return e.type="scatter",new n(t,e)}}},{}],15:[function(t,e,n){"use strict";var i=t(25),a=t(40),d=t(45);i._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),i._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var n="";return 0<t.length&&(t[0].yLabel?n=t[0].yLabel:0<e.labels.length&&t[0].index<e.labels.length&&(n=e.labels[t[0].index])),n},label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": "+t.xLabel}},mode:"index",axis:"y"}}),e.exports=function(e){e.controllers.bar=e.DatasetController.extend({dataElementType:a.Rectangle,initialize:function(){var t;e.DatasetController.prototype.initialize.apply(this,arguments),(t=this.getMeta()).stack=this.getDataset().stack,t.bar=!0},update:function(t){var e,n,i=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,n=i.length;e<n;++e)this.updateElement(i[e],e,t)},updateElement:function(t,e,n){var i=this,a=i.chart,o=i.getMeta(),r=i.getDataset(),s=t.custom||{},l=a.options.elements.rectangle;t._xScale=i.getScaleForId(o.xAxisID),t._yScale=i.getScaleForId(o.yAxisID),t._datasetIndex=i.index,t._index=e,t._model={datasetLabel:r.label,label:a.data.labels[e],borderSkipped:s.borderSkipped||l.borderSkipped,backgroundColor:s.backgroundColor||d.valueAtIndexOrDefault(r.backgroundColor,e,l.backgroundColor),borderColor:s.borderColor||d.valueAtIndexOrDefault(r.borderColor,e,l.borderColor),borderWidth:s.borderWidth||d.valueAtIndexOrDefault(r.borderWidth,e,l.borderWidth)},i.updateElementGeometry(t,e,n),t.pivot()},updateElementGeometry:function(t,e,n){var i=this,t=t._model,a=i.getValueScale(),o=a.getBasePixel(),a=a.isHorizontal(),r=i._ruler||i.getRuler(),s=i.calculateBarValuePixels(i.index,e),i=i.calculateBarIndexPixels(i.index,e,r);t.horizontal=a,t.base=n?o:s.base,t.x=a?n?o:s.head:i.center,t.y=a?i.center:n?o:s.head,t.height=a?i.size:void 0,t.width=a?void 0:i.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},_getStacks:function(t){for(var e,n=this.chart,i=this.getIndexScale().options.stacked,a=void 0===t?n.data.datasets.length:t+1,o=[],r=0;r<a;++r)(e=n.getDatasetMeta(r)).bar&&n.isDatasetVisible(r)&&(!1===i||!0===i&&-1===o.indexOf(e.stack)||void 0===i&&(void 0===e.stack||-1===o.indexOf(e.stack)))&&o.push(e.stack);return o},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){t=this._getStacks(t),e=void 0!==e?t.indexOf(e):-1;return-1===e?t.length-1:e},getRuler:function(){for(var t=this.getIndexScale(),e=this.getStackCount(),n=this.index,i=t.isHorizontal(),a=i?t.left:t.top,i=a+(i?t.width:t.height),o=[],r=0,s=this.getMeta().data.length;r<s;++r)o.push(t.getPixelForValue(null,r,n));return{min:d.isNullOrUndef(t.options.barThickness)?function(t,e){for(var n,i,a=t.isHorizontal()?t.width:t.height,o=t.getTicks(),r=1,s=e.length;r<s;++r)a=Math.min(a,e[r]-e[r-1]);for(r=0,s=o.length;r<s;++r)i=t.getPixelForTick(r),a=0<r?Math.min(a,i-n):a,n=i;return a}(t,o):-1,pixels:o,start:a,end:i,stackCount:e,scale:t}},calculateBarValuePixels:function(t,e){var n,i,a,o=this.chart,r=this.getMeta(),s=this.getValueScale(),l=o.data.datasets,u=s.getRightValue(l[t].data[e]),d=s.options.stacked,h=r.stack,c=0;if(d||void 0===d&&void 0!==h)for(n=0;n<t;++n)(i=o.getDatasetMeta(n)).bar&&i.stack===h&&i.controller.getValueScaleId()===s.id&&o.isDatasetVisible(n)&&(i=s.getRightValue(l[n].data[e]),(u<0&&i<0||0<=u&&0<i)&&(c+=i));return r=s.getPixelForValue(c),{size:a=((d=s.getPixelForValue(c+u))-r)/2,base:r,head:d,center:d+a/2}},calculateBarIndexPixels:function(t,e,n){var i,a,o,r,s,l=n.scale.options,n="flex"===l.barThickness?(i=e,o=(s=(a=n).pixels)[i],r=0<i?s[i-1]:null,s=i<s.length-1?s[i+1]:null,i=l.categoryPercentage,null===r&&(r=o-(null===s?a.end-o:s-o)),{chunk:((s=null===s?o+o-r:s)-r)/2*i/a.stackCount,ratio:l.barPercentage,start:o-(o-r)/2*i}):(s=e,a=n,r=(o=l).barThickness,i=a.stackCount,s=a.pixels[e],a=d.isNullOrUndef(r)?(u=a.min*o.categoryPercentage,o.barPercentage):(u=r*i,1),{chunk:u/i,ratio:a,start:s-u/2}),e=this.getStackIndex(t,this.getMeta().stack),u=n.start+n.chunk*e+n.chunk/2,t=Math.min(d.valueOrDefault(l.maxBarThickness,1/0),n.chunk*n.ratio);return{base:u-t/2,head:u+t/2,center:u,size:t}},draw:function(){var t=this.chart,e=this.getValueScale(),n=this.getMeta().data,i=this.getDataset(),a=n.length,o=0;for(d.canvas.clipArea(t.ctx,t.chartArea);o<a;++o)isNaN(e.getRightValue(i.data[o]))||n[o].draw();d.canvas.unclipArea(t.ctx)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},t=t._model;t.backgroundColor=i.hoverBackgroundColor||d.valueAtIndexOrDefault(e.hoverBackgroundColor,n,d.getHoverColor(t.backgroundColor)),t.borderColor=i.hoverBorderColor||d.valueAtIndexOrDefault(e.hoverBorderColor,n,d.getHoverColor(t.borderColor)),t.borderWidth=i.hoverBorderWidth||d.valueAtIndexOrDefault(e.hoverBorderWidth,n,t.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},t=t._model,a=this.chart.options.elements.rectangle;t.backgroundColor=i.backgroundColor||d.valueAtIndexOrDefault(e.backgroundColor,n,a.backgroundColor),t.borderColor=i.borderColor||d.valueAtIndexOrDefault(e.borderColor,n,a.borderColor),t.borderWidth=i.borderWidth||d.valueAtIndexOrDefault(e.borderWidth,n,a.borderWidth)}}),e.controllers.horizontalBar=e.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{25:25,40:40,45:45}],16:[function(t,e,n){"use strict";var i=t(25),a=t(40),f=t(45);i._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.datasets[t.datasetIndex].label||"",e=e.datasets[t.datasetIndex].data[t.index];return n+": ("+t.xLabel+", "+t.yLabel+", "+e.r+")"}}}}),e.exports=function(t){t.controllers.bubble=t.DatasetController.extend({dataElementType:a.Point,update:function(n){var i=this,t=i.getMeta().data;f.each(t,function(t,e){i.updateElement(t,e,n)})},updateElement:function(t,e,n){var i=this,a=i.getMeta(),o=t.custom||{},r=i.getScaleForId(a.xAxisID),a=i.getScaleForId(a.yAxisID),s=i._resolveElementOptions(t,e),l=i.getDataset().data[e],i=i.index,u=n?r.getPixelForDecimal(.5):r.getPixelForValue("object"==typeof l?l:NaN,e,i),l=n?a.getBasePixel():a.getPixelForValue(l,e,i);t._xScale=r,t._yScale=a,t._options=s,t._datasetIndex=i,t._index=e,t._model={backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth,hitRadius:s.hitRadius,pointStyle:s.pointStyle,radius:n?0:s.radius,skip:o.skip||isNaN(u)||isNaN(l),x:u,y:l},t.pivot()},setHoverStyle:function(t){var e=t._model,t=t._options;e.backgroundColor=f.valueOrDefault(t.hoverBackgroundColor,f.getHoverColor(t.backgroundColor)),e.borderColor=f.valueOrDefault(t.hoverBorderColor,f.getHoverColor(t.borderColor)),e.borderWidth=f.valueOrDefault(t.hoverBorderWidth,t.borderWidth),e.radius=t.radius+t.hoverRadius},removeHoverStyle:function(t){var e=t._model,t=t._options;e.backgroundColor=t.backgroundColor,e.borderColor=t.borderColor,e.borderWidth=t.borderWidth,e.radius=t.radius},_resolveElementOptions:function(t,e){for(var n,i=this.chart,a=i.data.datasets[this.index],o=t.custom||{},r=i.options.elements.point,s=f.options.resolve,t=a.data[e],l={},u={chart:i,dataIndex:e,dataset:a,datasetIndex:this.index},d=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle"],h=0,c=d.length;h<c;++h)l[n=d[h]]=s([o[n],a[n],r[n]],u,e);return l.radius=s([o.radius,t?t.r:void 0,a.radius,r.radius],u,e),l}})}},{25:25,40:40,45:45}],17:[function(t,e,n){"use strict";var i=t(25),a=t(40),y=t(45);i._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e=[],t=(e.push('<ul class="'+t.id+'-legend">'),t.data),n=t.datasets,i=t.labels;if(n.length)for(var a=0;a<n[0].data.length;++a)e.push('<li><span style="background-color:'+n[0].backgroundColor[a]+'"></span>'),i[a]&&e.push(i[a]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=s.getDatasetMeta(0),i=l.datasets[0],a=n.data[e],a=a&&a.custom||{},o=y.valueAtIndexOrDefault,r=s.options.elements.arc;return{text:t,fillStyle:a.backgroundColor||o(i.backgroundColor,e,r.backgroundColor),strokeStyle:a.borderColor||o(i.borderColor,e,r.borderColor),lineWidth:a.borderWidth||o(i.borderWidth,e,r.borderWidth),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var n,i=e.index,a=this.chart,o=0,r=(a.data.datasets||[]).length;o<r;++o)(n=a.getDatasetMeta(o)).data[i]&&(n.data[i].hidden=!n.data[i].hidden);a.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.labels[t.index],e=": "+e.datasets[t.datasetIndex].data[t.index];return y.isArray(n)?(n=n.slice())[0]+=e:n+=e,n}}}}),i._set("pie",y.clone(i.doughnut)),i._set("pie",{cutoutPercentage:0}),e.exports=function(e){e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:a.Arc,linkScales:y.noop,getRingIndex:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&++e;return e},update:function(n){var t,e,i,a,o,r,s,l=this,u=l.chart,d=u.chartArea,h=u.options,c=h.elements.arc,f=d.right-d.left-c.borderWidth,d=d.bottom-d.top-c.borderWidth,c=Math.min(f,d),g={x:0,y:0},m=l.getMeta(),p=h.cutoutPercentage,v=h.circumference;v<2*Math.PI&&(h=h.rotation%(2*Math.PI),v=(h+=2*Math.PI*(h>=Math.PI?-1:h<-Math.PI?1:0))+v,s=Math.cos(h),t=Math.sin(h),e=Math.cos(v),i=Math.sin(v),r=h<=0&&0<=v||h<=2*Math.PI&&2*Math.PI<=v,a=h<=.5*Math.PI&&.5*Math.PI<=v||h<=2.5*Math.PI&&2.5*Math.PI<=v,o=h<=-Math.PI&&-Math.PI<=v||h<=Math.PI&&Math.PI<=v,h=h<=.5*-Math.PI&&.5*-Math.PI<=v||h<=1.5*Math.PI&&1.5*Math.PI<=v,v=p/100,o=o?-1:Math.min(s*(s<0?1:v),e*(e<0?1:v)),h=h?-1:Math.min(t*(t<0?1:v),i*(i<0?1:v)),r=r?1:Math.max(s*(0<s?1:v),e*(0<e?1:v)),s=a?1:Math.max(t*(0<t?1:v),i*(0<i?1:v)),c=Math.min(f/(.5*(r-o)),d/(.5*(s-h))),g={x:-.5*(r+o),y:-.5*(s+h)}),u.borderWidth=l.getMaxBorderWidth(m.data),u.outerRadius=Math.max((c-u.borderWidth)/2,0),u.innerRadius=Math.max(p?u.outerRadius/100*p:0,0),u.radiusLength=(u.outerRadius-u.innerRadius)/u.getVisibleDatasetCount(),u.offsetX=g.x*u.outerRadius,u.offsetY=g.y*u.outerRadius,m.total=l.calculateTotal(),l.outerRadius=u.outerRadius-u.radiusLength*l.getRingIndex(l.index),l.innerRadius=Math.max(l.outerRadius-u.radiusLength,0),y.each(m.data,function(t,e){l.updateElement(t,e,n)})},updateElement:function(t,e,n){var i=this,a=i.chart,o=a.chartArea,r=a.options,s=r.animation,l=(o.left+o.right)/2,o=(o.top+o.bottom)/2,u=r.rotation,d=r.rotation,h=i.getDataset(),c=n&&s.animateRotate||t.hidden?0:i.calculateCircumference(h.data[e])*(r.circumference/(2*Math.PI)),f=n&&s.animateScale?0:i.innerRadius,g=n&&s.animateScale?0:i.outerRadius,m=y.valueAtIndexOrDefault,l=(y.extend(t,{_datasetIndex:i.index,_index:e,_model:{x:l+a.offsetX,y:o+a.offsetY,startAngle:u,endAngle:d,circumference:c,outerRadius:g,innerRadius:f,label:m(h.label,e,a.data.labels[e])}}),t._model);this.removeHoverStyle(t),n&&s.animateRotate||(l.startAngle=0===e?r.rotation:i.getMeta().data[e-1]._model.endAngle,l.endAngle=l.startAngle+l.circumference),t.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},calculateTotal:function(){var n,i=this.getDataset(),t=this.getMeta(),a=0;return y.each(t.data,function(t,e){n=i.data[e],isNaN(n)||t.hidden||(a+=Math.abs(n))}),a},calculateCircumference:function(t){var e=this.getMeta().total;return 0<e&&!isNaN(t)?2*Math.PI*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){for(var e,n=0,i=this.index,a=t.length,o=0;o<a;o++)n=(n=n<(e=t[o]._model?t[o]._model.borderWidth:0)?e:n)<(e=t[o]._chart?t[o]._chart.config.data.datasets[i].hoverBorderWidth:0)?e:n;return n}})}},{25:25,40:40,45:45}],18:[function(t,e,n){"use strict";var i=t(25),a=t(40),f=t(45);i._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function c(t,e){return f.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,update:function(t){var e,n,i,a=this,o=a.getMeta(),r=o.dataset,s=o.data||[],l=a.chart.options,u=l.elements.line,o=a.getScaleForId(o.yAxisID),d=a.getDataset(),h=c(d,l);for(h&&(i=r.custom||{},void 0!==d.tension&&void 0===d.lineTension&&(d.lineTension=d.tension),r._scale=o,r._datasetIndex=a.index,r._children=s,r._model={spanGaps:d.spanGaps||l.spanGaps,tension:i.tension||f.valueOrDefault(d.lineTension,u.tension),backgroundColor:i.backgroundColor||d.backgroundColor||u.backgroundColor,borderWidth:i.borderWidth||d.borderWidth||u.borderWidth,borderColor:i.borderColor||d.borderColor||u.borderColor,borderCapStyle:i.borderCapStyle||d.borderCapStyle||u.borderCapStyle,borderDash:i.borderDash||d.borderDash||u.borderDash,borderDashOffset:i.borderDashOffset||d.borderDashOffset||u.borderDashOffset,borderJoinStyle:i.borderJoinStyle||d.borderJoinStyle||u.borderJoinStyle,fill:i.fill||(void 0!==d.fill?d:u).fill,steppedLine:i.steppedLine||f.valueOrDefault(d.steppedLine,u.stepped),cubicInterpolationMode:i.cubicInterpolationMode||f.valueOrDefault(d.cubicInterpolationMode,u.cubicInterpolationMode)},r.pivot()),e=0,n=s.length;e<n;++e)a.updateElement(s[e],e,t);for(h&&0!==r._model.tension&&a.updateBezierControlPoints(),e=0,n=s.length;e<n;++e)s[e].pivot()},getPointBackgroundColor:function(t,e){var n=this.chart.options.elements.point.backgroundColor,i=this.getDataset(),t=t.custom||{};return t.backgroundColor?n=t.backgroundColor:i.pointBackgroundColor?n=f.valueAtIndexOrDefault(i.pointBackgroundColor,e,n):i.backgroundColor&&(n=i.backgroundColor),n},getPointBorderColor:function(t,e){var n=this.chart.options.elements.point.borderColor,i=this.getDataset(),t=t.custom||{};return t.borderColor?n=t.borderColor:i.pointBorderColor?n=f.valueAtIndexOrDefault(i.pointBorderColor,e,n):i.borderColor&&(n=i.borderColor),n},getPointBorderWidth:function(t,e){var n=this.chart.options.elements.point.borderWidth,i=this.getDataset(),t=t.custom||{};return isNaN(t.borderWidth)?!isNaN(i.pointBorderWidth)||f.isArray(i.pointBorderWidth)?n=f.valueAtIndexOrDefault(i.pointBorderWidth,e,n):isNaN(i.borderWidth)||(n=i.borderWidth):n=t.borderWidth,n},updateElement:function(t,e,n){var i,a=this,o=a.getMeta(),r=t.custom||{},s=a.getDataset(),l=a.index,u=s.data[e],d=a.getScaleForId(o.yAxisID),h=a.getScaleForId(o.xAxisID),c=a.chart.options.elements.point;void 0!==s.radius&&void 0===s.pointRadius&&(s.pointRadius=s.radius),void 0!==s.hitRadius&&void 0===s.pointHitRadius&&(s.pointHitRadius=s.hitRadius),i=h.getPixelForValue("object"==typeof u?u:NaN,e,l),n=n?d.getBasePixel():a.calculatePointY(u,e,l),t._xScale=h,t._yScale=d,t._datasetIndex=l,t._index=e,t._model={x:i,y:n,skip:r.skip||isNaN(i)||isNaN(n),radius:r.radius||f.valueAtIndexOrDefault(s.pointRadius,e,c.radius),pointStyle:r.pointStyle||f.valueAtIndexOrDefault(s.pointStyle,e,c.pointStyle),backgroundColor:a.getPointBackgroundColor(t,e),borderColor:a.getPointBorderColor(t,e),borderWidth:a.getPointBorderWidth(t,e),tension:o.dataset._model?o.dataset._model.tension:0,steppedLine:!!o.dataset._model&&o.dataset._model.steppedLine,hitRadius:r.hitRadius||f.valueAtIndexOrDefault(s.pointHitRadius,e,c.hitRadius)}},calculatePointY:function(t,e,n){var i,a=this.chart,o=this.getMeta(),r=this.getScaleForId(o.yAxisID),s=0,l=0;if(r.options.stacked){for(i=0;i<n;i++){var u,d=a.data.datasets[i];"line"===(u=a.getDatasetMeta(i)).type&&u.yAxisID===r.id&&a.isDatasetVisible(i)&&((u=Number(r.getRightValue(d.data[e])))<0?l+=u||0:s+=u||0)}o=Number(r.getRightValue(t));return o<0?r.getPixelForValue(l+o):r.getPixelForValue(s+o)}return r.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,n,i,a=this.getMeta(),o=this.chart.chartArea,r=a.data||[];function s(t,e,n){return Math.max(Math.min(t,n),e)}if(a.dataset._model.spanGaps&&(r=r.filter(function(t){return!t._model.skip})),"monotone"===a.dataset._model.cubicInterpolationMode)f.splineCurveMonotone(r);else for(t=0,e=r.length;t<e;++t)n=r[t]._model,i=f.splineCurve(f.previousItem(r,t)._model,n,f.nextItem(r,t)._model,a.dataset._model.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(this.chart.options.elements.line.capBezierPoints)for(t=0,e=r.length;t<e;++t)(n=r[t]._model).controlPointPreviousX=s(n.controlPointPreviousX,o.left,o.right),n.controlPointPreviousY=s(n.controlPointPreviousY,o.top,o.bottom),n.controlPointNextX=s(n.controlPointNextX,o.left,o.right),n.controlPointNextY=s(n.controlPointNextY,o.top,o.bottom)},draw:function(){var t=this.chart,e=this.getMeta(),n=e.data||[],i=t.chartArea,a=n.length,o=0;for(f.canvas.clipArea(t.ctx,i),c(this.getDataset(),t.options)&&e.dataset.draw(),f.canvas.unclipArea(t.ctx);o<a;++o)n[o].draw(i)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},t=t._model;t.radius=i.hoverRadius||f.valueAtIndexOrDefault(e.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),t.backgroundColor=i.hoverBackgroundColor||f.valueAtIndexOrDefault(e.pointHoverBackgroundColor,n,f.getHoverColor(t.backgroundColor)),t.borderColor=i.hoverBorderColor||f.valueAtIndexOrDefault(e.pointHoverBorderColor,n,f.getHoverColor(t.borderColor)),t.borderWidth=i.hoverBorderWidth||f.valueAtIndexOrDefault(e.pointHoverBorderWidth,n,t.borderWidth)},removeHoverStyle:function(t){var e=this,n=e.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},o=t._model;void 0!==n.radius&&void 0===n.pointRadius&&(n.pointRadius=n.radius),o.radius=a.radius||f.valueAtIndexOrDefault(n.pointRadius,i,e.chart.options.elements.point.radius),o.backgroundColor=e.getPointBackgroundColor(t,i),o.borderColor=e.getPointBorderColor(t,i),o.borderWidth=e.getPointBorderWidth(t,i)}})}},{25:25,40:40,45:45}],19:[function(t,e,n){"use strict";var i=t(25),a=t(40),y=t(45);i._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e=[],t=(e.push('<ul class="'+t.id+'-legend">'),t.data),n=t.datasets,i=t.labels;if(n.length)for(var a=0;a<n[0].data.length;++a)e.push('<li><span style="background-color:'+n[0].backgroundColor[a]+'"></span>'),i[a]&&e.push(i[a]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=s.getDatasetMeta(0),i=l.datasets[0],a=n.data[e].custom||{},o=y.valueAtIndexOrDefault,r=s.options.elements.arc;return{text:t,fillStyle:a.backgroundColor||o(i.backgroundColor,e,r.backgroundColor),strokeStyle:a.borderColor||o(i.borderColor,e,r.borderColor),lineWidth:a.borderWidth||o(i.borderWidth,e,r.borderWidth),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var n,i=e.index,a=this.chart,o=0,r=(a.data.datasets||[]).length;o<r;++o)(n=a.getDatasetMeta(o)).data[i].hidden=!n.data[i].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}}),e.exports=function(e){e.controllers.polarArea=e.DatasetController.extend({dataElementType:a.Arc,linkScales:y.noop,update:function(n){var i=this,t=i.chart,e=t.chartArea,a=i.getMeta(),o=t.options,r=o.elements.arc,e=Math.min(e.right-e.left,e.bottom-e.top);t.outerRadius=Math.max((e-r.borderWidth/2)/2,0),t.innerRadius=Math.max(o.cutoutPercentage?t.outerRadius/100*o.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),i.outerRadius=t.outerRadius-t.radiusLength*i.index,i.innerRadius=i.outerRadius-t.radiusLength,a.count=i.countVisibleElements(),y.each(a.data,function(t,e){i.updateElement(t,e,n)})},updateElement:function(t,e,n){for(var i=this,a=i.chart,o=i.getDataset(),r=a.options,s=r.animation,l=a.scale,a=a.data.labels,u=i.calculateCircumference(o.data[e]),d=l.xCenter,h=l.yCenter,c=0,f=i.getMeta(),g=0;g<e;++g)isNaN(o.data[g])||f.data[g].hidden||++c;var r=r.startAngle,m=t.hidden?0:l.getDistanceFromCenterForValue(o.data[e]),p=r+u*c,u=p+(t.hidden?0:u),v=s.animateScale?0:l.getDistanceFromCenterForValue(o.data[e]);y.extend(t,{_datasetIndex:i.index,_index:e,_scale:l,_model:{x:d,y:h,innerRadius:0,outerRadius:n?v:m,startAngle:n&&s.animateRotate?r:p,endAngle:n&&s.animateRotate?r:u,label:y.valueAtIndexOrDefault(a,e,a[e])}}),i.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},countVisibleElements:function(){var n=this.getDataset(),t=this.getMeta(),i=0;return y.each(t.data,function(t,e){isNaN(n.data[e])||t.hidden||i++}),i},calculateCircumference:function(t){var e=this.getMeta().count;return 0<e&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,n){"use strict";var i=t(25),a=t(40),u=t(45);i._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,linkScales:u.noop,update:function(n){var i=this,t=i.getMeta(),e=t.dataset,a=t.data,e=e.custom||{},o=i.getDataset(),r=i.chart.options.elements.line,s=i.chart.scale;void 0!==o.tension&&void 0===o.lineTension&&(o.lineTension=o.tension),u.extend(t.dataset,{_datasetIndex:i.index,_scale:s,_children:a,_loop:!0,_model:{tension:e.tension||u.valueOrDefault(o.lineTension,r.tension),backgroundColor:e.backgroundColor||o.backgroundColor||r.backgroundColor,borderWidth:e.borderWidth||o.borderWidth||r.borderWidth,borderColor:e.borderColor||o.borderColor||r.borderColor,fill:e.fill||(void 0!==o.fill?o:r).fill,borderCapStyle:e.borderCapStyle||o.borderCapStyle||r.borderCapStyle,borderDash:e.borderDash||o.borderDash||r.borderDash,borderDashOffset:e.borderDashOffset||o.borderDashOffset||r.borderDashOffset,borderJoinStyle:e.borderJoinStyle||o.borderJoinStyle||r.borderJoinStyle}}),t.dataset.pivot(),u.each(a,function(t,e){i.updateElement(t,e,n)},i),i.updateBezierControlPoints()},updateElement:function(t,e,n){var i=this,a=t.custom||{},o=i.getDataset(),r=i.chart.scale,s=i.chart.options.elements.point,l=r.getPointPositionForValue(e,o.data[e]);void 0!==o.radius&&void 0===o.pointRadius&&(o.pointRadius=o.radius),void 0!==o.hitRadius&&void 0===o.pointHitRadius&&(o.pointHitRadius=o.hitRadius),u.extend(t,{_datasetIndex:i.index,_index:e,_scale:r,_model:{x:n?r.xCenter:l.x,y:n?r.yCenter:l.y,tension:a.tension||u.valueOrDefault(o.lineTension,i.chart.options.elements.line.tension),radius:a.radius||u.valueAtIndexOrDefault(o.pointRadius,e,s.radius),backgroundColor:a.backgroundColor||u.valueAtIndexOrDefault(o.pointBackgroundColor,e,s.backgroundColor),borderColor:a.borderColor||u.valueAtIndexOrDefault(o.pointBorderColor,e,s.borderColor),borderWidth:a.borderWidth||u.valueAtIndexOrDefault(o.pointBorderWidth,e,s.borderWidth),pointStyle:a.pointStyle||u.valueAtIndexOrDefault(o.pointStyle,e,s.pointStyle),hitRadius:a.hitRadius||u.valueAtIndexOrDefault(o.pointHitRadius,e,s.hitRadius)}}),t._model.skip=a.skip||isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var i=this.chart.chartArea,a=this.getMeta();u.each(a.data,function(t,e){var n=t._model,e=u.splineCurve(u.previousItem(a.data,e,!0)._model,n,u.nextItem(a.data,e,!0)._model,n.tension);n.controlPointPreviousX=Math.max(Math.min(e.previous.x,i.right),i.left),n.controlPointPreviousY=Math.max(Math.min(e.previous.y,i.bottom),i.top),n.controlPointNextX=Math.max(Math.min(e.next.x,i.right),i.left),n.controlPointNextY=Math.max(Math.min(e.next.y,i.bottom),i.top),t.pivot()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,t=t._model;t.radius=n.hoverRadius||u.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),t.backgroundColor=n.hoverBackgroundColor||u.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,u.getHoverColor(t.backgroundColor)),t.borderColor=n.hoverBorderColor||u.valueAtIndexOrDefault(e.pointHoverBorderColor,i,u.getHoverColor(t.borderColor)),t.borderWidth=n.hoverBorderWidth||u.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,t.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,t=t._model,a=this.chart.options.elements.point;t.radius=n.radius||u.valueAtIndexOrDefault(e.pointRadius,i,a.radius),t.backgroundColor=n.backgroundColor||u.valueAtIndexOrDefault(e.pointBackgroundColor,i,a.backgroundColor),t.borderColor=n.borderColor||u.valueAtIndexOrDefault(e.pointBorderColor,i,a.borderColor),t.borderWidth=n.borderWidth||u.valueAtIndexOrDefault(e.pointBorderWidth,i,a.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,n){"use strict";t(25)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{25:25}],22:[function(t,e,n){"use strict";var i=t(25),a=t(26),o=t(45);i._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:o.noop,onComplete:o.noop}}),e.exports=function(t){t.Animation=a.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){var a,o,r=this.animations;for(e.chart=t,i||(t.animating=!0),a=0,o=r.length;a<o;++a)if(r[a].chart===t)return void(r[a]=e);r.push(e),1===r.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=o.findIndex(this.animations,function(t){return t.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=o.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),n=0,n=(1<t.dropFrames&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n),Date.now());t.dropFrames+=(n-e)/t.frameDuration,0<t.animations.length&&t.requestAnimationFrame()},advance:function(t){for(var e,n,i=this.animations,a=0;a<i.length;)n=(e=i[a]).chart,e.currentStep=(e.currentStep||0)+t,e.currentStep=Math.min(e.currentStep,e.numSteps),o.callback(e.render,[n,e],n),o.callback(e.onAnimationProgress,[e],n),e.currentStep>=e.numSteps?(o.callback(e.onAnimationComplete,[e],n),n.animating=!1,i.splice(a,1)):++a}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,n){"use strict";var r=t(25),h=t(45),i=t(28),a=t(30),s=t(48),l=t(31);e.exports=function(u){function d(t){return"top"===t||"bottom"===t}u.types={},u.instances={},u.controllers={},h.extend(u.prototype,{construct:function(t,e){var n=this,i=((i=(a=(a=e)||{}).data=a.data||{}).datasets=i.datasets||[],i.labels=i.labels||[],a.options=h.configMerge(r.global,r[a.type],a.options||{}),e=a,s.acquireContext(t,e)),a=i&&i.canvas,t=a&&a.height,o=a&&a.width;n.id=h.uid(),n.ctx=i,n.canvas=a,n.config=e,n.width=o,n.height=t,n.aspectRatio=t?o/t:null,n.options=e.options,n._bufferedRender=!1,(n.chart=n).controller=n,u.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),i&&a?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return l.notify(t,"beforeInit"),h.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),l.notify(t,"afterInit"),t},clear:function(){return h.canvas.clear(this),this},stop:function(){return u.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,a=n.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(h.getMaximumWidth(i))),a=Math.max(0,Math.floor(a?o/a:h.getMaximumHeight(i)));e.width===o&&e.height===a||(i.width=e.width=o,i.height=e.height=a,i.style.width=o+"px",i.style.height=a+"px",h.retinaScale(e,n.devicePixelRatio),t||(l.notify(e,"resize",[i={width:o,height:a}]),e.options.onResize&&e.options.onResize(e,i),e.stop(),e.update(e.options.responsiveAnimationDuration)))},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},t=t.scale;h.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),h.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),t&&(t.id=t.id||"scale")},buildOrUpdateScales:function(){var r=this,t=r.options,s=r.scales||{},e=[],l=Object.keys(s).reduce(function(t,e){return t[e]=!1,t},{});t.scales&&(e=e.concat((t.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),t.scale&&e.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),h.each(e,function(t){var e=t.options,n=e.id,i=h.valueOrDefault(e.type,t.dtype),a=(d(e.position)!==d(t.dposition)&&(e.position=t.dposition),l[n]=!0,null);if(n in s&&s[n].type===i)(a=s[n]).options=e,a.ctx=r.ctx,a.chart=r;else{var o=u.scaleService.getScaleConstructor(i);if(!o)return;a=new o({id:n,type:i,options:e,ctx:r.ctx,chart:r}),s[a.id]=a}a.mergeTicksOptions(),t.isDefault&&(r.scale=a)}),h.each(l,function(t,e){t||delete s[e]}),r.scales=s,u.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var i=this,a=[],o=[];return h.each(i.data.datasets,function(t,e){var n=i.getDatasetMeta(e),t=t.type||i.config.type;if(n.type&&n.type!==t&&(i.destroyDatasetMeta(e),n=i.getDatasetMeta(e)),n.type=t,a.push(n.type),n.controller)n.controller.updateIndex(e),n.controller.linkScales();else{t=u.controllers[n.type];if(void 0===t)throw new Error('"'+n.type+'" is not a chart type.');n.controller=new t(i,e),o.push(n.controller)}},i),o},resetElements:function(){var n=this;h.each(n.data.datasets,function(t,e){n.getDatasetMeta(e).controller.reset()},n)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,n,i=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),n=(e=i).options,h.each(e.scales,function(t){a.removeBox(e,t)}),n=h.configMerge(u.defaults.global,u.defaults[e.config.type],n),e.options=e.config.options=n,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=n.tooltips,e.tooltip.initialize(),l._invalidate(i),!1!==l.notify(i,"beforeUpdate")&&(i.tooltip._data=i.data,n=i.buildOrUpdateControllers(),h.each(i.data.datasets,function(t,e){i.getDatasetMeta(e).controller.buildOrUpdateElements()},i),i.updateLayout(),i.options.animation&&i.options.animation.duration&&h.each(n,function(t){t.reset()}),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],l.notify(i,"afterUpdate"),i._bufferedRender?i._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:i.render(t))},updateLayout:function(){!1!==l.notify(this,"beforeLayout")&&(a.update(this,this.width,this.height),l.notify(this,"afterScaleUpdate"),l.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==l.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t<e;++t)this.updateDataset(t);l.notify(this,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this.getDatasetMeta(t),t={meta:e,index:t};!1!==l.notify(this,"beforeDatasetUpdate",[t])&&(e.controller.update(),l.notify(this,"afterDatasetUpdate",[t]))},render:function(t){var e,n,i=this,a=(t=t&&"object"==typeof t?t:{duration:t,lazy:arguments[1]}).duration,o=t.lazy;if(!1!==l.notify(i,"beforeRender"))return e=i.options.animation,n=function(t){l.notify(i,"afterRender"),h.callback(e&&e.onComplete,[t],i)},e&&(void 0!==a&&0!==a||void 0===a&&0!==e.duration)?(t=new u.Animation({numSteps:(a||e.duration)/16.66,easing:t.easing||e.easing,render:function(t,e){var n=h.easing.effects[e.easing],i=e.currentStep,e=i/e.numSteps;t.draw(n(e),e,i)},onAnimationProgress:e.onProgress,onAnimationComplete:n}),u.animationService.addAnimation(i,t,a,o)):(i.draw(),n(new u.Animation({numSteps:0,chart:i}))),i},draw:function(t){var e=this;e.clear(),h.isNullOrUndef(t)&&(t=1),e.transition(t),!1!==l.notify(e,"beforeDraw",[t])&&(h.each(e.boxes,function(t){t.draw(e.chartArea)},e),e.scale&&e.scale.draw(),e.drawDatasets(t),e._drawTooltip(t),l.notify(e,"afterDraw",[t]))},transition:function(t){for(var e=0,n=(this.data.datasets||[]).length;e<n;++e)this.isDatasetVisible(e)&&this.getDatasetMeta(e).controller.transition(t);this.tooltip.transition(t)},drawDatasets:function(t){var e=this;if(!1!==l.notify(e,"beforeDatasetsDraw",[t])){for(var n=(e.data.datasets||[]).length-1;0<=n;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);l.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this.getDatasetMeta(t),t={meta:n,index:t,easingValue:e};!1!==l.notify(this,"beforeDatasetDraw",[t])&&(n.controller.draw(e),l.notify(this,"afterDatasetDraw",[t]))},_drawTooltip:function(t){var e=this.tooltip,t={tooltip:e,easingValue:t};!1!==l.notify(this,"beforeTooltipDraw",[t])&&(e.draw(),l.notify(this,"afterTooltipDraw",[t]))},getElementAtEvent:function(t){return i.modes.single(this,t)},getElementsAtEvent:function(t){return i.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return i.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){e=i.modes[e];return"function"==typeof e?e(this,t,n):[]},getDatasetAtEvent:function(t){return i.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){t=this.data.datasets[t];return t._meta||(t._meta={}),t._meta[this.id]||(t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null})},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e<n;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,t=this.data.datasets[t],n=t._meta&&t._meta[e];n&&(n.controller.destroy(),delete t._meta[e])},destroy:function(){var t,e,n=this,i=n.canvas;for(n.stop(),t=0,e=n.data.datasets.length;t<e;++t)n.destroyDatasetMeta(t);i&&(n.unbindEvents(),h.canvas.clear(n),s.releaseContext(n.ctx),n.canvas=null,n.ctx=null),l.notify(n,"destroy"),delete u.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new u.Tooltip({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var e=this,n=e._listeners={},i=function(){e.eventHandler.apply(e,arguments)};h.each(e.options.events,function(t){s.addEventListener(e,t,i),n[t]=i}),e.options.responsive&&(i=function(){e.resize()},s.addEventListener(e,"resize",i),n.resize=i)},unbindEvents:function(){var n=this,t=n._listeners;t&&(delete n._listeners,h.each(t,function(t,e){s.removeEventListener(n,e,t)}))},updateHoverStyle:function(t,e,n){for(var i,a=n?"setHoverStyle":"removeHoverStyle",o=0,r=t.length;o<r;++o)(i=t[o])&&this.getDatasetMeta(i._datasetIndex).controller[a](i)},eventHandler:function(t){var e,n=this,i=n.tooltip;if(!1!==l.notify(n,"beforeEvent",[t]))return n._bufferedRender=!0,n._bufferedRequest=null,e=n.handleEvent(t),i&&(e=i._start?i.handleEvent(t):e|i.handleEvent(t)),l.notify(n,"afterEvent",[t]),i=n._bufferedRequest,i?n.render(i):e&&!n.animating&&(n.stop(),n.render(n.options.hover.animationDuration,!0)),n._bufferedRender=!1,n._bufferedRequest=null,n},handleEvent:function(t){var e=this,n=e.options||{},i=n.hover;return e.lastActive=e.lastActive||[],"mouseout"===t.type?e.active=[]:e.active=e.getElementsAtEventForMode(t,i.mode,i),h.callback(n.onHover||n.hover.onHover,[t.native,e.active],e),"mouseup"!==t.type&&"click"!==t.type||n.onClick&&n.onClick.call(e,t.native,e.active),e.lastActive.length&&e.updateHoverStyle(e.lastActive,i.mode,!1),e.active.length&&i.mode&&e.updateHoverStyle(e.active,i.mode,!0),n=!h.arrayEquals(e.active,e.lastActive),e.lastActive=e.active,n}}),u.Controller=u}},{25:25,28:28,30:30,31:31,45:45,48:48}],24:[function(t,e,n){"use strict";var r=t(45);e.exports=function(t){var i=["push","pop","shift","splice","unshift"];function o(e,t){var n=e._chartjs;n&&(-1!==(t=(n=n.listeners).indexOf(t))&&n.splice(t,1),0<n.length||(i.forEach(function(t){delete e[t]}),delete e._chartjs))}t.DatasetController=function(t,e){this.initialize(t,e)},r.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){this.chart=t,this.index=e,this.linkScales(),this.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null!==e.xAxisID&&e.xAxisID in t.chart.scales||(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in t.chart.scales||(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&o(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){for(var t=this.getMeta(),e=this.getDataset().data||[],n=t.data,i=0,a=e.length;i<a;++i)n[i]=n[i]||this.createMetaData(i);t.dataset=t.dataset||this.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var a,t,e=this,n=e.getDataset(),n=n.data||(n.data=[]);e._data!==n&&(e._data&&o(e._data,e),t=e,(a=n)._chartjs?a._chartjs.listeners.push(t):(Object.defineProperty(a,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),i.forEach(function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),i=a[t];Object.defineProperty(a,t,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),t=i.apply(this,e);return r.each(a._chartjs.listeners,function(t){"function"==typeof t[n]&&t[n].apply(t,e)}),t}})})),e._data=n),e.resyncElements()},update:r.noop,transition:function(t){for(var e=this.getMeta(),n=e.data||[],i=n.length,a=0;a<i;++a)n[a].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],n=e.length,i=0;for(t.dataset&&t.dataset.draw();i<n;++i)e[i].draw()},removeHoverStyle:function(t,e){var n=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},o=r.valueAtIndexOrDefault,t=t._model;t.backgroundColor=a.backgroundColor||o(n.backgroundColor,i,e.backgroundColor),t.borderColor=a.borderColor||o(n.borderColor,i,e.borderColor),t.borderWidth=a.borderWidth||o(n.borderWidth,i,e.borderWidth)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},a=r.valueAtIndexOrDefault,o=r.getHoverColor,t=t._model;t.backgroundColor=i.hoverBackgroundColor||a(e.hoverBackgroundColor,n,o(t.backgroundColor)),t.borderColor=i.hoverBorderColor||a(e.hoverBorderColor,n,o(t.borderColor)),t.borderWidth=i.hoverBorderWidth||a(e.hoverBorderWidth,n,t.borderWidth)},resyncElements:function(){var t=this.getMeta(),e=this.getDataset().data,n=t.data.length,e=e.length;e<n?t.data.splice(e,n-e):n<e&&this.insertElements(n,e-n)},insertElements:function(t,e){for(var n=0;n<e;++n)this.addElementAndReset(t+n)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),t.DatasetController.extend=r.inherits}},{45:45}],25:[function(t,e,n){"use strict";var i=t(45);e.exports={_set:function(t,e){return i.merge(this[t]||(this[t]={}),e)}}},{45:45}],26:[function(t,e,n){"use strict";var y=t(2),i=t(45);function a(t){i.extend(this,t),this.initialize.apply(this,arguments)}i.extend(a.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=i.clone(t._model)),t._start={},t},transition:function(t){var e=this,n=e._model,i=e._start,a=e._view;if(!n||1===t)return e._view=n,e._start=null,e;for(var o,r,s,l,u,d,a=a||(e._view={}),h=i=i||(e._start={}),c=a,f=n,g=t,m=Object.keys(f),p=0,v=m.length;p<v;++p)if(s=f[o=m[p]],c.hasOwnProperty(o)||(c[o]=s),(l=c[o])!==s&&"_"!==o[0]){if(h.hasOwnProperty(o)||(h[o]=l),(l=typeof s)==typeof(r=h[o]))if("string"==l){if((u=y(r)).valid&&(d=y(s)).valid){c[o]=d.mix(u,g).rgbString();continue}}else if("number"==l&&isFinite(r)&&isFinite(s)){c[o]=r+(s-r)*g;continue}c[o]=s}return e},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return i.isNumber(this._model.x)&&i.isNumber(this._model.y)}}),a.extend=i.inherits,e.exports=a},{2:2,45:45}],27:[function(t,e,n){"use strict";var i=t(2),a=t(25),c=t(45);e.exports=function(l){function u(t,e,n){var i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}function d(t){return null!=t&&"none"!==t}function e(t,e,n){var i=document.defaultView,a=t.parentNode,o=i.getComputedStyle(t)[e],i=i.getComputedStyle(a)[e],e=d(o),r=d(i),s=Number.POSITIVE_INFINITY;return e||r?Math.min(e?u(o,t,n):s,r?u(i,a,n):s):"none"}c.configMerge=function(){return c.merge(c.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(t,e,n,i){var a=e[t]||{},o=n[t];"scales"===t?e[t]=c.scaleMerge(a,o):"scale"===t?e[t]=c.merge(a,[l.scaleService.getScaleDefaults(o.type),o]):c._merger(t,e,n,i)}})},c.scaleMerge=function(){return c.merge(c.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(t,e,n,i){if("xAxes"===t||"yAxes"===t){var a,o,r,s=n[t].length;for(e[t]||(e[t]=[]),a=0;a<s;++a)r=n[t][a],o=c.valueOrDefault(r.type,"xAxes"===t?"category":"linear"),a>=e[t].length&&e[t].push({}),!e[t][a].type||r.type&&r.type!==e[t][a].type?c.merge(e[t][a],[l.scaleService.getScaleDefaults(o),r]):c.merge(e[t][a],r)}else c._merger(t,e,n,i)}})},c.where=function(t,e){if(c.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return c.each(t,function(t){e(t)&&n.push(t)}),n},c.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,a=t.length;i<a;++i)if(e.call(n,t[i],i,t))return i;return-1},c.findNextWhere=function(t,e,n){for(var i=(n=c.isNullOrUndef(n)?-1:n)+1;i<t.length;i++){var a=t[i];if(e(a))return a}},c.findPreviousWhere=function(t,e,n){for(var i=(n=c.isNullOrUndef(n)?t.length:n)-1;0<=i;i--){var a=t[i];if(e(a))return a}},c.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},c.almostEquals=function(t,e,n){return Math.abs(t-e)<n},c.almostWhole=function(t,e){var n=Math.round(t);return n-e<t&&t<n+e},c.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},c.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},c.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0===(t=+t)||isNaN(t)?t:0<t?1:-1},c.log10=Math.log10?function(t){return Math.log10(t)}:function(t){var e=Math.log(t)*Math.LOG10E,n=Math.round(e);return t===Math.pow(10,n)?n:e},c.toRadians=function(t){return t*(Math.PI/180)},c.toDegrees=function(t){return t*(180/Math.PI)},c.getAngleFromPoint=function(t,e){var n=e.x-t.x,e=e.y-t.y,t=Math.sqrt(n*n+e*e),e=Math.atan2(e,n);return e<-.5*Math.PI&&(e+=2*Math.PI),{angle:e,distance:t}},c.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},c.aliasPixel=function(t){return t%2==0?0:.5},c.splineCurve=function(t,e,n,i){var t=t.skip?e:t,a=e,e=n.skip?e:n,n=Math.sqrt(Math.pow(a.x-t.x,2)+Math.pow(a.y-t.y,2)),o=Math.sqrt(Math.pow(e.x-a.x,2)+Math.pow(e.y-a.y,2)),r=n/(n+o),n=o/(n+o),o=i*(r=isNaN(r)?0:r),r=i*(n=isNaN(n)?0:n);return{previous:{x:a.x-o*(e.x-t.x),y:a.y-o*(e.y-t.y)},next:{x:a.x+r*(e.x-t.x),y:a.y+r*(e.y-t.y)}}},c.EPSILON=Number.EPSILON||1e-14,c.splineCurveMonotone=function(t){for(var e,n,i,a,o,r,s,l,u=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),d=u.length,h=0;h<d;++h)(a=u[h]).model.skip||(n=0<h?u[h-1]:null,(i=h<d-1?u[h+1]:null)&&!i.model.skip&&(e=i.model.x-a.model.x,a.deltaK=0!=e?(i.model.y-a.model.y)/e:0),!n||n.model.skip?a.mK=a.deltaK:!i||i.model.skip?a.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(a.deltaK)?a.mK=0:a.mK=(n.deltaK+a.deltaK)/2);for(h=0;h<d-1;++h)a=u[h],i=u[h+1],a.model.skip||i.model.skip||(c.almostEquals(a.deltaK,0,this.EPSILON)?a.mK=i.mK=0:(o=a.mK/a.deltaK,r=i.mK/a.deltaK,(s=Math.pow(o,2)+Math.pow(r,2))<=9||(s=3/Math.sqrt(s),a.mK=o*s*a.deltaK,i.mK=r*s*a.deltaK)));for(h=0;h<d;++h)(a=u[h]).model.skip||(n=0<h?u[h-1]:null,i=h<d-1?u[h+1]:null,n&&!n.model.skip&&(l=(a.model.x-n.model.x)/3,a.model.controlPointPreviousX=a.model.x-l,a.model.controlPointPreviousY=a.model.y-l*a.mK),i&&!i.model.skip&&(l=(i.model.x-a.model.x)/3,a.model.controlPointNextX=a.model.x+l,a.model.controlPointNextY=a.model.y+l*a.mK))},c.nextItem=function(t,e,n){return n?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},c.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},c.niceNum=function(t,e){var n=Math.floor(c.log10(t)),t=t/Math.pow(10,n),e=e?t<1.5?1:t<3?2:t<7?5:10:t<=1?1:t<=2?2:t<=5?5:10;return e*Math.pow(10,n)},c.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},c.getRelativePosition=function(t,e){var n=t.originalEvent||t,t=t.currentTarget||t.srcElement,i=t.getBoundingClientRect(),a=n.touches,a=a&&0<a.length?(l=a[0].clientX,a[0].clientY):(l=n.clientX,n.clientY),n=parseFloat(c.getStyle(t,"padding-left")),o=parseFloat(c.getStyle(t,"padding-top")),r=parseFloat(c.getStyle(t,"padding-right")),s=parseFloat(c.getStyle(t,"padding-bottom")),r=i.right-i.left-n-r,s=i.bottom-i.top-o-s,l=Math.round((l-i.left-n)/r*t.width/e.currentDevicePixelRatio);return{x:l,y:a=Math.round((a-i.top-o)/s*t.height/e.currentDevicePixelRatio)}},c.getConstraintWidth=function(t){return e(t,"max-width","clientWidth")},c.getConstraintHeight=function(t){return e(t,"max-height","clientHeight")},c.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(c.getStyle(e,"padding-left"),10),i=parseInt(c.getStyle(e,"padding-right"),10),e=e.clientWidth-n-i,n=c.getConstraintWidth(t);return isNaN(n)?e:Math.min(e,n)},c.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(c.getStyle(e,"padding-top"),10),i=parseInt(c.getStyle(e,"padding-bottom"),10),e=e.clientHeight-n-i,n=c.getConstraintHeight(t);return isNaN(n)?e:Math.min(e,n)},c.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},c.retinaScale=function(t,e){var n,i,a,e=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;1!==e&&(n=t.canvas,i=t.height,a=t.width,n.height=i*e,n.width=a*e,t.ctx.scale(e,e),n.style.height||n.style.width||(n.style.height=i+"px",n.style.width=a+"px"))},c.fontString=function(t,e,n){return e+" "+t+"px "+n},c.longestText=function(e,t,n,i){var a=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[],r=(i.font!==t&&(a=i.data={},o=i.garbageCollect=[],i.font=t),e.font=t,0),s=(c.each(n,function(t){null!=t&&!0!==c.isArray(t)?r=c.measureText(e,a,o,r,t):c.isArray(t)&&c.each(t,function(t){null==t||c.isArray(t)||(r=c.measureText(e,a,o,r,t))})}),o.length/2);if(s>n.length){for(var l=0;l<s;l++)delete a[o[l]];o.splice(0,s)}return r},c.measureText=function(t,e,n,i,a){var o=e[a];return o||(o=e[a]=t.measureText(a).width,n.push(a)),i=i<o?o:i},c.numberOfLabelLines=function(t){var e=1;return c.each(t,function(t){c.isArray(t)&&t.length>e&&(e=t.length)}),e},c.color=i?function(t){return t instanceof CanvasGradient&&(t=a.global.defaultColor),i(t)}:function(t){return console.error("Color.js not found!"),t},c.getHoverColor=function(t){return t instanceof CanvasPattern?t:c.color(t).saturate(.5).darken(.1).rgbString()}}},{2:2,25:25,45:45}],28:[function(t,e,n){"use strict";var i=t(45);function r(t,e){return t.native?{x:t.x,y:t.y}:i.getRelativePosition(t,e)}function s(t,e){for(var n,i,a,o=0,r=t.data.datasets.length;o<r;++o)if(t.isDatasetVisible(o))for(i=0,a=(n=t.getDatasetMeta(o)).data.length;i<a;++i){var s=n.data[i];s._view.skip||e(s)}}function l(t,e){var n=[];return s(t,function(t){t.inRange(e.x,e.y)&&n.push(t)}),n}function u(t,n,i,a){var o=Number.POSITIVE_INFINITY,r=[];return s(t,function(t){var e;i&&!t.inRange(n.x,n.y)||(e=t.getCenterPoint(),(e=a(n,e))<o?(r=[t],o=e):e===o&&r.push(t))}),r}function d(t){var i=-1!==t.indexOf("x"),a=-1!==t.indexOf("y");return function(t,e){var n=i?Math.abs(t.x-e.x):0,t=a?Math.abs(t.y-e.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(t,2))}}function a(n,t,e){var t=r(t,n),i=(e.axis=e.axis||"x",d(e.axis)),a=e.intersect?l(n,t):u(n,t,!1,i),o=[];return a.length?(n.data.datasets.forEach(function(t,e){n.isDatasetVisible(e)&&(e=n.getDatasetMeta(e).data[a[0]._index])&&!e._view.skip&&o.push(e)}),o):[]}e.exports={modes:{single:function(t,e){var n=r(e,t),i=[];return s(t,function(t){t.inRange(n.x,n.y)&&i.push(t)}),i.slice(0,1)},label:a,index:a,dataset:function(t,e,n){var e=r(e,t),i=(n.axis=n.axis||"xy",d(n.axis)),n=n.intersect?l(t,e):u(t,e,!1,i);return n=0<n.length?t.getDatasetMeta(n[0]._datasetIndex).data:n},"x-axis":function(t,e){return a(t,e,{intersect:!1})},point:function(t,e){return l(t,r(e,t))},nearest:function(t,e,n){var e=r(e,t),i=(n.axis=n.axis||"xy",d(n.axis)),t=u(t,e,n.intersect,i);return 1<t.length&&t.sort(function(t,e){var n=t.getArea()-e.getArea();return n=0===n?t._datasetIndex-e._datasetIndex:n}),t.slice(0,1)},x:function(t,e,n){var i=r(e,t),a=[],o=!1;return s(t,function(t){t.inXRange(i.x)&&a.push(t),t.inRange(i.x,i.y)&&(o=!0)}),a=n.intersect&&!o?[]:a},y:function(t,e,n){var i=r(e,t),a=[],o=!1;return s(t,function(t){t.inYRange(i.y)&&a.push(t),t.inRange(i.x,i.y)&&(o=!0)}),a=n.intersect&&!o?[]:a}}}},{45:45}],29:[function(t,e,n){"use strict";t(25)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){function t(t,e){return this.construct(t,e),this}return t.Chart=t}},{25:25}],30:[function(t,e,n){"use strict";var R=t(45);function L(t,e){return R.where(t,function(t){return t.position===e})}function Y(t,i){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,e){var n=i?e:t,t=i?t:e;return n.weight===t.weight?n._tmpIndex_-t._tmpIndex_:n.weight-t.weight}),t.forEach(function(t){delete t._tmpIndex_})}e.exports={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){e=t.boxes?t.boxes.indexOf(e):-1;-1!==e&&t.boxes.splice(e,1)},configure:function(t,e,n){for(var i,a=["fullWidth","position","weight"],o=a.length,r=0;r<o;++r)n.hasOwnProperty(i=a[r])&&(e[i]=n[i])},update:function(e,n,t){var i,a,o,r,s,l,u,d,h,c,f,g,m,p,v,y,b,x,_,k,w,M,S,D,C,P,T,O,I;function A(e){var t,n=R.findNextWhere(v,function(t){return t.box===e});n&&(e.isHorizontal()?(t={left:Math.max(k,y),right:Math.max(w,b),top:0,bottom:0},e.update(e.fullWidth?h:m,c/2,t)):e.update(n.minSize.width,p))}function F(t){t.isHorizontal()?(t.left=t.fullWidth?i:k,t.right=t.fullWidth?n-a:k+m,t.top=I,t.bottom=I+t.height,I=t.bottom):(t.left=O,t.right=O+t.width,t.top=M,t.bottom=M+p,O=t.right)}e&&(D=e.options.layout||{},D=R.options.toPadding(D.padding),i=D.left,a=D.right,o=D.top,D=D.bottom,r=L(e.boxes,"left"),s=L(e.boxes,"right"),l=L(e.boxes,"top"),u=L(e.boxes,"bottom"),d=L(e.boxes,"chartArea"),Y(r,!0),Y(s,!1),Y(l,!0),Y(u,!1),f=(n-(h=n-i-a)/2)/(r.length+s.length),g=(t-(c=t-o-D)/2)/(l.length+u.length),m=h,p=c,v=[],R.each(r.concat(s,l,u),function(t){var e,n=t.isHorizontal();n?(e=t.update(t.fullWidth?h:m,g),p-=e.height):(e=t.update(f,p),m-=e.width),v.push({horizontal:n,minSize:e,box:t})}),_=x=b=y=0,R.each(l.concat(u),function(t){t.getPadding&&(t=t.getPadding(),y=Math.max(y,t.left),b=Math.max(b,t.right))}),R.each(r.concat(s),function(t){t.getPadding&&(t=t.getPadding(),x=Math.max(x,t.top),_=Math.max(_,t.bottom))}),k=i,w=a,M=o,S=D,R.each(r.concat(s),A),R.each(r,function(t){k+=t.width}),R.each(s,function(t){w+=t.width}),R.each(l.concat(u),A),R.each(l,function(t){M+=t.height}),R.each(u,function(t){S+=t.height}),R.each(r.concat(s),function(e){var t=R.findNextWhere(v,function(t){return t.box===e}),n={left:0,right:0,top:M,bottom:S};t&&e.update(t.minSize.width,p,n)}),k=i,w=a,M=o,S=D,R.each(r,function(t){k+=t.width}),R.each(s,function(t){w+=t.width}),R.each(l,function(t){M+=t.height}),R.each(u,function(t){S+=t.height}),D=Math.max(y-k,0),k+=D,w+=Math.max(b-w,0),C=Math.max(x-M,0),M+=C,S+=Math.max(_-S,0),P=t-M-S,(T=n-k-w)===m&&P===p||(R.each(r,function(t){t.height=P}),R.each(s,function(t){t.height=P}),R.each(l,function(t){t.fullWidth||(t.width=T)}),R.each(u,function(t){t.fullWidth||(t.width=T)}),p=P,m=T),O=i+D,I=o+C,R.each(r.concat(l),F),O+=m,I+=p,R.each(s,F),R.each(u,F),e.chartArea={left:k,top:M,right:k+m,bottom:M+p},R.each(d,function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(m,p)}))}}},{45:45}],31:[function(t,e,n){"use strict";var r=t(25),s=t(45);r._set("global",{plugins:{}}),e.exports={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){t=e.indexOf(t);-1!==t&&e.splice(t,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){for(var i,a,o,r,s=this.descriptors(t),l=s.length,u=0;u<l;++u)if("function"==typeof(r=(a=(i=s[u]).plugin)[e])&&((o=[t].concat(n||[])).push(i.options),!1===r.apply(a,o)))return!1;return!0},descriptors:function(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var i=[],a=[],t=t&&t.config||{},o=t.options&&t.options.plugins||{};return this._plugins.concat(t.plugins||[]).forEach(function(t){var e,n;-1===i.indexOf(t)&&(e=t.id,!1!==(n=o[e])&&(!0===n&&(n=s.clone(r.global.plugins[e])),i.push(t),a.push({plugin:t,options:n||{}})))}),e.descriptors=a,e.id=this._cacheId,a},_invalidate:function(t){delete t.$plugins}}},{25:25,45:45}],32:[function(t,e,n){"use strict";var p=t(25),i=t(26),N=t(45),t=t(34);function f(t){for(var e=[],n=0,i=t.length;n<i;++n)e.push(t[n].label);return e}function z(t,e,n){var i=t.getPixelForTick(e);return n&&(i-=0===e?(t.getPixelForTick(1)-i)/2:(i-t.getPixelForTick(e-1))/2),i}p._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:t.formatters.values,minor:{},major:{}}}),e.exports=function(t){function c(t,e,n){return N.isArray(e)?N.longestText(t,n,e):t.measureText(e).width}function g(t){var e=N.valueOrDefault,n=p.global,i=e(t.fontSize,n.defaultFontSize),a=e(t.fontStyle,n.defaultFontStyle),e=e(t.fontFamily,n.defaultFontFamily);return{size:i,style:a,family:e,font:N.fontString(i,a,e)}}function m(t){return N.options.toLineHeight(N.valueOrDefault(t.lineHeight,1.2),N.valueOrDefault(t.fontSize,p.global.defaultFontSize))}t.Scale=i.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var t,e=this.options.ticks;for(t in!1===e.minor&&(e.minor={display:!1}),!1===e.major&&(e.major={display:!1}),e)"major"!==t&&"minor"!==t&&(void 0===e.minor[t]&&(e.minor[t]=e[t]),void 0===e.major[t]&&(e.major[t]=e[t]))},beforeUpdate:function(){N.callback(this.options.beforeUpdate,[this])},update:function(t,e,n){var i,a,o,r,s,l,u=this;for(u.beforeUpdate(),u.maxWidth=t,u.maxHeight=e,u.margins=N.extend({left:0,right:0,top:0,bottom:0},n),u.longestTextCache=u.longestTextCache||{},u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),s=u.buildTicks()||[],u.afterBuildTicks(),u.beforeTickToLabelConversion(),o=u.convertTicksToLabels(s)||u.ticks,u.afterTickToLabelConversion(),i=0,a=(u.ticks=o).length;i<a;++i)r=o[i],(l=s[i])?l.label=r:s.push(l={label:r,major:!1});return u._ticks=s,u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u.afterUpdate(),u.minSize},afterUpdate:function(){N.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){N.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){N.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){N.callback(this.options.beforeDataLimits,[this])},determineDataLimits:N.noop,afterDataLimits:function(){N.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){N.callback(this.options.beforeBuildTicks,[this])},buildTicks:N.noop,afterBuildTicks:function(){N.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){N.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this.options.ticks;this.ticks=this.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){N.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){N.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,e=t.ctx,n=t.options.ticks,i=f(t._ticks),a=g(n),o=(e.font=a.font,n.minRotation||0);if(i.length&&t.options.display&&t.isHorizontal())for(var r=N.longestText(e,a.font,i,t.longestTextCache),s=r,l=t.getPixelForTick(1)-t.getPixelForTick(0)-6;l<s&&o<n.maxRotation;){var u=N.toRadians(o),d=Math.cos(u);if(Math.sin(u)*r>t.maxHeight){o--;break}o++,s=d*r}t.labelRotation=o},afterCalculateTickRotation:function(){N.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){N.callback(this.options.beforeFit,[this])},fit:function(){var t,e=this,n=e.minSize={width:0,height:0},i=f(e._ticks),a=e.options,o=a.ticks,r=a.scaleLabel,s=a.gridLines,l=a.display,u=e.isHorizontal(),d=g(o),h=a.gridLines.tickMarkLength;n.width=u?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:l&&s.drawTicks?h:0,n.height=u?l&&s.drawTicks?h:0:e.maxHeight,r.display&&l&&(s=m(r)+N.options.toPadding(r.padding).height,u?n.height+=s:n.width+=s),o.display&&l&&(h=N.longestText(e.ctx,d.font,i,e.longestTextCache),r=N.numberOfLabelLines(i),s=.5*d.size,l=e.options.ticks.padding,u?(e.longestLabelWidth=h,u=N.toRadians(e.labelRotation),t=Math.cos(u),u=Math.sin(u)*h+d.size*r+s*(r-1)+s,n.height=Math.min(e.maxHeight,n.height+u+l),e.ctx.font=d.font,r=c(e.ctx,i[0],d.font),u=c(e.ctx,i[i.length-1],d.font),0!==e.labelRotation?(e.paddingLeft="bottom"===a.position?t*r+3:t*s+3,e.paddingRight="bottom"===a.position?t*s+3:t*u+3):(e.paddingLeft=r/2+3,e.paddingRight=u/2+3)):(o.mirror?h=0:h+=l+s,n.width=Math.min(e.maxWidth,n.width+h),e.paddingTop=d.size/2,e.paddingBottom=d.size/2)),e.handleMargins(),e.width=n.width,e.height=n.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){N.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(N.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:N.noop,getPixelForValue:N.noop,getValueForPixel:N.noop,getPixelForTick:function(t){var e,n,i=this,a=i.options.offset;if(i.isHorizontal())return n=(e=(i.width-(i.paddingLeft+i.paddingRight))/Math.max(i._ticks.length-(a?0:1),1))*t+i.paddingLeft,a&&(n+=e/2),i.left+Math.round(n)+(i.isFullWidth()?i.margins.left:0);a=i.height-(i.paddingTop+i.paddingBottom);return i.top+t*(a/(i._ticks.length-1))},getPixelForDecimal:function(t){var e,n=this;return n.isHorizontal()?(e=(n.width-(n.paddingLeft+n.paddingRight))*t+n.paddingLeft,n.left+Math.round(e)+(n.isFullWidth()?n.margins.left:0)):n.top+t*n.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:0<t&&0<e?t:0},_autoSkip:function(t){var e,n,i,a,o=this,r=o.isHorizontal(),s=o.options.ticks.minor,l=t.length,u=N.toRadians(o.labelRotation),u=Math.cos(u),u=o.longestLabelWidth*u,d=[];for(s.maxTicksLimit&&(a=s.maxTicksLimit),r&&(e=!1,(u+s.autoSkipPadding)*l>o.width-(o.paddingLeft+o.paddingRight)&&(e=1+Math.floor((u+s.autoSkipPadding)*l/(o.width-(o.paddingLeft+o.paddingRight)))),a&&a<l&&(e=Math.max(e,Math.floor(l/a)))),n=0;n<l;n++)i=t[n],(1<e&&0<n%e||n%e==0&&l<=n+e)&&n!==l-1&&delete i.label,d.push(i);return d},draw:function(_){var r,k,w,M,t,S,D,C,s,l,u,d,P,e,n,T,O,I,A,F,R,L,i,a,o,h,c,f,Y=this,W=Y.options;W.display&&(r=Y.ctx,k=p.global,w=W.ticks.minor,e=W.ticks.major||w,M=W.gridLines,t=W.scaleLabel,S=0!==Y.labelRotation,D=Y.isHorizontal(),C=w.autoSkip?Y._autoSkip(Y.getTicks()):Y.getTicks(),s=N.valueOrDefault(w.fontColor,k.defaultFontColor),l=g(w),u=N.valueOrDefault(e.fontColor,k.defaultFontColor),d=g(e),P=M.drawTicks?M.tickMarkLength:0,e=N.valueOrDefault(t.fontColor,k.defaultFontColor),n=g(t),o=N.options.toPadding(t.padding),T=N.toRadians(Y.labelRotation),O=[],I=Y.options.gridLines.lineWidth,A="right"===W.position?Y.right:Y.right-I-P,F="right"===W.position?Y.right+P:Y.right,R="bottom"===W.position?Y.top+I:Y.bottom-P-I,L="bottom"===W.position?Y.top+I+P:Y.bottom+I,N.each(C,function(t,e){var n,i,a,o,r,s,l,u,d,h,c,f,g,m,p,v,y,b,x;N.isNullOrUndef(t.label)||(n=t.label,f=e===Y.zeroLineIndex&&W.offset===M.offsetGridLines?(i=M.zeroLineWidth,a=M.zeroLineColor,o=M.zeroLineBorderDash,M.zeroLineBorderDashOffset):(i=N.valueAtIndexOrDefault(M.lineWidth,e),a=N.valueAtIndexOrDefault(M.color,e),o=N.valueOrDefault(M.borderDash,k.borderDash),N.valueOrDefault(M.borderDashOffset,k.borderDashOffset)),m=g="middle",y=w.padding,D?(p=P+y,p="bottom"===W.position?(m=S?"middle":"top",g=S?"right":"center",Y.top+p):(m=S?"middle":"bottom",g=S?"left":"center",Y.bottom-p),(v=z(Y,e,M.offsetGridLines&&1<C.length))<Y.left&&(a="rgba(0,0,0,0)"),v+=N.aliasPixel(i),b=Y.getPixelForTick(e)+w.labelOffset,r=l=d=v=v,s=R,u=L,h=_.top,c=_.bottom+I):(x="left"===W.position,y=w.mirror?(g=x?"left":"right",y):(g=x?"right":"left",P+y),b=x?Y.right-y:Y.left+y,(x=z(Y,e,M.offsetGridLines&&1<C.length))<Y.top&&(a="rgba(0,0,0,0)"),x+=N.aliasPixel(i),p=Y.getPixelForTick(e)+w.labelOffset,r=A,l=F,d=_.left,v=_.right+I,s=u=h=c=x),O.push({tx1:r,ty1:s,tx2:l,ty2:u,x1:d,y1:h,x2:v,y2:c,labelX:b,labelY:p,glWidth:i,glColor:a,glBorderDash:o,glBorderDashOffset:f,rotation:-1*T,label:n,major:t.major,textBaseline:m,textAlign:g}))}),N.each(O,function(t){if(M.display&&(r.save(),r.lineWidth=t.glWidth,r.strokeStyle=t.glColor,r.setLineDash&&(r.setLineDash(t.glBorderDash),r.lineDashOffset=t.glBorderDashOffset),r.beginPath(),M.drawTicks&&(r.moveTo(t.tx1,t.ty1),r.lineTo(t.tx2,t.ty2)),M.drawOnChartArea&&(r.moveTo(t.x1,t.y1),r.lineTo(t.x2,t.y2)),r.stroke(),r.restore()),w.display){r.save(),r.translate(t.labelX,t.labelY),r.rotate(t.rotation),r.font=(t.major?d:l).font,r.fillStyle=t.major?u:s,r.textBaseline=t.textBaseline,r.textAlign=t.textAlign;var e=t.label;if(N.isArray(e))for(var n=e.length,i=1.5*l.size,a=Y.isHorizontal()?0:-i*(n-1)/2,o=0;o<n;++o)r.fillText(""+e[o],0,a),a+=i;else r.fillText(e,0,0);r.restore()}}),t.display&&(i=0,a=m(t)/2,D?(c=Y.left+(Y.right-Y.left)/2,f="bottom"===W.position?Y.bottom-a-o.bottom:Y.top+a+o.top):(c=(h="left"===W.position)?Y.left+a+o.top:Y.right-a-o.top,f=Y.top+(Y.bottom-Y.top)/2,i=h?-.5*Math.PI:.5*Math.PI),r.save(),r.translate(c,f),r.rotate(i),r.textAlign="center",r.textBaseline="middle",r.fillStyle=e,r.font=n.font,r.fillText(t.labelString,0,0),r.restore()),M.drawBorder&&(r.lineWidth=N.valueAtIndexOrDefault(M.lineWidth,0),r.strokeStyle=N.valueAtIndexOrDefault(M.color,0),a=Y.left,o=Y.right+I,h=Y.top,c=Y.bottom+I,f=N.aliasPixel(r.lineWidth),D?(h=c="top"===W.position?Y.bottom:Y.top,h+=f,c+=f):(a=o="left"===W.position?Y.right:Y.left,a+=f,o+=f),r.beginPath(),r.moveTo(a,h),r.lineTo(o,c),r.stroke()))}})}},{25:25,26:26,34:34,45:45}],33:[function(t,e,n){"use strict";var i=t(25),a=t(45),o=t(30);e.exports=function(t){t.scaleService={constructors:{},defaults:{},registerScaleType:function(t,e,n){this.constructors[t]=e,this.defaults[t]=a.clone(n)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?a.merge({},[i.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){this.defaults.hasOwnProperty(t)&&(this.defaults[t]=a.extend(this.defaults[t],e))},addScalesToLayout:function(e){a.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,o.addBox(e,t)})}}}},{25:25,30:30,45:45}],34:[function(t,e,n){"use strict";var a=t(45);e.exports={formatters:{values:function(t){return a.isArray(t)?t:""+t},linear:function(t,e,n){var n=3<n.length?n[2]-n[1]:n[1]-n[0],n=(1<Math.abs(n)&&t!==Math.floor(t)&&(n=t-Math.floor(t)),a.log10(Math.abs(n)));return 0!==t?(n=-1*Math.floor(n),n=Math.max(Math.min(n,20),0),t.toFixed(n)):"0"},logarithmic:function(t,e,n){var i=t/Math.pow(10,Math.floor(a.log10(t)));return 0===t?"0":1==i||2==i||5==i||0===e||e===n.length-1?t.toExponential():""}}}},{45:45}],35:[function(t,e,n){"use strict";var i=t(25),a=t(26),W=t(45);i._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:W.noop,title:function(t,e){var n="",e=e.labels,i=e?e.length:0;return 0<t.length&&((t=t[0]).xLabel?n=t.xLabel:0<i&&t.index<i&&(n=e[t.index])),n},afterTitle:W.noop,beforeBody:W.noop,beforeLabel:W.noop,label:function(t,e){e=e.datasets[t.datasetIndex].label||"";return e&&(e+=": "),e+=t.yLabel},labelColor:function(t,e){e=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:e.borderColor,backgroundColor:e.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:W.noop,afterBody:W.noop,beforeFooter:W.noop,footer:W.noop,afterFooter:W.noop}}}),e.exports=function(R){function h(t,e){t=W.color(t);return t.alpha(e*t.alpha()).rgbaString()}function r(t,e){return e&&(W.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function L(t){var e=i.global,n=W.valueOrDefault;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,bodyFontColor:t.bodyFontColor,_bodyFontFamily:n(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:n(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:n(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:n(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:n(t.titleFontStyle,e.defaultFontStyle),titleFontSize:n(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:n(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:n(t.footerFontStyle,e.defaultFontStyle),footerFontSize:n(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function Y(t,e){function n(t){a=Math.max(a,i.measureText(t).width+c)}var i=t._chart.ctx,t=2*e.yPadding,a=0,o=e.body,r=o.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0),s=(r+=e.beforeBody.length+e.afterBody.length,e.title.length),l=e.footer.length,u=e.titleFontSize,d=e.bodyFontSize,h=e.footerFontSize,c=(t=(t=(t=(t=(t=t+s*u+(s?(s-1)*e.titleSpacing:0))+(s?e.titleMarginBottom:0))+r*d+(r?(r-1)*e.bodySpacing:0))+(l?e.footerMarginTop:0))+l*h+(l?(l-1)*e.footerSpacing:0),0);return i.font=W.fontString(u,e._titleFontStyle,e._titleFontFamily),W.each(e.title,n),i.font=W.fontString(d,e._bodyFontStyle,e._bodyFontFamily),W.each(e.beforeBody.concat(e.afterBody),n),c=e.displayColors?d+2:0,W.each(o,function(t){W.each(t.before,n),W.each(t.lines,n),W.each(t.after,n)}),c=0,i.font=W.fontString(h,e._footerFontStyle,e._footerFontFamily),W.each(e.footer,n),{width:a+=2*e.xPadding,height:t}}R.Tooltip=a.extend({initialize:function(){this._model=L(this._options),this._lastActive=[]},getTitle:function(){var t=this._options.callbacks,e=t.beforeTitle.apply(this,arguments),n=t.title.apply(this,arguments),t=t.afterTitle.apply(this,arguments),e=r([],e);return e=r(e,n),r(e,t)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return W.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,n){var i=this,a=i._options.callbacks,o=[];return W.each(t,function(t){var e={before:[],lines:[],after:[]};r(e.before,a.beforeLabel.call(i,t,n)),r(e.lines,a.label.call(i,t,n)),r(e.after,a.afterLabel.call(i,t,n)),o.push(e)}),o},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return W.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),n=t.footer.apply(this,arguments),t=t.afterFooter.apply(this,arguments),e=r([],e);return e=r(e,n),r(e,t)},update:function(t){var e,n,i,a,o,r,s,l,u,d,h,c,f,g,m,p,v,y,b,x=this,_=x._options,k=x._model,w=x._model=L(_),M=x._active,S=x._data,D={xAlign:k.xAlign,yAlign:k.yAlign},C={x:k.x,y:k.y},P={width:k.width,height:k.height},k={x:k.caretX,y:k.caretY};if(M.length){w.opacity=1;for(var T=[],O=[],k=R.Tooltip.positioners[_.position].call(x,M,x._eventPosition),I=[],A=0,F=M.length;A<F;++A)I.push((m=M[A],b=y=v=p=void 0,p=m._xScale,v=m._yScale||m._scale,y=m._index,b=m._datasetIndex,{xLabel:p?p.getLabelForIndex(y,b):"",yLabel:v?v.getLabelForIndex(y,b):"",index:y,datasetIndex:b,x:m._model.x,y:m._model.y}));_.filter&&(I=I.filter(function(t){return _.filter(t,S)})),_.itemSort&&(I=I.sort(function(t,e){return _.itemSort(t,e,S)})),W.each(I,function(t){T.push(_.callbacks.labelColor.call(x,t,x._chart)),O.push(_.callbacks.labelTextColor.call(x,t,x._chart))}),w.title=x.getTitle(I,S),w.beforeBody=x.getBeforeBody(I,S),w.body=x.getBody(I,S),w.afterBody=x.getAfterBody(I,S),w.footer=x.getFooter(I,S),w.x=Math.round(k.x),w.y=Math.round(k.y),w.caretPadding=_.caretPadding,w.labelColors=T,w.labelTextColors=O,w.dataPoints=I,P=Y(this,w),i=P,a=(n=this)._model,o=n._chart,r=n._chart.chartArea,l=s="center",a.y<i.height?l="top":a.y>o.height-i.height&&(l="bottom"),u=(r.left+r.right)/2,d=(r.top+r.bottom)/2,r="center"===l?(g=function(t){return t<=u},function(t){return u<t}):(g=function(t){return t<=i.width/2},function(t){return t>=o.width-i.width/2}),h=function(t){return t+i.width+a.caretSize+a.caretPadding>o.width},c=function(t){return t-i.width-a.caretSize-a.caretPadding<0},f=function(t){return t<=d?"top":"bottom"},g(a.x)?(s="left",h(a.x)&&(s="center",l=f(a.y))):r(a.x)&&(s="right",c(a.x)&&(s="center",l=f(a.y))),D={xAlign:(g=n._options).xAlign||s,yAlign:g.yAlign||l},h=w,r=P,c=D,f=x._chart,n=h.x,s=h.y,g=h.caretSize,l=h.caretPadding,h=h.cornerRadius,e=c.xAlign,c=c.yAlign,g+=l,h+=l,"right"===e?n-=r.width:"center"===e&&(n=(n-=r.width/2)+r.width>f.width?f.width-r.width:n)<0&&(n=0),"top"===c?s+=g:s-="bottom"===c?r.height+g:r.height/2,"center"===c?"left"===e?n+=g:"right"===e&&(n-=g):"left"===e?n-=h:"right"===e&&(n+=h),C={x:n,y:s}}else w.opacity=0;return w.xAlign=D.xAlign,w.yAlign=D.yAlign,w.x=C.x,w.y=C.y,w.width=P.width,w.height=P.height,w.caretX=k.x,w.caretY=k.y,x._model=w,t&&_.custom&&_.custom.call(x,w),x},drawCaret:function(t,e){var n=this._chart.ctx,i=this._view,t=this.getCaretPosition(t,e,i);n.lineTo(t.x1,t.y1),n.lineTo(t.x2,t.y2),n.lineTo(t.x3,t.y3)},getCaretPosition:function(t,e,n){var i,a,o,r,s,l,u=n.caretSize,d=n.cornerRadius,h=n.xAlign,c=n.yAlign,f=t.x,t=t.y,g=e.width,e=e.height;return"center"===c?(o=t+e/2,r="left"===h?(i=(l=f)-u,s=l,a=o+u,o-u):(i=(l=f+g)+u,s=l,a=o-u,o+u)):(s=(l="left"===h?(i=f+d+u)-u:"right"===h?(i=f+g-d-u)-u:(i=n.caretX)-u,i+u),"top"===c?(o=(a=t)-u,r=a):(o=(a=t+e)+u,r=a,h=s,s=l,l=h)),{x1:l,x2:i,x3:s,y1:a,y2:o,y3:r}},drawTitle:function(t,e,n,i){var a=e.title;if(a.length){n.textAlign=e._titleAlign,n.textBaseline="top";var o,r,s=e.titleFontSize,l=e.titleSpacing;for(n.fillStyle=h(e.titleFontColor,i),n.font=W.fontString(s,e._titleFontStyle,e._titleFontFamily),o=0,r=a.length;o<r;++o)n.fillText(a[o],t.x,t.y),t.y+=s+l,o+1===a.length&&(t.y+=e.titleMarginBottom-l)}},drawBody:function(i,a,o,r){function s(t){o.fillText(t,i.x+n,i.y),i.y+=l+e}var l=a.bodyFontSize,e=a.bodySpacing,t=a.body,n=(o.textAlign=a._bodyAlign,o.textBaseline="top",o.font=W.fontString(l,a._bodyFontStyle,a._bodyFontFamily),0),u=(o.fillStyle=h(a.bodyFontColor,r),W.each(a.beforeBody,s),a.displayColors),n=u?l+2:0;W.each(t,function(t,e){var n=h(a.labelTextColors[e],r);o.fillStyle=n,W.each(t.before,s),W.each(t.lines,function(t){u&&(o.fillStyle=h(a.legendColorBackground,r),o.fillRect(i.x,i.y,l,l),o.lineWidth=1,o.strokeStyle=h(a.labelColors[e].borderColor,r),o.strokeRect(i.x,i.y,l,l),o.fillStyle=h(a.labelColors[e].backgroundColor,r),o.fillRect(i.x+1,i.y+1,l-2,l-2),o.fillStyle=n),s(t)}),W.each(t.after,s)}),n=0,W.each(a.afterBody,s),i.y-=e},drawFooter:function(e,n,i,t){var a=n.footer;a.length&&(e.y+=n.footerMarginTop,i.textAlign=n._footerAlign,i.textBaseline="top",i.fillStyle=h(n.footerFontColor,t),i.font=W.fontString(n.footerFontSize,n._footerFontStyle,n._footerFontFamily),W.each(a,function(t){i.fillText(t,e.x,e.y),e.y+=n.footerFontSize+n.footerSpacing}))},drawBackground:function(t,e,n,i,a){n.fillStyle=h(e.backgroundColor,a),n.strokeStyle=h(e.borderColor,a),n.lineWidth=e.borderWidth;var a=e.xAlign,o=e.yAlign,r=t.x,s=t.y,l=i.width,u=i.height,d=e.cornerRadius;n.beginPath(),n.moveTo(r+d,s),"top"===o&&this.drawCaret(t,i),n.lineTo(r+l-d,s),n.quadraticCurveTo(r+l,s,r+l,s+d),"center"===o&&"right"===a&&this.drawCaret(t,i),n.lineTo(r+l,s+u-d),n.quadraticCurveTo(r+l,s+u,r+l-d,s+u),"bottom"===o&&this.drawCaret(t,i),n.lineTo(r+d,s+u),n.quadraticCurveTo(r,s+u,r,s+u-d),"center"===o&&"left"===a&&this.drawCaret(t,i),n.lineTo(r,s+d),n.quadraticCurveTo(r,s,r+d,s),n.closePath(),n.fill(),0<e.borderWidth&&n.stroke()},draw:function(){var t,e,n,i,a=this._chart.ctx,o=this._view;0!==o.opacity&&(t={width:o.width,height:o.height},e={x:o.x,y:o.y},n=Math.abs(o.opacity<.001)?0:o.opacity,i=o.title.length||o.beforeBody.length||o.body.length||o.afterBody.length||o.footer.length,this._options.enabled&&i&&(this.drawBackground(e,o,a,t,n),e.x+=o.xPadding,e.y+=o.yPadding,this.drawTitle(e,o,a,n),this.drawBody(e,o,a,n),this.drawFooter(e,o,a,n)))},handleEvent:function(t){var e,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===t.type?n._active=[]:n._active=n._chart.getElementsAtEventForMode(t,i.mode,i),(e=!W.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:t.x,y:t.y},n.update(!0),n.pivot())),e}}),R.Tooltip.positioners={average:function(t){if(!t.length)return!1;for(var e=0,n=0,i=0,a=0,o=t.length;a<o;++a){var r=t[a];r&&r.hasValue()&&(e+=(r=r.tooltipPosition()).x,n+=r.y,++i)}return{x:Math.round(e/i),y:Math.round(n/i)}},nearest:function(t,e){for(var n,i,a=e.x,o=e.y,r=Number.POSITIVE_INFINITY,s=0,l=t.length;s<l;++s){var u,d=t[s];d&&d.hasValue()&&(u=d.getCenterPoint(),(u=W.distanceBetweenPoints(e,u))<r&&(r=u,n=d))}return n&&(a=(i=n.tooltipPosition()).x,o=i.y),{x:a,y:o}}}}},{25:25,26:26,45:45}],36:[function(t,e,n){"use strict";var i=t(25),a=t(26),r=t(45);i._set("global",{elements:{arc:{backgroundColor:i.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),e.exports=a.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var n=this._view;if(n){for(var t=r.getAngleFromPoint(n,{x:t,y:e}),i=t.angle,e=t.distance,a=n.startAngle,o=n.endAngle;o<a;)o+=2*Math.PI;for(;o<i;)i-=2*Math.PI;for(;i<a;)i+=2*Math.PI;t=e>=n.innerRadius&&e<=n.outerRadius;return a<=i&&i<=o&&t}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,n){"use strict";var i=t(25),a=t(26),d=t(45),h=i.global;i._set("global",{elements:{line:{tension:.4,backgroundColor:h.defaultColor,borderWidth:3,borderColor:h.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,n,i,a=this._view,o=this._chart.ctx,r=a.spanGaps,s=this._children.slice(),l=h.elements.line,u=-1;for(this._loop&&s.length&&s.push(s[0]),o.save(),o.lineCap=a.borderCapStyle||l.borderCapStyle,o.setLineDash&&o.setLineDash(a.borderDash||l.borderDash),o.lineDashOffset=a.borderDashOffset||l.borderDashOffset,o.lineJoin=a.borderJoinStyle||l.borderJoinStyle,o.lineWidth=a.borderWidth||l.borderWidth,o.strokeStyle=a.borderColor||h.defaultColor,o.beginPath(),u=-1,t=0;t<s.length;++t)e=s[t],n=d.previousItem(s,t),i=e._view,0===t?i.skip||(o.moveTo(i.x,i.y),u=t):(n=-1===u?n:s[u],i.skip||(u!==t-1&&!r||-1===u?o.moveTo(i.x,i.y):d.canvas.lineTo(o,n._view,e._view),u=t));o.stroke(),o.restore()}})},{25:25,26:26,45:45}],38:[function(t,e,n){"use strict";var d=t(25),i=t(26),h=t(45),c=d.global.defaultColor;function a(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}d._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:c,borderColor:c,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),e.exports=i.extend({inRange:function(t,e){var n=this._view;return!!n&&Math.pow(t-n.x,2)+Math.pow(e-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:a,inXRange:a,inYRange:function(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,n=this._model,i=this._chart.ctx,a=e.pointStyle,o=e.radius,r=e.x,s=e.y,l=h.color,u=0;e.skip||(i.strokeStyle=e.borderColor||c,i.lineWidth=h.valueOrDefault(e.borderWidth,d.global.elements.point.borderWidth),i.fillStyle=e.backgroundColor||c,void 0!==t&&(n.x<t.left||1.01*t.right<n.x||n.y<t.top||1.01*t.bottom<n.y)&&(n.x<t.left?u=(r-n.x)/(t.left-n.x):1.01*t.right<n.x?u=(n.x-r)/(n.x-t.right):n.y<t.top?u=(s-n.y)/(t.top-n.y):1.01*t.bottom<n.y&&(u=(n.y-s)/(n.y-t.bottom)),u=Math.round(100*u)/100,i.strokeStyle=l(i.strokeStyle).alpha(u).rgbString(),i.fillStyle=l(i.fillStyle).alpha(u).rgbString()),h.canvas.drawPoint(i,a,o,r,s))}})},{25:25,26:26,45:45}],39:[function(t,e,n){"use strict";var i=t(25),t=t(26);function o(t){return void 0!==t._view.width}function a(t){var e,n,i,a=t._view;return a=o(t)?(t=a.width/2,e=a.x-t,n=a.x+t,i=Math.min(a.y,a.base),Math.max(a.y,a.base)):(t=a.height/2,e=Math.min(a.x,a.base),n=Math.max(a.x,a.base),i=a.y-t,a.y+t),{left:e,top:i,right:n,bottom:a}}i._set("global",{elements:{rectangle:{backgroundColor:i.global.defaultColor,borderColor:i.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=t.extend({draw:function(){var t,e,n,i,a,o,r,s,l,u=this._chart.ctx,d=this._view,h=d.borderWidth,c=d.horizontal?(t=d.base,e=d.x,n=d.y-d.height/2,i=d.y+d.height/2,a=t<e?1:-1,l=1,d.borderSkipped||"left"):(t=d.x-d.width/2,e=d.x+d.width/2,a=1,l=(n=d.y)<(i=d.base)?1:-1,d.borderSkipped||"bottom"),f=(h&&(r=(h=(r=Math.min(Math.abs(t-e),Math.abs(n-i)))<h?r:h)/2,s=n+("top"!==c?r*l:0),l=i+("bottom"!==c?-r*l:0),(o=t+("left"!==c?r*a:0))!==(r=e+("right"!==c?-r*a:0))&&(n=s,i=l),s!==l&&(t=o,e=r)),u.beginPath(),u.fillStyle=d.backgroundColor,u.strokeStyle=d.borderColor,u.lineWidth=h,[[t,i],[t,n],[e,n],[e,i]]),g=["bottom","left","top","right"].indexOf(c,0);function m(t){return f[(g+t)%4]}-1===g&&(g=0);var p=m(0);u.moveTo(p[0],p[1]);for(var v=1;v<4;v++)p=m(v),u.lineTo(p[0],p[1]);u.fill(),h&&u.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n,i=!1;return i=this._view?t>=(n=a(this)).left&&t<=n.right&&e>=n.top&&e<=n.bottom:i},inLabelRange:function(t,e){if(!this._view)return!1;var n=a(this);return o(this)?t>=n.left&&t<=n.right:e>=n.top&&e<=n.bottom},inXRange:function(t){var e=a(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=a(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e=this._view,e=o(this)?(t=e.x,(e.y+e.base)/2):(t=(e.x+e.base)/2,e.y);return{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,n){"use strict";t=t(42),n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,a,o){var r;o?(r=Math.min(o,i/2),o=Math.min(o,a/2),t.moveTo(e+r,n),t.lineTo(e+i-r,n),t.quadraticCurveTo(e+i,n,e+i,n+o),t.lineTo(e+i,n+a-o),t.quadraticCurveTo(e+i,n+a,e+i-r,n+a),t.lineTo(e+r,n+a),t.quadraticCurveTo(e,n+a,e,n+a-o),t.lineTo(e,n+o),t.quadraticCurveTo(e,n,e+r,n)):t.rect(e,n,i,a)},drawPoint:function(t,e,n,i,a){var o,r,s,l;if(!e||"object"!=typeof e||"[object HTMLImageElement]"!==(o=e.toString())&&"[object HTMLCanvasElement]"!==o){if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(i,a,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),d=(u=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(i-u/2,a+d/3),t.lineTo(i+u/2,a+d/3),t.lineTo(i,a-2*d/3),t.closePath(),t.fill();break;case"rect":l=1/Math.SQRT2*n,t.beginPath(),t.fillRect(i-l,a-l,2*l,2*l),t.strokeRect(i-l,a-l,2*l,2*l);break;case"rectRounded":var u=n/Math.SQRT2,d=i-u,u=a-u,h=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,d,u,h,h,n/2),t.closePath(),t.fill();break;case"rectRot":l=1/Math.SQRT2*n,t.beginPath(),t.moveTo(i-l,a),t.lineTo(i,a+l),t.lineTo(i+l,a),t.lineTo(i,a-l),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(i,a+n),t.lineTo(i,a-n),t.moveTo(i-n,a),t.lineTo(i+n,a),t.closePath();break;case"crossRot":t.beginPath(),r=Math.cos(Math.PI/4)*n,s=Math.sin(Math.PI/4)*n,t.moveTo(i-r,a-s),t.lineTo(i+r,a+s),t.moveTo(i-r,a+s),t.lineTo(i+r,a-s),t.closePath();break;case"star":t.beginPath(),t.moveTo(i,a+n),t.lineTo(i,a-n),t.moveTo(i-n,a),t.lineTo(i+n,a),r=Math.cos(Math.PI/4)*n,s=Math.sin(Math.PI/4)*n,t.moveTo(i-r,a-s),t.lineTo(i+r,a+s),t.moveTo(i-r,a+s),t.lineTo(i+r,a-s),t.closePath();break;case"line":t.beginPath(),t.moveTo(i-n,a),t.lineTo(i+n,a),t.closePath();break;case"dash":t.beginPath(),t.moveTo(i,a),t.lineTo(i+n,a),t.closePath()}t.stroke()}}else t.drawImage(e,i-e.width/2,a-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){if(n.steppedLine)return"after"===n.steppedLine&&!i||"after"!==n.steppedLine&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y);n.tension?t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}};t.clear=n.clear,t.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments),t.closePath()}},{42:42}],42:[function(t,e,n){"use strict";var i,d={noop:function(){},uid:(i=0,function(){return i++}),isNullOrUndef:function(t){return null==t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return d.valueOrDefault(d.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,i){var a,o,r;if(d.isArray(t))if(o=t.length,i)for(a=o-1;0<=a;a--)e.call(n,t[a],a);else for(a=0;a<o;a++)e.call(n,t[a],a);else if(d.isObject(t))for(o=(r=Object.keys(t)).length,a=0;a<o;a++)e.call(n,t[r[a]],r[a])},arrayEquals:function(t,e){var n,i,a,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(a=t[n],o=e[n],a instanceof Array&&o instanceof Array){if(!d.arrayEquals(a,o))return!1}else if(a!==o)return!1;return!0},clone:function(t){if(d.isArray(t))return t.map(d.clone);if(d.isObject(t)){for(var e={},n=Object.keys(t),i=n.length,a=0;a<i;++a)e[n[a]]=d.clone(t[n[a]]);return e}return t},_merger:function(t,e,n,i){var a=e[t],n=n[t];d.isObject(a)&&d.isObject(n)?d.merge(a,n,i):e[t]=d.clone(n)},_mergerIf:function(t,e,n){var i=e[t],n=n[t];d.isObject(i)&&d.isObject(n)?d.mergeIf(i,n):e.hasOwnProperty(t)||(e[t]=d.clone(n))},merge:function(t,e,n){var i,a,o,r,s,l=d.isArray(e)?e:[e],u=l.length;if(d.isObject(t))for(i=(n=n||{}).merger||d._merger,a=0;a<u;++a)if(e=l[a],d.isObject(e))for(s=0,r=(o=Object.keys(e)).length;s<r;++s)i(o[s],t,e,n);return t},mergeIf:function(t,e){return d.merge(t,e,{merger:d._mergerIf})},extend:function(n){for(var t=function(t,e){n[e]=t},e=1,i=arguments.length;e<i;++e)d.each(arguments[e],t);return n},inherits:function(t){function e(){this.constructor=i}var n=this,i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return n.apply(this,arguments)};return e.prototype=n.prototype,i.prototype=new e,i.extend=d.inherits,t&&d.extend(i.prototype,t),i.__super__=n.prototype,i}};(e.exports=d).callCallback=d.callback,d.indexOf=function(t,e,n){return Array.prototype.indexOf.call(t,e,n)},d.getValueOrDefault=d.valueOrDefault,d.getValueAtIndexOrDefault=d.valueAtIndexOrDefault},{}],43:[function(t,e,n){"use strict";var t=t(42),i={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return 1<=t?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n=n||.3,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),-(i*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/n)))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n=n||.3,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n=n||.45,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){return t*t*(2.70158*t-1.70158)},easeOutBack:function(t){return(t-=1)*t*(2.70158*t+1.70158)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-i.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*i.easeInBounce(2*t):.5*i.easeOutBounce(2*t-1)+.5}};e.exports={effects:i},t.easingEffects=i},{42:42}],44:[function(t,e,n){"use strict";var r=t(42);e.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,i,a;return r.isObject(t)?(e=+t.top||0,n=+t.right||0,i=+t.bottom||0,a=+t.left||0):e=n=i=a=+t||0,{top:e,right:n,bottom:i,left:a,height:e+i,width:a+n}},resolve:function(t,e,n){for(var i,a=0,o=t.length;a<o;++a)if(void 0!==(i=t[a])&&(void 0!==e&&"function"==typeof i&&(i=i(e)),void 0!==(i=void 0!==n&&r.isArray(i)?i[n]:i)))return i}}},{42:42}],45:[function(t,e,n){"use strict";e.exports=t(42),e.exports.easing=t(43),e.exports.canvas=t(41),e.exports.options=t(44)},{41:41,42:42,43:43,44:44}],46:[function(t,e,n){e.exports={acquireContext:function(t){return(t=t&&t.canvas?t.canvas:t)&&t.getContext("2d")||null}}},{}],47:[function(t,e,n){"use strict";var b=t(45),x="$chartjs",_="chartjs-",k=_+"render-monitor",w=_+"render-animation",M=["animationstart","webkitAnimationStart"],r={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function s(t,e){t=b.getStyle(t,e),e=t&&t.match(/^(\d+)(\.\d+)?px$/);return e?Number(e[1]):void 0}var i=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};function S(t,e,n){t.addEventListener(e,n,i)}function o(t,e,n){t.removeEventListener(e,n,i)}function D(t,e,n,i,a){return{type:t,chart:e,native:a||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function l(e,t,n){var i,a,o,r,s,l,u,d,h,c,f,g,m,p=e[x]||(e[x]={}),v=p.resizer=(h=!(l=function(){if(p.resizer)return t(D("resize",n))}),i=function(){d=Array.prototype.slice.call(arguments),u=u||this,h||(h=!0,b.requestAnimFrame.call(window,function(){h=!1,l.apply(u,d)}))},a=document.createElement("div"),g=_+"size-monitor",o="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;",a.style.cssText=o,a.className=g,a.innerHTML='<div class="'+g+'-expand" style="'+o+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+g+'-shrink" style="'+o+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>',r=a.childNodes[0],s=a.childNodes[1],a._reset=function(){r.scrollLeft=1e6,r.scrollTop=1e6,s.scrollLeft=1e6,s.scrollTop=1e6},S(r,"scroll",y.bind(r,"expand")),S(s,"scroll",y.bind(s,"shrink")),a);function y(){a._reset(),i()}f=function(){var t;p.resizer&&((t=e.parentNode)&&t!==v.parentNode&&t.insertBefore(v,t.firstChild),v._reset())},g=(c=e)[x]||(c[x]={}),m=g.renderProxy=function(t){t.animationName===w&&f()},b.each(M,function(t){S(c,t,m)}),g.reflow=!!c.offsetParent,c.classList.add(k)}function a(t){var e,n,i=t[x]||{},a=i.resizer;delete i.resizer,i=(e=t)[x]||{},(n=i.renderProxy)&&(b.each(M,function(t){o(e,t,n)}),delete i.renderProxy),e.classList.remove(k),a&&a.parentNode&&a.parentNode.removeChild(a)}e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t,e,n="from{opacity:0.99}to{opacity:1}";n="@-webkit-keyframes "+w+"{"+n+"}@keyframes "+w+"{"+n+"}."+k+"{-webkit-animation:"+w+" 0.001s;animation:"+w+" 0.001s;}",e=(t=this)._style||document.createElement("style"),t._style||(n="/* Chart.js */\n"+n,(t._style=e).setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(e)),e.appendChild(document.createTextNode(n))},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]);var n,i,a,o,r=(t=t&&t.canvas?t.canvas:t)&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(e=e,i=(t=t).style,a=t.getAttribute("height"),o=t.getAttribute("width"),t[x]={initial:{height:a,width:o,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",null!==o&&""!==o||void 0!==(n=s(t,"width"))&&(t.width=n),null!==a&&""!==a||(""===t.style.height?t.height=t.width/(e.options.aspectRatio||2):(i=s(t,"height"),void 0!==n&&(t.height=i))),r):null},releaseContext:function(t){var n,i=t.canvas;i[x]&&(n=i[x].initial,["height","width"].forEach(function(t){var e=n[t];b.isNullOrUndef(e)?i.removeAttribute(t):i.setAttribute(t,e)}),b.each(n.style||{},function(t,e){i.style[e]=t}),i.width=i.width,delete i[x])},addEventListener:function(a,t,o){var e=a.canvas;"resize"===t?l(e,o,a):S(e,t,((e=o[x]||(o[x]={})).proxies||(e.proxies={}))[a.id+"_"+t]=function(t){var e,n,i;o((e=a,n=r[(t=t).type]||t.type,i=b.getRelativePosition(t,e),D(n,e,i.x,i.y,t)))})},removeEventListener:function(t,e,n){var i=t.canvas;"resize"===e?a(i):(n=((n[x]||{}).proxies||{})[t.id+"_"+e])&&o(i,e,n)}},b.addEvent=S,b.removeEvent=o},{45:45}],48:[function(t,e,n){"use strict";var i=t(45),a=t(46),t=t(47),t=t._enabled?t:a;e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},t)},{45:45,46:46,47:47}],49:[function(t,e,n){"use strict";e.exports={},e.exports.filler=t(50),e.exports.legend=t(51),e.exports.title=t(52)},{50:50,51:51,52:52}],50:[function(t,e,n){"use strict";var w=t(25),c=t(40),M=t(45),f=(w._set("global",{plugins:{filler:{propagate:!0}}}),{dataset:function(t){var e=t.fill,t=t.chart,n=t.getDatasetMeta(e),i=n&&t.isDatasetVisible(e)&&n.dataset._children||[],a=i.length||0;return a?function(t,e){return e<a&&i[e]._view||null}:null},boundary:function(t){var t=t.boundary,e=t?t.x:null,n=t?t.y:null;return function(t){return{x:null===e?t.x:e,y:null===n?t.y:n}}}});function S(t){return t&&!t.skip}function D(t,e,n,i,a){var o;if(i&&a){for(t.moveTo(e[0].x,e[0].y),o=1;o<i;++o)M.canvas.lineTo(t,e[o-1],e[o]);for(t.lineTo(n[a-1].x,n[a-1].y),o=a-1;0<o;--o)M.canvas.lineTo(t,n[o],n[o-1],!0)}}e.exports={id:"filler",afterDatasetsUpdate:function(t,e){for(var n,i,a,o,r,s,l=(t.data.datasets||[]).length,u=e.propagate,d=[],h=0;h<l;++h)a=null,(i=(n=t.getDatasetMeta(h)).dataset)&&i._model&&i instanceof c.Line&&(a={visible:t.isDatasetVisible(h),fill:function(t,e,n){var i=(t=t._model||{}).fill;if(!1===(i=void 0===i?!!t.backgroundColor:i)||null===i)return!1;if(!0===i)return"origin";if(t=parseFloat(i,10),isFinite(t)&&Math.floor(t)===t)return!((t="-"!==i[0]&&"+"!==i[0]?t:e+t)===e||t<0||n<=t)&&t;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}(i,h,l),chart:t,el:i}),n.$filler=a,d.push(a);for(h=0;h<l;++h)(a=d[h])&&(a.fill=function(t,e,n){var i,a=t[e].fill,o=[e];if(!n)return a;for(;!1!==a&&-1===o.indexOf(a);){if(!isFinite(a))return a;if(!(i=t[a]))return!1;if(i.visible)return a;o.push(a),a=i.fill}return!1}(d,h,u),a.boundary=function(t){var e=t.el._model||{},n=t.el._scale||{},t=t.fill,i=null;if(!isFinite(t)&&("start"===t?i=void 0===e.scaleBottom?n.bottom:e.scaleBottom:"end"===t?i=void 0===e.scaleTop?n.top:e.scaleTop:void 0!==e.scaleZero?i=e.scaleZero:n.getBasePosition?i=n.getBasePosition():n.getBasePixel&&(i=n.getBasePixel()),null!=i)){if(void 0!==i.x&&void 0!==i.y)return i;if("number"==typeof i&&isFinite(i))return{x:(t=n.isHorizontal())?i:null,y:t?null:i}}return null}(a),a.mapper=(s=r=void 0,r=(o=a).fill,!(s="dataset")===r?null:(isFinite(r)||(s="boundary"),f[s](o))))},beforeDatasetDraw:function(t,e){e=e.meta.$filler;if(e){var n=t.ctx,i=e.el,a=i._view,o=i._children||[],e=e.mapper,r=a.backgroundColor||w.global.defaultColor;if(e&&r&&o.length){M.canvas.clipArea(n,t.chartArea);var s,l,u,d,h,c,f=n,g=o,m=e,p=a,t=r,o=i._loop,v=g.length,y=p.spanGaps,b=[],x=[],_=0,k=0;for(f.beginPath(),s=0,l=v+!!o;s<l;++s)d=m(u=g[d=s%v]._view,d,p),h=S(u),c=S(d),h&&c?(_=b.push(u),k=x.push(d)):_&&k&&(y?(h&&b.push(u),c&&x.push(d)):(D(f,b,x,_,k),_=k=0,b=[],x=[]));D(f,b,x,_,k),f.closePath(),f.fillStyle=t,f.fill(),M.canvas.unclipArea(n)}}}}},{25:25,40:40,45:45}],51:[function(t,e,n){"use strict";var C=t(25),i=t(26),P=t(45),a=t(30),t=P.noop;function T(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}C._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var e=e.datasetIndex,n=this.chart,i=n.getDatasetMeta(e);i.hidden=null===i.hidden?!n.data.datasets[e].hidden:null,n.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(n){var t=n.data;return P.isArray(t.datasets)?t.datasets.map(function(t,e){return{text:t.label,fillStyle:P.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!n.isDatasetVisible(e),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:e}},this):[]}}},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var n=0;n<t.data.datasets.length;n++)e.push('<li><span style="background-color:'+t.data.datasets[n].backgroundColor+'"></span>'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("</li>");return e.push("</ul>"),e.join("")}});var o=i.extend({initialize:function(t){P.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:t,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:function(){var e=this,n=e.options.labels||{},t=P.callback(n.generateLabels,[e.chart],e)||[];n.filter&&(t=t.filter(function(t){return n.filter(t,e.chart.data)})),e.options.reverse&&t.reverse(),e.legendItems=t},afterBuildLabels:t,beforeFit:t,fit:function(){var n,i,a,o,r,s,l,u=this,t=u.options,d=t.labels,t=t.display,h=u.ctx,e=C.global,c=P.valueOrDefault,f=c(d.fontSize,e.defaultFontSize),g=c(d.fontStyle,e.defaultFontStyle),c=c(d.fontFamily,e.defaultFontFamily),e=P.fontString(f,g,c),m=u.legendHitBoxes=[],p=u.minSize,g=u.isHorizontal();g?(p.width=u.maxWidth,p.height=t?10:0):(p.width=t?10:0,p.height=u.maxHeight),t&&(h.font=e,g?(n=u.lineWidths=[0],i=u.legendItems.length?f+d.padding:0,h.textAlign="left",h.textBaseline="top",P.each(u.legendItems,function(t,e){t=T(d,f)+f/2+h.measureText(t.text).width;n[n.length-1]+t+d.padding>=u.width&&(i+=f+d.padding,n[n.length]=u.left),m[e]={left:0,top:0,width:t,height:f},n[n.length-1]+=t+d.padding}),p.height+=i):(c=d.padding,a=u.columnWidths=[],o=d.padding,s=r=0,l=f+c,P.each(u.legendItems,function(t,e){t=T(d,f)+f/2+h.measureText(t.text).width;s+l>p.height&&(o+=r+d.padding,a.push(r),s=r=0),r=Math.max(r,t),s+=l,m[e]={left:0,top:0,width:t,height:f}}),o+=r,a.push(r),p.width+=o)),u.width=p.width,u.height=p.height},afterFit:t,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var c,f,t,g,e,n,m,p,v,y,b,x=this,_=x.options,k=_.labels,w=C.global,M=w.elements.line,S=x.width,D=x.lineWidths;_.display&&(c=x.ctx,t=(f=P.valueOrDefault)(k.fontColor,w.defaultFontColor),g=f(k.fontSize,w.defaultFontSize),n=f(k.fontStyle,w.defaultFontStyle),e=f(k.fontFamily,w.defaultFontFamily),n=P.fontString(g,n,e),c.textAlign="left",c.textBaseline="middle",c.lineWidth=.5,c.strokeStyle=t,c.fillStyle=t,c.font=n,m=T(k,g),p=x.legendHitBoxes,v=x.isHorizontal(),y=v?{x:x.left+(S-D[0])/2,y:x.top+k.padding,line:0}:{x:x.left+k.padding,y:x.top+k.padding,line:0},b=g+k.padding,P.each(x.legendItems,function(t,e){var n,i,a,o,r,s,l=c.measureText(t.text).width,u=m+g/2+l,d=y.x,h=y.y;v?S<=d+u&&(h=y.y+=b,y.line++,d=y.x=x.left+(S-D[y.line])/2):h+b>x.bottom&&(d=y.x=d+x.columnWidths[y.line]+k.padding,h=y.y=x.top+k.padding,y.line++),i=d,n=h,a=t,isNaN(m)||m<=0||(c.save(),c.fillStyle=f(a.fillStyle,w.defaultColor),c.lineCap=f(a.lineCap,M.borderCapStyle),c.lineDashOffset=f(a.lineDashOffset,M.borderDashOffset),c.lineJoin=f(a.lineJoin,M.borderJoinStyle),c.lineWidth=f(a.lineWidth,M.borderWidth),c.strokeStyle=f(a.strokeStyle,w.defaultColor),s=0===f(a.lineWidth,M.borderWidth),c.setLineDash&&c.setLineDash(f(a.lineDash,M.borderDash)),_.labels&&_.labels.usePointStyle?(r=(o=g*Math.SQRT2/2)/Math.SQRT2,P.canvas.drawPoint(c,a.pointStyle,o,i+r,n+r)):(s||c.strokeRect(i,n,m,g),c.fillRect(i,n,m,g)),c.restore()),p[e].left=d,p[e].top=h,a=h,o=t,r=l,i=m+(s=g/2)+(i=d),a+=s,c.fillText(o.text,i,a),o.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(i,a),c.lineTo(i+r,a),c.stroke()),v?y.x+=u+k.padding:y.y+=b}))},handleEvent:function(t){var e=this,n=e.options,i="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===i){if(!n.onHover)return}else{if("click"!==i)return;if(!n.onClick)return}var o=t.x,r=t.y;if(o>=e.left&&o<=e.right&&r>=e.top&&r<=e.bottom)for(var s=e.legendHitBoxes,l=0;l<s.length;++l){var u=s[l];if(o>=u.left&&o<=u.left+u.width&&r>=u.top&&r<=u.top+u.height){if("click"===i){n.onClick.call(e,t.native,e.legendItems[l]),a=!0;break}if("mousemove"===i){n.onHover.call(e,t.native,e.legendItems[l]),a=!0;break}}}return a}});function r(t,e){var n=new o({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.legend=n}e.exports={id:"legend",_element:o,beforeInit:function(t){var e=t.options.legend;e&&r(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(P.mergeIf(e,C.global.legend),n?(a.configure(t,n,e),n.options=e):r(t,e)):n&&(a.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){t=t.legend;t&&t.handleEvent(e)}}},{25:25,26:26,30:30,45:45}],52:[function(t,e,n){"use strict";var y=t(25),i=t(26),b=t(45),a=t(30),t=b.noop,o=(y._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),i.extend({initialize:function(t){b.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:t,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:t,afterBuildLabels:t,beforeFit:t,fit:function(){var t=b.valueOrDefault,e=this.options,n=e.display,t=t(e.fontSize,y.global.defaultFontSize),i=this.minSize,a=b.isArray(e.text)?e.text.length:1,t=b.options.toLineHeight(e.lineHeight,t),n=n?a*t+2*e.padding:0;this.isHorizontal()?(i.width=this.maxWidth,i.height=n):(i.width=n,i.height=this.maxHeight),this.width=i.width,this.height=i.height},afterFit:t,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this.ctx,e=b.valueOrDefault,n=this.options,i=y.global;if(n.display){var a,o,r,s=e(n.fontSize,i.defaultFontSize),l=e(n.fontStyle,i.defaultFontStyle),u=e(n.fontFamily,i.defaultFontFamily),l=b.fontString(s,l,u),d=b.options.toLineHeight(n.lineHeight,s),u=d/2+n.padding,s=0,h=this.top,c=this.left,f=this.bottom,g=this.right,m=(t.fillStyle=e(n.fontColor,i.defaultFontColor),t.font=l,this.isHorizontal()?(o=c+(g-c)/2,r=h+u,a=g-c):(o="left"===n.position?c+u:g-u,r=h+(f-h)/2,a=f-h,s=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(o,r),t.rotate(s),t.textAlign="center",t.textBaseline="middle",n.text);if(b.isArray(m))for(var p=0,v=0;v<m.length;++v)t.fillText(m[v],0,p,a),p+=d;else t.fillText(m,0,0,a);t.restore()}}}));function r(t,e){var n=new o({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.titleBlock=n}e.exports={id:"title",_element:o,beforeInit:function(t){var e=t.options.title;e&&r(t,e)},beforeUpdate:function(t){var e=t.options.title,n=t.titleBlock;e?(b.mergeIf(e,y.global.title),n?(a.configure(t,n,e),n.options=e):r(t,e)):n&&(a.removeBox(t,n),delete t.titleBlock)}}},{25:25,26:26,30:30,45:45}],53:[function(t,e,n){"use strict";e.exports=function(t){var e=t.Scale.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,e=this,n=e.getLabels();e.minIndex=0,e.maxIndex=n.length-1,void 0!==e.options.ticks.min&&(t=n.indexOf(e.options.ticks.min),e.minIndex=-1!==t?t:e.minIndex),void 0!==e.options.ticks.max&&(t=n.indexOf(e.options.ticks.max),e.maxIndex=-1!==t?t:e.maxIndex),e.min=n[e.minIndex],e.max=n[e.maxIndex]},buildTicks:function(){var t=this.getLabels();this.ticks=0===this.minIndex&&this.maxIndex===t.length-1?t:t.slice(this.minIndex,this.maxIndex+1)},getLabelForIndex:function(t,e){var n=this.chart.data,i=this.isHorizontal();return n.yLabels&&!i?this.getRightValue(n.datasets[e].data[t]):this.ticks[t-this.minIndex]},getPixelForValue:function(t,e){var n=this,i=n.options.offset,a=Math.max(n.maxIndex+1-n.minIndex-(i?0:1),1);if((void 0!==(o=null!=t?n.isHorizontal()?t.x:t.y:o)||void 0!==t&&isNaN(e))&&(e=-1!==(o=n.getLabels().indexOf(t=o||t))?o:e),n.isHorizontal())return o=(t=n.width/a)*(e-n.minIndex),i&&(o+=t/2),n.left+Math.round(o);var t=n.height/a,o=t*(e-n.minIndex);return i&&(o+=t/2),n.top+Math.round(o)},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this.options.offset,n=Math.max(this._ticks.length-(e?0:1),1),i=this.isHorizontal(),n=(i?this.width:this.height)/n;return t-=i?this.left:this.top,e&&(t-=n/2),(t<=0?0:Math.round(t/n))+this.minIndex},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",e,{position:"bottom"})}},{}],54:[function(t,e,n){"use strict";var i=t(25),h=t(45),a=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.linear}},n=t.LinearScaleBase.extend({determineDataLimits:function(){var r=this,s=r.options,l=r.chart,t=l.data.datasets,e=r.isHorizontal();function u(t){return e?t.xAxisID===r.id:t.yAxisID===r.id}r.min=null,r.max=null;var d,i=s.stacked;void 0===i&&h.each(t,function(t,e){var n;i||(n=l.getDatasetMeta(e),l.isDatasetVisible(e)&&u(n)&&void 0!==n.stack&&(i=!0))}),s.stacked||i?(d={},h.each(t,function(t,e){var n=l.getDatasetMeta(e),i=[n.type,void 0===s.stacked&&void 0===n.stack?e:"",n.stack].join("."),a=(void 0===d[i]&&(d[i]={positiveValues:[],negativeValues:[]}),d[i].positiveValues),o=d[i].negativeValues;l.isDatasetVisible(e)&&u(n)&&h.each(t.data,function(t,e){t=+r.getRightValue(t);isNaN(t)||n.data[e].hidden||(a[e]=a[e]||0,o[e]=o[e]||0,s.relativePoints?a[e]=100:t<0?o[e]+=t:a[e]+=t)})}),h.each(d,function(t){var t=t.positiveValues.concat(t.negativeValues),e=h.min(t),t=h.max(t);r.min=null===r.min?e:Math.min(r.min,e),r.max=null===r.max?t:Math.max(r.max,t)})):h.each(t,function(t,e){var n=l.getDatasetMeta(e);l.isDatasetVisible(e)&&u(n)&&h.each(t.data,function(t,e){t=+r.getRightValue(t);isNaN(t)||n.data[e].hidden||((null===r.min||t<r.min)&&(r.min=t),(null===r.max||t>r.max)&&(r.max=t))})}),r.min=isFinite(r.min)&&!isNaN(r.min)?r.min:0,r.max=isFinite(r.max)&&!isNaN(r.max)?r.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this.options.ticks;return this.isHorizontal()?Math.min(e.maxTicksLimit||11,Math.ceil(this.width/50)):(t=h.valueOrDefault(e.fontSize,i.global.defaultFontSize),Math.min(e.maxTicksLimit||11,Math.ceil(this.height/(2*t))))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this.start,t=+this.getRightValue(t),n=this.end-e,n=this.isHorizontal()?this.left+this.width/n*(t-e):this.bottom-this.height/n*(t-e);return n},getValueForPixel:function(t){var e=this.isHorizontal(),n=e?this.width:this.height,e=(e?t-this.left:this.bottom-t)/n;return this.start+(this.end-this.start)*e},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,e)}},{25:25,34:34,45:45}],55:[function(t,e,n){"use strict";var u=t(45);e.exports=function(e){var t=u.noop;e.LinearScaleBase=e.Scale.extend({getRightValue:function(t){return"string"==typeof t?+t:e.Scale.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks,n=(e.beginAtZero&&(n=u.sign(t.min),i=u.sign(t.max),n<0&&i<0?t.max=0:0<n&&0<i&&(t.min=0)),void 0!==e.min||void 0!==e.suggestedMin),i=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),n!=i&&t.min>=t.max&&(n?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),n={maxTicks:Math.max(2,n),min:e.min,max:e.max,stepSize:u.valueOrDefault(e.fixedStepSize,e.stepSize)},n=t.ticks=function(t,e){var n,i=[],a=(n=t.stepSize&&0<t.stepSize?t.stepSize:(o=u.niceNum(e.max-e.min,!1),u.niceNum(o/(t.maxTicks-1),!0)),Math.floor(e.min/n)*n),o=Math.ceil(e.max/n)*n,r=(t.min&&t.max&&t.stepSize&&u.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(a=t.min,o=t.max),(o-a)/n),r=u.almostEquals(r,Math.round(r),n/1e3)?Math.round(r):Math.ceil(r),s=1;n<1&&(s=Math.pow(10,n.toString().length-2),a=Math.round(a*s)/s,o=Math.round(o*s)/s),i.push(void 0!==t.min?t.min:a);for(var l=1;l<r;++l)i.push(Math.round((a+l*n)*s)/s);return i.push(void 0!==t.max?t.max:o),i}(n,t);t.handleDirectionalChanges(),t.max=u.max(n),t.min=u.min(n),e.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){this.ticksAsNumbers=this.ticks.slice(),this.zeroLineIndex=this.ticks.indexOf(0),e.Scale.prototype.convertTicksToLabels.call(this)}})}},{45:45}],56:[function(t,e,n){"use strict";var h=t(45),i=t(34);e.exports=function(d){var t={position:"left",ticks:{callback:i.formatters.logarithmic}},e=d.Scale.extend({determineDataLimits:function(){var o=this,n=o.options,r=o.chart,t=r.data.datasets,e=o.isHorizontal();function s(t){return e?t.xAxisID===o.id:t.yAxisID===o.id}o.min=null,o.max=null,o.minNotZero=null;var l,i=n.stacked;void 0===i&&h.each(t,function(t,e){var n;i||(n=r.getDatasetMeta(e),r.isDatasetVisible(e)&&s(n)&&void 0!==n.stack&&(i=!0))}),n.stacked||i?(l={},h.each(t,function(t,e){var i=r.getDatasetMeta(e),a=[i.type,void 0===n.stacked&&void 0===i.stack?e:"",i.stack].join(".");r.isDatasetVisible(e)&&s(i)&&(void 0===l[a]&&(l[a]=[]),h.each(t.data,function(t,e){var n=l[a],t=+o.getRightValue(t);isNaN(t)||i.data[e].hidden||t<0||(n[e]=n[e]||0,n[e]+=t)}))}),h.each(l,function(t){var e;0<t.length&&(e=h.min(t),t=h.max(t),o.min=null===o.min?e:Math.min(o.min,e),o.max=null===o.max?t:Math.max(o.max,t))})):h.each(t,function(t,e){var n=r.getDatasetMeta(e);r.isDatasetVisible(e)&&s(n)&&h.each(t.data,function(t,e){t=+o.getRightValue(t);isNaN(t)||n.data[e].hidden||t<0||((null===o.min||t<o.min)&&(o.min=t),(null===o.max||t>o.max)&&(o.max=t),0!=t&&(null===o.minNotZero||t<o.minNotZero)&&(o.minNotZero=t))})}),this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks,n=h.valueOrDefault;t.min=n(e.min,t.min),t.max=n(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(h.log10(t.min))-1),t.max=Math.pow(10,Math.floor(h.log10(t.max))+1)):(t.min=1,t.max=10)),null===t.min&&(t.min=Math.pow(10,Math.floor(h.log10(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(h.log10(t.min))+1):10),null===t.minNotZero&&(0<t.min?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(h.log10(t.max))):t.minNotZero=1)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),i={min:e.min,max:e.max},i=t.ticks=function(t,e){for(var n,i,a=[],o=h.valueOrDefault,r=o(t.min,Math.pow(10,Math.floor(h.log10(e.min)))),s=Math.floor(h.log10(e.max)),l=Math.ceil(e.max/Math.pow(10,s)),u=(0===r?(n=Math.floor(h.log10(e.minNotZero)),i=Math.floor(e.minNotZero/Math.pow(10,n)),a.push(r),r=i*Math.pow(10,n)):(n=Math.floor(h.log10(r)),i=Math.floor(r/Math.pow(10,n))),n<0?Math.pow(10,Math.abs(n)):1);a.push(r),10===++i&&(i=1,u=0<=++n?1:u),r=Math.round(i*Math.pow(10,n)*u)/u,n<s||n===s&&i<l;);return e=o(t.max,r),a.push(e),a}(i,t);t.max=h.max(i),t.min=h.min(i),e.reverse?(n=!n,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),n&&i.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),d.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},_getFirstTickValue:function(t){var e=Math.floor(h.log10(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},getPixelForValue:function(t){var e,n,i,a,o=this,r=o.options.ticks.reverse,s=h.log10,l=o._getFirstTickValue(o.minNotZero),u=0;return t=+o.getRightValue(t),a=r?(n=o.end,i=o.start,-1):(n=o.start,i=o.end,1),r=o.isHorizontal()?(e=o.width,r?o.right:o.left):(e=o.height,a*=-1,r?o.top:o.bottom),t!==n&&(0===n&&(e-=u=h.getValueOrDefault(o.options.ticks.fontSize,d.defaults.global.defaultFontSize),n=l),0!==t&&(u+=e/(s(i)-s(n))*(s(t)-s(n))),r+=a*u),r},getValueForPixel:function(t){var e,n,i=this,a=i.options.ticks.reverse,o=h.log10,r=i._getFirstTickValue(i.minNotZero),s=a?(n=i.end,i.start):(n=i.start,i.end),a=i.isHorizontal()?(e=i.width,a?i.right-t:t-i.left):(e=i.height,a?t-i.top:i.bottom-t);return a!==n&&(0===n&&(a-=t=h.getValueOrDefault(i.options.ticks.fontSize,d.defaults.global.defaultFontSize),e-=t,n=r),a=a*(o(s)-o(n))/e,a=Math.pow(10,o(n)+a)),a}});d.scaleService.registerScaleType("logarithmic",e,t)}},{34:34,45:45}],57:[function(t,e,n){"use strict";var o=t(25),_=t(45),s=t(34);e.exports=function(t){var y=o.global,e={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:s.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function b(t){var e=t.options;return e.angleLines.display||e.pointLabels.display?t.chart.data.labels.length:0}function x(t){var t=t.options.pointLabels,e=_.valueOrDefault(t.fontSize,y.defaultFontSize),n=_.valueOrDefault(t.fontStyle,y.defaultFontStyle),t=_.valueOrDefault(t.fontFamily,y.defaultFontFamily);return{size:e,style:n,family:t,font:_.fontString(e,n,t)}}function c(t,e,n,i,a){return t===i||t===a?{start:e-n/2,end:e+n/2}:t<i||a<t?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function n(t){for(var e,n,i=x(t),a=Math.min(t.height/2,t.width/2),o={r:t.width,l:0,t:t.height,b:0},r={},s=(t.ctx.font=i.font,t._pointLabelSizes=[],b(t)),l=0;l<s;l++){e=t.getPointPosition(l,a),n=t.ctx,d=i.size,u=t.pointLabels[l]||"",n=_.isArray(u)?{w:_.longestText(n,n.font,u),h:u.length*d+1.5*(u.length-1)*d}:{w:n.measureText(u).width,h:d},t._pointLabelSizes[l]=n;var u=t.getIndexAngle(l),d=_.toDegrees(u)%360,h=c(d,e.x,n.w,0,180),d=c(d,e.y,n.h,90,270);h.start<o.l&&(o.l=h.start,r.l=u),h.end>o.r&&(o.r=h.end,r.r=u),d.start<o.t&&(o.t=d.start,r.t=u),d.end>o.b&&(o.b=d.end,r.b=u)}t.setReductions(a,o,r)}function i(t){var e=t.ctx,n=t.options,i=n.angleLines,a=n.pointLabels,o=(e.lineWidth=i.lineWidth,e.strokeStyle=i.color,t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max)),r=x(t);e.textBaseline="top";for(var s,l=b(t)-1;0<=l;l--)if(i.display&&(u=t.getPointPosition(l,o),e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(u.x,u.y),e.stroke(),e.closePath()),a.display){var u=t.getPointPosition(l,o+5),d=_.valueAtIndexOrDefault(a.fontColor,l,y.defaultFontColor),d=(e.font=r.font,e.fillStyle=d,t.getIndexAngle(l)),d=_.toDegrees(d),h=(e.textAlign=0===(g=d)||180===g?"center":g<180?"left":"right",g=d,d=t._pointLabelSizes[l],s=u,90===g||270===g?s.y-=d.h/2:(270<g||g<90)&&(s.y-=d.h),v=p=m=g=f=c=h=void 0,e),c=t.pointLabels[l]||"",f=u,g=r.size;if(_.isArray(c))for(var m=f.y,p=1.5*g,v=0;v<c.length;++v)h.fillText(c[v],f.x,m),m+=p;else h.fillText(c,f.x,f.y)}}function r(t){return _.isNumber(t)?t:0}var a=t.LinearScaleBase.extend({setDimensions:function(){var t=this,e=t.options,n=e.ticks,i=(t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2),_.min([t.height,t.width])),a=_.valueOrDefault(n.fontSize,y.defaultFontSize);t.drawingArea=e.display?i/2-(a/2+n.backdropPaddingY):i/2},determineDataLimits:function(){var i=this,a=i.chart,o=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;_.each(a.data.datasets,function(t,e){var n;a.isDatasetVisible(e)&&(n=a.getDatasetMeta(e),_.each(t.data,function(t,e){t=+i.getRightValue(t);isNaN(t)||n.data[e].hidden||(o=Math.min(t,o),r=Math.max(t,r))}))}),i.min=o===Number.POSITIVE_INFINITY?0:o,i.max=r===Number.NEGATIVE_INFINITY?0:r,i.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,e=_.valueOrDefault(t.fontSize,y.defaultFontSize);return Math.min(t.maxTicksLimit||11,Math.ceil(this.drawingArea/(1.5*e)))},convertTicksToLabels:function(){t.LinearScaleBase.prototype.convertTicksToLabels.call(this),this.pointLabels=this.chart.data.labels.map(this.options.pointLabels.callback,this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,e;this.options.pointLabels.display?n(this):(t=this,e=Math.min(t.height/2,t.width/2),t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0))},setReductions:function(t,e,n){var i=e.l/Math.sin(n.l),a=Math.max(e.r-this.width,0)/Math.sin(n.r),o=-e.t/Math.cos(n.t),e=-Math.max(e.b-this.height,0)/Math.cos(n.b),i=r(i),a=r(a),o=r(o),e=r(e);this.drawingArea=Math.min(Math.round(t-(i+a)/2),Math.round(t-(o+e)/2)),this.setCenterPoint(i,a,o,e)},setCenterPoint:function(t,e,n,i){var a=this,e=a.width-e-a.drawingArea,t=t+a.drawingArea,n=n+a.drawingArea,i=a.height-i-a.drawingArea;a.xCenter=Math.round((t+e)/2+a.left),a.yCenter=Math.round((n+i)/2+a.top)},getIndexAngle:function(t){return t*(2*Math.PI/b(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){if(null===t)return 0;var e=this.drawingArea/(this.max-this.min);return this.options.ticks.reverse?(this.max-t)*e:(t-this.min)*e},getPointPosition:function(t,e){t=this.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(t)*e)+this.xCenter,y:Math.round(Math.sin(t)*e)+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:0<t&&0<e?t:0)},draw:function(){var d,h,c,t,e,f,g=this,n=g.options,m=n.gridLines,p=n.ticks,v=_.valueOrDefault;n.display&&(d=g.ctx,h=this.getIndexAngle(0),c=v(p.fontSize,y.defaultFontSize),t=v(p.fontStyle,y.defaultFontStyle),e=v(p.fontFamily,y.defaultFontFamily),f=_.fontString(c,t,e),_.each(g.ticks,function(t,e){if(0<e||p.reverse){var n=g.getDistanceFromCenterForValue(g.ticksAsNumbers[e]);if(m.display&&0!==e){var i=g,a=m,o=n,r=i.ctx;if(r.strokeStyle=_.valueAtIndexOrDefault(a.color,e-1),r.lineWidth=_.valueAtIndexOrDefault(a.lineWidth,e-1),i.options.gridLines.circular)r.beginPath(),r.arc(i.xCenter,i.yCenter,o,0,2*Math.PI),r.closePath(),r.stroke();else{var s=b(i);if(0!==s){r.beginPath();var l=i.getPointPosition(0,o);r.moveTo(l.x,l.y);for(var u=1;u<s;u++)l=i.getPointPosition(u,o),r.lineTo(l.x,l.y);r.closePath(),r.stroke()}}}p.display&&(a=v(p.fontColor,y.defaultFontColor),d.font=f,d.save(),d.translate(g.xCenter,g.yCenter),d.rotate(h),p.showLabelBackdrop&&(e=d.measureText(t).width,d.fillStyle=p.backdropColor,d.fillRect(-e/2-p.backdropPaddingX,-n-c/2-p.backdropPaddingY,e+2*p.backdropPaddingX,c+2*p.backdropPaddingY)),d.textAlign="center",d.textBaseline="middle",d.fillStyle=a,d.fillText(t,0,-n),d.restore())}}),(n.angleLines.display||n.pointLabels.display)&&i(g))}});t.scaleService.registerScaleType("radialLinear",a,e)}},{25:25,34:34,45:45}],58:[function(t,e,n){"use strict";var D="function"==typeof(D=t(6))?D:window.moment,a=t(25),m=t(45),p=Number.MIN_SAFE_INTEGER||-9007199254740991,v=Number.MAX_SAFE_INTEGER||9007199254740991,C={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},P=Object.keys(C);function y(t,e){return t-e}function b(t){for(var e,n={},i=[],a=0,o=t.length;a<o;++a)n[e=t[a]]||(n[e]=!0,i.push(e));return i}function T(t,e,n,i){var a=function(t,e,n){for(var i,a,o,r=0,s=t.length-1;0<=r&&r<=s;){if(a=t[(i=r+s>>1)-1]||null,o=t[i],!a)return{lo:null,hi:o};if(o[e]<n)r=1+i;else{if(!(a[e]>n))return{lo:a,hi:o};s=i-1}}return{lo:o,hi:null}}(t,e,n),o=a.lo?a.hi?a.lo:t[t.length-2]:t[0],a=a.lo?a.hi||t[t.length-1]:t[1],t=a[e]-o[e],n=t?(n-o[e])/t:0,e=(a[i]-o[i])*n;return o[i]+e}function O(t,e){var n=e.parser,e=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof e?D(t,e):!(t=t instanceof D?t:D(t)).isValid()&&"function"==typeof e?e(t):t}function I(t,e){if(m.isNullOrUndef(t))return null;var n=e.options.time,e=O(e.getRightValue(t),n);return e.isValid()?(n.round&&e.startOf(n.round),e.valueOf()):null}function A(t){for(var e=P.indexOf(t)+1,n=P.length;e<n;++e)if(C[P[e]].common)return P[e]}function F(t,e,n,i){var a,o=i.time,r=o.unit||function(t,e,n,i){for(var a,o,r=P.length,s=P.indexOf(t);s<r-1;++s)if(o=(a=C[P[s]]).steps?a.steps[a.steps.length-1]:v,a.common&&Math.ceil((n-e)/(o*a.size))<=i)return P[s];return P[r-1]}(o.minUnit,t,e,n),s=A(r),l=m.valueOrDefault(o.stepSize,o.unitStepSize),u="week"===r&&o.isoWeekday,i=i.ticks.major.enabled,d=C[r],h=D(t),c=D(e),f=[],l=l||function(t,e,n,i){var a,o,r,s=e-t,l=(e=C[n]).size,u=e.steps;if(!u)return Math.ceil(s/(i*l));for(a=0,o=u.length;a<o&&(r=u[a],!(Math.ceil(s/(l*r))<=i));++a);return r}(t,e,r,n);for(u&&(h=h.isoWeekday(u),c=c.isoWeekday(u)),h=h.startOf(u?"day":r),(c=c.startOf(u?"day":r))<e&&c.add(1,r),a=D(h),i&&s&&!u&&!o.round&&(a.startOf(s),a.add(~~((h-a)/(d.size*l))*l,r));a<c;a.add(l,r))f.push(+a);return f.push(+a),f}e.exports=function(e){var t=e.Scale.extend({initialize:function(){if(!D)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),e.Scale.prototype.initialize.call(this)},update:function(){var t=this.options;return t.time&&t.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),e.Scale.prototype.update.apply(this,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),e.Scale.prototype.getRightValue.call(this,t)},determineDataLimits:function(){for(var t,e,n,i,a=this,o=a.chart,r=a.options.time,s=r.unit||"day",l=v,u=p,d=[],h=[],c=[],f=0,g=o.data.labels.length;f<g;++f)c.push(I(o.data.labels[f],a));for(f=0,g=(o.data.datasets||[]).length;f<g;++f)if(o.isDatasetVisible(f))if(n=o.data.datasets[f].data,m.isObject(n[0]))for(h[f]=[],t=0,e=n.length;t<e;++t)i=I(n[t],a),d.push(i),h[f][t]=i;else d.push.apply(d,c),h[f]=c.slice(0);else h[f]=[];c.length&&(c=b(c).sort(y),l=Math.min(l,c[0]),u=Math.max(u,c[c.length-1])),d.length&&(d=b(d).sort(y),l=Math.min(l,d[0]),u=Math.max(u,d[d.length-1])),l=I(r.min,a)||l,u=I(r.max,a)||u,l=l===v?+D().startOf(s):l,u=u===p?+D().endOf(s)+1:u,a.min=Math.min(l,u),a.max=Math.max(l+1,u),a._horizontal=a.isHorizontal(),a._table=[],a._timestamps={data:d,datasets:h,labels:c}},buildTicks:function(){var t,e,n,i,a,o,r,s,l,u,d,h,c=this,f=c.min,g=c.max,m=c.options,p=m.time,v=[],y=[];switch(m.ticks.source){case"data":v=c._timestamps.data;break;case"labels":v=c._timestamps.labels;break;default:v=F(f,g,c.getLabelCapacity(f),m)}for("ticks"===m.bounds&&v.length&&(f=v[0],g=v[v.length-1]),f=I(p.min,c)||f,g=I(p.max,c)||g,t=0,e=v.length;t<e;++t)f<=(n=v[t])&&n<=g&&y.push(n);c.min=f,c.max=g,c._unit=p.unit||function(t,e,n,i){for(var a,o=D.duration(D(i).diff(D(n))),r=P.length-1;r>=P.indexOf(e);r--)if(a=P[r],C[a].common&&o.as(a)>=t.length)return a;return P[e?P.indexOf(e):0]}(y,p.minUnit,c.min,c.max),c._majorUnit=A(c._unit),c._table=function(t,e,n,i){if("linear"===i||!t.length)return[{time:e,pos:0},{time:n,pos:1}];for(var a,o,r,s=[],l=[e],u=0,d=t.length;u<d;++u)e<(o=t[u])&&o<n&&l.push(o);for(l.push(n),u=0,d=l.length;u<d;++u)r=l[u+1],a=l[u-1],o=l[u],void 0!==a&&void 0!==r&&Math.round((r+a)/2)===o||s.push({time:o,pos:u/(d-1)});return s}(c._timestamps.data,f,g,m.distribution),c._offsets=(i=c._table,a=y,o=f,r=g,h=d=0,(s=m).offset&&a.length&&(s.time.min||(l=1<a.length?a[1]:r,u=a[0],d=(T(i,"time",l,"pos")-T(i,"time",u,"pos"))/2),s.time.max||(l=a[a.length-1],u=1<a.length?a[a.length-2]:o,h=(T(i,"time",l,"pos")-T(i,"time",u,"pos"))/2)),{left:d,right:h}),c._labelFormat=function(t,e){for(var n,i,a=t.length,o=0;o<a;o++){if(0!==(n=O(t[o],e)).millisecond())return"MMM D, YYYY h:mm:ss.SSS a";0===n.second()&&0===n.minute()&&0===n.hour()||(i=!0)}return i?"MMM D, YYYY h:mm:ss a":"MMM D, YYYY"}(c._timestamps.data,p);for(var b,x,_=y,k=c._majorUnit,w=[],M=0,S=_.length;M<S;++M)b=_[M],x=!!k&&b===+D(b).startOf(k),w.push({value:b,major:x});return w},getLabelForIndex:function(t,e){var n=this.chart.data,i=this.options.time,a=n.labels&&t<n.labels.length?n.labels[t]:"",n=n.datasets[e].data[t];return m.isObject(n)&&(a=this.getRightValue(n)),i.tooltipFormat?O(a,i).format(i.tooltipFormat):"string"==typeof a?a:O(a,i).format(this._labelFormat)},tickFormatFunction:function(t,e,n,i){var a=this.options,o=t.valueOf(),r=a.time.displayFormats,s=r[this._unit],l=this._majorUnit,r=r[l],u=t.clone().startOf(l).valueOf(),d=a.ticks.major,l=d.enabled&&l&&r&&o===u,o=t.format(i||(l?r:s)),u=l?d:a.ticks.minor,t=m.valueOrDefault(u.callback,u.userCallback);return t?t(o,e,n):o},convertTicksToLabels:function(t){for(var e=[],n=0,i=t.length;n<i;++n)e.push(this.tickFormatFunction(D(t[n].value),n,t));return e},getPixelForOffset:function(t){var e=this,n=e._horizontal?e.width:e.height,i=e._horizontal?e.left:e.top,t=T(e._table,"time",t,"pos");return i+n*(e._offsets.left+t)/(e._offsets.left+1+e._offsets.right)},getPixelForValue:function(t,e,n){var i=null;if(null!==(i=null===(i=void 0!==e&&void 0!==n?this._timestamps.datasets[n][e]:i)?I(t,this):i))return this.getPixelForOffset(i)},getPixelForTick:function(t){var e=this.getTicks();return 0<=t&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,n=e._horizontal?e.width:e.height,i=e._horizontal?e.left:e.top,t=(n?(t-i)/n:0)*(e._offsets.left+1+e._offsets.left)-e._offsets.right,i=T(e._table,"pos",t,"time");return D(i)},getLabelWidth:function(t){var e=this.options.ticks,t=this.ctx.measureText(t).width,n=m.toRadians(e.maxRotation),i=Math.cos(n),n=Math.sin(n);return t*i+m.valueOrDefault(e.fontSize,a.global.defaultFontSize)*n},getLabelCapacity:function(t){var e=this.options.time.displayFormats.millisecond,t=this.tickFormatFunction(D(t),0,[],e),e=this.getLabelWidth(t),t=this.isHorizontal()?this.width:this.height,t=Math.floor(t/e);return 0<t?t:1}});e.scaleService.registerScaleType("time",t,{position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},{25:25,45:45,6:6}]},{},[7])(7)})
\ No newline at end of file
1
+!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=t()}(function(){return function i(a,o,r){function s(n,t){if(!o[n]){if(!a[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(l)return l(n,!0);throw(t=new Error("Cannot find module '"+n+"'")).code="MODULE_NOT_FOUND",t}e=o[n]={exports:{}},a[n][0].call(e.exports,function(t){var e=a[n][1][t];return s(e||t)},e,e.exports,i,a,o,r)}return o[n].exports}for(var l="function"==typeof require&&require,t=0;t<r.length;t++)s(r[t]);return s}({1:[function(t,e,n){var o=t(5);function i(t){if(t){var e=[0,0,0],n=1;if(i=t.match(/^#([a-fA-F0-9]{3})$/i))for(var i=i[1],a=0;a<e.length;a++)e[a]=parseInt(i[a]+i[a],16);else if(i=t.match(/^#([a-fA-F0-9]{6})$/i)){i=i[1];for(a=0;a<e.length;a++)e[a]=parseInt(i.slice(2*a,2*a+2),16)}else if(i=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(a=0;a<e.length;a++)e[a]=parseInt(i[a+1]);n=parseFloat(i[4])}else if(i=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(a=0;a<e.length;a++)e[a]=Math.round(2.55*parseFloat(i[a+1]));n=parseFloat(i[4])}else if(i=t.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(e=o[i[1]]))return}for(a=0;a<e.length;a++)e[a]=d(e[a],0,255);return n=n||0==n?d(n,0,1):1,e[3]=n,e}}function a(t){var e;if(t)return(t=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/))?(e=parseFloat(t[4]),[d(parseInt(t[1]),0,360),d(parseFloat(t[2]),0,100),d(parseFloat(t[3]),0,100),d(isNaN(e)?1:e,0,1)]):void 0}function r(t){var e;if(t)return(t=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/))?(e=parseFloat(t[4]),[d(parseInt(t[1]),0,360),d(parseFloat(t[2]),0,100),d(parseFloat(t[3]),0,100),d(isNaN(e)?1:e,0,1)]):void 0}function s(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function l(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function u(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function d(t,e,n){return Math.min(Math.max(e,t),n)}function h(t){t=t.toString(16).toUpperCase();return t.length<2?"0"+t:t}e.exports={getRgba:i,getHsla:a,getRgb:function(t){t=i(t);return t&&t.slice(0,3)},getHsl:function(t){t=a(t);return t&&t.slice(0,3)},getHwb:r,getAlpha:function(t){var e=i(t);return(e=(e=e||a(t))||r(t))?e[3]:void 0},hexString:function(t){return"#"+h(t[0])+h(t[1])+h(t[2])},rgbString:function(t,e){if(e<1||t[3]&&t[3]<1)return s(t,e);return"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:s,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return l(t,e);var e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),t=Math.round(t[2]/255*100);return"rgb("+e+"%, "+n+"%, "+t+"%)"},percentaString:l,hslString:function(t,e){if(e<1||t[3]&&t[3]<1)return u(t,e);return"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:u,hwbString:function(t,e){void 0===e&&(e=void 0!==t[3]?t[3]:1);return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return f[t.slice(0,3)]}};var c,f={};for(c in o)f[o[c]]=c},{5:5}],2:[function(t,e,n){function r(t){var e;return t instanceof r?t:this instanceof r?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof t?(e=i.getRgba(t))?this.setValues("rgb",e):(e=i.getHsla(t))?this.setValues("hsl",e):(e=i.getHwb(t))&&this.setValues("hwb",e):"object"==typeof t&&(void 0!==(e=t).r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e)))):new r(t)}var d=t(4),i=t(1);(r.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t=t&&((t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return i.hexString(this.values.rgb)},rgbString:function(){return i.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return i.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return i.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return i.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return i.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return i.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return i.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((.055+i)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),t=t.luminosity();return t<e?(e+.05)/(t+.05):(t+.05)/(e+.05)},level:function(t){t=this.contrast(t);return 7.1<=t?"AAA":4.5<=t?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,t=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,t=(e[0]+t)%360;return e[0]=t<0?360+t:t,this.setValues("hsl",e),this},mix:function(t,e){var n=this,e=void 0===e?.5:e,i=2*e-1,a=n.alpha()-t.alpha(),i=(1+(i*a==-1?i:(i+a)/(1+i*a)))/2,a=1-i;return this.rgb(i*n.red()+a*t.red(),i*n.green()+a*t.green(),i*n.blue()+a*t.blue()).alpha(n.alpha()*e+t.alpha()*(1-e))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n,i=new r,a=this.values,o=i.values;for(n in a)a.hasOwnProperty(n)&&(t=a[n],"[object Array]"===(e={}.toString.call(t))?o[n]=t.slice(0):"[object Number]"===e?o[n]=t:console.error("unexpected color value:",t));return i}}).spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},r.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},r.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i<t.length;i++)n[t.charAt(i)]=e[t][i];return 1!==e.alpha&&(n.a=e.alpha),n},r.prototype.setValues=function(t,e){var n,i,a=this.values,o=this.spaces,r=this.maxes,s=1;if(this.valid=!0,"alpha"===t)s=e;else if(e.length)a[t]=e.slice(0,t.length),s=e[t.length];else if(void 0!==e[t.charAt(0)]){for(u=0;u<t.length;u++)a[t][u]=e[t.charAt(u)];s=e.a}else if(void 0!==e[o[t][0]]){for(var l=o[t],u=0;u<t.length;u++)a[t][u]=e[l[u]];s=e.alpha}if(a.alpha=Math.max(0,Math.min(1,void 0===s?a.alpha:s)),"alpha"===t)return!1;for(u=0;u<t.length;u++)n=Math.max(0,Math.min(r[t][u],a[t][u])),a[t][u]=Math.round(n);for(i in o)i!==t&&(a[i]=d[t][i](a[t]));return!0},r.prototype.setSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},r.prototype.setChannel=function(t,e,n){var i=this.values[t];return void 0===n?i[e]:(n!==i[e]&&(i[e]=n,this.setValues(t,i)),this)},"undefined"!=typeof window&&(window.Color=r),e.exports=r},{1:1,4:4}],3:[function(t,e,n){function a(t){var e,n=t[0]/255,i=t[1]/255,t=t[2]/255,a=Math.min(n,i,t),o=Math.max(n,i,t),r=o-a;return o==a?e=0:n==o?e=(i-t)/r:i==o?e=2+(t-n)/r:t==o&&(e=4+(n-i)/r),(e=Math.min(60*e,360))<0&&(e+=360),t=(a+o)/2,[e,100*(o==a?0:t<=.5?r/(o+a):r/(2-o-a)),100*t]}function i(t){var e,n=t[0],i=t[1],t=t[2],a=Math.min(n,i,t),o=Math.max(n,i,t),r=o-a,s=0==o?0:r/o*1e3/10;return o==a?e=0:n==o?e=(i-t)/r:i==o?e=2+(t-n)/r:t==o&&(e=4+(n-i)/r),(e=Math.min(60*e,360))<0&&(e+=360),[e,s,o/255*1e3/10]}function o(t){var e=t[0],n=t[1],i=t[2];return[a(t)[0],100*(1/255*Math.min(e,Math.min(n,i))),100*(1-1/255*Math.max(e,Math.max(n,i)))]}function s(t){var e=t[0]/255,n=t[1]/255,t=t[2]/255,i=Math.min(1-e,1-n,1-t);return[100*((1-e-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-t-i)/(1-i)||0),100*i]}function l(t){return D[JSON.stringify(t)]}function u(t){var e=t[0]/255,n=t[1]/255,t=t[2]/255;return[100*(.4124*(e=.04045<e?Math.pow((.055+e)/1.055,2.4):e/12.92)+.3576*(n=.04045<n?Math.pow((.055+n)/1.055,2.4):n/12.92)+.1805*(t=.04045<t?Math.pow((.055+t)/1.055,2.4):t/12.92)),100*(.2126*e+.7152*n+.0722*t),100*(.0193*e+.1192*n+.9505*t)]}function d(t){var t=u(t),e=t[0],n=t[1],t=t[2];return n/=100,t/=108.883,e=.008856<(e/=95.047)?Math.pow(e,1/3):7.787*e+16/116,[116*(n=.008856<n?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(.008856<t?Math.pow(t,1/3):7.787*t+16/116))]}function h(t){var e,n,i=t[0]/360,a=t[1]/100,t=t[2]/100;if(0==a)return[n=255*t,n,n];for(var o,r=2*t-(o=t<.5?t*(1+a):t+a-t*a),s=[0,0,0],l=0;l<3;l++)(e=i+1/3*-(l-1))<0&&e++,1<e&&e--,s[l]=255*(n=6*e<1?r+6*(o-r)*e:2*e<1?o:3*e<2?r+(o-r)*(2/3-e)*6:r);return s}function c(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,t=Math.floor(e)%6,e=e-Math.floor(e),a=255*i*(1-n),o=255*i*(1-n*e),r=255*i*(1-n*(1-e)),i=255*i;switch(t){case 0:return[i,r,a];case 1:return[o,i,a];case 2:return[a,i,r];case 3:return[a,o,i];case 4:return[r,a,i];case 5:return[i,a,o]}}function f(t){var e,n,i=t[0]/360,a=t[1]/100,t=t[2]/100,o=a+t;switch(1<o&&(a/=o,t/=o),i=6*i-(o=Math.floor(6*i)),n=a+(i=0!=(1&o)?1-i:i)*((e=1-t)-a),o){default:case 6:case 0:r=e,g=n,b=a;break;case 1:r=n,g=e,b=a;break;case 2:r=a,g=e,b=n;break;case 3:r=a,g=n,b=e;break;case 4:r=n,g=a,b=e;break;case 5:r=e,g=a,b=n}return[255*r,255*g,255*b]}function m(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,t=t[3]/100;return[255*(1-Math.min(1,e*(1-t)+t)),255*(1-Math.min(1,n*(1-t)+t)),255*(1-Math.min(1,i*(1-t)+t))]}function p(t){var e=t[0]/100,n=t[1]/100,t=t[2]/100,i=3.2406*e+-1.5372*n+-.4986*t,a=-.9689*e+1.8758*n+.0415*t,e=.0557*e+-.204*n+1.057*t;return i=.0031308<i?1.055*Math.pow(i,1/2.4)-.055:12.92*i,a=.0031308<a?1.055*Math.pow(a,1/2.4)-.055:12.92*a,e=.0031308<e?1.055*Math.pow(e,1/2.4)-.055:12.92*e,[255*(i=Math.min(Math.max(0,i),1)),255*(a=Math.min(Math.max(0,a),1)),255*(e=Math.min(Math.max(0,e),1))]}function v(t){var e=t[0],n=t[1],t=t[2];return n/=100,t/=108.883,e=.008856<(e/=95.047)?Math.pow(e,1/3):7.787*e+16/116,[116*(n=.008856<n?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(.008856<t?Math.pow(t,1/3):7.787*t+16/116))]}function y(t){var e,n=t[0],i=t[1],t=t[2],n=n<=8?(e=100*n/903.3)/100*7.787+16/116:(e=100*Math.pow((n+16)/116,3),Math.pow(e/100,1/3)),a=a/95.047<=.008856?95.047*(i/500+n-16/116)/7.787:95.047*Math.pow(i/500+n,3),o=o/108.883<=.008859?108.883*(n-t/200-16/116)/7.787:108.883*Math.pow(n-t/200,3);return[a,e,o]}function x(t){var e=t[0],n=t[1],t=t[2],i=360*Math.atan2(t,n)/2/Math.PI;return i<0&&(i+=360),[e,Math.sqrt(n*n+t*t),i]}function _(t){return p(y(t))}function k(t){var e=t[0],n=t[1],t=t[2]/360*2*Math.PI;return[e,n*Math.cos(t),n*Math.sin(t)]}function w(t){return S[t]}e.exports={rgb2hsl:a,rgb2hsv:i,rgb2hwb:o,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:d,rgb2lch:function(t){return x(d(t))},hsl2rgb:h,hsl2hsv:function(t){var e=t[0],n=t[1]/100,t=t[2]/100;return 0!=t?[e,100*(2*(n*=(t*=2)<=1?t:2-t)/(t+n)),100*((t+n)/2)]:[0,0,0]},hsl2hwb:function(t){return o(h(t))},hsl2cmyk:function(t){return s(h(t))},hsl2keyword:function(t){return l(h(t))},hsv2rgb:c,hsv2hsl:function(t){var e,n=t[0],i=t[1]/100,t=t[2]/100;return e=i*t,[n,100*(e=(e/=(n=(2-i)*t)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(t){return o(c(t))},hsv2cmyk:function(t){return s(c(t))},hsv2keyword:function(t){return l(c(t))},hwb2rgb:f,hwb2hsl:function(t){return a(f(t))},hwb2hsv:function(t){return i(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:m,cmyk2hsl:function(t){return a(m(t))},cmyk2hsv:function(t){return i(m(t))},cmyk2hwb:function(t){return o(m(t))},cmyk2keyword:function(t){return l(m(t))},keyword2rgb:w,keyword2hsl:function(t){return a(w(t))},keyword2hsv:function(t){return i(w(t))},keyword2hwb:function(t){return o(w(t))},keyword2cmyk:function(t){return s(w(t))},keyword2lab:function(t){return d(w(t))},keyword2xyz:function(t){return u(w(t))},xyz2rgb:p,xyz2lab:v,xyz2lch:function(t){return x(v(t))},lab2xyz:y,lab2rgb:_,lab2lch:x,lch2lab:k,lch2xyz:function(t){return y(k(t))},lch2rgb:function(t){return _(k(t))}};var M,S={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},D={};for(M in S)D[JSON.stringify(S[M])]=M},{}],4:[function(t,e,n){function a(){return new l}var i,o=t(3);for(i in o){a[i+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),o[e](t)}}(i);var r=/(\w+)2(\w+)/.exec(i),s=r[1],r=r[2];(a[s]=a[s]||{})[r]=a[i]=function(i){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var e=o[i](t);if("string"!=typeof e&&void 0!==e)for(var n=0;n<e.length;n++)e[n]=Math.round(e[n]);return e}}(i)}var l=function(){this.convs={}};l.prototype.routeSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n))},l.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},l.prototype.getValues=function(t){var e,n,i=this.convs[t];return i||(e=this.space,n=this.convs[e],i=a[e][t](n),this.convs[t]=i),i},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){l.prototype[e]=function(t){return this.routeSpace(e,arguments)}}),e.exports=a},{3:3}],5:[function(t,e,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],6:[function(xn,_n,t){var e,n;e=this,n=function(){"use strict";var Y;function f(){return Y.apply(null,arguments)}function h(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function W(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function c(t){return void 0===t}function N(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function z(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function H(t,e){for(var n=[],i=0;i<t.length;++i)n.push(e(t[i],i));return n}function g(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function m(t,e){for(var n in e)g(e,n)&&(t[n]=e[n]);return g(e,"toString")&&(t.toString=e.toString),g(e,"valueOf")&&(t.valueOf=e.valueOf),t}function u(t,e,n,i){return Ie(t,e,n,i,!0).utc()}function p(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function V(t){if(null==t._isValid){var e=p(t),n=E.call(e.parsedDateParts,function(t){return null!=t}),n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function B(t){var e=u(NaN);return null!=t?m(p(e),t):p(e).userInvalidated=!0,e}var E=Array.prototype.some||function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1},j=f.momentProperties=[];function U(t,e){var n,i,a;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=p(e)),c(e._locale)||(t._locale=e._locale),0<j.length)for(n=0;n<j.length;n++)c(a=e[i=j[n]])||(t[i]=a);return t}var q=!1;function G(t){U(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===q&&(q=!0,f.updateOffset(this),q=!1)}function v(t){return t instanceof G||null!=t&&null!=t._isAMomentObject}function d(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function y(t){var t=+t,e=0;return e=0!=t&&isFinite(t)?d(t):e}function Z(t,e,n){for(var i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0,r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&y(t[r])!==y(e[r]))&&o++;return o+a}function X(t){!1===f.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function t(a,o){var r=!0;return m(function(){if(null!=f.deprecationHandler&&f.deprecationHandler(null,a),r){for(var t,e=[],n=0;n<arguments.length;n++){if(t="","object"==typeof arguments[n]){for(var i in t+="\n["+n+"] ",arguments[0])t+=i+": "+arguments[0][i]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}X(a+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),r=!1}return o.apply(this,arguments)},o)}var J={};function K(t,e){null!=f.deprecationHandler&&f.deprecationHandler(t,e),J[t]||(X(e),J[t]=!0)}function r(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function $(t,e){var n,i=m({},t);for(n in e)g(e,n)&&(W(t[n])&&W(e[n])?(i[n]={},m(i[n],t[n]),m(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)g(t,n)&&!g(e,n)&&W(t[n])&&(i[n]=m({},i[n]));return i}function Q(t){null!=t&&this.set(t)}f.suppressDeprecationWarnings=!1,f.deprecationHandler=null;var tt=Object.keys||function(t){var e,n=[];for(e in t)g(t,e)&&n.push(e);return n};var et={};function e(t,e){var n=t.toLowerCase();et[n]=et[n+"s"]=et[e]=t}function s(t){return"string"==typeof t?et[t]||et[t.toLowerCase()]:void 0}function nt(t){var e,n,i={};for(n in t)g(t,n)&&(e=s(n))&&(i[e]=t[n]);return i}var it={};function n(t,e){it[t]=e}function o(t,e,n){var i=""+Math.abs(t);return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,e-i.length)).toString().substr(1)+i}var at=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ot=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,rt={},st={};function i(t,e,n,i){var a="string"==typeof i?function(){return this[i]()}:i;t&&(st[t]=a),e&&(st[e[0]]=function(){return o(a.apply(this,arguments),e[1],e[2])}),n&&(st[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function lt(t,e){return t.isValid()?(e=ut(e,t.localeData()),rt[e]=rt[e]||function(i){for(var t,a=i.match(at),e=0,o=a.length;e<o;e++)st[a[e]]?a[e]=st[a[e]]:a[e]=(t=a[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var e="",n=0;n<o;n++)e+=r(a[n])?a[n].call(t,i):a[n];return e}}(e),rt[e](t)):t.localeData().invalidDate()}function ut(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(ot.lastIndex=0;0<=n&&ot.test(t);)t=t.replace(ot,i),ot.lastIndex=0,--n;return t}var a=/\d/,l=/\d\d/,dt=/\d{3}/,ht=/\d{4}/,ct=/[+-]?\d{6}/,b=/\d\d?/,ft=/\d\d\d\d?/,gt=/\d\d\d\d\d\d?/,mt=/\d{1,3}/,pt=/\d{1,4}/,vt=/[+-]?\d{1,6}/,yt=/\d+/,bt=/[+-]?\d+/,xt=/Z|[+-]\d\d:?\d\d/gi,_t=/Z|[+-]\d\d(?::?\d\d)?/gi,x=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,kt={};function _(t,n,i){kt[t]=r(n)?n:function(t,e){return t&&i?i:n}}function wt(t,e){return g(kt,t)?kt[t](e._strict,e._locale):new RegExp(Mt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,a){return e||n||i||a})))}function Mt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var St={};function k(t,n){var e,i=n;for("string"==typeof t&&(t=[t]),N(n)&&(i=function(t,e){e[n]=y(t)}),e=0;e<t.length;e++)St[t[e]]=i}function Dt(t,a){k(t,function(t,e,n,i){n._w=n._w||{},a(t,n._w,n,i)})}var w=0,M=1,S=2,D=3,C=4,P=5,Ct=6,Pt=7,Tt=8;function Ot(t){return It(t)?366:365}function It(t){return t%4==0&&t%100!=0||t%400==0}i("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),i(0,["YY",2],0,function(){return this.year()%100}),i(0,["YYYY",4],0,"year"),i(0,["YYYYY",5],0,"year"),i(0,["YYYYYY",6,!0],0,"year"),e("year","y"),n("year",1),_("Y",bt),_("YY",b,l),_("YYYY",pt,ht),_("YYYYY",vt,ct),_("YYYYYY",vt,ct),k(["YYYYY","YYYYYY"],w),k("YYYY",function(t,e){e[w]=2===t.length?f.parseTwoDigitYear(t):y(t)}),k("YY",function(t,e){e[w]=f.parseTwoDigitYear(t)}),k("Y",function(t,e){e[w]=parseInt(t,10)}),f.parseTwoDigitYear=function(t){return y(t)+(68<y(t)?1900:2e3)};var T,At=Ft("FullYear",!0);function Ft(e,n){return function(t){return null!=t?(Lt(this,e,t),f.updateOffset(this,n),this):Rt(this,e)}}function Rt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Lt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&It(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Yt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Yt(t,e){var n;return isNaN(t)||isNaN(e)?NaN:(n=(e%(n=12)+n)%n,t+=(e-n)/12,1==n?It(t)?29:28:31-n%7%2)}T=Array.prototype.indexOf||function(t){for(var e=0;e<this.length;++e)if(this[e]===t)return e;return-1},i("M",["MM",2],"Mo",function(){return this.month()+1}),i("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),i("MMMM",0,0,function(t){return this.localeData().months(this,t)}),e("month","M"),n("month",8),_("M",b),_("MM",b,l),_("MMM",function(t,e){return e.monthsShortRegex(t)}),_("MMMM",function(t,e){return e.monthsRegex(t)}),k(["M","MM"],function(t,e){e[M]=y(t)-1}),k(["MMM","MMMM"],function(t,e,n,i){i=n._locale.monthsParse(t,i,n._strict);null!=i?e[M]=i:p(n).invalidMonth=t});var Wt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Nt="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var zt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Ht(t,e){var n;if(t.isValid()){if("string"==typeof e)if(/^\d+$/.test(e))e=y(e);else if(!N(e=t.localeData().monthsParse(e)))return;n=Math.min(t.date(),Yt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n)}}function Vt(t){return null!=t?(Ht(this,t),f.updateOffset(this,!0),this):Rt(this,"Month")}var Bt=x;var Et=x;function jt(){function t(t,e){return e.length-t.length}for(var e,n=[],i=[],a=[],o=0;o<12;o++)e=u([2e3,o]),n.push(this.monthsShort(e,"")),i.push(this.months(e,"")),a.push(this.months(e,"")),a.push(this.monthsShort(e,""));for(n.sort(t),i.sort(t),a.sort(t),o=0;o<12;o++)n[o]=Mt(n[o]),i[o]=Mt(i[o]);for(o=0;o<24;o++)a[o]=Mt(a[o]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Ut(t,e,n,i,a,o,r){e=new Date(t,e,n,i,a,o,r);return t<100&&0<=t&&isFinite(e.getFullYear())&&e.setFullYear(t),e}function qt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&0<=t&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Gt(t,e,n){n=7+e-n;return n-(7+qt(t,0,n).getUTCDay()-e)%7-1}function Zt(t,e,n,i,a){var o,e=1+7*(e-1)+(7+n-i)%7+Gt(t,i,a),n=e<=0?Ot(o=t-1)+e:e>Ot(t)?(o=t+1,e-Ot(t)):(o=t,e);return{year:o,dayOfYear:n}}function Xt(t,e,n){var i,a,o=Gt(t.year(),e,n),o=Math.floor((t.dayOfYear()-o-1)/7)+1;return o<1?i=o+Jt(a=t.year()-1,e,n):o>Jt(t.year(),e,n)?(i=o-Jt(t.year(),e,n),a=t.year()+1):(a=t.year(),i=o),{week:i,year:a}}function Jt(t,e,n){var i=Gt(t,e,n),e=Gt(t+1,e,n);return(Ot(t)-i+e)/7}i("w",["ww",2],"wo","week"),i("W",["WW",2],"Wo","isoWeek"),e("week","w"),e("isoWeek","W"),n("week",5),n("isoWeek",5),_("w",b),_("ww",b,l),_("W",b),_("WW",b,l),Dt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=y(t)});i("d",0,"do","day"),i("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),i("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),i("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),i("e",0,0,"weekday"),i("E",0,0,"isoWeekday"),e("day","d"),e("weekday","e"),e("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),_("d",b),_("e",b),_("E",b),_("dd",function(t,e){return e.weekdaysMinRegex(t)}),_("ddd",function(t,e){return e.weekdaysShortRegex(t)}),_("dddd",function(t,e){return e.weekdaysRegex(t)}),Dt(["dd","ddd","dddd"],function(t,e,n,i){i=n._locale.weekdaysParse(t,i,n._strict);null!=i?e.d=i:p(n).invalidWeekday=t}),Dt(["d","e","E"],function(t,e,n,i){e[i]=y(t)});var Kt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var $t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var te=x;var ee=x;var ne=x;function ie(){function t(t,e){return e.length-t.length}for(var e,n,i,a=[],o=[],r=[],s=[],l=0;l<7;l++)i=u([2e3,1]).day(l),e=this.weekdaysMin(i,""),n=this.weekdaysShort(i,""),i=this.weekdays(i,""),a.push(e),o.push(n),r.push(i),s.push(e),s.push(n),s.push(i);for(a.sort(t),o.sort(t),r.sort(t),s.sort(t),l=0;l<7;l++)o[l]=Mt(o[l]),r[l]=Mt(r[l]),s[l]=Mt(s[l]);this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ae(){return this.hours()%12||12}function oe(t,e){i(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function re(t,e){return e._meridiemParse}i("H",["HH",2],0,"hour"),i("h",["hh",2],0,ae),i("k",["kk",2],0,function(){return this.hours()||24}),i("hmm",0,0,function(){return""+ae.apply(this)+o(this.minutes(),2)}),i("hmmss",0,0,function(){return""+ae.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),i("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),i("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),oe("a",!0),oe("A",!1),e("hour","h"),n("hour",13),_("a",re),_("A",re),_("H",b),_("h",b),_("k",b),_("HH",b,l),_("hh",b,l),_("kk",b,l),_("hmm",ft),_("hmmss",gt),_("Hmm",ft),_("Hmmss",gt),k(["H","HH"],D),k(["k","kk"],function(t,e,n){t=y(t);e[D]=24===t?0:t}),k(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),k(["h","hh"],function(t,e,n){e[D]=y(t),p(n).bigHour=!0}),k("hmm",function(t,e,n){var i=t.length-2;e[D]=y(t.substr(0,i)),e[C]=y(t.substr(i)),p(n).bigHour=!0}),k("hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[D]=y(t.substr(0,i)),e[C]=y(t.substr(i,2)),e[P]=y(t.substr(a)),p(n).bigHour=!0}),k("Hmm",function(t,e,n){var i=t.length-2;e[D]=y(t.substr(0,i)),e[C]=y(t.substr(i))}),k("Hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[D]=y(t.substr(0,i)),e[C]=y(t.substr(i,2)),e[P]=y(t.substr(a))});var se,x=Ft("Hours",!0),le={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,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"},months:Nt,monthsShort:zt,week:{dow:0,doy:6},weekdays:Kt,weekdaysMin:Qt,weekdaysShort:$t,meridiemParse:/[ap]\.?m?\.?/i},O={},ue={};function de(t){return t&&t.toLowerCase().replace("_","-")}function he(t){if(!O[t]&&void 0!==_n&&_n&&_n.exports)try{var e=se._abbr;xn("./locale/"+t),ce(e)}catch(t){}return O[t]}function ce(t,e){return(se=t&&(t=c(e)?ge(t):fe(t,e))?t:se)._abbr}function fe(t,e){if(null===e)return delete O[t],null;var n=le;if(e.abbr=t,null!=O[t])K("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=O[t]._config;else if(null!=e.parentLocale){if(null==O[e.parentLocale])return ue[e.parentLocale]||(ue[e.parentLocale]=[]),ue[e.parentLocale].push({name:t,config:e}),null;n=O[e.parentLocale]._config}return O[t]=new Q($(n,e)),ue[t]&&ue[t].forEach(function(t){fe(t.name,t.config)}),ce(t),O[t]}function ge(t){var e;if(!(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t))return se;if(!h(t)){if(e=he(t))return e;t=[t]}for(var n,i,a,o,r=t,s=0;s<r.length;){for(n=(o=de(r[s]).split("-")).length,i=(i=de(r[s+1]))?i.split("-"):null;0<n;){if(a=he(o.slice(0,n).join("-")))return a;if(i&&i.length>=n&&Z(o,i,!0)>=n-1)break;n--}s++}return null}function me(t){var e=t._a;return e&&-2===p(t).overflow&&(e=e[M]<0||11<e[M]?M:e[S]<1||e[S]>Yt(e[w],e[M])?S:e[D]<0||24<e[D]||24===e[D]&&(0!==e[C]||0!==e[P]||0!==e[Ct])?D:e[C]<0||59<e[C]?C:e[P]<0||59<e[P]?P:e[Ct]<0||999<e[Ct]?Ct:-1,p(t)._overflowDayOfYear&&(e<w||S<e)&&(e=S),p(t)._overflowWeeks&&-1===e&&(e=Pt),p(t)._overflowWeekday&&-1===e&&(e=Tt),p(t).overflow=e),t}function pe(t,e,n){return null!=t?t:null!=e?e:n}function ve(t){var e,n,i,a,o,r,s,l,u,d,h,c=[];if(!t._d){for(i=t,a=new Date(f.now()),n=i._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()],t._w&&null==t._a[S]&&null==t._a[M]&&(null!=(a=(i=t)._w).GG||null!=a.W||null!=a.E?(l=1,u=4,o=pe(a.GG,i._a[w],Xt(I(),1,4).year),r=pe(a.W,1),((s=pe(a.E,1))<1||7<s)&&(d=!0)):(l=i._locale._week.dow,u=i._locale._week.doy,h=Xt(I(),l,u),o=pe(a.gg,i._a[w],h.year),r=pe(a.w,h.week),null!=a.d?((s=a.d)<0||6<s)&&(d=!0):null!=a.e?(s=a.e+l,(a.e<0||6<a.e)&&(d=!0)):s=l),r<1||r>Jt(o,l,u)?p(i)._overflowWeeks=!0:null!=d?p(i)._overflowWeekday=!0:(h=Zt(o,r,s,l,u),i._a[w]=h.year,i._dayOfYear=h.dayOfYear)),null!=t._dayOfYear&&(a=pe(t._a[w],n[w]),(t._dayOfYear>Ot(a)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),d=qt(a,0,t._dayOfYear),t._a[M]=d.getUTCMonth(),t._a[S]=d.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=c[e]=n[e];for(;e<7;e++)t._a[e]=c[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[D]&&0===t._a[C]&&0===t._a[P]&&0===t._a[Ct]&&(t._nextDay=!0,t._a[D]=0),t._d=(t._useUTC?qt:Ut).apply(null,c),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[D]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(p(t).weekdayMismatch=!0)}}var ye=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,be=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xe=/Z|[+-]\d\d(?::?\d\d)?/,_e=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ke=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],we=/^\/?Date\((\-?\d+)/i;function Me(t){var e,n,i,a,o,r,s=t._i,l=ye.exec(s)||be.exec(s);if(l){for(p(t).iso=!0,e=0,n=_e.length;e<n;e++)if(_e[e][1].exec(l[1])){a=_e[e][0],i=!1!==_e[e][2];break}if(null==a)t._isValid=!1;else{if(l[3]){for(e=0,n=ke.length;e<n;e++)if(ke[e][1].exec(l[3])){o=(l[2]||" ")+ke[e][0];break}if(null==o)return void(t._isValid=!1)}if(i||null==o){if(l[4]){if(!xe.exec(l[4]))return void(t._isValid=!1);r="Z"}t._f=a+(o||"")+(r||""),Te(t)}else t._isValid=!1}}else t._isValid=!1}var Se=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function De(t,e,n,i,a,o){t=[function(t){t=parseInt(t,10);{if(t<=49)return 2e3+t;if(t<=999)return 1900+t}return t}(t),zt.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(a,10)];return o&&t.push(parseInt(o,10)),t}var Ce={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pe(t){var e,n,i=Se.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());i?(e=De(i[4],i[3],i[2],i[5],i[6],i[7]),function(t,e,n){if(!t||$t.indexOf(t)===new Date(e[0],e[1],e[2]).getDay())return 1;p(n).weekdayMismatch=!0,n._isValid=!1}(i[1],e,t)&&(t._a=e,t._tzm=(e=i[8],n=i[9],i=i[10],e?Ce[e]:n?0:60*(((e=parseInt(i,10))-(n=e%100))/100)+n),t._d=qt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0)):t._isValid=!1}function Te(t){if(t._f===f.ISO_8601)Me(t);else if(t._f===f.RFC_2822)Pe(t);else{t._a=[],p(t).empty=!0;for(var e,n,i,a,o,r=""+t._i,s=r.length,l=0,u=ut(t._f,t._locale).match(at)||[],d=0;d<u.length;d++)n=u[d],(e=(r.match(wt(n,t))||[])[0])&&(0<(i=r.substr(0,r.indexOf(e))).length&&p(t).unusedInput.push(i),r=r.slice(r.indexOf(e)+e.length),l+=e.length),st[n]?(e?p(t).empty=!1:p(t).unusedTokens.push(n),i=n,o=t,null!=(a=e)&&g(St,i)&&St[i](a,o._a,o,i)):t._strict&&!e&&p(t).unusedTokens.push(n);p(t).charsLeftOver=s-l,0<r.length&&p(t).unusedInput.push(r),t._a[D]<=12&&!0===p(t).bigHour&&0<t._a[D]&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[D]=function(t,e,n){if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((t=t.isPM(n))&&e<12&&(e+=12),e=t||12!==e?e:0):e}(t._locale,t._a[D],t._meridiem),ve(t),me(t)}}function Oe(t){var e,n,i=t._i,a=t._f;if(t._locale=t._locale||ge(t._l),null===i||void 0===a&&""===i)return B({nullInput:!0});if("string"==typeof i&&(t._i=i=t._locale.preparse(i)),v(i))return new G(me(i));if(z(i))t._d=i;else if(h(a)){var o,r,s,l,u,d=t;if(0===d._f.length)p(d).invalidFormat=!0,d._d=new Date(NaN);else{for(l=0;l<d._f.length;l++)u=0,o=U({},d),null!=d._useUTC&&(o._useUTC=d._useUTC),o._f=d._f[l],Te(o),V(o)&&(u=(u+=p(o).charsLeftOver)+10*p(o).unusedTokens.length,p(o).score=u,null==s||u<s)&&(s=u,r=o);m(d,r||o)}}else if(a)Te(t);else if(c(a=(i=t)._i))i._d=new Date(f.now());else z(a)?i._d=new Date(a.valueOf()):"string"==typeof a?(n=i,null!==(e=we.exec(n._i))?n._d=new Date(+e[1]):(Me(n),!1===n._isValid&&(delete n._isValid,Pe(n),!1===n._isValid)&&(delete n._isValid,f.createFromInputFallback(n)))):h(a)?(i._a=H(a.slice(0),function(t){return parseInt(t,10)}),ve(i)):W(a)?(e=i)._d||(n=nt(e._i),e._a=H([n.year,n.month,n.day||n.date,n.hour,n.minute,n.second,n.millisecond],function(t){return t&&parseInt(t,10)}),ve(e)):N(a)?i._d=new Date(a):f.createFromInputFallback(i);return V(t)||(t._d=null),t}function Ie(t,e,n,i,a){var o={};return!0!==n&&!1!==n||(i=n,n=void 0),(W(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(var e in t)if(t.hasOwnProperty(e))return;return 1}(t)||h(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=a,o._l=n,o._i=t,o._f=e,o._strict=i,(a=new G(me(Oe(a=o))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function I(t,e,n,i){return Ie(t,e,n,i,!1)}f.createFromInputFallback=t("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),f.ISO_8601=function(){},f.RFC_2822=function(){};ft=t("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=I.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:B()}),gt=t("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=I.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:B()});function Ae(t,e){var n,i;if(!(e=1===e.length&&h(e[0])?e[0]:e).length)return I();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Fe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Re(t){var t=nt(t),e=t.year||0,n=t.quarter||0,i=t.month||0,a=t.week||0,o=t.day||0,r=t.hour||0,s=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===T.call(Fe,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Fe.length;++i)if(t[Fe[i]]){if(n)return!1;parseFloat(t[Fe[i]])!==y(t[Fe[i]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*l+6e4*s+1e3*r*60*60,this._days=+o+7*a,this._months=+i+3*n+12*e,this._data={},this._locale=ge(),this._bubble()}function Le(t){return t instanceof Re}function Ye(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function We(t,n){i(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+o(~~(t/60),2)+n+o(~~t%60,2)})}We("Z",":"),We("ZZ",""),_("Z",_t),_("ZZ",_t),k(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=ze(_t,t)});var Ne=/([\+\-]|\d\d)/gi;function ze(t,e){var e=(e||"").match(t);return null===e?null:0===(e=60*(t=((e[e.length-1]||[])+"").match(Ne)||["-",0,0])[1]+y(t[2]))?0:"+"===t[0]?e:-e}function He(t,e){var n;return e._isUTC?(e=e.clone(),n=(v(t)||z(t)?t:I(t)).valueOf()-e.valueOf(),e._d.setTime(e._d.valueOf()+n),f.updateOffset(e,!1),e):I(t).local()}function Ve(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Be(){return!!this.isValid()&&this._isUTC&&0===this._offset}f.updateOffset=function(){};var Ee=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,je=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function A(t,e){var n,i=t;return Le(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:N(t)?(i={},e?i[e]=t:i.milliseconds=t):(e=Ee.exec(t))?(n="-"===e[1]?-1:1,i={y:0,d:y(e[S])*n,h:y(e[D])*n,m:y(e[C])*n,s:y(e[P])*n,ms:y(Ye(1e3*e[Ct]))*n}):(e=je.exec(t))?(n="-"===e[1]?-1:(e[1],1),i={y:Ue(e[2],n),M:Ue(e[3],n),w:Ue(e[4],n),d:Ue(e[5],n),h:Ue(e[6],n),m:Ue(e[7],n),s:Ue(e[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(e=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=He(e,t),t.isBefore(e)?n=qe(t,e):((n=qe(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(I(i.from),I(i.to)),(i={}).ms=e.milliseconds,i.M=e.months),n=new Re(i),Le(t)&&g(t,"_locale")&&(n._locale=t._locale),n}function Ue(t,e){t=t&&parseFloat(t.replace(",","."));return(isNaN(t)?0:t)*e}function qe(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ge(i,a){return function(t,e){var n;return null===e||isNaN(+e)||(K(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),Ze(this,A(t="string"==typeof t?+t:t,e),i),this}}function Ze(t,e,n,i){var a=e._milliseconds,o=Ye(e._days),e=Ye(e._months);t.isValid()&&(i=null==i||i,e&&Ht(t,Rt(t,"Month")+e*n),o&&Lt(t,"Date",Rt(t,"Date")+o*n),a&&t._d.setTime(t._d.valueOf()+a*n),i)&&f.updateOffset(t,o||e)}A.fn=Re.prototype,A.invalid=function(){return A(NaN)};Nt=Ge(1,"add"),Kt=Ge(-1,"subtract");function Xe(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months"),e=e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(1+n,"months")-i);return-(n+e)||0}function Je(t){return void 0===t?this._locale._abbr:(null!=(t=ge(t))&&(this._locale=t),this)}f.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",f.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qt=t("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function Ke(){return this._locale}function $e(t,e){i(0,[t,t.length],0,e)}function Qe(t,e,n,i,a){var o;return null==t?Xt(this,i,a).year:(o=Jt(t,i,a),function(t,e,n,i,a){t=Zt(t,e,n,i,a),e=qt(t.year,0,t.dayOfYear);return this.year(e.getUTCFullYear()),this.month(e.getUTCMonth()),this.date(e.getUTCDate()),this}.call(this,t,e=o<e?o:e,n,i,a))}i(0,["gg",2],0,function(){return this.weekYear()%100}),i(0,["GG",2],0,function(){return this.isoWeekYear()%100}),$e("gggg","weekYear"),$e("ggggg","weekYear"),$e("GGGG","isoWeekYear"),$e("GGGGG","isoWeekYear"),e("weekYear","gg"),e("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),_("G",bt),_("g",bt),_("GG",b,l),_("gg",b,l),_("GGGG",pt,ht),_("gggg",pt,ht),_("GGGGG",vt,ct),_("ggggg",vt,ct),Dt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=y(t)}),Dt(["gg","GG"],function(t,e,n,i){e[i]=f.parseTwoDigitYear(t)}),i("Q",0,"Qo","quarter"),e("quarter","Q"),n("quarter",7),_("Q",a),k("Q",function(t,e){e[M]=3*(y(t)-1)}),i("D",["DD",2],"Do","date"),e("date","D"),n("date",9),_("D",b),_("DD",b,l),_("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),k(["D","DD"],S),k("Do",function(t,e){e[S]=y(t.match(b)[0])});pt=Ft("Date",!0);i("DDD",["DDDD",3],"DDDo","dayOfYear"),e("dayOfYear","DDD"),n("dayOfYear",4),_("DDD",mt),_("DDDD",dt),k(["DDD","DDDD"],function(t,e,n){n._dayOfYear=y(t)}),i("m",["mm",2],0,"minute"),e("minute","m"),n("minute",14),_("m",b),_("mm",b,l),k(["m","mm"],C);var tn,ht=Ft("Minutes",!1),vt=(i("s",["ss",2],0,"second"),e("second","s"),n("second",15),_("s",b),_("ss",b,l),k(["s","ss"],P),Ft("Seconds",!1));for(i("S",0,0,function(){return~~(this.millisecond()/100)}),i(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),i(0,["SSS",3],0,"millisecond"),i(0,["SSSS",4],0,function(){return 10*this.millisecond()}),i(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),i(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),i(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),i(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),i(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),e("millisecond","ms"),n("millisecond",16),_("S",mt,a),_("SS",mt,l),_("SSS",mt,dt),tn="SSSS";tn.length<=9;tn+="S")_(tn,yt);function en(t,e){e[Ct]=y(1e3*("0."+t))}for(tn="S";tn.length<=9;tn+="S")k(tn,en);ct=Ft("Milliseconds",!1);i("z",0,0,"zoneAbbr"),i("zz",0,0,"zoneName");a=G.prototype;function nn(t){return t}a.add=Nt,a.calendar=function(t,e){var n=He(t=t||I(),this).startOf("day"),n=f.calendarFormat(this,n)||"sameElse",e=e&&(r(e[n])?e[n].call(this,t):e[n]);return this.format(e||this.localeData().calendar(n,this,I(t)))},a.clone=function(){return new G(this)},a.diff=function(t,e,n){var i,a,o;if(!this.isValid())return NaN;if(!(i=He(t,this)).isValid())return NaN;switch(a=6e4*(i.utcOffset()-this.utcOffset()),e=s(e)){case"year":o=Xe(this,i)/12;break;case"month":o=Xe(this,i);break;case"quarter":o=Xe(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-a)/864e5;break;case"week":o=(this-i-a)/6048e5;break;default:o=this-i}return n?o:d(o)},a.endOf=function(t){return void 0===(t=s(t))||"millisecond"===t?this:this.startOf(t="date"===t?"day":t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")},a.format=function(t){return t=t||(this.isUtc()?f.defaultFormatUtc:f.defaultFormat),t=lt(this,t),this.localeData().postformat(t)},a.from=function(t,e){return this.isValid()&&(v(t)&&t.isValid()||I(t).isValid())?A({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},a.fromNow=function(t){return this.from(I(),t)},a.to=function(t,e){return this.isValid()&&(v(t)&&t.isValid()||I(t).isValid())?A({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},a.toNow=function(t){return this.to(I(),t)},a.get=function(t){return r(this[t=s(t)])?this[t]():this},a.invalidAt=function(){return p(this).overflow},a.isAfter=function(t,e){return t=v(t)?t:I(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=s(c(e)?"millisecond":e))?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf())},a.isBefore=function(t,e){return t=v(t)?t:I(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=s(c(e)?"millisecond":e))?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf())},a.isBetween=function(t,e,n,i){return("("===(i=i||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===i[1]?this.isBefore(e,n):!this.isAfter(e,n))},a.isSame=function(t,e){var t=v(t)?t:I(t);return!(!this.isValid()||!t.isValid())&&("millisecond"===(e=s(e||"millisecond"))?this.valueOf()===t.valueOf():(t=t.valueOf(),this.clone().startOf(e).valueOf()<=t&&t<=this.clone().endOf(e).valueOf()))},a.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},a.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},a.isValid=function(){return V(this)},a.lang=Qt,a.locale=Je,a.localeData=Ke,a.max=gt,a.min=ft,a.parsingFlags=function(){return m({},p(this))},a.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e,n=[];for(e in t)n.push({unit:e,priority:it[e]});return n.sort(function(t,e){return t.priority-e.priority}),n}(t=nt(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(r(this[t=s(t)]))return this[t](e);return this},a.startOf=function(t){switch(t=s(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},a.subtract=Kt,a.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},a.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},a.toDate=function(){return new Date(this.valueOf())},a.toISOString=function(t){var e;return this.isValid()?(e=(t=!0!==t)?this.clone().utc():this).year()<0||9999<e.year()?lt(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):r(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",lt(e,"Z")):lt(e,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},a.inspect=function(){var t,e,n;return this.isValid()?(e="moment",t="",this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z"),e="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+n+"-MM-DD[T]HH:mm:ss.SSS"+(t+'[")]'))):"moment.invalid(/* "+this._i+" */)"},a.toJSON=function(){return this.isValid()?this.toISOString():null},a.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},a.unix=function(){return Math.floor(this.valueOf()/1e3)},a.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},a.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},a.year=At,a.isLeapYear=function(){return It(this.year())},a.weekYear=function(t){return Qe.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},a.isoWeekYear=function(t){return Qe.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},a.quarter=a.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},a.month=Vt,a.daysInMonth=function(){return Yt(this.year(),this.month())},a.week=a.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},a.isoWeek=a.isoWeeks=function(t){var e=Xt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},a.weeksInYear=function(){var t=this.localeData()._week;return Jt(this.year(),t.dow,t.doy)},a.isoWeeksInYear=function(){return Jt(this.year(),1,4)},a.date=pt,a.day=a.days=function(t){var e,n,i;return this.isValid()?(e=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=t?(n=t,i=this.localeData(),t="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=i.weekdaysParse(n))?n:null:parseInt(n,10),this.add(t-e,"d")):e):null!=t?this:NaN},a.weekday=function(t){var e;return this.isValid()?(e=(this.day()+7-this.localeData()._week.dow)%7,null==t?e:this.add(t-e,"d")):null!=t?this:NaN},a.isoWeekday=function(t){var e,n;return this.isValid()?null!=t?(e=t,n=this.localeData(),n="string"==typeof e?n.weekdaysParse(e)%7||7:isNaN(e)?null:e,this.day(this.day()%7?n:n-7)):this.day()||7:null!=t?this:NaN},a.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},a.hour=a.hours=x,a.minute=a.minutes=ht,a.second=a.seconds=vt,a.millisecond=a.milliseconds=ct,a.utcOffset=function(t,e,n){var i,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?a:Ve(this);if("string"==typeof t){if(null===(t=ze(_t,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=Ve(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!e||this._changeInProgress?Ze(this,A(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,f.updateOffset(this,!0),this._changeInProgress=null)),this},a.utc=function(t){return this.utcOffset(0,t)},a.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t)&&this.subtract(Ve(this),"m"),this},a.parseZone=function(){var t;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(t=ze(xt,this._i))?this.utcOffset(t):this.utcOffset(0,!0)),this},a.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?I(t).utcOffset():0,(this.utcOffset()-t)%60==0)},a.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},a.isLocal=function(){return!!this.isValid()&&!this._isUTC},a.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},a.isUtc=Be,a.isUTC=Be,a.zoneAbbr=function(){return this._isUTC?"UTC":""},a.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},a.dates=t("dates accessor is deprecated. Use date instead.",pt),a.months=t("months accessor is deprecated. Use month instead",Vt),a.years=t("years accessor is deprecated. Use year instead",At),a.zone=t("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?(this.utcOffset(t="string"!=typeof t?-t:t,e),this):-this.utcOffset()}),a.isDSTShifted=t("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var t,e;return c(this._isDSTShifted)&&(U(t={},this),(t=Oe(t))._a?(e=(t._isUTC?u:I)(t._a),this._isDSTShifted=this.isValid()&&0<Z(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});l=Q.prototype;function an(t,e,n,i){var a=ge(),i=u().set(i,e);return a[n](i,t)}function on(t,e,n){if(N(t)&&(e=t,t=void 0),t=t||"",null!=e)return an(t,e,n,"month");for(var i=[],a=0;a<12;a++)i[a]=an(t,a,n,"month");return i}function rn(t,e,n,i){e=("boolean"==typeof t?N(e)&&(n=e,e=void 0):(e=t,t=!1,N(n=e)&&(n=e,e=void 0)),e||"");var a=ge(),o=t?a._week.dow:0;if(null!=n)return an(e,(n+o)%7,i,"day");for(var r=[],s=0;s<7;s++)r[s]=an(e,(s+o)%7,i,"day");return r}l.calendar=function(t,e,n){return r(t=this._calendar[t]||this._calendar.sameElse)?t.call(e,n):t},l.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},l.invalidDate=function(){return this._invalidDate},l.ordinal=function(t){return this._ordinal.replace("%d",t)},l.preparse=nn,l.postformat=nn,l.relativeTime=function(t,e,n,i){var a=this._relativeTime[n];return r(a)?a(t,e,n,i):a.replace(/%d/i,t)},l.pastFuture=function(t,e){return r(t=this._relativeTime[0<t?"future":"past"])?t(e):t.replace(/%s/i,e)},l.set=function(t){var e,n;for(n in t)r(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},l.months=function(t,e){return t?(h(this._months)?this._months:this._months[(this._months.isFormat||Wt).test(e)?"format":"standalone"])[t.month()]:h(this._months)?this._months:this._months.standalone},l.monthsShort=function(t,e){return t?(h(this._monthsShort)?this._monthsShort:this._monthsShort[Wt.test(e)?"format":"standalone"])[t.month()]:h(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},l.monthsParse=function(t,e,n){var i,a;if(this._monthsParseExact)return function(t,e,n){var i,a,o,t=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=u([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(a=T.call(this._shortMonthsParse,t))?a:null:-1!==(a=T.call(this._longMonthsParse,t))?a:null:"MMM"===e?-1!==(a=T.call(this._shortMonthsParse,t))||-1!==(a=T.call(this._longMonthsParse,t))?a:null:-1!==(a=T.call(this._longMonthsParse,t))||-1!==(a=T.call(this._shortMonthsParse,t))?a:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=u([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},l.monthsRegex=function(t){return this._monthsParseExact?(g(this,"_monthsRegex")||jt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(g(this,"_monthsRegex")||(this._monthsRegex=Et),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},l.monthsShortRegex=function(t){return this._monthsParseExact?(g(this,"_monthsRegex")||jt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(g(this,"_monthsShortRegex")||(this._monthsShortRegex=Bt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},l.week=function(t){return Xt(t,this._week.dow,this._week.doy).week},l.firstDayOfYear=function(){return this._week.doy},l.firstDayOfWeek=function(){return this._week.dow},l.weekdays=function(t,e){return t?(h(this._weekdays)?this._weekdays:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"])[t.day()]:h(this._weekdays)?this._weekdays:this._weekdays.standalone},l.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},l.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},l.weekdaysParse=function(t,e,n){var i,a;if(this._weekdaysParseExact)return function(t,e,n){var i,a,o,t=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=u([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(a=T.call(this._weekdaysParse,t))?a:null:"ddd"===e?-1!==(a=T.call(this._shortWeekdaysParse,t))?a:null:-1!==(a=T.call(this._minWeekdaysParse,t))?a:null:"dddd"===e?-1!==(a=T.call(this._weekdaysParse,t))||-1!==(a=T.call(this._shortWeekdaysParse,t))||-1!==(a=T.call(this._minWeekdaysParse,t))?a:null:"ddd"===e?-1!==(a=T.call(this._shortWeekdaysParse,t))||-1!==(a=T.call(this._weekdaysParse,t))||-1!==(a=T.call(this._minWeekdaysParse,t))?a:null:-1!==(a=T.call(this._minWeekdaysParse,t))||-1!==(a=T.call(this._weekdaysParse,t))||-1!==(a=T.call(this._shortWeekdaysParse,t))?a:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=u([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},l.weekdaysRegex=function(t){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||ie.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(g(this,"_weekdaysRegex")||(this._weekdaysRegex=te),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},l.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||ie.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(g(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ee),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},l.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||ie.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(g(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ne),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},l.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},l.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},ce("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===y(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),f.lang=t("moment.lang is deprecated. Use moment.locale instead.",ce),f.langData=t("moment.langData is deprecated. Use moment.localeData instead.",ge);var F=Math.abs;function sn(t,e,n,i){e=A(e,n);return t._milliseconds+=i*e._milliseconds,t._days+=i*e._days,t._months+=i*e._months,t._bubble()}function ln(t){return t<0?Math.floor(t):Math.ceil(t)}function un(t){return 4800*t/146097}function dn(t){return 146097*t/4800}function hn(t){return function(){return this.as(t)}}mt=hn("ms"),dt=hn("s"),Nt=hn("m"),gt=hn("h"),ft=hn("d"),Kt=hn("w"),x=hn("M"),ht=hn("y");function cn(t){return function(){return this.isValid()?this._data[t]:NaN}}var vt=cn("milliseconds"),ct=cn("seconds"),pt=cn("minutes"),At=cn("hours"),l=cn("days"),fn=cn("months"),gn=cn("years");var mn=Math.round,R={ss:44,s:45,m:45,h:22,d:26,M:11};function pn(t,e,n){var i=A(t).abs(),a=mn(i.as("s")),o=mn(i.as("m")),r=mn(i.as("h")),s=mn(i.as("d")),l=mn(i.as("M")),i=mn(i.as("y")),a=(a<=R.ss?["s",a]:a<R.s&&["ss",a])||(o<=1?["m"]:o<R.m&&["mm",o])||(r<=1?["h"]:r<R.h&&["hh",r])||(s<=1?["d"]:s<R.d&&["dd",s])||(l<=1?["M"]:l<R.M&&["MM",l])||(i<=1?["y"]:["yy",i]);return a[2]=e,a[3]=0<+t,a[4]=n,function(t,e,n,i,a){return a.relativeTime(e||1,!!n,t,i)}.apply(null,a)}var vn=Math.abs;function yn(t){return(0<t)-(t<0)||+t}function bn(){var t,e,n,i,a,o,r,s,l,u;return this.isValid()?(o=vn(this._milliseconds)/1e3,n=vn(this._days),e=vn(this._months),a=d(o/60),i=d(a/60),o%=60,a%=60,t=d(e/12),e=e%=12,n=n,i=i,a=a,o=o?o.toFixed(3).replace(/\.?0+$/,""):"",(r=this.asSeconds())?(s=yn(this._months)!==yn(r)?"-":"",l=yn(this._days)!==yn(r)?"-":"",u=yn(this._milliseconds)!==yn(r)?"-":"",(r<0?"-":"")+"P"+(t?s+t+"Y":"")+(e?s+e+"M":"")+(n?l+n+"D":"")+(i||a||o?"T":"")+(i?u+i+"H":"")+(a?u+a+"M":"")+(o?u+o+"S":"")):"P0D"):this.localeData().invalidDate()}var L=Re.prototype;return L.isValid=function(){return this._isValid},L.abs=function(){var t=this._data;return this._milliseconds=F(this._milliseconds),this._days=F(this._days),this._months=F(this._months),t.milliseconds=F(t.milliseconds),t.seconds=F(t.seconds),t.minutes=F(t.minutes),t.hours=F(t.hours),t.months=F(t.months),t.years=F(t.years),this},L.add=function(t,e){return sn(this,t,e,1)},L.subtract=function(t,e){return sn(this,t,e,-1)},L.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=s(t))||"year"===t)return e=this._days+i/864e5,n=this._months+un(e),"month"===t?n:n/12;switch(e=this._days+Math.round(dn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},L.asMilliseconds=mt,L.asSeconds=dt,L.asMinutes=Nt,L.asHours=gt,L.asDays=ft,L.asWeeks=Kt,L.asMonths=x,L.asYears=ht,L.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*y(this._months/12):NaN},L._bubble=function(){var t=this._milliseconds,e=this._days,n=this._months,i=this._data;return 0<=t&&0<=e&&0<=n||t<=0&&e<=0&&n<=0||(t+=864e5*ln(dn(n)+e),n=e=0),i.milliseconds=t%1e3,t=d(t/1e3),i.seconds=t%60,t=d(t/60),i.minutes=t%60,t=d(t/60),i.hours=t%24,e+=d(t/24),n+=t=d(un(e)),e-=ln(dn(t)),t=d(n/12),n%=12,i.days=e,i.months=n,i.years=t,this},L.clone=function(){return A(this)},L.get=function(t){return t=s(t),this.isValid()?this[t+"s"]():NaN},L.milliseconds=vt,L.seconds=ct,L.minutes=pt,L.hours=At,L.days=l,L.weeks=function(){return d(this.days()/7)},L.months=fn,L.years=gn,L.humanize=function(t){var e,n;return this.isValid()?(e=this.localeData(),n=pn(this,!t,e),t&&(n=e.pastFuture(+this,n)),e.postformat(n)):this.localeData().invalidDate()},L.toISOString=bn,L.toString=bn,L.toJSON=bn,L.locale=Je,L.localeData=Ke,L.toIsoString=t("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",bn),L.lang=Qt,i("X",0,0,"unix"),i("x",0,0,"valueOf"),_("x",bt),_("X",/[+-]?\d+(\.\d{1,3})?/),k("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),k("x",function(t,e,n){n._d=new Date(y(t))}),f.version="2.20.1",Y=I,f.fn=a,f.min=function(){return Ae("isBefore",[].slice.call(arguments,0))},f.max=function(){return Ae("isAfter",[].slice.call(arguments,0))},f.now=function(){return Date.now?Date.now():+new Date},f.utc=u,f.unix=function(t){return I(1e3*t)},f.months=function(t,e){return on(t,e,"months")},f.isDate=z,f.locale=ce,f.invalid=B,f.duration=A,f.isMoment=v,f.weekdays=function(t,e,n){return rn(t,e,n,"weekdays")},f.parseZone=function(){return I.apply(null,arguments).parseZone()},f.localeData=ge,f.isDuration=Le,f.monthsShort=function(t,e){return on(t,e,"monthsShort")},f.weekdaysMin=function(t,e,n){return rn(t,e,n,"weekdaysMin")},f.defineLocale=fe,f.updateLocale=function(t,e){var n,i;return null!=e?(n=le,(i=new Q(e=$(n=null!=(i=he(t))?i._config:n,e))).parentLocale=O[t],O[t]=i,ce(t)):null!=O[t]&&(null!=O[t].parentLocale?O[t]=O[t].parentLocale:null!=O[t]&&delete O[t]),O[t]},f.locales=function(){return tt(O)},f.weekdaysShort=function(t,e,n){return rn(t,e,n,"weekdaysShort")},f.normalizeUnits=s,f.relativeTimeRounding=function(t){return void 0===t?mn:"function"==typeof t&&(mn=t,!0)},f.relativeTimeThreshold=function(t,e){return void 0!==R[t]&&(void 0===e?R[t]:(R[t]=e,"s"===t&&(R.ss=e-1),!0))},f.calendarFormat=function(t,e){return(t=t.diff(e,"days",!0))<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"},f.prototype=a,f.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},f},"object"==typeof t&&void 0!==_n?_n.exports=n():e.moment=n()},{}],7:[function(t,e,n){var i,a=t(29)(),o=(a.helpers=t(45),t(27)(a),a.defaults=t(25),a.Element=t(26),a.elements=t(40),a.Interaction=t(28),a.layouts=t(30),a.platform=t(48),a.plugins=t(31),a.Ticks=t(34),t(22)(a),t(23)(a),t(24)(a),t(33)(a),t(32)(a),t(35)(a),t(55)(a),t(53)(a),t(54)(a),t(56)(a),t(57)(a),t(58)(a),t(15)(a),t(16)(a),t(17)(a),t(18)(a),t(19)(a),t(20)(a),t(21)(a),t(8)(a),t(9)(a),t(10)(a),t(11)(a),t(12)(a),t(13)(a),t(14)(a),t(49));for(i in o)o.hasOwnProperty(i)&&a.plugins.register(o[i]);a.platform.initialize(),e.exports=a,"undefined"!=typeof window&&(window.Chart=a),a.Legend=o.legend._element,a.Title=o.title._element,a.pluginService=a.plugins,a.PluginBase=a.Element.extend({}),a.canvasHelpers=a.helpers.canvas,a.layoutService=a.layouts},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,40:40,45:45,48:48,49:49,53:53,54:54,55:55,56:56,57:57,58:58,8:8,9:9}],8:[function(t,e,n){"use strict";e.exports=function(n){n.Bar=function(t,e){return e.type="bar",new n(t,e)}}},{}],9:[function(t,e,n){"use strict";e.exports=function(n){n.Bubble=function(t,e){return e.type="bubble",new n(t,e)}}},{}],10:[function(t,e,n){"use strict";e.exports=function(n){n.Doughnut=function(t,e){return e.type="doughnut",new n(t,e)}}},{}],11:[function(t,e,n){"use strict";e.exports=function(n){n.Line=function(t,e){return e.type="line",new n(t,e)}}},{}],12:[function(t,e,n){"use strict";e.exports=function(n){n.PolarArea=function(t,e){return e.type="polarArea",new n(t,e)}}},{}],13:[function(t,e,n){"use strict";e.exports=function(n){n.Radar=function(t,e){return e.type="radar",new n(t,e)}}},{}],14:[function(t,e,n){"use strict";e.exports=function(n){n.Scatter=function(t,e){return e.type="scatter",new n(t,e)}}},{}],15:[function(t,e,n){"use strict";var i=t(25),a=t(40),d=t(45);i._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),i._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var n="";return 0<t.length&&(t[0].yLabel?n=t[0].yLabel:0<e.labels.length&&t[0].index<e.labels.length&&(n=e.labels[t[0].index])),n},label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": "+t.xLabel}},mode:"index",axis:"y"}}),e.exports=function(e){e.controllers.bar=e.DatasetController.extend({dataElementType:a.Rectangle,initialize:function(){var t;e.DatasetController.prototype.initialize.apply(this,arguments),(t=this.getMeta()).stack=this.getDataset().stack,t.bar=!0},update:function(t){var e,n,i=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,n=i.length;e<n;++e)this.updateElement(i[e],e,t)},updateElement:function(t,e,n){var i=this,a=i.chart,o=i.getMeta(),r=i.getDataset(),s=t.custom||{},l=a.options.elements.rectangle;t._xScale=i.getScaleForId(o.xAxisID),t._yScale=i.getScaleForId(o.yAxisID),t._datasetIndex=i.index,t._index=e,t._model={datasetLabel:r.label,label:a.data.labels[e],borderSkipped:s.borderSkipped||l.borderSkipped,backgroundColor:s.backgroundColor||d.valueAtIndexOrDefault(r.backgroundColor,e,l.backgroundColor),borderColor:s.borderColor||d.valueAtIndexOrDefault(r.borderColor,e,l.borderColor),borderWidth:s.borderWidth||d.valueAtIndexOrDefault(r.borderWidth,e,l.borderWidth)},i.updateElementGeometry(t,e,n),t.pivot()},updateElementGeometry:function(t,e,n){var i=this,t=t._model,a=i.getValueScale(),o=a.getBasePixel(),a=a.isHorizontal(),r=i._ruler||i.getRuler(),s=i.calculateBarValuePixels(i.index,e),i=i.calculateBarIndexPixels(i.index,e,r);t.horizontal=a,t.base=n?o:s.base,t.x=a?n?o:s.head:i.center,t.y=a?i.center:n?o:s.head,t.height=a?i.size:void 0,t.width=a?void 0:i.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},_getStacks:function(t){for(var e,n=this.chart,i=this.getIndexScale().options.stacked,a=void 0===t?n.data.datasets.length:t+1,o=[],r=0;r<a;++r)(e=n.getDatasetMeta(r)).bar&&n.isDatasetVisible(r)&&(!1===i||!0===i&&-1===o.indexOf(e.stack)||void 0===i&&(void 0===e.stack||-1===o.indexOf(e.stack)))&&o.push(e.stack);return o},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){t=this._getStacks(t),e=void 0!==e?t.indexOf(e):-1;return-1===e?t.length-1:e},getRuler:function(){for(var t=this.getIndexScale(),e=this.getStackCount(),n=this.index,i=t.isHorizontal(),a=i?t.left:t.top,i=a+(i?t.width:t.height),o=[],r=0,s=this.getMeta().data.length;r<s;++r)o.push(t.getPixelForValue(null,r,n));return{min:d.isNullOrUndef(t.options.barThickness)?function(t,e){for(var n,i,a=t.isHorizontal()?t.width:t.height,o=t.getTicks(),r=1,s=e.length;r<s;++r)a=Math.min(a,e[r]-e[r-1]);for(r=0,s=o.length;r<s;++r)i=t.getPixelForTick(r),a=0<r?Math.min(a,i-n):a,n=i;return a}(t,o):-1,pixels:o,start:a,end:i,stackCount:e,scale:t}},calculateBarValuePixels:function(t,e){var n,i,a,o=this.chart,r=this.getMeta(),s=this.getValueScale(),l=o.data.datasets,u=s.getRightValue(l[t].data[e]),d=s.options.stacked,h=r.stack,c=0;if(d||void 0===d&&void 0!==h)for(n=0;n<t;++n)(i=o.getDatasetMeta(n)).bar&&i.stack===h&&i.controller.getValueScaleId()===s.id&&o.isDatasetVisible(n)&&(i=s.getRightValue(l[n].data[e]),u<0&&i<0||0<=u&&0<i)&&(c+=i);return r=s.getPixelForValue(c),{size:a=((d=s.getPixelForValue(c+u))-r)/2,base:r,head:d,center:d+a/2}},calculateBarIndexPixels:function(t,e,n){var i,a,o,r,s,l=n.scale.options,n="flex"===l.barThickness?(i=e,o=(s=(a=n).pixels)[i],r=0<i?s[i-1]:null,s=i<s.length-1?s[i+1]:null,i=l.categoryPercentage,null===r&&(r=o-(null===s?a.end-o:s-o)),{chunk:((s=null===s?o+o-r:s)-r)/2*i/a.stackCount,ratio:l.barPercentage,start:o-(o-r)/2*i}):(s=e,a=n,r=(o=l).barThickness,i=a.stackCount,s=a.pixels[e],a=d.isNullOrUndef(r)?(u=a.min*o.categoryPercentage,o.barPercentage):(u=r*i,1),{chunk:u/i,ratio:a,start:s-u/2}),e=this.getStackIndex(t,this.getMeta().stack),u=n.start+n.chunk*e+n.chunk/2,t=Math.min(d.valueOrDefault(l.maxBarThickness,1/0),n.chunk*n.ratio);return{base:u-t/2,head:u+t/2,center:u,size:t}},draw:function(){var t=this.chart,e=this.getValueScale(),n=this.getMeta().data,i=this.getDataset(),a=n.length,o=0;for(d.canvas.clipArea(t.ctx,t.chartArea);o<a;++o)isNaN(e.getRightValue(i.data[o]))||n[o].draw();d.canvas.unclipArea(t.ctx)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},t=t._model;t.backgroundColor=i.hoverBackgroundColor||d.valueAtIndexOrDefault(e.hoverBackgroundColor,n,d.getHoverColor(t.backgroundColor)),t.borderColor=i.hoverBorderColor||d.valueAtIndexOrDefault(e.hoverBorderColor,n,d.getHoverColor(t.borderColor)),t.borderWidth=i.hoverBorderWidth||d.valueAtIndexOrDefault(e.hoverBorderWidth,n,t.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},t=t._model,a=this.chart.options.elements.rectangle;t.backgroundColor=i.backgroundColor||d.valueAtIndexOrDefault(e.backgroundColor,n,a.backgroundColor),t.borderColor=i.borderColor||d.valueAtIndexOrDefault(e.borderColor,n,a.borderColor),t.borderWidth=i.borderWidth||d.valueAtIndexOrDefault(e.borderWidth,n,a.borderWidth)}}),e.controllers.horizontalBar=e.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{25:25,40:40,45:45}],16:[function(t,e,n){"use strict";var i=t(25),a=t(40),f=t(45);i._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.datasets[t.datasetIndex].label||"",e=e.datasets[t.datasetIndex].data[t.index];return n+": ("+t.xLabel+", "+t.yLabel+", "+e.r+")"}}}}),e.exports=function(t){t.controllers.bubble=t.DatasetController.extend({dataElementType:a.Point,update:function(n){var i=this,t=i.getMeta().data;f.each(t,function(t,e){i.updateElement(t,e,n)})},updateElement:function(t,e,n){var i=this,a=i.getMeta(),o=t.custom||{},r=i.getScaleForId(a.xAxisID),a=i.getScaleForId(a.yAxisID),s=i._resolveElementOptions(t,e),l=i.getDataset().data[e],i=i.index,u=n?r.getPixelForDecimal(.5):r.getPixelForValue("object"==typeof l?l:NaN,e,i),l=n?a.getBasePixel():a.getPixelForValue(l,e,i);t._xScale=r,t._yScale=a,t._options=s,t._datasetIndex=i,t._index=e,t._model={backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth,hitRadius:s.hitRadius,pointStyle:s.pointStyle,radius:n?0:s.radius,skip:o.skip||isNaN(u)||isNaN(l),x:u,y:l},t.pivot()},setHoverStyle:function(t){var e=t._model,t=t._options;e.backgroundColor=f.valueOrDefault(t.hoverBackgroundColor,f.getHoverColor(t.backgroundColor)),e.borderColor=f.valueOrDefault(t.hoverBorderColor,f.getHoverColor(t.borderColor)),e.borderWidth=f.valueOrDefault(t.hoverBorderWidth,t.borderWidth),e.radius=t.radius+t.hoverRadius},removeHoverStyle:function(t){var e=t._model,t=t._options;e.backgroundColor=t.backgroundColor,e.borderColor=t.borderColor,e.borderWidth=t.borderWidth,e.radius=t.radius},_resolveElementOptions:function(t,e){for(var n,i=this.chart,a=i.data.datasets[this.index],o=t.custom||{},r=i.options.elements.point,s=f.options.resolve,t=a.data[e],l={},u={chart:i,dataIndex:e,dataset:a,datasetIndex:this.index},d=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle"],h=0,c=d.length;h<c;++h)l[n=d[h]]=s([o[n],a[n],r[n]],u,e);return l.radius=s([o.radius,t?t.r:void 0,a.radius,r.radius],u,e),l}})}},{25:25,40:40,45:45}],17:[function(t,e,n){"use strict";var i=t(25),a=t(40),y=t(45);i._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e=[],t=(e.push('<ul class="'+t.id+'-legend">'),t.data),n=t.datasets,i=t.labels;if(n.length)for(var a=0;a<n[0].data.length;++a)e.push('<li><span style="background-color:'+n[0].backgroundColor[a]+'"></span>'),i[a]&&e.push(i[a]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=s.getDatasetMeta(0),i=l.datasets[0],a=n.data[e],a=a&&a.custom||{},o=y.valueAtIndexOrDefault,r=s.options.elements.arc;return{text:t,fillStyle:a.backgroundColor||o(i.backgroundColor,e,r.backgroundColor),strokeStyle:a.borderColor||o(i.borderColor,e,r.borderColor),lineWidth:a.borderWidth||o(i.borderWidth,e,r.borderWidth),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var n,i=e.index,a=this.chart,o=0,r=(a.data.datasets||[]).length;o<r;++o)(n=a.getDatasetMeta(o)).data[i]&&(n.data[i].hidden=!n.data[i].hidden);a.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.labels[t.index],e=": "+e.datasets[t.datasetIndex].data[t.index];return y.isArray(n)?(n=n.slice())[0]+=e:n+=e,n}}}}),i._set("pie",y.clone(i.doughnut)),i._set("pie",{cutoutPercentage:0}),e.exports=function(e){e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:a.Arc,linkScales:y.noop,getRingIndex:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&++e;return e},update:function(n){var t,e,i,a,o,r,s,l=this,u=l.chart,d=u.chartArea,h=u.options,c=h.elements.arc,f=d.right-d.left-c.borderWidth,d=d.bottom-d.top-c.borderWidth,c=Math.min(f,d),g={x:0,y:0},m=l.getMeta(),p=h.cutoutPercentage,v=h.circumference;v<2*Math.PI&&(h=h.rotation%(2*Math.PI),v=(h+=2*Math.PI*(h>=Math.PI?-1:h<-Math.PI?1:0))+v,s=Math.cos(h),t=Math.sin(h),e=Math.cos(v),i=Math.sin(v),r=h<=0&&0<=v||h<=2*Math.PI&&2*Math.PI<=v,a=h<=.5*Math.PI&&.5*Math.PI<=v||h<=2.5*Math.PI&&2.5*Math.PI<=v,o=h<=-Math.PI&&-Math.PI<=v||h<=Math.PI&&Math.PI<=v,h=h<=.5*-Math.PI&&.5*-Math.PI<=v||h<=1.5*Math.PI&&1.5*Math.PI<=v,v=p/100,o=o?-1:Math.min(s*(s<0?1:v),e*(e<0?1:v)),h=h?-1:Math.min(t*(t<0?1:v),i*(i<0?1:v)),r=r?1:Math.max(s*(0<s?1:v),e*(0<e?1:v)),s=a?1:Math.max(t*(0<t?1:v),i*(0<i?1:v)),c=Math.min(f/(.5*(r-o)),d/(.5*(s-h))),g={x:-.5*(r+o),y:-.5*(s+h)}),u.borderWidth=l.getMaxBorderWidth(m.data),u.outerRadius=Math.max((c-u.borderWidth)/2,0),u.innerRadius=Math.max(p?u.outerRadius/100*p:0,0),u.radiusLength=(u.outerRadius-u.innerRadius)/u.getVisibleDatasetCount(),u.offsetX=g.x*u.outerRadius,u.offsetY=g.y*u.outerRadius,m.total=l.calculateTotal(),l.outerRadius=u.outerRadius-u.radiusLength*l.getRingIndex(l.index),l.innerRadius=Math.max(l.outerRadius-u.radiusLength,0),y.each(m.data,function(t,e){l.updateElement(t,e,n)})},updateElement:function(t,e,n){var i=this,a=i.chart,o=a.chartArea,r=a.options,s=r.animation,l=(o.left+o.right)/2,o=(o.top+o.bottom)/2,u=r.rotation,d=r.rotation,h=i.getDataset(),c=n&&s.animateRotate||t.hidden?0:i.calculateCircumference(h.data[e])*(r.circumference/(2*Math.PI)),f=n&&s.animateScale?0:i.innerRadius,g=n&&s.animateScale?0:i.outerRadius,m=y.valueAtIndexOrDefault,l=(y.extend(t,{_datasetIndex:i.index,_index:e,_model:{x:l+a.offsetX,y:o+a.offsetY,startAngle:u,endAngle:d,circumference:c,outerRadius:g,innerRadius:f,label:m(h.label,e,a.data.labels[e])}}),t._model);this.removeHoverStyle(t),n&&s.animateRotate||(l.startAngle=0===e?r.rotation:i.getMeta().data[e-1]._model.endAngle,l.endAngle=l.startAngle+l.circumference),t.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},calculateTotal:function(){var n,i=this.getDataset(),t=this.getMeta(),a=0;return y.each(t.data,function(t,e){n=i.data[e],isNaN(n)||t.hidden||(a+=Math.abs(n))}),a},calculateCircumference:function(t){var e=this.getMeta().total;return 0<e&&!isNaN(t)?2*Math.PI*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){for(var e,n=0,i=this.index,a=t.length,o=0;o<a;o++)n=(n=n<(e=t[o]._model?t[o]._model.borderWidth:0)?e:n)<(e=t[o]._chart?t[o]._chart.config.data.datasets[i].hoverBorderWidth:0)?e:n;return n}})}},{25:25,40:40,45:45}],18:[function(t,e,n){"use strict";var i=t(25),a=t(40),f=t(45);i._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function c(t,e){return f.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,update:function(t){var e,n,i,a=this,o=a.getMeta(),r=o.dataset,s=o.data||[],l=a.chart.options,u=l.elements.line,o=a.getScaleForId(o.yAxisID),d=a.getDataset(),h=c(d,l);for(h&&(i=r.custom||{},void 0!==d.tension&&void 0===d.lineTension&&(d.lineTension=d.tension),r._scale=o,r._datasetIndex=a.index,r._children=s,r._model={spanGaps:d.spanGaps||l.spanGaps,tension:i.tension||f.valueOrDefault(d.lineTension,u.tension),backgroundColor:i.backgroundColor||d.backgroundColor||u.backgroundColor,borderWidth:i.borderWidth||d.borderWidth||u.borderWidth,borderColor:i.borderColor||d.borderColor||u.borderColor,borderCapStyle:i.borderCapStyle||d.borderCapStyle||u.borderCapStyle,borderDash:i.borderDash||d.borderDash||u.borderDash,borderDashOffset:i.borderDashOffset||d.borderDashOffset||u.borderDashOffset,borderJoinStyle:i.borderJoinStyle||d.borderJoinStyle||u.borderJoinStyle,fill:i.fill||(void 0!==d.fill?d:u).fill,steppedLine:i.steppedLine||f.valueOrDefault(d.steppedLine,u.stepped),cubicInterpolationMode:i.cubicInterpolationMode||f.valueOrDefault(d.cubicInterpolationMode,u.cubicInterpolationMode)},r.pivot()),e=0,n=s.length;e<n;++e)a.updateElement(s[e],e,t);for(h&&0!==r._model.tension&&a.updateBezierControlPoints(),e=0,n=s.length;e<n;++e)s[e].pivot()},getPointBackgroundColor:function(t,e){var n=this.chart.options.elements.point.backgroundColor,i=this.getDataset(),t=t.custom||{};return t.backgroundColor?n=t.backgroundColor:i.pointBackgroundColor?n=f.valueAtIndexOrDefault(i.pointBackgroundColor,e,n):i.backgroundColor&&(n=i.backgroundColor),n},getPointBorderColor:function(t,e){var n=this.chart.options.elements.point.borderColor,i=this.getDataset(),t=t.custom||{};return t.borderColor?n=t.borderColor:i.pointBorderColor?n=f.valueAtIndexOrDefault(i.pointBorderColor,e,n):i.borderColor&&(n=i.borderColor),n},getPointBorderWidth:function(t,e){var n=this.chart.options.elements.point.borderWidth,i=this.getDataset(),t=t.custom||{};return isNaN(t.borderWidth)?!isNaN(i.pointBorderWidth)||f.isArray(i.pointBorderWidth)?n=f.valueAtIndexOrDefault(i.pointBorderWidth,e,n):isNaN(i.borderWidth)||(n=i.borderWidth):n=t.borderWidth,n},updateElement:function(t,e,n){var i,a=this,o=a.getMeta(),r=t.custom||{},s=a.getDataset(),l=a.index,u=s.data[e],d=a.getScaleForId(o.yAxisID),h=a.getScaleForId(o.xAxisID),c=a.chart.options.elements.point;void 0!==s.radius&&void 0===s.pointRadius&&(s.pointRadius=s.radius),void 0!==s.hitRadius&&void 0===s.pointHitRadius&&(s.pointHitRadius=s.hitRadius),i=h.getPixelForValue("object"==typeof u?u:NaN,e,l),n=n?d.getBasePixel():a.calculatePointY(u,e,l),t._xScale=h,t._yScale=d,t._datasetIndex=l,t._index=e,t._model={x:i,y:n,skip:r.skip||isNaN(i)||isNaN(n),radius:r.radius||f.valueAtIndexOrDefault(s.pointRadius,e,c.radius),pointStyle:r.pointStyle||f.valueAtIndexOrDefault(s.pointStyle,e,c.pointStyle),backgroundColor:a.getPointBackgroundColor(t,e),borderColor:a.getPointBorderColor(t,e),borderWidth:a.getPointBorderWidth(t,e),tension:o.dataset._model?o.dataset._model.tension:0,steppedLine:!!o.dataset._model&&o.dataset._model.steppedLine,hitRadius:r.hitRadius||f.valueAtIndexOrDefault(s.pointHitRadius,e,c.hitRadius)}},calculatePointY:function(t,e,n){var i,a=this.chart,o=this.getMeta(),r=this.getScaleForId(o.yAxisID),s=0,l=0;if(r.options.stacked){for(i=0;i<n;i++){var u,d=a.data.datasets[i];"line"===(u=a.getDatasetMeta(i)).type&&u.yAxisID===r.id&&a.isDatasetVisible(i)&&((u=Number(r.getRightValue(d.data[e])))<0?l+=u||0:s+=u||0)}o=Number(r.getRightValue(t));return o<0?r.getPixelForValue(l+o):r.getPixelForValue(s+o)}return r.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,n,i,a=this.getMeta(),o=this.chart.chartArea,r=a.data||[];function s(t,e,n){return Math.max(Math.min(t,n),e)}if(a.dataset._model.spanGaps&&(r=r.filter(function(t){return!t._model.skip})),"monotone"===a.dataset._model.cubicInterpolationMode)f.splineCurveMonotone(r);else for(t=0,e=r.length;t<e;++t)n=r[t]._model,i=f.splineCurve(f.previousItem(r,t)._model,n,f.nextItem(r,t)._model,a.dataset._model.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(this.chart.options.elements.line.capBezierPoints)for(t=0,e=r.length;t<e;++t)(n=r[t]._model).controlPointPreviousX=s(n.controlPointPreviousX,o.left,o.right),n.controlPointPreviousY=s(n.controlPointPreviousY,o.top,o.bottom),n.controlPointNextX=s(n.controlPointNextX,o.left,o.right),n.controlPointNextY=s(n.controlPointNextY,o.top,o.bottom)},draw:function(){var t=this.chart,e=this.getMeta(),n=e.data||[],i=t.chartArea,a=n.length,o=0;for(f.canvas.clipArea(t.ctx,i),c(this.getDataset(),t.options)&&e.dataset.draw(),f.canvas.unclipArea(t.ctx);o<a;++o)n[o].draw(i)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},t=t._model;t.radius=i.hoverRadius||f.valueAtIndexOrDefault(e.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),t.backgroundColor=i.hoverBackgroundColor||f.valueAtIndexOrDefault(e.pointHoverBackgroundColor,n,f.getHoverColor(t.backgroundColor)),t.borderColor=i.hoverBorderColor||f.valueAtIndexOrDefault(e.pointHoverBorderColor,n,f.getHoverColor(t.borderColor)),t.borderWidth=i.hoverBorderWidth||f.valueAtIndexOrDefault(e.pointHoverBorderWidth,n,t.borderWidth)},removeHoverStyle:function(t){var e=this,n=e.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},o=t._model;void 0!==n.radius&&void 0===n.pointRadius&&(n.pointRadius=n.radius),o.radius=a.radius||f.valueAtIndexOrDefault(n.pointRadius,i,e.chart.options.elements.point.radius),o.backgroundColor=e.getPointBackgroundColor(t,i),o.borderColor=e.getPointBorderColor(t,i),o.borderWidth=e.getPointBorderWidth(t,i)}})}},{25:25,40:40,45:45}],19:[function(t,e,n){"use strict";var i=t(25),a=t(40),y=t(45);i._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e=[],t=(e.push('<ul class="'+t.id+'-legend">'),t.data),n=t.datasets,i=t.labels;if(n.length)for(var a=0;a<n[0].data.length;++a)e.push('<li><span style="background-color:'+n[0].backgroundColor[a]+'"></span>'),i[a]&&e.push(i[a]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=s.getDatasetMeta(0),i=l.datasets[0],a=n.data[e].custom||{},o=y.valueAtIndexOrDefault,r=s.options.elements.arc;return{text:t,fillStyle:a.backgroundColor||o(i.backgroundColor,e,r.backgroundColor),strokeStyle:a.borderColor||o(i.borderColor,e,r.borderColor),lineWidth:a.borderWidth||o(i.borderWidth,e,r.borderWidth),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var n,i=e.index,a=this.chart,o=0,r=(a.data.datasets||[]).length;o<r;++o)(n=a.getDatasetMeta(o)).data[i].hidden=!n.data[i].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}}),e.exports=function(e){e.controllers.polarArea=e.DatasetController.extend({dataElementType:a.Arc,linkScales:y.noop,update:function(n){var i=this,t=i.chart,e=t.chartArea,a=i.getMeta(),o=t.options,r=o.elements.arc,e=Math.min(e.right-e.left,e.bottom-e.top);t.outerRadius=Math.max((e-r.borderWidth/2)/2,0),t.innerRadius=Math.max(o.cutoutPercentage?t.outerRadius/100*o.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),i.outerRadius=t.outerRadius-t.radiusLength*i.index,i.innerRadius=i.outerRadius-t.radiusLength,a.count=i.countVisibleElements(),y.each(a.data,function(t,e){i.updateElement(t,e,n)})},updateElement:function(t,e,n){for(var i=this,a=i.chart,o=i.getDataset(),r=a.options,s=r.animation,l=a.scale,a=a.data.labels,u=i.calculateCircumference(o.data[e]),d=l.xCenter,h=l.yCenter,c=0,f=i.getMeta(),g=0;g<e;++g)isNaN(o.data[g])||f.data[g].hidden||++c;var r=r.startAngle,m=t.hidden?0:l.getDistanceFromCenterForValue(o.data[e]),p=r+u*c,u=p+(t.hidden?0:u),v=s.animateScale?0:l.getDistanceFromCenterForValue(o.data[e]);y.extend(t,{_datasetIndex:i.index,_index:e,_scale:l,_model:{x:d,y:h,innerRadius:0,outerRadius:n?v:m,startAngle:n&&s.animateRotate?r:p,endAngle:n&&s.animateRotate?r:u,label:y.valueAtIndexOrDefault(a,e,a[e])}}),i.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},countVisibleElements:function(){var n=this.getDataset(),t=this.getMeta(),i=0;return y.each(t.data,function(t,e){isNaN(n.data[e])||t.hidden||i++}),i},calculateCircumference:function(t){var e=this.getMeta().count;return 0<e&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,n){"use strict";var i=t(25),a=t(40),u=t(45);i._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,linkScales:u.noop,update:function(n){var i=this,t=i.getMeta(),e=t.dataset,a=t.data,e=e.custom||{},o=i.getDataset(),r=i.chart.options.elements.line,s=i.chart.scale;void 0!==o.tension&&void 0===o.lineTension&&(o.lineTension=o.tension),u.extend(t.dataset,{_datasetIndex:i.index,_scale:s,_children:a,_loop:!0,_model:{tension:e.tension||u.valueOrDefault(o.lineTension,r.tension),backgroundColor:e.backgroundColor||o.backgroundColor||r.backgroundColor,borderWidth:e.borderWidth||o.borderWidth||r.borderWidth,borderColor:e.borderColor||o.borderColor||r.borderColor,fill:e.fill||(void 0!==o.fill?o:r).fill,borderCapStyle:e.borderCapStyle||o.borderCapStyle||r.borderCapStyle,borderDash:e.borderDash||o.borderDash||r.borderDash,borderDashOffset:e.borderDashOffset||o.borderDashOffset||r.borderDashOffset,borderJoinStyle:e.borderJoinStyle||o.borderJoinStyle||r.borderJoinStyle}}),t.dataset.pivot(),u.each(a,function(t,e){i.updateElement(t,e,n)},i),i.updateBezierControlPoints()},updateElement:function(t,e,n){var i=this,a=t.custom||{},o=i.getDataset(),r=i.chart.scale,s=i.chart.options.elements.point,l=r.getPointPositionForValue(e,o.data[e]);void 0!==o.radius&&void 0===o.pointRadius&&(o.pointRadius=o.radius),void 0!==o.hitRadius&&void 0===o.pointHitRadius&&(o.pointHitRadius=o.hitRadius),u.extend(t,{_datasetIndex:i.index,_index:e,_scale:r,_model:{x:n?r.xCenter:l.x,y:n?r.yCenter:l.y,tension:a.tension||u.valueOrDefault(o.lineTension,i.chart.options.elements.line.tension),radius:a.radius||u.valueAtIndexOrDefault(o.pointRadius,e,s.radius),backgroundColor:a.backgroundColor||u.valueAtIndexOrDefault(o.pointBackgroundColor,e,s.backgroundColor),borderColor:a.borderColor||u.valueAtIndexOrDefault(o.pointBorderColor,e,s.borderColor),borderWidth:a.borderWidth||u.valueAtIndexOrDefault(o.pointBorderWidth,e,s.borderWidth),pointStyle:a.pointStyle||u.valueAtIndexOrDefault(o.pointStyle,e,s.pointStyle),hitRadius:a.hitRadius||u.valueAtIndexOrDefault(o.pointHitRadius,e,s.hitRadius)}}),t._model.skip=a.skip||isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var i=this.chart.chartArea,a=this.getMeta();u.each(a.data,function(t,e){var n=t._model,e=u.splineCurve(u.previousItem(a.data,e,!0)._model,n,u.nextItem(a.data,e,!0)._model,n.tension);n.controlPointPreviousX=Math.max(Math.min(e.previous.x,i.right),i.left),n.controlPointPreviousY=Math.max(Math.min(e.previous.y,i.bottom),i.top),n.controlPointNextX=Math.max(Math.min(e.next.x,i.right),i.left),n.controlPointNextY=Math.max(Math.min(e.next.y,i.bottom),i.top),t.pivot()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,t=t._model;t.radius=n.hoverRadius||u.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),t.backgroundColor=n.hoverBackgroundColor||u.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,u.getHoverColor(t.backgroundColor)),t.borderColor=n.hoverBorderColor||u.valueAtIndexOrDefault(e.pointHoverBorderColor,i,u.getHoverColor(t.borderColor)),t.borderWidth=n.hoverBorderWidth||u.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,t.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,t=t._model,a=this.chart.options.elements.point;t.radius=n.radius||u.valueAtIndexOrDefault(e.pointRadius,i,a.radius),t.backgroundColor=n.backgroundColor||u.valueAtIndexOrDefault(e.pointBackgroundColor,i,a.backgroundColor),t.borderColor=n.borderColor||u.valueAtIndexOrDefault(e.pointBorderColor,i,a.borderColor),t.borderWidth=n.borderWidth||u.valueAtIndexOrDefault(e.pointBorderWidth,i,a.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,n){"use strict";t(25)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{25:25}],22:[function(t,e,n){"use strict";var i=t(25),a=t(26),o=t(45);i._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:o.noop,onComplete:o.noop}}),e.exports=function(t){t.Animation=a.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){var a,o,r=this.animations;for(e.chart=t,i||(t.animating=!0),a=0,o=r.length;a<o;++a)if(r[a].chart===t)return void(r[a]=e);r.push(e),1===r.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=o.findIndex(this.animations,function(t){return t.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=o.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),n=0,n=(1<t.dropFrames&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n),Date.now());t.dropFrames+=(n-e)/t.frameDuration,0<t.animations.length&&t.requestAnimationFrame()},advance:function(t){for(var e,n,i=this.animations,a=0;a<i.length;)n=(e=i[a]).chart,e.currentStep=(e.currentStep||0)+t,e.currentStep=Math.min(e.currentStep,e.numSteps),o.callback(e.render,[n,e],n),o.callback(e.onAnimationProgress,[e],n),e.currentStep>=e.numSteps?(o.callback(e.onAnimationComplete,[e],n),n.animating=!1,i.splice(a,1)):++a}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,n){"use strict";var r=t(25),h=t(45),i=t(28),a=t(30),s=t(48),l=t(31);e.exports=function(u){function d(t){return"top"===t||"bottom"===t}u.types={},u.instances={},u.controllers={},h.extend(u.prototype,{construct:function(t,e){var n=this,i=((i=(a=(a=e)||{}).data=a.data||{}).datasets=i.datasets||[],i.labels=i.labels||[],a.options=h.configMerge(r.global,r[a.type],a.options||{}),e=a,s.acquireContext(t,e)),a=i&&i.canvas,t=a&&a.height,o=a&&a.width;n.id=h.uid(),n.ctx=i,n.canvas=a,n.config=e,n.width=o,n.height=t,n.aspectRatio=t?o/t:null,n.options=e.options,n._bufferedRender=!1,(n.chart=n).controller=n,u.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),i&&a?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return l.notify(t,"beforeInit"),h.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),l.notify(t,"afterInit"),t},clear:function(){return h.canvas.clear(this),this},stop:function(){return u.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,a=n.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(h.getMaximumWidth(i))),a=Math.max(0,Math.floor(a?o/a:h.getMaximumHeight(i)));e.width===o&&e.height===a||(i.width=e.width=o,i.height=e.height=a,i.style.width=o+"px",i.style.height=a+"px",h.retinaScale(e,n.devicePixelRatio),t)||(l.notify(e,"resize",[i={width:o,height:a}]),e.options.onResize&&e.options.onResize(e,i),e.stop(),e.update(e.options.responsiveAnimationDuration))},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},t=t.scale;h.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),h.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),t&&(t.id=t.id||"scale")},buildOrUpdateScales:function(){var r=this,t=r.options,s=r.scales||{},e=[],l=Object.keys(s).reduce(function(t,e){return t[e]=!1,t},{});t.scales&&(e=e.concat((t.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),t.scale&&e.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),h.each(e,function(t){var e=t.options,n=e.id,i=h.valueOrDefault(e.type,t.dtype),a=(d(e.position)!==d(t.dposition)&&(e.position=t.dposition),l[n]=!0,null);if(n in s&&s[n].type===i)(a=s[n]).options=e,a.ctx=r.ctx,a.chart=r;else{var o=u.scaleService.getScaleConstructor(i);if(!o)return;a=new o({id:n,type:i,options:e,ctx:r.ctx,chart:r}),s[a.id]=a}a.mergeTicksOptions(),t.isDefault&&(r.scale=a)}),h.each(l,function(t,e){t||delete s[e]}),r.scales=s,u.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var i=this,a=[],o=[];return h.each(i.data.datasets,function(t,e){var n=i.getDatasetMeta(e),t=t.type||i.config.type;if(n.type&&n.type!==t&&(i.destroyDatasetMeta(e),n=i.getDatasetMeta(e)),n.type=t,a.push(n.type),n.controller)n.controller.updateIndex(e),n.controller.linkScales();else{t=u.controllers[n.type];if(void 0===t)throw new Error('"'+n.type+'" is not a chart type.');n.controller=new t(i,e),o.push(n.controller)}},i),o},resetElements:function(){var n=this;h.each(n.data.datasets,function(t,e){n.getDatasetMeta(e).controller.reset()},n)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,n,i=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),n=(e=i).options,h.each(e.scales,function(t){a.removeBox(e,t)}),n=h.configMerge(u.defaults.global,u.defaults[e.config.type],n),e.options=e.config.options=n,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=n.tooltips,e.tooltip.initialize(),l._invalidate(i),!1!==l.notify(i,"beforeUpdate")&&(i.tooltip._data=i.data,n=i.buildOrUpdateControllers(),h.each(i.data.datasets,function(t,e){i.getDatasetMeta(e).controller.buildOrUpdateElements()},i),i.updateLayout(),i.options.animation&&i.options.animation.duration&&h.each(n,function(t){t.reset()}),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],l.notify(i,"afterUpdate"),i._bufferedRender?i._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:i.render(t))},updateLayout:function(){!1!==l.notify(this,"beforeLayout")&&(a.update(this,this.width,this.height),l.notify(this,"afterScaleUpdate"),l.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==l.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t<e;++t)this.updateDataset(t);l.notify(this,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this.getDatasetMeta(t),t={meta:e,index:t};!1!==l.notify(this,"beforeDatasetUpdate",[t])&&(e.controller.update(),l.notify(this,"afterDatasetUpdate",[t]))},render:function(t){var e,n,i=this,a=(t=t&&"object"==typeof t?t:{duration:t,lazy:arguments[1]}).duration,o=t.lazy;if(!1!==l.notify(i,"beforeRender"))return n=function(t){l.notify(i,"afterRender"),h.callback(e&&e.onComplete,[t],i)},(e=i.options.animation)&&(void 0!==a&&0!==a||void 0===a&&0!==e.duration)?(t=new u.Animation({numSteps:(a||e.duration)/16.66,easing:t.easing||e.easing,render:function(t,e){var n=h.easing.effects[e.easing],i=e.currentStep,e=i/e.numSteps;t.draw(n(e),e,i)},onAnimationProgress:e.onProgress,onAnimationComplete:n}),u.animationService.addAnimation(i,t,a,o)):(i.draw(),n(new u.Animation({numSteps:0,chart:i}))),i},draw:function(t){var e=this;e.clear(),h.isNullOrUndef(t)&&(t=1),e.transition(t),!1!==l.notify(e,"beforeDraw",[t])&&(h.each(e.boxes,function(t){t.draw(e.chartArea)},e),e.scale&&e.scale.draw(),e.drawDatasets(t),e._drawTooltip(t),l.notify(e,"afterDraw",[t]))},transition:function(t){for(var e=0,n=(this.data.datasets||[]).length;e<n;++e)this.isDatasetVisible(e)&&this.getDatasetMeta(e).controller.transition(t);this.tooltip.transition(t)},drawDatasets:function(t){var e=this;if(!1!==l.notify(e,"beforeDatasetsDraw",[t])){for(var n=(e.data.datasets||[]).length-1;0<=n;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);l.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this.getDatasetMeta(t),t={meta:n,index:t,easingValue:e};!1!==l.notify(this,"beforeDatasetDraw",[t])&&(n.controller.draw(e),l.notify(this,"afterDatasetDraw",[t]))},_drawTooltip:function(t){var e=this.tooltip,t={tooltip:e,easingValue:t};!1!==l.notify(this,"beforeTooltipDraw",[t])&&(e.draw(),l.notify(this,"afterTooltipDraw",[t]))},getElementAtEvent:function(t){return i.modes.single(this,t)},getElementsAtEvent:function(t){return i.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return i.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){e=i.modes[e];return"function"==typeof e?e(this,t,n):[]},getDatasetAtEvent:function(t){return i.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){t=this.data.datasets[t];return t._meta||(t._meta={}),t._meta[this.id]||(t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null})},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e<n;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,t=this.data.datasets[t],n=t._meta&&t._meta[e];n&&(n.controller.destroy(),delete t._meta[e])},destroy:function(){var t,e,n=this,i=n.canvas;for(n.stop(),t=0,e=n.data.datasets.length;t<e;++t)n.destroyDatasetMeta(t);i&&(n.unbindEvents(),h.canvas.clear(n),s.releaseContext(n.ctx),n.canvas=null,n.ctx=null),l.notify(n,"destroy"),delete u.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new u.Tooltip({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var e=this,n=e._listeners={},i=function(){e.eventHandler.apply(e,arguments)};h.each(e.options.events,function(t){s.addEventListener(e,t,i),n[t]=i}),e.options.responsive&&(i=function(){e.resize()},s.addEventListener(e,"resize",i),n.resize=i)},unbindEvents:function(){var n=this,t=n._listeners;t&&(delete n._listeners,h.each(t,function(t,e){s.removeEventListener(n,e,t)}))},updateHoverStyle:function(t,e,n){for(var i,a=n?"setHoverStyle":"removeHoverStyle",o=0,r=t.length;o<r;++o)(i=t[o])&&this.getDatasetMeta(i._datasetIndex).controller[a](i)},eventHandler:function(t){var e,n=this,i=n.tooltip;if(!1!==l.notify(n,"beforeEvent",[t]))return n._bufferedRender=!0,n._bufferedRequest=null,e=n.handleEvent(t),i&&(e=i._start?i.handleEvent(t):e|i.handleEvent(t)),l.notify(n,"afterEvent",[t]),(i=n._bufferedRequest)?n.render(i):e&&!n.animating&&(n.stop(),n.render(n.options.hover.animationDuration,!0)),n._bufferedRender=!1,n._bufferedRequest=null,n},handleEvent:function(t){var e=this,n=e.options||{},i=n.hover;return e.lastActive=e.lastActive||[],"mouseout"===t.type?e.active=[]:e.active=e.getElementsAtEventForMode(t,i.mode,i),h.callback(n.onHover||n.hover.onHover,[t.native,e.active],e),"mouseup"!==t.type&&"click"!==t.type||n.onClick&&n.onClick.call(e,t.native,e.active),e.lastActive.length&&e.updateHoverStyle(e.lastActive,i.mode,!1),e.active.length&&i.mode&&e.updateHoverStyle(e.active,i.mode,!0),n=!h.arrayEquals(e.active,e.lastActive),e.lastActive=e.active,n}}),u.Controller=u}},{25:25,28:28,30:30,31:31,45:45,48:48}],24:[function(t,e,n){"use strict";var r=t(45);e.exports=function(t){var i=["push","pop","shift","splice","unshift"];function o(e,t){var n=e._chartjs;n&&(-1!==(t=(n=n.listeners).indexOf(t))&&n.splice(t,1),0<n.length||(i.forEach(function(t){delete e[t]}),delete e._chartjs))}t.DatasetController=function(t,e){this.initialize(t,e)},r.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){this.chart=t,this.index=e,this.linkScales(),this.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null!==e.xAxisID&&e.xAxisID in t.chart.scales||(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in t.chart.scales||(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&o(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){for(var t=this.getMeta(),e=this.getDataset().data||[],n=t.data,i=0,a=e.length;i<a;++i)n[i]=n[i]||this.createMetaData(i);t.dataset=t.dataset||this.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var a,t,e=this,n=e.getDataset(),n=n.data||(n.data=[]);e._data!==n&&(e._data&&o(e._data,e),t=e,(a=n)._chartjs?a._chartjs.listeners.push(t):(Object.defineProperty(a,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),i.forEach(function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),i=a[t];Object.defineProperty(a,t,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),t=i.apply(this,e);return r.each(a._chartjs.listeners,function(t){"function"==typeof t[n]&&t[n].apply(t,e)}),t}})})),e._data=n),e.resyncElements()},update:r.noop,transition:function(t){for(var e=this.getMeta(),n=e.data||[],i=n.length,a=0;a<i;++a)n[a].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],n=e.length,i=0;for(t.dataset&&t.dataset.draw();i<n;++i)e[i].draw()},removeHoverStyle:function(t,e){var n=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},o=r.valueAtIndexOrDefault,t=t._model;t.backgroundColor=a.backgroundColor||o(n.backgroundColor,i,e.backgroundColor),t.borderColor=a.borderColor||o(n.borderColor,i,e.borderColor),t.borderWidth=a.borderWidth||o(n.borderWidth,i,e.borderWidth)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},a=r.valueAtIndexOrDefault,o=r.getHoverColor,t=t._model;t.backgroundColor=i.hoverBackgroundColor||a(e.hoverBackgroundColor,n,o(t.backgroundColor)),t.borderColor=i.hoverBorderColor||a(e.hoverBorderColor,n,o(t.borderColor)),t.borderWidth=i.hoverBorderWidth||a(e.hoverBorderWidth,n,t.borderWidth)},resyncElements:function(){var t=this.getMeta(),e=this.getDataset().data,n=t.data.length,e=e.length;e<n?t.data.splice(e,n-e):n<e&&this.insertElements(n,e-n)},insertElements:function(t,e){for(var n=0;n<e;++n)this.addElementAndReset(t+n)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),t.DatasetController.extend=r.inherits}},{45:45}],25:[function(t,e,n){"use strict";var i=t(45);e.exports={_set:function(t,e){return i.merge(this[t]||(this[t]={}),e)}}},{45:45}],26:[function(t,e,n){"use strict";var y=t(2),i=t(45);function a(t){i.extend(this,t),this.initialize.apply(this,arguments)}i.extend(a.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=i.clone(t._model)),t._start={},t},transition:function(t){var e=this,n=e._model,i=e._start,a=e._view;if(n&&1!==t){for(var o,r,s,l,u,d,a=a||(e._view={}),h=i=i||(e._start={}),c=a,f=n,g=t,m=Object.keys(f),p=0,v=m.length;p<v;++p)if(s=f[o=m[p]],c.hasOwnProperty(o)||(c[o]=s),(l=c[o])!==s&&"_"!==o[0]){if(h.hasOwnProperty(o)||(h[o]=l),(l=typeof s)==typeof(r=h[o]))if("string"==l){if((u=y(r)).valid&&(d=y(s)).valid){c[o]=d.mix(u,g).rgbString();continue}}else if("number"==l&&isFinite(r)&&isFinite(s)){c[o]=r+(s-r)*g;continue}c[o]=s}}else e._view=n,e._start=null;return e},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return i.isNumber(this._model.x)&&i.isNumber(this._model.y)}}),a.extend=i.inherits,e.exports=a},{2:2,45:45}],27:[function(t,e,n){"use strict";var i=t(2),a=t(25),c=t(45);e.exports=function(l){function u(t,e,n){var i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}function d(t){return null!=t&&"none"!==t}function e(t,e,n){var i=document.defaultView,a=t.parentNode,o=i.getComputedStyle(t)[e],i=i.getComputedStyle(a)[e],e=d(o),r=d(i),s=Number.POSITIVE_INFINITY;return e||r?Math.min(e?u(o,t,n):s,r?u(i,a,n):s):"none"}c.configMerge=function(){return c.merge(c.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(t,e,n,i){var a=e[t]||{},o=n[t];"scales"===t?e[t]=c.scaleMerge(a,o):"scale"===t?e[t]=c.merge(a,[l.scaleService.getScaleDefaults(o.type),o]):c._merger(t,e,n,i)}})},c.scaleMerge=function(){return c.merge(c.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(t,e,n,i){if("xAxes"===t||"yAxes"===t){var a,o,r,s=n[t].length;for(e[t]||(e[t]=[]),a=0;a<s;++a)r=n[t][a],o=c.valueOrDefault(r.type,"xAxes"===t?"category":"linear"),a>=e[t].length&&e[t].push({}),!e[t][a].type||r.type&&r.type!==e[t][a].type?c.merge(e[t][a],[l.scaleService.getScaleDefaults(o),r]):c.merge(e[t][a],r)}else c._merger(t,e,n,i)}})},c.where=function(t,e){var n;return c.isArray(t)&&Array.prototype.filter?t.filter(e):(n=[],c.each(t,function(t){e(t)&&n.push(t)}),n)},c.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,a=t.length;i<a;++i)if(e.call(n,t[i],i,t))return i;return-1},c.findNextWhere=function(t,e,n){for(var i=(n=c.isNullOrUndef(n)?-1:n)+1;i<t.length;i++){var a=t[i];if(e(a))return a}},c.findPreviousWhere=function(t,e,n){for(var i=(n=c.isNullOrUndef(n)?t.length:n)-1;0<=i;i--){var a=t[i];if(e(a))return a}},c.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},c.almostEquals=function(t,e,n){return Math.abs(t-e)<n},c.almostWhole=function(t,e){var n=Math.round(t);return n-e<t&&t<n+e},c.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},c.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},c.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0===(t=+t)||isNaN(t)?t:0<t?1:-1},c.log10=Math.log10?function(t){return Math.log10(t)}:function(t){var e=Math.log(t)*Math.LOG10E,n=Math.round(e);return t===Math.pow(10,n)?n:e},c.toRadians=function(t){return t*(Math.PI/180)},c.toDegrees=function(t){return t*(180/Math.PI)},c.getAngleFromPoint=function(t,e){var n=e.x-t.x,e=e.y-t.y,t=Math.sqrt(n*n+e*e),e=Math.atan2(e,n);return e<-.5*Math.PI&&(e+=2*Math.PI),{angle:e,distance:t}},c.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},c.aliasPixel=function(t){return t%2==0?0:.5},c.splineCurve=function(t,e,n,i){var t=t.skip?e:t,a=e,e=n.skip?e:n,n=Math.sqrt(Math.pow(a.x-t.x,2)+Math.pow(a.y-t.y,2)),o=Math.sqrt(Math.pow(e.x-a.x,2)+Math.pow(e.y-a.y,2)),r=n/(n+o),n=o/(n+o),o=i*(isNaN(r)?0:r),r=i*(isNaN(n)?0:n);return{previous:{x:a.x-o*(e.x-t.x),y:a.y-o*(e.y-t.y)},next:{x:a.x+r*(e.x-t.x),y:a.y+r*(e.y-t.y)}}},c.EPSILON=Number.EPSILON||1e-14,c.splineCurveMonotone=function(t){for(var e,n,i,a,o,r,s,l,u=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),d=u.length,h=0;h<d;++h)(a=u[h]).model.skip||(n=0<h?u[h-1]:null,(i=h<d-1?u[h+1]:null)&&!i.model.skip&&(e=i.model.x-a.model.x,a.deltaK=0!=e?(i.model.y-a.model.y)/e:0),!n||n.model.skip?a.mK=a.deltaK:!i||i.model.skip?a.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(a.deltaK)?a.mK=0:a.mK=(n.deltaK+a.deltaK)/2);for(h=0;h<d-1;++h)a=u[h],i=u[h+1],a.model.skip||i.model.skip||(c.almostEquals(a.deltaK,0,this.EPSILON)?a.mK=i.mK=0:(o=a.mK/a.deltaK,r=i.mK/a.deltaK,(s=Math.pow(o,2)+Math.pow(r,2))<=9||(s=3/Math.sqrt(s),a.mK=o*s*a.deltaK,i.mK=r*s*a.deltaK)));for(h=0;h<d;++h)(a=u[h]).model.skip||(n=0<h?u[h-1]:null,i=h<d-1?u[h+1]:null,n&&!n.model.skip&&(l=(a.model.x-n.model.x)/3,a.model.controlPointPreviousX=a.model.x-l,a.model.controlPointPreviousY=a.model.y-l*a.mK),i&&!i.model.skip&&(l=(i.model.x-a.model.x)/3,a.model.controlPointNextX=a.model.x+l,a.model.controlPointNextY=a.model.y+l*a.mK))},c.nextItem=function(t,e,n){return n?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},c.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},c.niceNum=function(t,e){var n=Math.floor(c.log10(t)),t=t/Math.pow(10,n),e=e?t<1.5?1:t<3?2:t<7?5:10:t<=1?1:t<=2?2:t<=5?5:10;return e*Math.pow(10,n)},c.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},c.getRelativePosition=function(t,e){var n=t.originalEvent||t,t=t.currentTarget||t.srcElement,i=t.getBoundingClientRect(),a=n.touches,a=(a&&0<a.length?(l=a[0].clientX,a[0]):(l=n.clientX,n)).clientY,n=parseFloat(c.getStyle(t,"padding-left")),o=parseFloat(c.getStyle(t,"padding-top")),r=parseFloat(c.getStyle(t,"padding-right")),s=parseFloat(c.getStyle(t,"padding-bottom")),r=i.right-i.left-n-r,s=i.bottom-i.top-o-s,l=Math.round((l-i.left-n)/r*t.width/e.currentDevicePixelRatio);return{x:l,y:a=Math.round((a-i.top-o)/s*t.height/e.currentDevicePixelRatio)}},c.getConstraintWidth=function(t){return e(t,"max-width","clientWidth")},c.getConstraintHeight=function(t){return e(t,"max-height","clientHeight")},c.getMaximumWidth=function(t){var e,n,i=t.parentNode;return i?(n=parseInt(c.getStyle(i,"padding-left"),10),e=parseInt(c.getStyle(i,"padding-right"),10),i=i.clientWidth-n-e,n=c.getConstraintWidth(t),isNaN(n)?i:Math.min(i,n)):t.clientWidth},c.getMaximumHeight=function(t){var e,n,i=t.parentNode;return i?(n=parseInt(c.getStyle(i,"padding-top"),10),e=parseInt(c.getStyle(i,"padding-bottom"),10),i=i.clientHeight-n-e,n=c.getConstraintHeight(t),isNaN(n)?i:Math.min(i,n)):t.clientHeight},c.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},c.retinaScale=function(t,e){var n,i,a,e=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;1===e||(n=t.canvas,i=t.height,a=t.width,n.height=i*e,n.width=a*e,t.ctx.scale(e,e),n.style.height)||n.style.width||(n.style.height=i+"px",n.style.width=a+"px")},c.fontString=function(t,e,n){return e+" "+t+"px "+n},c.longestText=function(e,t,n,i){var a=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[],r=(i.font!==t&&(a=i.data={},o=i.garbageCollect=[],i.font=t),e.font=t,0),s=(c.each(n,function(t){null!=t&&!0!==c.isArray(t)?r=c.measureText(e,a,o,r,t):c.isArray(t)&&c.each(t,function(t){null==t||c.isArray(t)||(r=c.measureText(e,a,o,r,t))})}),o.length/2);if(s>n.length){for(var l=0;l<s;l++)delete a[o[l]];o.splice(0,s)}return r},c.measureText=function(t,e,n,i,a){var o=e[a];return o||(o=e[a]=t.measureText(a).width,n.push(a)),i=i<o?o:i},c.numberOfLabelLines=function(t){var e=1;return c.each(t,function(t){c.isArray(t)&&t.length>e&&(e=t.length)}),e},c.color=i?function(t){return t instanceof CanvasGradient&&(t=a.global.defaultColor),i(t)}:function(t){return console.error("Color.js not found!"),t},c.getHoverColor=function(t){return t instanceof CanvasPattern?t:c.color(t).saturate(.5).darken(.1).rgbString()}}},{2:2,25:25,45:45}],28:[function(t,e,n){"use strict";var i=t(45);function r(t,e){return t.native?{x:t.x,y:t.y}:i.getRelativePosition(t,e)}function s(t,e){for(var n,i,a,o=0,r=t.data.datasets.length;o<r;++o)if(t.isDatasetVisible(o))for(i=0,a=(n=t.getDatasetMeta(o)).data.length;i<a;++i){var s=n.data[i];s._view.skip||e(s)}}function l(t,e){var n=[];return s(t,function(t){t.inRange(e.x,e.y)&&n.push(t)}),n}function u(t,n,i,a){var o=Number.POSITIVE_INFINITY,r=[];return s(t,function(t){var e;i&&!t.inRange(n.x,n.y)||(e=t.getCenterPoint(),(e=a(n,e))<o?(r=[t],o=e):e===o&&r.push(t))}),r}function d(t){var i=-1!==t.indexOf("x"),a=-1!==t.indexOf("y");return function(t,e){var n=i?Math.abs(t.x-e.x):0,t=a?Math.abs(t.y-e.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(t,2))}}function a(n,t,e){var t=r(t,n),i=(e.axis=e.axis||"x",d(e.axis)),a=e.intersect?l(n,t):u(n,t,!1,i),o=[];return a.length?(n.data.datasets.forEach(function(t,e){n.isDatasetVisible(e)&&(e=n.getDatasetMeta(e).data[a[0]._index])&&!e._view.skip&&o.push(e)}),o):[]}e.exports={modes:{single:function(t,e){var n=r(e,t),i=[];return s(t,function(t){t.inRange(n.x,n.y)&&i.push(t)}),i.slice(0,1)},label:a,index:a,dataset:function(t,e,n){var e=r(e,t),i=(n.axis=n.axis||"xy",d(n.axis)),n=n.intersect?l(t,e):u(t,e,!1,i);return n=0<n.length?t.getDatasetMeta(n[0]._datasetIndex).data:n},"x-axis":function(t,e){return a(t,e,{intersect:!1})},point:function(t,e){return l(t,r(e,t))},nearest:function(t,e,n){var e=r(e,t),i=(n.axis=n.axis||"xy",d(n.axis)),t=u(t,e,n.intersect,i);return 1<t.length&&t.sort(function(t,e){var n=t.getArea()-e.getArea();return n=0===n?t._datasetIndex-e._datasetIndex:n}),t.slice(0,1)},x:function(t,e,n){var i=r(e,t),a=[],o=!1;return s(t,function(t){t.inXRange(i.x)&&a.push(t),t.inRange(i.x,i.y)&&(o=!0)}),a=n.intersect&&!o?[]:a},y:function(t,e,n){var i=r(e,t),a=[],o=!1;return s(t,function(t){t.inYRange(i.y)&&a.push(t),t.inRange(i.x,i.y)&&(o=!0)}),a=n.intersect&&!o?[]:a}}}},{45:45}],29:[function(t,e,n){"use strict";t(25)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){function t(t,e){return this.construct(t,e),this}return t.Chart=t}},{25:25}],30:[function(t,e,n){"use strict";var R=t(45);function L(t,e){return R.where(t,function(t){return t.position===e})}function Y(t,i){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,e){var n=i?e:t,t=i?t:e;return n.weight===t.weight?n._tmpIndex_-t._tmpIndex_:n.weight-t.weight}),t.forEach(function(t){delete t._tmpIndex_})}e.exports={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){e=t.boxes?t.boxes.indexOf(e):-1;-1!==e&&t.boxes.splice(e,1)},configure:function(t,e,n){for(var i,a=["fullWidth","position","weight"],o=a.length,r=0;r<o;++r)n.hasOwnProperty(i=a[r])&&(e[i]=n[i])},update:function(e,n,t){var i,a,o,r,s,l,u,d,h,c,f,g,m,p,v,y,b,x,_,k,w,M,S,D,C,P,T,O,I;function A(e){var t,n=R.findNextWhere(v,function(t){return t.box===e});n&&(e.isHorizontal()?(t={left:Math.max(k,y),right:Math.max(w,b),top:0,bottom:0},e.update(e.fullWidth?h:m,c/2,t)):e.update(n.minSize.width,p))}function F(t){t.isHorizontal()?(t.left=t.fullWidth?i:k,t.right=t.fullWidth?n-a:k+m,t.top=I,t.bottom=I+t.height,I=t.bottom):(t.left=O,t.right=O+t.width,t.top=M,t.bottom=M+p,O=t.right)}e&&(D=e.options.layout||{},D=R.options.toPadding(D.padding),i=D.left,a=D.right,o=D.top,D=D.bottom,r=L(e.boxes,"left"),s=L(e.boxes,"right"),l=L(e.boxes,"top"),u=L(e.boxes,"bottom"),d=L(e.boxes,"chartArea"),Y(r,!0),Y(s,!1),Y(l,!0),Y(u,!1),f=(n-(h=n-i-a)/2)/(r.length+s.length),g=(t-(c=t-o-D)/2)/(l.length+u.length),m=h,p=c,v=[],R.each(r.concat(s,l,u),function(t){var e,n=t.isHorizontal();n?(e=t.update(t.fullWidth?h:m,g),p-=e.height):(e=t.update(f,p),m-=e.width),v.push({horizontal:n,minSize:e,box:t})}),_=x=b=y=0,R.each(l.concat(u),function(t){t.getPadding&&(t=t.getPadding(),y=Math.max(y,t.left),b=Math.max(b,t.right))}),R.each(r.concat(s),function(t){t.getPadding&&(t=t.getPadding(),x=Math.max(x,t.top),_=Math.max(_,t.bottom))}),k=i,w=a,M=o,S=D,R.each(r.concat(s),A),R.each(r,function(t){k+=t.width}),R.each(s,function(t){w+=t.width}),R.each(l.concat(u),A),R.each(l,function(t){M+=t.height}),R.each(u,function(t){S+=t.height}),R.each(r.concat(s),function(e){var t=R.findNextWhere(v,function(t){return t.box===e}),n={left:0,right:0,top:M,bottom:S};t&&e.update(t.minSize.width,p,n)}),k=i,w=a,M=o,S=D,R.each(r,function(t){k+=t.width}),R.each(s,function(t){w+=t.width}),R.each(l,function(t){M+=t.height}),R.each(u,function(t){S+=t.height}),D=Math.max(y-k,0),k+=D,w+=Math.max(b-w,0),C=Math.max(x-M,0),M+=C,S+=Math.max(_-S,0),P=t-M-S,(T=n-k-w)===m&&P===p||(R.each(r,function(t){t.height=P}),R.each(s,function(t){t.height=P}),R.each(l,function(t){t.fullWidth||(t.width=T)}),R.each(u,function(t){t.fullWidth||(t.width=T)}),p=P,m=T),O=i+D,I=o+C,R.each(r.concat(l),F),O+=m,I+=p,R.each(s,F),R.each(u,F),e.chartArea={left:k,top:M,right:k+m,bottom:M+p},R.each(d,function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(m,p)}))}}},{45:45}],31:[function(t,e,n){"use strict";var r=t(25),s=t(45);r._set("global",{plugins:{}}),e.exports={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){t=e.indexOf(t);-1!==t&&e.splice(t,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){for(var i,a,o,r,s=this.descriptors(t),l=s.length,u=0;u<l;++u)if("function"==typeof(r=(a=(i=s[u]).plugin)[e])&&((o=[t].concat(n||[])).push(i.options),!1===r.apply(a,o)))return!1;return!0},descriptors:function(t){var i,a,o,e=t.$plugins||(t.$plugins={});return e.id===this._cacheId?e.descriptors:(i=[],a=[],t=t&&t.config||{},o=t.options&&t.options.plugins||{},this._plugins.concat(t.plugins||[]).forEach(function(t){var e,n;-1===i.indexOf(t)&&(e=t.id,!1!==(n=o[e]))&&(!0===n&&(n=s.clone(r.global.plugins[e])),i.push(t),a.push({plugin:t,options:n||{}}))}),e.descriptors=a,e.id=this._cacheId,a)},_invalidate:function(t){delete t.$plugins}}},{25:25,45:45}],32:[function(t,e,n){"use strict";var p=t(25),i=t(26),N=t(45),t=t(34);function f(t){for(var e=[],n=0,i=t.length;n<i;++n)e.push(t[n].label);return e}function z(t,e,n){var i=t.getPixelForTick(e);return n&&(i-=0===e?(t.getPixelForTick(1)-i)/2:(i-t.getPixelForTick(e-1))/2),i}p._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:t.formatters.values,minor:{},major:{}}}),e.exports=function(t){function c(t,e,n){return N.isArray(e)?N.longestText(t,n,e):t.measureText(e).width}function g(t){var e=N.valueOrDefault,n=p.global,i=e(t.fontSize,n.defaultFontSize),a=e(t.fontStyle,n.defaultFontStyle),e=e(t.fontFamily,n.defaultFontFamily);return{size:i,style:a,family:e,font:N.fontString(i,a,e)}}function m(t){return N.options.toLineHeight(N.valueOrDefault(t.lineHeight,1.2),N.valueOrDefault(t.fontSize,p.global.defaultFontSize))}t.Scale=i.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var t,e=this.options.ticks;for(t in!1===e.minor&&(e.minor={display:!1}),!1===e.major&&(e.major={display:!1}),e)"major"!==t&&"minor"!==t&&(void 0===e.minor[t]&&(e.minor[t]=e[t]),void 0===e.major[t])&&(e.major[t]=e[t])},beforeUpdate:function(){N.callback(this.options.beforeUpdate,[this])},update:function(t,e,n){var i,a,o,r,s,l,u=this;for(u.beforeUpdate(),u.maxWidth=t,u.maxHeight=e,u.margins=N.extend({left:0,right:0,top:0,bottom:0},n),u.longestTextCache=u.longestTextCache||{},u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),s=u.buildTicks()||[],u.afterBuildTicks(),u.beforeTickToLabelConversion(),o=u.convertTicksToLabels(s)||u.ticks,u.afterTickToLabelConversion(),i=0,a=(u.ticks=o).length;i<a;++i)r=o[i],(l=s[i])?l.label=r:s.push(l={label:r,major:!1});return u._ticks=s,u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u.afterUpdate(),u.minSize},afterUpdate:function(){N.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){N.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){N.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){N.callback(this.options.beforeDataLimits,[this])},determineDataLimits:N.noop,afterDataLimits:function(){N.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){N.callback(this.options.beforeBuildTicks,[this])},buildTicks:N.noop,afterBuildTicks:function(){N.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){N.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this.options.ticks;this.ticks=this.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){N.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){N.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,e=t.ctx,n=t.options.ticks,i=f(t._ticks),a=g(n),o=(e.font=a.font,n.minRotation||0);if(i.length&&t.options.display&&t.isHorizontal())for(var r=N.longestText(e,a.font,i,t.longestTextCache),s=r,l=t.getPixelForTick(1)-t.getPixelForTick(0)-6;l<s&&o<n.maxRotation;){var u=N.toRadians(o),d=Math.cos(u);if(Math.sin(u)*r>t.maxHeight){o--;break}o++,s=d*r}t.labelRotation=o},afterCalculateTickRotation:function(){N.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){N.callback(this.options.beforeFit,[this])},fit:function(){var t,e=this,n=e.minSize={width:0,height:0},i=f(e._ticks),a=e.options,o=a.ticks,r=a.scaleLabel,s=a.gridLines,l=a.display,u=e.isHorizontal(),d=g(o),h=a.gridLines.tickMarkLength;n.width=u?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:l&&s.drawTicks?h:0,n.height=u?l&&s.drawTicks?h:0:e.maxHeight,r.display&&l&&(s=m(r)+N.options.toPadding(r.padding).height,u?n.height+=s:n.width+=s),o.display&&l&&(h=N.longestText(e.ctx,d.font,i,e.longestTextCache),r=N.numberOfLabelLines(i),s=.5*d.size,l=e.options.ticks.padding,u?(e.longestLabelWidth=h,u=N.toRadians(e.labelRotation),t=Math.cos(u),u=Math.sin(u)*h+d.size*r+s*(r-1)+s,n.height=Math.min(e.maxHeight,n.height+u+l),e.ctx.font=d.font,r=c(e.ctx,i[0],d.font),u=c(e.ctx,i[i.length-1],d.font),0!==e.labelRotation?(e.paddingLeft="bottom"===a.position?t*r+3:t*s+3,e.paddingRight="bottom"===a.position?t*s+3:t*u+3):(e.paddingLeft=r/2+3,e.paddingRight=u/2+3)):(o.mirror?h=0:h+=l+s,n.width=Math.min(e.maxWidth,n.width+h),e.paddingTop=d.size/2,e.paddingBottom=d.size/2)),e.handleMargins(),e.width=n.width,e.height=n.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){N.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(N.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:N.noop,getPixelForValue:N.noop,getValueForPixel:N.noop,getPixelForTick:function(t){var e,n,i=this,a=i.options.offset;return i.isHorizontal()?(n=(e=(i.width-(i.paddingLeft+i.paddingRight))/Math.max(i._ticks.length-(a?0:1),1))*t+i.paddingLeft,a&&(n+=e/2),i.left+Math.round(n)+(i.isFullWidth()?i.margins.left:0)):(a=i.height-(i.paddingTop+i.paddingBottom),i.top+t*(a/(i._ticks.length-1)))},getPixelForDecimal:function(t){var e,n=this;return n.isHorizontal()?(e=(n.width-(n.paddingLeft+n.paddingRight))*t+n.paddingLeft,n.left+Math.round(e)+(n.isFullWidth()?n.margins.left:0)):n.top+t*n.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:0<t&&0<e?t:0},_autoSkip:function(t){var e,n,i,a,o=this,r=o.isHorizontal(),s=o.options.ticks.minor,l=t.length,u=N.toRadians(o.labelRotation),u=Math.cos(u),u=o.longestLabelWidth*u,d=[];for(s.maxTicksLimit&&(a=s.maxTicksLimit),r&&(e=!1,(u+s.autoSkipPadding)*l>o.width-(o.paddingLeft+o.paddingRight)&&(e=1+Math.floor((u+s.autoSkipPadding)*l/(o.width-(o.paddingLeft+o.paddingRight)))),a)&&a<l&&(e=Math.max(e,Math.floor(l/a))),n=0;n<l;n++)i=t[n],(1<e&&0<n%e||n%e==0&&l<=n+e)&&n!==l-1&&delete i.label,d.push(i);return d},draw:function(_){var r,k,w,M,t,S,D,C,s,l,u,d,P,e,n,T,O,I,A,F,R,L,i,a,o,h,c,f,Y=this,W=Y.options;W.display&&(r=Y.ctx,k=p.global,w=W.ticks.minor,e=W.ticks.major||w,M=W.gridLines,t=W.scaleLabel,S=0!==Y.labelRotation,D=Y.isHorizontal(),C=w.autoSkip?Y._autoSkip(Y.getTicks()):Y.getTicks(),s=N.valueOrDefault(w.fontColor,k.defaultFontColor),l=g(w),u=N.valueOrDefault(e.fontColor,k.defaultFontColor),d=g(e),P=M.drawTicks?M.tickMarkLength:0,e=N.valueOrDefault(t.fontColor,k.defaultFontColor),n=g(t),o=N.options.toPadding(t.padding),T=N.toRadians(Y.labelRotation),O=[],I=Y.options.gridLines.lineWidth,A="right"===W.position?Y.right:Y.right-I-P,F="right"===W.position?Y.right+P:Y.right,R="bottom"===W.position?Y.top+I:Y.bottom-P-I,L="bottom"===W.position?Y.top+I+P:Y.bottom+I,N.each(C,function(t,e){var n,i,a,o,r,s,l,u,d,h,c,f,g,m,p,v,y,b,x;N.isNullOrUndef(t.label)||(n=t.label,f=e===Y.zeroLineIndex&&W.offset===M.offsetGridLines?(i=M.zeroLineWidth,a=M.zeroLineColor,o=M.zeroLineBorderDash,M.zeroLineBorderDashOffset):(i=N.valueAtIndexOrDefault(M.lineWidth,e),a=N.valueAtIndexOrDefault(M.color,e),o=N.valueOrDefault(M.borderDash,k.borderDash),N.valueOrDefault(M.borderDashOffset,k.borderDashOffset)),m=g="middle",y=w.padding,D?(p=P+y,p="bottom"===W.position?(m=S?"middle":"top",g=S?"right":"center",Y.top+p):(m=S?"middle":"bottom",g=S?"left":"center",Y.bottom-p),(v=z(Y,e,M.offsetGridLines&&1<C.length))<Y.left&&(a="rgba(0,0,0,0)"),v+=N.aliasPixel(i),b=Y.getPixelForTick(e)+w.labelOffset,r=l=d=v=v,s=R,u=L,h=_.top,c=_.bottom+I):(x="left"===W.position,y=w.mirror?(g=x?"left":"right",y):(g=x?"right":"left",P+y),b=x?Y.right-y:Y.left+y,(x=z(Y,e,M.offsetGridLines&&1<C.length))<Y.top&&(a="rgba(0,0,0,0)"),x+=N.aliasPixel(i),p=Y.getPixelForTick(e)+w.labelOffset,r=A,l=F,d=_.left,v=_.right+I,s=u=h=c=x),O.push({tx1:r,ty1:s,tx2:l,ty2:u,x1:d,y1:h,x2:v,y2:c,labelX:b,labelY:p,glWidth:i,glColor:a,glBorderDash:o,glBorderDashOffset:f,rotation:-1*T,label:n,major:t.major,textBaseline:m,textAlign:g}))}),N.each(O,function(t){if(M.display&&(r.save(),r.lineWidth=t.glWidth,r.strokeStyle=t.glColor,r.setLineDash&&(r.setLineDash(t.glBorderDash),r.lineDashOffset=t.glBorderDashOffset),r.beginPath(),M.drawTicks&&(r.moveTo(t.tx1,t.ty1),r.lineTo(t.tx2,t.ty2)),M.drawOnChartArea&&(r.moveTo(t.x1,t.y1),r.lineTo(t.x2,t.y2)),r.stroke(),r.restore()),w.display){r.save(),r.translate(t.labelX,t.labelY),r.rotate(t.rotation),r.font=(t.major?d:l).font,r.fillStyle=t.major?u:s,r.textBaseline=t.textBaseline,r.textAlign=t.textAlign;var e=t.label;if(N.isArray(e))for(var n=e.length,i=1.5*l.size,a=Y.isHorizontal()?0:-i*(n-1)/2,o=0;o<n;++o)r.fillText(""+e[o],0,a),a+=i;else r.fillText(e,0,0);r.restore()}}),t.display&&(i=0,a=m(t)/2,D?(c=Y.left+(Y.right-Y.left)/2,f="bottom"===W.position?Y.bottom-a-o.bottom:Y.top+a+o.top):(c=(h="left"===W.position)?Y.left+a+o.top:Y.right-a-o.top,f=Y.top+(Y.bottom-Y.top)/2,i=h?-.5*Math.PI:.5*Math.PI),r.save(),r.translate(c,f),r.rotate(i),r.textAlign="center",r.textBaseline="middle",r.fillStyle=e,r.font=n.font,r.fillText(t.labelString,0,0),r.restore()),M.drawBorder)&&(r.lineWidth=N.valueAtIndexOrDefault(M.lineWidth,0),r.strokeStyle=N.valueAtIndexOrDefault(M.color,0),a=Y.left,o=Y.right+I,h=Y.top,c=Y.bottom+I,f=N.aliasPixel(r.lineWidth),D?(h=c="top"===W.position?Y.bottom:Y.top,h+=f,c+=f):(a=o="left"===W.position?Y.right:Y.left,a+=f,o+=f),r.beginPath(),r.moveTo(a,h),r.lineTo(o,c),r.stroke())}})}},{25:25,26:26,34:34,45:45}],33:[function(t,e,n){"use strict";var i=t(25),a=t(45),o=t(30);e.exports=function(t){t.scaleService={constructors:{},defaults:{},registerScaleType:function(t,e,n){this.constructors[t]=e,this.defaults[t]=a.clone(n)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?a.merge({},[i.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){this.defaults.hasOwnProperty(t)&&(this.defaults[t]=a.extend(this.defaults[t],e))},addScalesToLayout:function(e){a.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,o.addBox(e,t)})}}}},{25:25,30:30,45:45}],34:[function(t,e,n){"use strict";var a=t(45);e.exports={formatters:{values:function(t){return a.isArray(t)?t:""+t},linear:function(t,e,n){var n=3<n.length?n[2]-n[1]:n[1]-n[0],n=(1<Math.abs(n)&&t!==Math.floor(t)&&(n=t-Math.floor(t)),a.log10(Math.abs(n)));return 0!==t?(n=-1*Math.floor(n),n=Math.max(Math.min(n,20),0),t.toFixed(n)):"0"},logarithmic:function(t,e,n){var i=t/Math.pow(10,Math.floor(a.log10(t)));return 0===t?"0":1==i||2==i||5==i||0===e||e===n.length-1?t.toExponential():""}}}},{45:45}],35:[function(t,e,n){"use strict";var i=t(25),a=t(26),W=t(45);i._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:W.noop,title:function(t,e){var n="",e=e.labels,i=e?e.length:0;return 0<t.length&&((t=t[0]).xLabel?n=t.xLabel:0<i&&t.index<i&&(n=e[t.index])),n},afterTitle:W.noop,beforeBody:W.noop,beforeLabel:W.noop,label:function(t,e){e=e.datasets[t.datasetIndex].label||"";return e&&(e+=": "),e+=t.yLabel},labelColor:function(t,e){e=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:e.borderColor,backgroundColor:e.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:W.noop,afterBody:W.noop,beforeFooter:W.noop,footer:W.noop,afterFooter:W.noop}}}),e.exports=function(R){function h(t,e){t=W.color(t);return t.alpha(e*t.alpha()).rgbaString()}function r(t,e){return e&&(W.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function L(t){var e=i.global,n=W.valueOrDefault;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,bodyFontColor:t.bodyFontColor,_bodyFontFamily:n(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:n(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:n(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:n(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:n(t.titleFontStyle,e.defaultFontStyle),titleFontSize:n(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:n(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:n(t.footerFontStyle,e.defaultFontStyle),footerFontSize:n(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function Y(t,e){function n(t){a=Math.max(a,i.measureText(t).width+c)}var i=t._chart.ctx,t=2*e.yPadding,a=0,o=e.body,r=o.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0),s=(r+=e.beforeBody.length+e.afterBody.length,e.title.length),l=e.footer.length,u=e.titleFontSize,d=e.bodyFontSize,h=e.footerFontSize,c=(t=(t=(t=(t=(t=t+s*u+(s?(s-1)*e.titleSpacing:0))+(s?e.titleMarginBottom:0))+r*d+(r?(r-1)*e.bodySpacing:0))+(l?e.footerMarginTop:0))+l*h+(l?(l-1)*e.footerSpacing:0),0);return i.font=W.fontString(u,e._titleFontStyle,e._titleFontFamily),W.each(e.title,n),i.font=W.fontString(d,e._bodyFontStyle,e._bodyFontFamily),W.each(e.beforeBody.concat(e.afterBody),n),c=e.displayColors?d+2:0,W.each(o,function(t){W.each(t.before,n),W.each(t.lines,n),W.each(t.after,n)}),c=0,i.font=W.fontString(h,e._footerFontStyle,e._footerFontFamily),W.each(e.footer,n),{width:a+=2*e.xPadding,height:t}}R.Tooltip=a.extend({initialize:function(){this._model=L(this._options),this._lastActive=[]},getTitle:function(){var t=this._options.callbacks,e=t.beforeTitle.apply(this,arguments),n=t.title.apply(this,arguments),t=t.afterTitle.apply(this,arguments),e=r([],e);return e=r(e,n),r(e,t)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return W.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,n){var i=this,a=i._options.callbacks,o=[];return W.each(t,function(t){var e={before:[],lines:[],after:[]};r(e.before,a.beforeLabel.call(i,t,n)),r(e.lines,a.label.call(i,t,n)),r(e.after,a.afterLabel.call(i,t,n)),o.push(e)}),o},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return W.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),n=t.footer.apply(this,arguments),t=t.afterFooter.apply(this,arguments),e=r([],e);return e=r(e,n),r(e,t)},update:function(t){var e,n,i,a,o,r,s,l,u,d,h,c,f,g,m,p,v,y,b,x=this,_=x._options,k=x._model,w=x._model=L(_),M=x._active,S=x._data,D={xAlign:k.xAlign,yAlign:k.yAlign},C={x:k.x,y:k.y},P={width:k.width,height:k.height},k={x:k.caretX,y:k.caretY};if(M.length){w.opacity=1;for(var T=[],O=[],k=R.Tooltip.positioners[_.position].call(x,M,x._eventPosition),I=[],A=0,F=M.length;A<F;++A)I.push((m=M[A],b=y=v=p=void 0,p=m._xScale,v=m._yScale||m._scale,y=m._index,b=m._datasetIndex,{xLabel:p?p.getLabelForIndex(y,b):"",yLabel:v?v.getLabelForIndex(y,b):"",index:y,datasetIndex:b,x:m._model.x,y:m._model.y}));_.filter&&(I=I.filter(function(t){return _.filter(t,S)})),_.itemSort&&(I=I.sort(function(t,e){return _.itemSort(t,e,S)})),W.each(I,function(t){T.push(_.callbacks.labelColor.call(x,t,x._chart)),O.push(_.callbacks.labelTextColor.call(x,t,x._chart))}),w.title=x.getTitle(I,S),w.beforeBody=x.getBeforeBody(I,S),w.body=x.getBody(I,S),w.afterBody=x.getAfterBody(I,S),w.footer=x.getFooter(I,S),w.x=Math.round(k.x),w.y=Math.round(k.y),w.caretPadding=_.caretPadding,w.labelColors=T,w.labelTextColors=O,w.dataPoints=I,P=Y(this,w),i=P,a=(n=this)._model,o=n._chart,r=n._chart.chartArea,l=s="center",a.y<i.height?l="top":a.y>o.height-i.height&&(l="bottom"),u=(r.left+r.right)/2,d=(r.top+r.bottom)/2,r="center"===l?(g=function(t){return t<=u},function(t){return u<t}):(g=function(t){return t<=i.width/2},function(t){return t>=o.width-i.width/2}),h=function(t){return t+i.width+a.caretSize+a.caretPadding>o.width},c=function(t){return t-i.width-a.caretSize-a.caretPadding<0},f=function(t){return t<=d?"top":"bottom"},g(a.x)?(s="left",h(a.x)&&(s="center",l=f(a.y))):r(a.x)&&(s="right",c(a.x))&&(s="center",l=f(a.y)),D={xAlign:(g=n._options).xAlign||s,yAlign:g.yAlign||l},h=w,r=P,c=D,f=x._chart,n=h.x,s=h.y,g=h.caretSize,l=h.caretPadding,h=h.cornerRadius,e=c.xAlign,c=c.yAlign,g+=l,h+=l,"right"===e?n-=r.width:"center"===e&&(n=(n-=r.width/2)+r.width>f.width?f.width-r.width:n)<0&&(n=0),"top"===c?s+=g:s-="bottom"===c?r.height+g:r.height/2,"center"===c?"left"===e?n+=g:"right"===e&&(n-=g):"left"===e?n-=h:"right"===e&&(n+=h),C={x:n,y:s}}else w.opacity=0;return w.xAlign=D.xAlign,w.yAlign=D.yAlign,w.x=C.x,w.y=C.y,w.width=P.width,w.height=P.height,w.caretX=k.x,w.caretY=k.y,x._model=w,t&&_.custom&&_.custom.call(x,w),x},drawCaret:function(t,e){var n=this._chart.ctx,i=this._view,t=this.getCaretPosition(t,e,i);n.lineTo(t.x1,t.y1),n.lineTo(t.x2,t.y2),n.lineTo(t.x3,t.y3)},getCaretPosition:function(t,e,n){var i,a,o,r,s,l,u=n.caretSize,d=n.cornerRadius,h=n.xAlign,c=n.yAlign,f=t.x,t=t.y,g=e.width,e=e.height;return"center"===c?(o=t+e/2,r="left"===h?(i=(l=f)-u,s=l,a=o+u,o-u):(i=(l=f+g)+u,s=l,a=o-u,o+u)):(s=(l="left"===h?(i=f+d+u)-u:"right"===h?(i=f+g-d-u)-u:(i=n.caretX)-u,i+u),"top"===c?(o=(a=t)-u,r=a):(o=(a=t+e)+u,r=a,h=s,s=l,l=h)),{x1:l,x2:i,x3:s,y1:a,y2:o,y3:r}},drawTitle:function(t,e,n,i){var a=e.title;if(a.length){n.textAlign=e._titleAlign,n.textBaseline="top";var o,r,s=e.titleFontSize,l=e.titleSpacing;for(n.fillStyle=h(e.titleFontColor,i),n.font=W.fontString(s,e._titleFontStyle,e._titleFontFamily),o=0,r=a.length;o<r;++o)n.fillText(a[o],t.x,t.y),t.y+=s+l,o+1===a.length&&(t.y+=e.titleMarginBottom-l)}},drawBody:function(i,a,o,r){function s(t){o.fillText(t,i.x+n,i.y),i.y+=l+e}var l=a.bodyFontSize,e=a.bodySpacing,t=a.body,n=(o.textAlign=a._bodyAlign,o.textBaseline="top",o.font=W.fontString(l,a._bodyFontStyle,a._bodyFontFamily),0),u=(o.fillStyle=h(a.bodyFontColor,r),W.each(a.beforeBody,s),a.displayColors),n=u?l+2:0;W.each(t,function(t,e){var n=h(a.labelTextColors[e],r);o.fillStyle=n,W.each(t.before,s),W.each(t.lines,function(t){u&&(o.fillStyle=h(a.legendColorBackground,r),o.fillRect(i.x,i.y,l,l),o.lineWidth=1,o.strokeStyle=h(a.labelColors[e].borderColor,r),o.strokeRect(i.x,i.y,l,l),o.fillStyle=h(a.labelColors[e].backgroundColor,r),o.fillRect(i.x+1,i.y+1,l-2,l-2),o.fillStyle=n),s(t)}),W.each(t.after,s)}),n=0,W.each(a.afterBody,s),i.y-=e},drawFooter:function(e,n,i,t){var a=n.footer;a.length&&(e.y+=n.footerMarginTop,i.textAlign=n._footerAlign,i.textBaseline="top",i.fillStyle=h(n.footerFontColor,t),i.font=W.fontString(n.footerFontSize,n._footerFontStyle,n._footerFontFamily),W.each(a,function(t){i.fillText(t,e.x,e.y),e.y+=n.footerFontSize+n.footerSpacing}))},drawBackground:function(t,e,n,i,a){n.fillStyle=h(e.backgroundColor,a),n.strokeStyle=h(e.borderColor,a),n.lineWidth=e.borderWidth;var a=e.xAlign,o=e.yAlign,r=t.x,s=t.y,l=i.width,u=i.height,d=e.cornerRadius;n.beginPath(),n.moveTo(r+d,s),"top"===o&&this.drawCaret(t,i),n.lineTo(r+l-d,s),n.quadraticCurveTo(r+l,s,r+l,s+d),"center"===o&&"right"===a&&this.drawCaret(t,i),n.lineTo(r+l,s+u-d),n.quadraticCurveTo(r+l,s+u,r+l-d,s+u),"bottom"===o&&this.drawCaret(t,i),n.lineTo(r+d,s+u),n.quadraticCurveTo(r,s+u,r,s+u-d),"center"===o&&"left"===a&&this.drawCaret(t,i),n.lineTo(r,s+d),n.quadraticCurveTo(r,s,r+d,s),n.closePath(),n.fill(),0<e.borderWidth&&n.stroke()},draw:function(){var t,e,n,i,a=this._chart.ctx,o=this._view;0!==o.opacity&&(t={width:o.width,height:o.height},e={x:o.x,y:o.y},n=Math.abs(o.opacity<.001)?0:o.opacity,i=o.title.length||o.beforeBody.length||o.body.length||o.afterBody.length||o.footer.length,this._options.enabled)&&i&&(this.drawBackground(e,o,a,t,n),e.x+=o.xPadding,e.y+=o.yPadding,this.drawTitle(e,o,a,n),this.drawBody(e,o,a,n),this.drawFooter(e,o,a,n))},handleEvent:function(t){var e,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===t.type?n._active=[]:n._active=n._chart.getElementsAtEventForMode(t,i.mode,i),(e=!W.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,i.enabled||i.custom)&&(n._eventPosition={x:t.x,y:t.y},n.update(!0),n.pivot()),e}}),R.Tooltip.positioners={average:function(t){if(!t.length)return!1;for(var e=0,n=0,i=0,a=0,o=t.length;a<o;++a){var r=t[a];r&&r.hasValue()&&(e+=(r=r.tooltipPosition()).x,n+=r.y,++i)}return{x:Math.round(e/i),y:Math.round(n/i)}},nearest:function(t,e){for(var n,i,a=e.x,o=e.y,r=Number.POSITIVE_INFINITY,s=0,l=t.length;s<l;++s){var u,d=t[s];d&&d.hasValue()&&(u=d.getCenterPoint(),(u=W.distanceBetweenPoints(e,u))<r)&&(r=u,n=d)}return n&&(a=(i=n.tooltipPosition()).x,o=i.y),{x:a,y:o}}}}},{25:25,26:26,45:45}],36:[function(t,e,n){"use strict";var i=t(25),a=t(26),r=t(45);i._set("global",{elements:{arc:{backgroundColor:i.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),e.exports=a.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var n=this._view;if(n){for(var t=r.getAngleFromPoint(n,{x:t,y:e}),i=t.angle,e=t.distance,a=n.startAngle,o=n.endAngle;o<a;)o+=2*Math.PI;for(;o<i;)i-=2*Math.PI;for(;i<a;)i+=2*Math.PI;t=e>=n.innerRadius&&e<=n.outerRadius;return a<=i&&i<=o&&t}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,n){"use strict";var i=t(25),a=t(26),d=t(45),h=i.global;i._set("global",{elements:{line:{tension:.4,backgroundColor:h.defaultColor,borderWidth:3,borderColor:h.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,n,i,a=this._view,o=this._chart.ctx,r=a.spanGaps,s=this._children.slice(),l=h.elements.line,u=-1;for(this._loop&&s.length&&s.push(s[0]),o.save(),o.lineCap=a.borderCapStyle||l.borderCapStyle,o.setLineDash&&o.setLineDash(a.borderDash||l.borderDash),o.lineDashOffset=a.borderDashOffset||l.borderDashOffset,o.lineJoin=a.borderJoinStyle||l.borderJoinStyle,o.lineWidth=a.borderWidth||l.borderWidth,o.strokeStyle=a.borderColor||h.defaultColor,o.beginPath(),u=-1,t=0;t<s.length;++t)e=s[t],n=d.previousItem(s,t),i=e._view,0===t?i.skip||(o.moveTo(i.x,i.y),u=t):(n=-1===u?n:s[u],i.skip||(u!==t-1&&!r||-1===u?o.moveTo(i.x,i.y):d.canvas.lineTo(o,n._view,e._view),u=t));o.stroke(),o.restore()}})},{25:25,26:26,45:45}],38:[function(t,e,n){"use strict";var d=t(25),i=t(26),h=t(45),c=d.global.defaultColor;function a(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}d._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:c,borderColor:c,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),e.exports=i.extend({inRange:function(t,e){var n=this._view;return!!n&&Math.pow(t-n.x,2)+Math.pow(e-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:a,inXRange:a,inYRange:function(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,n=this._model,i=this._chart.ctx,a=e.pointStyle,o=e.radius,r=e.x,s=e.y,l=h.color,u=0;e.skip||(i.strokeStyle=e.borderColor||c,i.lineWidth=h.valueOrDefault(e.borderWidth,d.global.elements.point.borderWidth),i.fillStyle=e.backgroundColor||c,void 0!==t&&(n.x<t.left||1.01*t.right<n.x||n.y<t.top||1.01*t.bottom<n.y)&&(n.x<t.left?u=(r-n.x)/(t.left-n.x):1.01*t.right<n.x?u=(n.x-r)/(n.x-t.right):n.y<t.top?u=(s-n.y)/(t.top-n.y):1.01*t.bottom<n.y&&(u=(n.y-s)/(n.y-t.bottom)),u=Math.round(100*u)/100,i.strokeStyle=l(i.strokeStyle).alpha(u).rgbString(),i.fillStyle=l(i.fillStyle).alpha(u).rgbString()),h.canvas.drawPoint(i,a,o,r,s))}})},{25:25,26:26,45:45}],39:[function(t,e,n){"use strict";var i=t(25),t=t(26);function o(t){return void 0!==t._view.width}function a(t){var e,n,i,a=t._view;return a=o(t)?(t=a.width/2,e=a.x-t,n=a.x+t,i=Math.min(a.y,a.base),Math.max(a.y,a.base)):(t=a.height/2,e=Math.min(a.x,a.base),n=Math.max(a.x,a.base),i=a.y-t,a.y+t),{left:e,top:i,right:n,bottom:a}}i._set("global",{elements:{rectangle:{backgroundColor:i.global.defaultColor,borderColor:i.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=t.extend({draw:function(){var t,e,n,i,a,o,r,s,l,u=this._chart.ctx,d=this._view,h=d.borderWidth,c=d.horizontal?(t=d.base,e=d.x,n=d.y-d.height/2,i=d.y+d.height/2,a=t<e?1:-1,l=1,d.borderSkipped||"left"):(t=d.x-d.width/2,e=d.x+d.width/2,a=1,l=(n=d.y)<(i=d.base)?1:-1,d.borderSkipped||"bottom"),f=(h&&(r=(h=(r=Math.min(Math.abs(t-e),Math.abs(n-i)))<h?r:h)/2,s=n+("top"!==c?r*l:0),l=i+("bottom"!==c?-r*l:0),(o=t+("left"!==c?r*a:0))!==(r=e+("right"!==c?-r*a:0))&&(n=s,i=l),s!==l)&&(t=o,e=r),u.beginPath(),u.fillStyle=d.backgroundColor,u.strokeStyle=d.borderColor,u.lineWidth=h,[[t,i],[t,n],[e,n],[e,i]]),g=["bottom","left","top","right"].indexOf(c,0);function m(t){return f[(g+t)%4]}-1===g&&(g=0);var p=m(0);u.moveTo(p[0],p[1]);for(var v=1;v<4;v++)p=m(v),u.lineTo(p[0],p[1]);u.fill(),h&&u.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n,i=!1;return i=this._view?t>=(n=a(this)).left&&t<=n.right&&e>=n.top&&e<=n.bottom:i},inLabelRange:function(t,e){var n;return!!this._view&&(n=a(this),o(this)?t>=n.left&&t<=n.right:e>=n.top&&e<=n.bottom)},inXRange:function(t){var e=a(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=a(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e=this._view,e=o(this)?(t=e.x,(e.y+e.base)/2):(t=(e.x+e.base)/2,e.y);return{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,n){"use strict";t=t(42),n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,a,o){var r;o?(r=Math.min(o,i/2),o=Math.min(o,a/2),t.moveTo(e+r,n),t.lineTo(e+i-r,n),t.quadraticCurveTo(e+i,n,e+i,n+o),t.lineTo(e+i,n+a-o),t.quadraticCurveTo(e+i,n+a,e+i-r,n+a),t.lineTo(e+r,n+a),t.quadraticCurveTo(e,n+a,e,n+a-o),t.lineTo(e,n+o),t.quadraticCurveTo(e,n,e+r,n)):t.rect(e,n,i,a)},drawPoint:function(t,e,n,i,a){var o,r,s,l;if(!e||"object"!=typeof e||"[object HTMLImageElement]"!==(o=e.toString())&&"[object HTMLCanvasElement]"!==o){if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(i,a,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),d=(u=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(i-u/2,a+d/3),t.lineTo(i+u/2,a+d/3),t.lineTo(i,a-2*d/3),t.closePath(),t.fill();break;case"rect":l=1/Math.SQRT2*n,t.beginPath(),t.fillRect(i-l,a-l,2*l,2*l),t.strokeRect(i-l,a-l,2*l,2*l);break;case"rectRounded":var u=n/Math.SQRT2,d=i-u,u=a-u,h=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,d,u,h,h,n/2),t.closePath(),t.fill();break;case"rectRot":l=1/Math.SQRT2*n,t.beginPath(),t.moveTo(i-l,a),t.lineTo(i,a+l),t.lineTo(i+l,a),t.lineTo(i,a-l),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(i,a+n),t.lineTo(i,a-n),t.moveTo(i-n,a),t.lineTo(i+n,a),t.closePath();break;case"crossRot":t.beginPath(),r=Math.cos(Math.PI/4)*n,s=Math.sin(Math.PI/4)*n,t.moveTo(i-r,a-s),t.lineTo(i+r,a+s),t.moveTo(i-r,a+s),t.lineTo(i+r,a-s),t.closePath();break;case"star":t.beginPath(),t.moveTo(i,a+n),t.lineTo(i,a-n),t.moveTo(i-n,a),t.lineTo(i+n,a),r=Math.cos(Math.PI/4)*n,s=Math.sin(Math.PI/4)*n,t.moveTo(i-r,a-s),t.lineTo(i+r,a+s),t.moveTo(i-r,a+s),t.lineTo(i+r,a-s),t.closePath();break;case"line":t.beginPath(),t.moveTo(i-n,a),t.lineTo(i+n,a),t.closePath();break;case"dash":t.beginPath(),t.moveTo(i,a),t.lineTo(i+n,a),t.closePath()}t.stroke()}}else t.drawImage(e,i-e.width/2,a-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){n.steppedLine?("after"===n.steppedLine&&!i||"after"!==n.steppedLine&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),t.lineTo(n.x,n.y)):n.tension?t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}};t.clear=n.clear,t.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments),t.closePath()}},{42:42}],42:[function(t,e,n){"use strict";var i,d={noop:function(){},uid:(i=0,function(){return i++}),isNullOrUndef:function(t){return null==t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return d.valueOrDefault(d.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,i){var a,o,r;if(d.isArray(t))if(o=t.length,i)for(a=o-1;0<=a;a--)e.call(n,t[a],a);else for(a=0;a<o;a++)e.call(n,t[a],a);else if(d.isObject(t))for(o=(r=Object.keys(t)).length,a=0;a<o;a++)e.call(n,t[r[a]],r[a])},arrayEquals:function(t,e){var n,i,a,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(a=t[n],o=e[n],a instanceof Array&&o instanceof Array){if(!d.arrayEquals(a,o))return!1}else if(a!==o)return!1;return!0},clone:function(t){if(d.isArray(t))return t.map(d.clone);if(d.isObject(t)){for(var e={},n=Object.keys(t),i=n.length,a=0;a<i;++a)e[n[a]]=d.clone(t[n[a]]);return e}return t},_merger:function(t,e,n,i){var a=e[t],n=n[t];d.isObject(a)&&d.isObject(n)?d.merge(a,n,i):e[t]=d.clone(n)},_mergerIf:function(t,e,n){var i=e[t],n=n[t];d.isObject(i)&&d.isObject(n)?d.mergeIf(i,n):e.hasOwnProperty(t)||(e[t]=d.clone(n))},merge:function(t,e,n){var i,a,o,r,s,l=d.isArray(e)?e:[e],u=l.length;if(d.isObject(t))for(i=(n=n||{}).merger||d._merger,a=0;a<u;++a)if(e=l[a],d.isObject(e))for(s=0,r=(o=Object.keys(e)).length;s<r;++s)i(o[s],t,e,n);return t},mergeIf:function(t,e){return d.merge(t,e,{merger:d._mergerIf})},extend:function(n){for(var t=function(t,e){n[e]=t},e=1,i=arguments.length;e<i;++e)d.each(arguments[e],t);return n},inherits:function(t){function e(){this.constructor=i}var n=this,i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return n.apply(this,arguments)};return e.prototype=n.prototype,i.prototype=new e,i.extend=d.inherits,t&&d.extend(i.prototype,t),i.__super__=n.prototype,i}};(e.exports=d).callCallback=d.callback,d.indexOf=function(t,e,n){return Array.prototype.indexOf.call(t,e,n)},d.getValueOrDefault=d.valueOrDefault,d.getValueAtIndexOrDefault=d.valueAtIndexOrDefault},{}],43:[function(t,e,n){"use strict";var t=t(42),i={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return 1<=t?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n=n||.3,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),-(i*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/n)))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n=n||.3,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n=n||.45,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){return t*t*(2.70158*t-1.70158)},easeOutBack:function(t){return(t-=1)*t*(2.70158*t+1.70158)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-i.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*i.easeInBounce(2*t):.5*i.easeOutBounce(2*t-1)+.5}};e.exports={effects:i},t.easingEffects=i},{42:42}],44:[function(t,e,n){"use strict";var r=t(42);e.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,i,a;return r.isObject(t)?(e=+t.top||0,n=+t.right||0,i=+t.bottom||0,a=+t.left||0):e=n=i=a=+t||0,{top:e,right:n,bottom:i,left:a,height:e+i,width:a+n}},resolve:function(t,e,n){for(var i,a=0,o=t.length;a<o;++a)if(void 0!==(i=t[a])&&(void 0!==e&&"function"==typeof i&&(i=i(e)),void 0!==(i=void 0!==n&&r.isArray(i)?i[n]:i)))return i}}},{42:42}],45:[function(t,e,n){"use strict";e.exports=t(42),e.exports.easing=t(43),e.exports.canvas=t(41),e.exports.options=t(44)},{41:41,42:42,43:43,44:44}],46:[function(t,e,n){e.exports={acquireContext:function(t){return(t=t&&t.canvas?t.canvas:t)&&t.getContext("2d")||null}}},{}],47:[function(t,e,n){"use strict";var b=t(45),x="$chartjs",_="chartjs-",k=_+"render-monitor",w=_+"render-animation",M=["animationstart","webkitAnimationStart"],r={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function s(t,e){t=b.getStyle(t,e),e=t&&t.match(/^(\d+)(\.\d+)?px$/);return e?Number(e[1]):void 0}var i=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};function S(t,e,n){t.addEventListener(e,n,i)}function o(t,e,n){t.removeEventListener(e,n,i)}function D(t,e,n,i,a){return{type:t,chart:e,native:a||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function l(e,t,n){var i,a,o,r,s,l,u,d,h,c,f,g,m,p=e[x]||(e[x]={}),v=p.resizer=(h=!(l=function(){if(p.resizer)return t(D("resize",n))}),i=function(){d=Array.prototype.slice.call(arguments),u=u||this,h||(h=!0,b.requestAnimFrame.call(window,function(){h=!1,l.apply(u,d)}))},a=document.createElement("div"),g=_+"size-monitor",o="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;",a.style.cssText=o,a.className=g,a.innerHTML='<div class="'+g+'-expand" style="'+o+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+g+'-shrink" style="'+o+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>',r=a.childNodes[0],s=a.childNodes[1],a._reset=function(){r.scrollLeft=1e6,r.scrollTop=1e6,s.scrollLeft=1e6,s.scrollTop=1e6},S(r,"scroll",y.bind(r,"expand")),S(s,"scroll",y.bind(s,"shrink")),a);function y(){a._reset(),i()}f=function(){var t;p.resizer&&((t=e.parentNode)&&t!==v.parentNode&&t.insertBefore(v,t.firstChild),v._reset())},g=(c=e)[x]||(c[x]={}),m=g.renderProxy=function(t){t.animationName===w&&f()},b.each(M,function(t){S(c,t,m)}),g.reflow=!!c.offsetParent,c.classList.add(k)}function a(t){var e,n,i=t[x]||{},a=i.resizer;delete i.resizer,i=(e=t)[x]||{},(n=i.renderProxy)&&(b.each(M,function(t){o(e,t,n)}),delete i.renderProxy),e.classList.remove(k),a&&a.parentNode&&a.parentNode.removeChild(a)}e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t,e,n="from{opacity:0.99}to{opacity:1}";n="@-webkit-keyframes "+w+"{"+n+"}@keyframes "+w+"{"+n+"}."+k+"{-webkit-animation:"+w+" 0.001s;animation:"+w+" 0.001s;}",e=(t=this)._style||document.createElement("style"),t._style||(n="/* Chart.js */\n"+n,(t._style=e).setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(e)),e.appendChild(document.createTextNode(n))},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]);var n,i,a,o,r=(t=t&&t.canvas?t.canvas:t)&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(e=e,i=(t=t).style,a=t.getAttribute("height"),o=t.getAttribute("width"),t[x]={initial:{height:a,width:o,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",null!==o&&""!==o||void 0!==(n=s(t,"width"))&&(t.width=n),null!==a&&""!==a||(""===t.style.height?t.height=t.width/(e.options.aspectRatio||2):(i=s(t,"height"),void 0!==n&&(t.height=i))),r):null},releaseContext:function(t){var n,i=t.canvas;i[x]&&(n=i[x].initial,["height","width"].forEach(function(t){var e=n[t];b.isNullOrUndef(e)?i.removeAttribute(t):i.setAttribute(t,e)}),b.each(n.style||{},function(t,e){i.style[e]=t}),i.width=i.width,delete i[x])},addEventListener:function(a,t,o){var e=a.canvas;"resize"===t?l(e,o,a):S(e,t,((e=o[x]||(o[x]={})).proxies||(e.proxies={}))[a.id+"_"+t]=function(t){var e,n,i;o((e=a,n=r[(t=t).type]||t.type,i=b.getRelativePosition(t,e),D(n,e,i.x,i.y,t)))})},removeEventListener:function(t,e,n){var i=t.canvas;"resize"===e?a(i):(n=((n[x]||{}).proxies||{})[t.id+"_"+e])&&o(i,e,n)}},b.addEvent=S,b.removeEvent=o},{45:45}],48:[function(t,e,n){"use strict";var i=t(45),a=t(46),t=t(47),t=t._enabled?t:a;e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},t)},{45:45,46:46,47:47}],49:[function(t,e,n){"use strict";e.exports={},e.exports.filler=t(50),e.exports.legend=t(51),e.exports.title=t(52)},{50:50,51:51,52:52}],50:[function(t,e,n){"use strict";var w=t(25),c=t(40),M=t(45),f=(w._set("global",{plugins:{filler:{propagate:!0}}}),{dataset:function(t){var e=t.fill,t=t.chart,n=t.getDatasetMeta(e),i=n&&t.isDatasetVisible(e)&&n.dataset._children||[],a=i.length||0;return a?function(t,e){return e<a&&i[e]._view||null}:null},boundary:function(t){var t=t.boundary,e=t?t.x:null,n=t?t.y:null;return function(t){return{x:null===e?t.x:e,y:null===n?t.y:n}}}});function S(t){return t&&!t.skip}function D(t,e,n,i,a){var o;if(i&&a){for(t.moveTo(e[0].x,e[0].y),o=1;o<i;++o)M.canvas.lineTo(t,e[o-1],e[o]);for(t.lineTo(n[a-1].x,n[a-1].y),o=a-1;0<o;--o)M.canvas.lineTo(t,n[o],n[o-1],!0)}}e.exports={id:"filler",afterDatasetsUpdate:function(t,e){for(var n,i,a,o,r,s,l=(t.data.datasets||[]).length,u=e.propagate,d=[],h=0;h<l;++h)a=null,(i=(n=t.getDatasetMeta(h)).dataset)&&i._model&&i instanceof c.Line&&(a={visible:t.isDatasetVisible(h),fill:function(t,e,n){var i=(t=t._model||{}).fill;if(!1===(i=void 0===i?!!t.backgroundColor:i)||null===i)return!1;if(!0===i)return"origin";if(t=parseFloat(i,10),isFinite(t)&&Math.floor(t)===t)return!((t="-"!==i[0]&&"+"!==i[0]?t:e+t)===e||t<0||n<=t)&&t;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}(i,h,l),chart:t,el:i}),n.$filler=a,d.push(a);for(h=0;h<l;++h)(a=d[h])&&(a.fill=function(t,e,n){var i,a=t[e].fill,o=[e];if(!n)return a;for(;!1!==a&&-1===o.indexOf(a);){if(!isFinite(a))return a;if(!(i=t[a]))return!1;if(i.visible)return a;o.push(a),a=i.fill}return!1}(d,h,u),a.boundary=function(t){var e=t.el._model||{},n=t.el._scale||{},t=t.fill,i=null;if(!isFinite(t)&&("start"===t?i=void 0===e.scaleBottom?n.bottom:e.scaleBottom:"end"===t?i=void 0===e.scaleTop?n.top:e.scaleTop:void 0!==e.scaleZero?i=e.scaleZero:n.getBasePosition?i=n.getBasePosition():n.getBasePixel&&(i=n.getBasePixel()),null!=i)){if(void 0!==i.x&&void 0!==i.y)return i;if("number"==typeof i&&isFinite(i))return{x:(t=n.isHorizontal())?i:null,y:t?null:i}}return null}(a),a.mapper=(s=r=void 0,r=(o=a).fill,!(s="dataset")===r?null:(isFinite(r)||(s="boundary"),f[s](o))))},beforeDatasetDraw:function(t,e){e=e.meta.$filler;if(e){var n=t.ctx,i=e.el,a=i._view,o=i._children||[],e=e.mapper,r=a.backgroundColor||w.global.defaultColor;if(e&&r&&o.length){M.canvas.clipArea(n,t.chartArea);var s,l,u,d,h,c,f=n,g=o,m=e,p=a,t=r,o=i._loop,v=g.length,y=p.spanGaps,b=[],x=[],_=0,k=0;for(f.beginPath(),s=0,l=v+!!o;s<l;++s)d=m(u=g[d=s%v]._view,d,p),h=S(u),c=S(d),h&&c?(_=b.push(u),k=x.push(d)):_&&k&&(y?(h&&b.push(u),c&&x.push(d)):(D(f,b,x,_,k),_=k=0,b=[],x=[]));D(f,b,x,_,k),f.closePath(),f.fillStyle=t,f.fill(),M.canvas.unclipArea(n)}}}}},{25:25,40:40,45:45}],51:[function(t,e,n){"use strict";var C=t(25),i=t(26),P=t(45),a=t(30),t=P.noop;function T(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}C._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var e=e.datasetIndex,n=this.chart,i=n.getDatasetMeta(e);i.hidden=null===i.hidden?!n.data.datasets[e].hidden:null,n.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(n){var t=n.data;return P.isArray(t.datasets)?t.datasets.map(function(t,e){return{text:t.label,fillStyle:P.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!n.isDatasetVisible(e),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:e}},this):[]}}},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var n=0;n<t.data.datasets.length;n++)e.push('<li><span style="background-color:'+t.data.datasets[n].backgroundColor+'"></span>'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("</li>");return e.push("</ul>"),e.join("")}});var o=i.extend({initialize:function(t){P.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:t,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:function(){var e=this,n=e.options.labels||{},t=P.callback(n.generateLabels,[e.chart],e)||[];n.filter&&(t=t.filter(function(t){return n.filter(t,e.chart.data)})),e.options.reverse&&t.reverse(),e.legendItems=t},afterBuildLabels:t,beforeFit:t,fit:function(){var n,i,a,o,r,s,l,u=this,t=u.options,d=t.labels,t=t.display,h=u.ctx,e=C.global,c=P.valueOrDefault,f=c(d.fontSize,e.defaultFontSize),g=c(d.fontStyle,e.defaultFontStyle),c=c(d.fontFamily,e.defaultFontFamily),e=P.fontString(f,g,c),m=u.legendHitBoxes=[],p=u.minSize,g=u.isHorizontal();g?(p.width=u.maxWidth,p.height=t?10:0):(p.width=t?10:0,p.height=u.maxHeight),t&&(h.font=e,g?(n=u.lineWidths=[0],i=u.legendItems.length?f+d.padding:0,h.textAlign="left",h.textBaseline="top",P.each(u.legendItems,function(t,e){t=T(d,f)+f/2+h.measureText(t.text).width;n[n.length-1]+t+d.padding>=u.width&&(i+=f+d.padding,n[n.length]=u.left),m[e]={left:0,top:0,width:t,height:f},n[n.length-1]+=t+d.padding}),p.height+=i):(c=d.padding,a=u.columnWidths=[],o=d.padding,s=r=0,l=f+c,P.each(u.legendItems,function(t,e){t=T(d,f)+f/2+h.measureText(t.text).width;s+l>p.height&&(o+=r+d.padding,a.push(r),s=r=0),r=Math.max(r,t),s+=l,m[e]={left:0,top:0,width:t,height:f}}),o+=r,a.push(r),p.width+=o)),u.width=p.width,u.height=p.height},afterFit:t,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var c,f,t,g,e,n,m,p,v,y,b,x=this,_=x.options,k=_.labels,w=C.global,M=w.elements.line,S=x.width,D=x.lineWidths;_.display&&(c=x.ctx,t=(f=P.valueOrDefault)(k.fontColor,w.defaultFontColor),g=f(k.fontSize,w.defaultFontSize),n=f(k.fontStyle,w.defaultFontStyle),e=f(k.fontFamily,w.defaultFontFamily),n=P.fontString(g,n,e),c.textAlign="left",c.textBaseline="middle",c.lineWidth=.5,c.strokeStyle=t,c.fillStyle=t,c.font=n,m=T(k,g),p=x.legendHitBoxes,v=x.isHorizontal(),y=v?{x:x.left+(S-D[0])/2,y:x.top+k.padding,line:0}:{x:x.left+k.padding,y:x.top+k.padding,line:0},b=g+k.padding,P.each(x.legendItems,function(t,e){var n,i,a,o,r,s,l=c.measureText(t.text).width,u=m+g/2+l,d=y.x,h=y.y;v?S<=d+u&&(h=y.y+=b,y.line++,d=y.x=x.left+(S-D[y.line])/2):h+b>x.bottom&&(d=y.x=d+x.columnWidths[y.line]+k.padding,h=y.y=x.top+k.padding,y.line++),i=d,n=h,a=t,isNaN(m)||m<=0||(c.save(),c.fillStyle=f(a.fillStyle,w.defaultColor),c.lineCap=f(a.lineCap,M.borderCapStyle),c.lineDashOffset=f(a.lineDashOffset,M.borderDashOffset),c.lineJoin=f(a.lineJoin,M.borderJoinStyle),c.lineWidth=f(a.lineWidth,M.borderWidth),c.strokeStyle=f(a.strokeStyle,w.defaultColor),s=0===f(a.lineWidth,M.borderWidth),c.setLineDash&&c.setLineDash(f(a.lineDash,M.borderDash)),_.labels&&_.labels.usePointStyle?(r=(o=g*Math.SQRT2/2)/Math.SQRT2,P.canvas.drawPoint(c,a.pointStyle,o,i+r,n+r)):(s||c.strokeRect(i,n,m,g),c.fillRect(i,n,m,g)),c.restore()),p[e].left=d,p[e].top=h,a=h,o=t,r=l,i=m+(s=g/2)+(i=d),a+=s,c.fillText(o.text,i,a),o.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(i,a),c.lineTo(i+r,a),c.stroke()),v?y.x+=u+k.padding:y.y+=b}))},handleEvent:function(t){var e=this,n=e.options,i="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===i){if(!n.onHover)return}else{if("click"!==i)return;if(!n.onClick)return}var o=t.x,r=t.y;if(o>=e.left&&o<=e.right&&r>=e.top&&r<=e.bottom)for(var s=e.legendHitBoxes,l=0;l<s.length;++l){var u=s[l];if(o>=u.left&&o<=u.left+u.width&&r>=u.top&&r<=u.top+u.height){if("click"===i){n.onClick.call(e,t.native,e.legendItems[l]),a=!0;break}if("mousemove"===i){n.onHover.call(e,t.native,e.legendItems[l]),a=!0;break}}}return a}});function r(t,e){var n=new o({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.legend=n}e.exports={id:"legend",_element:o,beforeInit:function(t){var e=t.options.legend;e&&r(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(P.mergeIf(e,C.global.legend),n?(a.configure(t,n,e),n.options=e):r(t,e)):n&&(a.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){t=t.legend;t&&t.handleEvent(e)}}},{25:25,26:26,30:30,45:45}],52:[function(t,e,n){"use strict";var y=t(25),i=t(26),b=t(45),a=t(30),t=b.noop,o=(y._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),i.extend({initialize:function(t){b.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:t,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:t,afterBuildLabels:t,beforeFit:t,fit:function(){var t=b.valueOrDefault,e=this.options,n=e.display,t=t(e.fontSize,y.global.defaultFontSize),i=this.minSize,a=b.isArray(e.text)?e.text.length:1,t=b.options.toLineHeight(e.lineHeight,t),n=n?a*t+2*e.padding:0;this.isHorizontal()?(i.width=this.maxWidth,i.height=n):(i.width=n,i.height=this.maxHeight),this.width=i.width,this.height=i.height},afterFit:t,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this.ctx,e=b.valueOrDefault,n=this.options,i=y.global;if(n.display){var a,o,r,s=e(n.fontSize,i.defaultFontSize),l=e(n.fontStyle,i.defaultFontStyle),u=e(n.fontFamily,i.defaultFontFamily),l=b.fontString(s,l,u),d=b.options.toLineHeight(n.lineHeight,s),u=d/2+n.padding,s=0,h=this.top,c=this.left,f=this.bottom,g=this.right,m=(t.fillStyle=e(n.fontColor,i.defaultFontColor),t.font=l,this.isHorizontal()?(o=c+(g-c)/2,r=h+u,a=g-c):(o="left"===n.position?c+u:g-u,r=h+(f-h)/2,a=f-h,s=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(o,r),t.rotate(s),t.textAlign="center",t.textBaseline="middle",n.text);if(b.isArray(m))for(var p=0,v=0;v<m.length;++v)t.fillText(m[v],0,p,a),p+=d;else t.fillText(m,0,0,a);t.restore()}}}));function r(t,e){var n=new o({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.titleBlock=n}e.exports={id:"title",_element:o,beforeInit:function(t){var e=t.options.title;e&&r(t,e)},beforeUpdate:function(t){var e=t.options.title,n=t.titleBlock;e?(b.mergeIf(e,y.global.title),n?(a.configure(t,n,e),n.options=e):r(t,e)):n&&(a.removeBox(t,n),delete t.titleBlock)}}},{25:25,26:26,30:30,45:45}],53:[function(t,e,n){"use strict";e.exports=function(t){var e=t.Scale.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,e=this,n=e.getLabels();e.minIndex=0,e.maxIndex=n.length-1,void 0!==e.options.ticks.min&&(t=n.indexOf(e.options.ticks.min),e.minIndex=-1!==t?t:e.minIndex),void 0!==e.options.ticks.max&&(t=n.indexOf(e.options.ticks.max),e.maxIndex=-1!==t?t:e.maxIndex),e.min=n[e.minIndex],e.max=n[e.maxIndex]},buildTicks:function(){var t=this.getLabels();this.ticks=0===this.minIndex&&this.maxIndex===t.length-1?t:t.slice(this.minIndex,this.maxIndex+1)},getLabelForIndex:function(t,e){var n=this.chart.data,i=this.isHorizontal();return n.yLabels&&!i?this.getRightValue(n.datasets[e].data[t]):this.ticks[t-this.minIndex]},getPixelForValue:function(t,e){var n,i=this,a=i.options.offset,o=Math.max(i.maxIndex+1-i.minIndex-(a?0:1),1);return(void 0!==(n=null!=t?i.isHorizontal()?t.x:t.y:n)||void 0!==t&&isNaN(e))&&(e=-1!==(n=i.getLabels().indexOf(t=n||t))?n:e),i.isHorizontal()?(n=(t=i.width/o)*(e-i.minIndex),a&&(n+=t/2),i.left+Math.round(n)):(n=(t=i.height/o)*(e-i.minIndex),a&&(n+=t/2),i.top+Math.round(n))},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this.options.offset,n=Math.max(this._ticks.length-(e?0:1),1),i=this.isHorizontal(),n=(i?this.width:this.height)/n;return t-=i?this.left:this.top,e&&(t-=n/2),(t<=0?0:Math.round(t/n))+this.minIndex},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",e,{position:"bottom"})}},{}],54:[function(t,e,n){"use strict";var i=t(25),h=t(45),a=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.linear}},n=t.LinearScaleBase.extend({determineDataLimits:function(){var r=this,s=r.options,l=r.chart,t=l.data.datasets,e=r.isHorizontal();function u(t){return e?t.xAxisID===r.id:t.yAxisID===r.id}r.min=null,r.max=null;var d,i=s.stacked;void 0===i&&h.each(t,function(t,e){var n;i||(n=l.getDatasetMeta(e),l.isDatasetVisible(e)&&u(n)&&void 0!==n.stack&&(i=!0))}),s.stacked||i?(d={},h.each(t,function(t,e){var n=l.getDatasetMeta(e),i=[n.type,void 0===s.stacked&&void 0===n.stack?e:"",n.stack].join("."),a=(void 0===d[i]&&(d[i]={positiveValues:[],negativeValues:[]}),d[i].positiveValues),o=d[i].negativeValues;l.isDatasetVisible(e)&&u(n)&&h.each(t.data,function(t,e){t=+r.getRightValue(t);isNaN(t)||n.data[e].hidden||(a[e]=a[e]||0,o[e]=o[e]||0,s.relativePoints?a[e]=100:t<0?o[e]+=t:a[e]+=t)})}),h.each(d,function(t){var t=t.positiveValues.concat(t.negativeValues),e=h.min(t),t=h.max(t);r.min=null===r.min?e:Math.min(r.min,e),r.max=null===r.max?t:Math.max(r.max,t)})):h.each(t,function(t,e){var n=l.getDatasetMeta(e);l.isDatasetVisible(e)&&u(n)&&h.each(t.data,function(t,e){t=+r.getRightValue(t);!isNaN(t)&&!n.data[e].hidden&&((null===r.min||t<r.min)&&(r.min=t),null===r.max||t>r.max)&&(r.max=t)})}),r.min=isFinite(r.min)&&!isNaN(r.min)?r.min:0,r.max=isFinite(r.max)&&!isNaN(r.max)?r.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this.options.ticks;return this.isHorizontal()?Math.min(e.maxTicksLimit||11,Math.ceil(this.width/50)):(t=h.valueOrDefault(e.fontSize,i.global.defaultFontSize),Math.min(e.maxTicksLimit||11,Math.ceil(this.height/(2*t))))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this.start,t=+this.getRightValue(t),n=this.end-e,n=this.isHorizontal()?this.left+this.width/n*(t-e):this.bottom-this.height/n*(t-e);return n},getValueForPixel:function(t){var e=this.isHorizontal(),n=e?this.width:this.height,e=(e?t-this.left:this.bottom-t)/n;return this.start+(this.end-this.start)*e},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,e)}},{25:25,34:34,45:45}],55:[function(t,e,n){"use strict";var u=t(45);e.exports=function(e){var t=u.noop;e.LinearScaleBase=e.Scale.extend({getRightValue:function(t){return"string"==typeof t?+t:e.Scale.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks,n=(e.beginAtZero&&(n=u.sign(t.min),i=u.sign(t.max),n<0&&i<0?t.max=0:0<n&&0<i&&(t.min=0)),void 0!==e.min||void 0!==e.suggestedMin),i=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),n!=i&&t.min>=t.max&&(n?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),n={maxTicks:Math.max(2,n),min:e.min,max:e.max,stepSize:u.valueOrDefault(e.fixedStepSize,e.stepSize)},n=t.ticks=function(t,e){var n,i=[],a=(n=t.stepSize&&0<t.stepSize?t.stepSize:(o=u.niceNum(e.max-e.min,!1),u.niceNum(o/(t.maxTicks-1),!0)),Math.floor(e.min/n)*n),o=Math.ceil(e.max/n)*n,r=(t.min&&t.max&&t.stepSize&&u.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(a=t.min,o=t.max),(o-a)/n),r=u.almostEquals(r,Math.round(r),n/1e3)?Math.round(r):Math.ceil(r),s=1;n<1&&(s=Math.pow(10,n.toString().length-2),a=Math.round(a*s)/s,o=Math.round(o*s)/s),i.push(void 0!==t.min?t.min:a);for(var l=1;l<r;++l)i.push(Math.round((a+l*n)*s)/s);return i.push(void 0!==t.max?t.max:o),i}(n,t);t.handleDirectionalChanges(),t.max=u.max(n),t.min=u.min(n),e.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){this.ticksAsNumbers=this.ticks.slice(),this.zeroLineIndex=this.ticks.indexOf(0),e.Scale.prototype.convertTicksToLabels.call(this)}})}},{45:45}],56:[function(t,e,n){"use strict";var h=t(45),i=t(34);e.exports=function(d){var t={position:"left",ticks:{callback:i.formatters.logarithmic}},e=d.Scale.extend({determineDataLimits:function(){var o=this,n=o.options,r=o.chart,t=r.data.datasets,e=o.isHorizontal();function s(t){return e?t.xAxisID===o.id:t.yAxisID===o.id}o.min=null,o.max=null,o.minNotZero=null;var l,i=n.stacked;void 0===i&&h.each(t,function(t,e){var n;i||(n=r.getDatasetMeta(e),r.isDatasetVisible(e)&&s(n)&&void 0!==n.stack&&(i=!0))}),n.stacked||i?(l={},h.each(t,function(t,e){var i=r.getDatasetMeta(e),a=[i.type,void 0===n.stacked&&void 0===i.stack?e:"",i.stack].join(".");r.isDatasetVisible(e)&&s(i)&&(void 0===l[a]&&(l[a]=[]),h.each(t.data,function(t,e){var n=l[a],t=+o.getRightValue(t);isNaN(t)||i.data[e].hidden||t<0||(n[e]=n[e]||0,n[e]+=t)}))}),h.each(l,function(t){var e;0<t.length&&(e=h.min(t),t=h.max(t),o.min=null===o.min?e:Math.min(o.min,e),o.max=null===o.max?t:Math.max(o.max,t))})):h.each(t,function(t,e){var n=r.getDatasetMeta(e);r.isDatasetVisible(e)&&s(n)&&h.each(t.data,function(t,e){t=+o.getRightValue(t);isNaN(t)||n.data[e].hidden||t<0||((null===o.min||t<o.min)&&(o.min=t),(null===o.max||t>o.max)&&(o.max=t),0!=t&&(null===o.minNotZero||t<o.minNotZero)&&(o.minNotZero=t))})}),this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks,n=h.valueOrDefault;t.min=n(e.min,t.min),t.max=n(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(h.log10(t.min))-1),t.max=Math.pow(10,Math.floor(h.log10(t.max))+1)):(t.min=1,t.max=10)),null===t.min&&(t.min=Math.pow(10,Math.floor(h.log10(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(h.log10(t.min))+1):10),null===t.minNotZero&&(0<t.min?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(h.log10(t.max))):t.minNotZero=1)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),i={min:e.min,max:e.max},i=t.ticks=function(t,e){for(var n,i,a=[],o=h.valueOrDefault,r=o(t.min,Math.pow(10,Math.floor(h.log10(e.min)))),s=Math.floor(h.log10(e.max)),l=Math.ceil(e.max/Math.pow(10,s)),u=(0===r?(n=Math.floor(h.log10(e.minNotZero)),i=Math.floor(e.minNotZero/Math.pow(10,n)),a.push(r),r=i*Math.pow(10,n)):(n=Math.floor(h.log10(r)),i=Math.floor(r/Math.pow(10,n))),n<0?Math.pow(10,Math.abs(n)):1);a.push(r),10===++i&&(i=1,u=0<=++n?1:u),r=Math.round(i*Math.pow(10,n)*u)/u,n<s||n===s&&i<l;);return e=o(t.max,r),a.push(e),a}(i,t);t.max=h.max(i),t.min=h.min(i),e.reverse?(n=!n,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),n&&i.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),d.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},_getFirstTickValue:function(t){var e=Math.floor(h.log10(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},getPixelForValue:function(t){var e,n,i,a,o=this,r=o.options.ticks.reverse,s=h.log10,l=o._getFirstTickValue(o.minNotZero),u=0;return t=+o.getRightValue(t),a=r?(n=o.end,i=o.start,-1):(n=o.start,i=o.end,1),r=o.isHorizontal()?(e=o.width,r?o.right:o.left):(e=o.height,a*=-1,r?o.top:o.bottom),t!==n&&(0===n&&(e-=u=h.getValueOrDefault(o.options.ticks.fontSize,d.defaults.global.defaultFontSize),n=l),0!==t&&(u+=e/(s(i)-s(n))*(s(t)-s(n))),r+=a*u),r},getValueForPixel:function(t){var e,n,i=this,a=i.options.ticks.reverse,o=h.log10,r=i._getFirstTickValue(i.minNotZero),s=a?(n=i.end,i.start):(n=i.start,i.end),a=i.isHorizontal()?(e=i.width,a?i.right-t:t-i.left):(e=i.height,a?t-i.top:i.bottom-t);return a!==n&&(0===n&&(a-=t=h.getValueOrDefault(i.options.ticks.fontSize,d.defaults.global.defaultFontSize),e-=t,n=r),a=a*(o(s)-o(n))/e,a=Math.pow(10,o(n)+a)),a}});d.scaleService.registerScaleType("logarithmic",e,t)}},{34:34,45:45}],57:[function(t,e,n){"use strict";var o=t(25),_=t(45),s=t(34);e.exports=function(t){var y=o.global,e={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:s.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function b(t){var e=t.options;return e.angleLines.display||e.pointLabels.display?t.chart.data.labels.length:0}function x(t){var t=t.options.pointLabels,e=_.valueOrDefault(t.fontSize,y.defaultFontSize),n=_.valueOrDefault(t.fontStyle,y.defaultFontStyle),t=_.valueOrDefault(t.fontFamily,y.defaultFontFamily);return{size:e,style:n,family:t,font:_.fontString(e,n,t)}}function c(t,e,n,i,a){return t===i||t===a?{start:e-n/2,end:e+n/2}:t<i||a<t?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function n(t){for(var e,n,i=x(t),a=Math.min(t.height/2,t.width/2),o={r:t.width,l:0,t:t.height,b:0},r={},s=(t.ctx.font=i.font,t._pointLabelSizes=[],b(t)),l=0;l<s;l++){e=t.getPointPosition(l,a),n=t.ctx,d=i.size,u=t.pointLabels[l]||"",n=_.isArray(u)?{w:_.longestText(n,n.font,u),h:u.length*d+1.5*(u.length-1)*d}:{w:n.measureText(u).width,h:d},t._pointLabelSizes[l]=n;var u=t.getIndexAngle(l),d=_.toDegrees(u)%360,h=c(d,e.x,n.w,0,180),d=c(d,e.y,n.h,90,270);h.start<o.l&&(o.l=h.start,r.l=u),h.end>o.r&&(o.r=h.end,r.r=u),d.start<o.t&&(o.t=d.start,r.t=u),d.end>o.b&&(o.b=d.end,r.b=u)}t.setReductions(a,o,r)}function i(t){var e=t.ctx,n=t.options,i=n.angleLines,a=n.pointLabels,o=(e.lineWidth=i.lineWidth,e.strokeStyle=i.color,t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max)),r=x(t);e.textBaseline="top";for(var s,l=b(t)-1;0<=l;l--)if(i.display&&(u=t.getPointPosition(l,o),e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(u.x,u.y),e.stroke(),e.closePath()),a.display){var u=t.getPointPosition(l,o+5),d=_.valueAtIndexOrDefault(a.fontColor,l,y.defaultFontColor),d=(e.font=r.font,e.fillStyle=d,t.getIndexAngle(l)),d=_.toDegrees(d),h=(e.textAlign=0===(g=d)||180===g?"center":g<180?"left":"right",g=d,d=t._pointLabelSizes[l],s=u,90===g||270===g?s.y-=d.h/2:(270<g||g<90)&&(s.y-=d.h),v=p=m=g=f=c=h=void 0,e),c=t.pointLabels[l]||"",f=u,g=r.size;if(_.isArray(c))for(var m=f.y,p=1.5*g,v=0;v<c.length;++v)h.fillText(c[v],f.x,m),m+=p;else h.fillText(c,f.x,f.y)}}function r(t){return _.isNumber(t)?t:0}var a=t.LinearScaleBase.extend({setDimensions:function(){var t=this,e=t.options,n=e.ticks,i=(t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2),_.min([t.height,t.width])),a=_.valueOrDefault(n.fontSize,y.defaultFontSize);t.drawingArea=e.display?i/2-(a/2+n.backdropPaddingY):i/2},determineDataLimits:function(){var i=this,a=i.chart,o=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;_.each(a.data.datasets,function(t,e){var n;a.isDatasetVisible(e)&&(n=a.getDatasetMeta(e),_.each(t.data,function(t,e){t=+i.getRightValue(t);isNaN(t)||n.data[e].hidden||(o=Math.min(t,o),r=Math.max(t,r))}))}),i.min=o===Number.POSITIVE_INFINITY?0:o,i.max=r===Number.NEGATIVE_INFINITY?0:r,i.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,e=_.valueOrDefault(t.fontSize,y.defaultFontSize);return Math.min(t.maxTicksLimit||11,Math.ceil(this.drawingArea/(1.5*e)))},convertTicksToLabels:function(){t.LinearScaleBase.prototype.convertTicksToLabels.call(this),this.pointLabels=this.chart.data.labels.map(this.options.pointLabels.callback,this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,e;this.options.pointLabels.display?n(this):(t=this,e=Math.min(t.height/2,t.width/2),t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0))},setReductions:function(t,e,n){var i=e.l/Math.sin(n.l),a=Math.max(e.r-this.width,0)/Math.sin(n.r),o=-e.t/Math.cos(n.t),e=-Math.max(e.b-this.height,0)/Math.cos(n.b),i=r(i),a=r(a),o=r(o),e=r(e);this.drawingArea=Math.min(Math.round(t-(i+a)/2),Math.round(t-(o+e)/2)),this.setCenterPoint(i,a,o,e)},setCenterPoint:function(t,e,n,i){var a=this,e=a.width-e-a.drawingArea,t=t+a.drawingArea,n=n+a.drawingArea,i=a.height-i-a.drawingArea;a.xCenter=Math.round((t+e)/2+a.left),a.yCenter=Math.round((n+i)/2+a.top)},getIndexAngle:function(t){return t*(2*Math.PI/b(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e;return null===t?0:(e=this.drawingArea/(this.max-this.min),this.options.ticks.reverse?(this.max-t)*e:(t-this.min)*e)},getPointPosition:function(t,e){t=this.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(t)*e)+this.xCenter,y:Math.round(Math.sin(t)*e)+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:0<t&&0<e?t:0)},draw:function(){var d,h,c,t,e,f,g=this,n=g.options,m=n.gridLines,p=n.ticks,v=_.valueOrDefault;n.display&&(d=g.ctx,h=this.getIndexAngle(0),c=v(p.fontSize,y.defaultFontSize),t=v(p.fontStyle,y.defaultFontStyle),e=v(p.fontFamily,y.defaultFontFamily),f=_.fontString(c,t,e),_.each(g.ticks,function(t,e){if(0<e||p.reverse){var n=g.getDistanceFromCenterForValue(g.ticksAsNumbers[e]);if(m.display&&0!==e){var i=g,a=m,o=n,r=i.ctx;if(r.strokeStyle=_.valueAtIndexOrDefault(a.color,e-1),r.lineWidth=_.valueAtIndexOrDefault(a.lineWidth,e-1),i.options.gridLines.circular)r.beginPath(),r.arc(i.xCenter,i.yCenter,o,0,2*Math.PI),r.closePath(),r.stroke();else{var s=b(i);if(0!==s){r.beginPath();var l=i.getPointPosition(0,o);r.moveTo(l.x,l.y);for(var u=1;u<s;u++)l=i.getPointPosition(u,o),r.lineTo(l.x,l.y);r.closePath(),r.stroke()}}}p.display&&(a=v(p.fontColor,y.defaultFontColor),d.font=f,d.save(),d.translate(g.xCenter,g.yCenter),d.rotate(h),p.showLabelBackdrop&&(e=d.measureText(t).width,d.fillStyle=p.backdropColor,d.fillRect(-e/2-p.backdropPaddingX,-n-c/2-p.backdropPaddingY,e+2*p.backdropPaddingX,c+2*p.backdropPaddingY)),d.textAlign="center",d.textBaseline="middle",d.fillStyle=a,d.fillText(t,0,-n),d.restore())}}),n.angleLines.display||n.pointLabels.display)&&i(g)}});t.scaleService.registerScaleType("radialLinear",a,e)}},{25:25,34:34,45:45}],58:[function(t,e,n){"use strict";var D="function"==typeof(D=t(6))?D:window.moment,a=t(25),m=t(45),p=Number.MIN_SAFE_INTEGER||-9007199254740991,v=Number.MAX_SAFE_INTEGER||9007199254740991,C={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},P=Object.keys(C);function y(t,e){return t-e}function b(t){for(var e,n={},i=[],a=0,o=t.length;a<o;++a)n[e=t[a]]||(n[e]=!0,i.push(e));return i}function T(t,e,n,i){var a=function(t,e,n){for(var i,a,o,r=0,s=t.length-1;0<=r&&r<=s;){if(a=t[(i=r+s>>1)-1]||null,o=t[i],!a)return{lo:null,hi:o};if(o[e]<n)r=1+i;else{if(!(a[e]>n))return{lo:a,hi:o};s=i-1}}return{lo:o,hi:null}}(t,e,n),o=a.lo?a.hi?a.lo:t[t.length-2]:t[0],a=a.lo?a.hi||t[t.length-1]:t[1],t=a[e]-o[e],n=t?(n-o[e])/t:0,e=(a[i]-o[i])*n;return o[i]+e}function O(t,e){var n=e.parser,e=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof e?D(t,e):!(t=t instanceof D?t:D(t)).isValid()&&"function"==typeof e?e(t):t}function I(t,e){var n;return!m.isNullOrUndef(t)&&(n=e.options.time,(e=O(e.getRightValue(t),n)).isValid())?(n.round&&e.startOf(n.round),e.valueOf()):null}function A(t){for(var e=P.indexOf(t)+1,n=P.length;e<n;++e)if(C[P[e]].common)return P[e]}function F(t,e,n,i){var a,o=i.time,r=o.unit||function(t,e,n,i){for(var a,o,r=P.length,s=P.indexOf(t);s<r-1;++s)if(o=(a=C[P[s]]).steps?a.steps[a.steps.length-1]:v,a.common&&Math.ceil((n-e)/(o*a.size))<=i)return P[s];return P[r-1]}(o.minUnit,t,e,n),s=A(r),l=m.valueOrDefault(o.stepSize,o.unitStepSize),u="week"===r&&o.isoWeekday,i=i.ticks.major.enabled,d=C[r],h=D(t),c=D(e),f=[],l=l||function(t,e,n,i){var a,o,r,s=e-t,l=(e=C[n]).size,u=e.steps;if(!u)return Math.ceil(s/(i*l));for(a=0,o=u.length;a<o&&(r=u[a],!(Math.ceil(s/(l*r))<=i));++a);return r}(t,e,r,n);for(u&&(h=h.isoWeekday(u),c=c.isoWeekday(u)),h=h.startOf(u?"day":r),(c=c.startOf(u?"day":r))<e&&c.add(1,r),a=D(h),i&&s&&!u&&!o.round&&(a.startOf(s),a.add(~~((h-a)/(d.size*l))*l,r));a<c;a.add(l,r))f.push(+a);return f.push(+a),f}e.exports=function(e){var t=e.Scale.extend({initialize:function(){if(!D)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),e.Scale.prototype.initialize.call(this)},update:function(){var t=this.options;return t.time&&t.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),e.Scale.prototype.update.apply(this,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),e.Scale.prototype.getRightValue.call(this,t)},determineDataLimits:function(){for(var t,e,n,i,a=this,o=a.chart,r=a.options.time,s=r.unit||"day",l=v,u=p,d=[],h=[],c=[],f=0,g=o.data.labels.length;f<g;++f)c.push(I(o.data.labels[f],a));for(f=0,g=(o.data.datasets||[]).length;f<g;++f)if(o.isDatasetVisible(f))if(n=o.data.datasets[f].data,m.isObject(n[0]))for(h[f]=[],t=0,e=n.length;t<e;++t)i=I(n[t],a),d.push(i),h[f][t]=i;else d.push.apply(d,c),h[f]=c.slice(0);else h[f]=[];c.length&&(c=b(c).sort(y),l=Math.min(l,c[0]),u=Math.max(u,c[c.length-1])),d.length&&(d=b(d).sort(y),l=Math.min(l,d[0]),u=Math.max(u,d[d.length-1])),l=I(r.min,a)||l,u=I(r.max,a)||u,l=l===v?+D().startOf(s):l,u=u===p?+D().endOf(s)+1:u,a.min=Math.min(l,u),a.max=Math.max(l+1,u),a._horizontal=a.isHorizontal(),a._table=[],a._timestamps={data:d,datasets:h,labels:c}},buildTicks:function(){var t,e,n,i,a,o,r,s,l,u,d,h,c=this,f=c.min,g=c.max,m=c.options,p=m.time,v=[],y=[];switch(m.ticks.source){case"data":v=c._timestamps.data;break;case"labels":v=c._timestamps.labels;break;default:v=F(f,g,c.getLabelCapacity(f),m)}for("ticks"===m.bounds&&v.length&&(f=v[0],g=v[v.length-1]),f=I(p.min,c)||f,g=I(p.max,c)||g,t=0,e=v.length;t<e;++t)f<=(n=v[t])&&n<=g&&y.push(n);c.min=f,c.max=g,c._unit=p.unit||function(t,e,n,i){for(var a,o=D.duration(D(i).diff(D(n))),r=P.length-1;r>=P.indexOf(e);r--)if(a=P[r],C[a].common&&o.as(a)>=t.length)return a;return P[e?P.indexOf(e):0]}(y,p.minUnit,c.min,c.max),c._majorUnit=A(c._unit),c._table=function(t,e,n,i){if("linear"===i||!t.length)return[{time:e,pos:0},{time:n,pos:1}];for(var a,o,r,s=[],l=[e],u=0,d=t.length;u<d;++u)e<(o=t[u])&&o<n&&l.push(o);for(l.push(n),u=0,d=l.length;u<d;++u)r=l[u+1],o=l[u],void 0!==(a=l[u-1])&&void 0!==r&&Math.round((r+a)/2)===o||s.push({time:o,pos:u/(d-1)});return s}(c._timestamps.data,f,g,m.distribution),c._offsets=(i=c._table,a=y,o=f,r=g,h=d=0,(s=m).offset&&a.length&&(s.time.min||(l=1<a.length?a[1]:r,u=a[0],d=(T(i,"time",l,"pos")-T(i,"time",u,"pos"))/2),s.time.max||(l=a[a.length-1],u=1<a.length?a[a.length-2]:o,h=(T(i,"time",l,"pos")-T(i,"time",u,"pos"))/2)),{left:d,right:h}),c._labelFormat=function(t,e){for(var n,i,a=t.length,o=0;o<a;o++){if(0!==(n=O(t[o],e)).millisecond())return"MMM D, YYYY h:mm:ss.SSS a";0===n.second()&&0===n.minute()&&0===n.hour()||(i=!0)}return i?"MMM D, YYYY h:mm:ss a":"MMM D, YYYY"}(c._timestamps.data,p);for(var b,x,_=y,k=c._majorUnit,w=[],M=0,S=_.length;M<S;++M)b=_[M],x=!!k&&b===+D(b).startOf(k),w.push({value:b,major:x});return w},getLabelForIndex:function(t,e){var n=this.chart.data,i=this.options.time,a=n.labels&&t<n.labels.length?n.labels[t]:"",n=n.datasets[e].data[t];return m.isObject(n)&&(a=this.getRightValue(n)),i.tooltipFormat?O(a,i).format(i.tooltipFormat):"string"==typeof a?a:O(a,i).format(this._labelFormat)},tickFormatFunction:function(t,e,n,i){var a=this.options,o=t.valueOf(),r=a.time.displayFormats,s=r[this._unit],l=this._majorUnit,r=r[l],u=t.clone().startOf(l).valueOf(),d=a.ticks.major,l=d.enabled&&l&&r&&o===u,o=t.format(i||(l?r:s)),u=l?d:a.ticks.minor,t=m.valueOrDefault(u.callback,u.userCallback);return t?t(o,e,n):o},convertTicksToLabels:function(t){for(var e=[],n=0,i=t.length;n<i;++n)e.push(this.tickFormatFunction(D(t[n].value),n,t));return e},getPixelForOffset:function(t){var e=this,n=e._horizontal?e.width:e.height,i=e._horizontal?e.left:e.top,t=T(e._table,"time",t,"pos");return i+n*(e._offsets.left+t)/(e._offsets.left+1+e._offsets.right)},getPixelForValue:function(t,e,n){var i=null;if(null!==(i=null===(i=void 0!==e&&void 0!==n?this._timestamps.datasets[n][e]:i)?I(t,this):i))return this.getPixelForOffset(i)},getPixelForTick:function(t){var e=this.getTicks();return 0<=t&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,n=e._horizontal?e.width:e.height,i=e._horizontal?e.left:e.top,t=(n?(t-i)/n:0)*(e._offsets.left+1+e._offsets.left)-e._offsets.right,i=T(e._table,"pos",t,"time");return D(i)},getLabelWidth:function(t){var e=this.options.ticks,t=this.ctx.measureText(t).width,n=m.toRadians(e.maxRotation),i=Math.cos(n),n=Math.sin(n);return t*i+m.valueOrDefault(e.fontSize,a.global.defaultFontSize)*n},getLabelCapacity:function(t){var e=this.options.time.displayFormats.millisecond,t=this.tickFormatFunction(D(t),0,[],e),e=this.getLabelWidth(t),t=this.isHorizontal()?this.width:this.height,t=Math.floor(t/e);return 0<t?t:1}});e.scaleService.registerScaleType("time",t,{position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},{25:25,45:45,6:6}]},{},[7])(7)})
\ No newline at end of file
public/scripts/meshcentral-min.js
+1
-1
@@ -1 +1 @@
1
-var MeshServerCreateControl=function(t,e){var o={State:0,connectstate:0,pingTimer:null};return o.authCookie=e,o.xxStateChange=function(e,t){var n;o.State!=e&&(n=o.State,o.State=e,o.onStateChanged&&o.onStateChanged(o,o.State,n,t))},o.Start=function(){var e;0==o.connectstate&&(o.connectstate=0,e=window.location.protocol.replace("http","ws")+"//"+window.location.host+t+"control.ashx"+(urlargs.key?"?key="+urlargs.key:""),o.authCookie&&""!=o.authCookie&&(e+="?moreargs=1"),o.socket=new WebSocket(e),o.socket.onopen=function(e){o.connectstate=1,o.authCookie&&""!=o.authCookie&&o.send({action:"urlargs",args:{auth:o.authCookie}})},o.socket.onmessage=o.xxOnMessage,o.socket.onclose=function(e){o.Stop(e.code)},o.xxStateChange(1,0),null!=o.pingTimer&&clearInterval(o.pingTimer),o.pingTimer=setInterval(function(){o.send({action:"ping"})},29e3))},o.Stop=function(e){o.connectstate=0,o.socket&&(o.socket.close(),delete o.socket),null!=o.pingTimer&&(clearInterval(o.pingTimer),o.pingTimer=null),o.xxStateChange(0,e)},o.xxOnMessage=function(e){var t;1==o.State&&o.xxStateChange(2);try{t=JSON.parse(e.data)}catch(e){return}if("object"==typeof t&&"pong"!=t.action){if("ping"==t.action&&o.send({action:"pong"}),"close"==t.action)return t.msg&&console.log(t.msg),void o.Stop(t.cause);1==o.trace?console.log("RECV",t):2==o.trace&&console.log("RECV",JSON.stringify(t)),o.onMessage&&o.onMessage(o,t)}},o.send=function(e){null!=o.socket&&1==o.connectstate&&("ping"!=e.action&&(1==o.trace?console.log("SEND",e):2==o.trace&&console.log("SEND",JSON.stringify(e))),o.socket.send(JSON.stringify(e)))},o}
\ No newline at end of file
1
+var MeshServerCreateControl=function(t,e){var o={State:0,connectstate:0,pingTimer:null};return o.authCookie=e,o.xxStateChange=function(e,t){var n;o.State!=e&&(n=o.State,o.State=e,o.onStateChanged)&&o.onStateChanged(o,o.State,n,t)},o.Start=function(){var e;0==o.connectstate&&(o.connectstate=0,e=window.location.protocol.replace("http","ws")+"//"+window.location.host+t+"control.ashx"+(urlargs.key?"?key="+urlargs.key:""),o.authCookie&&""!=o.authCookie&&(e+="?moreargs=1"),o.socket=new WebSocket(e),o.socket.onopen=function(e){o.connectstate=1,o.authCookie&&""!=o.authCookie&&o.send({action:"urlargs",args:{auth:o.authCookie}})},o.socket.onmessage=o.xxOnMessage,o.socket.onclose=function(e){o.Stop(e.code)},o.xxStateChange(1,0),null!=o.pingTimer&&clearInterval(o.pingTimer),o.pingTimer=setInterval(function(){o.send({action:"ping"})},29e3))},o.Stop=function(e){o.connectstate=0,o.socket&&(o.socket.close(),delete o.socket),null!=o.pingTimer&&(clearInterval(o.pingTimer),o.pingTimer=null),o.xxStateChange(0,e)},o.xxOnMessage=function(e){var t;1==o.State&&o.xxStateChange(2);try{t=JSON.parse(e.data)}catch(e){return}"object"==typeof t&&"pong"!=t.action&&("ping"==t.action&&o.send({action:"pong"}),"close"==t.action?(t.msg&&console.log(t.msg),o.Stop(t.cause)):(1==o.trace?console.log("RECV",t):2==o.trace&&console.log("RECV",JSON.stringify(t)),o.onMessage&&o.onMessage(o,t)))},o.send=function(e){null!=o.socket&&1==o.connectstate&&("ping"!=e.action&&(1==o.trace?console.log("SEND",e):2==o.trace&&console.log("SEND",JSON.stringify(e))),o.socket.send(JSON.stringify(e)))},o}
\ No newline at end of file
public/scripts/ol-min.js
+1
-1
@@ -1 +1 @@
1
-!function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define([],e):t.ol=e()}(this,function(){var F={},k=this;function t(t,e){var o,i=F;(t=t.split("."))[0]in(i=i||k)||!i.execScript||i.execScript("var "+t[0]);for(;t.length&&(o=t.shift());)t.length||void 0===e?i=i[o]&&i[o]!==Object.prototype[o]?i[o]:i[o]={}:i[o]=e}function G(t,e){return e<t?1:t<e?-1:0}function D(t,e){return 0<=t.indexOf(e)}function B(t,e,o){var i=t.length;if(t[0]<=e)return 0;if(!(e<=t[i-1]))if(0<o){for(o=1;o<i;++o)if(t[o]<e)return o-1}else if(o<0){for(o=1;o<i;++o)if(t[o]<=e)return o}else for(o=1;o<i;++o){if(t[o]==e)return o;if(t[o]<e)return t[o-1]-e<e-t[o]?o-1:o}return i-1}function X(t,e){var o=Array.isArray(e)?e:[e],i=o.length;for(e=0;e<i;e++)t[t.length]=o[e]}function V(t,e){-1<(e=t.indexOf(e))&&t.splice(e,1)}function W(t,e){for(var o,i=t.length>>>0,r=0;r<i;r++)if(e(o=t[r],r,t))return o;return null}function Z(t,e){var o=t.length;if(o===e.length){for(var i=0;i<o;i++)if(t[i]!==e[i])return;return 1}}function K(t){for(var o=ks,e=t.length,i=Array(t.length),r=0;r<e;r++)i[r]={index:r,value:t[r]};for(i.sort(function(t,e){return o(t.value,e.value)||t.index-e.index}),r=0;r<t.length;r++)t[r]=i[r].value}function z(o,i){var r;return o.every(function(t,e){return!i(t,r=e,o)})?-1:r}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function Y(){}function U(t){return t.Vo||(t.Vo=++H)}var H=0;function q(t){this.message="Assertion failed. See https://openlayers.org/en/v4.2.0/doc/errors/#"+t+" for details.",this.code=t,this.name="AssertionError"}function O(t,e){if(!t)throw new q(e)}function J(t,e,o,i){this.ca=t,this.$=e,this.da=o,this.ia=i}function _(t,e,o){return t.ca<=e&&e<=t.$&&t.da<=o&&o<=t.ia}function $(t,e){return t.ca<=e.$&&t.$>=e.ca&&t.da<=e.ia&&t.ia>=e.da}function Q(t,e,o){return Math.min(Math.max(t,e),o)}e(q,Error);var tt="cosh"in Math?Math.cosh:function(t){return((t=Math.exp(t))+1/t)/2};function et(t,e,o,i,r,n){var s,a=r-o,p=n-i;return(a||p)&&(1<(s=((t-o)*a+(e-i)*p)/(a*a+p*p))?(o=r,i=n):0<s&&(o+=a*s,i+=p*s)),ot(t,e,o,i)}function ot(t,e,o,i){return(t=o-t)*t+(e=i-e)*e}function it(t){return t*Math.PI/180}function rt(t,e){return(t%=e)*e<0?t+e:t}function nt(t,e,o){return t+o*(e-t)}function st(t,e,o){return(o=void 0===o?[0,0]:o)[0]=t[0]+2*e,o[1]=t[1]+2*e,o}function at(t,e,o){return(o=void 0===o?[0,0]:o)[0]=t[0]*e+.5|0,o[1]=t[1]*e+.5|0,o}function pt(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:e[0]=e[1]=t,e)}function ht(t){for(var e=vt(),o=0,i=t.length;o<i;++o)Pt(e,t[o]);return e}function lt(t,e,o){return o?(o[0]=t[0]-e,o[1]=t[1]-e,o[2]=t[2]+e,o[3]=t[3]+e,o):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function ut(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function ct(t,e,o){return(e=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*e+(t=o<t[1]?t[1]-o:t[3]<o?o-t[3]:0)*t}function ft(t,e){return gt(t,e[0],e[1])}function yt(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function gt(t,e,o){return t[0]<=e&&e<=t[2]&&t[1]<=o&&o<=t[3]}function dt(t,e){var o=t[1],i=t[2],r=t[3],n=e[0],s=(e=e[1],0);return n<t[0]?s|=16:i<n&&(s|=4),e<o?s|=8:r<e&&(s|=2),s=s||1}function vt(){return[1/0,1/0,-1/0,-1/0]}function bt(t,e,o,i,r){return r?(r[0]=t,r[1]=e,r[2]=o,r[3]=i,r):[t,e,o,i]}function mt(t){return bt(1/0,1/0,-1/0,-1/0,t)}function wt(t,e){var o=t[0];return bt(o,t=t[1],o,t,e)}function xt(t,e,o,i,r){return At(r=mt(r),t,e,o,i)}function St(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function Mt(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function Pt(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function At(t,e,o,i,r){for(;o<i;o+=r){var n=t,s=e[o],a=e[o+1];n[0]=Math.min(n[0],s),n[1]=Math.min(n[1],a),n[2]=Math.max(n[2],s),n[3]=Math.max(n[3],a)}return t}function Et(t,e,o){var i;return((i=e.call(o,jt(t)))||(i=e.call(o,Ct(t)))||(i=e.call(o,kt(t)))||!!(i=e.call(o,Ft(t))))&&i}function Tt(t){var e=0;return e=Ut(t)?e:Dt(t)*It(t)}function jt(t){return[t[0],t[1]]}function Ct(t){return[t[2],t[1]]}function Lt(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function Rt(t,e,o,i,r){var n=e*i[0]/2,s=(i=e*i[1]/2,e=Math.cos(o),Math.sin(o)),a=(o=n*e,n*=s,e*=i,i*s),p=t[0],h=t[1],a=(t=p-o+a,i=p-o-a,s=p+o-a,o=p+o+a,h-n-e),p=h-n+e,l=h+n+e,n=h+n-e;return bt(Math.min(t,i,s,o),Math.min(a,p,l,n),Math.max(t,i,s,o),Math.max(a,p,l,n),r)}function It(t){return t[3]-t[1]}function Nt(t,e,o){return o=o||vt(),Ot(t,e)&&(o[0]=(t[0]>e[0]?t:e)[0],o[1]=(t[1]>e[1]?t:e)[1],o[2]=(t[2]<e[2]?t:e)[2],o[3]=(t[3]<e[3]?t:e)[3]),o}function Ft(t){return[t[0],t[3]]}function kt(t){return[t[2],t[3]]}function Dt(t){return t[2]-t[0]}function Ot(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function Ut(t){return t[2]<t[0]||t[3]<t[1]}function Gt(t,e){var o=(t[2]-t[0])/2*(e-1);e=(t[3]-t[1])/2*(e-1),t[0]-=o,t[2]+=o,t[1]-=e,t[3]+=e}function Bt(t,e,o){e(t=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]],t,2);var i=[t[0],t[2],t[4],t[6]],r=[t[1],t[3],t[5],t[7]];return bt(e=Math.min.apply(null,i),t=Math.min.apply(null,r),Math.max.apply(null,i),Math.max.apply(null,r),o)}var Xt="function"==typeof Object.assign?Object.assign:function(t,e){if(!t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(t),i=1,r=arguments.length;i<r;++i){var n=arguments[i];if(null!=n)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s])}return o};function Vt(t){for(var e in t)delete t[e]}function Wt(t){var e,o=[];for(e in t)o.push(t[e]);return o}function Zt(t){for(var e in t)return!1;return!e}function Kt(t){this.radius=t}Kt.prototype.a=function(t){for(var e=0,o=t.length,i=t[o-1][0],r=t[o-1][1],n=0;n<o;n++)var s=t[n][0],a=t[n][1],e=e+it(s-i)*(2+Math.sin(it(r))+Math.sin(it(a))),i=s,r=a;return e*this.radius*this.radius/2},Kt.prototype.b=function(t,e){var o=it(t[1]),i=it(e[1]),r=(i-o)/2;return t=it(e[0]-t[0])/2,o=Math.sin(r)*Math.sin(r)+Math.sin(t)*Math.sin(t)*Math.cos(o)*Math.cos(i),2*this.radius*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))},Kt.prototype.offset=function(t,e,o){var i=it(t[1]),r=(e/=this.radius,Math.asin(Math.sin(i)*Math.cos(e)+Math.cos(i)*Math.sin(e)*Math.cos(o)));return[180*(it(t[0])+Math.atan2(Math.sin(o)*Math.sin(e)*Math.cos(i),Math.cos(e)-Math.sin(i)*Math.sin(r)))/Math.PI,180*r/Math.PI]};var zt=new Kt(6370997),Yt={},Ht=(Yt.degrees=2*Math.PI*zt.radius/360,Yt.ft=.3048,Yt.m=1,Yt["us-ft"]=1200/3937,null);function qt(t){this.mb=t.code,this.a=t.units,this.f=void 0!==t.extent?t.extent:null,this.g=void 0!==t.worldExtent?t.worldExtent:null,this.b=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.c=void 0!==t.global&&t.global,this.i=!(!this.c||!this.f),this.o=t.getPointResolution,this.j=null,this.l=t.metersPerUnit;var e=t.code,o=Ht||window.proj4;"function"!=typeof o||void 0!==(e=o.defs(e))&&(void 0!==e.axis&&void 0===t.axisOrientation&&(this.b=e.axis),void 0===t.metersPerUnit&&(this.l=e.to_meter),void 0===t.units&&(this.a=e.units))}function Jt(t){qt.call(this,{code:t,units:"m",extent:$t,global:!0,worldExtent:Qt,getPointResolution:function(t,e){return t/tt(e[1]/6378137)}})}(r=qt.prototype).Jk=function(){return this.mb},r.G=function(){return this.f},r.Un=function(){return this.a},r.sc=function(){return this.l||Yt[this.a]},r.tl=function(){return this.g},r.dm=function(){return this.c},r.$p=function(t){this.c=t,this.i=!(!t||!this.f)},r.Vn=function(t){this.f=t,this.i=!(!this.c||!t)},r.kq=function(t){this.g=t},r.Zp=function(t){this.o=t},e(Jt,qt);var _t=6378137*Math.PI,$t=[-_t,-_t,_t,_t],Qt=[-180,-85,180,85],te="EPSG:3857 EPSG:102100 EPSG:102113 EPSG:900913 urn:ogc:def:crs:EPSG:6.18:3:3857 urn:ogc:def:crs:EPSG::3857 http://www.opengis.net/gml/srs/epsg.xml#3857".split(" ").map(function(t){return new Jt(t)});function ee(t,e,o){var i=t.length;o=1<o?o:2,void 0===e&&(e=2<o?t.slice():Array(i));for(var r=0;r<i;r+=o){e[r]=_t*t[r]/180;var n=6378137*Math.log(Math.tan(Math.PI*(t[r+1]+90)/360));_t<n?n=_t:n<-_t&&(n=-_t),e[r+1]=n}return e}function oe(t,e,o){var i=t.length;o=1<o?o:2,void 0===e&&(e=2<o?t.slice():Array(i));for(var r=0;r<i;r+=o)e[r]=180*t[r]/_t,e[r+1]=360*Math.atan(Math.exp(t[r+1]/6378137))/Math.PI-90;return e}var ie=new Kt(6378137);function re(t,e){qt.call(this,{code:t,units:"degrees",extent:ne,axisOrientation:e,global:!0,metersPerUnit:se,worldExtent:ne})}e(re,qt);var ne=[-180,-90,180,90],se=Math.PI*ie.radius/180,ae=[new re("CRS:84"),new re("EPSG:4326","neu"),new re("urn:ogc:def:crs:EPSG::4326","neu"),new re("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new re("urn:ogc:def:crs:OGC:1.3:CRS84"),new re("urn:ogc:def:crs:OGC:2:84"),new re("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new re("urn:x-ogc:def:crs:EPSG:4326","neu")],pe={},he={};function le(t,e,o){t=t.mb,e=e.mb,t in he||(he[t]={}),he[t][e]=o}function ue(t,e){var o;return o=t in he&&e in he[t]?he[t][e]:o}function ce(t,e,o){var i=(t=v(t)).o;return i?e=i(e,o):"degrees"!=t.a&&(e=(i=we(t,v("EPSG:4326")))(e=[o[0]-e/2,o[1],o[0]+e/2,o[1],o[0],o[1]-e/2,o[0],o[1]+e/2],e,2),e=(zt.b(e.slice(0,2),e.slice(2,4))+zt.b(e.slice(4,6),e.slice(6,8)))/2,void 0!==(t=t.sc())&&(e/=t)),e}function fe(t){t.forEach(ye),t.forEach(function(e){t.forEach(function(t){e!==t&&le(e,t,Se)})})}function ye(t){le(pe[t.mb]=t,t,Se)}function ge(t){return t?"string"==typeof t?v(t):t:v("EPSG:3857")}function de(t,e,o,i){le(t=v(t),e=v(e),ve(o)),le(e,t,ve(i))}function ve(s){return function(t,e,o){var i,r=t.length;for(o=void 0!==o?o:2,e=void 0!==e?e:Array(r),i=0;i<r;i+=o){var n=s([t[i],t[i+1]]);for(e[i]=n[0],e[i+1]=n[1],n=o-1;2<=n;--n)e[i+n]=t[i+n]}return e}}function v(t){var e,o=null;return t instanceof qt?o=t:"string"==typeof t&&(o=pe[t]||null,e=Ht||window.proj4,o||"function"!=typeof e||void 0===e.defs(t)||ye(o=new qt({code:t}))),o}function be(t,e){if(t===e)return!0;var o=t.a===e.a;return(t.mb===e.mb||we(t,e)===Se)&&o}function me(t,e){return we(t=v(t),e=v(e))}function we(t,e){var o,i,r,n=t.mb,s=e.mb,a=ue(n,s);return a||"function"==typeof(o=Ht||window.proj4)&&(i=o.defs(n),r=o.defs(s),void 0!==i&&void 0!==r&&(i===r?fe([e,t]):de(e,t,(a=o(s,n)).forward,a.inverse),a=ue(n,s))),a=a||xe}function xe(t,e){if(void 0!==e&&t!==e){for(var o=0,i=t.length;o<i;++o)e[o]=t[o];t=e}return t}function Se(t,e){if(void 0!==e){for(var o=0,i=t.length;o<i;++o)e[o]=t[o];t=e}else t=t.slice();return t}function Me(t,e,o){return me(e,o)(t,void 0,t.length)}function Pe(t,e,o){return Bt(t,e=me(e,o))}function Ae(){fe(te),fe(ae),ae.forEach(function(e){te.forEach(function(t){le(e,t,ee),le(t,e,oe)})})}function Ee(t,e,o,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=o,i):[t,e,o]}function Te(t){this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.b=t.resolutions,O((o=this.b,i=function(t,e){return e-t}||G,o.every(function(t,e){return!e||!(0<(t=i(o[e-1],t))||0===t)})),17),this.maxZoom=this.b.length-1,this.i=void 0!==t.origin?t.origin:null,this.c=null,void 0!==t.origins&&(this.c=t.origins,O(this.c.length==this.b.length,20));var o,i,e=t.extent;if(void 0===e||this.i||this.c||(this.i=Ft(e)),O(!this.i&&this.c||this.i&&!this.c,18),this.f=null,void 0!==t.tileSizes&&(this.f=t.tileSizes,O(this.f.length==this.b.length,19)),this.g=void 0!==t.tileSize?t.tileSize:this.f?null:256,O(!this.g&&this.f||this.g&&!this.f,22),this.v=void 0!==e?e:null,this.a=null,this.j=[0,0],void 0!==t.sizes)this.a=t.sizes.map(function(t){return new J(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1))},this);else if(e){for(var r=this,n=e,s=r.b.length,a=Array(s),p=r.minZoom;p<s;++p)a[p]=Ie(r,n,p);r.a=a}}Ae();var je=[0,0,0];function Ce(t,e,o,i,r){for(r=t.Aa(e,r),e=e[0]-1;e>=t.minZoom;){if(o.call(null,e,Ie(t,r,e,i)))return!0;--e}return!1}function Le(t,e,o,i){return e[0]<t.maxZoom?(i=t.Aa(e,i),Ie(t,i,e[0]+1,o)):null}function Re(t,e,o,i){Fe(t,e[0],e[1],o,!1,je);var r=je[1],n=je[2];return Fe(t,e[2],e[3],o,!0,je),t=je[1],e=je[2],void 0!==i?(i.ca=r,i.$=t,i.da=n,i.ia=e):i=new J(r,t,n,e),i}function Ie(t,e,o,i){return Re(t,e,t.Da(o),i)}function Ne(t,e){var o=t.Pc(e[0]),i=t.Da(e[0]);return t=pt(t.gb(e[0]),t.j),[o[0]+(e[1]+.5)*t[0]*i,o[1]+(e[2]+.5)*t[1]*i]}function Fe(t,e,o,i,r,n){var s=t.tc(i),a=i/t.Da(s),p=t.Pc(s);return t=pt(t.gb(s),t.j),e=a*Math.floor((e-p[0])/i+(r?.5:0))/t[0],o=a*Math.floor((o-p[1])/i+(r?0:.5))/t[1],o=r?(e=Math.ceil(e)-1,Math.ceil(o)-1):(e=Math.floor(e),Math.floor(o)),Ee(s,e,o,n)}function ke(t){var e=t.j;return e||(e=Ue(t),t.j=e),e}function De(t){var e={};return Xt(e,t||{}),void 0===e.extent&&(e.extent=v("EPSG:3857").G()),e.resolutions=Oe(e.extent,e.maxZoom,e.tileSize),delete e.maxZoom,new Te(e)}function Oe(t,e,o){e=void 0!==e?e:42;var i=It(t);for(t=Dt(t),o=pt(void 0!==o?o:256),o=Math.max(t/o[0],i/o[1]),e+=1,i=Array(e),t=0;t<e;++t)i[t]=o/Math.pow(2,t);return i}function Ue(t,e,o){return e=Oe(t=Ge(t),e,o),new Te({extent:t,origin:Ft(t),resolutions:e,tileSize:o})}function Ge(t){var e=(t=v(t)).G();return e=e?e:bt(-(t=180*Yt.degrees/t.sc()),-t,t,t)}function Be(t){this.b=t.html,this.a=t.tileRanges||null}function Xe(t){return t}function Ve(i){return i.mh=function(t){var e=i.listener,o=i.lh||i.target;return i.nh&&qe(i),e.call(o,t)}}function We(t,e,o,i){for(var r,n=0,s=t.length;n<s;++n)if((r=t[n]).listener===e&&r.lh===o)return i&&(r.deleteIndex=n),r}function Ze(t,e){return(t=t.fb)?t[e]:void 0}function Ke(t){return t.fb||(t.fb={})}function ze(t,e){var o=Ze(t,e);if(o){for(var i=0,r=o.length;i<r;++i)t.removeEventListener(e,o[i].mh),Vt(o[i]);o.length=0,(o=t.fb)&&(delete o[e],Object.keys(o).length||delete t.fb)}}function d(t,e,o,i,r){var n=Ke(t),s=n[e];return(n=We(s=s||(n[e]=[]),o,i,!1))?r||(n.nh=!1):(t.addEventListener(e,Ve(n={lh:i,nh:!!r,listener:o,target:t,type:e})),s.push(n)),n}function Ye(t,e,o,i){return d(t,e,o,i,!0)}function He(t,e,o,i){(t=Ze(t,e))&&(o=We(t,o,i,!0))&&qe(o)}function qe(t){var e,o;t&&t.target&&(t.target.removeEventListener(t.type,t.mh),(e=Ze(t.target,t.type))&&(-1!==(o="deleteIndex"in t?t.deleteIndex:e.indexOf(t))&&e.splice(o,1),e.length||ze(t.target,t.type)),Vt(t))}function Je(t){for(var e in Ke(t))ze(t,e)}function _e(){}function $e(t){t.Jb||(t.Jb=!0,t.ka())}function Qe(t){this.type=t,this.target=null}function to(t){t.stopPropagation()}function eo(){this.Ua={},this.ra={},this.oa={}}function oo(t,e){return e?e in t.oa:0<Object.keys(t.oa).length}function io(){eo.call(this),this.i=0}function ro(t){io.call(this),U(this),this.S={},void 0!==t&&this.H(t)}(r=Te.prototype).Rf=function(t,e,o){for(var i=(t=Ie(this,t,e)).ca,r=t.$;i<=r;++i)for(var n=t.da,s=t.ia;n<=s;++n)o([e,i,n])},r.G=function(){return this.v},r.Ti=function(){return this.maxZoom},r.Ui=function(){return this.minZoom},r.Pc=function(t){return this.i||this.c[t]},r.Da=function(t){return this.b[t]},r.Vi=function(){return this.b},r.Aa=function(t,e){var o=this.Pc(t[0]),i=this.Da(t[0]),r=pt(this.gb(t[0]),this.j),n=o[0]+t[1]*r[0]*i;return bt(n,t=o[1]+t[2]*r[1]*i,n+r[0]*i,t+r[1]*i,e)},r.Be=function(t,e,o){return Fe(this,t[0],t[1],e,!1,o)},r.bg=function(t,e,o){return Fe(this,t[0],t[1],this.Da(e),!1,o)},r.gb=function(t){return this.g||this.f[t]},r.tc=function(t,e){return Q(B(this.b,t,e||0),this.minZoom,this.maxZoom)},_e.prototype.Jb=!(Be.prototype.i=function(){return this.b}),_e.prototype.ka=Y,Qe.prototype.preventDefault=Qe.prototype.stopPropagation=function(){this.qp=!0},e(eo,_e),eo.prototype.addEventListener=function(t,e){var o=this.oa[t];-1===(o=o||(this.oa[t]=[])).indexOf(e)&&o.push(e)},eo.prototype.b=function(t){var e="string"==typeof t?new Qe(t):t,o=(t=e.type,(e.target=this).oa[t]);if(o){t in this.ra||(this.ra[t]=0,this.Ua[t]=0),++this.ra[t];for(var i=0,r=o.length;i<r;++i)if(!1===o[i].call(this,e)||e.qp){var n=!1;break}if(--this.ra[t],!this.ra[t]){for(e=this.Ua[t],delete this.Ua[t];e--;)this.removeEventListener(t,Y);delete this.ra[t]}return n}},eo.prototype.ka=function(){Je(this)},eo.prototype.removeEventListener=function(t,e){var o=this.oa[t];o&&(e=o.indexOf(e),t in this.Ua?(o[e]=Y,++this.Ua[t]):(o.splice(e,1),o.length||delete this.oa[t]))},e(io,eo),(r=io.prototype).s=function(){++this.i,this.b("change")},r.L=function(){return this.i},r.J=function(t,e,o){if(Array.isArray(t)){for(var i=t.length,r=Array(i),n=0;n<i;++n)r[n]=d(this,t[n],e,o);return r}return d(this,t,e,o)},r.once=function(t,e,o){if(Array.isArray(t)){for(var i=t.length,r=Array(i),n=0;n<i;++n)r[n]=Ye(this,t[n],e,o);return r}return Ye(this,t,e,o)},r.K=function(t,e,o){if(Array.isArray(t))for(var i=0,r=t.length;i<r;++i)He(this,t[i],e,o);else He(this,t,e,o)},e(ro,io);var no={};function so(t){return no.hasOwnProperty(t)?no[t]:no[t]="change:"+t}function ao(t,e,o){var i=so(e);t.b(new po(i,e,o)),t.b(new po("propertychange",e,o))}function po(t,e,o){Qe.call(this,t),this.key=e,this.oldValue=o}function ho(t,e){if(ro.call(this),this.c=!!(e||{}).unique,this.a=t||[],this.c)for(t=0,e=this.a.length;t<e;++t)uo(this,this.a[t],t);lo(this)}function lo(t){t.set(co,t.a.length)}function uo(t,e,o){for(var i=0,r=t.a.length;i<r;++i)if(t.a[i]===e&&i!==o)throw new q(58)}(r=ro.prototype).get=function(t){var e;return e=this.S.hasOwnProperty(t)?this.S[t]:e},r.O=function(){return Object.keys(this.S)},r.N=function(){return Xt({},this.S)},r.set=function(t,e,o){o?this.S[t]=e:(o=this.S[t])!==(this.S[t]=e)&&ao(this,t,o)},r.H=function(t,e){for(var o in t)this.set(o,t[o],e)},r.P=function(t,e){var o;t in this.S&&(o=this.S[t],delete this.S[t],e||ao(this,t,o))},e(po,Qe),e(ho,ro),(r=ho.prototype).clear=function(){for(;0<this.dc();)this.pop()},r.fg=function(t){for(var e=0,o=t.length;e<o;++e)this.push(t[e]);return this},r.forEach=function(t,e){this.a.forEach(t,e)},r.tm=function(){return this.a},r.item=function(t){return this.a[t]},r.dc=function(){return this.get(co)},r.He=function(t,e){this.c&&uo(this,e),this.a.splice(t,0,e),lo(this),this.b(new fo("add",e))},r.pop=function(){return this.Hg(this.dc()-1)},r.push=function(t){this.c&&uo(this,t);var e=this.dc();return this.He(e,t),this.dc()},r.remove=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)if(e[o]===t)return this.Hg(o)},r.Hg=function(t){var e=this.a[t];return this.a.splice(t,1),lo(this),this.b(new fo("remove",e)),e},r.Wp=function(t,e){var o=this.dc();if(t<o)this.c&&uo(this,e,t),o=this.a[t],this.a[t]=e,this.b(new fo("remove",o)),this.b(new fo("add",e));else{for(;o<t;++o)this.He(o,void 0);this.He(t,e)}};var co="length";function fo(t,e){Qe.call(this,t),this.element=e}e(fo,Qe);var yo=/^#(?:[0-9a-f]{3}){1,2}$/i,go=/^([a-z]*)$/i;function vo(t){return Array.isArray(t)?t:xo(t)}function bo(t){var e;return t="string"!=typeof t?"rgba("+(e=(e=t[0])!=(0|e)?e+.5|0:e)+","+(e=(e=t[1])!=(0|e)?e+.5|0:e)+","+(e=(e=t[2])!=(0|e)?e+.5|0:e)+","+(void 0===t[3]?1:t[3])+")":t}mo={},wo=0;var mo,wo,xo=function(t){if(mo.hasOwnProperty(t))var e=mo[t];else{if(1024<=wo)for(var o in e=0,mo)3&e++||(delete mo[o],--wo);var i,r;go.exec(e=t)&&((o=document.createElement("div")).style.color=e,document.body.appendChild(o),e=getComputedStyle(o).color,document.body.removeChild(o)),yo.exec(e)?(O(3==(r=e.length-1)||6==r,54),i=3==r?1:2,r=parseInt(e.substr(1+0*i,i),16),o=parseInt(e.substr(1+i,i),16),e=parseInt(e.substr(1+2*i,i),16),1==i&&(r=(r<<4)+r,o=(o<<4)+o,e=(e<<4)+e),r=[r,o,e,1]):e.indexOf("rgba(")?e.indexOf("rgb(")?O(!1,14):((e=e.slice(4,-1).split(",").map(Number)).push(1),r=So(e)):r=So(e=e.slice(5,-1).split(",").map(Number)),e=r,mo[t]=e,++wo}return e};function So(t){var e=[];return e[0]=Q(t[0]+.5|0,0,255),e[1]=Q(t[1]+.5|0,0,255),e[2]=Q(t[2]+.5|0,0,255),e[3]=Q(t[3],0,1),e}function Mo(t){return"string"==typeof t||t instanceof CanvasPattern||t instanceof CanvasGradient?t:bo(t)}function Po(t,e){var o=document.createElement("CANVAS");return t&&(o.width=t),e&&(o.height=e),o.getContext("2d")}function Ao(t,e){var o=e.parentNode;o&&o.replaceChild(t,e)}function Eo(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function To(t){ro.call(this),this.element=t.element||null,this.a=this.R=null,this.v=[],this.render=t.render||Y,t.target&&this.f(t.target)}function jo(t){t=t||{},this.I=document.createElement("UL"),this.u=document.createElement("LI"),this.I.appendChild(this.u),this.u.style.display="none",this.c=void 0===t.collapsed||t.collapsed,this.o=void 0===t.collapsible||t.collapsible,this.o||(this.c=!1);var e=void 0!==t.className?t.className:"ol-attribution",o=void 0!==t.tipLabel?t.tipLabel:"Attributions",i=void 0!==t.collapseLabel?t.collapseLabel:"»",r=("string"==typeof i?(this.D=document.createElement("span"),this.D.textContent=i):this.D=i,"string"==typeof(i=void 0!==t.label?t.label:"i")?(this.C=document.createElement("span"),this.C.textContent=i):this.C=i,this.o&&!this.c?this.D:this.C);(i=document.createElement("button")).setAttribute("type","button"),i.title=o,i.appendChild(r),d(i,"click",this.Vm,this),(o=document.createElement("div")).className=e+" ol-unselectable ol-control"+(this.c&&this.o?" ol-collapsed":"")+(this.o?"":" ol-uncollapsible"),o.appendChild(this.I),o.appendChild(i),To.call(this,{element:o,render:t.render||Co,target:t.target}),this.B=!0,this.l={},this.j={},this.T={}}function Co(t){if(t=t.frameState){var e,o,i,r,n,s,a,p=t.layerStatesArray,h=Xt({},t.attributions),l={},u={},c=t.viewState.projection,f=0;for(a=p.length;f<a;f++)if(o=p[f].layer.ha()){var y=U(o).toString();if(i=o.j)for(var g=0,d=i.length;g<d;g++){var v=i[g],b=U(v).toString();if(!(b in h)){if(e=t.usedTiles[y])t:{var m=void 0,w=v,x=M=o.Ta(c),S=c;if(w.a){for(m in e)if(m in w.a)for(var M=e[m],P=0,A=w.a[m].length;P<A;++P){var E=w.a[m][P];if($(E,M)){m=!0;break t}var T=Ie(x,Ge(S),parseInt(m,10)),j=T.$-T.ca+1;if((M.ca<T.ca||M.$>T.$)&&($(E,new J(rt(M.ca,j),rt(M.$,j),M.da,M.ia))||M.$-M.ca+1>j&&$(E,T))){m=!0;break t}}m=!1}else m=!0}else m=!1;m?(b in l&&delete l[b],(m=v.b)in u||(u[m]=!0,h[b]=v)):l[b]=v}}}for(r in f=(a=[h,l])[0],a=a[1],this.l)r in f?(this.j[r]||(this.l[r].style.display="",this.j[r]=!0),delete f[r]):r in a?(this.j[r]&&(this.l[r].style.display="none",delete this.j[r]),delete a[r]):(Eo(this.l[r]),delete this.l[r],delete this.j[r]);for(r in f)g=document.createElement("LI"),g.innerHTML=f[r].b,this.I.appendChild(g),this.l[r]=g,this.j[r]=!0;for(r in a)g=document.createElement("LI"),g.innerHTML=a[r].b,g.style.display="none",this.I.appendChild(g),this.l[r]=g;for(s in r=!Zt(this.j)||!Zt(t.logos),this.B!=r&&(this.element.style.display=r?"":"none",this.B=r),r&&Zt(this.j)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only"),t=t.logos,r=this.T)s in t||(Eo(r[s]),delete r[s]);for(n in t)(a=t[n])instanceof HTMLElement&&(this.u.appendChild(a),r[n]=a),n in r||((s=new Image).src=n,""===a?f=s:((f=document.createElement("a")).href=a,f.appendChild(s)),this.u.appendChild(f),r[n]=f);this.u.style.display=Zt(t)?"none":""}else this.B&&(this.element.style.display="none",this.B=!1)}function Lo(t){t.element.classList.toggle("ol-collapsed"),t.c?Ao(t.D,t.C):Ao(t.C,t.D),t.c=!t.c}function Ro(t){return Math.pow(t,3)}function Io(t){return 1-Ro(1-t)}function No(t){return 3*t*t-2*t*t*t}function Fo(t){return t}function ko(t){var e=void 0!==(t=t||{}).className?t.className:"ol-rotate",o=void 0!==t.label?t.label:"⇧",i=(this.c=null,"string"==typeof o?(this.c=document.createElement("span"),this.c.className="ol-compass",this.c.textContent=o):(this.c=o,this.c.classList.add("ol-compass")),t.tipLabel||"Reset rotation");(o=document.createElement("button")).className=e+"-reset",o.setAttribute("type","button"),o.title=i,o.appendChild(this.c),d(o,"click",ko.prototype.D,this),(i=document.createElement("div")).className=e+" ol-unselectable ol-control",i.appendChild(o),e=t.render||Do,this.o=t.resetNorth||void 0,To.call(this,{element:i,render:e,target:t.target}),this.l=void 0!==t.duration?t.duration:250,this.j=void 0===t.autoHide||t.autoHide,this.u=void 0,this.j&&this.element.classList.add("ol-hidden")}function Do(t){var e,o;(t=t.frameState)&&((t=t.viewState.rotation)!=this.u&&(e="rotate("+t+"rad)",this.j&&((o=this.element.classList.contains("ol-hidden"))||t?o&&t&&this.element.classList.remove("ol-hidden"):this.element.classList.add("ol-hidden")),this.c.style.msTransform=e,this.c.style.webkitTransform=e,this.c.style.transform=e),this.u=t)}function Oo(t){var e=void 0!==(t=t||{}).className?t.className:"ol-zoom",o=void 0!==t.delta?t.delta:1,i=void 0!==t.zoomInLabel?t.zoomInLabel:"+",r=void 0!==t.zoomOutLabel?t.zoomOutLabel:"−",n=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",s=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",a=document.createElement("button");a.className=e+"-in",a.setAttribute("type","button"),a.title=n,a.appendChild("string"==typeof i?document.createTextNode(i):i),d(a,"click",Oo.prototype.j.bind(this,o)),(i=document.createElement("button")).className=e+"-out",i.setAttribute("type","button"),i.title=s,i.appendChild("string"==typeof r?document.createTextNode(r):r),d(i,"click",Oo.prototype.j.bind(this,-o)),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(a),o.appendChild(i),To.call(this,{element:o,target:t.target}),this.c=void 0!==t.duration?t.duration:250}function Uo(t){t=t||{};var e=new ho;return void 0!==t.zoom&&!t.zoom||e.push(new Oo(t.zoomOptions)),void 0!==t.rotate&&!t.rotate||e.push(new ko(t.rotateOptions)),void 0!==t.attribution&&!t.attribution||e.push(new jo(t.attributionOptions)),e}function Go(t){this.c=void 0!==(t=t||{}).className?t.className:"ol-full-screen";var e=void 0!==t.label?t.label:"⤢",o=(this.o="string"==typeof e?document.createTextNode(e):e,e=void 0!==t.labelActive?t.labelActive:"×",this.l="string"==typeof e?document.createTextNode(e):e,t.tipLabel||"Toggle full-screen");(e=document.createElement("button")).className=this.c+"-"+Xo(),e.setAttribute("type","button"),e.title=o,e.appendChild(this.o),d(e,"click",this.C,this),(o=document.createElement("div")).className=this.c+" ol-unselectable ol-control "+(Bo()?"":"ol-unsupported"),o.appendChild(e),To.call(this,{element:o,target:t.target}),this.D=void 0!==t.keys&&t.keys,this.j=t.source}function Bo(){var t=document.body;return t.webkitRequestFullscreen||t.mozRequestFullScreen&&document.mozFullScreenEnabled||t.msRequestFullscreen&&document.msFullscreenEnabled||t.requestFullscreen&&document.fullscreenEnabled}function Xo(){return!!(document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||document.fullscreenElement)}function Vo(t){t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}e(To,ro),To.prototype.ka=function(){Eo(this.element),ro.prototype.ka.call(this)},To.prototype.g=function(){return this.a},To.prototype.setMap=function(t){this.a&&Eo(this.element);for(var e=0,o=this.v.length;e<o;++e)qe(this.v[e]);this.v.length=0,(this.a=t)&&((this.R||t.D).appendChild(this.element),this.render!==Y&&this.v.push(d(t,"postrender",this.render,this)),t.render())},To.prototype.f=function(t){this.R="string"==typeof t?document.getElementById(t):t},e(jo,To),(r=jo.prototype).Vm=function(t){t.preventDefault(),Lo(this)},r.Um=function(){return this.o},r.Xm=function(t){this.o!==t&&(this.o=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.c&&Lo(this))},r.Wm=function(t){this.o&&this.c!==t&&Lo(this)},r.Tm=function(){return this.c},e(ko,To),ko.prototype.D=function(t){t.preventDefault(),this.o?this.o():(t=this.a.Z())&&void 0!==t.Qa()&&(0<this.l?t.animate({rotation:0,duration:this.l,easing:Io}):t.Oe(0))},e(Oo,To),Oo.prototype.j=function(t,e){var o;e.preventDefault(),(e=this.a.Z())&&(o=e.Pa())&&(t=e.constrainResolution(o,t),0<this.c?(e.Ic()&&e.ed(),e.animate({resolution:t,duration:this.c,easing:Io})):e.Vc(t))},e(Go,To),Go.prototype.C=function(t){t.preventDefault(),Bo()&&(t=this.a)&&(Xo()?document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():(t=this.j?"string"==typeof this.j?document.getElementById(this.j):this.j:t.jd(),this.D?t.mozRequestFullScreenWithKeys?t.mozRequestFullScreenWithKeys():t.webkitRequestFullscreen?t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):Vo(t):Vo(t)))},Go.prototype.u=function(){var t=this.element.firstElementChild,e=this.a;Xo()?(t.className=this.c+"-true",Ao(this.l,this.o)):(t.className=this.c+"-false",Ao(this.o,this.l)),e&&e.Ad()},Go.prototype.setMap=function(t){To.prototype.setMap.call(this,t),t&&this.v.push(d(document,Zo(),this.u,this))};var Wo,Zo=function(){var t;return Wo||((t=document.body).webkitRequestFullscreen?Wo="webkitfullscreenchange":t.mozRequestFullScreen?Wo="mozfullscreenchange":t.msRequestFullscreen?Wo="MSFullscreenChange":t.requestFullscreen&&(Wo="fullscreenchange")),Wo};function Ko(t){t=t||{};var e=document.createElement("DIV");e.className=void 0!==t.className?t.className:"ol-mouse-position",To.call(this,{element:e,render:t.render||zo,target:t.target}),d(this,so(Ho),this.Ym,this),t.coordinateFormat&&this.kj(t.coordinateFormat),t.projection&&this.$h(t.projection),this.u=void 0!==t.undefinedHTML?t.undefinedHTML:"",this.l=e.innerHTML,this.o=this.j=this.c=null}function zo(t){(t=t.frameState)?this.c!=t.viewState.projection&&(this.c=t.viewState.projection,this.j=null):this.c=null,Yo(this,this.o)}function Yo(t,e){var o,i=t.u;e&&t.c&&(t.j||(o=t.Zh(),t.j=o?we(t.c,o):xe),(e=t.a.Wa(e))&&(t.j(e,e),i=(i=t.xh())?i(e):e.toString())),t.l&&i==t.l||(t.element.innerHTML=i,t.l=i)}e(Ko,To),(r=Ko.prototype).Ym=function(){this.j=null},r.xh=function(){return this.get(qo)},r.Zh=function(){return this.get(Ho)},r.Ll=function(t){this.o=this.a.xe(t),Yo(this,this.o)},r.Ml=function(){Yo(this,null),this.o=null},r.setMap=function(t){To.prototype.setMap.call(this,t),t&&(t=t.a,this.v.push(d(t,"mousemove",this.Ll,this),d(t,"mouseout",this.Ml,this)))},r.kj=function(t){this.set(qo,t)},r.$h=function(t){this.set(Ho,v(t))};var Ho="projection",qo="coordinateFormat";function Jo(t,e,o){Qe.call(this,t),this.map=e,this.frameState=void 0!==o?o:null}function _o(t,e,o,i,r){Jo.call(this,t,e,r),this.originalEvent=o,this.pixel=e.xe(o),this.coordinate=e.Wa(this.pixel),this.dragging=void 0!==i&&i}e(Jo,Qe),e(_o,Jo),_o.prototype.preventDefault=function(){Jo.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},_o.prototype.stopPropagation=function(){Jo.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()};var $o=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Qo(t,e){for(var o,i=$o.length,r=0;r<i;++r)try{if(o=t.getContext($o[r],e))return o}catch(t){}return null}var ti="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",ei=-1!==ti.indexOf("firefox"),oi=-1!==ti.indexOf("safari")&&-1==ti.indexOf("chrom"),ii=-1!==ti.indexOf("webkit")&&-1==ti.indexOf("edge"),ri=-1!==ti.indexOf("macintosh"),ni=window.devicePixelRatio||1,si=!1,ai=function(){if(!("HTMLCanvasElement"in window))return!1;try{var t=document.createElement("CANVAS").getContext("2d");return!!t&&(void 0!==t.setLineDash&&(si=!0),!0)}catch(t){return!1}}(),pi="DeviceOrientationEvent"in window,hi="geolocation"in navigator,li="ontouchstart"in window,ui="PointerEvent"in window,ci=!!navigator.msPointerEnabled,ti=!1,fi=[];if("WebGLRenderingContext"in window)try{var yi=Qo(document.createElement("CANVAS"),{failIfMajorPerformanceCaveat:!0});yi&&(ti=!0,ag=yi.getParameter(yi.MAX_TEXTURE_SIZE),fi=yi.getSupportedExtensions())}catch(t){}var gi=ti,di=fi,vi=ag,bi={Iq:"singleclick",xq:"click",yq:"dblclick",Bq:"pointerdrag",Eq:"pointermove",Aq:"pointerdown",Hq:"pointerup",Gq:"pointerover",Fq:"pointerout",Cq:"pointerenter",Dq:"pointerleave",zq:"pointercancel"};function mi(t,e,o,i,r){_o.call(this,t,e,o.b,i,r),this.b=o}function wi(t,e){this.b=t,this.f=e}function xi(t){wi.call(this,t,{mousedown:this.fm,mousemove:this.gm,mouseup:this.jm,mouseover:this.im,mouseout:this.hm}),this.a=t.i,this.i=[]}function Si(t,e){t=t.i;var o=e.clientX;e=e.clientY;for(var i,r=0,n=t.length;r<n&&(i=t[r]);r++){var s=Math.abs(e-i[1]);if(Math.abs(o-i[0])<=25&&s<=25)return 1}}function Mi(t){var e=Fi(t,t),o=e.preventDefault;return e.preventDefault=function(){t.preventDefault(),o()},e.pointerId=1,e.isPrimary=!0,e.pointerType="mouse",e}function Pi(t){wi.call(this,t,{MSPointerDown:this.om,MSPointerMove:this.pm,MSPointerUp:this.sm,MSPointerOut:this.qm,MSPointerOver:this.rm,MSPointerCancel:this.nm,MSGotPointerCapture:this.lm,MSLostPointerCapture:this.mm}),this.a=t.i,this.i=["","unavailable","touch","pen","mouse"]}function Ai(t,e){var o=e;return"number"==typeof e.pointerType&&((o=Fi(e,e)).pointerType=t.i[e.pointerType]),o}function Ei(t){wi.call(this,t,{pointerdown:this.ip,pointermove:this.jp,pointerup:this.mp,pointerout:this.kp,pointerover:this.lp,pointercancel:this.hp,gotpointercapture:this.ul,lostpointercapture:this.em})}function Ti(t,e,o){var i;Qe.call(this,t),this.b=e,this.buttons=function(t){if(t.buttons||ji)t=t.buttons;else switch(t.which){case 1:t=1;break;case 2:t=4;break;case 3:t=2;break;default:t=0}return t}(t=o||{}),this.pressure=(o=t,i=this.buttons,o.pressure||(i?.5:0)),this.bubbles="bubbles"in t&&t.bubbles,this.cancelable="cancelable"in t&&t.cancelable,this.view="view"in t?t.view:null,this.detail="detail"in t?t.detail:null,this.screenX="screenX"in t?t.screenX:0,this.screenY="screenY"in t?t.screenY:0,this.clientX="clientX"in t?t.clientX:0,this.clientY="clientY"in t?t.clientY:0,this.ctrlKey="ctrlKey"in t&&t.ctrlKey,this.altKey="altKey"in t&&t.altKey,this.shiftKey="shiftKey"in t&&t.shiftKey,this.metaKey="metaKey"in t&&t.metaKey,this.button="button"in t?t.button:0,this.relatedTarget="relatedTarget"in t?t.relatedTarget:null,this.pointerId="pointerId"in t?t.pointerId:0,this.width="width"in t?t.width:0,this.height="height"in t?t.height:0,this.tiltX="tiltX"in t?t.tiltX:0,this.tiltY="tiltY"in t?t.tiltY:0,this.pointerType="pointerType"in t?t.pointerType:"",this.isPrimary="isPrimary"in t&&t.isPrimary,e.preventDefault&&(this.preventDefault=function(){e.preventDefault()})}e(mi,_o),e(xi,wi),(r=xi.prototype).fm=function(t){var e;Si(this,t)||(1..toString()in this.a&&this.cancel(t),e=Mi(t),this.a[1..toString()]=t,Ui(this.b,"pointerdown",e,t))},r.gm=function(t){var e;Si(this,t)||(e=Mi(t),Ui(this.b,"pointermove",e,t))},r.jm=function(t){var e;Si(this,t)||(e=this.a[1..toString()])&&e.button===t.button&&(e=Mi(t),Ui(this.b,"pointerup",e,t),delete this.a[1..toString()])},r.im=function(t){var e;Si(this,t)||(e=Mi(t),Oi(this.b,e,t))},r.hm=function(t){var e;Si(this,t)||(e=Mi(t),Di(this.b,e,t))},r.cancel=function(t){var e=Mi(t);this.b.cancel(e,t),delete this.a[1..toString()]},e(Pi,wi),(r=Pi.prototype).om=function(t){this.a[t.pointerId.toString()]=t;var e=Ai(this,t);Ui(this.b,"pointerdown",e,t)},r.pm=function(t){var e=Ai(this,t);Ui(this.b,"pointermove",e,t)},r.sm=function(t){var e=Ai(this,t);Ui(this.b,"pointerup",e,t),delete this.a[t.pointerId.toString()]},r.qm=function(t){var e=Ai(this,t);Di(this.b,e,t)},r.rm=function(t){var e=Ai(this,t);Oi(this.b,e,t)},r.nm=function(t){var e=Ai(this,t);this.b.cancel(e,t),delete this.a[t.pointerId.toString()]},r.mm=function(t){this.b.b(new Ti("lostpointercapture",t,t))},r.lm=function(t){this.b.b(new Ti("gotpointercapture",t,t))},e(Ei,wi),(r=Ei.prototype).ip=function(t){Gi(this.b,t)},r.jp=function(t){Gi(this.b,t)},r.mp=function(t){Gi(this.b,t)},r.kp=function(t){Gi(this.b,t)},r.lp=function(t){Gi(this.b,t)},r.hp=function(t){Gi(this.b,t)},r.em=function(t){Gi(this.b,t)},r.ul=function(t){Gi(this.b,t)},e(Ti,Qe);var ji=!1;try{ji=1===new MouseEvent("click",{buttons:1}).buttons}catch(t){}function Ci(t,e){wi.call(this,t,{touchstart:this.rq,touchmove:this.qq,touchend:this.pq,touchcancel:this.oq}),this.a=t.i,this.j=e,this.i=void 0,this.g=0,this.c=void 0}function Li(t,e,o){function i(){e.preventDefault()}for(var r,n,s=Array.prototype.slice.call(e.changedTouches),a=s.length,p=0;p<a;++p){h=t,r=e,n=s[p],(r=Fi(r,n)).pointerId=n.identifier+2,r.bubbles=!0,r.cancelable=!0,r.detail=h.g,r.button=0,r.buttons=1,r.width=n.webkitRadiusX||n.radiusX||0,r.height=n.webkitRadiusY||n.radiusY||0,r.pressure=n.webkitForce||n.force||.5,r.isPrimary=h.i===n.identifier,r.pointerType="touch",r.clientX=n.clientX,r.clientY=n.clientY,r.screenX=n.screenX,r.screenY=n.screenY;var h=r;h.preventDefault=i,o.call(t,e,h)}}function Ri(t,e){var o,i=t.j.i;e=e.changedTouches[0],t.i===e.identifier&&(o=[e.clientX,e.clientY],i.push(o),setTimeout(function(){V(i,o)},2500))}function Ii(t){eo.call(this),this.g=t,this.i={},this.f={},this.a=[],ui?Ni(this,new Ei(this)):ci?Ni(this,new Pi(this)):(Ni(this,t=new xi(this)),li&&Ni(this,new Ci(this,t))),t=this.a.length;for(var e,o,i=0;i<t;i++)e=this.a[i],o=this,Object.keys(e.f).forEach(function(t){d(this.g,t,this.c,this)},o)}function Ni(t,o){var e=Object.keys(o.f);e&&(e.forEach(function(t){var e=o.f[t];e&&(this.f[t]=e.bind(o))},t),t.a.push(o))}function Fi(t,e){for(var o,i={},r=0,n=Bi.length;r<n;r++)i[o=Bi[r][0]]=t[o]||e[o]||Bi[r][1];return i}function ki(t,e,o){e.bubbles=!1,Ui(t,"pointerleave",e,o)}function Di(t,e,o){t.out(e,o);var i=e.target,r=e.relatedTarget;i&&r&&i.contains(r)||ki(t,e,o)}function Oi(t,e,o){e.bubbles=!0,Ui(t,"pointerover",e,o);var i=e.target,r=e.relatedTarget;i&&r&&i.contains(r)||(e.bubbles=!1,Ui(t,"pointerenter",e,o))}function Ui(t,e,o,i){t.b(new Ti(e,i,o))}function Gi(t,e){t.b(new Ti(e.type,e,e))}e(Ci,wi),(r=Ci.prototype).ij=function(){this.g=0,this.c=void 0},r.rq=function(t){var e=t.touches,o=Object.keys(this.a),i=o.length;if(i>=e.length){for(var r=[],n=0;n<i;++n){var s,a=o[n],p=this.a[a];if(!(s=1==a))t:{for(var h=e.length,l=0;l<h;l++)if((s=e[l]).identifier===a-2){s=!0;break t}s=!1}s||r.push(p.out)}for(n=0;n<r.length;++n)this.Kf(t,r[n])}e=t.changedTouches[0],(!(o=Object.keys(this.a).length)||1===o&&1..toString()in this.a)&&(this.i=e.identifier,void 0!==this.c&&clearTimeout(this.c)),Ri(this,t),this.g++,Li(this,t,this.cp)},r.cp=function(t,e){this.a[e.pointerId]={target:e.target,out:e,Wi:e.target};var o=this.b;e.bubbles=!0,Ui(o,"pointerover",e,t),o=this.b,e.bubbles=!1,Ui(o,"pointerenter",e,t),Ui(this.b,"pointerdown",e,t)},r.qq=function(t){t.preventDefault(),Li(this,t,this.km)},r.km=function(t,e){var o,i,r=this.a[e.pointerId];r&&(o=r.out,i=r.Wi,Ui(this.b,"pointermove",e,t),o&&i!==e.target&&(o.relatedTarget=e.target,e.relatedTarget=i,o.target=i,e.target?(Di(this.b,o,t),Oi(this.b,e,t)):(e.target=i,e.relatedTarget=null,this.Kf(t,e))),r.out=e,r.Wi=e.target)},r.pq=function(t){Ri(this,t),Li(this,t,this.sq)},r.sq=function(t,e){Ui(this.b,"pointerup",e,t),this.b.out(e,t),ki(this.b,e,t),delete this.a[e.pointerId],e.isPrimary&&(this.i=void 0,this.c=setTimeout(this.ij.bind(this),200))},r.oq=function(t){Li(this,t,this.Kf)},r.Kf=function(t,e){this.b.cancel(e,t),this.b.out(e,t),ki(this.b,e,t),delete this.a[e.pointerId],e.isPrimary&&(this.i=void 0,this.c=setTimeout(this.ij.bind(this),200))},e(Ii,eo),Ii.prototype.c=function(t){var e=this.f[t.type];e&&e(t)},Ii.prototype.out=function(t,e){t.bubbles=!0,Ui(this,"pointerout",t,e)},Ii.prototype.cancel=function(t,e){Ui(this,"pointercancel",t,e)};var Bi=[["bubbles",!(Ii.prototype.ka=function(){for(var t,e,o=this.a.length,i=0;i<o;i++)t=this.a[i],e=this,Object.keys(t.f).forEach(function(t){He(this.g,t,this.c,this)},e);eo.prototype.ka.call(this)})],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]];function Xi(t,e){eo.call(this),this.i=t,this.j=0,this.o=!1,this.f=[],this.D=e?e*ni:ni,this.c=null,t=this.i.a,this.S=0,this.u={},this.g=new Ii(t),this.a=null,this.l=d(this.g,"pointerdown",this.Ol,this),this.v=d(this.g,"pointermove",this.Lp,this)}function Vi(t,e){"pointerup"==e.type||"pointercancel"==e.type?delete t.u[e.pointerId]:"pointerdown"==e.type&&(t.u[e.pointerId]=!0),t.S=Object.keys(t.u).length}function Wi(t,e){return Math.abs(e.clientX-t.c.clientX)>t.D||Math.abs(e.clientY-t.c.clientY)>t.D}function Zi(t,e){this.l=t,this.c=e,this.b=[],this.i=[],this.a={}}function Ki(t){var e=t.b,o=t.i,i=e[0];return 1==e.length?(e.length=0,o.length=0):(e[0]=e.pop(),o[0]=o.pop(),zi(t,0)),e=t.c(i),delete t.a[e],i}function zi(t,e){for(var o=t.b,i=t.i,r=o.length,n=o[e],s=i[e],a=e;e<r>>1;){var p=2*e+1,h=2*e+2,p=h<r&&i[h]<i[p]?h:p;o[e]=o[p],i[e]=i[p],e=p}o[e]=n,i[e]=s,Yi(t,a,e)}function Yi(t,e,o){var i=t.b;t=t.i;for(var r=i[o],n=t[o];e<o;){var s=o-1>>1;if(!(t[s]>n))break;i[o]=i[s],t[o]=t[s],o=s}i[o]=r,t[o]=n}function Hi(t){for(var e=t.l,o=t.b,i=t.i,r=0,n=o.length,s=0;s<n;++s){var a=o[s],p=e(a);1/0==p?delete t.a[t.c(a)]:(i[r]=p,o[r++]=a)}for(o.length=r,i.length=r,e=(t.b.length>>1)-1;0<=e;e--)zi(t,e)}function qi(e,t){Zi.call(this,function(t){return e.apply(null,t)},function(t){return t[0].bb()}),this.v=t,this.j=0,this.g={}}function Ji(t,e,o){for(var i,r,n=0;t.j<e&&n<o&&0<t.b.length;)r=(i=Ki(t)[0]).bb(),0!==i.getState()||r in t.g||(t.g[r]=!0,++t.j,++n,i.load())}function _i(t){if(void 0!==t)return 0}function $i(t,e){if(void 0!==t)return t+e}function Qi(t,e){return 2<(e=-1===(e=(t=void 0!==e?t.toFixed(e):""+t).indexOf("."))?t.length:e)?t:Array(3-e).join("0")+t}function tr(t){t=(""+t).split(".");for(var e=["1","3"],o=0;o<Math.max(t.length,e.length);o++){var i=parseInt(t[o]||"0",10),r=parseInt(e[o]||"0",10);if(r<i)return 1;if(i<r)return-1}return 0}function er(t,e){return t[0]+=e[0],t[1]+=e[1],t}function or(t,e){var o=t[0],i=(t=t[1],e[0]),r=e[1],i=(e=i[0],i[1]),n=r[0],s=n-e,a=(r=r[1])-i;return o=(o=s||a?(s*(o-e)+a*(t-i))/(s*s+a*a||0):0)<=0?(t=e,i):1<=o?(t=n,r):(t=e+o*s,i+o*a),[t,o]}function ir(t,e,o){e=rt(e+180,360)-180;var i=Math.abs(3600*e),r=(o=o||0,Math.pow(10,o)),n=Math.floor(i/3600),s=Math.floor((i-3600*n)/60);return 60<=(i=Math.ceil((i-3600*n-60*s)*r)/r)&&(i=0,s+=1),60<=s&&(s=0,n+=1),n+"° "+Qi(s)+"′ "+Qi(i,o)+"″"+(e?" "+t.charAt(e<0?1:0):"")}function rr(t,e,o){return t?e.replace("{x}",t[0].toFixed(o)).replace("{y}",t[1].toFixed(o)):""}function nr(t,e){for(var o=!0,i=t.length-1;0<=i;--i)if(t[i]!=e[i]){o=!1;break}return o}function sr(t,e){var o=Math.cos(e),i=(e=Math.sin(e),t[1]*o+t[0]*e);return t[0]=t[0]*o-t[1]*e,t[1]=i,t}function ar(t,e){t[0]*=e,t[1]*=e}function pr(t,e){var o=t[0]-e[0];return o*o+(t=t[1]-e[1])*t}function hr(t,e){return Math.sqrt(pr(t,e))}function lr(t,e){return pr(t,or(t,e))}function ur(t,e){return rr(t,"{x}, {y}",e)}function cr(){return!0}function fr(){return!1}function yr(){ro.call(this),this.l=vt(),this.v=-1,this.f={},this.o=this.g=0}function gr(t,e,o,i,r,n){for(var s=n||[],a=0;e<o;e+=i){var p=t[e],h=t[e+1];s[a++]=r[0]*p+r[2]*h+r[4],s[a++]=r[1]*p+r[3]*h+r[5]}return n&&s.length!=a&&(s.length=a),s}function dr(t,e,o,i,r,n,s){for(var a,p=s||[],h=0;e<o;e+=i)for(p[h++]=t[e]+r,p[h++]=t[e+1]+n,a=e+2;a<e+i;++a)p[h++]=t[a];return s&&p.length!=h&&(p.length=h),p}function b(){yr.call(this),this.ja="XY",this.a=2,this.A=null}function vr(t){var e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function br(t,e,o){t.a=vr(e),t.ja=e,t.A=o}function mr(t,e,o,i){if(e)o=vr(e);else{for(e=0;e<i;++e){if(!o.length)return t.ja="XY",void(t.a=2);o=o[0]}var r;2==(o=o.length)?r="XY":3==o?r="XYZ":4==o&&(r="XYZM"),e=r}t.ja=e,t.a=o}function wr(t,e,o,i){for(var r=0,n=t[o-i],s=t[o-i+1];e<o;e+=i)var a=t[e],p=t[e+1],r=r+(s*a-n*p),n=a,s=p;return r/2}function xr(t,e,o,i){for(var r=0,n=0,s=o.length;n<s;++n){var a=o[n],r=r+wr(t,e,a,i);e=a}return r}function Sr(t,e,o,i,r,n,s){var a=t[e],p=t[e+1],h=t[o]-a,l=t[o+1]-p;if(h||l)if(1<(n=((r-a)*h+(n-p)*l)/(h*h+l*l)))e=o;else if(0<n){for(r=0;r<i;++r)s[r]=nt(t[e+r],t[o+r],n);return void(s.length=i)}for(r=0;r<i;++r)s[r]=t[e+r];s.length=i}function Mr(t,e,o,i,r){var n=t[e],s=t[e+1];for(e+=i;e<o;e+=i){var a=t[e],p=t[e+1];r<(n=ot(n,s,a,p))&&(r=n),n=a,s=p}return r}function Pr(t,e,o,i,r){for(var n=0,s=o.length;n<s;++n){var a=o[n];r=Mr(t,e,a,i,r),e=a}return r}function Ar(t,e,o,i,r,n,s,a,p,h,l){if(e!=o)if(r){for(var u=l||[NaN,NaN],c=e+i;c<o;)if(Sr(t,c-i,c,i,s,a,u),(f=ot(s,a,u[0],u[1]))<h){for(h=f,l=0;l<i;++l)p[l]=u[l];c+=p.length=i}else c+=i*Math.max((Math.sqrt(f)-Math.sqrt(h))/r|0,1);if(n&&(Sr(t,o-i,e,i,s,a,u),(f=ot(s,a,u[0],u[1]))<h)){for(h=f,l=0;l<i;++l)p[l]=u[l];p.length=i}}else{var f=ot(s,a,t[e],t[e+1]);if(f<h){for(l=0;l<i;++l)p[l]=t[e+l];return p.length=i,f}}return h}function Er(t,e,o,i,r,n,s,a,p,h,l){l=l||[NaN,NaN];for(var u=0,c=o.length;u<c;++u){var f=o[u];h=Ar(t,e,f,i,r,n,s,a,p,h,l),e=f}return h}function Tr(t,e){for(var o=0,i=0,r=e.length;i<r;++i)t[o++]=e[i];return o}function jr(t,e,o,i){for(var r=0,n=o.length;r<n;++r)for(var s=o[r],a=0;a<i;++a)t[e++]=s[a];return e}function Cr(t,e,o,i,r){r=r||[];for(var n=0,s=0,a=o.length;s<a;++s)e=jr(t,e,o[s],i),r[n++]=e;return r.length=n,r}function Lr(t,e,o,i,r){r=void 0!==r?r:[];for(var n=0;e<o;e+=i)r[n++]=t.slice(e,e+i);return r.length=n,r}function Rr(t,e,o,i,r){r=void 0!==r?r:[];for(var n=0,s=0,a=o.length;s<a;++s){var p=o[s];r[n++]=Lr(t,e,p,i,r[n]),e=p}return r.length=n,r}function Ir(t,e,o,i,r,n,s){var a=(o-e)/i;if(a<3)for(;e<o;e+=i)n[s++]=t[e],n[s++]=t[e+1];else{var p=Array(a);p[0]=1,p[a-1]=1,o=[e,o-i];for(var h=0;0<o.length;){for(var l=o.pop(),u=o.pop(),c=0,f=t[u],y=t[u+1],g=t[l],d=t[l+1],v=u+i;v<l;v+=i){var b=et(t[v],t[v+1],f,y,g,d);c<b&&(h=v,c=b)}r<c&&(p[(h-e)/i]=1,u+i<h&&o.push(u,h),h+i<l&&o.push(h,l))}for(v=0;v<a;++v)p[v]&&(n[s++]=t[e+v*i],n[s++]=t[e+v*i+1])}return s}function Nr(t,e,o,i,r,n,s,a){for(var p=0,h=o.length;p<h;++p){var l=o[p];t:{var u=t,c=l,f=i,y=r,g=n,d=s;if(e!=c){var v=y*Math.round(u[e]/y),b=y*Math.round(u[e+1]/y);e+=f,g[d++]=v,g[d++]=b;do{var m=y*Math.round(u[e]/y);if(s=y*Math.round(u[e+1]/y),(e+=f)==c){g[d++]=m,g[d++]=s,s=d;break t}}while(m==v&&s==b);for(;e<c;){var w,x,S,M,P=y*Math.round(u[e]/y),A=y*Math.round(u[e+1]/y);e+=f,P==m&&A==s||((w=m-v)*(M=A-b)==(x=s-b)*(S=P-v)&&(w<0&&S<w||w==S||0<w&&w<S)&&(x<0&&M<x||x==M||0<x&&x<M)||(v=g[d++]=m,b=g[d++]=s),m=P,s=A)}g[d++]=m,g[d++]=s}s=d}a.push(s),e=l}return s}function Fr(t,e){b.call(this),this.c=this.j=-1,this.ma(t,e)}function kr(t,e,o){br(t,e,o),t.s()}function m(t,e){b.call(this),this.ma(t,e)}function Dr(t,e,o,i,r,n){for(var s=0,a=t[o-i],p=t[o-i+1];e<o;e+=i){var h=t[e],l=t[e+1];p<=n?n<l&&0<(h-a)*(n-p)-(r-a)*(l-p)&&s++:l<=n&&(h-a)*(n-p)-(r-a)*(l-p)<0&&s--,a=h,p=l}return s}function Or(t,e,o,i,r,n){if(!o.length||!Dr(t,e,o[0],i,r,n))return!1;var s;for(e=1,s=o.length;e<s;++e)if(Dr(t,o[e-1],o[e],i,r,n))return!1;return!0}function Ur(t,e,o,i,r,n,s){for(var a=r[n+1],p=[],h=o[0],l=t[h-i],u=t[h-i+1],c=e;c<h;c+=i){var f=t[c],y=t[c+1];(a<=u&&y<=a||u<=a&&a<=y)&&p.push(l=(a-u)/(y-u)*(f-l)+l),l=f,u=y}for(h=NaN,u=-1/0,p.sort(G),l=p[0],c=1,y=p.length;c<y;++c){var f=p[c],g=Math.abs(f-l);u<g&&(Or(t,e,o,i,l=(l+f)/2,a)&&(h=l,u=g)),l=f}return isNaN(h)&&(h=r[n]),s?(s.push(h,a),s):[h,a]}function Gr(t,e,o,i,r,n){for(var s,a=[t[e],t[e+1]],p=[];e+i<o;e+=i){if(p[0]=t[e+i],p[1]=t[e+i+1],s=r.call(n,a,p))return s;a[0]=p[0],a[1]=p[1]}return!1}function Br(t,e,o,i,l){var r=At(vt(),t,e,o,i);return!!Ot(l,r)&&(!!(yt(l,r)||r[0]>=l[0]&&r[2]<=l[2]||r[1]>=l[1]&&r[3]<=l[3])||Gr(t,e,o,i,function(t,e){var o,i,r,n,s,a=!1,p=dt(l,t),h=dt(l,e);return 1===p||1===h?a=!0:(o=l[0],i=l[1],r=l[2],n=l[3],s=e[0],t=((e=e[1])-t[1])/(s-t[0]),(a=(a=(a=2&h&&!(2&p)?o<=(a=s-(e-n)/t)&&a<=r:a)||!(4&h)||4&p?a:i<=(a=e-(s-r)*t)&&a<=n)||!(8&h)||8&p?a:o<=(a=s-(e-i)/t)&&a<=r)||!(16&h)||16&p||(a=i<=(a=e-(s-o)*t)&&a<=n)),a}))}function Xr(t,e,o,i,r){var n=o[0];if(!(Br(t,e,n,i,r)||Dr(t,e,n,i,r[0],r[1])||Dr(t,e,n,i,r[0],r[3])||Dr(t,e,n,i,r[2],r[1])||Dr(t,e,n,i,r[2],r[3])))return!1;if(1!==o.length)for(e=1,n=o.length;e<n;++e)if(function(e,o,i,r,t){return!Et(t,function(t){return!Dr(e,o,i,r,t[0],t[1])})}(t,o[e-1],o[e],i,r))return!1;return!0}function Vr(t,e,o,i){for(var r=0,n=t[o-i],s=t[o-i+1];e<o;e+=i)var a=t[e],p=t[e+1],r=r+(a-n)*(p+s),n=a,s=p;return 0<r}function Wr(t,e,o,i){for(var r=0,n=(i=void 0!==i&&i,0),s=e.length;n<s;++n){var a=e[n],r=Vr(t,r,a,o);if(n){if(i&&!r||!i&&r)return}else if(i&&r||!i&&!r)return;r=a}return 1}function Zr(t,e,o,i,r){r=void 0!==r&&r;for(var n=0,s=o.length;n<s;++n){var a=o[n],p=Vr(t,e,a,i);if(n?r&&!p||!r&&p:r&&p||!r&&!p)for(var p=t,h=a,l=i;e<h-l;){for(var u=0;u<l;++u){var c=p[e+u];p[e+u]=p[h-l+u],p[h-l+u]=c}e+=l,h-=l}e=a}return e}function Kr(t,e,o,i){for(var r=0,n=0,s=e.length;n<s;++n)r=Zr(t,r,e[n],o,i);return r}function w(t,e){b.call(this),this.c=[],this.u=-1,this.D=null,this.I=this.C=this.B=-1,this.j=null,this.ma(t,e)}function zr(t){var e;return t.u!=t.i&&(e=Lt(t.G()),t.D=Ur(t.ec(),0,t.c,t.a,e,0),t.u=t.i),t.D}function Yr(t,e,o,i){var r,n=i||32;for(i=[],r=0;r<n;++r)X(i,t.offset(e,o,2*Math.PI*r/n));return i.push(i[0],i[1]),(t=new w(null)).ba("XY",i,[i.length]),t}function Hr(t){var e=t[0],o=t[1],i=t[2],e=[e,o,e,t=t[3],i,t,i,o,e,o];return(o=new w(null)).ba("XY",e,[e.length]),o}function qr(t,e,o){for(var i=e||32,r=t.qa(),n=new w(null,e=t.ja),i=r*(i+1),r=Array(i),s=0;s<i;s++)r[s]=0;return n.ba(e,r,[r.length]),Jr(n,t.wa(),t.pd(),o),n}function Jr(t,e,o,i){var r=t.ga(),n=t.ja,s=t.qa(),a=t.Bb(),p=r.length/s-1;i=i||0;for(var h,l,u=0;u<=p;++u)l=u*s,h=i+2*rt(u,p)*Math.PI/p,r[l]=e[0]+o*Math.cos(h),r[1+l]=e[1]+o*Math.sin(h);t.ba(n,r,a)}function h(t){ro.call(this),t=Xt({},t),this.o=[0,0],this.c=[],this.wf=this.wf.bind(this),this.v=ge(t.projection),_r(this,t)}function _r(t,e){var o,i,r,n,s,a,p,h,l,u,c,f={},y=(f.center=void 0!==e.center?e.center:null,void 0!==e.minZoom?e.minZoom:0),g=void 0!==e.maxZoom?e.maxZoom:28,d=void 0!==e.zoomFactor?e.zoomFactor:2;g=void 0!==e.resolutions?(o=(g=e.resolutions)[0],i=g[g.length-1],p=g,function(t,e,o){if(void 0!==t)return(t=Q((t=B(p,t,o))+e,0,p.length-1))!=(e=Math.floor(t))&&e<p.length-1?p[e]/Math.pow(p[e]/p[e+1],t-e):p[e]}):(r=(h=((i=(o=ge(e.projection)).G())?Math.max(Dt(i),It(i)):360*Yt.degrees/o.sc())/256/Math.pow(2,0))/Math.pow(2,28),void 0!==(o=e.maxResolution)?y=0:o=h/Math.pow(d,y),void 0===(i=e.minResolution)&&(i=void 0!==e.maxZoom?void 0!==e.maxResolution?o/Math.pow(d,g):h/Math.pow(d,g):r),g=y+Math.floor(Math.log(o/i)/Math.log(d)),i=o/Math.pow(d,g-y),n=d,s=o,a=g-y,function(t,e,o){if(void 0!==t)return t=Math.max(Math.floor(Math.log(s/t)/Math.log(n)+(-o/2+.5))+e,0),void 0!==a&&(t=Math.min(t,a)),s/Math.pow(n,t)}),t.a=o,t.f=i,t.C=d,t.j=e.resolutions,t.l=y,y=void 0===e.enableRotation||e.enableRotation?void 0===(y=e.constrainRotation)||!0===y?(u=it(5),function(t,e){if(void 0!==t)return Math.abs(t+e)<=u?0:t+e}):!1!==y&&"number"==typeof y?(h=y,l=2*Math.PI/h,function(t,e){if(void 0!==t)return Math.floor((t+e)/l+.5)*l}):$i:_i,t.g={center:void 0!==e.extent?(c=e.extent,function(t){if(t)return[Q(t[0],c[0],c[2]),Q(t[1],c[1],c[3])]}):Xe,resolution:g,rotation:y},void 0!==e.resolution?f.resolution=e.resolution:void 0!==e.zoom&&(f.resolution=t.constrainResolution(t.a,e.zoom-t.l)),f.rotation=void 0!==e.rotation?e.rotation:0,t.H(f),t.D=e}function $r(t,e){var o=Xt({},t.D);return void 0!==o.resolution?o.resolution=t.Pa():o.zoom=t.Hh(),o.center=t.wa(),o.rotation=t.Qa(),Xt({},o,e)}function Qr(t,e,o){var i,r=t.wa();return void 0!==r&&(sr(i=[r[0]-o[0],r[1]-o[1]],e-t.Qa()),er(i,o)),i}function tn(t,e,o){var i,r=t.wa();return t=t.Pa(),i=void 0!==r&&void 0!==t?[o[0]-e*(o[0]-r[0])/t,o[1]-e*(o[1]-r[1])/t]:i}function en(t){var e=[100,100];return t='.ol-viewport[data-view="'+U(t)+'"]',(t=document.querySelector(t))&&(t=getComputedStyle(t),e[0]=parseInt(t.width,10),e[1]=parseInt(t.height,10)),e}function on(t,e){return void 0!==e?(e[0]=t.o[0],e[1]=t.o[1],e):t.o.slice()}function rn(t){return t.wa()&&void 0!==t.Pa()}function nn(t,e,o){t.o[e]+=o,t.s()}function sn(t,e,o){this.f=t,this.c=e,this.g=o,this.b=[],this.a=this.i=0}function an(t){t.b.length=0,t.i=0,t.a=0}function pn(t){ro.call(this),this.v=null,this.Ha(!0),this.handleEvent=t.handleEvent}function hn(t,e,o,i){var r,n;void 0!==e&&(r=t.Qa(),n=t.wa(),void 0!==r&&n&&0<i?t.animate({rotation:e,anchor:o,duration:i,easing:Io}):t.rotate(e,o))}function ln(t,e,o,i){var r,n=t.Pa();e=t.constrainResolution(n,e,0),o&&void 0!==e&&e!==n&&(r=t.wa(),o=tn(t,e,o),o=t.Ec(o),o=[(e*r[0]-n*o[0])/(e-n),(e*r[1]-n*o[1])/(e-n)]),un(t,e,o,i)}function un(t,e,o,i){var r,n;e&&(r=t.Pa(),n=t.wa(),void 0!==r&&n&&e!==r&&i?t.animate({resolution:e,anchor:o,duration:i,easing:Io}):(o&&(o=tn(t,e,o),t.ob(o)),t.Vc(e)))}function cn(t){this.a=(t=t||{}).delta||1,pn.call(this,{handleEvent:fn}),this.g=void 0!==t.duration?t.duration:250}function fn(t){var e=!1,o=t.originalEvent;return"dblclick"==t.type&&(e=t.coordinate,o=o.shiftKey?-this.a:this.a,ln(t.map.Z(),o,e,this.g),t.preventDefault(),e=!0),!e}function yn(t){return(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}function gn(t){return!((t=t.originalEvent).button||ii&&ri&&t.ctrlKey)}function dn(t){return"pointermove"==t.type}function vn(t){return"singleclick"==t.type}function bn(t){return!(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}function mn(t){return!(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}function wn(t){return"INPUT"!==(t=t.originalEvent.target.tagName)&&"SELECT"!==t&&"TEXTAREA"!==t}function xn(t){return O(t.b,56),"mouse"==t.b.pointerType}function Sn(t){return(t=t.b).isPrimary&&0===t.button}function Mn(t){pn.call(this,{handleEvent:(t=t||{}).handleEvent||An}),this.yf=t.handleDownEvent||fr,this.If=t.handleDragEvent||Y,this.Jf=t.handleMoveEvent||Y,this.sk=t.handleUpEvent||fr,this.D=!1,this.na={},this.o=[]}function Pn(t){for(var e=t.length,o=0,i=0,r=0;r<e;r++)o+=t[r].clientX,i+=t[r].clientY;return[o/e,i/e]}function An(t){if(!(t instanceof mi))return!0;var e=!1,o=t.type;return"pointerdown"!==o&&"pointerdrag"!==o&&"pointerup"!==o||(o=t.b,"pointerup"==t.type?delete this.na[o.pointerId]:("pointerdown"==t.type||o.pointerId in this.na)&&(this.na[o.pointerId]=o),this.o=Wt(this.na)),this.D?"pointerdrag"==t.type?this.If(t):"pointerup"==t.type&&(this.D=this.sk(t)&&0<this.o.length):"pointerdown"==t.type?(this.D=t=this.yf(t),e=this.Xc(t)):"pointermove"==t.type&&this.Jf(t),!e}function En(t){Mn.call(this,{handleDownEvent:Cn,handleDragEvent:Tn,handleUpEvent:jn}),this.a=(t=t||{}).kinetic,this.g=null,this.u=t.condition||bn,this.j=!1}function Tn(t){var e,o,i=this.o,r=Pn(i);i.length==this.l?(this.a&&this.a.b.push(r[0],r[1],Date.now()),this.g&&(ar(o=[o=this.g[0]-r[0],r[1]-this.g[1]],(e=(t=t.map.Z()).getState()).resolution),sr(o,e.rotation),er(o,e.center),o=t.Ec(o),t.ob(o))):this.a&&an(this.a),this.g=r,this.l=i.length}function jn(t){var e,o,i,r=t.map;return t=r.Z(),this.o.length?(this.a&&an(this.a),!(this.g=null)):(!this.j&&this.a&&function(t){if(!(t.b.length<6)){var e=Date.now()-t.g,o=t.b.length-3;if(!(t.b[2+o]<e)){for(var i,r=o-3;0<r&&t.b[r+2]>e;)r-=3;if(!((e=t.b[2+o]-t.b[r+2])<1e3/60))return i=t.b[o]-t.b[r],o=t.b[1+o]-t.b[r+1],t.i=Math.atan2(o,i),t.a=Math.sqrt(i*i+o*o)/e,t.a>t.c}}}(this.a)&&(e=((e=this.a).c-e.a)/e.f,o=this.a.i,i=t.wa(),i=r.Ja(i),r=r.Wa([i[0]-e*Math.cos(o),i[1]-e*Math.sin(o)]),t.animate({center:t.Ec(r),duration:500,easing:Io})),nn(t,1,-1),!1)}function Cn(t){var e;return!!(0<this.o.length&&this.u(t))&&(e=t.map.Z(),this.g=null,this.D||nn(e,1,1),on(e)[0]&&e.ob(t.frameState.viewState.center),this.a&&an(this.a),this.j=1<this.o.length,!0)}function Ln(t){t=t||{},Mn.call(this,{handleDownEvent:Nn,handleDragEvent:Rn,handleUpEvent:In}),this.g=t.condition||yn,this.a=void 0,this.j=void 0!==t.duration?t.duration:250}function Rn(t){var e,o,i;xn(t)&&(e=(o=t.map).Z()).g.rotation!==_i&&(o=o.Ob(),t=t.pixel,t=Math.atan2(o[1]/2-t[1],t[0]-o[0]/2),void 0!==this.a&&(o=t-this.a,i=e.Qa(),hn(e,i-o)),this.a=t)}function In(t){if(!xn(t))return!0;nn(t=t.map.Z(),1,-1);var e=t.Qa(),o=this.j,e=t.constrainRotation(e,0);return hn(t,e,void 0,o),!1}function Nn(t){return!!(xn(t)&&gn(t)&&this.g(t))&&(nn(t.map.Z(),1,1),!(this.a=void 0))}function Fn(t){this.Gc=null,this.a=document.createElement("div"),this.a.style.position="absolute",this.a.className="ol-box "+t,this.i=this.c=this.b=null}function kn(t){var e=t.c,o=t.i;(t=t.a.style).left=Math.min(e[0],o[0])+"px",t.top=Math.min(e[1],o[1])+"px",t.width=Math.abs(o[0]-e[0])+"px",t.height=Math.abs(o[1]-e[1])+"px"}function Dn(t){var e=t.c,o=t.i;(e=[e,[e[0],o[1]],o,[o[0],e[1]]].map(t.b.Wa,t.b))[4]=e[0].slice(),t.Gc?t.Gc.ma([e]):t.Gc=new w([e])}function On(t){Mn.call(this,{handleDownEvent:Xn,handleDragEvent:Gn,handleUpEvent:Bn}),this.a=new Fn((t=t||{}).className||"ol-dragbox"),this.u=void 0!==t.minArea?t.minArea:64,this.g=null,this.C=t.condition||cr,this.l=t.boxEndCondition||Un}function Un(t,e,o){return(t=o[0]-e[0])*t+(e=o[1]-e[1])*e>=this.u}function Gn(t){var e,o;xn(t)&&(e=this.a,o=t.pixel,e.c=this.g,e.i=o,Dn(e),kn(e),this.b(new Kn(Wn,t.coordinate,t)))}function Bn(t){return!xn(t)||(this.a.setMap(null),this.l(t,this.g,t.pixel)&&(this.j(t),this.b(new Kn(Zn,t.coordinate,t))),!1)}function Xn(t){var e,o;return!!(xn(t)&&gn(t)&&this.C(t))&&(this.g=t.pixel,this.a.setMap(t.map),e=this.a,o=this.g,e.c=this.g,e.i=o,Dn(e),kn(e),this.b(new Kn(Vn,t.coordinate,t)),!0)}e(Xi,eo),(r=Xi.prototype).Jh=function(t){Vi(this,t);var e,o=new mi("pointerup",this.i,t);this.b(o),this.o||t.button||(e=(o=this).c,t=new mi("click",o.i,e),o.b(t),o.j?(clearTimeout(o.j),o.j=0,t=new mi("dblclick",o.i,e),o.b(t)):o.j=setTimeout(function(){this.j=0;var t=new mi("singleclick",this.i,e);this.b(t)}.bind(o),250)),this.S||(this.f.forEach(qe),this.f.length=0,this.o=!1,this.c=null,$e(this.a),this.a=null)},r.Ol=function(t){Vi(this,t);var e=new mi("pointerdown",this.i,t);this.b(e),this.c=t,this.f.length||(this.a=new Ii(document),this.f.push(d(this.a,"pointermove",this.Hm,this),d(this.a,"pointerup",this.Jh,this),d(this.g,"pointercancel",this.Jh,this)))},r.Hm=function(t){var e;Wi(this,t)&&(this.o=!0,e=new mi("pointerdrag",this.i,t,this.o),this.b(e)),t.preventDefault()},r.Lp=function(t){this.b(new mi(t.type,this.i,t,!(!this.c||!Wi(this,t))))},r.ka=function(){this.v&&(qe(this.v),this.v=null),this.l&&(qe(this.l),this.l=null),this.f.forEach(qe),this.f.length=0,this.a&&($e(this.a),this.a=null),this.g&&($e(this.g),this.g=null),eo.prototype.ka.call(this)},Zi.prototype.clear=function(){this.b.length=0,this.i.length=0,Vt(this.a)},Zi.prototype.f=function(t){O(!(this.c(t)in this.a),31);var e=this.l(t);return 1/0!=e&&(this.b.push(t),this.i.push(e),this.a[this.c(t)]=!0,Yi(this,0,this.b.length-1),!0)},e(qi,Zi),qi.prototype.f=function(t){var e=Zi.prototype.f.call(this,t);return e&&d(t[0],"change",this.o,this),e},qi.prototype.o=function(t){var e=(t=t.target).getState();2!==e&&3!==e&&4!==e&&5!==e||(He(t,"change",this.o,this),(t=t.bb())in this.g&&(delete this.g[t],--this.j),this.v())},e(yr,ro),(r=yr.prototype).Ab=function(t,e){return this.Kb(t[0],t[1],e=e||[NaN,NaN],1/0),e},r.sb=function(t){return this.Mc(t[0],t[1])},r.Mc=fr,r.G=function(t){this.v!=this.i&&(this.l=this.se(this.l),this.v=this.i);var e=this.l;return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]):t=e,t},r.Rb=function(t){return this.Vd(t*t)},r.tb=function(t,e){return this.Dc(me(t,e)),this},e(b,yr),(r=b.prototype).Mc=fr,r.se=function(t){return xt(this.A,0,this.A.length,this.a,t)},r.ac=function(){return this.A.slice(0,this.a)},r.ga=function(){return this.A},r.bc=function(){return this.A.slice(this.A.length-this.a)},r.cc=function(){return this.ja},r.Vd=function(t){if(this.o!=this.i&&(Vt(this.f),this.g=0,this.o=this.i),!(t<0||this.g&&t<=this.g)){var e=t.toString();if(this.f.hasOwnProperty(e))return this.f[e];var o=this.hd(t);if(o.ga().length<this.A.length)return this.f[e]=o;this.g=t}return this},r.hd=function(){return this},r.qa=function(){return this.a},r.Dc=function(t){this.A&&(t(this.A,this.A,this.a),this.s())},r.rotate=function(t,e){var o=this.ga();if(o){var i=o.length,r=this.qa(),n=o||[],s=Math.cos(t),a=(t=Math.sin(t),e[0]);e=e[1];for(var p=0,h=0;h<i;h+=r){var l=o[h]-a,u=o[h+1]-e;for(n[p++]=a+l*s-u*t,n[p++]=e+l*t+u*s,l=h+2;l<h+r;++l)n[p++]=o[l]}o&&n.length!=p&&(n.length=p),this.s()}},r.scale=function(t,e,o){var i=void 0===e?t:e;if(a=(a=o)||Lt(this.G()),o=this.ga()){e=o.length;for(var r=this.qa(),n=o||[],s=a[0],a=a[1],p=0,h=0;h<e;h+=r){var l=o[h]-s,u=o[h+1]-a;for(n[p++]=s+t*l,n[p++]=a+i*u,l=h+2;l<h+r;++l)n[p++]=o[l]}o&&n.length!=p&&(n.length=p),this.s()}},r.translate=function(t,e){var o=this.ga();o&&(dr(o,0,o.length,this.qa(),t,e,o),this.s())},e(Fr,b),(r=Fr.prototype).clone=function(){var t=new Fr(null);return kr(t,this.ja,this.A.slice()),t},r.Kb=function(t,e,o,i){return i<ct(this.G(),t,e)?i:(this.c!=this.i&&(this.j=Math.sqrt(Mr(this.A,0,this.A.length,this.a,0)),this.c=this.i),Ar(this.A,0,this.A.length,this.a,this.j,!0,t,e,o,i))},r.qn=function(){return wr(this.A,0,this.A.length,this.a)},r.X=function(){return Lr(this.A,0,this.A.length,this.a)},r.hd=function(t){var e=[];return e.length=Ir(this.A,0,this.A.length,this.a,t,e,0),kr(t=new Fr(null),"XY",e),t},r.U=function(){return"LinearRing"},r.Xa=function(){},r.ma=function(t,e){t?(mr(this,e,t,1),this.A||(this.A=[]),this.A.length=jr(this.A,0,t,this.a),this.s()):kr(this,"XY",null)},e(m,b),(r=m.prototype).clone=function(){var t=new m(null);return t.ba(this.ja,this.A.slice()),t},r.Kb=function(t,e,o,i){var r=this.A;if((t=ot(t,e,r[0],r[1]))<i){for(i=this.a,e=0;e<i;++e)o[e]=r[e];return o.length=i,t}return i},r.X=function(){return this.A?this.A.slice():[]},r.se=function(t){return wt(this.A,t)},r.U=function(){return"Point"},r.Xa=function(t){return gt(t,this.A[0],this.A[1])},r.ma=function(t,e){t?(mr(this,e,t,0),this.A||(this.A=[]),this.A.length=Tr(this.A,t),this.s()):this.ba("XY",null)},r.ba=function(t,e){br(this,t,e),this.s()},e(w,b),(r=w.prototype).pk=function(t){this.A?X(this.A,t.ga()):this.A=t.ga().slice(),this.c.push(this.A.length),this.s()},r.clone=function(){var t=new w(null);return t.ba(this.ja,this.A.slice(),this.c.slice()),t},r.Kb=function(t,e,o,i){return i<ct(this.G(),t,e)?i:(this.C!=this.i&&(this.B=Math.sqrt(Pr(this.A,0,this.c,this.a,0)),this.C=this.i),Er(this.A,0,this.c,this.a,this.B,!0,t,e,o,i))},r.Mc=function(t,e){return Or(this.ec(),0,this.c,this.a,t,e)},r.tn=function(){return xr(this.ec(),0,this.c,this.a)},r.X=function(t){var e;return void 0!==t?Zr(e=this.ec().slice(),0,this.c,this.a,t):e=this.A,Rr(e,0,this.c,this.a)},r.Bb=function(){return this.c},r.Tk=function(){return new m(zr(this))},r.Zk=function(){return this.c.length},r.Ch=function(t){if(t<0||this.c.length<=t)return null;var e=new Fr(null);return kr(e,this.ja,this.A.slice(t?this.c[t-1]:0,this.c[t])),e},r.Sd=function(){for(var t=this.ja,e=this.A,o=this.c,i=[],r=0,n=0,s=o.length;n<s;++n){var a=o[n],p=new Fr(null);kr(p,t,e.slice(r,a)),i.push(p),r=a}return i},r.ec=function(){var t;return this.I!=this.i&&(Wr(t=this.A,this.c,this.a)?this.j=t:(this.j=t.slice(),this.j.length=Zr(this.j,0,this.c,this.a)),this.I=this.i),this.j},r.hd=function(t){var e=[],o=[];return e.length=Nr(this.A,0,this.c,this.a,Math.sqrt(t),e,0,o),(t=new w(null)).ba("XY",e,o),t},r.U=function(){return"Polygon"},r.Xa=function(t){return Xr(this.ec(),0,this.c,this.a,t)},r.ma=function(t,e){t?(mr(this,e,t,2),this.A||(this.A=[]),t=Cr(this.A,0,t,this.a,this.c),this.A.length=t.length?t[t.length-1]:0,this.s()):this.ba("XY",null,this.c)},r.ba=function(t,e,o){br(this,t,e),this.c=o,this.s()},e(h,ro),(r=h.prototype).animate=function(t){var e,o=Date.now(),i=this.wa().slice(),r=this.Pa(),n=this.Qa(),s=arguments.length;1<s&&"function"==typeof arguments[s-1]&&(e=arguments[s-1],--s);for(var a=[],p=0;p<s;++p){var h=arguments[p],l={start:o,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||No};h.center&&(l.Rg=i,l.Tg=h.center,i=l.Tg),void 0!==h.zoom?(l.tf=r,l.zd=this.constrainResolution(this.a,h.zoom-this.l,0),r=l.zd):h.resolution&&(l.tf=r,l.zd=h.resolution,r=l.zd),void 0!==h.rotation&&(l.Sg=n,l.uf=h.rotation,n=l.uf),l.callback=e,o+=l.duration,a.push(l)}this.c.push(a),nn(this,0,1),this.wf()},r.Ic=function(){return 0<on(this)[0]},r.Rk=function(){return 0<on(this)[1]},r.ed=function(){nn(this,0,-on(this)[0]);for(var t=0,e=this.c.length;t<e;++t){var o=this.c[t];o[0].callback&&o[0].callback(!1)}this.c.length=0},r.wf=function(){if(void 0!==this.u&&(cancelAnimationFrame(this.u),this.u=void 0),this.Ic()){for(var t=Date.now(),e=!1,o=this.c.length-1;0<=o;--o){for(var i=this.c[o],r=!0,n=0,s=i.length;n<s;++n){var a=i[n];if(!a.complete){var p,h,e=t-a.start;if(1<=(e=0<a.duration?e/a.duration:1)?(a.complete=!0,e=1):r=!1,e=a.easing(e),a.Rg&&(p=a.Rg[0],h=a.Rg[1],this.set("center",[p+e*(a.Tg[0]-p),h+e*(a.Tg[1]-h)])),a.tf&&a.zd&&(p=1===e?a.zd:a.tf+e*(a.zd-a.tf),a.anchor&&this.set("center",tn(this,p,a.anchor)),this.set("resolution",p)),void 0!==a.Sg&&void 0!==a.uf&&(e=1===e?a.uf:a.Sg+e*(a.uf-a.Sg),a.anchor&&this.set("center",Qr(this,e,a.anchor)),this.set("rotation",e)),e=!0,!a.complete)break}}r&&(this.c[o]=null,nn(this,0,-1),(i=i[0].callback)&&i(!0))}this.c=this.c.filter(Boolean),e&&void 0===this.u&&(this.u=requestAnimationFrame(this.wf))}},r.Ec=function(t){return this.g.center(t)},r.constrainResolution=function(t,e,o){return this.g.resolution(t,e||0,o||0)},r.constrainRotation=function(t,e){return this.g.rotation(t,e||0)},r.wa=function(){return this.get("center")},r.dd=function(t){t=t||en(this);var e=this.wa(),o=(O(e,1),this.Pa()),i=(O(void 0!==o,2),this.Qa());return O(void 0!==i,3),Rt(e,o,i,t)},r.Nm=function(){return this.a},r.Pm=function(){return this.f},r.Om=function(){return this.Ce(this.f)},r.eq=function(t){_r(this,$r(this,{maxZoom:t}))},r.Qm=function(){return this.Ce(this.a)},r.fq=function(t){_r(this,$r(this,{minZoom:t}))},r.Rm=function(){return this.v},r.Pa=function(){return this.get("resolution")},r.Sm=function(){return this.j},r.ze=function(t,e){return e=e||en(this),Math.max(Dt(t)/e[0],It(t)/e[1])},r.Qa=function(){return this.get("rotation")},r.getState=function(){var t=this.wa(),e=this.v,o=this.Pa(),i=this.Qa();return{center:t.slice(),projection:void 0!==e?e:null,resolution:o,rotation:i}},r.Hh=function(){var t,e=this.Pa();return t=void 0!==e?this.Ce(e):t},r.Ce=function(t){if(t>=this.f&&t<=this.a){var e=this.l||0;if(this.j){if(e+=i=B(this.j,t,1),i==this.j.length-1)return e;var o=this.j[i],i=o/this.j[i+1]}else o=this.a,i=this.C;e+=Math.log(o/t)/Math.log(i)}return e},r.Qf=function(t,e){var o=(o=(e=e||{}).size)||en(this);t instanceof b?"Circle"===t.U()?(f=Hr(t=t.G())).rotate(this.Qa(),Lt(t)):f=t:(O(Array.isArray(t),24),O(!Ut(t),25),f=Hr(t));for(var i=e.padding||[0,0,0,0],r=void 0===e.constrainResolution||e.constrainResolution,n=void 0!==e.nearest&&e.nearest,s=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.constrainResolution(this.a,e.maxZoom-this.l,0):0,a=f.ga(),p=this.Qa(),p=(t=Math.cos(-p),Math.sin(-p)),h=1/0,l=1/0,u=-1/0,c=-1/0,f=f.qa(),y=0,g=a.length;y<g;y+=f)var d=a[y]*t-a[y+1]*p,v=a[y]*p+a[y+1]*t,h=Math.min(h,d),l=Math.min(l,v),u=Math.max(u,d),c=Math.max(c,v);o=this.ze([h,l,u,c],[o[0]-i[1]-i[3],o[1]-i[0]-i[2]]),o=isNaN(o)?s:Math.max(o,s),r&&(s=this.constrainResolution(o,0,0),o=s=!n&&s<o?this.constrainResolution(s,-1,0):s),t=[(s=(h+u)/2+(i[1]-i[3])/2*o)*t-(i=(l+c)/2+(i[0]-i[2])/2*o)*(p=-p),i*t+s*p],i=e.callback||Y,void 0!==e.duration?this.animate({resolution:o,center:t,duration:e.duration,easing:e.easing},i):(this.Vc(o),this.ob(t),setTimeout(i.bind(void 0,!0),0))},r.uk=function(t,e,o){var i=this.Qa(),r=Math.cos(-i),i=Math.sin(-i),n=t[0]*r-t[1]*i,s=(t=t[1]*r+t[0]*i,this.Pa()),n=n+(e[0]/2-o[0])*s;t+=(o[1]-e[1]/2)*s,this.ob([n*r-t*(i=-i),t*r+n*i])},r.rotate=function(t,e){void 0!==e&&(e=Qr(this,t,e),this.ob(e)),this.Oe(t)},r.ob=function(t){this.set("center",t),this.Ic()&&this.ed()},r.Vc=function(t){this.set("resolution",t),this.Ic()&&this.ed()},r.Oe=function(t){this.set("rotation",t),this.Ic()&&this.ed()},r.lq=function(t){t=this.constrainResolution(this.a,t-this.l,0),this.Vc(t)},e(pn,ro),pn.prototype.c=function(){return this.get("active")},pn.prototype.f=function(){return this.v},pn.prototype.Ha=function(t){this.set("active",t)},pn.prototype.setMap=function(t){this.v=t},e(cn,pn),e(Mn,pn),Mn.prototype.Xc=function(t){return t},e(En,Mn),En.prototype.Xc=fr,e(Ln,Mn),Ln.prototype.Xc=fr,e(Fn,_e),Fn.prototype.ka=function(){this.setMap(null)},Fn.prototype.setMap=function(t){var e;this.b&&(this.b.C.removeChild(this.a),(e=this.a.style).left=e.top=e.width=e.height="inherit"),(this.b=t)&&this.b.C.appendChild(this.a)},Fn.prototype.V=function(){return this.Gc},e(On,Mn),On.prototype.V=function(){return this.a.V()},On.prototype.j=Y;var Vn="boxstart",Wn="boxdrag",Zn="boxend";function Kn(t,e,o){Qe.call(this,t),this.coordinate=e,this.mapBrowserEvent=o}function zn(t){var e=(t=t||{}).condition||mn;this.B=void 0!==t.duration?t.duration:200,this.I=void 0!==t.out&&t.out,On.call(this,{condition:e,className:t.className||"ol-dragzoom"})}function Yn(t){pn.call(this,{handleEvent:Hn}),t=t||{},this.a=function(t){return bn(t)&&wn(t)},this.g=t.condition||this.a,this.j=void 0!==t.duration?t.duration:100,this.o=void 0!==t.pixelDelta?t.pixelDelta:128}function Hn(t){var e,o,i,r,n=!1;return"keydown"==t.type&&(e=t.originalEvent.keyCode,!this.g(t)||40!=e&&37!=e&&39!=e&&38!=e||(o=(n=t.map.Z()).Pa()*this.o,r=i=0,40==e?r=-o:37==e?i=-o:39==e?i=o:r=o,sr(o=[i,r],n.Qa()),e=this.j,(i=n.wa())&&(o=n.Ec([i[0]+o[0],i[1]+o[1]]),e?n.animate({duration:e,easing:Fo,center:o}):n.ob(o)),t.preventDefault(),n=!0)),!n}function qn(t){pn.call(this,{handleEvent:Jn}),this.g=(t=t||{}).condition||wn,this.a=t.delta||1,this.j=void 0!==t.duration?t.duration:100}function Jn(t){var e,o=!1;return"keydown"!=t.type&&"keypress"!=t.type||(e=t.originalEvent.charCode,!this.g(t)||43!=e&&45!=e||(o=43==e?this.a:-this.a,ln(e=t.map.Z(),o,void 0,this.j),t.preventDefault(),o=!0)),!o}function _n(t){pn.call(this,{handleEvent:$n}),t=t||{},this.j=0,this.D=void 0!==t.duration?t.duration:250,this.na=void 0!==t.timeout?t.timeout:80,this.C=void 0===t.useAnchor||t.useAnchor,this.R=t.constrainResolution||!1,this.a=null,this.l=this.o=this.u=this.g=void 0}function $n(t){if("wheel"!==(s=t.type)&&"mousewheel"!==s)return!0;t.preventDefault();var e,o,i,r,n,s=t.map,a=t.originalEvent;if(this.C&&(this.a=t.coordinate),"wheel"==t.type?(e=a.deltaY,ei&&a.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=ni),a.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)):"mousewheel"==t.type&&(e=-a.wheelDeltaY,oi&&(e/=3)),0!==e){if(t=Date.now(),void 0===this.g&&(this.g=t),(!this.o||400<t-this.g)&&(this.o=Math.abs(e)<4?Qn:ts),this.o===Qn)return s=s.Z(),this.l?clearTimeout(this.l):nn(s,1,1),this.l=setTimeout(this.B.bind(this),400),a=s.Pa()*Math.pow(2,e/300),o=s.f,i=s.a,r=0,a<o?(a=Math.max(a,o/1.5),r=1):i<a&&(a=Math.min(a,1.5*i),r=-1),this.a&&(n=tn(s,a,this.a),s.ob(s.Ec(n))),s.Vc(a),!r&&this.R&&s.animate({resolution:s.constrainResolution(a,0<e?-1:1),easing:Io,anchor:this.a,duration:this.D}),0<r?s.animate({resolution:o,easing:Io,anchor:this.a,duration:500}):r<0&&s.animate({resolution:i,easing:Io,anchor:this.a,duration:500}),this.g=t,!1;this.j+=e,e=Math.max(this.na-(t-this.g),0),clearTimeout(this.u),this.u=setTimeout(this.I.bind(this,s),e)}return!1}e(Kn,Qe),e(zn,On),zn.prototype.j=function(){var t=(r=this.v).Z(),e=r.Ob(),o=this.V().G();if(this.I){for(var i=t.dd(e),o=[r.Ja(jt(o)),r.Ja(kt(o))],r=mt(void 0),n=0,s=o.length;n<s;++n)Pt(r,o[n]);Gt(i,1/(o=t.ze(r,e))),o=i}e=t.constrainResolution(t.ze(o,e)),i=Lt(o),i=t.Ec(i),t.animate({resolution:e,center:i,duration:this.B,easing:Io})},e(Yn,pn),e(qn,pn),e(_n,pn),_n.prototype.B=function(){this.l=void 0,nn(this.v.Z(),1,-1)},_n.prototype.I=function(t){(t=t.Z()).Ic()&&t.ed(),ln(t,-Q(this.j,-1,1),this.a,this.D),this.o=void 0,this.j=0,this.a=null,this.u=this.g=void 0},_n.prototype.T=function(t){(this.C=t)||(this.a=null)};var Qn="trackpad",ts="wheel";function es(t){Mn.call(this,{handleDownEvent:rs,handleDragEvent:os,handleUpEvent:is}),t=t||{},this.g=null,this.j=void 0,this.a=!1,this.l=0,this.C=void 0!==t.threshold?t.threshold:.3,this.u=void 0!==t.duration?t.duration:250}function os(t){var e,o=0,i=this.o[0],r=this.o[1],i=Math.atan2(r.clientY-i.clientY,r.clientX-i.clientX);void 0!==this.j&&(o=i-this.j,this.l+=o,!this.a&&Math.abs(this.l)>this.C&&(this.a=!0)),this.j=i,(i=(t=t.map).Z()).g.rotation!==_i&&(r=t.a.getBoundingClientRect(),(e=Pn(this.o))[0]-=r.left,e[1]-=r.top,this.g=t.Wa(e),this.a&&(r=i.Qa(),t.render(),hn(i,r+o,this.g)))}function is(t){var e,o,i;return!(this.o.length<2)||(nn(t=t.map.Z(),1,-1),this.a&&(i=t.Qa(),e=this.g,o=this.u,i=t.constrainRotation(i,0),hn(t,i,e,o)),!1)}function rs(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.j=void 0,this.a=!1,this.l=0,this.D||nn(t.Z(),1,1),!0)}function ns(t){Mn.call(this,{handleDownEvent:ps,handleDragEvent:ss,handleUpEvent:as}),this.l=(t=t||{}).constrainResolution||!1,this.g=null,this.u=void 0!==t.duration?t.duration:400,this.a=void 0,this.j=1}function ss(t){var e=1,o=this.o[0],i=this.o[1],r=o.clientX-i.clientX,o=o.clientY-i.clientY,r=Math.sqrt(r*r+o*o);void 0!==this.a&&(e=this.a/r),this.a=r;var i=(r=(t=t.map).Z()).Pa(),n=r.a,s=r.f;n<(o=i*e)?(e=n/i,o=n):o<s&&(e=s/i,o=s),1!=e&&(this.j=e),e=t.a.getBoundingClientRect(),(i=Pn(this.o))[0]-=e.left,i[1]-=e.top,this.g=t.Wa(i),t.render(),un(r,o,this.g)}function as(t){var e,o,i;return!(this.o.length<2)||(nn(t=t.map.Z(),1,-1),i=t.Pa(),(this.l||i<t.f||i>t.a)&&(e=this.g,o=this.u,i=t.constrainResolution(i,0,this.j-1),un(t,i,e,o)),!1)}function ps(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.a=void 0,this.j=1,this.D||nn(t.Z(),1,1),!0)}function hs(t){t=t||{};var e=new ho,o=new sn(-.005,.05,100);return void 0!==t.altShiftDragRotate&&!t.altShiftDragRotate||e.push(new Ln),void 0!==t.doubleClickZoom&&!t.doubleClickZoom||e.push(new cn({delta:t.zoomDelta,duration:t.zoomDuration})),void 0!==t.dragPan&&!t.dragPan||e.push(new En({kinetic:o})),void 0!==t.pinchRotate&&!t.pinchRotate||e.push(new es),void 0!==t.pinchZoom&&!t.pinchZoom||e.push(new ns({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.keyboard&&!t.keyboard||(e.push(new Yn),e.push(new qn({delta:t.zoomDelta,duration:t.zoomDuration}))),void 0!==t.mouseWheelZoom&&!t.mouseWheelZoom||e.push(new _n({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.shiftDragZoom&&!t.shiftDragZoom||e.push(new zn({duration:t.zoomDuration})),e}function ls(t){ro.call(this);var e=Xt({},t);e.opacity=void 0!==t.opacity?t.opacity:1,e.visible=void 0===t.visible||t.visible,e.zIndex=void 0!==t.zIndex?t.zIndex:0,e.maxResolution=void 0!==t.maxResolution?t.maxResolution:1/0,e.minResolution=void 0!==t.minResolution?t.minResolution:0,this.H(e),this.a={layer:this,Je:!0}}function us(t){return t.a.opacity=Q(t.hc(),0,1),t.a.yj=t.$f(),t.a.visible=t.Mb(),t.a.extent=t.G(),t.a.zIndex=t.Ba(),t.a.maxResolution=t.fc(),t.a.minResolution=Math.max(t.gc(),0),t.a}function cs(t){var e=t||{};delete(t=Xt({},e)).layers,e=e.layers,ls.call(this,t),this.f=[],this.c={},d(this,so(fs),this.Hl,this),e?Array.isArray(e)?e=new ho(e.slice(),{unique:!0}):O(e instanceof ho,43):e=new ho(void 0,{unique:!0}),this.xi(e)}e(es,Mn),es.prototype.Xc=fr,e(ns,Mn),ns.prototype.Xc=fr,e(ls,ro),(r=ls.prototype).G=function(){return this.get("extent")},r.fc=function(){return this.get("maxResolution")},r.gc=function(){return this.get("minResolution")},r.hc=function(){return this.get("opacity")},r.Mb=function(){return this.get("visible")},r.Ba=function(){return this.get("zIndex")},r.vc=function(t){this.set("extent",t)},r.Ac=function(t){this.set("maxResolution",t)},r.Bc=function(t){this.set("minResolution",t)},r.wc=function(t){this.set("opacity",t)},r.xc=function(t){this.set("visible",t)},r.Vb=function(t){this.set("zIndex",t)},e(cs,ls),(r=cs.prototype).Fd=function(){},r.Fe=function(){this.Mb()&&this.s()},r.Hl=function(){this.f.forEach(qe),this.f.length=0;var t=this.qd();for(e in this.f.push(d(t,"add",this.Gl,this),d(t,"remove",this.Il,this)),this.c)this.c[e].forEach(qe);Vt(this.c);for(var e=0,o=(t=t.a).length;e<o;e++){var i=t[e];this.c[U(i).toString()]=[d(i,"propertychange",this.Fe,this),d(i,"change",this.Fe,this)]}this.s()},r.Gl=function(t){var e=U(t=t.element).toString();this.c[e]=[d(t,"propertychange",this.Fe,this),d(t,"change",this.Fe,this)],this.s()},r.Il=function(t){t=U(t.element).toString(),this.c[t].forEach(qe),delete this.c[t],this.s()},r.qd=function(){return this.get(fs)},r.xi=function(t){this.set(fs,t)},r.Yf=function(t){var e,o=void 0!==t?t:[],i=o.length;for(this.qd().forEach(function(t){t.Yf(o)}),t=us(this),e=o.length;i<e;i++){var r=o[i];r.opacity*=t.opacity,r.visible=r.visible&&t.visible,r.maxResolution=Math.min(r.maxResolution,t.maxResolution),r.minResolution=Math.max(r.minResolution,t.minResolution),void 0!==t.extent&&(r.extent=void 0!==r.extent?Nt(r.extent,t.extent):t.extent)}return o},r.$f=function(){return"ready"};var fs="layers";function ys(t){var e=Xt({},t);delete e.source,ls.call(this,e),this.v=this.l=this.o=null,t.map&&this.setMap(t.map),d(this,so("source"),this.Ul,this),this.Wc(t.source||null)}function gs(t,e){return t.visible&&e>=t.minResolution&&e<t.maxResolution}function ds(){this.b={},this.a=0}e(ys,ls),(r=ys.prototype).Yf=function(t){return(t=t||[]).push(us(this)),t},r.ha=function(){return this.get("source")||null},r.$f=function(){var t=this.ha();return t?t.getState():"undefined"},r.Tn=function(){this.s()},r.Ul=function(){this.v&&(qe(this.v),this.v=null);var t=this.ha();t&&(this.v=d(t,"change",this.Tn,this)),this.s()},r.setMap=function(t){this.o&&(qe(this.o),this.o=null),t||this.s(),this.l&&(qe(this.l),this.l=null),t&&(this.o=d(t,"precompose",function(t){var e=us(this);e.Je=!1,e.zIndex=1/0,t.frameState.layerStatesArray.push(e),t.frameState.layerStates[U(this)]=e},this),this.l=d(this,"change",t.render,t),this.s())},r.Wc=function(t){this.set("source",t)},ds.prototype.clear=function(){this.b={},this.a=0},ds.prototype.get=function(t,e,o){return(t=e+":"+t+":"+(o?bo(o):"null"))in this.b?this.b[t]:null},ds.prototype.set=function(t,e,o,i){this.b[e+":"+t+":"+(o?bo(o):"null")]=i,++this.a};var vs=new ds,bs=Array(6);function ms(){return[1,0,0,1,0,0]}function ws(t){return Ss(t,1,0,0,1,0,0)}function xs(t,e){var o=t[0],i=t[1],r=t[2],n=t[3],s=t[4],a=t[5],p=e[0],h=e[1],l=e[2],u=e[3],c=e[4];return e=e[5],t[0]=o*p+r*h,t[1]=i*p+n*h,t[2]=o*l+r*u,t[3]=i*l+n*u,t[4]=o*c+r*e+s,t[5]=i*c+n*e+a,t}function Ss(t,e,o,i,r,n,s){return t[0]=e,t[1]=o,t[2]=i,t[3]=r,t[4]=n,t[5]=s,t}function Ms(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Ps(t,e){var o=e[0],i=e[1];return e[0]=t[0]*o+t[2]*i+t[4],e[1]=t[1]*o+t[3]*i+t[5],e}function As(t,e){var o=Math.cos(e);e=Math.sin(e),xs(t,Ss(bs,o,e,-e,o,0,0))}function Es(t,e,o){return xs(t,Ss(bs,e,0,0,o,0,0))}function Ts(t,e,o){xs(t,Ss(bs,1,0,0,1,e,o))}function js(t,e,o,i,r,n,s,a){var p=Math.sin(n);return n=Math.cos(n),t[0]=i*n,t[1]=r*p,t[2]=-i*p,t[3]=r*n,t[4]=s*i*n-a*i*p+e,t[5]=s*r*p+a*r*n+o,t}function Cs(t){var e=t[0]*t[3]-t[1]*t[2],o=(O(!!e,32),t[0]),i=t[1],r=t[2],n=t[3],s=t[4],a=t[5];return t[0]=n/e,t[1]=-i/e,t[2]=-r/e,t[3]=o/e,t[4]=(r*a-n*s)/e,t[5]=-(o*a-i*s)/e,t}function Ls(t,e){this.o=e,this.c={},this.v={}}function Rs(t){var e=t.viewState,o=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;js(o,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Cs(Ms(i,o))}function Is(){if(32<vs.a){var t,e=0;for(t in vs.b){var o=vs.b[t];3&e++||oo(o)||(delete vs.b[t],--vs.a)}}}function Ns(t,e){var o=U(e).toString();return o in t.c?t.c[o]:(e=e.Fd(t),t.c[o]=e,t.v[o]=d(e,"change",t.Fl,t),e)}function Fs(t,e){for(var o in t.c)if(!(o in e.layerStates)){e.postRenderFunctions.push(t.Rp.bind(t));break}}function ks(t,e){return t.zIndex-e.zIndex}function Ds(t,e,o,i,r){Qe.call(this,t),this.vectorContext=e,this.frameState=o,this.context=i,this.glContext=r}e(Ls,_e),(r=Ls.prototype).ka=function(){for(var t in this.c)$e(this.c[t])},r.Ea=function(t,r,e,n,s,o,i){function a(t,e){var o=U(t).toString(),i=r.layerStates[U(e)].Je;if(!(o in r.skippedFeatureUids)||i)return n.call(s,t,i?e:null)}var p,h,l=(c=r.viewState).resolution,u=c.projection,c=t;for(u.i&&(h=Dt(u=u.G()),((y=t[0])<u[0]||y>u[2])&&(c=[y+h*Math.ceil((u[0]-y)/h),t[1]])),h=(u=r.layerStatesArray).length-1;0<=h;--h){var f=u[h],y=f.layer;if(gs(f,l)&&o.call(i,y)&&(f=Ns(this,y),p=y.ha()?f.Ea(y.ha().u?c:t,r,e,a,s):p))return p}},r.Ei=function(t,e,o,i,r){return void 0!==this.Ea(t,e,o,cr,this,i,r)},r.Fl=function(){this.o.render()},r.Jg=Y,r.Rp=function(t,e){for(var o in this.c)e&&o in e.layerStates||(t=o,o=this.c[t],delete this.c[t],qe(this.v[t]),delete this.v[t],$e(o))},e(Ds,Qe);var Os=[0,0,0,1],Us=[],Gs=[0,0,0,1];function Bs(t,e,o,i){e&&(t.translate(o,i),t.rotate(e),t.translate(-o,-i))}function Xs(){}function Vs(t,e,o,i,r){this.i=t,this.u=e,this.c=o,this.S=i,this.Yb=r,this.M=this.b=this.a=this.Ua=this.R=this.I=null,this.na=this.T=this.l=this.B=this.C=this.D=0,this.fa=!1,this.f=this.fb=0,this.pa=!1,this.oa=0,this.Ia="",this.va=this.Jb=0,this.Sa=!1,this.j=this.$a=0,this.ra=this.o=this.g=null,this.v=[],this.xb=ms()}function Ws(t,e,o){if(t.M){e=gr(e,0,o,2,t.S,t.v),o=t.i;for(var i=t.xb,r=o.globalAlpha,n=(1!=t.l&&(o.globalAlpha=r*t.l),t.fb),s=(t.fa&&(n+=t.Yb),0),a=e.length;s<a;s+=2){var p,h,l=e[s]-t.D,u=e[s+1]-t.C;t.pa&&(l=Math.round(l),u=Math.round(u)),!n&&1==t.f||(js(i,p=l+t.D,h=u+t.C,t.f,t.f,n,-p,-h),o.setTransform.apply(o,i)),o.drawImage(t.M,t.T,t.na,t.oa,t.B,l,u,t.oa,t.B)}!n&&1==t.f||o.setTransform(1,0,0,1,0,0),1!=t.l&&(o.globalAlpha=r)}}function Zs(t,e,o,i){var r=0;if(t.ra&&""!==t.Ia){t.g&&Ys(t,t.g),t.o&&Hs(t,t.o);var n=t.ra,s=t.i;for((p=t.Ua)?(p.font!=n.font&&(p.font=s.font=n.font),p.textAlign!=n.textAlign&&(p.textAlign=s.textAlign=n.textAlign),p.textBaseline!=n.textBaseline&&(p.textBaseline=s.textBaseline=n.textBaseline)):(s.font=n.font,s.textAlign=n.textAlign,s.textBaseline=n.textBaseline,t.Ua={font:n.font,textAlign:n.textAlign,textBaseline:n.textBaseline}),e=gr(e,r,o,i,t.S,t.v),n=t.i,s=t.$a,t.Sa&&(s+=t.Yb);r<o;r+=i){var a,p=e[r]+t.Jb,h=e[r+1]+t.va;!s&&1==t.j||(a=js(t.xb,p,h,t.j,t.j,s,-p,-h),n.setTransform.apply(n,a)),t.o&&n.strokeText(t.Ia,p,h),t.g&&n.fillText(t.Ia,p,h)}!s&&1==t.j||n.setTransform(1,0,0,1,0,0)}}function Ks(t,e,o,i,r,n){var s=t.i;for(t=gr(e,o,i,r,t.S,t.v),s.moveTo(t[0],t[1]),e=t.length,n&&(e-=2),o=2;o<e;o+=2)s.lineTo(t[o],t[o+1]);return n&&s.closePath(),i}function zs(t,e,o,i,r){for(var n=0,s=i.length;n<s;++n)o=Ks(t,e,o,i[n],r,!0);return o}function Ys(t,e){var o=t.i,i=t.I;i?i.fillStyle!=e.fillStyle&&(i.fillStyle=o.fillStyle=e.fillStyle):(o.fillStyle=e.fillStyle,t.I={fillStyle:e.fillStyle})}function Hs(t,e){var o=t.i,i=t.R;i?(i.lineCap!=e.lineCap&&(i.lineCap=o.lineCap=e.lineCap),si&&!Z(i.lineDash,e.lineDash)&&o.setLineDash(i.lineDash=e.lineDash),i.lineJoin!=e.lineJoin&&(i.lineJoin=o.lineJoin=e.lineJoin),i.lineWidth!=e.lineWidth&&(i.lineWidth=o.lineWidth=e.lineWidth),i.miterLimit!=e.miterLimit&&(i.miterLimit=o.miterLimit=e.miterLimit),i.strokeStyle!=e.strokeStyle&&(i.strokeStyle=o.strokeStyle=e.strokeStyle)):(o.lineCap=e.lineCap,si&&o.setLineDash(e.lineDash),o.lineJoin=e.lineJoin,o.lineWidth=e.lineWidth,o.miterLimit=e.miterLimit,o.strokeStyle=e.strokeStyle,t.R={lineCap:e.lineCap,lineDash:e.lineDash,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle})}function qs(t,e){Ls.call(this,0,e),this.i=Po(),this.b=this.i.canvas,this.b.style.width="100%",this.b.style.height="100%",this.b.style.display="block",this.b.className="ol-unselectable",t.insertBefore(this.b,t.childNodes[0]||null),this.a=!0,this.f=ms()}function Js(t,e,o){var i,r,n,s,a,p=t.o,h=t.i;oo(p,e)&&(i=o.extent,r=o.pixelRatio,n=o.viewState.rotation,s=o.viewState,a=o.pixelRatio/s.resolution,t=js(t.f,t.b.width/2,t.b.height/2,a,-a,-s.rotation,-s.center[0],-s.center[1]),p.b(new Ds(e,new Vs(h,r,i,t,n),o,h,null)))}(r=Xs.prototype).zb=function(){},r.rd=function(){},r.Zb=function(){},r.te=function(){},r.ue=function(){},r.mc=function(){},r.nc=function(){},r.oc=function(){},r.pc=function(){},r.qc=function(){},r.rc=function(){},r.yc=function(){},r.Ma=function(){},r.Ub=function(){},r.Cb=function(){},e(Vs,Xs),(r=Vs.prototype).Zb=function(t){var e,o,i;Ot(this.c,t.G())&&((this.a||this.b)&&(this.a&&Ys(this,this.a),this.b&&Hs(this,this.b),e=this.S,o=this.v,o=(e=(i=t.ga())?gr(i,0,i.length,t.qa(),e,o):null)[2]-e[0],i=e[3]-e[1],o=Math.sqrt(o*o+i*i),(i=this.i).beginPath(),i.arc(e[0],e[1],o,0,2*Math.PI),this.a&&i.fill(),this.b&&i.stroke()),""!==this.Ia&&Zs(this,t.wa(),2,2))},r.rd=function(t){this.Ma(t.Fa(),t.Ga()),this.Ub(t.Y()),this.Cb(t.Na())},r.zb=function(t){switch(t.U()){case"Point":this.qc(t);break;case"LineString":this.mc(t);break;case"Polygon":this.rc(t);break;case"MultiPoint":this.oc(t);break;case"MultiLineString":this.nc(t);break;case"MultiPolygon":this.pc(t);break;case"GeometryCollection":this.ue(t);break;case"Circle":this.Zb(t)}},r.te=function(t,e){(t=(0,e.Za)(t))&&Ot(this.c,t.G())&&(this.rd(e),this.zb(t))},r.ue=function(t){for(var e=0,o=(t=t.a).length;e<o;++e)this.zb(t[e])},r.qc=function(t){var e=t.ga();t=t.qa(),this.M&&Ws(this,e,e.length),""!==this.Ia&&Zs(this,e,e.length,t)},r.oc=function(t){var e=t.ga();t=t.qa(),this.M&&Ws(this,e,e.length),""!==this.Ia&&Zs(this,e,e.length,t)},r.mc=function(t){var e,o;Ot(this.c,t.G())&&(this.b&&(Hs(this,this.b),e=this.i,o=t.ga(),e.beginPath(),Ks(this,o,0,o.length,t.qa(),!1),e.stroke()),""!==this.Ia&&Zs(this,t=jl(t),2,2))},r.nc=function(t){var e=t.G();if(Ot(this.c,e)){if(this.b){Hs(this,this.b);for(var e=this.i,o=t.ga(),i=0,r=t.Bb(),n=t.qa(),s=(e.beginPath(),0),a=r.length;s<a;++s)i=Ks(this,o,i,r[s],n,!1);e.stroke()}""!==this.Ia&&Zs(this,t=Cl(t),t.length,2)}},r.rc=function(t){var e;Ot(this.c,t.G())&&((this.b||this.a)&&(this.a&&Ys(this,this.a),this.b&&Hs(this,this.b),(e=this.i).beginPath(),zs(this,t.ec(),0,t.Bb(),t.qa()),this.a&&e.fill(),this.b&&e.stroke()),""!==this.Ia&&Zs(this,t=zr(t),2,2))},r.pc=function(t){if(Ot(this.c,t.G())){if(this.b||this.a){this.a&&Ys(this,this.a),this.b&&Hs(this,this.b);for(var e=this.i,o=Il(t),i=0,r=t.c,n=t.qa(),s=(e.beginPath(),0),a=r.length;s<a;++s)i=zs(this,o,i,r[s],n);this.a&&e.fill(),this.b&&e.stroke()}""!==this.Ia&&Zs(this,t=Rl(t),t.length,2)}},r.Ma=function(t,e){var o,i,r,n,s;t?(t=t.b,this.a={fillStyle:Mo(t||Os)}):this.a=null,e?(t=e.a,o=e.f,i=e.i,r=e.g,n=e.j,s=e.c,e=e.o,this.b={lineCap:void 0!==o?o:"round",lineDash:i||Us,lineDashOffset:r||0,lineJoin:void 0!==n?n:"round",lineWidth:this.u*(void 0!==s?s:1),miterLimit:void 0!==e?e:10,strokeStyle:Mo(t||Gs)}):this.b=null},r.Ub=function(t){var e,o,i,r;t?(e=t.Hc(),o=t.Y(1),i=t.Oc(),r=t.ic(),this.D=e[0],this.C=e[1],this.B=r[1],this.M=o,this.l=t.f,this.T=i[0],this.na=i[1],this.fa=t.l,this.fb=t.g,this.f=t.a,this.pa=t.v,this.oa=r[0]):this.M=null},r.Cb=function(t){var e,o,i,r,n,s,a,p;t?((e=t.Fa())?(e=e.b,this.g={fillStyle:Mo(e||Os)}):this.g=null,(a=t.Ga())?(e=a.a,o=a.f,i=a.i,r=a.g,n=a.j,s=a.c,a=a.o,this.o={lineCap:void 0!==o?o:"round",lineDash:i||Us,lineDashOffset:r||0,lineJoin:void 0!==n?n:"round",lineWidth:void 0!==s?s:1,miterLimit:void 0!==a?a:10,strokeStyle:Mo(e||Gs)}):this.o=null,e=t.a,o=t.i,i=t.c,r=t.o,n=t.f,s=t.b,a=t.Na(),p=t.g,t=t.j,this.ra={font:void 0!==e?e:"10px sans-serif",textAlign:void 0!==p?p:"center",textBaseline:void 0!==t?t:"middle"},this.Ia=void 0!==a?a:"",this.Jb=void 0!==o?this.u*o:0,this.va=void 0!==i?this.u*i:0,this.Sa=void 0!==r&&r,this.$a=void 0!==n?n:0,this.j=this.u*(void 0!==s?s:1)):this.Ia=""},e(qs,Ls),qs.prototype.U=function(){return"canvas"},qs.prototype.Jg=function(t){if(t){for(var e=this.i,o=t.pixelRatio,i=Math.round(t.size[0]*o),r=Math.round(t.size[1]*o),n=(this.b.width!=i||this.b.height!=r?(this.b.width=i,this.b.height=r):e.clearRect(0,0,i,r),o=t.viewState.rotation,Rs(t),Js(this,"precompose",t),t.layerStatesArray),i=(K(n),o&&(e.save(),Bs(e,o,i/2,r/2)),t.viewState.resolution),r=0,s=n.length;r<s;++r){var a=n[r],p=Ns(this,p=a.layer);gs(a,i)&&"ready"==a.yj&&p.sd(t,a)&&p.S(t,a,e)}o&&e.restore(),Js(this,"postcompose",t),this.a||(this.b.style.display="",this.a=!0),Fs(this,t),t.postRenderFunctions.push(Is)}else this.a&&(this.b.style.display="none",this.a=!1)},qs.prototype.Di=function(t,e,o,i,r,n){var s=e.viewState.resolution,a=e.layerStatesArray,p=a.length;for(t=Ps(e.pixelToCoordinateTransform,t.slice()),--p;0<=p;--p){var h=a[p],l=h.layer;if(gs(h,s)&&r.call(n,l)&&(h=Ns(this,l).u(t,e,o,i)))return h}};var _s=["Polygon","Circle","LineString","Image","Text"];function $s(){}function Qs(t){this.b=t}function ta(t){this.b=t}function ea(t){this.b=t}function oa(){this.b="precision mediump float;varying vec2 a;varying vec2 b;varying float c;varying float d;uniform float m;uniform vec4 n;uniform vec4 o;uniform vec2 p;void main(void){vec2 windowCenter=vec2((a.x+1.0)/2.0*p.x*d,(a.y+1.0)/2.0*p.y*d);vec2 windowOffset=vec2((b.x+1.0)/2.0*p.x*d,(b.y+1.0)/2.0*p.y*d);float radius=length(windowCenter-windowOffset);float dist=length(windowCenter-gl_FragCoord.xy);if(dist>radius+c){if(o.a==0.0){gl_FragColor=n;}else{gl_FragColor=o;}gl_FragColor.a=gl_FragColor.a-(dist-(radius+c));}else if(n.a==0.0){gl_FragColor=o;if(dist<radius-c){gl_FragColor.a=gl_FragColor.a-(radius-c-dist);}} else{gl_FragColor=n;float strokeDist=radius-c;float antialias=2.0*d;if(dist>strokeDist){gl_FragColor=o;}else if(dist>=strokeDist-antialias){float step=smoothstep(strokeDist-antialias,strokeDist,dist);gl_FragColor=mix(n,o,step);}} gl_FragColor.a=gl_FragColor.a*m;if(gl_FragColor.a<=0.0){discard;}}"}e(ta,Qs),ta.prototype.U=function(){return 35632},e(ea,Qs),ea.prototype.U=function(){return 35633},e(oa,ta);var ia=new oa;function ra(){this.b="varying vec2 a;varying vec2 b;varying float c;varying float d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;void main(void){mat4 offsetMatrix=i*j;a=vec4(h*vec4(e,0.0,1.0)).xy;d=l;float lineWidth=k*l;c=lineWidth/2.0;if(lineWidth==0.0){lineWidth=2.0*l;}vec2 offset;float radius=g+3.0*l;if(f==0.0){offset=vec2(-1.0,1.0);}else if(f==1.0){offset=vec2(-1.0,-1.0);}else if(f==2.0){offset=vec2(1.0,-1.0);}else{offset=vec2(1.0,1.0);}gl_Position=h*vec4(e+offset*radius,0.0,1.0)+offsetMatrix*vec4(offset*lineWidth,0.0,0.0);b=vec4(h*vec4(e.x+g,e.y,0.0,1.0)).xy;if(distance(a,b)>20000.0){gl_Position=vec4(a,0.0,1.0);}}"}e(ra,ea);var na=new ra;function sa(t,e){this.B=t.getUniformLocation(e,"n"),this.oa=t.getUniformLocation(e,"k"),this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"m"),this.ra=t.getUniformLocation(e,"l"),this.i=t.getUniformLocation(e,"h"),this.I=t.getUniformLocation(e,"p"),this.R=t.getUniformLocation(e,"o"),this.j=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"e"),this.S=t.getAttribLocation(e,"g")}function aa(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function pa(t,e){return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}function ha(t,e){this.origin=Lt(e),this.xb=ms(),this.Sa=ms(),this.$a=ms(),this.Jb=aa(),this.b=[],this.o=null,this.i=[],this.f=[],this.a=[],this.l=null,this.g=void 0}function la(t,e,o,i){t.drawElements(4,i-o,e.g?5125:5123,o*(e.g?4:2))}e(ha,Xs),ha.prototype.La=function(t,e,o,i,r,n,s,a,p,h,l){var u,c,f,y,g,d,v,b,m,w=t.b,x=(this.g&&(u=w.isEnabled(w.STENCIL_TEST),c=w.getParameter(w.STENCIL_FUNC),f=w.getParameter(w.STENCIL_VALUE_MASK),y=w.getParameter(w.STENCIL_REF),g=w.getParameter(w.STENCIL_WRITEMASK),d=w.getParameter(w.STENCIL_FAIL),v=w.getParameter(w.STENCIL_PASS_DEPTH_PASS),b=w.getParameter(w.STENCIL_PASS_DEPTH_FAIL),w.enable(w.STENCIL_TEST),w.clear(w.STENCIL_BUFFER_BIT),w.stencilMask(255),w.stencilFunc(w.ALWAYS,1,255),w.stencilOp(w.KEEP,w.KEEP,w.REPLACE),this.g.La(t,e,o,i,r,n,s,a,p,h,l),w.stencilMask(0),w.stencilFunc(w.NOTEQUAL,1,255)),Ea(t,34962,this.l),Ea(t,34963,this.o),n=this.rf(w,t,r,n),ws(this.xb));return Es(x,2/(o*r[0]),2/(o*r[1])),As(x,-i),Ts(x,-(e[0]-this.origin[0]),-(e[1]-this.origin[1])),Es(e=ws(this.$a),2/r[0],2/r[1]),r=ws(this.Sa),i&&As(r,-i),w.uniformMatrix4fv(n.i,!1,pa(this.Jb,x)),w.uniformMatrix4fv(n.f,!1,pa(this.Jb,e)),w.uniformMatrix4fv(n.c,!1,pa(this.Jb,r)),w.uniform1f(n.a,s),p?m=t=h?this.ve(w,t,a,p,l):(w.clear(w.COLOR_BUFFER_BIT|w.DEPTH_BUFFER_BIT),this.Od(w,t,a,!0),(t=p(null))?t:void 0):this.Od(w,t,a,!1),this.sf(w,n),this.g&&(u||w.disable(w.STENCIL_TEST),w.clear(w.STENCIL_BUFFER_BIT),w.stencilFunc(c,y,f),w.stencilMask(g),w.stencilOp(d,b,v)),m};var ua=[0,0,0,1],ca=[],fa=[0,0,0,1];function ya(t,e,o,i,r,n){return(t=(o-t)*(n-e)-(r-t)*(i-e))<=ga&&-ga<=t?void 0:0<t}var ga=Number.EPSILON||2220446049250313e-31;function da(t){this.b=void 0!==t?t:[],this.a=va}var va=35044;function ba(t,e){ha.call(this,0,e),this.v=null,this.j=[],this.u=[],this.S=0,this.c={fillColor:null,strokeColor:null,lineDash:null,lineDashOffset:void 0,lineWidth:void 0,s:!1}}function ma(t,e,o,i){e.uniform4fv(t.v.R,o),e.uniform1f(t.v.oa,i)}function wa(){this.b="precision mediump float;varying vec2 a;varying float b;uniform float k;uniform sampler2D l;void main(void){vec4 texColor=texture2D(l,a);gl_FragColor.rgb=texColor.rgb;float alpha=texColor.a*b*k;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(ba,ha),(r=ba.prototype).Zb=function(t,e){var o=t.pd(),i=t.qa();if(o){this.i.push(this.b.length),this.f.push(e),this.c.s&&(this.u.push(this.b.length),this.c.s=!1),this.S=o,t=dr(t=t.ga(),0,2,i,-this.origin[0],-this.origin[1]),e=this.a.length;for(var o=this.b.length,r=e/4,n=0;n<2;n+=i)this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=0,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=1,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=2,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=3,this.a[e++]=this.S,this.b[o++]=r,this.b[o++]=r+1,this.b[o++]=r+2,this.b[o++]=r+2,this.b[o++]=r+3,this.b[o++]=r,r+=4}else this.c.s&&(this.j.pop(),this.j.length&&(i=this.j[this.j.length-1],this.c.fillColor=i[0],this.c.strokeColor=i[1],this.c.lineWidth=i[2],this.c.s=!1))},r.Db=function(){this.l=new da(this.a),this.o=new da(this.b),this.i.push(this.b.length),!this.u.length&&0<this.j.length&&(this.j=[]),this.b=this.a=null},r.Eb=function(t){var e=this.l,o=this.o;return function(){Ta(t,e),Ta(t,o)}},r.rf=function(t,e,o,i){var r,n=La(e,ia,na);return this.v?r=this.v:this.v=r=new sa(t,n),e.Qc(n),t.enableVertexAttribArray(r.b),t.vertexAttribPointer(r.b,2,5126,!1,16,0),t.enableVertexAttribArray(r.j),t.vertexAttribPointer(r.j,1,5126,!1,16,8),t.enableVertexAttribArray(r.S),t.vertexAttribPointer(r.S,1,5126,!1,16,12),t.uniform2fv(r.I,o),t.uniform1f(r.ra,i),r},r.sf=function(t,e){t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.j),t.disableVertexAttribArray(e.S)},r.Od=function(t,e,o){if(Zt(o)){var i=this.i[this.i.length-1];for(o=this.u.length-1;0<=o;--o){var r=this.u[o],n=this.j[o];t.uniform4fv(this.v.B,n[0]),ma(this,t,n[1],n[2]),la(t,e,r,i),i=r}}else for(var s=this.i.length-2,n=i=this.i[s+1],r=this.u.length-1;0<=r;--r){var a=this.j[r];for(t.uniform4fv(this.v.B,a[0]),ma(this,t,a[1],a[2]),a=this.u[r];0<=s&&this.i[s]>=a;){var p=this.i[s];o[U(this.f[s]).toString()]&&(i!==n&&la(t,e,i,n),n=p),s--,i=p}i!==n&&la(t,e,i,n),i=n=a}},r.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.u.length-1;0<=p;--p){var h=this.j[p];for(t.uniform4fv(this.v.B,h[0]),ma(this,t,h[1],h[2]),n=this.u[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[U(l).toString()]&&l.V()&&(void 0===r||Ot(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),la(t,e,h,a),a=i(l)))return a;s--,a=h}}},r.Ma=function(t,e){var o;e=e?(o=e.i,this.c.lineDash=o||ca,o=e.g,this.c.lineDashOffset=o||0,o=!((o=e.a)instanceof CanvasGradient||o instanceof CanvasPattern)&&vo(o).map(function(t,e){return 3!=e?t/255:t})||fa,void 0!==(e=e.c)?e:1):(o=[0,0,0,0],0),t=!((t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern)&&vo(t).map(function(t,e){return 3!=e?t/255:t})||ua,this.c.strokeColor&&Z(this.c.strokeColor,o)&&this.c.fillColor&&Z(this.c.fillColor,t)&&this.c.lineWidth===e||(this.c.s=!0,this.c.fillColor=t,this.c.strokeColor=o,this.c.lineWidth=e,this.j.push([t,o,e]))},e(wa,ta);var xa=new wa;function Sa(){this.b="varying vec2 a;varying float b;attribute vec2 c;attribute vec2 d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;void main(void){mat4 offsetMatrix=i;if(g==1.0){offsetMatrix=i*j;}vec4 offsets=offsetMatrix*vec4(e,0.0,0.0);gl_Position=h*vec4(c,0.0,1.0)+offsets;a=d;b=f;}"}e(Sa,ea);var Ma=new Sa;function Pa(t,e){this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"k"),this.i=t.getUniformLocation(e,"h"),this.v=t.getAttribLocation(e,"e"),this.u=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"c"),this.D=t.getAttribLocation(e,"g"),this.C=t.getAttribLocation(e,"d")}function Aa(t,e){this.j=t,this.b=e,this.a={},this.c={},this.i={},this.l=this.v=this.f=this.o=null,(this.g=D(di,"OES_element_index_uint"))&&e.getExtension("OES_element_index_uint"),d(this.j,"webglcontextlost",this.Xo,this),d(this.j,"webglcontextrestored",this.Yo,this)}function Ea(t,e,o){var i,r,n=t.b,s=o.b,a=String(U(o));a in t.a?n.bindBuffer(e,t.a[a].buffer):(i=n.createBuffer(),n.bindBuffer(e,i),34962==e?r=new Float32Array(s):34963==e&&(r=new(t.g?Uint32Array:Uint16Array)(s)),n.bufferData(e,r,o.a),t.a[a]={lc:o,buffer:i})}function Ta(t,e){var o=t.b,i=(e=String(U(e)),t.a[e]);o.isContextLost()||o.deleteBuffer(i.buffer),delete t.a[e]}function ja(t){var e,o,i,r;return t.f||(o=(e=t.b).createFramebuffer(),e.bindFramebuffer(e.FRAMEBUFFER,o),i=Ia(e,1,1),r=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,r),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,1,1),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,i,0),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,r),e.bindTexture(e.TEXTURE_2D,null),e.bindRenderbuffer(e.RENDERBUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null),t.f=o,t.v=i,t.l=r),t.f}function Ca(t,e){var o=String(U(e));if(o in t.c)return t.c[o];var i=t.b,r=i.createShader(e.U());return i.shaderSource(r,e.b),i.compileShader(r),t.c[o]=r}function La(t,e,o){var i=U(e)+"/"+U(o);if(i in t.i)return t.i[i];var r=t.b,n=r.createProgram();return r.attachShader(n,Ca(t,e)),r.attachShader(n,Ca(t,o)),r.linkProgram(n),t.i[i]=n}function Ra(t,e,o){var i=t.createTexture();return t.bindTexture(t.TEXTURE_2D,i),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),void 0!==e&&t.texParameteri(3553,10242,e),void 0!==o&&t.texParameteri(3553,10243,o),i}function Ia(t,e,o){var i=Ra(t,void 0,void 0);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,o,0,t.RGBA,t.UNSIGNED_BYTE,null),i}function Na(t,e){var o=Ra(t,33071,33071);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),o}function Fa(t,e){ha.call(this,0,e),this.C=this.D=void 0,this.S=[],this.v=[],this.oa=void 0,this.j=[],this.c=[],this.I=this.ra=void 0,this.B=null,this.fb=this.fa=this.na=this.T=this.Ua=this.R=void 0,this.va=[],this.u=[],this.pa=void 0}function ka(t,e,o,i){for(var r=t.D,n=t.C,s=t.oa,a=t.ra,p=t.I,h=t.R,l=t.Ua,u=t.T,c=t.na?1:0,f=-t.fa,y=t.fb,g=t.pa,d=Math.cos(f),f=Math.sin(f),v=t.b.length,b=t.a.length,m=0;m<o;m+=i){var w=e[m]-t.origin[0],x=e[m+1]-t.origin[1],S=b/8,M=-y*r,P=-y*(s-n);t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=l/p,t.a[b++]=(u+s)/a,t.a[b++]=h,t.a[b++]=c,M=y*(g-r),P=-y*(s-n),t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=(l+g)/p,t.a[b++]=(u+s)/a,t.a[b++]=h,t.a[b++]=c,M=y*(g-r),P=y*n,t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=(l+g)/p,t.a[b++]=u/a,t.a[b++]=h,t.a[b++]=c,M=-y*r,P=y*n,t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=l/p,t.a[b++]=u/a,t.a[b++]=h,t.a[b++]=c,t.b[v++]=S,t.b[v++]=1+S,t.b[v++]=2+S,t.b[v++]=S,t.b[v++]=2+S,t.b[v++]=3+S}}function Da(t,e,o,i){for(var r=e.length,n=0;n<r;++n){var s=e[n],a=U(s).toString();a in o?s=o[a]:(s=Na(i,s),o[a]=s),t[n]=s}}function Oa(t,e,o){var i=e-o;return t[0]===t[i]&&t[1]===t[1+i]&&3<+e/o&&!!wr(t,0,e,o)}function Ua(){this.b="precision mediump float;varying float a;varying vec2 b;varying float c;uniform float m;uniform vec4 n;uniform vec2 o;uniform float p;void main(void){if(a>0.0){vec2 windowCoords=vec2((b.x+1.0)/2.0*o.x*p,(b.y+1.0)/2.0*o.y*p);if(length(windowCoords-gl_FragCoord.xy)>c*p){discard;}} gl_FragColor=n;float alpha=n.a*m;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(Aa,_e),(r=Aa.prototype).ka=function(){Je(this.j);var t=this.b;if(!t.isContextLost()){for(var e in this.a)t.deleteBuffer(this.a[e].buffer);for(e in this.i)t.deleteProgram(this.i[e]);for(e in this.c)t.deleteShader(this.c[e]);t.deleteFramebuffer(this.f),t.deleteRenderbuffer(this.l),t.deleteTexture(this.v)}},r.Wo=function(){return this.b},r.Xo=function(){Vt(this.a),Vt(this.c),Vt(this.i),this.l=this.v=this.f=this.o=null},r.Yo=function(){},r.Qc=function(t){return t!=this.o&&(this.b.useProgram(t),this.o=t,!0)},e(Fa,ha),(r=Fa.prototype).Eb=function(o){var i=this.l,r=this.o,n=this.va,s=this.u,a=o.b;return function(){if(!a.isContextLost()){for(var t=0,e=n.length;t<e;++t)a.deleteTexture(n[t]);for(t=0,e=s.length;t<e;++t)a.deleteTexture(s[t])}Ta(o,i),Ta(o,r)}},r.oc=function(t,e){this.i.push(this.b.length),this.f.push(e),ka(this,e=t.ga(),e.length,t.qa())},r.qc=function(t,e){this.i.push(this.b.length),this.f.push(e),ka(this,e=t.ga(),e.length,t.qa())},r.Db=function(t){t=t.b,this.S.push(this.b.length),this.v.push(this.b.length),this.l=new da(this.a),this.o=new da(this.b);var e={};Da(this.va,this.j,e,t),Da(this.u,this.c,e,t),this.oa=this.C=this.D=void 0,this.c=this.j=null,this.I=this.ra=void 0,this.b=null,this.fb=this.fa=this.na=this.T=this.Ua=this.R=void 0,this.a=null,this.pa=void 0},r.rf=function(t,e){var o,i=La(e,xa,Ma);return this.B?o=this.B:this.B=o=new Pa(t,i),e.Qc(i),t.enableVertexAttribArray(o.b),t.vertexAttribPointer(o.b,2,5126,!1,32,0),t.enableVertexAttribArray(o.v),t.vertexAttribPointer(o.v,2,5126,!1,32,8),t.enableVertexAttribArray(o.C),t.vertexAttribPointer(o.C,2,5126,!1,32,16),t.enableVertexAttribArray(o.u),t.vertexAttribPointer(o.u,1,5126,!1,32,24),t.enableVertexAttribArray(o.D),t.vertexAttribPointer(o.D,1,5126,!1,32,28),o},r.sf=function(t,e){t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.v),t.disableVertexAttribArray(e.C),t.disableVertexAttribArray(e.u),t.disableVertexAttribArray(e.D)},r.Od=function(t,e,o,i){var r=i?this.u:this.va;if(i=i?this.v:this.S,Zt(o))for(var n=r.length,s=o=0;o<n;++o){t.bindTexture(3553,r[o]);var a=i[o];la(t,e,s,a),s=a}else for(s=n=0,a=r.length;s<a;++s){t.bindTexture(3553,r[s]);for(var p=0<s?i[s-1]:0,h=i[s],l=p;n<this.i.length&&this.i[n]<=h;){p=void 0!==o[U(this.f[n]).toString()]?(l!==p&&la(t,e,l,p),l=n===this.i.length-1?h:this.i[n+1]):n===this.i.length-1?h:this.i[n+1];n++}l!==p&&la(t,e,l,p)}},r.ve=function(t,e,o,i,r){for(var n=this.i.length-1,s=this.u.length-1;0<=s;--s){t.bindTexture(3553,this.u[s]);for(var a=0<s?this.v[s-1]:0,p=this.v[s];0<=n&&this.i[n]>=a;){var h=this.i[n],l=this.f[n];if(void 0===o[U(l).toString()]&&l.V()&&(void 0===r||Ot(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),la(t,e,h,p),p=i(l)))return p;p=h,n--}}},r.Ub=function(t){var e=t.Hc(),o=t.Y(1),i=t.ye(),r=t.qg(1),n=t.f,s=t.Oc(),a=t.l,p=t.g,h=t.ic();t=t.a,this.j.length?U(this.j[this.j.length-1])!=U(o)&&(this.S.push(this.b.length),this.j.push(o)):this.j.push(o),this.c.length?U(this.c[this.c.length-1])!=U(r)&&(this.v.push(this.b.length),this.c.push(r)):this.c.push(r),this.D=e[0],this.C=e[1],this.oa=h[1],this.ra=i[1],this.I=i[0],this.R=n,this.Ua=s[0],this.T=s[1],this.fa=p,this.na=a,this.fb=t,this.pa=h[0]},e(Ua,ta);var Ga=new Ua;function Ba(){this.b="varying float a;varying vec2 b;varying float c;attribute vec2 d;attribute vec2 e;attribute vec2 f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;bool nearlyEquals(in float value,in float ref){float epsilon=0.000000000001;return value>=ref-epsilon&&value<=ref+epsilon;}void alongNormal(out vec2 offset,in vec2 nextP,in float turnDir,in float direction){vec2 dirVect=nextP-e;vec2 normal=normalize(vec2(-turnDir*dirVect.y,turnDir*dirVect.x));offset=k/2.0*normal*direction;}void miterUp(out vec2 offset,out float round,in bool isRound,in float direction){float halfWidth=k/2.0;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=f-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;round=0.0;if(isRound){round=1.0;}else if(miterLength>l+k){offset=halfWidth*tmpNormal*direction;}} bool miterDown(out vec2 offset,in vec4 projPos,in mat4 offsetMatrix,in float direction){bool degenerate=false;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=d-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));vec2 longOffset,shortOffset,longVertex;vec4 shortProjVertex;float halfWidth=k/2.0;if(length(f-e)>length(d-e)){longOffset=tmpNormal*direction*halfWidth;shortOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=f;shortProjVertex=h*vec4(d,0.0,1.0);}else{shortOffset=tmpNormal*direction*halfWidth;longOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=d;shortProjVertex=h*vec4(f,0.0,1.0);}vec4 p1=h*vec4(longVertex,0.0,1.0)+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p2=projPos+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p3=shortProjVertex+offsetMatrix*vec4(-shortOffset,0.0,0.0);vec4 p4=shortProjVertex+offsetMatrix*vec4(shortOffset,0.0,0.0);float denom=(p4.y-p3.y)*(p2.x-p1.x)-(p4.x-p3.x)*(p2.y-p1.y);float firstU=((p4.x-p3.x)*(p1.y-p3.y)-(p4.y-p3.y)*(p1.x-p3.x))/denom;float secondU=((p2.x-p1.x)*(p1.y-p3.y)-(p2.y-p1.y)*(p1.x-p3.x))/denom;float epsilon=0.000000000001;if(firstU>epsilon&&firstU<1.0-epsilon&&secondU>epsilon&&secondU<1.0-epsilon){shortProjVertex.x=p1.x+firstU*(p2.x-p1.x);shortProjVertex.y=p1.y+firstU*(p2.y-p1.y);offset=shortProjVertex.xy;degenerate=true;}else{float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;}return degenerate;}void squareCap(out vec2 offset,out float round,in bool isRound,in vec2 nextP,in float turnDir,in float direction){round=0.0;vec2 dirVect=e-nextP;vec2 firstNormal=normalize(dirVect);vec2 secondNormal=vec2(turnDir*firstNormal.y*direction,-turnDir*firstNormal.x*direction);vec2 hypotenuse=normalize(firstNormal-secondNormal);vec2 normal=vec2(turnDir*hypotenuse.y*direction,-turnDir*hypotenuse.x*direction);float length=sqrt(c*c*2.0);offset=normal*length;if(isRound){round=1.0;}} void main(void){bool degenerate=false;float direction=float(sign(g));mat4 offsetMatrix=i*j;vec2 offset;vec4 projPos=h*vec4(e,0.0,1.0);bool round=nearlyEquals(mod(g,2.0),0.0);a=0.0;c=k/2.0;b=projPos.xy;if(nearlyEquals(mod(g,3.0),0.0)||nearlyEquals(mod(g,17.0),0.0)){alongNormal(offset,f,1.0,direction);}else if(nearlyEquals(mod(g,5.0),0.0)||nearlyEquals(mod(g,13.0),0.0)){alongNormal(offset,d,-1.0,direction);}else if(nearlyEquals(mod(g,23.0),0.0)){miterUp(offset,a,round,direction);}else if(nearlyEquals(mod(g,19.0),0.0)){degenerate=miterDown(offset,projPos,offsetMatrix,direction);}else if(nearlyEquals(mod(g,7.0),0.0)){squareCap(offset,a,round,f,1.0,direction);}else if(nearlyEquals(mod(g,11.0),0.0)){squareCap(offset,a,round,d,-1.0,direction);}if(!degenerate){vec4 offsets=offsetMatrix*vec4(offset,0.0,0.0);gl_Position=projPos+offsets;}else{gl_Position=vec4(offset,0.0,1.0);}}"}e(Ba,ea);var Xa=new Ba;function Va(t,e){this.B=t.getUniformLocation(e,"n"),this.oa=t.getUniformLocation(e,"k"),this.R=t.getUniformLocation(e,"l"),this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"m"),this.ra=t.getUniformLocation(e,"p"),this.i=t.getUniformLocation(e,"h"),this.I=t.getUniformLocation(e,"o"),this.g=t.getAttribLocation(e,"g"),this.o=t.getAttribLocation(e,"d"),this.l=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"e")}function Wa(t,e){ha.call(this,0,e),this.v=null,this.u=[],this.j=[],this.c={strokeColor:null,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0,s:!1}}function Za(t,e,o,i){for(var r=t.a.length,n=t.b.length,s="bevel"===t.c.lineJoin?0:"miter"===t.c.lineJoin?1:2,a="butt"===t.c.lineCap?0:"square"===t.c.lineCap?1:2,p=Oa(e,o,i),h=n,l=1,u=0;u<o;u+=i){var c,f=r/7,y=g,g=c||[e[u],e[u+1]];if(u){if(u===o-i){p?c=d:(r=Ka(t,y=y||[0,0],g,[0,0],l*_a*(a||1),r),r=Ka(t,y,g,[0,0],-l*_a*(a||1),r),t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=h,t.b[n++]=f+1,t.b[n++]=f,a&&(r=Ka(t,y,g,[0,0],l*Qa*a,r),r=Ka(t,y,g,[0,0],-l*Qa*a,r),t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=f+1,t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f+2));break}c=[e[u+i],e[u+i+1]]}else{if(c=[e[u+i],e[u+i+1]],+o==2*i&&Z(g,c))break;if(!p){a&&(r=Ka(t,[0,0],g,c,l*$a*a,r),r=Ka(t,[0,0],g,c,-l*$a*a,r),t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=f+1,t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f+2),r=Ka(t,[0,0],g,c,l*Ja*(a||1),r),h=(r=Ka(t,[0,0],g,c,-l*Ja*(a||1),r))/7-1;continue}var y=[e[o-2*i],e[o-2*i+1]],d=c}var v=ya(y[0],y[1],g[0],g[1],c[0],c[1])?-1:1,r=Ka(t,y,g,c,v*tp*(s||1),r);r=Ka(t,y,g,c,v*ep*(s||1),r),r=Ka(t,y,g,c,-v*op*(s||1),r),0<u&&(t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=0<l*v?h:h-1),t.b[n++]=f,t.b[n++]=f+2,t.b[n++]=f+1,h=f+2,l=v,s&&(r=Ka(t,y,g,c,v*ip*s,r),t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f)}p&&(f=f||r/7,r=Ka(t,y,g,c,(v=Vr([y[0],y[1],g[0],g[1],c[0],c[1]],0,6,2)?1:-1)*tp*(s||1),r),Ka(t,y,g,c,-v*op*(s||1),r),t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=f+1,t.b[n++]=f,t.b[n++]=0<l*v?h:h-1)}function Ka(t,e,o,i,r,n){return t.a[n++]=e[0],t.a[n++]=e[1],t.a[n++]=o[0],t.a[n++]=o[1],t.a[n++]=i[0],t.a[n++]=i[1],t.a[n++]=r,n}function za(t,e,o,i){return!((o-=e)<2*i)&&(o!==2*i||!Z([t[e],t[e+1]],[t[e+i],t[e+i+1]]))}function Ya(t,e,o,i){var r;if(Oa(e,e.length,i)||(e.push(e[0]),e.push(e[1])),Za(t,e,e.length,i),o.length)for(e=0,r=o.length;e<r;++e)Oa(o[e],o[e].length,i)||(o[e].push(o[e][0]),o[e].push(o[e][1])),Za(t,o[e],o[e].length,i)}function Ha(t,e,o){o=void 0===o?t.b.length:o,t.i.push(o),t.f.push(e),t.c.s&&(t.j.push(o),t.c.s=!1)}function qa(t,e,o,i,r){e.uniform4fv(t.v.B,o),e.uniform1f(t.v.oa,i),e.uniform1f(t.v.R,r)}e(Wa,ha),(r=Wa.prototype).mc=function(t,e){var o=t.ga();t=t.qa(),za(o,0,o.length,t)&&(o=dr(o,0,o.length,t,-this.origin[0],-this.origin[1]),this.c.s&&(this.j.push(this.b.length),this.c.s=!1),this.i.push(this.b.length),this.f.push(e),Za(this,o,o.length,t))},r.nc=function(t,e){var o=this.b.length,i=t.Bb(),r=(i.unshift(0),t.ga());if(t=t.qa(),1<i.length)for(var n,s=1,a=i.length;s<a;++s)za(r,i[s-1],i[s],t)&&Za(this,n=dr(r,i[s-1],i[s],t,-this.origin[0],-this.origin[1]),n.length,t);this.b.length>o&&(this.i.push(o),this.f.push(e),this.c.s&&(this.j.push(o),this.c.s=!1))},r.Db=function(){this.l=new da(this.a),this.o=new da(this.b),this.i.push(this.b.length),!this.j.length&&0<this.u.length&&(this.u=[]),this.b=this.a=null},r.Eb=function(t){var e=this.l,o=this.o;return function(){Ta(t,e),Ta(t,o)}},r.rf=function(t,e,o,i){var r,n=La(e,Ga,Xa);return this.v?r=this.v:this.v=r=new Va(t,n),e.Qc(n),t.enableVertexAttribArray(r.o),t.vertexAttribPointer(r.o,2,5126,!1,28,0),t.enableVertexAttribArray(r.b),t.vertexAttribPointer(r.b,2,5126,!1,28,8),t.enableVertexAttribArray(r.l),t.vertexAttribPointer(r.l,2,5126,!1,28,16),t.enableVertexAttribArray(r.g),t.vertexAttribPointer(r.g,1,5126,!1,28,24),t.uniform2fv(r.I,o),t.uniform1f(r.ra,i),r},r.sf=function(t,e){t.disableVertexAttribArray(e.o),t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.l),t.disableVertexAttribArray(e.g)},r.Od=function(t,e,o,i){var r=t.getParameter(t.DEPTH_FUNC),n=t.getParameter(t.DEPTH_WRITEMASK);if(i||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),Zt(o)){var s=this.i[this.i.length-1];for(o=this.j.length-1;0<=o;--o){var a=this.j[o],p=this.u[o];qa(this,t,p[0],p[1],p[2]),la(t,e,a,s),t.clear(t.DEPTH_BUFFER_BIT),s=a}}else for(var h=this.i.length-2,p=s=this.i[h+1],a=this.j.length-1;0<=a;--a){var l=this.u[a];for(qa(this,t,l[0],l[1],l[2]),l=this.j[a];0<=h&&this.i[h]>=l;){var u=this.i[h];o[U(this.f[h]).toString()]&&(s!==p&&(la(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),p=u),h--,s=u}s!==p&&(la(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),s=p=l}i||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(n),t.depthFunc(r))},r.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.j.length-1;0<=p;--p)for(qa(this,t,(h=this.u[p])[0],h[1],h[2]),n=this.j[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[U(l).toString()]&&l.V()&&(void 0===r||Ot(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),la(t,e,h,a),a=i(l)))return a;s--,a=h}},r.Ma=function(t,e){t=e.f,this.c.lineCap=void 0!==t?t:"round",t=e.i,this.c.lineDash=t||ca,t=e.g,this.c.lineDashOffset=t||0,t=e.j,this.c.lineJoin=void 0!==t?t:"round",t=!((t=e.a)instanceof CanvasGradient||t instanceof CanvasPattern)&&vo(t).map(function(t,e){return 3!=e?t/255:t})||fa;var o=void 0!==(o=e.c)?o:1;e=void 0!==(e=e.o)?e:10,this.c.strokeColor&&Z(this.c.strokeColor,t)&&this.c.lineWidth===o&&this.c.miterLimit===e||(this.c.s=!0,this.c.strokeColor=t,this.c.lineWidth=o,this.c.miterLimit=e,this.u.push([t,o,e]))};var Ja=3,_a=5,$a=7,Qa=11,tp=13,ep=17,op=19,ip=23;function rp(){this.b="precision mediump float;uniform vec4 e;uniform float f;void main(void){gl_FragColor=e;float alpha=e.a*f;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(rp,ta);var np=new rp;function sp(){this.b="attribute vec2 a;uniform mat4 b;uniform mat4 c;uniform mat4 d;void main(void){gl_Position=b*vec4(a,0.0,1.0);}"}e(sp,ea);var ap=new sp;function pp(t,e){this.B=t.getUniformLocation(e,"e"),this.c=t.getUniformLocation(e,"d"),this.f=t.getUniformLocation(e,"c"),this.a=t.getUniformLocation(e,"f"),this.i=t.getUniformLocation(e,"b"),this.b=t.getAttribLocation(e,"a")}function hp(t){this.a=void 0!==(t=t||{}).color?t.color:null,this.f=t.lineCap,this.i=void 0!==t.lineDash?t.lineDash:null,this.g=t.lineDashOffset,this.j=t.lineJoin,this.o=t.miterLimit,this.c=t.width,this.b=void 0}function lp(t){this.b=this.a=this.i=void 0,this.f=void 0===t||t,this.c=0}function up(t){var e,o,i=t.b;i&&(e=i.next,o=i.ub,e&&(e.ub=o),o&&(o.next=e),t.b=e||o,t.i===t.a?(t.b=void 0,t.i=void 0,t.a=void 0):t.i===i?t.i=t.b:t.a===i&&(t.a=o?t.b.ub:t.b),t.c--)}function cp(t){if(t.b=t.i,t.b)return t.b.data}function fp(t){if(t.b&&t.b.next)return t.b=t.b.next,t.b.data}function yp(t){if(t.b&&t.b.next)return t.b.next.data}function gp(t){if(t.b&&t.b.ub)return t.b=t.b.ub,t.b.data}function dp(t){if(t.b&&t.b.ub)return t.b.ub.data}function vp(t){if(t.b)return t.b.data}(r=hp.prototype).clone=function(){var t=this.a;return new hp({color:t&&t.slice?t.slice():t||void 0,lineCap:this.f,lineDash:this.i?this.i.slice():void 0,lineDashOffset:this.g,lineJoin:this.j,miterLimit:this.o,width:this.c})},r.No=function(){return this.a},r.Vk=function(){return this.f},r.Oo=function(){return this.i},r.Wk=function(){return this.g},r.Xk=function(){return this.j},r.bl=function(){return this.o},r.Po=function(){return this.c},r.Qo=function(t){this.a=t,this.b=void 0},r.aq=function(t){this.f=t,this.b=void 0},r.setLineDash=function(t){this.i=t,this.b=void 0},r.bq=function(t){this.g=t,this.b=void 0},r.cq=function(t){this.j=t,this.b=void 0},r.gq=function(t){this.o=t,this.b=void 0},r.jq=function(t){this.c=t,this.b=void 0},lp.prototype.concat=function(t){var e;t.b&&(this.b?(e=this.b.next,this.b.next=t.i,t.i.ub=this.b,e.ub=t.a,t.a.next=e,this.c+=t.c):(this.b=t.b,this.i=t.i,this.a=t.a,this.c=t.c),t.b=void 0,t.i=void 0,t.a=void 0,t.c=0)};var bp,mp={$d:function(){}};function wp(t,e,o){var i=t[e];t[e]=t[o],t[o]=i}function xp(t,e){return t<e?-1:e<t?1:0}function Sp(t,e){if(!(this instanceof Sp))return new Sp(t,e);this.Hf=Math.max(4,t||9),this.fh=Math.max(2,Math.ceil(.4*this.Hf)),e&&this.ek(e),this.clear()}function Mp(t,e){Pp(t,0,t.children.length,e,t)}function Pp(t,e,o,i,r){(r=r||Ip(null)).ca=1/0,r.da=1/0,r.$=-1/0,r.ia=-1/0;for(var n;e<o;e++)n=t.children[e],Ap(r,t.ib?i(n):n);return r}function Ap(t,e){t.ca=Math.min(t.ca,e.ca),t.da=Math.min(t.da,e.da),t.$=Math.max(t.$,e.$),t.ia=Math.max(t.ia,e.ia)}function Ep(t,e){return t.ca-e.ca}function Tp(t,e){return t.da-e.da}function jp(t){return(t.$-t.ca)*(t.ia-t.da)}function Cp(t){return t.$-t.ca+(t.ia-t.da)}function Lp(t,e){return t.ca<=e.ca&&t.da<=e.da&&e.$<=t.$&&e.ia<=t.ia}function Rp(t,e){return e.ca<=t.$&&e.da<=t.ia&&e.$>=t.ca&&e.ia>=t.da}function Ip(t){return{children:t,height:1,ib:!0,ca:1/0,da:1/0,$:-1/0,ia:-1/0}}function Np(t,e,o,i,r){for(var n,s=[e,o];s.length;)(o=s.pop())-(e=s.pop())<=i||(n=e+Math.ceil((o-e)/i/2)*i,bp(t,n,e,o,r),s.push(e,n,n,o))}function Fp(t){this.a=mp.$d(t),this.b={}}function kp(t,e,o){var i=t.b[U(o)];St([i.ca,i.da,i.$,i.ia],e)||(t.remove(o),t.Ca(e,o))}function Dp(t){return t.a.all().map(function(t){return t.value})}function Op(t,e){return t.a.search({ca:e[0],da:e[1],$:e[2],ia:e[3]}).map(function(t){return t.value})}function Up(t,e,o,i){return Gp(Op(t,e),o,i)}function Gp(t,e,o){for(var i,r=0,n=t.length;r<n&&!(i=e.call(o,t[r]));r++);return i}function Bp(t,e){ha.call(this,0,e),this.g=new Wa(0,e),this.v=null,this.u=[],this.c=[],this.j={fillColor:null,s:!1}}function Xp(t,e,o,i){var r=new lp,n=new Fp;if(e=Vp(t,e,i,r,n,!0),o.length){for(var s=[],a=0,p=o.length;a<p;++a){var h={list:new lp,$:void 0,Mg:new Fp};s.push(h),h.$=Vp(t,o[a],i,h.list,h.Mg,!1)}for(s.sort(function(t,e){return e.$[0]===t.$[0]?t.$[1]-e.$[1]:e.$[0]-t.$[0]}),a=0;a<s.length;++a){p=i=cp(o=s[a].list);do{if(_p(p,n).length){var l=!0;break}}while(i!==(p=fp(o)));l||(Wp(o,s[a].Mg,!0),function(t,e,o,i,r){for(var n=cp(t);n.W.x!==e;)n=fp(t);e=n.W,i={x:i,y:e.y,hb:-1};var s,a=1/0,p=_p({aa:e,W:i},r,!0),h=0;for(s=p.length;h<s;++h){var l,u=p[h],c=$p(e,i,u.aa,u.W,!0),f=Math.abs(e.x-c[0]);f<a&&void 0!==ya(e.x,e.y,u.aa.x,u.aa.y,u.W.x,u.W.y)&&(a=f,l={x:c[0],y:c[1],hb:-1},n=u)}if(1/0===a)return;if(p=n.W,0<a&&(n=Jp(e,l,n.W,r)).length)for(l=1/0,h=0,s=n.length;h<s;++h)a=n[h],((u=Math.atan2(e.y-a.y,i.x-a.x))<l||u===l&&a.x<p.x)&&(l=u,p=a);for(n=cp(o);n.W.x!==p.x||n.W.y!==p.y;)n=fp(o);return i={x:e.x,y:e.y,hb:e.hb,Fb:void 0},h={x:n.W.x,y:n.W.y,hb:n.W.hb,Fb:void 0},yp(t).aa=i,Hp(e,n.W,t,r),Hp(h,i,t,r),n.W=h,t.f&&t.b&&(t.i=t.b,t.a=t.b.ub),o.concat(t),1}(o,s[a].$[0],r,e[0],n)&&(n.concat(s[a].Mg),Wp(r,n,!1)))}}else Wp(r,n,!1);!function t(e,o,i){for(var r=!1,n=zp(o,i);3<o.c;)if(n){if(!Zp(e,o,i,n,r)&&!Wp(o,i,r)&&!Kp(e,o,i,!0))break}else if(!Zp(e,o,i,n,r)&&!Wp(o,i,r)&&!Kp(e,o,i)){if(!(n=zp(o,i))){n=e,s=a=cp(r=o);do{if((p=_p(s,i)).length){for(a=p[0],p=$p(s.aa,s.W,a.aa,a.W),p=Yp(n,p[0],p[1],n.a.length/2),h=new lp,l=new Fp,Hp(p,s.W,h,l),s.W=p,kp(i,[Math.min(s.aa.x,p.x),Math.min(s.aa.y,p.y),Math.max(s.aa.x,p.x),Math.max(s.aa.y,p.y)],s),s=fp(r);s!==a;)Hp(s.aa,s.W,h,l),i.remove(s),up(r),s=vp(r);Hp(a.aa,p,h,l),a.aa=p,kp(i,[Math.min(a.W.x,p.x),Math.min(a.W.y,p.y),Math.max(a.W.x,p.x),Math.max(a.W.y,p.y)],a),Wp(r,i,!1),t(n,r,i),Wp(h,l,!1),t(n,h,l);break}}while((s=fp(r))!==a);break}for(var s=2*(r=o).c,a=Array(s),p=cp(r),h=p,l=0;a[l++]=h.aa.x,a[l++]=h.aa.y,(h=fp(r))!==p;);r=!Vr(a,0,s,2),Wp(o,i,r)}3===o.c&&(n=e.b.length,e.b[n++]=dp(o).aa.hb,e.b[n++]=vp(o).aa.hb,e.b[n++]=yp(o).aa.hb)}(t,r,n)}function Vp(t,e,o,i,r,n){var s,a=t.a.length/2,p=[],h=[];if(n===Vr(e,0,e.length,o))for(var l=s=Yp(t,e[0],e[1],a++),u=(n=e[0],e[1]),c=o,f=e.length;c<f;c+=o){var y=Yp(t,e[c],e[c+1],a++);h.push(Hp(l,y,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),e[c]>n&&(n=e[c],u=e[c+1]),l=y}else for(l=s=Yp(t,e[c=e.length-o],e[c+1],a++),n=e[c],u=e[c+1],c-=o,f=0;f<=c;c-=o)y=Yp(t,e[c],e[c+1],a++),h.push(Hp(l,y,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),e[c]>n&&(n=e[c],u=e[c+1]),l=y;return h.push(Hp(y,s,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),r.load(p,h),[n,u]}function Wp(t,e,o){var i=cp(t),r=i,n=fp(t),s=!1;do{var a=o?ya(n.W.x,n.W.y,r.W.x,r.W.y,r.aa.x,r.aa.y):ya(r.aa.x,r.aa.y,r.W.x,r.W.y,n.W.x,n.W.y)}while(void 0===a?(qp(r,n,t,e),s=!0,n===i&&(i=yp(t)),n=r,gp(t)):r.W.Fb!==a&&(r.W.Fb=a,s=!0),r=n,n=fp(t),r!==i);return s}function Zp(t,e,o,i,r){var n=t.b.length,s=cp(e),a=dp(e),p=s,h=fp(e),l=yp(e),u=!1;do{var c,f=p.aa,y=p.W,g=h.W}while(!1===y.Fb&&(c=r?Qp(l.W,g,y,f,a.aa):Qp(a.aa,f,y,g,l.W),!i&&_p({aa:f,W:g},o).length||!c||Jp(f,y,g,o,!0).length||!i&&!1!==f.Fb&&!1!==g.Fb&&Vr([a.aa.x,a.aa.y,f.x,f.y,y.x,y.y,g.x,g.y,l.W.x,l.W.y],0,10,2)!==!r||(t.b[n++]=f.hb,t.b[n++]=y.hb,t.b[n++]=g.hb,qp(p,h,e,o),h===s&&(s=l),u=!0)),a=dp(e),p=vp(e),h=fp(e),l=yp(e),p!==s&&3<e.c);return u}function Kp(t,e,o,i){var r=cp(e),n=(fp(e),r),s=fp(e),a=!1;do{var p=$p(n.aa,n.W,s.aa,s.W,i);if(p){var a=t.b.length,h=t.a.length/2,l=gp(e),u=(up(e),o.remove(l),l===r);if(i?(u=p[0]===n.aa.x&&p[1]===n.aa.y?(gp(e),p=n.aa,s.aa=p,o.remove(n),u||n===r):(p=s.W,n.W=p,o.remove(s),u||s===r),up(e)):(p=Yp(t,p[0],p[1],h),n.W=p,s.aa=p,kp(o,[Math.min(n.aa.x,n.W.x),Math.min(n.aa.y,n.W.y),Math.max(n.aa.x,n.W.x),Math.max(n.aa.y,n.W.y)],n),kp(o,[Math.min(s.aa.x,s.W.x),Math.min(s.aa.y,s.W.y),Math.max(s.aa.x,s.W.x),Math.max(s.aa.y,s.W.y)],s)),t.b[a++]=l.aa.hb,t.b[a++]=l.W.hb,t.b[a++]=p.hb,a=!0,u)break}}while(n=dp(e),s=fp(e),n!==r);return a}function zp(t,e){var o=cp(t),i=o;do{if(_p(i,e).length)return!1}while((i=fp(t))!==o);return!0}function Yp(t,e,o,i){var r=t.a.length;return{x:t.a[r++]=e,y:t.a[+r]=o,hb:i,Fb:void 0}}function Hp(t,e,o,i){var r,n={aa:t,W:e},s={ub:void 0,next:void 0,data:n},a=o.b;return a?(r=a.next,s.ub=a,s.next=r,a.next=s,r&&(r.ub=s),a===o.a&&(o.a=s)):(o.i=s,o.a=s,o.f&&((s.next=s).ub=s)),o.b=s,o.c++,i&&i.Ca([Math.min(t.x,e.x),Math.min(t.y,e.y),Math.max(t.x,e.x),Math.max(t.y,e.y)],n),n}function qp(t,e,o,i){vp(o)===e&&(up(o),t.W=e.W,i.remove(e),kp(i,[Math.min(t.aa.x,t.W.x),Math.min(t.aa.y,t.W.y),Math.max(t.aa.x,t.W.x),Math.max(t.aa.y,t.W.y)],t))}function Jp(t,e,o,i,r){var n,s,a=[],p=Op(i,[Math.min(t.x,e.x,o.x),Math.min(t.y,e.y,o.y),Math.max(t.x,e.x,o.x),Math.max(t.y,e.y,o.y)]);for(i=0,n=p.length;i<n;++i)for(s in p[i]){var h=p[i][s];"object"!=typeof h||r&&!h.Fb||h.x===t.x&&h.y===t.y||h.x===e.x&&h.y===e.y||h.x===o.x&&h.y===o.y||-1!==a.indexOf(h)||!Dr([t.x,t.y,e.x,e.y,o.x,o.y],0,6,2,h.x,h.y)||a.push(h)}return a}function _p(t,e,o){for(var i=t.aa,r=t.W,n=[],s=0,a=(e=Op(e,[Math.min(i.x,r.x),Math.min(i.y,r.y),Math.max(i.x,r.x),Math.max(i.y,r.y)])).length;s<a;++s){var p=e[s];t!==p&&(o||p.aa!==r||p.W!==i)&&$p(i,r,p.aa,p.W,o)&&n.push(p)}return n}function $p(t,e,o,i,r){var n=(i.y-o.y)*(e.x-t.x)-(i.x-o.x)*(e.y-t.y);if(n&&(i=((i.x-o.x)*(t.y-o.y)-(i.y-o.y)*(t.x-o.x))/n,o=((e.x-t.x)*(t.y-o.y)-(e.y-t.y)*(t.x-o.x))/n,!r&&ga<i&&i<1-ga&&ga<o&&o<1-ga||r&&0<=i&&i<=1&&0<=o&&o<=1))return[t.x+i*(e.x-t.x),t.y+i*(e.y-t.y)]}function Qp(t,e,o,i,r){if(void 0===e.Fb||void 0===i.Fb)return!1;var n=(o.x-i.x)*(e.y-i.y)>(o.y-i.y)*(e.x-i.x);return r=(r.x-i.x)*(e.y-i.y)<(r.y-i.y)*(e.x-i.x),t=(t.x-e.x)*(i.y-e.y)>(t.y-e.y)*(i.x-e.x),o=(o.x-e.x)*(i.y-e.y)<(o.y-e.y)*(i.x-e.x),e=e.Fb?o||t:o&&t,(i.Fb?r||n:r&&n)&&e}function th(){}function eh(t,e,o){this.f=e,this.g=t,this.c=o,this.a={}}function oh(t,e){var o,i=[];for(o in t.a){var r,n=t.a[o];for(r in n)i.push(n[r].Eb(e))}return function(){for(var t,e=i.length,o=0;o<e;o++)t=i[o].apply(this,arguments);return t}}function ih(t,e,o,i,r,n,s,a,p,h,l){for(var u=rh,c=Object.keys(t.a).map(Number),f=(c.sort(function(t,e){return e-t}),0),y=c.length;f<y;++f)for(var g=t.a[c[f].toString()],d=_s.length-1;0<=d;--d){var v=g[_s[d]];if(void 0!==v&&(v=v.La(e,o,i,r,u,n,s,a,p,h,l)))return v}}yi=mp.$d=mp.$d||{},bp=function t(e,o,i,r,n){for(i=i||0,r=r||e.length-1,n=n||xp;i<r;){var s,a,p,h;for(600<r-i&&(s=r-i+1,a=o-i+1,h=Math.log(s),p=.5*Math.exp(2*h/3),h=.5*Math.sqrt(h*p*(s-p)/s)*(a-s/2<0?-1:1),t(e,o,Math.max(i,Math.floor(o-a*p/s+h)),Math.min(r,Math.floor(o+(s-a)*p/s+h)),n)),s=e[o],p=r,wp(e,a=i,o),0<n(e[r],s)&&wp(e,i,r);a<p;){for(wp(e,a,p),a++,p--;n(e[a],s)<0;)a++;for(;0<n(e[p],s);)p--}0===n(e[i],s)?wp(e,i,p):wp(e,++p,r),p<=o&&(i=p+1),o<=p&&(r=p-1)}},Sp.prototype={all:function(){return this.$g(this.data,[])},search:function(t){var e=this.data,o=[],i=this.wb;if(Rp(t,e))for(var r,n,s,a,p=[];e;){for(r=0,n=e.children.length;r<n;r++)s=e.children[r],Rp(t,a=e.ib?i(s):s)&&(e.ib?o.push(s):Lp(t,a)?this.$g(s,o):p.push(s));e=p.pop()}return o},load:function(t){if(t&&t.length)if(t.length<this.fh)for(var e=0,o=t.length;e<o;e++)this.Ca(t[e]);else t=this.bh(t.slice(),0,t.length-1,0),this.data.children.length?this.data.height===t.height?this.hh(this.data,t):(this.data.height<t.height&&(e=this.data,this.data=t,t=e),this.eh(t,this.data.height-t.height-1,!0)):this.data=t;return this},Ca:function(t){return t&&this.eh(t,this.data.height-1),this},clear:function(){return this.data=Ip([]),this},remove:function(t,e){if(t)for(var o,i,r,n=this.data,s=this.wb(t),a=[],p=[];n||a.length;){if(n||(n=a.pop(),i=a[a.length-1],o=p.pop(),r=!0),n.ib){t:{var h=t,l=n.children,u=e;if(u){for(var c=0;c<l.length;c++)if(u(h,l[c])){h=c;break t}h=-1}else h=l.indexOf(h)}if(-1!==h){n.children.splice(h,1),a.push(n),this.ck(a);break}}r||n.ib||!Lp(n,s)?i?(o++,n=i.children[o],r=!1):n=null:(a.push(n),p.push(o),n=(i=n).children[o=0])}return this},wb:function(t){return t},Lf:Ep,Mf:Tp,toJSON:function(){return this.data},$g:function(t,e){for(var o=[];t;)t.ib?e.push.apply(e,t.children):o.push.apply(o,t.children),t=o.pop();return e},bh:function(t,e,o,i){var r,n,s=o-e+1,a=this.Hf;if(s<=a)return Mp(r=Ip(t.slice(e,o+1)),this.wb),r;for(i||(i=Math.ceil(Math.log(s)/Math.log(a)),a=Math.ceil(s/Math.pow(a,i-1))),(r=Ip([])).ib=!1,r.height=i,Np(t,e,o,a=(s=Math.ceil(s/a))*Math.ceil(Math.sqrt(a)),this.Lf);e<=o;e+=a){var p=Math.min(e+a-1,o);for(Np(t,e,p,s,this.Mf),n=e;n<=p;n+=s){var h=Math.min(n+s-1,p);r.children.push(this.bh(t,n,h,i-1))}}return Mp(r,this.wb),r},bk:function(t,e,o,i){for(var r,n,s,a,p,h,l,u;i.push(e),!e.ib&&i.length-1!==o;){for(l=u=1/0,r=0,n=e.children.length;r<n;r++)p=jp(s=e.children[r]),(h=(Math.max(s.$,t.$)-Math.min(s.ca,t.ca))*(Math.max(s.ia,t.ia)-Math.min(s.da,t.da))-p)<u?(u=h,l=p<l?p:l,a=s):h===u&&p<l&&(l=p,a=s);e=a||e.children[0]}return e},eh:function(t,e,o){var i=this.wb,i=(o=o?t:i(t),[]),r=this.bk(o,this.data,e,i);for(r.children.push(t),Ap(r,o);0<=e&&i[e].children.length>this.Hf;)this.jk(i,e),e--;this.Zj(o,i,e)},jk:function(t,e){var o=t[e],i=o.children.length,r=this.fh;this.$j(o,r,i),i=this.ak(o,r,i),(i=Ip(o.children.splice(i,o.children.length-i))).height=o.height,i.ib=o.ib,Mp(o,this.wb),Mp(i,this.wb),e?t[e-1].children.push(i):this.hh(o,i)},hh:function(t,e){this.data=Ip([t,e]),this.data.height=t.height+1,this.data.ib=!1,Mp(this.data,this.wb)},ak:function(t,e,o){for(var i=s=1/0,r=e;r<=o-e;r++){var n,s,a=Pp(t,0,r,this.wb),p=Pp(t,r,o,this.wb),h=Math.max(0,Math.min(a.$,p.$)-Math.max(a.ca,p.ca))*Math.max(0,Math.min(a.ia,p.ia)-Math.max(a.da,p.da)),a=jp(a)+jp(p);h<i?(i=h,n=r,s=a<s?a:s):h===i&&a<s&&(s=a,n=r)}return n},$j:function(t,e,o){var i=t.ib?this.Lf:Ep,r=t.ib?this.Mf:Tp;this.ah(t,e,o,i)<(e=this.ah(t,e,o,r))&&t.children.sort(i)},ah:function(t,e,o,i){t.children.sort(i);for(var r=Pp(t,0,e,i=this.wb),n=Pp(t,o-e,o,i),s=Cp(r)+Cp(n),a=e;a<o-e;a++){var p=t.children[a];Ap(r,t.ib?i(p):p),s+=Cp(r)}for(a=o-e-1;e<=a;a--)p=t.children[a],Ap(n,t.ib?i(p):p),s+=Cp(n);return s},Zj:function(t,e,o){for(;0<=o;o--)Ap(e[o],t)},ck:function(t){for(var e,o=t.length-1;0<=o;o--)0===t[o].children.length?0<o?(e=t[o-1].children).splice(e.indexOf(t[o]),1):this.clear():Mp(t[o],this.wb)},ek:function(t){var e=["return a"," - b",";"];this.Lf=new Function("a","b",e.join(t[0])),this.Mf=new Function("a","b",e.join(t[1])),this.wb=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}},yi.default=Sp,mp.$d=mp.$d.default,(r=Fp.prototype).Ca=function(t,e){t={ca:t[0],da:t[1],$:t[2],ia:t[3],value:e},this.a.Ca(t),this.b[U(e)]=t},r.load=function(t,e){for(var o=Array(e.length),i=0,r=e.length;i<r;i++){var n=t[i],s=e[i],n={ca:n[0],da:n[1],$:n[2],ia:n[3],value:s};o[i]=n,this.b[U(s)]=n}this.a.load(o)},r.remove=function(t){t=U(t);var e=this.b[t];return delete this.b[t],null!==this.a.remove(e)},r.forEach=function(t,e){return Gp(Dp(this),t,e)},r.clear=function(){this.a.clear(),this.b={}},r.G=function(t){var e=this.a.data;return bt(e.ca,e.da,e.$,e.ia,t)},r.concat=function(t){for(var e in this.a.load(t.a.all()),t.b)this.b[0|e]=t.b[0|e]},e(Bp,ha),(r=Bp.prototype).pc=function(t,e){for(var o=t.c,i=t.qa(),r=this.b.length,n=this.g.b.length,s=(t=t.ga(),c=0),a=o.length;s<a;++s){var p=o[s];if(0<p.length){var h=dr(t,c,p[0],i,-this.origin[0],-this.origin[1]);if(h.length){for(var l,u=[],c=1,f=p.length;c<f;++c)p[c]!==p[c-1]&&(l=dr(t,p[c-1],p[c],i,-this.origin[0],-this.origin[1]),u.push(l));Ya(this.g,h,u,i),Xp(this,h,u,i)}}c=p[p.length-1]}this.b.length>r&&(this.i.push(r),this.f.push(e),this.j.s&&(this.c.push(r),this.j.s=!1)),this.g.b.length>n&&Ha(this.g,e,n)},r.rc=function(t,e){var o=t.Bb(),i=t.qa();if(0<o.length){var r=dr(t=t.ga().map(Number),0,o[0],i,-this.origin[0],-this.origin[1]);if(r.length){for(var n,s=[],a=1,p=o.length;a<p;++a)o[a]!==o[a-1]&&(n=dr(t,o[a-1],o[a],i,-this.origin[0],-this.origin[1]),s.push(n));this.i.push(this.b.length),this.f.push(e),this.j.s&&(this.c.push(this.b.length),this.j.s=!1),Ha(this.g,e),Ya(this.g,r,s,i),Xp(this,r,s,i)}}},r.Db=function(t){this.l=new da(this.a),this.o=new da(this.b),this.i.push(this.b.length),this.g.Db(t),!this.c.length&&0<this.u.length&&(this.u=[]),this.b=this.a=null},r.Eb=function(t){var e=this.l,o=this.o,i=this.g.Eb(t);return function(){Ta(t,e),Ta(t,o),i()}},r.rf=function(t,e){var o,i=La(e,np,ap);return this.v?o=this.v:this.v=o=new pp(t,i),e.Qc(i),t.enableVertexAttribArray(o.b),t.vertexAttribPointer(o.b,2,5126,!1,8,0),o},r.sf=function(t,e){t.disableVertexAttribArray(e.b)},r.Od=function(t,e,o,i){var r=t.getParameter(t.DEPTH_FUNC),n=t.getParameter(t.DEPTH_WRITEMASK);if(i||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),Zt(o)){var s=this.i[this.i.length-1];for(o=this.c.length-1;0<=o;--o){var a=this.c[o],p=this.u[o];t.uniform4fv(this.v.B,p),la(t,e,a,s),s=a}}else for(var h=this.i.length-2,p=s=this.i[h+1],a=this.c.length-1;0<=a;--a){var l=this.u[a];for(t.uniform4fv(this.v.B,l),l=this.c[a];0<=h&&this.i[h]>=l;){var u=this.i[h];o[U(this.f[h]).toString()]&&(s!==p&&(la(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),p=u),h--,s=u}s!==p&&(la(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),s=p=l}i||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(n),t.depthFunc(r))},r.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.c.length-1;0<=p;--p){var h=this.u[p];for(t.uniform4fv(this.v.B,h),n=this.c[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[U(l).toString()]&&l.V()&&(void 0===r||Ot(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),la(t,e,h,a),a=i(l)))return a;s--,a=h}}},r.Ma=function(t,e){t=!((t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern)&&vo(t).map(function(t,e){return 3!=e?t/255:t})||ua,this.j.fillColor&&Z(t,this.j.fillColor)||(this.j.fillColor=t,this.j.s=!0,this.u.push(t)),e?this.g.Ma(null,e):this.g.Ma(null,new hp({color:[0,0,0,0],lineWidth:0}))},th.prototype.La=function(){},e(eh,$s),eh.prototype.b=function(t,e){var o=void 0!==t?t.toString():"0";return void 0===(t=this.a[o])&&(this.a[o]=t={}),void 0===(o=t[e])&&(o=new nh[e](this.g,this.f),t[e]=o),o},eh.prototype.i=function(){return Zt(this.a)},eh.prototype.La=function(t,e,o,i,r,n,s,a){for(var p=Object.keys(this.a).map(Number),h=(p.sort(G),0),l=p.length;h<l;++h)for(var u=this.a[p[h].toString()],c=0,f=_s.length;c<f;++c){var y=u[_s[c]];void 0!==y&&y.La(t,e,o,i,r,n,s,a,void 0,!1)}},eh.prototype.Ea=function(t,e,o,i,r,n,s,a,p,h){var l,u=e.b;return u.bindFramebuffer(u.FRAMEBUFFER,ja(e)),ih(this,e,t,i,r,s,a,p,function(t){var e=new Uint8Array(4);if(u.readPixels(0,0,1,1,u.RGBA,u.UNSIGNED_BYTE,e),0<e[3]&&(t=h(t)))return t},!0,l=void 0!==this.c?lt(wt(t),i*this.c):l)};var rh=[1,1],nh={Circle:ba,Image:Fa,LineString:Wa,Polygon:Bp,Text:th};function sh(t,e,o,i,r,n,s){this.b=t,this.i=e,this.a=n,this.c=s,this.j=r,this.g=i,this.f=o,this.o=this.l=this.v=null}function ah(){this.c=0,this.b={},this.i=this.a=null}function ph(t,e){Ls.call(this,0,e),this.b=document.createElement("CANVAS"),this.b.style.width="100%",this.b.style.height="100%",this.b.style.display="block",this.b.className="ol-unselectable",t.insertBefore(this.b,t.childNodes[0]||null),this.S=this.D=0,this.C=Po(),this.l=!0,this.i=Qo(this.b,{antialias:!0,depth:!0,failIfMajorPerformanceCaveat:!0,preserveDrawingBuffer:!1,stencil:!0}),this.f=new Aa(this.b,this.i),d(this.b,"webglcontextlost",this.Yn,this),d(this.b,"webglcontextrestored",this.Zn,this),this.a=new ah,this.u=null,this.j=new Zi(function(t){var e=t[1],o=(t=t[2],e[0]-this.u[0]),e=e[1]-this.u[1];return 65536*Math.log(t)+Math.sqrt(o*o+e*e)/t}.bind(this),function(t){return t[0].bb()}),this.B=function(){var t;return this.j.b.length&&(Hi(this.j),hh(this,(t=Ki(this.j))[0],t[3],t[4])),!1}.bind(this),this.g=0,uh(this)}function hh(t,e,o,i){var r,n,s,a=t.i,p=e.bb();t.a.b.hasOwnProperty(p)?(t=t.a.get(p),a.bindTexture(3553,t.Ib),9729!=t.Ph&&(a.texParameteri(3553,10240,9729),t.Ph=9729),9729!=t.Rh&&(a.texParameteri(3553,10241,9729),t.Rh=9729)):(r=a.createTexture(),a.bindTexture(3553,r),0<i?(n=t.C.canvas,s=t.C,t.D!==o[0]||t.S!==o[1]?(n.width=o[0],n.height=o[1],t.D=o[0],t.S=o[1]):s.clearRect(0,0,o[0],o[1]),s.drawImage(e.Y(),i,i,o[0],o[1],0,0,o[0],o[1]),a.texImage2D(3553,0,6408,6408,5121,n)):a.texImage2D(3553,0,6408,6408,5121,e.Y()),a.texParameteri(3553,10240,9729),a.texParameteri(3553,10241,9729),a.texParameteri(3553,10242,33071),a.texParameteri(3553,10243,33071),t.a.set(p,{Ib:r,Ph:9729,Rh:9729}))}function lh(t,e,o){var i,r=t.o;oo(r,e)&&(t=t.f,i=o.viewState,r.b(new Ds(e,new sh(t,i.center,i.resolution,i.rotation,o.size,o.extent,o.pixelRatio),o,null,t)))}function uh(t){(t=t.i).activeTexture(33984),t.blendFuncSeparate(770,771,1,771),t.disable(2884),t.disable(2929),t.disable(3089),t.disable(2960)}e(sh,Xs),(r=sh.prototype).rd=function(t){this.Ma(t.Fa(),t.Ga()),this.Ub(t.Y())},r.zb=function(t){switch(t.U()){case"Point":this.qc(t,null);break;case"LineString":this.mc(t,null);break;case"Polygon":this.rc(t,null);break;case"MultiPoint":this.oc(t,null);break;case"MultiLineString":this.nc(t,null);break;case"MultiPolygon":this.pc(t,null);break;case"GeometryCollection":this.ue(t,null);break;case"Circle":this.Zb(t,null)}},r.te=function(t,e){(t=(0,e.Za)(t))&&Ot(this.a,t.G())&&(this.rd(e),this.zb(t))},r.ue=function(t){for(var e=0,o=(t=t.a).length;e<o;++e)this.zb(t[e])},r.qc=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"Image");i.Ub(this.v),i.qc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.oc=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"Image");i.Ub(this.v),i.oc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.mc=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"LineString");i.Ma(null,this.o),i.mc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.nc=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"LineString");i.Ma(null,this.o),i.nc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.rc=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"Polygon");i.Ma(this.l,this.o),i.rc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.pc=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"Polygon");i.Ma(this.l,this.o),i.pc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.Zb=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"Circle");i.Ma(this.l,this.o),i.Zb(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.Ub=function(t){this.v=t},r.Ma=function(t,e){this.l=t,this.o=e},(r=ah.prototype).clear=function(){this.c=0,this.b={},this.i=this.a=null},r.forEach=function(t,e){for(var o=this.a;o;)t.call(e,o.Yc,o.uc,this),o=o.Nb},r.get=function(t){return O(!!(t=this.b[t]),15),t!==this.i&&(t===this.a?(this.a=this.a.Nb,this.a.vd=null):(t.Nb.vd=t.vd,t.vd.Nb=t.Nb),t.Nb=null,t.vd=this.i,this.i=this.i.Nb=t),t.Yc},r.pop=function(){var t=this.a;return delete this.b[t.uc],t.Nb&&(t.Nb.vd=null),this.a=t.Nb,this.a||(this.i=null),--this.c,t.Yc},r.replace=function(t,e){this.get(t),this.b[t].Yc=e},r.set=function(t,e){O(!(t in this.b),16),e={uc:t,Nb:null,vd:this.i,Yc:e},this.i?this.i.Nb=e:this.a=e,this.i=e,this.b[t]=e,++this.c},e(ph,Ls),(r=ph.prototype).ka=function(){var e=this.i;e.isContextLost()||this.a.forEach(function(t){t&&e.deleteTexture(t.Ib)}),$e(this.f),Ls.prototype.ka.call(this)},r.xk=function(t,e){t=this.i;for(var o;1024<this.a.c-this.g;){if(o=this.a.a.Yc)t.deleteTexture(o.Ib);else{if(+this.a.a.uc==e.index)break;--this.g}this.a.pop()}},r.U=function(){return"webgl"},r.Yn=function(t){for(var e in t.preventDefault(),this.a.clear(),this.g=0,t=this.c)t[e].mg()},r.Zn=function(){uh(this),this.o.render()},r.Jg=function(t){var e=this.f,o=this.i;if(o.isContextLost())return!1;if(!t)return this.l&&(this.b.style.display="none",this.l=!1),!1;this.u=t.focus,this.a.set((-t.index).toString(),null),++this.g,lh(this,"precompose",t);for(var i=[],r=t.layerStatesArray,n=(K(r),t.viewState.resolution),s=0,a=r.length;s<a;++s){var p=r[s];!gs(p,n)||"ready"!=p.yj||Ns(this,p.layer).ng(t,p,e)&&i.push(p)}for(r=t.size[0]*t.pixelRatio,n=t.size[1]*t.pixelRatio,this.b.width==r&&this.b.height==n||(this.b.width=r,this.b.height=n),o.bindFramebuffer(36160,null),o.clearColor(0,0,0,0),o.clear(16384),o.enable(3042),o.viewport(0,0,this.b.width,this.b.height),s=0,a=i.length;s<a;++s)Ns(this,(p=i[s]).layer).Gi(t,p,e);this.l||(this.b.style.display="",this.l=!0),Rs(t),1024<this.a.c-this.g&&t.postRenderFunctions.push(this.xk.bind(this)),this.j.b.length&&(t.postRenderFunctions.push(this.B),t.animate=!0),lh(this,"postcompose",t),Fs(this,t),t.postRenderFunctions.push(Is)},r.Ea=function(t,e,o,i,r,n,s){if(this.i.isContextLost())return!1;for(var a=e.viewState,p=e.layerStatesArray,h=p.length-1;0<=h;--h){var l=p[h],u=l.layer;if(gs(l,a.resolution)&&n.call(s,u)&&(l=Ns(this,u).Ea(t,e,o,i,r)))return l}},r.Ei=function(t,e,o,i,r){if(o=!1,this.i.isContextLost())return!1;for(var n=e.viewState,s=e.layerStatesArray,a=s.length-1;0<=a;--a){var p=s[a],h=p.layer;if(gs(p,n.resolution)&&i.call(r,h)&&(o=Ns(this,h).Ue(t,e)))return!0}return o},r.Di=function(t,e,o,i,r){if(this.i.isContextLost())return!1;for(var n=e.viewState,s=e.layerStatesArray,a=s.length-1;0<=a;--a){var p=s[a],h=p.layer;if(gs(p,n.resolution)&&r.call(i,h)&&(p=Ns(this,h).lg(t,e,o,i)))return p}};var ch=["canvas","webgl"];function u(t){ro.call(this);var e=function(t){var e=null,o=(void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget),{}),i={};void 0===t.logo||"boolean"==typeof t.logo&&t.logo?i["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC"]="https://openlayers.org/":"string"==typeof(s=t.logo)?i[s]="":s instanceof HTMLElement?i[U(s).toString()]=s:s&&(O("string"==typeof s.href,44),O("string"==typeof s.src,45),i[s.src]=s.href);s=t.layers instanceof cs?t.layers:new cs({layers:t.layers}),o.layergroup=s,o.target=t.target,o.view=void 0!==t.view?t.view:new h;var r,n,s=Ls,a=(void 0!==t.renderer?(Array.isArray(t.renderer)?r=t.renderer:"string"==typeof t.renderer?r=[t.renderer]:O(!1,46),0<=r.indexOf("dom")&&(r=r.concat(ch))):r=ch,0);for(n=r.length;a<n;++a){var p=r[a];if("canvas"==p){if(ai){s=qs;break}}else if("webgl"==p&&gi){s=ph;break}}return r=void 0!==t.controls?Array.isArray(t.controls)?new ho(t.controls.slice()):(O(t.controls instanceof ho,47),t.controls):Uo(),a=void 0!==t.interactions?Array.isArray(t.interactions)?new ho(t.interactions.slice()):(O(t.interactions instanceof ho,48),t.interactions):hs(),t=void 0!==t.overlays?Array.isArray(t.overlays)?new ho(t.overlays.slice()):(O(t.overlays instanceof ho,49),t.overlays):new ho,{controls:r,interactions:a,keyboardEventTarget:e,logos:i,overlays:t,Up:s,values:o}}(t);this.Cf=void 0!==t.loadTilesWhileAnimating&&t.loadTilesWhileAnimating,this.Df=void 0!==t.loadTilesWhileInteracting&&t.loadTilesWhileInteracting,this.If=void 0!==t.pixelRatio?t.pixelRatio:ni,this.yf=e.logos,this.pa=function(){this.j=void 0,this.Sp.call(this,Date.now())}.bind(this),this.Yb=ms(),this.Jf=ms(),this.ad=0,this.I=this.R=this.T=this.g=this.c=null,this.a=document.createElement("DIV"),this.a.className="ol-viewport"+(li?" ol-touch":""),this.a.style.position="relative",this.a.style.overflow="hidden",this.a.style.width="100%",this.a.style.height="100%",this.a.style.msTouchAction="none",this.a.style.touchAction="none",this.C=document.createElement("DIV"),this.C.className="ol-overlaycontainer",this.a.appendChild(this.C),this.D=document.createElement("DIV"),this.D.className="ol-overlaycontainer-stopevent";for(var o,i="click dblclick mousedown touchstart MSPointerDown pointerdown mousewheel wheel".split(" "),r=0,n=i.length;r<n;++r)d(this.D,i[r],to);for(o in this.a.appendChild(this.D),this.Sa=new Xi(this,t.moveTolerance),bi)d(this.Sa,bi[o],this.Ih,this);this.va=e.keyboardEventTarget,this.u=null,d(this.a,"wheel",this.ld,this),d(this.a,"mousewheel",this.ld,this),this.l=e.controls,this.o=e.interactions,this.v=e.overlays,this.rg={},this.B=new e.Up(this.a,this),this.na=null,this.xb=[],this.$a=new qi(this.ql.bind(this),this.Wl.bind(this)),this.fa={},d(this,so("layergroup"),this.El,this),d(this,so("view"),this.Xl,this),d(this,so("size"),this.Tl,this),d(this,so("target"),this.Vl,this),this.H(e.values),this.l.forEach(function(t){t.setMap(this)},this),d(this.l,"add",function(t){t.element.setMap(this)},this),d(this.l,"remove",function(t){t.element.setMap(null)},this),this.o.forEach(function(t){t.setMap(this)},this),d(this.o,"add",function(t){t.element.setMap(this)},this),d(this.o,"remove",function(t){t.element.setMap(null)},this),this.v.forEach(this.kh,this),d(this.v,"add",function(t){this.kh(t.element)},this),d(this.v,"remove",function(t){var e=t.element.g;void 0!==e&&delete this.rg[e.toString()],t.element.setMap(null)},this)}function fh(t){ro.call(this),this.g=t.id,this.l=void 0===t.insertFirst||t.insertFirst,this.v=void 0===t.stopEvent||t.stopEvent,this.c=document.createElement("DIV"),this.c.className="ol-overlay-container ol-selectable",this.c.style.position="absolute",this.autoPan=void 0!==t.autoPan&&t.autoPan,this.j=t.autoPanAnimation||{},this.o=void 0!==t.autoPanMargin?t.autoPanMargin:20,this.a={re:"",Ie:"",nf:"",vf:"",visible:!0},this.f=null,d(this,so(vh),this.zl,this),d(this,so(bh),this.Jl,this),d(this,so(mh),this.Nl,this),d(this,so(wh),this.Pl,this),d(this,so(xh),this.Ql,this),void 0!==t.element&&this.lj(t.element),this.rj(void 0!==t.offset?t.offset:[0,0]),this.uj(void 0!==t.positioning?t.positioning:"top-left"),void 0!==t.position&&this.Ne(t.position)}function yh(t,e){var o=t.getBoundingClientRect();return[t=o.left+window.pageXOffset,o=o.top+window.pageYOffset,t+e[0],o+e[1]]}function gh(t,e){t.a.visible!==e&&(t.c.style.display=e?"":"none",t.a.visible=e)}function dh(t){var e,o,i,r,n=t.Me(),s=t.Yh();n&&n.c&&s?(s=n.Ja(s),e=n.Ob(),n=t.c.style,r=t.Dh(),o=t.Eh(),gh(t,!0),i=r[0],r=r[1],"bottom-right"==o||"center-right"==o||"top-right"==o?(""!==t.a.Ie&&(t.a.Ie=n.left=""),i=Math.round(e[0]-s[0]-i)+"px",t.a.nf!=i&&(t.a.nf=n.right=i)):(""!==t.a.nf&&(t.a.nf=n.right=""),"bottom-center"!=o&&"center-center"!=o&&"top-center"!=o||(i-=t.c.offsetWidth/2),i=Math.round(s[0]+i)+"px",t.a.Ie!=i&&(t.a.Ie=n.left=i)),"bottom-left"==o||"bottom-center"==o||"bottom-right"==o?(""!==t.a.vf&&(t.a.vf=n.top=""),s=Math.round(e[1]-s[1]-r)+"px",t.a.re!=s&&(t.a.re=n.bottom=s)):(""!==t.a.re&&(t.a.re=n.bottom=""),"center-left"!=o&&"center-center"!=o&&"center-right"!=o||(r-=t.c.offsetHeight/2),s=Math.round(s[1]+r)+"px",t.a.vf!=s&&(t.a.vf=n.top=s))):gh(t,!1)}e(u,ro),(r=u.prototype).kk=function(t){this.l.push(t)},r.lk=function(t){this.o.push(t)},r.ih=function(t){this.Kc().qd().push(t)},r.jh=function(t){this.v.push(t)},r.kh=function(t){var e=t.g;void 0!==e&&(this.rg[e.toString()]=t),t.setMap(this)},r.ka=function(){$e(this.Sa),$e(this.B),He(this.a,"wheel",this.ld,this),He(this.a,"mousewheel",this.ld,this),this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0),this.j&&(cancelAnimationFrame(this.j),this.j=void 0),this.Le(null),ro.prototype.ka.call(this)},r.we=function(t,e,o){if(this.c)return t=this.Wa(t),this.B.Ea(t,this.c,void 0!==(o=o||{}).hitTolerance?o.hitTolerance*this.c.pixelRatio:0,e,null,o.layerFilter||cr,null)},r.Im=function(t,e,o,i,r){if(this.c)return this.B.Di(t,this.c,e,void 0!==o?o:null,i||cr,void 0!==r?r:null)},r.Yl=function(t,e){return!!this.c&&(t=this.Wa(t),this.B.Ei(t,this.c,void 0!==(e=e||{}).hitTolerance?e.hitTolerance*this.c.pixelRatio:0,e.layerFilter||cr,null))},r.Tf=function(t){return this.Wa(this.xe(t))},r.xe=function(t){var e=this.a.getBoundingClientRect();return[(t=t.changedTouches?t.changedTouches[0]:t).clientX-e.left,t.clientY-e.top]},r.ag=function(){return this.get("target")},r.jd=function(){var t=this.ag();return void 0!==t?"string"==typeof t?document.getElementById(t):t:null},r.Wa=function(t){var e=this.c;return e?Ps(e.pixelToCoordinateTransform,t.slice()):null},r.Lk=function(){return this.l},r.fl=function(){return this.v},r.el=function(t){return void 0!==(t=this.rg[t.toString()])?t:null},r.Sk=function(){return this.o},r.Kc=function(){return this.get("layergroup")},r.Xh=function(){return this.Kc().qd()},r.Ja=function(t){var e=this.c;return e?Ps(e.coordinateToPixelTransform,t.slice(0,2)):null},r.Ob=function(){return this.get("size")},r.Z=function(){return this.get("view")},r.sl=function(){return this.a},r.ql=function(t,e,o,i){var r=this.c;return r&&e in r.wantedTiles&&r.wantedTiles[e][t.bb()]?(t=o[0]-r.focus[0],o=o[1]-r.focus[1],65536*Math.log(i)+Math.sqrt(t*t+o*o)/i):1/0},r.ld=function(t,e){t=new _o(e||t.type,this,t),this.Ih(t)},r.Ih=function(t){if(this.c){this.na=t.coordinate,t.frameState=this.c;var e,o=this.o.a;if(!1!==this.b(t))for(e=o.length-1;0<=e;e--){var i=o[e];if(i.c()&&!i.handleEvent(t))break}}},r.Rl=function(){var t,e,o,i=this.c,r=this.$a;for(r.b.length&&(e=t=16,i&&((o=i.viewHints)[0]&&(t=this.Cf?8:0,e=2),o[1]&&(t=this.Df?8:0,e=2)),r.j<t&&(Hi(r),Ji(r,t,e))),t=0,e=(r=this.xb).length;t<e;++t)r[t](this,i);r.length=0},r.Tl=function(){this.render()},r.Vl=function(){var t;if(this.ag()&&(t=this.jd()),this.u){for(var e=0,o=this.u.length;e<o;++e)qe(this.u[e]);this.u=null}t?(t.appendChild(this.a),t=this.va||t,this.u=[d(t,"keydown",this.ld,this),d(t,"keypress",this.ld,this)],this.f||(this.f=this.Ad.bind(this),window.addEventListener("resize",this.f,!1))):(Eo(this.a),this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0)),this.Ad()},r.Wl=function(){this.render()},r.Lh=function(){this.render()},r.Xl=function(){this.T&&(qe(this.T),this.T=null),this.R&&(qe(this.R),this.R=null);var t=this.Z();t&&(this.a.setAttribute("data-view",U(t)),this.T=d(t,"propertychange",this.Lh,this),this.R=d(t,"change",this.Lh,this)),this.render()},r.El=function(){this.I&&(this.I.forEach(qe),this.I=null);var t=this.Kc();t&&(this.I=[d(t,"propertychange",this.render,this),d(t,"change",this.render,this)]),this.render()},r.Tp=function(){this.j&&cancelAnimationFrame(this.j),this.pa()},r.render=function(){void 0===this.j&&(this.j=requestAnimationFrame(this.pa))},r.Mp=function(t){return this.l.remove(t)},r.Np=function(t){return this.o.remove(t)},r.Pp=function(t){return this.Kc().qd().remove(t)},r.Qp=function(t){return this.v.remove(t)},r.Sp=function(t){var e=this.Ob(),o=this.Z(),i=vt(),r=this.c,n=null;if(void 0!==e&&0<e[0]&&0<e[1]&&o&&rn(o)){for(var n=on(o,this.c?this.c.viewHints:void 0),s=this.Kc().Yf(),a={},p=0,h=s.length;p<h;++p)a[U(s[p].layer)]=s[p];p=o.getState(),n={animate:!1,attributions:{},coordinateToPixelTransform:this.Yb,extent:i,focus:this.na||p.center,index:this.ad++,layerStates:a,layerStatesArray:s,logos:Xt({},this.yf),pixelRatio:this.If,pixelToCoordinateTransform:this.Jf,postRenderFunctions:[],size:e,skippedFeatureUids:this.fa,tileQueue:this.$a,time:t,usedTiles:{},viewState:p,viewHints:n,wantedTiles:{}}}n&&(n.extent=Rt(p.center,p.resolution,p.rotation,n.size,i)),this.c=n,this.B.Jg(n),n&&(n.animate&&this.render(),Array.prototype.push.apply(this.xb,n.postRenderFunctions),!r||this.g&&(Ut(this.g)||St(n.extent,this.g))||(this.b(new Jo("movestart",this,r)),this.g=mt(this.g)),!this.g||n.viewHints[0]||n.viewHints[1]||St(n.extent,this.g)||(this.b(new Jo("moveend",this,n)),ut(n.extent,this.g))),this.b(new Jo("postrender",this,n)),setTimeout(this.Rl.bind(this),0)},r.qj=function(t){this.set("layergroup",t)},r.Qg=function(t){this.set("size",t)},r.Le=function(t){this.set("target",t)},r.iq=function(t){this.set("view",t)},r.xj=function(t){t=U(t).toString(),this.fa[t]=!0,this.render()},r.Ad=function(){var t,e=this.jd();e?(t=getComputedStyle(e),this.Qg([e.offsetWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)-parseFloat(t.borderRightWidth),e.offsetHeight-parseFloat(t.borderTopWidth)-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)-parseFloat(t.borderBottomWidth)])):this.Qg(void 0)},r.Cj=function(t){t=U(t).toString(),delete this.fa[t],this.render()},e(fh,ro),(r=fh.prototype).Rd=function(){return this.get(vh)},r.Jm=function(){return this.g},r.Me=function(){return this.get(bh)},r.Dh=function(){return this.get(mh)},r.Yh=function(){return this.get(wh)},r.Eh=function(){return this.get(xh)},r.zl=function(){for(var t=this.c;t.lastChild;)t.removeChild(t.lastChild);(t=this.Rd())&&this.c.appendChild(t)},r.Jl=function(){this.f&&(Eo(this.c),qe(this.f),this.f=null);var t=this.Me();t&&(this.f=d(t,"postrender",this.render,this),dh(this),t=this.v?t.D:t.C,this.l?t.insertBefore(this.c,t.childNodes[0]||null):t.appendChild(this.c))},r.render=function(){dh(this)},r.Nl=function(){dh(this)},r.Pl=function(){var t,e,o,i,r,n,s;dh(this),this.get(wh)&&this.autoPan&&((t=this.Me())&&t.jd()&&(e=yh(t.jd(),t.Ob()),o=(s=this.Rd()).offsetWidth,r=getComputedStyle(s),o+=parseInt(r.marginLeft,10)+parseInt(r.marginRight,10),r=s.offsetHeight,i=getComputedStyle(s),n=yh(s,[o,r=r+(parseInt(i.marginTop,10)+parseInt(i.marginBottom,10))]),s=this.o,yt(e,n)||(o=n[0]-e[0],r=e[2]-n[2],i=n[1]-e[1],n=e[3]-n[3],e=[0,0],o<0?e[0]=o-s:r<0&&(e[0]=Math.abs(r)+s),i<0?e[1]=i-s:n<0&&(e[1]=Math.abs(n)+s),0===e[0]&&0===e[1])||(s=t.Z().wa(),e=[(s=t.Ja(s))[0]+e[0],s[1]+e[1]],t.Z().animate({center:t.Wa(e),duration:this.j.duration,easing:this.j.easing}))))},r.Ql=function(){dh(this)},r.lj=function(t){this.set(vh,t)},r.setMap=function(t){this.set(bh,t)},r.rj=function(t){this.set(mh,t)},r.Ne=function(t){this.set(wh,t)},r.uj=function(t){this.set(xh,t)};var vh="element",bh="map",mh="offset",wh="position",xh="positioning";function Sh(t){function e(t){t=a.Tf(t),p.a.Z().ob(t),window.removeEventListener("mousemove",o),window.removeEventListener("mouseup",e)}function o(t){t=a.Tf({clientX:t.clientX-l.offsetWidth/2,clientY:t.clientY+l.offsetHeight/2}),h.Ne(t)}this.j=void 0===(t=t||{}).collapsed||t.collapsed,this.o=void 0===t.collapsible||t.collapsible,this.o||(this.j=!1);var i=void 0!==t.className?t.className:"ol-overviewmap",r=void 0!==t.tipLabel?t.tipLabel:"Overview map",n=void 0!==t.collapseLabel?t.collapseLabel:"«",s=("string"==typeof n?(this.u=document.createElement("span"),this.u.textContent=n):this.u=n,"string"==typeof(n=void 0!==t.label?t.label:"»")?(this.D=document.createElement("span"),this.D.textContent=n):this.D=n,this.o&&!this.j?this.u:this.D),a=((n=document.createElement("button")).setAttribute("type","button"),n.title=r,n.appendChild(s),d(n,"click",this.an,this),this.C=document.createElement("DIV"),this.C.className="ol-overviewmap-map",this.c=new u({controls:new ho,interactions:new ho,view:t.view})),p=(t.layers&&t.layers.forEach(function(t){a.ih(t)},this),(r=document.createElement("DIV")).className="ol-overviewmap-box",r.style.boxSizing="border-box",this.l=new fh({position:[0,0],positioning:"bottom-left",element:r}),this.c.jh(this.l),(r=document.createElement("div")).className=i+" ol-unselectable ol-control"+(this.j&&this.o?" ol-collapsed":"")+(this.o?"":" ol-uncollapsible"),r.appendChild(this.C),r.appendChild(n),To.call(this,{element:r,render:t.render||Mh,target:t.target}),this),h=this.l,l=this.l.Rd();l.addEventListener("mousedown",function(){window.addEventListener("mousemove",o),window.addEventListener("mouseup",e)})}function Mh(){var t,e,o,i,r=this.a,n=this.c;r.c&&n.c&&(t=r.Ob(),r=r.Z().dd(t),i=n.Ob(),t=n.Z().dd(i),e=n.Ja(Ft(r)),o=n.Ja(Ct(r)),n=Math.abs(e[0]-o[0]),e=Math.abs(e[1]-o[1]),o=i[0],i=i[1],n<.1*o||e<.1*i||.75*o<n||.75*i<e?Ph(this):yt(t,r)||(r=this.c,t=this.a.Z(),r.Z().ob(t.wa()))),Ah(this)}function Ph(t){var e=t.a,o=(t=t.c,e.Ob()),e=e.Z().dd(o);t=t.Z(),Gt(e,1/(.1*Math.pow(2,Math.log(7.5)/Math.LN2/2))),t.Qf(e)}function Ah(t){var e,o,i,r,n,s,a=t.a,p=t.c;a.c&&p.c&&(i=a.Ob(),r=a.Z(),n=p.Z(),p=r.Qa(),a=t.l,e=t.l.Rd(),o=r.dd(i),i=n.Pa(),r=jt(o),n=kt(o),(t=t.a.Z().wa())&&(sr(s=[r[0]-t[0],r[1]-t[1]],p),er(s,t)),a.Ne(s),e&&(e.style.width=Math.abs((r[0]-n[0])/i)+"px",e.style.height=Math.abs((n[1]-r[1])/i)+"px"))}function Eh(t){t.element.classList.toggle("ol-collapsed"),t.j?Ao(t.u,t.D):Ao(t.D,t.u),t.j=!t.j;var e=t.c;t.j||e.c||(e.Ad(),Ph(t),Ye(e,"postrender",function(){Ah(this)},t))}function Th(t){var e=void 0!==(t=t||{}).className?t.className:"ol-scale-line";this.o=document.createElement("DIV"),this.o.className=e+"-inner",this.c=document.createElement("DIV"),this.c.className=e+" ol-unselectable",this.c.appendChild(this.o),this.u=null,this.l=void 0!==t.minWidth?t.minWidth:64,this.j=!1,this.B=void 0,this.D="",To.call(this,{element:this.c,render:t.render||Ch,target:t.target}),d(this,so(Rh),this.T,this),this.I(t.units||"metric")}e(Sh,To),(r=Sh.prototype).setMap=function(t){var e=this.a;t!==e&&(e&&((e=e.Z())&&He(e,so("rotation"),this.Ge,this),this.c.Le(null)),To.prototype.setMap.call(this,t),t&&(this.c.Le(this.C),this.v.push(d(t,"propertychange",this.Kl,this)),this.c.Xh().dc()||this.c.qj(t.Kc()),t=t.Z()))&&(d(t,so("rotation"),this.Ge,this),rn(t)&&(this.c.Ad(),Ph(this)))},r.Kl=function(t){"view"===t.key&&((t=t.oldValue)&&He(t,so("rotation"),this.Ge,this),d(t=this.a.Z(),so("rotation"),this.Ge,this))},r.Ge=function(){this.c.Z().Oe(this.a.Z().Qa())},r.an=function(t){t.preventDefault(),Eh(this)},r.$m=function(){return this.o},r.cn=function(t){this.o!==t&&(this.o=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.j&&Eh(this))},r.bn=function(t){this.o&&this.j!==t&&Eh(this)},r.Zm=function(){return this.j},r.gl=function(){return this.c},e(Th,To);var jh=[1,2,5];function Ch(t){(t=t.frameState)?this.u=t.viewState:this.u=null,Lh(this)}function Lh(t){if(o=t.u){var e=(i=o.projection).sc(),o=ce(i,o.resolution,o.center)*e,e=t.l*o,i="";"degrees"==(n=t.C())?(o/=i=Yt.degrees,e<i/60?(i="″",o*=3600):e<i?(i="′",o*=60):i="°"):"imperial"==n?e<.9144?(i="in",o/=.0254):e<1609.344?(i="ft",o/=.3048):(i="mi",o/=1609.344):"nautical"==n?(o/=1852,i="nm"):"metric"==n?e<.001?(i="μm",o*=1e6):e<1?(i="mm",o*=1e3):e<1e3?i="m":(i="km",o/=1e3):"us"==n?e<.9144?(i="in",o*=39.37):e<1609.344?(i="ft",o/=.30480061):(i="mi",o/=1609.3472):O(!1,33);for(var r,n=3*Math.floor(Math.log(t.l*o)/Math.log(10));;){if(r=jh[(n%3+3)%3]*Math.pow(10,Math.floor(n/3)),e=Math.round(r/o),isNaN(e))return t.c.style.display="none",void(t.j=!1);if(e>=t.l)break;++n}t.D!=(o=r+" "+i)&&(t.o.innerHTML=o,t.D=o),t.B!=e&&(t.o.style.width=e+"px",t.B=e),t.j||(t.c.style.display="",t.j=!0)}else t.j&&(t.c.style.display="none",t.j=!1)}Th.prototype.C=function(){return this.get(Rh)},Th.prototype.T=function(){Lh(this)},Th.prototype.I=function(t){this.set(Rh,t)};var Rh="units";function Ih(t){t=t||{},this.c=void 0,this.j=Nh,this.D=this.l=0,this.I=null,this.na=!1,this.T=void 0!==t.duration?t.duration:200;var e=void 0!==t.className?t.className:"ol-zoomslider",o=document.createElement("button"),i=(o.setAttribute("type","button"),o.className=e+"-thumb ol-unselectable",document.createElement("div"));i.className=e+" ol-unselectable ol-control",i.appendChild(o),this.o=new Ii(i),d(this.o,"pointerdown",this.yl,this),d(this.o,"pointermove",this.wl,this),d(this.o,"pointerup",this.xl,this),d(i,"click",this.vl,this),d(o,"click",to),To.call(this,{element:i,render:t.render||Fh})}e(Ih,To),Ih.prototype.ka=function(){$e(this.o),To.prototype.ka.call(this)};var Nh=0;function Fh(t){var e,o,i,r,n;t.frameState&&(this.na||(e=(r=this.element).offsetWidth,o=r.offsetHeight,n=r.firstElementChild,i=getComputedStyle(n),r=n.offsetWidth+parseFloat(i.marginRight)+parseFloat(i.marginLeft),n=n.offsetHeight+parseFloat(i.marginTop)+parseFloat(i.marginBottom),this.I=[r,n],o<e?(this.j=1,this.D=e-r):(this.j=Nh,this.l=o-n),this.na=!0),(t=t.frameState.viewState.resolution)!==this.c&&(this.c=t,kh(this,t)))}function kh(t,e){e=1-(r=t.a.Z(),o=r.a,i=Math.log(o/r.f)/Math.log(2),function(t){return Math.log(o/t)/Math.log(2)/i}(e));var o,i,r=t.element.firstElementChild;1==t.j?r.style.left=t.D*e+"px":r.style.top=t.l*e+"px"}function Dh(t,e){t=t.a.Z(),o=t.a,t=Math.log(o/t.f)/Math.log(2);var o,e=1-e;return o/Math.pow(2,e*t)}function Oh(t){this.c=(t=t||{}).extent||null;var e=void 0!==t.className?t.className:"ol-zoom-extent",o=void 0!==t.label?t.label:"E",i=void 0!==t.tipLabel?t.tipLabel:"Fit to extent",r=document.createElement("button");r.setAttribute("type","button"),r.title=i,r.appendChild("string"==typeof o?document.createTextNode(o):o),d(r,"click",this.j,this),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(r),To.call(this,{element:o,target:t.target})}function Uh(t){ro.call(this),t=t||{},this.a=null,d(this,so(Wh),this.vm,this),this.gg(void 0!==t.tracking&&t.tracking)}(r=Ih.prototype).setMap=function(t){To.prototype.setMap.call(this,t),t&&t.render()},r.vl=function(t){var e=this.a.Z();t=Dh(this,Q(1===this.j?(t.offsetX-this.I[0]/2)/this.D:(t.offsetY-this.I[1]/2)/this.l,0,1)),e.animate({resolution:e.constrainResolution(t),duration:this.T,easing:Io})},r.yl=function(t){this.u||t.b.target!==this.element.firstElementChild||(nn(this.a.Z(),1,1),this.C=t.clientX,this.B=t.clientY,this.u=!0)},r.wl=function(t){var e;this.u&&(e=this.element.firstElementChild,this.c=Dh(this,Q(1===this.j?(t.clientX-this.C+parseInt(e.style.left,10))/this.D:(t.clientY-this.B+parseInt(e.style.top,10))/this.l,0,1)),this.a.Z().Vc(this.c),kh(this,this.c),this.C=t.clientX,this.B=t.clientY)},r.xl=function(){var t;this.u&&(nn(t=this.a.Z(),1,-1),t.animate({resolution:t.constrainResolution(this.c),duration:this.T,easing:Io}),this.u=!1,this.B=this.C=void 0)},e(Oh,To),Oh.prototype.j=function(t){t.preventDefault(),t=this.a.Z();var e=this.c||t.v.G();t.Qf(e)},e(Uh,ro),(r=Uh.prototype).ka=function(){this.gg(!1),ro.prototype.ka.call(this)},r.ap=function(t){var e;null!==t.alpha&&(e=it(t.alpha),this.set(Gh,e),"boolean"==typeof t.absolute&&t.absolute?this.set(Vh,e):"number"==typeof t.webkitCompassHeading&&-1!=t.webkitCompassAccuracy&&this.set(Vh,it(t.webkitCompassHeading))),null!==t.beta&&this.set(Bh,it(t.beta)),null!==t.gamma&&this.set(Xh,it(t.gamma)),this.s()},r.Fk=function(){return this.get(Gh)},r.Ik=function(){return this.get(Bh)},r.Ok=function(){return this.get(Xh)},r.um=function(){return this.get(Vh)},r.Th=function(){return this.get(Wh)},r.vm=function(){var t;pi&&((t=this.Th())&&!this.a?this.a=d(window,"deviceorientation",this.ap,this):t||null===this.a||(qe(this.a),this.a=null))},r.gg=function(t){this.set(Wh,t)};var Gh="alpha",Bh="beta",Xh="gamma",Vh="heading",Wh="tracking";function Zh(t){this.f=t.opacity,this.l=t.rotateWithView,this.g=t.rotation,this.a=t.scale,this.v=t.snapToPixel}function Kh(t){this.D=this.u=this.c=null,this.Va=void 0!==t.fill?t.fill:null,this.oa=[0,0],this.o=t.points,this.b=void 0!==t.radius?t.radius:t.radius1,this.i=t.radius2,this.j=void 0!==t.angle?t.angle:0,this.Ya=void 0!==t.stroke?t.stroke:null,this.B=this.ra=this.C=null,this.S=t.atlasManager,zh(this,this.S),Zh.call(this,{opacity:1,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,rotation:void 0!==t.rotation?t.rotation:0,scale:1,snapToPixel:void 0===t.snapToPixel||t.snapToPixel})}function zh(t,e){var o,i,r="",n="",s=0,a=null,p=0,h=(t.Ya&&(o=Mo(o=null===(o=t.Ya.a)?Gs:o),void 0===(p=t.Ya.c)&&(p=1),a=t.Ya.i,si||(a=null),void 0===(n=t.Ya.j)&&(n="round"),void 0===(r=t.Ya.f)&&(r="round"),void 0===(s=t.Ya.o)&&(s=10)),2*(t.b+p)+1),r={strokeStyle:o,zj:p,size:h,lineCap:r,lineDash:a,lineJoin:n,miterLimit:s};void 0===e?(i=Po(h,h),t.u=i.canvas,e=h=t.u.width,t.rh(r,i,0,0),t.Va?t.D=t.u:(i=Po(r.size,r.size),t.D=i.canvas,t.qh(r,i,0,0))):(h=Math.round(h),(n=!t.Va)&&(i=t.qh.bind(t,r)),s=t.Ya?(void 0===(s=t.Ya).b&&(s.b="s",s.b=s.a?"string"==typeof s.a?s.b+s.a:s.b+U(s.a).toString():s.b+"-",s.b+=","+(void 0!==s.f?s.f.toString():"-")+","+(s.i?s.i.toString():"-")+","+(void 0!==s.g?s.g:"-")+","+(void 0!==s.j?s.j:"-")+","+(void 0!==s.o?s.o.toString():"-")+","+(void 0!==s.c?s.c.toString():"-")),s.b):"-",a=t.Va?(void 0===(a=t.Va).a&&(a.a=a.b instanceof CanvasPattern||a.b instanceof CanvasGradient?U(a.b).toString():"f"+(a.b?bo(a.b):"-")),a.a):"-",t.c&&s==t.c[1]&&a==t.c[2]&&t.b==t.c[3]&&t.i==t.c[4]&&t.j==t.c[5]&&t.o==t.c[6]||(t.c=["r"+s+a+(void 0!==t.b?t.b.toString():"-")+(void 0!==t.i?t.i.toString():"-")+(void 0!==t.j?t.j.toString():"-")+(void 0!==t.o?t.o.toString():"-"),s,a,t.b,t.i,t.j,t.o]),i=e.add(t.c[0],h,h,t.rh.bind(t,r),i),t.u=i.image,t.oa=[i.offsetX,i.offsetY],e=i.image.width,t.D=n?i.Zl:t.u),t.C=[h/2,h/2],t.ra=[h,h],t.B=[e,e]}function Yh(t){Kh.call(this,{points:1/0,fill:(t=t||{}).fill,radius:t.radius,snapToPixel:t.snapToPixel,stroke:t.stroke,atlasManager:t.atlasManager})}function Hh(t){this.b=void 0!==(t=t||{}).color?t.color:null,this.a=void 0}function qh(t){t=t||{},this.Gc=null,this.Za=tl,void 0!==t.geometry&&this.Ra(t.geometry),this.Va=void 0!==t.fill?t.fill:null,this.M=void 0!==t.image?t.image:null,this.Ya=void 0!==t.stroke?t.stroke:null,this.Ia=void 0!==t.text?t.text:null,this.Fj=t.zIndex}function Jh(t){var e;return"function"!=typeof t&&(e=Array.isArray(t)?t:(O(t instanceof qh,41),[t]),t=function(){return e}),t}(r=Zh.prototype).Ze=function(){return this.f},r.$e=function(){return this.l},r.af=function(){return this.g},r.bf=function(){return this.a},r.Ae=function(){return this.v},r.td=function(t){this.f=t},r.cf=function(t){this.g=t},r.ud=function(t){this.a=t},e(Kh,Zh),(r=Kh.prototype).clone=function(){var t=new Kh({fill:this.Fa()?this.Fa().clone():void 0,points:this.o,radius:this.b,radius2:this.i,angle:this.j,snapToPixel:this.v,stroke:this.Ga()?this.Ga().clone():void 0,rotation:this.g,rotateWithView:this.l,atlasManager:this.S});return t.td(this.f),t.ud(this.a),t},r.Hc=function(){return this.C},r.Pi=function(){return this.j},r.Fa=function(){return this.Va},r.qg=function(){return this.D},r.Y=function(){return this.u},r.ye=function(){return this.B},r.Ye=function(){return 2},r.Oc=function(){return this.oa},r.Qi=function(){return this.o},r.Ri=function(){return this.b},r.Fh=function(){return this.i},r.ic=function(){return this.ra},r.Ga=function(){return this.Ya},r.Nh=function(){},r.load=function(){},r.Bj=function(){},r.rh=function(t,e,o,i){e.setTransform(1,0,0,1,0,0),e.translate(o,i),e.beginPath();var r=this.o;if(1/0===r)e.arc(t.size/2,t.size/2,this.b,0,2*Math.PI,!0);else{var n=void 0!==this.i?this.i:this.b;for(n!==this.b&&(r*=2),o=0;o<=r;o++){i=2*o*Math.PI/r-Math.PI/2+this.j;var s=o%2?n:this.b;e.lineTo(t.size/2+s*Math.cos(i),t.size/2+s*Math.sin(i))}}this.Va&&(o=this.Va.b,e.fillStyle=Mo(o=null===o?Os:o),e.fill()),this.Ya&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.zj,t.lineDash&&e.setLineDash(t.lineDash),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke()),e.closePath()},r.qh=function(t,e,o,i){var r;if(e.setTransform(1,0,0,1,0,0),e.translate(o,i),e.beginPath(),1/0===(o=this.o))e.arc(t.size/2,t.size/2,this.b,0,2*Math.PI,!0);else for((i=void 0!==this.i?this.i:this.b)!==this.b&&(o*=2),r=0;r<=o;r++){var n=2*r*Math.PI/o-Math.PI/2+this.j,s=r%2?i:this.b;e.lineTo(t.size/2+s*Math.cos(n),t.size/2+s*Math.sin(n))}e.fillStyle=Os,e.fill(),this.Ya&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.zj,t.lineDash&&e.setLineDash(t.lineDash),e.stroke()),e.closePath()},e(Yh,Kh),Yh.prototype.clone=function(){var t=new Yh({fill:this.Fa()?this.Fa().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,radius:this.b,snapToPixel:this.v,atlasManager:this.S});return t.td(this.f),t.ud(this.a),t},Yh.prototype.Uc=function(t){this.b=t,zh(this,this.S)},Hh.prototype.clone=function(){var t=this.b;return new Hh({color:t&&t.slice?t.slice():t||void 0})},Hh.prototype.i=function(){return this.b},Hh.prototype.c=function(t){this.b=t,this.a=void 0},(r=qh.prototype).clone=function(){var t=this.V();return new qh({geometry:t=t&&t.clone?t.clone():t,fill:this.Fa()?this.Fa().clone():void 0,image:this.Y()?this.Y().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,text:this.Na()?this.Na().clone():void 0,zIndex:this.Ba()})},r.V=function(){return this.Gc},r.Pk=function(){return this.Za},r.Fa=function(){return this.Va},r.pf=function(t){this.Va=t},r.Y=function(){return this.M},r.Og=function(t){this.M=t},r.Ga=function(){return this.Ya},r.qf=function(t){this.Ya=t},r.Na=function(){return this.Ia},r.xd=function(t){this.Ia=t},r.Ba=function(){return this.Fj},r.Ra=function(e){this.Za="function"==typeof e?e:"string"==typeof e?function(t){return t.get(e)}:e?function(){return e}:tl,this.Gc=e},r.Vb=function(t){this.Fj=t};var _h=null;function $h(){var t,e;return _h||(t=new Hh({color:"rgba(255,255,255,0.4)"}),e=new hp({color:"#3399CC",width:1.25}),_h=[new qh({image:new Yh({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]),_h}function Qh(){var t={},e=[255,255,255,1],o=[0,153,255,1];return t.Polygon=[new qh({fill:new Hh({color:[255,255,255,.5]})})],t.MultiPolygon=t.Polygon,t.LineString=[new qh({stroke:new hp({color:e,width:5})}),new qh({stroke:new hp({color:o,width:3})})],t.MultiLineString=t.LineString,t.Circle=t.Polygon.concat(t.LineString),t.Point=[new qh({image:new Yh({radius:6,fill:new Hh({color:o}),stroke:new hp({color:e,width:1.5})}),zIndex:1/0})],t.MultiPoint=t.Point,t.GeometryCollection=t.Polygon.concat(t.LineString,t.Point),t}function tl(t){return t.V()}function x(t){ro.call(this),this.a=void 0,this.c="geometry",this.g=null,this.j=void 0,this.f=null,d(this,so(this.c),this.Ee,this),void 0!==t&&(t instanceof yr||!t?this.Ra(t):this.H(t))}e(x,ro),(r=x.prototype).clone=function(){var t=new x(this.N()),e=(t.Tc(this.c),this.V());return e&&t.Ra(e.clone()),(e=this.g)&&t.hg(e),t},r.V=function(){return this.get(this.c)},r.wm=function(){return this.a},r.Qk=function(){return this.c},r.xm=function(){return this.g},r.Lc=function(){return this.j},r.Al=function(){this.s()},r.Ee=function(){this.f&&(qe(this.f),this.f=null);var t=this.V();t&&(this.f=d(t,"change",this.Al,this)),this.s()},r.Ra=function(t){this.set(this.c,t)},r.hg=function(t){this.j=(this.g=t)?function(e){var t;{var o;t="function"==typeof e?2==e.length?function(t){return e(this,t)}:e:(o=Array.isArray(e)?e:(O(e instanceof qh,41),[e]),function(){return o})}return t}(t):void 0,this.s()},r.jc=function(t){this.a=t,this.s()},r.Tc=function(t){He(this,so(this.c),this.Ee,this),this.c=t,d(this,so(this.c),this.Ee,this),this.Ee()};var el=document.implementation.createDocument("","",null);function ol(t,e){return el.createElementNS(t,e)}function il(t,e){return function t(e,o,i){if(e.nodeType==Node.CDATA_SECTION_NODE||e.nodeType==Node.TEXT_NODE)o?i.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):i.push(e.nodeValue);else for(e=e.firstChild;e;e=e.nextSibling)t(e,o,i);return i}(t,e,[]).join("")}function rl(t){return t instanceof Document}function nl(t){return t instanceof Node}function sl(t){return(new DOMParser).parseFromString(t,"application/xml")}function al(o,i){return function(t,e){void 0!==(t=o.call(i,t,e))&&X(e[e.length-1],t)}}function pl(o,i){return function(t,e){void 0!==(t=o.call(void 0!==i?i:this,t,e))&&e[e.length-1].push(t)}}function hl(o,i){return function(t,e){void 0!==(t=o.call(void 0!==i?i:this,t,e))&&(e[e.length-1]=t)}}function ll(i){return function(t,e){var o=i.call(this,t,e);void 0!==o&&(e=e[e.length-1],((t=t.localName)in e?e[t]:e[t]=[]).push(o))}}function o(i,r){return function(t,e){var o=i.call(this,t,e);void 0!==o&&(e[e.length-1][void 0!==r?r:t.localName]=o)}}function c(i,r){return function(t,e,o){i.call(void 0!==r?r:this,t,e,o),o[o.length-1].node.appendChild(t)}}function ul(r){var n,s;return function(t,e,o){var i;n||(n={},(i={})[t.localName]=r,n[t.namespaceURI]=i,s=cl(t.localName)),dl(n,s,e,o)}}function cl(i,r){return function(t,e,o){return t=e[e.length-1].node,void 0===(e=i)&&(e=o),ol(o=void 0===(o=r)?t.namespaceURI:r,e)}}var fl=cl();function yl(t,e){for(var o=e.length,i=Array(o),r=0;r<o;++r)i[r]=t[e[r]];return i}function l(t,e,o){o=void 0!==o?o:{};for(var i=0,r=t.length;i<r;++i)o[t[i]]=e;return o}function gl(t,e,o,i){for(e=e.firstElementChild;e;e=e.nextElementSibling){var r=t[e.namespaceURI];void 0!==r&&(r=r[e.localName])&&r.call(i,e,o)}}function g(t,e,o,i,r){return i.push(t),gl(e,o,i,r),i.pop()}function dl(t,e,o,i,r,n){for(var s,a,p=(void 0!==r?r:o).length,h=0;h<p;++h)void 0!==(s=o[h])&&(void 0!==(a=e.call(n,s,i,void 0!==r?r[h]:void 0))&&t[a.namespaceURI][a.localName].call(n,a,s,i))}function vl(t,e,o,i,r,n,s){r.push(t),dl(e,o,i,r,n,s),r.pop()}function bl(r,n,s,a){return function(t,e,o){var i=new XMLHttpRequest;i.open("GET","function"==typeof r?r(t,e,o):r,!0),"arraybuffer"==n.U()&&(i.responseType="arraybuffer"),i.onload=function(){var t,e;!i.status||200<=i.status&&i.status<300?("json"==(t=n.U())||"text"==t?e=i.responseText:"xml"==t?(e=i.responseXML)||(e=sl(i.responseText)):"arraybuffer"==t&&(e=i.response),e?s.call(this,n.Oa(e,{featureProjection:o}),n.kb(e)):a.call(this)):a.call(this)}.bind(this),i.onerror=function(){a.call(this)}.bind(this),i.send()}}function ml(t,e){return bl(t,e,function(t){this.cd(t)},Y)}function wl(){this.f=this.defaultDataProjection=null}function xl(t,e,o){var i;return o&&(i={dataProjection:o.dataProjection||t.kb(e),featureProjection:o.featureProjection}),Sl(t,i)}function Sl(t,e){return Xt({dataProjection:t.defaultDataProjection,featureProjection:t.f},e)}function Ml(t,e,o){var i,r=o?v(o.featureProjection):null,n=o?v(o.dataProjection):null,n=r&&n&&!be(r,n)?t instanceof yr?(e?t.clone():t).tb(e?r:n,e?n:r):Pe(t,n,r):t;return e&&o&&void 0!==o.decimals&&(i=Math.pow(10,o.decimals),(n=n===t?n.clone():n).Dc(function(t){for(var e=0,o=t.length;e<o;++e)t[e]=Math.round(t[e]*i)/i;return t})),n}function Pl(){wl.call(this)}function Al(t){return"string"==typeof t?(t=JSON.parse(t))?t:null:null!==t?t:null}function El(t,e,o,i,r,n){var s=NaN,a=NaN;if(1===(p=(o-e)/i))s=t[e],a=t[e+1];else if(2==p)s=(1-r)*t[e]+r*t[e+i],a=(1-r)*t[e+1]+r*t[e+i+1];else if(p){for(var a=t[e],p=t[e+1],h=0,s=[0],l=e+i;l<o;l+=i){var u=t[l],c=t[l+1],h=h+Math.sqrt((u-a)*(u-a)+(c-p)*(c-p));s.push(h),a=u,p=c}for(o=r*h,p=0,h=s.length,l=!1;p<h;)(a=+G(s[r=p+(h-p>>1)],o))<0?p=r+1:(h=r,l=!a);a=(r=l?p:~p)<0?(o=(o-s[-r-2])/(s[-r-1]-s[-r-2]),s=nt(t[e+=(-r-2)*i],t[e+i],o),nt(t[e+1],t[e+i+1],o)):(s=t[e+r*i],t[e+r*i+1])}return n?(n[0]=s,n[1]=a,n):[s,a]}function Tl(t,e,o,i,r,n){if(o==e)return null;if(r<t[e+i-1])return n?((o=t.slice(e,e+i))[i-1]=r,o):null;if(t[o-1]<r)return n?((o=t.slice(o-i,o))[i-1]=r,o):null;if(r==t[e+i-1])return t.slice(e,e+i);for(e/=i,o/=i;e<o;)r<t[((n=e+o>>1)+1)*i-1]?o=n:e=n+1;if(r==(o=t[e*i-1]))return t.slice((e-1)*i,(e-1)*i+i);var s;for(n=(r-o)/(t[(e+1)*i-1]-o),o=[],s=0;s<i-1;++s)o.push(nt(t[(e-1)*i+s],t[e*i+s],n));return o.push(r),o}function S(t,e){b.call(this),this.c=null,this.u=this.D=this.j=-1,this.ma(t,e)}function jl(t){return t.j!=t.i&&(t.c=t.wh(.5,t.c),t.j=t.i),t.c}function M(t,e){b.call(this),this.c=[],this.j=this.u=-1,this.ma(t,e)}function Cl(t){for(var e=[],o=t.A,i=0,r=t.c,n=(t=t.a,0),s=r.length;n<s;++n){var a=r[n];X(e,i=El(o,i,a,t,.5)),i=a}return e}function Ll(t,e){for(var o=t.ja,i=[],r=[],n=0,s=e.length;n<s;++n){var a=e[n];n||(o=a.ja),X(i,a.ga()),r.push(i.length)}t.ba(o,i,r)}function P(t,e){b.call(this),this.ma(t,e)}function f(t,e){b.call(this),this.c=[],this.u=-1,this.D=null,this.I=this.C=this.B=-1,this.j=null,this.ma(t,e)}function Rl(t){if(t.u!=t.i){var e=t.A,o=t.c,i=t.a,r=0,n=[],s=0;for(h=o.length;s<h;++s){var a=o[s],r=xt(e,r,a[0],i);n.push((r[0]+r[2])/2,(r[1]+r[3])/2),r=a[a.length-1]}for(e=Il(t),o=t.c,i=t.a,h=[],a=s=0,r=o.length;a<r;++a)var p=o[a],h=Ur(e,s,p,i,n,2*a,h),s=p[p.length-1];t.D=h,t.u=t.i}return t.D}function Il(t){if(t.I!=t.i){var e=t.A;t:{for(var o=t.c,i=0,r=o.length;i<r;++i)if(!Wr(e,o[i],t.a,void 0)){o=!1;break t}o=!0}o?t.j=e:(t.j=e.slice(),t.j.length=Kr(t.j,t.c,t.a)),t.I=t.i}return t.j}function Nl(t,e,o,i){br(t,e,o),t.c=i,t.s()}function Fl(t,e){for(var o=t.ja,i=[],r=[],n=0,s=e.length;n<s;++n){for(var a=e[n],p=(n||(o=a.ja),i.length),h=a.Bb(),l=0,u=h.length;l<u;++l)h[l]+=p;X(i,a.ga()),r.push(h)}Nl(t,o,i,r)}function kl(t){t=t||{},wl.call(this),this.b=t.geometryName}function Dl(t,e){if(!t)return null;if("number"==typeof t.x&&"number"==typeof t.y)var o="Point";else if(t.points)o="MultiPoint";else if(t.paths)o=1===t.paths.length?"LineString":"MultiLineString";else if(t.rings){for(var i=t.rings,r=Ol(t),n=[],s=[],o=[],a=0,p=i.length;a<p;++a)n.length=0,jr(n,0,i[a],r.length),Vr(n,0,n.length,r.length)?s.push([i[a]]):o.push(i[a]);for(;o.length;){for(i=o.shift(),r=!1,a=s.length-1;0<=a;a--)if(yt(new Fr(s[a][0]).G(),new Fr(i).G())){s[a].push(i),r=!0;break}r||s.push([i.reverse()])}t=Xt({},t),1===s.length?(o="Polygon",t.rings=s[0]):(o="MultiPolygon",t.rings=s)}return Ml((0,Gl[o])(t),!1,e)}function Ol(t){var e="XY";return!0===t.hasZ&&!0===t.hasM?e="XYZM":!0===t.hasZ?e="XYZ":!0===t.hasM&&(e="XYM"),e}function Ul(t){return{hasZ:"XYZ"===(t=t.ja)||"XYZM"===t,hasM:"XYM"===t||"XYZM"===t}}e(Pl,wl),(r=Pl.prototype).U=function(){return"json"},r.Tb=function(t,e){return this.Rc(Al(t),xl(this,t,e))},r.Oa=function(t,e){return this.yg(Al(t),xl(this,t,e))},r.Sc=function(t,e){return this.Cg(Al(t),xl(this,t,e))},r.kb=function(t){return this.Fg(Al(t))},r.Bd=function(t,e){return JSON.stringify(this.Zc(t,e))},r.Wb=function(t,e){return JSON.stringify(this.he(t,e))},r.$c=function(t,e){return JSON.stringify(this.je(t,e))},e(S,b),(r=S.prototype).mk=function(t){this.A?X(this.A,t):this.A=t.slice(),this.s()},r.clone=function(){var t=new S(null);return t.ba(this.ja,this.A.slice()),t},r.Kb=function(t,e,o,i){return i<ct(this.G(),t,e)?i:(this.u!=this.i&&(this.D=Math.sqrt(Mr(this.A,0,this.A.length,this.a,0)),this.u=this.i),Ar(this.A,0,this.A.length,this.a,this.D,!1,t,e,o,i))},r.Ck=function(t,e){return Gr(this.A,0,this.A.length,this.a,t,e)},r.nn=function(t,e){return"XYM"!=this.ja&&"XYZM"!=this.ja?null:Tl(this.A,0,this.A.length,this.a,t,void 0!==e&&e)},r.X=function(){return Lr(this.A,0,this.A.length,this.a)},r.wh=function(t,e){return El(this.A,0,this.A.length,this.a,t,e)},r.pn=function(){for(var t=this.A,e=this.a,o=t[0],i=t[1],r=0,n=0+e;n<this.A.length;n+=e)var s=t[n],a=t[n+1],r=r+Math.sqrt((s-o)*(s-o)+(a-i)*(a-i)),o=s,i=a;return r},r.hd=function(t){var e=[];return e.length=Ir(this.A,0,this.A.length,this.a,t,e,0),(t=new S(null)).ba("XY",e),t},r.U=function(){return"LineString"},r.Xa=function(t){return Br(this.A,0,this.A.length,this.a,t)},r.ma=function(t,e){t?(mr(this,e,t,1),this.A||(this.A=[]),this.A.length=jr(this.A,0,t,this.a),this.s()):this.ba("XY",null)},r.ba=function(t,e){br(this,t,e),this.s()},e(M,b),(r=M.prototype).nk=function(t){this.A?X(this.A,t.ga().slice()):this.A=t.ga().slice(),this.c.push(this.A.length),this.s()},r.clone=function(){var t=new M(null);return t.ba(this.ja,this.A.slice(),this.c.slice()),t},r.Kb=function(t,e,o,i){return i<ct(this.G(),t,e)?i:(this.j!=this.i&&(this.u=Math.sqrt(Pr(this.A,0,this.c,this.a,0)),this.j=this.i),Er(this.A,0,this.c,this.a,this.u,!1,t,e,o,i))},r.rn=function(t,e,o){if(("XYM"==this.ja||"XYZM"==this.ja)&&this.A.length){var i=this.A,r=this.c,n=this.a,s=t,a=void 0!==e&&e,p=void 0!==o&&o,h=0;if(p)return Tl(i,h,r[r.length-1],n,s,a);if(s<i[n-1])return a?((i=i.slice(0,n))[n-1]=s,i):null;if(i[i.length-1]<s)return a?((i=i.slice(i.length-n))[n-1]=s,i):null;for(a=0,p=r.length;a<p;++a){var l=r[a];if(h!=l){if(s<i[h+n-1])break;if(s<=i[l-1])return Tl(i,h,l,n,s,!1);h=l}}}return null},r.X=function(){return Rr(this.A,0,this.c,this.a)},r.Bb=function(){return this.c},r.Yk=function(t){if(t<0||this.c.length<=t)return null;var e=new S(null);return e.ba(this.ja,this.A.slice(t?this.c[t-1]:0,this.c[t])),e},r.gd=function(){for(var t=this.A,e=this.c,o=this.ja,i=[],r=0,n=0,s=e.length;n<s;++n){var a=e[n],p=new S(null);p.ba(o,t.slice(r,a)),i.push(p),r=a}return i},r.hd=function(t){for(var e=[],o=[],i=this.A,r=this.c,n=this.a,s=0,a=0,p=0,h=r.length;p<h;++p){var l=r[p],a=Ir(i,s,l,n,t,e,a);o.push(a),s=l}return e.length=a,(t=new M(null)).ba("XY",e,o),t},r.U=function(){return"MultiLineString"},r.Xa=function(t){t:{for(var e=this.A,o=this.c,i=this.a,r=0,n=0,s=o.length;n<s;++n){if(Br(e,r,o[n],i,t)){t=!0;break t}r=o[n]}t=!1}return t},r.ma=function(t,e){t?(mr(this,e,t,2),this.A||(this.A=[]),t=Cr(this.A,0,t,this.a,this.c),this.A.length=t.length?t[t.length-1]:0,this.s()):this.ba("XY",null,this.c)},r.ba=function(t,e,o){br(this,t,e),this.c=o,this.s()},e(P,b),(r=P.prototype).qk=function(t){this.A?X(this.A,t.ga()):this.A=t.ga().slice(),this.s()},r.clone=function(){var t=new P(null);return t.ba(this.ja,this.A.slice()),t},r.Kb=function(t,e,o,i){if(!(i<ct(this.G(),t,e)))for(var r=this.A,n=this.a,s=0,a=r.length;s<a;s+=n){var p=ot(t,e,r[s],r[s+1]);if(p<i){for(i=p,p=0;p<n;++p)o[p]=r[s+p];o.length=n}}return i},r.X=function(){return Lr(this.A,0,this.A.length,this.a)},r.il=function(t){var e=this.A?this.A.length/this.a:0;return t<0||e<=t?null:((e=new m(null)).ba(this.ja,this.A.slice(t*this.a,(t+1)*this.a)),e)},r.Zd=function(){for(var t=this.A,e=this.ja,o=this.a,i=[],r=0,n=t.length;r<n;r+=o){var s=new m(null);s.ba(e,t.slice(r,r+o)),i.push(s)}return i},r.U=function(){return"MultiPoint"},r.Xa=function(t){for(var e=this.A,o=this.a,i=0,r=e.length;i<r;i+=o)if(gt(t,e[i],e[i+1]))return!0;return!1},r.ma=function(t,e){t?(mr(this,e,t,1),this.A||(this.A=[]),this.A.length=jr(this.A,0,t,this.a),this.s()):this.ba("XY",null)},r.ba=function(t,e){br(this,t,e),this.s()},e(f,b),(r=f.prototype).rk=function(t){if(this.A)for(var e=this.A.length,o=(X(this.A,t.ga()),0),i=(t=t.Bb().slice()).length;o<i;++o)t[o]+=e;else this.A=t.ga().slice(),t=t.Bb().slice(),this.c.push();this.c.push(t),this.s()},r.clone=function(){for(var t=new f(null),e=this.c.length,o=Array(e),i=0;i<e;++i)o[i]=this.c[i].slice();return Nl(t,this.ja,this.A.slice(),o),t},r.Kb=function(t,e,o,i){if(!(i<ct(this.G(),t,e))){if(this.C!=this.i){for(var r=this.c,n=0,s=0,a=0,p=r.length;a<p;++a)var h=r[a],s=Pr(this.A,n,h,this.a,s),n=h[h.length-1];this.B=Math.sqrt(s),this.C=this.i}r=Il(this),n=this.c,s=this.a;for(var a=this.B,h=[NaN,NaN],l=p=0,u=n.length;l<u;++l){var c=n[l];i=Er(r,p,c,s,a,!0,t,e,o,i,h),p=c[c.length-1]}}return i},r.Mc=function(t,e){t:{var o=Il(this),i=this.c,r=0;if(i.length)for(var n=0,s=i.length;n<s;++n){var a=i[n];if(Or(o,r,a,this.a,t,e)){t=!0;break t}r=a[a.length-1]}t=!1}return t},r.sn=function(){for(var t=Il(this),e=this.c,o=0,i=0,r=0,n=e.length;r<n;++r)var s=e[r],i=i+xr(t,o,s,this.a),o=s[s.length-1];return i},r.X=function(t){void 0!==t?Kr(e=Il(this).slice(),this.c,this.a,t):e=this.A,t=e,e=this.c;for(var e,o=this.a,i=0,r=[],n=0,s=0,a=e.length;s<a;++s){var p=e[s];r[n++]=Rr(t,i,p,o,r[n]),i=p[p.length-1]}return r.length=n,r},r.Uk=function(){var t=new P(null);return t.ba("XY",Rl(this).slice()),t},r.hd=function(t){for(var e=[],o=[],i=this.A,r=this.c,n=this.a,s=(t=Math.sqrt(t),0),a=0,p=0,h=r.length;p<h;++p){var l=r[p],u=[],a=Nr(i,s,l,n,t,e,a,u);o.push(u),s=l[l.length-1]}return e.length=a,Nl(i=new f(null),"XY",e,o),i},r.jl=function(t){if(t<0||this.c.length<=t)return null;e=t?(e=this.c[t-1])[e.length-1]:0;var e,o=(t=this.c[t].slice())[t.length-1];if(e)for(var i=0,r=t.length;i<r;++i)t[i]-=e;return(i=new w(null)).ba(this.ja,this.A.slice(e,o),t),i},r.Td=function(){for(var t=this.ja,e=this.A,o=this.c,i=[],r=0,n=0,s=o.length;n<s;++n){var a=o[n].slice(),p=a[a.length-1];if(r)for(var h=0,l=a.length;h<l;++h)a[h]-=r;(h=new w(null)).ba(t,e.slice(r,p),a),i.push(h),r=p}return i},r.U=function(){return"MultiPolygon"},r.Xa=function(t){t:{for(var e=Il(this),o=this.c,i=this.a,r=0,n=0,s=o.length;n<s;++n){var a=o[n];if(Xr(e,r,a,i,t)){t=!0;break t}r=a[a.length-1]}t=!1}return t},r.ma=function(t,e){if(t){mr(this,e,t,3),this.A||(this.A=[]),e=this.A;for(var o=this.a,i=0,r=(r=this.c)||[],n=0,s=0,a=t.length;s<a;++s)i=Cr(e,i,t[s],o,r[n]),i=(r[n++]=i)[i.length-1];r.length=n,r.length?(t=r[r.length-1],this.A.length=t.length?t[t.length-1]:0):this.A.length=0,this.s()}else Nl(this,"XY",null,this.c)},e(kl,Pl);var Gl={Point:function(t){return void 0!==t.m&&void 0!==t.z?new m([t.x,t.y,t.z,t.m],"XYZM"):void 0!==t.z?new m([t.x,t.y,t.z],"XYZ"):void 0!==t.m?new m([t.x,t.y,t.m],"XYM"):new m([t.x,t.y])},LineString:function(t){return new S(t.paths[0],Ol(t))},Polygon:function(t){return new w(t.rings,Ol(t))},MultiPoint:function(t){return new P(t.points,Ol(t))},MultiLineString:function(t){return new M(t.paths,Ol(t))},MultiPolygon:function(t){return new f(t.rings,Ol(t))}},Bl={Point:function(t){var e,o=t.X();return"XYZ"===(t=t.ja)?e={x:o[0],y:o[1],z:o[2]}:"XYM"===t?e={x:o[0],y:o[1],m:o[2]}:"XYZM"===t?e={x:o[0],y:o[1],z:o[2],m:o[3]}:"XY"===t?e={x:o[0],y:o[1]}:O(!1,34),e},LineString:function(t){var e=Ul(t);return{hasZ:e.hasZ,hasM:e.hasM,paths:[t.X()]}},Polygon:function(t){var e=Ul(t);return{hasZ:e.hasZ,hasM:e.hasM,rings:t.X(!1)}},MultiPoint:function(t){var e=Ul(t);return{hasZ:e.hasZ,hasM:e.hasM,points:t.X()}},MultiLineString:function(t){var e=Ul(t);return{hasZ:e.hasZ,hasM:e.hasM,paths:t.X()}},MultiPolygon:function(t){var e=Ul(t);t=t.X(!1);for(var o=[],i=0;i<t.length;i++)for(var r=t[i].length-1;0<=r;r--)o.push(t[i][r]);return{hasZ:e.hasZ,hasM:e.hasM,rings:o}}};function Xl(t,e){return(0,Bl[t.U()])(Ml(t,!0,e),e)}function Vl(t){this.kc=t}function Wl(t,e){this.kc=t,this.b=Array.prototype.slice.call(arguments,1),O(2<=this.b.length,57)}function Zl(t){var e=["And"].concat(Array.prototype.slice.call(arguments));Wl.apply(this,e)}function Kl(t,e,o){this.kc="BBOX",this.geometryName=t,this.extent=e,this.srsName=o}function zl(t,e){this.kc=t,this.b=e}function Yl(t,e,o){zl.call(this,"During",t),this.a=e,this.i=o}function Hl(t,e,o,i){zl.call(this,t,e),this.i=o,this.a=i}function ql(t,e,o){Hl.call(this,"PropertyIsEqualTo",t,e,o)}function Jl(t,e){Hl.call(this,"PropertyIsGreaterThan",t,e)}function _l(t,e){Hl.call(this,"PropertyIsGreaterThanOrEqualTo",t,e)}function $l(t,e,o,i){this.kc=t,this.geometryName=e||"the_geom",this.geometry=o,this.srsName=i}function Ql(t,e,o){$l.call(this,"Intersects",t,e,o)}function tu(t,e,o){zl.call(this,"PropertyIsBetween",t),this.a=e,this.i=o}function eu(t,e,o,i,r,n){zl.call(this,"PropertyIsLike",t),this.c=e,this.g=void 0!==o?o:"*",this.f=void 0!==i?i:".",this.i=void 0!==r?r:"!",this.a=n}function ou(t){zl.call(this,"PropertyIsNull",t)}function iu(t,e){Hl.call(this,"PropertyIsLessThan",t,e)}function ru(t,e){Hl.call(this,"PropertyIsLessThanOrEqualTo",t,e)}function nu(t){this.kc="Not",this.condition=t}function su(t,e,o){Hl.call(this,"PropertyIsNotEqualTo",t,e,o)}function au(t){var e=["Or"].concat(Array.prototype.slice.call(arguments));Wl.apply(this,e)}function pu(t,e,o){$l.call(this,"Within",t,e,o)}function hu(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(Zl,e))}function lu(t,e,o){return new Kl(t,e,o)}function uu(t){yr.call(this),this.a=t||null,yu(this)}function cu(t){for(var e=[],o=0,i=t.length;o<i;++o)e.push(t[o].clone());return e}function fu(t){if(t.a)for(var e=0,o=t.a.length;e<o;++e)He(t.a[e],"change",t.s,t)}function yu(t){if(t.a)for(var e=0,o=t.a.length;e<o;++e)d(t.a[e],"change",t.s,t)}function gu(t){t=t||{},wl.call(this),this.defaultDataProjection=v(t.defaultDataProjection||"EPSG:4326"),t.featureProjection&&(this.f=v(t.featureProjection)),this.b=t.geometryName}function du(t,e){return t?Ml((0,bu[t.type])(t),!1,e):null}function vu(t,e){return(0,mu[t.U()])(Ml(t,!0,e),e)}(r=kl.prototype).Rc=function(t,e){var o=Dl(t.geometry,e),i=new x;return this.b&&i.Tc(this.b),i.Ra(o),e&&e.dg&&t.attributes[e.dg]&&i.jc(t.attributes[e.dg]),t.attributes&&i.H(t.attributes),i},r.yg=function(t,e){if(e=e||{},t.features){var o,i=[],r=t.features;for(e.dg=t.objectIdFieldName,t=0,o=r.length;t<o;++t)i.push(this.Rc(r[t],e));return i}return[this.Rc(t,e)]},r.Cg=Dl,r.Fg=function(t){return t.spatialReference&&t.spatialReference.wkid?v("EPSG:"+t.spatialReference.wkid):null},r.je=function(t,e){return Xl(t,Sl(this,e))},r.Zc=function(t,e){e=Sl(this,e);var o={},i=t.V();return i&&(o.geometry=Xl(i,e)),delete(i=t.N())[t.c],o.attributes=Zt(i)?{}:i,e&&e.featureProjection&&(o.spatialReference={wkid:v(e.featureProjection).mb.split(":").pop()}),o},r.he=function(t,e){e=Sl(this,e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(this.Zc(t[i],e));return{features:o}},e(Wl,Vl),e(Zl,Wl),e(Kl,Vl),e(zl,Vl),e(Yl,zl),e(Hl,zl),e(ql,Hl),e(Jl,Hl),e(_l,Hl),e($l,Vl),e(Ql,$l),e(tu,zl),e(eu,zl),e(ou,zl),e(iu,Hl),e(ru,Hl),e(nu,Vl),e(su,Hl),e(au,Wl),e(pu,$l),e(uu,yr),(r=uu.prototype).clone=function(){var t=new uu(null);return t.oj(this.a),t},r.Kb=function(t,e,o,i){if(!(i<ct(this.G(),t,e)))for(var r=this.a,n=0,s=r.length;n<s;++n)i=r[n].Kb(t,e,o,i);return i},r.Mc=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)if(o[i].Mc(t,e))return!0;return!1},r.se=function(t){mt(t);for(var e=this.a,o=0,i=e.length;o<i;++o)Mt(t,e[o].G());return t},r.Vf=function(){return cu(this.a)},r.Vd=function(t){if(this.o!=this.i&&(Vt(this.f),this.g=0,this.o=this.i),!(t<0||this.g&&t<this.g)){var e=t.toString();if(this.f.hasOwnProperty(e))return this.f[e];for(var o=[],i=this.a,r=!1,n=0,s=i.length;n<s;++n){var a=i[n],p=a.Vd(t);o.push(p),p!==a&&(r=!0)}if(r)return fu(t=new uu(null)),t.a=o,yu(t),t.s(),this.f[e]=t;this.g=t}return this},r.U=function(){return"GeometryCollection"},r.Xa=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)if(e[o].Xa(t))return!0;return!1},r.rotate=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)o[i].rotate(t,e);this.s()},r.scale=function(t,e,o){o=o||Lt(this.G());for(var i=this.a,r=0,n=i.length;r<n;++r)i[r].scale(t,e,o);this.s()},r.oj=function(t){t=cu(t),fu(this),this.a=t,yu(this),this.s()},r.Dc=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)e[o].Dc(t);this.s()},r.translate=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)o[i].translate(t,e);this.s()},r.ka=function(){fu(this),yr.prototype.ka.call(this)},e(gu,Pl);var bu={Point:function(t){return new m(t.coordinates)},LineString:function(t){return new S(t.coordinates)},Polygon:function(t){return new w(t.coordinates)},MultiPoint:function(t){return new P(t.coordinates)},MultiLineString:function(t){return new M(t.coordinates)},MultiPolygon:function(t){return new f(t.coordinates)},GeometryCollection:function(t,e){return new uu(t=t.geometries.map(function(t){return du(t,e)}))}},mu={Point:function(t){return{type:"Point",coordinates:t.X()}},LineString:function(t){return{type:"LineString",coordinates:t.X()}},Polygon:function(t,e){var o;return e&&(o=e.rightHanded),{type:"Polygon",coordinates:t.X(o)}},MultiPoint:function(t){return{type:"MultiPoint",coordinates:t.X()}},MultiLineString:function(t){return{type:"MultiLineString",coordinates:t.X()}},MultiPolygon:function(t,e){var o;return e&&(o=e.rightHanded),{type:"MultiPolygon",coordinates:t.X(o)}},GeometryCollection:function(t,o){return{type:"GeometryCollection",geometries:t.a.map(function(t){var e=Xt({},o);return delete e.featureProjection,vu(t,e)})}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};function wu(){this.i=new XMLSerializer,wl.call(this)}function xu(t,e,o){return 0<(t=Su(t,e,o)).length?t[0]:null}function Su(t,e,o){var i=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&X(i,t.zc(e,o));return i}function Mu(t){this.featureType=(t=t||{}).featureType,this.featureNS=t.featureNS,this.srsName=t.srsName,this.schemaLocation="",this.b={},this.b["http://www.opengis.net/gml"]={featureMember:hl(Mu.prototype.be),featureMembers:hl(Mu.prototype.be)},wu.call(this)}(r=gu.prototype).Rc=function(t,e){e=du((t="Feature"===t.type?t:{type:"Feature",geometry:t}).geometry,e);var o=new x;return this.b&&o.Tc(this.b),o.Ra(e),void 0!==t.id&&o.jc(t.id),t.properties&&o.H(t.properties),o},r.yg=function(t,e){if("FeatureCollection"===t.type)for(var o=[],i=0,r=(t=t.features).length;i<r;++i)o.push(this.Rc(t[i],e));else o=[this.Rc(t,e)];return o},r.Cg=du,r.Fg=function(t){var e;return(t=t.crs)?"name"==t.type?e=v(t.properties.name):"EPSG"==t.type?e=v("EPSG:"+t.properties.code):O(!1,36):e=this.defaultDataProjection,e},r.Zc=function(t,e){e=Sl(this,e);var o={type:"Feature"},i=t.a;return void 0!==i&&(o.id=i),(i=t.V())?o.geometry=vu(i,e):o.geometry=null,delete(e=t.N())[t.c],Zt(e)?o.properties=null:o.properties=e,o},r.he=function(t,e){e=Sl(this,e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(this.Zc(t[i],e));return{type:"FeatureCollection",features:o}},r.je=function(t,e){return vu(t,Sl(this,e))},e(wu,wl),(r=wu.prototype).U=function(){return"xml"},r.Tb=function(t,e){return rl(t)?xu(this,t,e):nl(t)?this.xg(t,e):"string"==typeof t?xu(this,t=sl(t),e):null},r.xg=function(){return null},r.Oa=function(t,e){return rl(t)?Su(this,t,e):nl(t)?this.zc(t,e):"string"==typeof t?Su(this,t=sl(t),e):[]},r.Sc=function(t,e){if(!rl(t)){if(nl(t))return this.aj(t,e);"string"==typeof t&&sl(t)}return null},r.aj=function(){return null},r.kb=function(t){return rl(t)?this.Eg(t):nl(t)?this.kf(t):"string"==typeof t?(t=sl(t),this.Eg(t)):null},r.Eg=function(){return this.defaultDataProjection},r.kf=function(){return this.defaultDataProjection},r.Bd=function(t,e){return this.i.serializeToString(this.Vg(t,e))},r.Vg=function(){return null},r.Wb=function(t,e){return t=this.Xb(t,e),this.i.serializeToString(t)},r.Xb=function(){return null},r.$c=function(t,e){return t=this.ie(t,e),this.i.serializeToString(t)},r.ie=function(){return null},e(Mu,wu);var Pu=/^[\s\xa0]*$/;function Au(t){return Eu(t=il(t,!1))}function Eu(t){if(t=/^\s*(true|1)|(false|0)\s*$/.exec(t))return void 0!==t[1]||!1}function Tu(t){return t=il(t,!1),t=Date.parse(t),isNaN(t)?void 0:t/1e3}function ju(t){return Cu(t=il(t,!1))}function Cu(t){if(t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(t))return parseFloat(t[1])}function Lu(t){return Ru(t=il(t,!1))}function Ru(t){if(t=/^\s*(\d+)\s*$/.exec(t))return parseInt(t[1],10)}function i(t){return il(t,!1).trim()}function Iu(t,e){ku(t,e?"1":"0")}function Nu(t,e){t.appendChild(el.createTextNode(e.toPrecision()))}function Fu(t,e){t.appendChild(el.createTextNode(e.toString()))}function ku(t,e){t.appendChild(el.createTextNode(e))}function y(t){Mu.call(this,t=t||{}),this.l=void 0!==t.surface&&t.surface,this.c=void 0!==t.curve&&t.curve,this.g=void 0===t.multiCurve||t.multiCurve,this.j=void 0===t.multiSurface||t.multiSurface,this.schemaLocation=t.schemaLocation||"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd"}function Du(t,e,o){o=(i=o[o.length-1]).hasZ;for(var i=i.srsName,r=(e=e.X()).length,n=Array(r),s=0;s<r;++s){var a=e[s],p=s,h=o,l="enu",l="en"===(l=i?v(i).b:l).substr(0,2)?a[0]+" "+a[1]:a[1]+" "+a[0];h&&(l+=" "+(a[2]||0)),n[p]=l}ku(t,n.join(" "))}(r=Mu.prototype).be=function(t,e){var o=t.localName,i=null;if("FeatureCollection"==o)i="http://www.opengis.net/wfs"===t.namespaceURI?g([],this.b,t,e,this):g(null,this.b,t,e,this);else if("featureMembers"==o||"featureMember"==o){var r=(y=e[0]).featureType,n=y.featureNS;if(!r&&t.childNodes){r=[];for(var n={},s=0,a=t.childNodes.length;s<a;++s)if(1===(c=t.childNodes[s]).nodeType){var p=c.nodeName.split(":").pop();if(-1===r.indexOf(p)){var h,l="",u=0,c=c.namespaceURI;for(h in n){if(n[h]===c){l=h;break}++u}l||(n[l="p"+u]=c),r.push(l+":"+p)}}"featureMember"!=o&&(y.featureType=r,y.featureNS=n)}"string"==typeof n&&(s=n,(n={}).p0=s);var f,y={},r=Array.isArray(r)?r:[r];for(f in n){for(p={},s=0,a=r.length;s<a;++s)(-1===r[s].indexOf(":")?"p0":r[s].split(":")[0])===f&&(p[r[s].split(":").pop()]=("featureMembers"==o?pl:hl)(this.wg,this));y[n[f]]=p}i=g("featureMember"==o?void 0:[],y,t,e)}return i=null===i?[]:i},r.gf=function(t,e){var o=e[0];if(o.srsName=t.firstElementChild.getAttribute("srsName"),t=g(null,this.Zg,t,e,this))return Ml(t,!1,o)},r.wg=function(t,e){(o=t.getAttribute("fid"))||(o=t.getAttributeNS("http://www.opengis.net/gml","id")||"");var o,i,r={};for(t=t.firstElementChild;t;t=t.nextElementSibling){var n,s=t.localName;0===t.childNodes.length||1===t.childNodes.length&&(3===t.firstChild.nodeType||4===t.firstChild.nodeType)?(n=il(t,!1),Pu.test(n)&&(n=void 0),r[s]=n):("boundedBy"!==s&&(i=s),r[s]=this.gf(t,e))}return e=new x(r),i&&e.Tc(i),o&&e.jc(o),e},r.fj=function(t,e){if(t=this.ff(t,e))return(e=new m(null)).ba("XYZ",t),e},r.dj=function(t,e){if(t=g([],this.Nj,t,e,this))return new P(t)},r.cj=function(t,e){if(t=g([],this.Mj,t,e,this))return Ll(e=new M(null),t),e},r.ej=function(t,e){if(t=g([],this.Oj,t,e,this))return Fl(e=new f(null),t),e},r.Xi=function(t,e){gl(this.Rj,t,e,this)},r.Mh=function(t,e){gl(this.Kj,t,e,this)},r.Yi=function(t,e){gl(this.Sj,t,e,this)},r.hf=function(t,e){if(t=this.ff(t,e))return(e=new S(null)).ba("XYZ",t),e},r.wp=function(t,e){if(t=g(null,this.ke,t,e,this))return t},r.bj=function(t,e){if(t=this.ff(t,e))return kr(e=new Fr(null),"XYZ",t),e},r.jf=function(t,e){if((t=g([null],this.zf,t,e,this))&&t[0]){e=new w(null);for(var o=t[0],i=[o.length],r=1,n=t.length;r<n;++r)X(o,t[r]),i.push(o.length);return e.ba("XYZ",o,i),e}},r.ff=function(t,e){return g(null,this.ke,t,e,this)},r.Nj={"http://www.opengis.net/gml":{pointMember:pl(Mu.prototype.Xi),pointMembers:pl(Mu.prototype.Xi)}},r.Mj={"http://www.opengis.net/gml":{lineStringMember:pl(Mu.prototype.Mh),lineStringMembers:pl(Mu.prototype.Mh)}},r.Oj={"http://www.opengis.net/gml":{polygonMember:pl(Mu.prototype.Yi),polygonMembers:pl(Mu.prototype.Yi)}},r.Rj={"http://www.opengis.net/gml":{Point:pl(Mu.prototype.ff)}},r.Kj={"http://www.opengis.net/gml":{LineString:pl(Mu.prototype.hf)}},r.Sj={"http://www.opengis.net/gml":{Polygon:pl(Mu.prototype.jf)}},r.le={"http://www.opengis.net/gml":{LinearRing:hl(Mu.prototype.wp)}},r.aj=function(t,e){return(t=this.gf(t,[xl(this,t,e||{})]))?t:null},r.zc=function(t,e){var o={featureType:this.featureType,featureNS:this.featureNS};return e&&Xt(o,xl(this,t,e)),this.be(t,[o])||[]},r.kf=function(t){return v(this.srsName||t.firstElementChild.getAttribute("srsName"))},e(y,Mu),(r=y.prototype).Ap=function(t,e){if(t=g([],this.Lj,t,e,this))return Ll(e=new M(null),t),e},r.Bp=function(t,e){if(t=g([],this.Pj,t,e,this))return Fl(e=new f(null),t),e},r.ph=function(t,e){gl(this.Hj,t,e,this)},r.Aj=function(t,e){gl(this.Uj,t,e,this)},r.Ep=function(t,e){return g([null],this.Qj,t,e,this)},r.Hp=function(t,e){return g([null],this.Tj,t,e,this)},r.Fp=function(t,e){return g([null],this.zf,t,e,this)},r.zp=function(t,e){return g([null],this.ke,t,e,this)},r.cm=function(t,e){(t=g(void 0,this.le,t,e,this))&&e[e.length-1].push(t)},r.yk=function(t,e){(t=g(void 0,this.le,t,e,this))&&(e[e.length-1][0]=t)},r.gj=function(t,e){if((t=g([null],this.Vj,t,e,this))&&t[0]){e=new w(null);for(var o=t[0],i=[o.length],r=1,n=t.length;r<n;++r)X(o,t[r]),i.push(o.length);return e.ba("XYZ",o,i),e}},r.Zi=function(t,e){if(t=g([null],this.Ij,t,e,this))return(e=new S(null)).ba("XYZ",t),e},r.vp=function(t,e){return bt((t=g([null],this.Jj,t,e,this))[1][0],t[1][1],t[2][0],t[2][1])},r.xp=function(t,e){var o,i=il(t,!1),r=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/;for(t=[];o=r.exec(i);)t.push(parseFloat(o[1])),i=i.substr(o[0].length);if(""===i){if(i="enu","neu"===(i=(e=e[0].srsName)?v(e).b:i))for(e=0,i=t.length;e<i;e+=3)r=t[e],t[e]=t[e+1],t[e+1]=r;if(2==(e=t.length)&&t.push(0),e)return t}},r.Bg=function(t,e){var o=il(t,!1).replace(/^\s*|\s*$/g,""),i=e[0].srsName,r=t.parentNode.getAttribute("srsDimension");e="enu",i&&(e=v(i).b),o=o.split(/\s+/),i=2,t.getAttribute("srsDimension")?i=Ru(t.getAttribute("srsDimension")):t.getAttribute("dimension")?i=Ru(t.getAttribute("dimension")):r&&(i=Ru(r));for(var n,s=[],a=0,p=o.length;a<p;a+=i)t=parseFloat(o[a]),r=parseFloat(o[a+1]),n=3===i?parseFloat(o[a+2]):0,"en"===e.substr(0,2)?s.push(t,r,n):s.push(r,t,n);return s},r.ke={"http://www.opengis.net/gml":{pos:hl(y.prototype.xp),posList:hl(y.prototype.Bg)}},r.zf={"http://www.opengis.net/gml":{interior:y.prototype.cm,exterior:y.prototype.yk}},r.Zg={"http://www.opengis.net/gml":{Point:hl(Mu.prototype.fj),MultiPoint:hl(Mu.prototype.dj),LineString:hl(Mu.prototype.hf),MultiLineString:hl(Mu.prototype.cj),LinearRing:hl(Mu.prototype.bj),Polygon:hl(Mu.prototype.jf),MultiPolygon:hl(Mu.prototype.ej),Surface:hl(y.prototype.gj),MultiSurface:hl(y.prototype.Bp),Curve:hl(y.prototype.Zi),MultiCurve:hl(y.prototype.Ap),Envelope:hl(y.prototype.vp)}},r.Lj={"http://www.opengis.net/gml":{curveMember:pl(y.prototype.ph),curveMembers:pl(y.prototype.ph)}},r.Pj={"http://www.opengis.net/gml":{surfaceMember:pl(y.prototype.Aj),surfaceMembers:pl(y.prototype.Aj)}},r.Hj={"http://www.opengis.net/gml":{LineString:pl(Mu.prototype.hf),Curve:pl(y.prototype.Zi)}},r.Uj={"http://www.opengis.net/gml":{Polygon:pl(Mu.prototype.jf),Surface:pl(y.prototype.gj)}},r.Vj={"http://www.opengis.net/gml":{patches:hl(y.prototype.Ep)}},r.Ij={"http://www.opengis.net/gml":{segments:hl(y.prototype.Hp)}},r.Jj={"http://www.opengis.net/gml":{lowerCorner:pl(y.prototype.Bg),upperCorner:pl(y.prototype.Bg)}},r.Qj={"http://www.opengis.net/gml":{PolygonPatch:hl(y.prototype.Fp)}},r.Tj={"http://www.opengis.net/gml":{LineStringSegment:hl(y.prototype.zp)}},r.ni=function(t,e,o){var i=o[o.length-1].srsName,r=(i&&t.setAttribute("srsName",i),i=ol(t.namespaceURI,"pos"),t.appendChild(i),t=(o=o[o.length-1]).hasZ,o.srsName);o="enu",r&&(o=v(r).b),e=e.X(),o="en"===o.substr(0,2)?e[0]+" "+e[1]:e[1]+" "+e[0],t&&(o+=" "+(e[2]||0)),ku(i,o)};var r,Ou={"http://www.opengis.net/gml":{lowerCorner:c(ku),upperCorner:c(ku)}},Uu=((r=y.prototype).jn=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),vl({node:t},Ou,fl,[e[0]+" "+e[1],e[2]+" "+e[3]],o,["lowerCorner","upperCorner"],this)},r.ki=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=ol(t.namespaceURI,"posList"),t.appendChild(i),Du(i,e,o)},r.hn=function(t,e){e=(t=e[e.length-1]).node;var o=t.exteriorWritten;return void 0===o&&(t.exteriorWritten=!0),ol(e.namespaceURI,void 0!==o?"interior":"exterior")},r.Se=function(t,e,o){var i=(r=o[o.length-1]).hasZ,r=r.srsName;"PolygonPatch"!==t.nodeName&&r&&t.setAttribute("srsName",r),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName?(e=e.Sd(),vl({node:t,hasZ:i,srsName:r},Xu,this.hn,e,o,void 0,this)):"Surface"===t.nodeName&&(i=ol(t.namespaceURI,"patches"),t.appendChild(i),t=ol(i.namespaceURI,"PolygonPatch"),i.appendChild(t),this.Se(t,e,o))},r.Re=function(t,e,o){var i=o[o.length-1].srsName;"LineStringSegment"!==t.nodeName&&i&&t.setAttribute("srsName",i),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName?(i=ol(t.namespaceURI,"posList"),t.appendChild(i),Du(i,e,o)):"Curve"===t.nodeName&&(i=ol(t.namespaceURI,"segments"),t.appendChild(i),t=ol(i.namespaceURI,"LineStringSegment"),i.appendChild(t),this.Re(t,e,o))},r.mi=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.surface;r&&t.setAttribute("srsName",r),e=e.Td(),vl({node:t,hasZ:i,srsName:r,surface:n},Uu,this.o,e,o,void 0,this)},r.kn=function(t,e,o){var i=(r=o[o.length-1]).srsName,r=r.hasZ;i&&t.setAttribute("srsName",i),e=e.Zd(),vl({node:t,hasZ:r,srsName:i},Gu,cl("pointMember"),e,o,void 0,this)},r.li=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.curve;r&&t.setAttribute("srsName",r),e=e.gd(),vl({node:t,hasZ:i,srsName:r,curve:n},Bu,this.o,e,o,void 0,this)},r.oi=function(t,e,o){var i=ol(t.namespaceURI,"LinearRing");t.appendChild(i),this.ki(i,e,o)},r.pi=function(t,e,o){var i=this.a(e,o);i&&(t.appendChild(i),this.Se(i,e,o))},r.ln=function(t,e,o){var i=ol(t.namespaceURI,"Point");t.appendChild(i),this.ni(i,e,o)},r.ji=function(t,e,o){var i=this.a(e,o);i&&(t.appendChild(i),this.Re(i,e,o))},r.od=function(t,e,o){var i=o[o.length-1],r=Xt({},i);r.node=t,t=Array.isArray(e)?i.dataProjection?Pe(e,i.featureProjection,i.dataProjection):e:Ml(e,!0,i),vl(r,Vu,this.a,[t],o,void 0,this)},r.ii=function(t,e,o){var i=e.a;i&&t.setAttribute("fid",i);var r=(i=o[o.length-1]).featureNS,n=e.c,s=(i.lb||(i.lb={},i.lb[r]={}),e.N()),a=(e=[],[]);for(h in s){var p=s[h];null!==p&&(e.push(h),a.push(p),h==n||p instanceof yr?h in i.lb[r]||(i.lb[r][h]=c(this.od,this)):h in i.lb[r]||(i.lb[r][h]=c(ku)))}var h=Xt({},i);h.node=t,vl(h,i.lb,cl(void 0,r),a,o,e)},{"http://www.opengis.net/gml":{surfaceMember:c(y.prototype.pi),polygonMember:c(y.prototype.pi)}}),Gu={"http://www.opengis.net/gml":{pointMember:c(y.prototype.ln)}},Bu={"http://www.opengis.net/gml":{lineStringMember:c(y.prototype.ji),curveMember:c(y.prototype.ji)}},Xu={"http://www.opengis.net/gml":{exterior:c(y.prototype.oi),interior:c(y.prototype.oi)}},Vu={"http://www.opengis.net/gml":{Curve:c(y.prototype.Re),MultiCurve:c(y.prototype.li),Point:c(y.prototype.ni),MultiPoint:c(y.prototype.kn),LineString:c(y.prototype.Re),MultiLineString:c(y.prototype.li),LinearRing:c(y.prototype.ki),Polygon:c(y.prototype.Se),MultiPolygon:c(y.prototype.mi),Surface:c(y.prototype.Se),MultiSurface:c(y.prototype.mi),Envelope:c(y.prototype.jn)}},Wu={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};function Zu(t){Mu.call(this,t=t||{}),this.b["http://www.opengis.net/gml"].featureMember=pl(Mu.prototype.be),this.schemaLocation=t.schemaLocation||"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd"}function Ku(t){return(t=ol(t,"coordinates")).setAttribute("decimal","."),t.setAttribute("cs",","),t.setAttribute("ts"," "),t}function zu(t,e,o){o=(r=o[o.length-1]).hasZ;for(var i,r=r.srsName,n=(e=e.X()).length,s=Array(n),a=0;a<n;++a)i=e[a],s[a]=Yu(i,r,o);ku(t,s.join(" "))}function Yu(t,e,o){var i="enu";return e="en"===(i=e?v(e).b:i).substr(0,2)?t[0]+","+t[1]:t[1]+","+t[0],o&&(e+=","+(t[2]||0)),e}y.prototype.o=function(t,e){return ol("http://www.opengis.net/gml",Wu[e[e.length-1].node.nodeName])},y.prototype.a=function(t,e){e=(r=e[e.length-1]).multiSurface;var o=r.surface,i=r.curve,r=r.multiCurve;return Array.isArray(t)?t="Envelope":"MultiPolygon"===(t=t.U())&&!0===e?t="MultiSurface":"Polygon"===t&&!0===o?t="Surface":"LineString"===t&&!0===i?t="Curve":"MultiLineString"===t&&!0===r&&(t="MultiCurve"),ol("http://www.opengis.net/gml",t)},y.prototype.ie=function(t,e){e=Sl(this,e);var o=ol("http://www.opengis.net/gml","geom"),i={node:o,hasZ:this.hasZ,srsName:this.srsName,curve:this.c,surface:this.l,multiSurface:this.j,multiCurve:this.g};return e&&Xt(i,e),this.od(o,t,[i]),o},y.prototype.Xb=function(t,e){e=Sl(this,e);var o=ol("http://www.opengis.net/gml","featureMembers"),i=(o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation),{srsName:this.srsName,hasZ:this.hasZ,curve:this.c,surface:this.l,multiSurface:this.j,multiCurve:this.g,featureNS:this.featureNS,featureType:this.featureType}),r=(e&&Xt(i,e),(e=[i])[e.length-1]),i=r.featureType,n=r.featureNS,s={};return s[n]={},s[n][i]=c(this.ii,this),(r=Xt({},r)).node=o,vl(r,s,cl(i,n),t,e),o},e(Zu,Mu),(r=Zu.prototype).$i=function(t,e){t=il(t,!1).replace(/^\s*|\s*$/g,"");var o=e[0].srsName;e="enu",(o=o&&v(o))&&(e=o.b);for(var i,r,n=[],s=0,a=(t=t.trim().split(/\s+/)).length;s<a;s++)r=t[s].split(/,+/),o=parseFloat(r[0]),i=parseFloat(r[1]),r=3===r.length?parseFloat(r[2]):0,"en"===e.substr(0,2)?n.push(o,i,r):n.push(i,o,r);return n},r.tp=function(t,e){return bt((t=g([null],this.Gj,t,e,this))[1][0],t[1][1],t[1][3],t[1][4])},r.am=function(t,e){(t=g(void 0,this.le,t,e,this))&&e[e.length-1].push(t)},r.bp=function(t,e){(t=g(void 0,this.le,t,e,this))&&(e[e.length-1][0]=t)},r.ke={"http://www.opengis.net/gml":{coordinates:hl(Zu.prototype.$i)}},r.zf={"http://www.opengis.net/gml":{innerBoundaryIs:Zu.prototype.am,outerBoundaryIs:Zu.prototype.bp}},r.Gj={"http://www.opengis.net/gml":{coordinates:pl(Zu.prototype.$i)}},r.Zg={"http://www.opengis.net/gml":{Point:hl(Mu.prototype.fj),MultiPoint:hl(Mu.prototype.dj),LineString:hl(Mu.prototype.hf),MultiLineString:hl(Mu.prototype.cj),LinearRing:hl(Mu.prototype.bj),Polygon:hl(Mu.prototype.jf),MultiPolygon:hl(Mu.prototype.ej),Box:hl(Zu.prototype.tp)}},r.jg=function(t,e){e=(i=e[e.length-1]).multiSurface;var o=i.surface,i=i.multiCurve;return Array.isArray(t)?t="Envelope":"MultiPolygon"===(t=t.U())&&!0===e?t="MultiSurface":"Polygon"===t&&!0===o?t="Surface":"MultiLineString"===t&&!0===i&&(t="MultiCurve"),ol("http://www.opengis.net/gml",t)},r.ai=function(t,e,o){var i=o[o.length-1],r=Xt({},i);r.node=t,t=Array.isArray(e)?i.dataProjection?Pe(e,i.featureProjection,i.dataProjection):e:Ml(e,!0,i),vl(r,Hu,this.jg,[t],o,void 0,this)},r.Pe=function(t,e,o){var i=o[o.length-1].srsName;"LineStringSegment"!==t.nodeName&&i&&t.setAttribute("srsName",i),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName?(i=Ku(t.namespaceURI),t.appendChild(i),zu(i,e,o)):"Curve"===t.nodeName&&(i=ol(t.namespaceURI,"segments"),t.appendChild(i),t=ol(i.namespaceURI,"LineStringSegment"),i.appendChild(t),this.Pe(t,e,o))},r.Qe=function(t,e,o){var i=(r=o[o.length-1]).hasZ,r=r.srsName;"PolygonPatch"!==t.nodeName&&r&&t.setAttribute("srsName",r),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName?(e=e.Sd(),vl({node:t,hasZ:i,srsName:r},qu,this.dn,e,o,void 0,this)):"Surface"===t.nodeName&&(i=ol(t.namespaceURI,"patches"),t.appendChild(i),t=ol(i.namespaceURI,"PolygonPatch"),i.appendChild(t),this.Qe(t,e,o))},r.dn=function(t,e){e=(t=e[e.length-1]).node;var o=t.exteriorWritten;return void 0===o&&(t.exteriorWritten=!0),ol(e.namespaceURI,void 0!==o?"innerBoundaryIs":"outerBoundaryIs")},r.gi=function(t,e,o){var i=ol(t.namespaceURI,"LinearRing");t.appendChild(i),this.ci(i,e,o)},r.di=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.curve;r&&t.setAttribute("srsName",r),e=e.gd(),vl({node:t,hasZ:i,srsName:r,curve:n},_u,this.a,e,o,void 0,this)},r.fi=function(t,e,o){var i=o[o.length-1],r=(o=i.hasZ,i.srsName);r&&t.setAttribute("srsName",r),i=Ku(t.namespaceURI),t.appendChild(i),ku(i,t=Yu(t=e.X(),r,o))},r.fn=function(t,e,o){var i=o[o.length-1],r=i.hasZ;(i=i.srsName)&&t.setAttribute("srsName",i),e=e.Zd(),vl({node:t,hasZ:r,srsName:i},Ju,cl("pointMember"),e,o,void 0,this)},r.gn=function(t,e,o){var i=ol(t.namespaceURI,"Point");t.appendChild(i),this.fi(i,e,o)},r.bi=function(t,e,o){var i=this.jg(e,o);i&&(t.appendChild(i),this.Pe(i,e,o))},r.ci=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=Ku(t.namespaceURI),t.appendChild(i),zu(i,e,o)},r.ei=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.surface;r&&t.setAttribute("srsName",r),e=e.Td(),vl({node:t,hasZ:i,srsName:r,surface:n},Qu,this.a,e,o,void 0,this)},r.hi=function(t,e,o){var i=this.jg(e,o);i&&(t.appendChild(i),this.Qe(i,e,o))},r.en=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),vl({node:t},tc,fl,[e[0]+" "+e[1],e[2]+" "+e[3]],o,["lowerCorner","upperCorner"],this)};var Hu={"http://www.opengis.net/gml":{Curve:c(Zu.prototype.Pe),MultiCurve:c(Zu.prototype.di),Point:c(Zu.prototype.fi),MultiPoint:c(Zu.prototype.fn),LineString:c(Zu.prototype.Pe),MultiLineString:c(Zu.prototype.di),LinearRing:c(Zu.prototype.ci),Polygon:c(Zu.prototype.Qe),MultiPolygon:c(Zu.prototype.ei),Surface:c(Zu.prototype.Qe),MultiSurface:c(Zu.prototype.ei),Envelope:c(Zu.prototype.en)}},qu={"http://www.opengis.net/gml":{outerBoundaryIs:c(Zu.prototype.gi),innerBoundaryIs:c(Zu.prototype.gi)}},Ju={"http://www.opengis.net/gml":{pointMember:c(Zu.prototype.gn)}},_u={"http://www.opengis.net/gml":{lineStringMember:c(Zu.prototype.bi),curveMember:c(Zu.prototype.bi)}},$u=(Zu.prototype.a=function(t,e){return ol("http://www.opengis.net/gml",$u[e[e.length-1].node.nodeName])},{MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"}),Qu={"http://www.opengis.net/gml":{surfaceMember:c(Zu.prototype.hi),polygonMember:c(Zu.prototype.hi)}},tc={"http://www.opengis.net/gml":{lowerCorner:c(ku),upperCorner:c(ku)}};function ec(t){t=t||{},wu.call(this),this.defaultDataProjection=v("EPSG:4326"),this.b=t.readExtensions}e(ec,wu);var oc=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function ic(t,e,o,i){return t.push(parseFloat(o.getAttribute("lon")),parseFloat(o.getAttribute("lat"))),"ele"in i?(t.push(i.ele),delete i.ele,e.hasZ=!0):t.push(0),"time"in i?(t.push(i.time),delete i.time,e.hasM=!0):t.push(0),t}function rc(t,e,o){var i="XY",r=2;if(t.hasZ&&t.hasM?(i="XYZM",r=4):t.hasZ?(i="XYZ",r=3):t.hasM&&(i="XYM",r=3),4!==r){for(var n=0,s=e.length/4;n<s;n++)e[n*r]=e[4*n],e[n*r+1]=e[4*n+1],t.hasZ&&(e[n*r+2]=e[4*n+2]),t.hasM&&(e[n*r+2]=e[4*n+3]);if(e.length=e.length/4*r,o)for(n=0,s=o.length;n<s;n++)o[n]=o[n]/4*r}return i}function nc(t,e){var o=e[e.length-1],i=t.getAttribute("href");null!==i&&(o.link=i),gl(cc,t,e)}function sc(t,e){e[e.length-1].extensionsNode_=t}function ac(t,e){var o,i,r=e[0];if(t=g({flatCoordinates:[],layoutOptions:{}},fc,t,e))return e=t.flatCoordinates,delete t.flatCoordinates,o=t.layoutOptions,delete t.layoutOptions,o=rc(o,e),(i=new S(null)).ba(o,e),Ml(i,!1,r),(r=new x(i)).H(t),r}function pc(t,e){var o,i,r,n=e[0];if(t=g({flatCoordinates:[],ends:[],layoutOptions:{}},gc,t,e))return e=t.flatCoordinates,delete t.flatCoordinates,o=t.ends,delete t.ends,i=t.layoutOptions,delete t.layoutOptions,i=rc(i,e,o),(r=new M(null)).ba(i,e,o),Ml(r,!1,n),(n=new x(r)).H(t),n}function hc(t,e){var o,i=e[0];if(e=g({},bc,t,e))return Ml(t=new m(t=ic([],o={},t,e),o=rc(o,t)),!1,i),(i=new x(t)).H(e),i}var lc={rte:ac,trk:pc,wpt:hc},uc=l(oc,{rte:pl(ac),trk:pl(pc),wpt:pl(hc)}),cc=l(oc,{text:o(i,"linkText"),type:o(i,"linkType")}),fc=l(oc,{name:o(i),cmt:o(i),desc:o(i),src:o(i),link:nc,number:o(Lu),extensions:sc,type:o(i),rtept:function(t,e){var o=g({},yc,t,e);o&&ic((e=e[e.length-1]).flatCoordinates,e.layoutOptions,t,o)}}),yc=l(oc,{ele:o(ju),time:o(Tu)}),gc=l(oc,{name:o(i),cmt:o(i),desc:o(i),src:o(i),link:nc,number:o(Lu),type:o(i),extensions:sc,trkseg:function(t,e){var o=e[e.length-1];gl(dc,t,e),o.ends.push(o.flatCoordinates.length)}}),dc=l(oc,{trkpt:function(t,e){var o=g({},vc,t,e);o&&ic((e=e[e.length-1]).flatCoordinates,e.layoutOptions,t,o)}}),vc=l(oc,{ele:o(ju),time:o(Tu)}),bc=l(oc,{ele:o(ju),time:o(Tu),magvar:o(ju),geoidheight:o(ju),name:o(i),cmt:o(i),desc:o(i),src:o(i),link:nc,sym:o(i),type:o(i),fix:o(i),sat:o(Lu),hdop:o(ju),vdop:o(ju),pdop:o(ju),ageofdgpsdata:o(ju),dgpsid:o(Lu),extensions:sc});function mc(t,e){for(var o=0,i=(e=e||[]).length;o<i;++o){var r,n=e[o];t.b&&(r=n.get("extensionsNode_")||null,t.b(n,r)),n.set("extensionsNode_",void 0)}}function wc(t,e,o){t.setAttribute("href",e),e=o[o.length-1].properties,vl({node:t},Mc,fl,[e.linkText,e.linkType],o,Sc)}function xc(t,e,o){var i=o[o.length-1],r=i.node.namespaceURI,n=i.properties;switch(t.setAttributeNS(null,"lat",e[1]),t.setAttributeNS(null,"lon",e[0]),i.geometryLayout){case"XYZM":e[3]&&(n.time=e[3]);case"XYZ":e[2]&&(n.ele=e[2]);break;case"XYM":e[2]&&(n.time=e[2])}i=yl(n,e=("rtept"==t.nodeName?Ec:Rc)[r]),vl({node:t,properties:n},Ic,fl,i,o,e)}ec.prototype.xg=function(t,e){if(!D(oc,t.namespaceURI))return null;var o=lc[t.localName];return o&&(t=o(t,[xl(this,t,e)]))?(mc(this,[t]),t):null},ec.prototype.zc=function(t,e){return D(oc,t.namespaceURI)&&"gpx"==t.localName&&(t=g([],uc,t,[xl(this,t,e)]))?(mc(this,t),t):[]};var Sc=["text","type"],Mc=l(oc,{text:c(ku),type:c(ku)}),Pc=l(oc,"name cmt desc src link number type rtept".split(" ")),Ac=l(oc,{name:c(ku),cmt:c(ku),desc:c(ku),src:c(ku),link:c(wc),number:c(Fu),type:c(ku),rtept:ul(c(xc))}),Ec=l(oc,["ele","time"]),Tc=l(oc,"name cmt desc src link number type trkseg".split(" ")),jc=l(oc,{name:c(ku),cmt:c(ku),desc:c(ku),src:c(ku),link:c(wc),number:c(Fu),type:c(ku),trkseg:ul(c(function(t,e,o){vl({node:t,geometryLayout:e.ja,properties:{}},Lc,Cc,e.X(),o)}))}),Cc=cl("trkpt"),Lc=l(oc,{trkpt:c(xc)}),Rc=l(oc,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),Ic=l(oc,{ele:c(Nu),time:c(function(t,e){e=new Date(1e3*e),t.appendChild(el.createTextNode(e.getUTCFullYear()+"-"+Qi(e.getUTCMonth()+1)+"-"+Qi(e.getUTCDate())+"T"+Qi(e.getUTCHours())+":"+Qi(e.getUTCMinutes())+":"+Qi(e.getUTCSeconds())+"Z"))}),magvar:c(Nu),geoidheight:c(Nu),name:c(ku),cmt:c(ku),desc:c(ku),src:c(ku),link:c(wc),sym:c(ku),type:c(ku),fix:c(ku),sat:c(Fu),hdop:c(Nu),vdop:c(Nu),pdop:c(Nu),ageofdgpsdata:c(Nu),dgpsid:c(Fu)}),Nc={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function Fc(t,e){if((t=t.V())&&(t=Nc[t.U()]))return ol(e[e.length-1].node.namespaceURI,t)}var kc=l(oc,{rte:c(function(t,e,o){var i=o[0],r=e.N();t={node:t,properties:r},(e=e.V())&&(e=Ml(e,!0,i),t.geometryLayout=e.ja,r.rtept=e.X()),r=yl(r,i=Pc[o[o.length-1].node.namespaceURI]),vl(t,Ac,fl,r,o,i)}),trk:c(function(t,e,o){var i=o[0],r=e.N();t={node:t,properties:r},(e=e.V())&&(e=Ml(e,!0,i),r.trkseg=e.gd()),r=yl(r,i=Tc[o[o.length-1].node.namespaceURI]),vl(t,jc,fl,r,o,i)}),wpt:c(function(t,e,o){var i=o[0],r=o[o.length-1];r.properties=e.N(),(e=e.V())&&(e=Ml(e,!0,i),r.geometryLayout=e.ja,xc(t,e.X(),o))})});function Dc(){wl.call(this)}function Oc(t){return"string"==typeof t?t:""}function Uc(t){t=t||{},wl.call(this),this.defaultDataProjection=v("EPSG:4326"),this.b=t.altitudeMode||"none"}ec.prototype.Xb=function(t,e){e=Sl(this,e);var o=ol("http://www.topografix.com/GPX/1/1","gpx");return o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"),o.setAttribute("version","1.1"),o.setAttribute("creator","OpenLayers"),vl({node:o},kc,Fc,t,[e]),o},e(Dc,wl),(r=Dc.prototype).U=function(){return"text"},r.Tb=function(t,e){return this.ae(Oc(t),Sl(this,e))},r.Oa=function(t,e){return this.zg(Oc(t),Sl(this,e))},r.Sc=function(t,e){return this.wd(Oc(t),Sl(this,e))},r.kb=function(){return this.defaultDataProjection},r.Bd=function(t,e){return this.ge(t,Sl(this,e))},r.Wb=function(t,e){return this.Wg(t,Sl(this,e))},r.$c=function(t,e){return this.Cd(t,Sl(this,e))},e(Uc,Dc);var Gc,Bc,Xc,Vc,Wc,Zc,Kc,zc,Yc,Hc,qc,Jc,_c,$c,Qc,tf=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,ef=/^H.([A-Z]{3}).*?:(.*)/,of=/^HFDTE(\d{2})(\d{2})(\d{2})/,rf=/\r\n|\r|\n/;function nf(t,e,o,i,r,n){eo.call(this),this.j=null,this.M=t||new Image,null!==i&&(this.M.crossOrigin=i),this.c=n?document.createElement("CANVAS"):null,this.g=n,this.f=null,this.i=r,this.a=o,this.o=e,this.l=!1,2==this.i&&sf(this)}function sf(e){var t=Po(1,1);try{t.drawImage(e.M,0,0),t.getImageData(0,0,1,1)}catch(t){e.l=!0}}function af(t){this.o=void 0!==(t=t||{}).anchor?t.anchor:[.5,.5],this.u=null,this.i=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.C=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.B=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.ra=void 0!==t.crossOrigin?t.crossOrigin:null;var e=void 0!==t.img?t.img:null,o=void 0!==t.imgSize?t.imgSize:null,i=t.src,r=(O(!(void 0!==i&&e),4),O(!e||o,5),O(void 0!==(i=void 0!==i&&i.length||!e?i:e.src||U(e).toString())&&0<i.length,6),void 0!==t.src?0:2),n=(this.j=void 0!==t.color?vo(t.color):null,this.ra),s=this.j,a=vs.get(i,n,s);a||(a=new nf(e,i,o,n,r,s),vs.set(i,n,s,a)),this.b=a,this.oa=void 0!==t.offset?t.offset:[0,0],this.c=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.S=null,this.D=void 0!==t.size?t.size:null,Zh.call(this,{opacity:void 0!==t.opacity?t.opacity:1,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,snapToPixel:void 0===t.snapToPixel||t.snapToPixel,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView})}function pf(t){this.a=(t=t||{}).font,this.f=t.rotation,this.o=t.rotateWithView,this.b=t.scale,this.Ia=t.text,this.g=t.textAlign,this.j=t.textBaseline,this.Va=void 0!==t.fill?t.fill:new Hh({color:"#333"}),this.Ya=void 0!==t.stroke?t.stroke:null,this.i=void 0!==t.offsetX?t.offsetX:0,this.c=void 0!==t.offsetY?t.offsetY:0}function hf(t){t=t||{},wu.call(this),Gc||(Xc=new Hh({color:Bc=[255,255,255,1]}),Zc=Wc="pixels",Hc=new af({anchor:Vc=[20,2],anchorOrigin:"bottom-left",anchorXUnits:Wc,anchorYUnits:Zc,crossOrigin:"anonymous",rotation:0,scale:Yc=.5,size:Kc=[64,64],src:zc="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),qc="NO_IMAGE",Jc=new hp({color:Bc,width:1}),_c=new hp({color:[51,51,51,1],width:2}),$c=new pf({font:"bold 16px Helvetica",fill:Xc,stroke:_c,scale:.8}),Qc=new qh({fill:Xc,image:Hc,text:$c,stroke:Jc,zIndex:0}),Gc=[Qc]),this.defaultDataProjection=v("EPSG:4326"),this.a=t.defaultStyle||Gc,this.c=void 0===t.extractStyles||t.extractStyles,this.j=void 0===t.writeStyles||t.writeStyles,this.b={},this.g=void 0===t.showPointNames||t.showPointNames}(r=Uc.prototype).ae=function(t,e){for(var o=this.b,i=t.split(rf),r=(t={},[]),n=2e3,s=0,a=1,p=-1,h=0,l=i.length;h<l;++h){var u,c,f,y,g,d=i[h];"B"==d.charAt(0)?(u=tf.exec(d))&&(d=parseInt(u[1],10),c=parseInt(u[2],10),f=parseInt(u[3],10),y=parseInt(u[4],10)+parseInt(u[5],10)/6e4,"S"==u[6]&&(y=-y),g=parseInt(u[7],10)+parseInt(u[8],10)/6e4,"W"==u[9]&&(g=-g),r.push(g,y),"none"!=o&&r.push("gps"==o?parseInt(u[11],10):"barometric"==o?parseInt(u[12],10):0),(u=Date.UTC(n,s,a,d,c,f))<p&&(u=Date.UTC(n,s,a+1,d,c,f)),r.push(u/1e3),p=u):"H"==d.charAt(0)&&((u=of.exec(d))?(a=parseInt(u[1],10),s=parseInt(u[2],10)-1,n=2e3+parseInt(u[3],10)):(u=ef.exec(d))&&(t[u[1]]=u[2].trim()))}return r.length?((i=new S(null)).ba("none"==o?"XYM":"XYZM",r),(e=new x(Ml(i,!1,e))).H(t),e):null},r.zg=function(t,e){return(t=this.ae(t,e))?[t]:[]},r.ge=function(){},r.Wg=function(){},r.Cd=function(){},r.wd=function(){},e(nf,eo),nf.prototype.v=function(){this.i=3,this.f.forEach(qe),this.f=null,this.b("change")},nf.prototype.u=function(){if(this.i=2,this.a&&(this.M.width=this.a[0],this.M.height=this.a[1]),this.a=[this.M.width,this.M.height],this.f.forEach(qe),this.f=null,sf(this),!this.l&&null!==this.g){this.c.width=this.M.width,this.c.height=this.M.height;var t=this.c.getContext("2d");t.drawImage(this.M,0,0);for(var e=t.getImageData(0,0,this.M.width,this.M.height),o=e.data,i=this.g[0]/255,r=this.g[1]/255,n=this.g[2]/255,s=0,a=o.length;s<a;s+=4)o[s]*=i,o[s+1]*=r,o[s+2]*=n;t.putImageData(e,0,0)}this.b("change")},nf.prototype.Y=function(){return this.c||this.M},nf.prototype.load=function(){if(0==this.i){this.i=1,this.f=[Ye(this.M,"error",this.v,this),Ye(this.M,"load",this.u,this)];try{this.M.src=this.o}catch(t){this.v()}}},e(af,Zh),(r=af.prototype).clone=function(){var t,e,o=this.Y(1);return 2===this.b.i&&("IMG"===o.tagName.toUpperCase()?t=o.cloneNode(!0):(e=(t=document.createElement("canvas")).getContext("2d"),t.width=o.width,t.height=o.height,e.drawImage(o,0,0))),new af({anchor:this.o.slice(),anchorOrigin:this.i,anchorXUnits:this.C,anchorYUnits:this.B,crossOrigin:this.ra,color:this.j&&this.j.slice?this.j.slice():this.j||void 0,img:t||void 0,imgSize:t?this.b.a.slice():void 0,src:t?void 0:this.b.o,offset:this.oa.slice(),offsetOrigin:this.c,size:null!==this.D?this.D.slice():void 0,opacity:this.f,scale:this.a,snapToPixel:this.v,rotation:this.g,rotateWithView:this.l})},r.Hc=function(){if(this.u)return this.u;var t=this.o,e=this.ic();if("fraction"==this.C||"fraction"==this.B){if(!e)return null;t=this.o.slice(),"fraction"==this.C&&(t[0]*=e[0]),"fraction"==this.B&&(t[1]*=e[1])}if("top-left"!=this.i){if(!e)return null;t===this.o&&(t=this.o.slice()),"top-right"!=this.i&&"bottom-right"!=this.i||(t[0]=-t[0]+e[0]),"bottom-left"!=this.i&&"bottom-right"!=this.i||(t[1]=-t[1]+e[1])}return this.u=t},r.Lo=function(){return this.j},r.Y=function(t){return this.b.Y(t)},r.ye=function(){return this.b.a},r.Ye=function(){return this.b.i},r.qg=function(){var t,e,o,i=this.b;return i.j||(i.l?((o=Po(t=i.a[0],e=i.a[1])).fillRect(0,0,t,e),i.j=o.canvas):i.j=i.M),i.j},r.Oc=function(){if(this.S)return this.S;var t=this.oa;if("top-left"!=this.c){var e=this.ic(),o=this.b.a;if(!e||!o)return null;t=t.slice(),"top-right"!=this.c&&"bottom-right"!=this.c||(t[0]=o[0]-e[0]-t[0]),"bottom-left"!=this.c&&"bottom-right"!=this.c||(t[1]=o[1]-e[1]-t[1])}return this.S=t},r.Mo=function(){return this.b.o},r.ic=function(){return this.D||this.b.a},r.Nh=function(t,e){return d(this.b,"change",t,e)},r.load=function(){this.b.load()},r.Bj=function(t,e){He(this.b,"change",t,e)},(r=pf.prototype).clone=function(){return new pf({font:this.a,rotation:this.f,rotateWithView:this.o,scale:this.b,text:this.Na(),textAlign:this.g,textBaseline:this.j,fill:this.Fa()?this.Fa().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,offsetX:this.i,offsetY:this.c})},r.Nk=function(){return this.a},r.cl=function(){return this.i},r.dl=function(){return this.c},r.Fa=function(){return this.Va},r.Ro=function(){return this.o},r.So=function(){return this.f},r.To=function(){return this.b},r.Ga=function(){return this.Ya},r.Na=function(){return this.Ia},r.nl=function(){return this.g},r.ol=function(){return this.j},r.nj=function(t){this.a=t},r.sj=function(t){this.i=t},r.tj=function(t){this.c=t},r.pf=function(t){this.Va=t},r.Uo=function(t){this.f=t},r.Si=function(t){this.b=t},r.qf=function(t){this.Ya=t},r.xd=function(t){this.Ia=t},r.vj=function(t){this.g=t},r.hq=function(t){this.j=t},e(hf,wu);var lf=["http://www.google.com/kml/ext/2.2"],n=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],uf={fraction:"fraction",pixels:"pixels",insetPixels:"pixels"};function cf(t,e){var o,i=[0,0],r="start";return t.Y()&&2==(o=null===(o=t.Y().ye())?Kc:o).length&&(r=t.Y().a,i[0]=r*o[0]/2,i[1]=-r*o[1]/2,r="left"),null!==t.Na()?((t=(o=t.Na()).clone()).nj(o.a||$c.a),t.Si(o.b||$c.b),t.pf(o.Fa()||$c.Fa()),t.qf(o.Ga()||_c)):t=$c.clone(),t.xd(e),t.sj(i[0]),t.tj(i[1]),t.vj(r),new qh({text:t})}function ff(i,r,n,s,a){return function(){var t,e=a,o="";return(e=e&&this.V()?"Point"===this.V().U():e)&&(o=this.get("name"),e=e&&o),i?e?(e=cf(i[0],o),i.concat(e)):i:r?(t=function t(e,o,i){return Array.isArray(e)?e:"string"==typeof e?(!(e in i)&&"#"+e in i&&(e="#"+e),t(i[e],o,i)):o}(r,n,s),e?(e=cf(t[0],o),t.concat(e)):t):e?(e=cf(n[0],o),n.concat(e)):n}}function yf(t){if(t=il(t,!1),t=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(t))return t=t[1],[parseInt(t.substr(6,2),16),parseInt(t.substr(4,2),16),parseInt(t.substr(2,2),16),parseInt(t.substr(0,2),16)/255]}function gf(t){t=il(t,!1);for(var e,o=[],i=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i;e=i.exec(t);)o.push(parseFloat(e[1]),parseFloat(e[2]),e[3]?parseFloat(e[3]):0),t=t.substr(e[0].length);if(""===t)return o}function df(t){var e=il(t,!1).trim();return t.baseURI&&"about:blank"!==t.baseURI?new URL(e,t.baseURI).href:e}function vf(t){return ju(t)}function bf(t,e){return g(null,kf,t,e)}function mf(t,e){if(e=g({A:[],Ej:[]},Of,t,e)){t=e.A,e=e.Ej;for(var o=0,i=Math.min(t.length,e.length);o<i;++o)t[4*o+3]=e[o];return(e=new S(null)).ba("XYZM",t),e}}function wf(t,e){var o=g({},Ff,t,e);if(t=g(null,Uf,t,e))return(e=new S(null)).ba("XYZ",t),e.H(o),e}function xf(t,e){var o=g({},Ff,t,e);if(t=g(null,Uf,t,e))return(e=new w(null)).ba("XYZ",t,[t.length]),e.H(o),e}function Sf(t,e){if(!(t=g([],Zf,t,e)))return null;if(!t.length)return new uu(t);var o=!0,i=t[0].U(),r=1;for(s=t.length;r<s;++r)if((e=t[r]).U()!=i){o=!1;break}if(o)if("Point"==i){for(var n=t[0],o=n.ja,i=n.ga(),r=1,s=t.length;r<s;++r)X(i,(e=t[r]).ga());(n=new P(null)).ba(o,i),Ef(n,t)}else"LineString"==i?(Ll(n=new M(null),t),Ef(n,t)):"Polygon"==i?(Fl(n=new f(null),t),Ef(n,t)):"GeometryCollection"==i?n=new uu(t):O(!1,37);else n=new uu(t);return n}function Mf(t,e){var o=g({},Ff,t,e);if(t=g(null,Uf,t,e))return(e=new m(null)).ba("XYZ",t),e.H(o),e}function Pf(t,e){var o=g({},Ff,t,e);if((t=g([null],Df,t,e))&&t[0]){e=new w(null);for(var i=t[0],r=[i.length],n=1,s=t.length;n<s;++n)X(i,t[n]),r.push(i.length);return e.ba("XYZ",i,r),e.H(o),e}}function Af(t,e){if(!(e=g({},Qf,t,e)))return null;t="fillStyle"in e?e.fillStyle:Xc;var o=e.fill,i=(void 0===o||o||(t=null),(o="imageStyle"in e?e.imageStyle:Hc)==qc&&(o=void 0),"textStyle"in e?e.textStyle:$c),r="strokeStyle"in e?e.strokeStyle:Jc;return[new qh({fill:t,image:o,stroke:r=void 0===(e=e.outline)||e?r:null,text:i,zIndex:void 0})]}function Ef(t,e){for(var o,i=e.length,r=Array(e.length),n=Array(e.length),s=o=!1,a=0;a<i;++a){var p=e[a];r[a]=p.get("extrude"),n[a]=p.get("altitudeMode"),s=s||void 0!==r[a],o=o||n[a]}s&&t.set("extrude",r),o&&t.set("altitudeMode",n)}function Tf(t,e){gl(Lf,t,e)}function jf(t,e){gl(Rf,t,e)}var Cf=l(n,{displayName:o(i),value:o(i)}),Lf=l(n,{Data:function(t,e){var o=t.getAttribute("name");gl(Cf,t,e),t=e[e.length-1],null!==o?t[o]=t.value:null!==t.displayName&&(t[t.displayName]=t.value)},SchemaData:function(t,e){gl($f,t,e)}}),Rf=l(n,{LatLonAltBox:function(t,e){(t=g({},If,t,e))&&((e=e[e.length-1]).extent=[parseFloat(t.west),parseFloat(t.south),parseFloat(t.east),parseFloat(t.north)],e.altitudeMode=t.altitudeMode,e.minAltitude=parseFloat(t.minAltitude),e.maxAltitude=parseFloat(t.maxAltitude))},Lod:function(t,e){(t=g({},Nf,t,e))&&((e=e[e.length-1]).minLodPixels=parseFloat(t.minLodPixels),e.maxLodPixels=parseFloat(t.maxLodPixels),e.minFadeExtent=parseFloat(t.minFadeExtent),e.maxFadeExtent=parseFloat(t.maxFadeExtent))}}),If=l(n,{altitudeMode:o(i),minAltitude:o(ju),maxAltitude:o(ju),north:o(ju),south:o(ju),east:o(ju),west:o(ju)}),Nf=l(n,{minLodPixels:o(ju),maxLodPixels:o(ju),minFadeExtent:o(ju),maxFadeExtent:o(ju)}),Ff=l(n,{extrude:o(Au),altitudeMode:o(i)}),kf=l(n,{coordinates:hl(gf)}),Df=l(n,{innerBoundaryIs:function(t,e){(t=g(void 0,Xf,t,e))&&e[e.length-1].push(t)},outerBoundaryIs:function(t,e){(t=g(void 0,Hf,t,e))&&(e[e.length-1][0]=t)}}),Of=l(n,{when:function(t,e){e=e[e.length-1].Ej,t=il(t,!1),t=Date.parse(t),e.push(isNaN(t)?0:t)}},l(lf,{coord:function(t,e){e=e[e.length-1].A,t=il(t,!1),(t=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(t))?e.push(parseFloat(t[1]),parseFloat(t[2]),parseFloat(t[3]),0):e.push(0,0,0,0)}})),Uf=l(n,{coordinates:hl(gf)}),Gf=l(n,{href:o(df)},l(lf,{x:o(ju),y:o(ju),w:o(ju),h:o(ju)})),Bf=l(n,{Icon:o(function(t,e){return(t=g({},Gf,t,e))?t:null}),heading:o(ju),hotSpot:o(function(t){var e=t.getAttribute("xunits"),o=t.getAttribute("yunits"),i="insetPixels"!==e?"insetPixels"!==o?"bottom-left":"top-left":"insetPixels"!==o?"bottom-right":"top-right";return{x:parseFloat(t.getAttribute("x")),Xg:uf[e],y:parseFloat(t.getAttribute("y")),Yg:uf[o],origin:i}}),scale:o(vf)}),Xf=l(n,{LinearRing:hl(bf)}),Vf=l(n,{color:o(yf),scale:o(vf)}),Wf=l(n,{color:o(yf),width:o(ju)}),Zf=l(n,{LineString:pl(wf),LinearRing:pl(xf),MultiGeometry:pl(Sf),Point:pl(Mf),Polygon:pl(Pf)}),Kf=l(lf,{Track:pl(mf)}),zf=l(n,{ExtendedData:Tf,Region:jf,Link:function(t,e){gl(Yf,t,e)},address:o(i),description:o(i),name:o(i),open:o(Au),phoneNumber:o(i),visibility:o(Au)}),Yf=l(n,{href:o(df)}),Hf=l(n,{LinearRing:hl(bf)}),qf=l(n,{Style:o(Af),key:o(i),styleUrl:o(df)}),Jf=l(n,{ExtendedData:Tf,Region:jf,MultiGeometry:o(Sf,"geometry"),LineString:o(wf,"geometry"),LinearRing:o(xf,"geometry"),Point:o(Mf,"geometry"),Polygon:o(Pf,"geometry"),Style:o(Af),StyleMap:function(t,e){(t=g(void 0,ty,t,e))&&(e=e[e.length-1],Array.isArray(t)?e.Style=t:"string"==typeof t?e.styleUrl=t:O(!1,38))},address:o(i),description:o(i),name:o(i),open:o(Au),phoneNumber:o(i),styleUrl:o(df),visibility:o(Au)},l(lf,{MultiTrack:o(function(t,e){if(t=g([],Kf,t,e))return Ll(e=new M(null),t),e},"geometry"),Track:o(mf,"geometry")})),_f=l(n,{color:o(yf),fill:o(Au),outline:o(Au)}),$f=l(n,{SimpleData:function(t,e){var o=t.getAttribute("name");null!==o&&(t=i(t),e[e.length-1][o]=t)}}),Qf=l(n,{IconStyle:function(t,e){var o,i,r,n,s,a,p,h,l,u,c,f;(t=g({},Bf,t,e))&&(e=e[e.length-1],f="Icon"in t?t.Icon:{},o=!("Icon"in t)||0<Object.keys(f).length,(r=f.href)?i=r:o&&(i=zc),r="bottom-left",(u=t.hotSpot)?(n=[u.x,u.y],s=u.Xg,a=u.Yg,r=u.origin):i===zc?(n=Vc,s=Wc,a=Zc):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(i)&&(n=[.5,0],a=s="fraction"),u=f.x,h=f.y,void 0!==u&&void 0!==h&&(p=[u,h]),u=f.w,f=f.h,void 0!==u&&void 0!==f&&(l=[u,f]),void 0!==(f=t.heading)&&(c=it(f)),t=t.scale,o?(i==zc&&(l=Kc,void 0===t&&(t=Yc)),i=new af({anchor:n,anchorOrigin:r,anchorXUnits:s,anchorYUnits:a,crossOrigin:"anonymous",offset:p,offsetOrigin:"bottom-left",rotation:c,scale:t,size:l,src:i}),e.imageStyle=i):e.imageStyle=qc)},LabelStyle:function(t,e){(t=g({},Vf,t,e))&&(e[e.length-1].textStyle=new pf({fill:new Hh({color:"color"in t?t.color:Bc}),scale:t.scale}))},LineStyle:function(t,e){(t=g({},Wf,t,e))&&(e[e.length-1].strokeStyle=new hp({color:"color"in t?t.color:Bc,width:"width"in t?t.width:1}))},PolyStyle:function(t,e){var o;(t=g({},_f,t,e))&&((e=e[e.length-1]).fillStyle=new Hh({color:"color"in t?t.color:Bc}),void 0!==(o=t.fill)&&(e.fill=o),void 0!==(t=t.outline)&&(e.outline=t))}}),ty=l(n,{Pair:function(t,e){var o;(t=g({},qf,t,e))&&(o=t.key)&&"normal"==o&&((o=t.styleUrl)&&(e[e.length-1]=o),(t=t.Style)&&(e[e.length-1]=t))}});function ey(t,e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE){var o=oy(t,e);if(o)return o}}function oy(t,e){for(var o=e.firstElementChild;o;o=o.nextElementSibling)if(D(n,o.namespaceURI)&&"name"==o.localName)return i(o);for(o=e.firstElementChild;o;o=o.nextElementSibling)if(e=o.localName,D(n,o.namespaceURI)&&("Document"==e||"Folder"==e||"Placemark"==e||"kml"==e)&&(e=oy(t,o)))return e}function iy(t,e){var o=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&X(o,ry(t,e));return o}function ry(t,e){for(var o,i=[],r=e.firstElementChild;r;r=r.nextElementSibling)D(n,r.namespaceURI)&&"NetworkLink"==r.localName&&(o=g({},zf,r,[]),i.push(o));for(r=e.firstElementChild;r;r=r.nextElementSibling)e=r.localName,!D(n,r.namespaceURI)||"Document"!=e&&"Folder"!=e&&"kml"!=e||X(i,ry(t,r));return i}function ny(t,e){var o=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&X(o,t.lf(e));return o}function sy(t,e){var o;for(e=[255*(4==(e=vo(e)).length?e[3]:1),e[2],e[1],e[0]],o=0;o<4;++o){var i=parseInt(e[o],10).toString(16);e[o]=1==i.length?"0"+i:i}ku(t,e.join(""))}function ay(t,e,o){t={node:t};var i,r,n=e.U();"GeometryCollection"==n?(i=e.Vf(),r=Oy):"MultiPoint"==n?(i=e.Zd(),r=Zy):"MultiLineString"==n?(i=e.gd(),r=Ky):"MultiPolygon"==n?(i=e.Td(),r=Yy):O(!1,39),vl(t,Ty,r,i,o)}function py(t,e,o){vl({node:t},Ey,zy,[e],o)}function hy(t,e,o){var i,r={node:t},n=(e.a&&t.setAttribute("id",e.a),t=e.N(),{address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1}),s=(n[e.c]=1,Object.keys(t||{}).sort().filter(function(t){return!n[t]}));0<s.length&&(i=yl(t,s),vl(r,Cy,Vy,[{names:s,values:i}],o)),(s=e.Lc())&&(s=s.call(e,0))&&(s=Array.isArray(s)?s[0]:s,this.j&&(t.Style=s),(s=s.Na())&&(t.name=s.Na())),t=yl(t,s=jy[o[o.length-1].node.namespaceURI]),vl(r,Cy,fl,t,o,s),t=o[0],(e=e.V())&&(e=Ml(e,!0,t)),vl(r,Cy,Oy,[e],o)}function ly(t,e,o){var i=e.ga();(t={node:t}).layout=e.ja,t.stride=e.qa(),vl(t,Ly,By,[i],o)}function uy(t,e,o){var i=(e=e.Sd()).shift();vl(t={node:t},Ry,Wy,e,o),vl(t,Ry,Hy,[i],o)}function cy(t,e){Nu(t,Math.round(1e6*e)/1e6)}(r=hf.prototype).vg=function(t,e){if(t=g([],l(n,{Document:al(this.vg,this),Folder:al(this.vg,this),Placemark:pl(this.Dg,this),Style:this.Jp.bind(this),StyleMap:this.Ip.bind(this)}),t,e,this))return t},r.Dg=function(t,e){var o,i=g({geometry:null},Jf,t,e);if(i)return o=new x,null!==(t=t.getAttribute("id"))&&o.jc(t),e=e[0],(t=i.geometry)&&Ml(t,!1,e),o.Ra(t),delete i.geometry,this.c&&o.hg(ff(i.Style,i.styleUrl,this.a,this.b,this.g)),delete i.Style,o.H(i),o},r.Jp=function(t,e){var o=t.getAttribute("id");null!==o&&(e=Af(t,e))&&(t=t.baseURI&&"about:blank"!==t.baseURI?new URL("#"+o,t.baseURI).href:"#"+o,this.b[t]=e)},r.Ip=function(t,e){var o=t.getAttribute("id");null!==o&&(e=g(void 0,ty,t,e))&&(t=t.baseURI&&"about:blank"!==t.baseURI?new URL("#"+o,t.baseURI).href:"#"+o,this.b[t]=e)},r.xg=function(t,e){return D(n,t.namespaceURI)&&(t=this.Dg(t,[xl(this,t,e)]))?t:null},r.zc=function(t,e){if(!D(n,t.namespaceURI))return[];var o=t.localName;if("Document"==o||"Folder"==o)return(o=this.vg(t,[xl(this,t,e)]))?o:[];if("Placemark"==o)return(e=this.Dg(t,[xl(this,t,e)]))?[e]:[];if("kml"!=o)return[];for(o=[],t=t.firstElementChild;t;t=t.nextElementSibling){var i=this.zc(t,e);i&&X(o,i)}return o},r.Cp=function(t){return rl(t)?ey(this,t):nl(t)?oy(this,t):"string"==typeof t?ey(this,t=sl(t)):void 0},r.Dp=function(t){var e=[];return rl(t)?X(e,iy(this,t)):nl(t)?X(e,ry(this,t)):"string"==typeof t&&X(e,iy(this,t=sl(t))),e},r.Gp=function(t){var e=[];return rl(t)?X(e,ny(this,t)):nl(t)?X(e,this.lf(t)):"string"==typeof t&&X(e,ny(this,t=sl(t))),e},r.lf=function(t){for(var e,o=[],i=t.firstElementChild;i;i=i.nextElementSibling)D(n,i.namespaceURI)&&"Region"==i.localName&&(e=g({},Rf,i,[]),o.push(e));for(i=t.firstElementChild;i;i=i.nextElementSibling)t=i.localName,!D(n,i.namespaceURI)||"Document"!=t&&"Folder"!=t&&"kml"!=t||X(o,this.lf(i));return o};var fy=l(n,["Document","Placemark"]),yy=l(n,{Document:c(function(t,e,o){vl({node:t},gy,Dy,e,o,void 0,this)}),Placemark:c(hy)}),gy=l(n,{Placemark:c(hy)}),dy=l(n,{Data:c(function(t,e,o){t.setAttribute("name",e.name),t={node:t},"object"==typeof(e=e.value)?(null!==e&&e.displayName&&vl(t,dy,fl,[e.displayName],o,["displayName"]),null!==e&&e.value&&vl(t,dy,fl,[e.value],o,["value"])):vl(t,dy,fl,[e],o,["value"])}),value:c(function(t,e){ku(t,e)}),displayName:c(function(t,e){t.appendChild(el.createCDATASection(e))})}),vy={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},by=l(n,["href"],l(lf,["x","y","w","h"])),my=l(n,{href:c(ku)},l(lf,{x:c(Nu),y:c(Nu),w:c(Nu),h:c(Nu)})),wy=l(n,["scale","heading","Icon","hotSpot"]),xy=l(n,{Icon:c(function(t,e,o){t={node:t};var i=by[o[o.length-1].node.namespaceURI],r=yl(e,i);vl(t,my,fl,r,o,i),r=yl(e,i=by[lf[0]]),vl(t,my,ky,r,o,i)}),heading:c(Nu),hotSpot:c(function(t,e){t.setAttribute("x",e.x),t.setAttribute("y",e.y),t.setAttribute("xunits",e.Xg),t.setAttribute("yunits",e.Yg)}),scale:c(cy)}),Sy=l(n,["color","scale"]),My=l(n,{color:c(sy),scale:c(cy)}),Py=l(n,["color","width"]),Ay=l(n,{color:c(sy),width:c(Nu)}),Ey=l(n,{LinearRing:c(ly)}),Ty=l(n,{LineString:c(ly),Point:c(ly),Polygon:c(uy),GeometryCollection:c(ay)}),jy=l(n,"name open visibility address phoneNumber description styleUrl Style".split(" ")),Cy=l(n,{ExtendedData:c(function(t,e,o){t={node:t};var i=e.names;e=e.values;for(var r=i.length,n=0;n<r;n++)vl(t,dy,Xy,[{name:i[n],value:e[n]}],o)}),MultiGeometry:c(ay),LineString:c(ly),LinearRing:c(ly),Point:c(ly),Polygon:c(uy),Style:c(function(t,e,o){t={node:t};var i={},r=e.Fa(),n=e.Ga(),s=e.Y();e=e.Na(),s instanceof af&&(i.IconStyle=s),e&&(i.LabelStyle=e),n&&(i.LineStyle=n),r&&(i.PolyStyle=r),i=yl(i,e=Ny[o[o.length-1].node.namespaceURI]),vl(t,Fy,fl,i,o,e)}),address:c(ku),description:c(ku),name:c(ku),open:c(Iu),phoneNumber:c(ku),styleUrl:c(ku),visibility:c(Iu)}),Ly=l(n,{coordinates:c(function(t,e,o){var i,r=(o=o[o.length-1]).layout;o=o.stride,"XY"==r||"XYM"==r?i=2:"XYZ"==r||"XYZM"==r?i=3:O(!1,34);var n,s=e.length,a="";if(0<s){for(a+=e[0],r=1;r<i;++r)a+=","+e[r];for(n=o;n<s;n+=o)for(a+=" "+e[n],r=1;r<i;++r)a+=","+e[n+r]}ku(t,a)})}),Ry=l(n,{outerBoundaryIs:c(py),innerBoundaryIs:c(py)}),Iy=l(n,{color:c(sy)}),Ny=l(n,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Fy=l(n,{IconStyle:c(function(t,e,o){t={node:t};var i,r,n={},s=e.ic(),a=e.ye(),p={href:e.b.o};s&&(p.w=s[0],p.h=s[1],i=e.Hc(),(r=e.Oc())&&a&&r[0]&&r[1]!==s[1]&&(p.x=r[0],p.y=a[1]-(r[1]+s[1])),i&&i[0]&&i[1]!==s[1]&&(n.hotSpot={x:i[0],Xg:"pixels",y:s[1]-i[1],Yg:"pixels"})),n.Icon=p,1!==(s=e.a)&&(n.scale=s),(e=e.g)&&(n.heading=e),n=yl(n,e=wy[o[o.length-1].node.namespaceURI]),vl(t,xy,fl,n,o,e)}),LabelStyle:c(function(t,e,o){t={node:t};var i={},r=e.Fa();r&&(i.color=r.b),(e=e.b)&&1!==e&&(i.scale=e),i=yl(i,e=Sy[o[o.length-1].node.namespaceURI]),vl(t,My,fl,i,o,e)}),LineStyle:c(function(t,e,o){t={node:t};var i=Py[o[o.length-1].node.namespaceURI];e=yl({color:e.a,width:e.c},i),vl(t,Ay,fl,e,o,i)}),PolyStyle:c(function(t,e,o){vl({node:t},Iy,Gy,[e.b],o)})});function ky(t,e,o){return ol(lf[0],"gx:"+o)}function Dy(t,e){return ol(e[e.length-1].node.namespaceURI,"Placemark")}function Oy(t,e){if(t)return ol(e[e.length-1].node.namespaceURI,vy[t.U()])}var Uy,Gy=cl("color"),By=cl("coordinates"),Xy=cl("Data"),Vy=cl("ExtendedData"),Wy=cl("innerBoundaryIs"),Zy=cl("Point"),Ky=cl("LineString"),zy=cl("LinearRing"),Yy=cl("Polygon"),Hy=cl("outerBoundaryIs");function qy(t,e){this.layers=t.Ag(eg,{},e)}function Jy(t,e){this.x=t,this.y=e}function _y(t,e,o,i,r){this.properties={},this.extent=o,this.type=0,this.Cc=t,this.Ef=-1,this.ne=i,this.pe=r,t.Ag($y,this,e)}function $y(t,e,o){if(1==t)e.id=o.Ka();else if(2==t)for(t=o.Ka()+o.ea;o.ea<t;){var i=e.ne[o.Ka()],r=e.pe[o.Ka()];e.properties[i]=r}else 3==t?e.type=o.Ka():4==t&&(e.Ef=o.ea)}function Qy(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this.Cc=t,this.ne=[],this.pe=[],this.me=[],t.Ag(tg,this,e),this.length=this.me.length}function tg(t,e,o){15===t?e.version=o.Ka():1===t?e.name=o.Gg():5===t?e.extent=o.Ka():2===t?e.me.push(o.ea):3===t?e.ne.push(o.Gg()):4===t&&e.pe.push(function(t){for(var e=null,o=t.Ka()+t.ea;t.ea<o;)e=1==(e=t.Ka()>>3)?t.Gg():2===e?t.yp():3===e?t.up():4===e?t.Kp():5===e?t.Ka():6===e?t.ce():7===e?t.sp():null;return e}(o))}function eg(t,e,o){3===t&&((t=new Uy(o,o.Ka()+o.ea)).length&&(e[t.name]=t))}function og(t,e,o,i,r){this.g=r,this.i=t,this.b=e,this.f=o,this.c=i}function ig(t){wl.call(this),t=t||{},this.defaultDataProjection=new qt({code:"",units:"tile-pixels"}),this.b=t.featureClass||og,this.a=t.geometryName,this.i=t.layerName||"layer",this.c=t.layers||null}function rg(t,e,o){for(var i=0,r=0,n=t.length;r<n;++r){for(var s=t[r],a=0,p=s.length;a<p;++a){var h=s[a];e.push(h.x,h.y)}i+=2*a,o.push(i)}}function ng(){wu.call(this),this.defaultDataProjection=v("EPSG:4326")}function sg(t,e){e[e.length-1].fe[t.getAttribute("k")]=t.getAttribute("v")}hf.prototype.Xb=function(t,e){e=Sl(this,e);var o=ol(n[4],"kml"),i=(o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:gx",lf[0]),o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd"),{node:o}),r={};return 1<t.length?r.Document=t:1==t.length&&(r.Placemark=t[0]),r=yl(r,t=fy[o.namespaceURI]),vl(i,yy,fl,r,[e],t,this),o},mp.Dd=function(){},function(t){function e(t){this.lc=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.type=this.ea=0,this.length=this.lc.length}function s(t,e,o){return o?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}var o=function(t,e,o,i,r){var n=8*r-i-1,s=(1<<n)-1,a=s>>1,p=-7,h=o?-1:1,l=t[e+(r=o?r-1:0)];for(r+=h,o=l&(1<<-p)-1,l>>=-p,p+=n;0<p;o=256*o+t[e+r],r+=h,p-=8);for(n=o&(1<<-p)-1,o>>=-p,p+=i;0<p;n=256*n+t[e+r],r+=h,p-=8);if(0===o)o=1-a;else{if(o===s)return n?NaN:1/0*(l?-1:1);n+=Math.pow(2,i),o-=a}return(l?-1:1)*n*Math.pow(2,o-i)};e.c=0,e.i=1,e.b=2,e.a=5,e.prototype={Ag:function(t,e,o){for(o=o||this.length;this.ea<o;){var i=this.Ka(),r=i>>3,n=this.ea;this.type=7&i,t(r,e,this),this.ea===n&&this.mq(i)}return e},yp:function(){var t=o(this.lc,this.ea,!0,23,4);return this.ea+=4,t},up:function(){var t=o(this.lc,this.ea,!0,52,8);return this.ea+=8,t},Ka:function(t){var e=this.lc,o=e[this.ea++],i=127&o;if(o<128)return i;if(i|=(127&(o=e[this.ea++]))<<7,o<128)return i;if(i|=(127&(o=e[this.ea++]))<<14,o<128)return i;if(i|=(127&(o=e[this.ea++]))<<21,o<128)return i;var o=i|(15&e[this.ea])<<28,i=t,e=this,t=e.lc,r=t[e.ea++],n=(112&r)>>4;if(r<128)return s(o,n,i);if(n|=(127&(r=t[e.ea++]))<<3,r<128)return s(o,n,i);if(n|=(127&(r=t[e.ea++]))<<10,r<128)return s(o,n,i);if(n|=(127&(r=t[e.ea++]))<<17,r<128)return s(o,n,i);if(n|=(127&(r=t[e.ea++]))<<24,r<128)return s(o,n,i);if((r=t[e.ea++])<128)return s(o,n|(1&r)<<31,i);throw Error("Expected varint not more than 10 bytes")},Kp:function(){return this.Ka(!0)},ce:function(){var t=this.Ka();return 1==t%2?(t+1)/-2:t/2},sp:function(){return!!this.Ka()},Gg:function(){for(var t=this.Ka()+this.ea,e=this.lc,o="",i=this.ea;i<t;){var r,n,s,a=e[i],p=null,h=239<a?4:223<a?3:191<a?2:1;if(t<i+h)break;1===h?a<128&&(p=a):2===h?128==(192&(r=e[i+1]))&&(p=(31&a)<<6|63&r)<=127&&(p=null):3===h?(r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&((p=(15&a)<<12|(63&r)<<6|63&n)<=2047||55296<=p&&p<=57343)&&(p=null)):4===h&&(r=e[i+1],n=e[i+2],s=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&((p=(15&a)<<18|(63&r)<<12|(63&n)<<6|63&s)<=65535||1114112<=p)&&(p=null)),null===p?(p=65533,h=1):65535<p&&(p-=65536,o+=String.fromCharCode(p>>>10&1023|55296),p=56320|1023&p),o+=String.fromCharCode(p),i+=h}return this.ea=t,o},mq:function(t){if((t&=7)===e.c)for(;127<this.lc[this.ea++];);else if(t===e.b)this.ea=this.Ka()+this.ea;else if(t===e.a)this.ea+=4;else{if(t!==e.i)throw Error("Unimplemented type: "+t);this.ea+=8}}},t.default=e}(mp.Dd=mp.Dd||{}),mp.Dd=mp.Dd.default,mp.xf={},mp.xf.Bf=function(){},ti=mp.xf=mp.xf||{},Jy.prototype={clone:function(){return new Jy(this.x,this.y)},add:function(t){return this.clone().Yj(t)},rotate:function(t){return this.clone().hk(t)},round:function(){return this.clone().ik()},angle:function(){return Math.atan2(this.y,this.x)},Yj:function(t){return this.x+=t.x,this.y+=t.y,this},hk:function(t){var e=Math.cos(t),o=(t=Math.sin(t))*this.x+e*this.y;return this.x=e*this.x-t*this.y,this.y=o,this},ik:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Jy.Kq=function(t){return!(t instanceof Jy)&&Array.isArray(t)?new Jy(t[0],t[1]):t},_y.b=["Unknown","Point","LineString","Polygon"],_y.prototype.Oh=function(){var t=this.Cc;t.ea=this.Ef;for(var e,o=t.Ka()+t.ea,i=1,r=0,n=0,s=0,a=[];t.ea<o;)if(r||(i=7&(r=t.Ka()),r>>=3),r--,1===i||2===i)n+=t.ce(),s+=t.ce(),1===i&&(e&&a.push(e),e=[]),e.push(new Jy(n,s));else{if(7!==i)throw Error("unknown command "+i);e&&e.push(e[0].clone())}return e&&a.push(e),a},_y.prototype.bbox=function(){var t=this.Cc;t.ea=this.Ef;for(var e=t.Ka()+t.ea,o=1,i=0,r=0,n=0,s=1/0,a=-1/0,p=1/0,h=-1/0;t.ea<e;)if(i||(o=7&(i=t.Ka()),i>>=3),i--,1===o||2===o)(r+=t.ce())<s&&(s=r),a<r&&(a=r),(n+=t.ce())<p&&(p=n),h<n&&(h=n);else if(7!==o)throw Error("unknown command "+o);return[s,p,a,h]},(Uy=Qy).prototype.feature=function(t){if(t<0||t>=this.me.length)throw Error("feature index out of bounds");return this.Cc.ea=this.me[t],t=this.Cc.Ka()+this.Cc.ea,new _y(this.Cc,t,this.extent,this.ne,this.pe)},fi=Uy,ti.default={Bf:qy,Wj:_y,Xj:fi},ti.Bf=qy,ti.Wj=_y,ti.Xj=fi,(r=og.prototype).get=function(t){return this.c[t]},r.Bb=function(){return this.f},r.G=function(){return this.a||(this.a="Point"===this.i?wt(this.b):xt(this.b,0,this.b.length,2)),this.a},r.Wn=function(){return this.g},r.ec=function(){return this.b},r.ga=og.prototype.ec,r.V=function(){return this},r.Xn=function(){return this.c},r.Vd=og.prototype.V,r.qa=function(){return 2},r.Lc=Y,r.U=function(){return this.i},e(ig,wl),(r=ig.prototype).U=function(){return"arraybuffer"},r.Oa=function(t,e){var o,i=this.c,r=(t=new mp.Dd(t),t=new mp.xf.Bf(t),[]),n=this.b;for(o in t.layers)if(!i||-1!=i.indexOf(o))for(var s,a,p,h,l,u,c,f,y,g=t.layers[o],d=0,v=g.length;d<v;++d)n===og?(s=void 0,p=o,rg(h=(a=g.feature(d)).Oh(),u=[],l=[]),1===(c=a.type)?s=1===h.length?"Point":"MultiPoint":2===c?s=1===h.length?"LineString":"MultiLineString":3===c&&(s="Polygon"),(h=a.properties)[this.i]=p,s=new this.b(s,u,l,h,a.id)):(c=g.feature(d),u=o,l=e,s=new this.b,a=c.id,(p=c.properties)[this.i]=u,this.a&&s.Tc(this.a),u=void 0,0===(h=c.type)?u=null:(f=[],y=[],rg(c=c.Oh(),y,f),1===h?u=new(1===c.length?m:P)(null):2===h?u=new(1===c.length?S:M)(null):3===h&&(u=new w(null)),u.ba("XY",y,f)),l=Ml(u,!1,Sl(this,l)),s.Ra(l),s.jc(a),s.H(p)),r.push(s);return r},r.kb=function(){return this.defaultDataProjection},r.mn=function(t){this.c=t},r.Tb=function(){},r.Sc=function(){},r.Bd=function(){},r.$c=function(){},r.Wb=function(){},e(ng,wu);var ag=[null],pg=l(ag,{nd:function(t,e){e[e.length-1].md.push(t.getAttribute("ref"))},tag:sg}),hg=l(ag,{node:function(t,e){var o=e[0],i=e[e.length-1],r=t.getAttribute("id"),n=[parseFloat(t.getAttribute("lon")),parseFloat(t.getAttribute("lat"))];i.Sh[r]=n,Zt((t=g({fe:{}},lg,t,e)).fe)||(Ml(n=new m(n),!1,o),(o=new x(n)).jc(r),o.H(t.fe),i.features.push(o))},way:function(t,e){var o=e[0],i=t.getAttribute("id");t=g({md:[],fe:{}},pg,t,e),e=e[e.length-1];for(var r=[],n=0,s=t.md.length;n<s;n++)X(r,e.Sh[t.md[n]]);t.md[0]==t.md[t.md.length-1]?(n=new w(null)).ba("XY",r,[r.length]):(n=new S(null)).ba("XY",r),Ml(n,!1,o),(o=new x(n)).jc(i),o.H(t.fe),e.features.push(o)}}),lg=l(ag,{tag:sg});function ug(t){return t.getAttributeNS("http://www.w3.org/1999/xlink","href")}function cg(){}function fg(){}ng.prototype.zc=function(t,e){return e=xl(this,t,e),"osm"==t.localName&&(t=g({Sh:{},features:[]},hg,t,[e])).features?t.features:[]},ng.prototype.Vg=function(){},ng.prototype.Xb=function(){},ng.prototype.ie=function(){},cg.prototype.read=function(t){return rl(t)?this.a(t):nl(t)?this.b(t):"string"==typeof t?(t=sl(t),this.a(t)):null},e(fg,cg),fg.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},fg.prototype.b=function(t){return(t=g({},yg,t,[]))?t:null};var ti=[null,"http://www.opengis.net/ows/1.1"],yg=l(ti,{ServiceIdentification:o(function(t,e){return g({},Eg,t,e)}),ServiceProvider:o(function(t,e){return g({},Tg,t,e)}),OperationsMetadata:o(function(t,e){return g({},Sg,t,e)})}),gg=l(ti,{DeliveryPoint:o(i),City:o(i),AdministrativeArea:o(i),PostalCode:o(i),Country:o(i),ElectronicMailAddress:o(i)}),dg=l(ti,{Value:ll(i)}),vg=l(ti,{AllowedValues:o(function(t,e){return g({},dg,t,e)})}),bg=l(ti,{Phone:o(function(t,e){return g({},Mg,t,e)}),Address:o(function(t,e){return g({},gg,t,e)})}),mg=l(ti,{HTTP:o(function(t,e){return g({},wg,t,e)})}),wg=l(ti,{Get:ll(function(t,e){var o=ug(t);if(o)return g({href:o},Pg,t,e)}),Post:void 0}),xg=l(ti,{DCP:o(function(t,e){return g({},mg,t,e)})}),Sg=l(ti,{Operation:function(t,e){var o=t.getAttribute("name");(t=g({},xg,t,e))&&(e[e.length-1][o]=t)}}),Mg=l(ti,{Voice:o(i),Facsimile:o(i)}),Pg=l(ti,{Constraint:ll(function(t,e){var o=t.getAttribute("name");if(o)return g({name:o},vg,t,e)})}),Ag=l(ti,{IndividualName:o(i),PositionName:o(i),ContactInfo:o(function(t,e){return g({},bg,t,e)})}),Eg=l(ti,{Title:o(i),ServiceTypeVersion:o(i),ServiceType:o(i)}),Tg=l(ti,{ProviderName:o(i),ProviderSite:o(ug),ServiceContact:o(function(t,e){return g({},Ag,t,e)})});function jg(t,e,o,i){for(var r=void 0!==i?i:[],n=i=0;n<e;){var s=t[n++];for(r[i++]=t[n++],r[i++]=s,s=2;s<o;++s)r[i++]=t[n++]}r.length=i}function Cg(t){t=t||{},wl.call(this),this.defaultDataProjection=v("EPSG:4326"),this.b=t.factor||1e5,this.a=t.geometryLayout||"XY"}function Lg(t,e,o){for(var i=Array(e),r=0;r<e;++r)i[r]=0;for(var n=0,s=t.length;n<s;)for(r=0;r<e;++r,++n){var a=t[n],p=a-i[r];i[r]=a,t[n]=p}return Ig(t,o||1e5)}function Rg(t,e,o){for(var i,r=Array(e),n=0;n<e;++n)r[n]=0;for(t=Ng(t,o||1e5),o=0,i=t.length;o<i;)for(n=0;n<e;++n,++o)r[n]+=t[o],t[o]=r[n];return t}function Ig(t,e){e=e||1e5;for(var o=0,i=t.length;o<i;++o)t[o]=Math.round(t[o]*e);for(e=0,o=t.length;e<o;++e)i=t[e],t[e]=i<0?~(i<<1):i<<1;for(e="",o=0,i=t.length;o<i;++o){for(var r=t[o],n="";32<=r;)n+=String.fromCharCode(63+(32|31&r)),r>>=5;e+=n+=String.fromCharCode(r+63)}return e}function Ng(t,e){e=e||1e5;for(var o=[],i=0,r=0,n=0,s=t.length;n<s;++n){var a=t.charCodeAt(n)-63,i=i|(31&a)<<r;a<32?(o.push(i),r=i=0):r+=5}for(t=0,i=o.length;t<i;++t)r=o[t],o[t]=1&r?~(r>>1):r>>1;for(t=0,i=o.length;t<i;++t)o[t]/=e;return o}function Fg(t){t=t||{},wl.call(this),this.a=t.layerName,this.b=t.layers||null,this.defaultDataProjection=v(t.defaultDataProjection||"EPSG:4326")}function kg(t,e){for(var o=[],i=0,r=t.length;i<r;++i){var n=t[i];0<i&&o.pop(),n=0<=n?e[n]:e[~n].slice().reverse(),o.push.apply(o,n)}for(t=0,e=o.length;t<e;++t)o[t]=o[t].slice();return o}function Dg(t,e,o,i,r,n,s){var a=t.type,p=Ug[a];return o="Point"===a||"MultiPoint"===a?p(t,o,i):p(t,e),(e=new x).Ra(Ml(o,!1,s)),void 0!==t.id&&e.jc(t.id),t=t.properties,r&&((t=t||{})[r]=n),t&&e.H(t),e}function Og(t,e,o){t[0]=t[0]*e[0]+o[0],t[1]=t[1]*e[1]+o[1]}e(Cg,Dc),(r=Cg.prototype).ae=function(t,e){return new x(t=this.wd(t,e))},r.zg=function(t,e){return[this.ae(t,e)]},r.wd=function(t,e){var o=vr(this.a);return jg(t=Rg(t,o,this.b),t.length,o,t),Ml(new S(Lr(t,0,t.length,o),this.a),!1,Sl(this,e))},r.ge=function(t,e){return(t=t.V())?this.Cd(t,e):(O(!1,40),"")},r.Wg=function(t,e){return this.ge(t[0],e)},r.Cd=function(t,e){return e=(t=Ml(t,!0,Sl(this,e))).ga(),t=t.qa(),jg(e,e.length,t,e),Lg(e,t,this.b)},e(Fg,Pl),Fg.prototype.yg=function(t,e){if("Topology"!=t.type)return[];var o=null,i=null,r=(t.transform&&(o=(n=t.transform).scale,i=n.translate),t.arcs);if(n)for(var n=o,s=i,a=0,p=r.length;a<p;++a)for(var h=r[a],l=n,u=s,c=0,f=0,y=0,g=h.length;y<g;++y){var d=h[y];c+=d[0],f+=d[1],d[0]=c,d[1]=f,Og(d,l,u)}n=[],t=t.objects;var v,s=this.a;for(v in t)this.b&&-1==this.b.indexOf(v)||("GeometryCollection"===t[v].type?(a=t[v],n.push.apply(n,function(t,e,o,i,r,n,s){for(var a=[],p=0,h=(t=t.geometries).length;p<h;++p)a[p]=Dg(t[p],e,o,i,r,n,s);return a}(a,r,o,i,s,v,e))):(a=t[v],n.push(Dg(a,r,o,i,s,v,e))));return n},Fg.prototype.Fg=function(){return this.defaultDataProjection};var Ug={Point:function(t,e,o){return t=t.coordinates,e&&o&&Og(t,e,o),new m(t)},LineString:function(t,e){return new S(t=kg(t.arcs,e))},Polygon:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i)o[i]=kg(t.arcs[i],e);return new w(o)},MultiPoint:function(t,e,o){if(t=t.coordinates,e&&o)for(var i=0,r=t.length;i<r;++i)Og(t[i],e,o);return new P(t)},MultiLineString:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i)o[i]=kg(t.arcs[i],e);return new M(o)},MultiPolygon:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i){for(var n=t.arcs[i],s=[],a=0,p=n.length;a<p;++a)s[a]=kg(n[a],e);o[i]=s}return new f(o)}};function Gg(t){this.c=(t=t||{}).featureType,this.a=t.featureNS,this.b=t.gmlFormat||new y,this.o=t.schemaLocation||Bg["1.1.0"],wu.call(this)}(r=Fg.prototype).Zc=function(){},r.he=function(){},r.je=function(){},r.Cg=function(){},r.Rc=function(){},e(Gg,wu);var Bg={"1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"};function Xg(t,e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return Wg(t,e)}Gg.prototype.zc=function(t,e){var o={featureType:this.c,featureNS:this.a};return Xt(o,xl(this,t,e||{})),e=[o],this.b.b["http://www.opengis.net/gml"].featureMember=pl(Mu.prototype.be),t=(t=g([],this.b.b,t,e,this.b))?t:[]},Gg.prototype.j=function(t){return rl(t)?Hg(t):nl(t)?g({},Yg,t,[]):"string"==typeof t?Hg(t=sl(t)):void 0},Gg.prototype.g=function(t){return rl(t)?Xg(this,t):nl(t)?Wg(this,t):"string"==typeof t?Xg(this,t=sl(t)):void 0};var Vg={"http://www.opengis.net/gml":{boundedBy:o(Mu.prototype.gf,"bounds")}};function Wg(t,e){var o={},i=Ru(e.getAttribute("numberOfFeatures"));return o.numberOfFeatures=i,g(o,Vg,e,[],t.b)}var Zg={"http://www.opengis.net/wfs":{totalInserted:o(Lu),totalUpdated:o(Lu),totalDeleted:o(Lu)}},Kg={"http://www.opengis.net/ogc":{FeatureId:pl(function(t){return t.getAttribute("fid")})}},zg={"http://www.opengis.net/wfs":{Feature:function(t,e){gl(Kg,t,e)}}},Yg={"http://www.opengis.net/wfs":{TransactionSummary:o(function(t,e){return g({},Zg,t,e)},"transactionSummary"),InsertResults:o(function(t,e){return g([],zg,t,e)},"insertIds")}};function Hg(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return g({},Yg,t,[])}var qg={"http://www.opengis.net/wfs":{PropertyName:c(ku)}};function Jg(t,e){var o=ol("http://www.opengis.net/ogc","Filter"),i=ol("http://www.opengis.net/ogc","FeatureId");o.appendChild(i),i.setAttribute("fid",e),t.appendChild(o)}function _g(t,e){return e.indexOf(t=(t||"feature")+":")?t+e:e}var $g={"http://www.opengis.net/wfs":{Insert:c(function(t,e,o){var i=(r=o[o.length-1]).gmlVersion,r=ol(r.featureNS,r.featureType);if(t.appendChild(r),2===i){t=Zu.prototype,(i=e.a)&&r.setAttribute("fid",i);var n=(i=o[o.length-1]).featureNS,s=e.c,a=(i.lb||(i.lb={},i.lb[n]={}),e.N()),p=(e=[],[]);for(l in a){var h=a[l];null!==h&&(e.push(l),p.push(h),l==s||h instanceof yr?l in i.lb[n]||(i.lb[n][l]=c(t.ai,t)):l in i.lb[n]||(i.lb[n][l]=c(ku)))}var l=Xt({},i);l.node=r,vl(l,i.lb,cl(void 0,n),p,o,e)}else y.prototype.ii(r,e,o)}),Update:c(function(t,e,o){var i=o[o.length-1],r=(O(void 0!==e.a,27),i.featurePrefix),n=i.featureNS;if(t.setAttribute("typeName",_g(r,i.featureType)),t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+r,n),void 0!==(r=e.a)){for(var s=[],a=0,p=(n=e.O()).length;a<p;a++){var h=e.get(n[a]);void 0!==h&&s.push({name:n[a],value:h})}vl({gmlVersion:i.gmlVersion,node:t,hasZ:i.hasZ,srsName:i.srsName},$g,cl("Property"),s,o),Jg(t,r)}}),Delete:c(function(t,e,o){o=o[o.length-1],O(void 0!==e.a,26);var i=o.featurePrefix,r=o.featureNS;t.setAttribute("typeName",_g(i,o.featureType)),t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+i,r),void 0!==(e=e.a)&&Jg(t,e)}),Property:c(function(t,e,o){var i=ol("http://www.opengis.net/wfs","Name"),r=o[o.length-1].gmlVersion;t.appendChild(i),ku(i,e.name),void 0!==e.value&&null!==e.value&&(i=ol("http://www.opengis.net/wfs","Value"),t.appendChild(i),e.value instanceof yr?2===r?Zu.prototype.ai(i,e.value,o):y.prototype.od(i,e.value,o):ku(i,e.value))}),Native:c(function(t,e){e.vq&&t.setAttribute("vendorId",e.vq),void 0!==e.Vp&&t.setAttribute("safeToIgnore",e.Vp),void 0!==e.value&&ku(t,e.value)})}};function Qg(t,e,o){var i={node:t};e.b.forEach(function(t){vl(i,nd,cl(t.kc),[t],o)})}function td(t,e){void 0!==e.a&&t.setAttribute("matchCase",e.a.toString()),od(t,e.b),id(t,""+e.i)}function ed(t,e,o){ku(t=ol("http://www.opengis.net/ogc",t),o),e.appendChild(t)}function od(t,e){ed("PropertyName",t,e)}function id(t,e){ed("Literal",t,e)}function rd(t,e){var o=ol("http://www.opengis.net/gml","TimeInstant");t.appendChild(o),t=ol("http://www.opengis.net/gml","timePosition"),o.appendChild(t),ku(t,e)}var nd={"http://www.opengis.net/wfs":{Query:c(function(t,e,o){var i=o[o.length-1],r=i.featurePrefix,n=i.featureNS,s=i.propertyNames,a=i.srsName;t.setAttribute("typeName",r?_g(r,e):e),a&&t.setAttribute("srsName",a),n&&t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+r,n),(e=Xt({},i)).node=t,vl(e,qg,cl("PropertyName"),s,o),(i=i.filter)&&(s=ol("http://www.opengis.net/ogc","Filter"),t.appendChild(s),vl({node:s},nd,cl(i.kc),[i],o))})},"http://www.opengis.net/ogc":{During:c(function(t,e){var o=ol("http://www.opengis.net/fes","ValueReference");ku(o,e.b),t.appendChild(o),o=ol("http://www.opengis.net/gml","TimePeriod"),t.appendChild(o),t=ol("http://www.opengis.net/gml","begin"),o.appendChild(t),rd(t,e.a),t=ol("http://www.opengis.net/gml","end"),o.appendChild(t),rd(t,e.i)}),And:c(Qg),Or:c(Qg),Not:c(function(t,e,o){e=e.condition,vl({node:t},nd,cl(e.kc),[e],o)}),BBOX:c(function(t,e,o){o[o.length-1].srsName=e.srsName,od(t,e.geometryName),y.prototype.od(t,e.extent,o)}),Intersects:c(function(t,e,o){o[o.length-1].srsName=e.srsName,od(t,e.geometryName),y.prototype.od(t,e.geometry,o)}),Within:c(function(t,e,o){o[o.length-1].srsName=e.srsName,od(t,e.geometryName),y.prototype.od(t,e.geometry,o)}),PropertyIsEqualTo:c(td),PropertyIsNotEqualTo:c(td),PropertyIsLessThan:c(td),PropertyIsLessThanOrEqualTo:c(td),PropertyIsGreaterThan:c(td),PropertyIsGreaterThanOrEqualTo:c(td),PropertyIsNull:c(function(t,e){od(t,e.b)}),PropertyIsBetween:c(function(t,e){od(t,e.b);var o=ol("http://www.opengis.net/ogc","LowerBoundary");t.appendChild(o),id(o,""+e.a),o=ol("http://www.opengis.net/ogc","UpperBoundary"),t.appendChild(o),id(o,""+e.i)}),PropertyIsLike:c(function(t,e){t.setAttribute("wildCard",e.g),t.setAttribute("singleChar",e.f),t.setAttribute("escapeChar",e.i),void 0!==e.a&&t.setAttribute("matchCase",e.a.toString()),od(t,e.b),id(t,""+e.c)})}};function sd(t){t=t||{},wl.call(this),this.b=void 0!==t.splitCollection&&t.splitCollection}function ad(t){return(t=t.X()).length?t.join(" "):""}function pd(t){for(var e=[],o=0,i=(t=t.X()).length;o<i;++o)e.push(t[o].join(" "));return e.join(",")}function hd(t){for(var e=[],o=0,i=(t=t.Sd()).length;o<i;++o)e.push("("+pd(t[o])+")");return e.join(",")}function ld(t){var e,o=t.U(),i=(0,ud[o])(t),o=o.toUpperCase();return t instanceof b&&(e="","XYZ"!==(t=t.ja)&&"XYZM"!==t||(e+="Z"),"XYM"!==t&&"XYZM"!==t||(e+="M"),0<(t=e).length&&(o+=" "+t)),i.length?o+"("+i+")":o+" EMPTY"}Gg.prototype.l=function(t){var e,o,i=ol("http://www.opengis.net/wfs","GetFeature");return i.setAttribute("service","WFS"),i.setAttribute("version","1.1.0"),t&&(t.handle&&i.setAttribute("handle",t.handle),t.outputFormat&&i.setAttribute("outputFormat",t.outputFormat),void 0!==t.maxFeatures&&i.setAttribute("maxFeatures",t.maxFeatures),t.resultType&&i.setAttribute("resultType",t.resultType),void 0!==t.startIndex&&i.setAttribute("startIndex",t.startIndex),void 0!==t.count&&i.setAttribute("count",t.count),o=t.filter,t.bbox&&(O(t.geometryName,12),e=lu(t.geometryName,t.bbox,t.srsName),o=o?hu(o,e):e)),i.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.o),o={node:i,srsName:t.srsName,featureNS:t.featureNS||this.a,featurePrefix:t.featurePrefix,geometryName:t.geometryName,filter:o,propertyNames:t.propertyNames||[]},O(Array.isArray(t.featureTypes),11),t=t.featureTypes,(e=Xt({},(o=[o])[o.length-1])).node=i,vl(e,nd,cl("Query"),t,o),i},Gg.prototype.v=function(t,e,o,i){var r,n=[],s=ol("http://www.opengis.net/wfs","Transaction"),a=i.version||"1.1.0",p="1.0.0"===a?2:3;return s.setAttribute("service","WFS"),s.setAttribute("version",a),i&&(r=i.gmlOptions||{},i.handle&&s.setAttribute("handle",i.handle)),s.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",Bg[a]),t&&(a={node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,hasZ:i.hasZ,srsName:i.srsName},Xt(a,r),vl(a,$g,cl("Insert"),t,n)),e&&(a={node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,hasZ:i.hasZ,srsName:i.srsName},Xt(a,r),vl(a,$g,cl("Update"),e,n)),o&&vl({node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,srsName:i.srsName},$g,cl("Delete"),o,n),i.nativeElements&&vl({node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,srsName:i.srsName},$g,cl("Native"),i.nativeElements,n),s},Gg.prototype.Eg=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.kf(t);return null},Gg.prototype.kf=function(t){if(t.firstElementChild&&t.firstElementChild.firstElementChild)for(t=(t=t.firstElementChild.firstElementChild).firstElementChild;t;t=t.nextElementSibling){var e;if(0!==t.childNodes.length&&(1!==t.childNodes.length||3!==t.firstChild.nodeType))return this.b.gf(t,e=[{}]),v(e.pop().srsName)}return null},e(sd,Dc);var ud={Point:ad,LineString:pd,Polygon:hd,MultiPoint:function(t){for(var e=[],o=0,i=(t=t.Zd()).length;o<i;++o)e.push("("+ad(t[o])+")");return e.join(",")},MultiLineString:function(t){for(var e=[],o=0,i=(t=t.gd()).length;o<i;++o)e.push("("+pd(t[o])+")");return e.join(",")},MultiPolygon:function(t){for(var e=[],o=0,i=(t=t.Td()).length;o<i;++o)e.push("("+hd(t[o])+")");return e.join(",")},GeometryCollection:function(t){for(var e=[],o=0,i=(t=t.Vf()).length;o<i;++o)e.push(ld(t[o]));return e.join(",")}};function cd(t){this.a=t,this.b=-1}function fd(t){this.i=t,this.a="XY"}function yd(t){t.b=function t(e){var o=e.a.charAt(++e.b),i={position:e.b,value:o};if("("==o)i.type=2;else if(","==o)i.type=5;else if(")"==o)i.type=3;else if("0"<=o&&o<="9"||"."==o||"-"==o){i.type=4;var o=e.b,r=!1,n=!1;do{"."==s?r=!0:"e"!=s&&"E"!=s||(n=!0);var s=e.a.charAt(++e.b)}while("0"<=s&&s<="9"||"."==s&&(void 0===r||!r)||!n&&("e"==s||"E"==s)||n&&("-"==s||"+"==s));e=parseFloat(e.a.substring(o,e.b--)),i.value=e}else if("a"<=o&&o<="z"||"A"<=o&&o<="Z"){for(i.type=1,o=e.b;"a"<=(s=e.a.charAt(++e.b))&&s<="z"||"A"<=s&&s<="Z";);e=e.a.substring(o,e.b--).toUpperCase(),i.value=e}else{if(" "==o||"\t"==o||"\r"==o||"\n"==o)return t(e);if(""!==o)throw Error("Unexpected character: "+o);i.type=6}return i}(t.i)}function gd(t,e){return(e=t.b.type==e)&&yd(t),e}function dd(t){for(var e=[],o=t.a.length,i=0;i<o;++i){var r=t.b;if(!gd(t,4))break;e.push(r.value)}if(e.length==o)return e;throw Error(wd(t))}function vd(t){for(var e=[dd(t)];gd(t,5);)e.push(dd(t));return e}function bd(t){for(var e=[t.sg()];gd(t,5);)e.push(t.sg());return e}function md(t){var e=1==t.b.type&&"EMPTY"==t.b.value;return e&&yd(t),e}function wd(t){return"Unexpected `"+t.b.value+"` at position "+t.b.position+" in `"+t.i.a+"`"}(r=sd.prototype).ae=function(t,e){return(t=this.wd(t,e))?((e=new x).Ra(t),e):null},r.zg=function(t,e){var o=[];t=this.wd(t,e),e=[];for(var i=0,r=(o=this.b&&"GeometryCollection"==t.U()?t.a:[t]).length;i<r;++i)(t=new x).Ra(o[i]),e.push(t);return e},r.wd=function(t,e){return yd(t=new fd(new cd(t))),(t=function t(e){var o=e.b;if(gd(e,1)){var o=o.value,i="XY",r=e.b;if(1==e.b.type&&("Z"===(r=r.value)?i="XYZ":"M"===r?i="XYM":"ZM"===r&&(i="XYZM"),"XY"!==i&&yd(e)),e.a=i,"GEOMETRYCOLLECTION"==o){t:{if(gd(e,2)){for(o=[];o.push(t(e)),gd(e,5););if(gd(e,3)){e=o;break t}}else if(md(e)){e=[];break t}throw Error(wd(e))}return new uu(e)}if(r=Sd[o],i=xd[o],r&&i)return o=r.call(e),new i(o,e.a);throw Error("Invalid geometry type: "+o)}throw Error(wd(e))}(t))?Ml(t,!1,e):null},r.ge=function(t,e){return(t=t.V())?this.Cd(t,e):""},r.Wg=function(t,e){if(1==t.length)return this.ge(t[0],e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(t[i].V());return t=new uu(o),this.Cd(t,e)},r.Cd=function(t,e){return ld(Ml(t,!0,e))},(r=fd.prototype).tg=function(){if(gd(this,2)){var t=dd(this);if(gd(this,3))return t}else if(md(this))return null;throw Error(wd(this))},r.sg=function(){if(gd(this,2)){var t=vd(this);if(gd(this,3))return t}else if(md(this))return[];throw Error(wd(this))},r.ug=function(){if(gd(this,2)){var t=bd(this);if(gd(this,3))return t}else if(md(this))return[];throw Error(wd(this))},r.fp=function(){if(gd(this,2)){var t;if(2==this.b.type)for(t=[this.tg()];gd(this,5);)t.push(this.tg());else t=vd(this);if(gd(this,3))return t}else if(md(this))return[];throw Error(wd(this))},r.ep=function(){if(gd(this,2)){var t=bd(this);if(gd(this,3))return t}else if(md(this))return[];throw Error(wd(this))},r.gp=function(){if(gd(this,2)){for(var t=[this.ug()];gd(this,5);)t.push(this.ug());if(gd(this,3))return t}else if(md(this))return[];throw Error(wd(this))};var xd={POINT:m,LINESTRING:S,POLYGON:w,MULTIPOINT:P,MULTILINESTRING:M,MULTIPOLYGON:f},Sd={POINT:fd.prototype.tg,LINESTRING:fd.prototype.sg,POLYGON:fd.prototype.ug,MULTIPOINT:fd.prototype.fp,MULTILINESTRING:fd.prototype.ep,MULTIPOLYGON:fd.prototype.gp};function Md(){this.version=void 0}function Pd(t,e){return g({},Wd,t,e)}function Ad(t,e){return g({},Gd,t,e)}function Ed(t,e){if(e=Pd(t,e))return t=[Ru(t.getAttribute("width")),Ru(t.getAttribute("height"))],e.size=t,e}function Td(t,e){return g([],Zd,t,e)}e(Md,cg),Md.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},Md.prototype.b=function(t){return this.version=t.getAttribute("version").trim(),(t=g({version:this.version},jd,t,[]))?t:null};var fi=[null,"http://www.opengis.net/wms"],jd=l(fi,{Service:o(function(t,e){return g({},Ld,t,e)}),Capability:o(function(t,e){return g({},Cd,t,e)})}),Cd=l(fi,{Request:o(function(t,e){return g({},Ud,t,e)}),Exception:o(function(t,e){return g([],Fd,t,e)}),Layer:o(function(t,e){return g({},kd,t,e)})}),Ld=l(fi,{Name:o(i),Title:o(i),Abstract:o(i),KeywordList:o(Td),OnlineResource:o(ug),ContactInformation:o(function(t,e){return g({},Rd,t,e)}),Fees:o(i),AccessConstraints:o(i),LayerLimit:o(Lu),MaxWidth:o(Lu),MaxHeight:o(Lu)}),Rd=l(fi,{ContactPersonPrimary:o(function(t,e){return g({},Id,t,e)}),ContactPosition:o(i),ContactAddress:o(function(t,e){return g({},Nd,t,e)}),ContactVoiceTelephone:o(i),ContactFacsimileTelephone:o(i),ContactElectronicMailAddress:o(i)}),Id=l(fi,{ContactPerson:o(i),ContactOrganization:o(i)}),Nd=l(fi,{AddressType:o(i),Address:o(i),City:o(i),StateOrProvince:o(i),PostCode:o(i),Country:o(i)}),Fd=l(fi,{Format:pl(i)}),kd=l(fi,{Name:o(i),Title:o(i),Abstract:o(i),KeywordList:o(Td),CRS:ll(i),EX_GeographicBoundingBox:o(function(t,e){if(i=g({},Od,t,e)){t=i.westBoundLongitude,e=i.southBoundLatitude;var o=i.eastBoundLongitude,i=i.northBoundLatitude;if(void 0!==t&&void 0!==e&&void 0!==o&&void 0!==i)return[t,e,o,i]}}),BoundingBox:ll(function(t){var e=[Cu(t.getAttribute("minx")),Cu(t.getAttribute("miny")),Cu(t.getAttribute("maxx")),Cu(t.getAttribute("maxy"))],o=[Cu(t.getAttribute("resx")),Cu(t.getAttribute("resy"))];return{crs:t.getAttribute("CRS"),extent:e,res:o}}),Dimension:ll(function(t){return{name:t.getAttribute("name"),units:t.getAttribute("units"),unitSymbol:t.getAttribute("unitSymbol"),default:t.getAttribute("default"),multipleValues:Eu(t.getAttribute("multipleValues")),nearestValue:Eu(t.getAttribute("nearestValue")),current:Eu(t.getAttribute("current")),values:i(t)}}),Attribution:o(function(t,e){return g({},Dd,t,e)}),AuthorityURL:ll(function(t,e){if(e=Pd(t,e))return e.name=t.getAttribute("name"),e}),Identifier:ll(i),MetadataURL:ll(function(t,e){if(e=Pd(t,e))return e.type=t.getAttribute("type"),e}),DataURL:ll(Pd),FeatureListURL:ll(Pd),Style:ll(function(t,e){return g({},Vd,t,e)}),MinScaleDenominator:o(ju),MaxScaleDenominator:o(ju),Layer:ll(function(t,e){var o=e[e.length-1],i=g({},kd,t,e);if(i)return void 0===(e=Eu(t.getAttribute("queryable")))&&(e=o.queryable),i.queryable=void 0!==e&&e,void 0===(e=Ru(t.getAttribute("cascaded")))&&(e=o.cascaded),i.cascaded=e,void 0===(e=Eu(t.getAttribute("opaque")))&&(e=o.opaque),i.opaque=void 0!==e&&e,void 0===(e=Eu(t.getAttribute("noSubsets")))&&(e=o.noSubsets),i.noSubsets=void 0!==e&&e,(e=Cu(t.getAttribute("fixedWidth")))||(e=o.fixedWidth),i.fixedWidth=e,(t=Cu(t.getAttribute("fixedHeight")))||(t=o.fixedHeight),i.fixedHeight=t,["Style","CRS","AuthorityURL"].forEach(function(t){t in o&&(i[t]=(i[t]||[]).concat(o[t]))}),"EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" ").forEach(function(t){t in i||(i[t]=o[t])}),i})}),Dd=l(fi,{Title:o(i),OnlineResource:o(ug),LogoURL:o(Ed)}),Od=l(fi,{westBoundLongitude:o(ju),eastBoundLongitude:o(ju),southBoundLatitude:o(ju),northBoundLatitude:o(ju)}),Ud=l(fi,{GetCapabilities:o(Ad),GetMap:o(Ad),GetFeatureInfo:o(Ad)}),Gd=l(fi,{Format:ll(i),DCPType:ll(function(t,e){return g({},Bd,t,e)})}),Bd=l(fi,{HTTP:o(function(t,e){return g({},Xd,t,e)})}),Xd=l(fi,{Get:o(Pd),Post:o(Pd)}),Vd=l(fi,{Name:o(i),Title:o(i),Abstract:o(i),LegendURL:ll(Ed),StyleSheetURL:o(Pd),StyleURL:o(Pd)}),Wd=l(fi,{Format:o(i),OnlineResource:o(ug)}),Zd=l(fi,{Keyword:pl(i)});function Kd(t){t=t||{},this.a="http://mapserver.gis.umn.edu/mapserver",this.b=new Zu,this.c=t.layers||null,wu.call(this)}function zd(){this.i=new fg}function Yd(t){var e=i(t).split(" ");if(e&&2==e.length&&(t=+e[0],e=+e[1],!isNaN(t)&&!isNaN(e)))return[t,e]}e(Kd,wu),Kd.prototype.zc=function(t,e){var o={},i=(e&&Xt(o,xl(this,t,e)),o=[o],t.setAttribute("namespaceURI",this.a),t.localName);if(e=[],t.childNodes.length){if("msGMLOutput"==i)for(var r=0,n=t.childNodes.length;r<n;r++){var s,a,p,h=t.childNodes[r];h.nodeType===Node.ELEMENT_NODE&&(s=o[0],a=h.localName.replace("_layer",""),this.c&&!D(this.c,a)||(a+="_feature",s.featureType=a,s.featureNS=this.a,(p={})[a]=pl(this.b.wg,this.b),s=l([s.featureNS,null],p),h.setAttribute("namespaceURI",this.a),(h=g([],s,h,o,this.b))&&X(e,h)))}"FeatureCollection"==i&&(t=g([],this.b.b,t,[{}],this.b))&&(e=t)}return e},Kd.prototype.Vg=function(){},Kd.prototype.Xb=function(){},Kd.prototype.ie=function(){},e(zd,cg),zd.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},zd.prototype.b=function(t){var e=t.getAttribute("version").trim(),o=this.i.b(t);return o?(o.version=e,(o=g(o,Hd,t,[]))?o:null):null};var ag=[null,"http://www.opengis.net/wmts/1.0"],ti=[null,"http://www.opengis.net/ows/1.1"],Hd=l(ag,{Contents:o(function(t,e){return g({},qd,t,e)})}),qd=l(ag,{Layer:ll(function(t,e){return g({},Jd,t,e)}),TileMatrixSet:ll(function(t,e){return g({},i0,t,e)})}),Jd=l(ag,{Style:ll(function(t,e){if(e=g({},_d,t,e))return t="true"===t.getAttribute("isDefault"),e.isDefault=t,e}),Format:ll(i),TileMatrixSetLink:ll(function(t,e){return g({},$d,t,e)}),Dimension:ll(function(t,e){return g({},e0,t,e)}),ResourceURL:ll(function(t){var e=t.getAttribute("format"),o=t.getAttribute("template"),i=(t=t.getAttribute("resourceType"),{});return e&&(i.format=e),o&&(i.template=o),t&&(i.resourceType=t),i})},l(ti,{Title:o(i),Abstract:o(i),WGS84BoundingBox:o(function(t,e){if(2==(t=g([],o0,t,e)).length)return ht(t)}),Identifier:o(i)})),_d=l(ag,{LegendURL:ll(function(t){var e={};return e.format=t.getAttribute("format"),e.href=ug(t),e})},l(ti,{Title:o(i),Identifier:o(i)})),$d=l(ag,{TileMatrixSet:o(i),TileMatrixSetLimits:o(function(t,e){return g([],Qd,t,e)})}),Qd=l(ag,{TileMatrixLimits:pl(function(t,e){return g({},t0,t,e)})}),t0=l(ag,{TileMatrix:o(i),MinTileRow:o(Lu),MaxTileRow:o(Lu),MinTileCol:o(Lu),MaxTileCol:o(Lu)}),e0=l(ag,{Default:o(i),Value:ll(i)},l(ti,{Identifier:o(i)})),o0=l(ti,{LowerCorner:pl(Yd),UpperCorner:pl(Yd)}),i0=l(ag,{WellKnownScaleSet:o(i),TileMatrix:ll(function(t,e){return g({},r0,t,e)})},l(ti,{SupportedCRS:o(i),Identifier:o(i)})),r0=l(ag,{TopLeftCorner:o(Yd),ScaleDenominator:o(ju),TileWidth:o(Lu),TileHeight:o(Lu),MatrixWidth:o(Lu),MatrixHeight:o(Lu)},l(ti,{Identifier:o(i)}));function n0(t){ro.call(this),t=t||{},this.a=null,this.f=xe,this.c=void 0,d(this,so("projection"),this.Am,this),d(this,so("tracking"),this.Bm,this),void 0!==t.projection&&this.Wh(t.projection),void 0!==t.trackingOptions&&this.wj(t.trackingOptions),this.Ke(void 0!==t.tracking&&t.tracking)}function s0(t,e,o){b.call(this),this.Ng(t,e||0,o)}function a0(t){var e=t.A[t.a]-t.A[0];return e*e+(t=t.A[t.a+1]-t.A[1])*t}function p0(t,e,o){for(var i,r,n,s,a,p,h=[],l=t(0),u=t(1),c=e(l),f=[u,l],y=[e(u),c],g=[1,0],d={},v=1e5;0<--v&&0<g.length;)s=g.pop(),l=f.pop(),c=y.pop(),(u=s.toString())in d||(h.push(c[0],c[1]),d[u]=!0),a=g.pop(),u=f.pop(),i=y.pop(),et((n=e(r=t(p=(s+a)/2)))[0],n[1],c[0],c[1],i[0],i[1])<o?(h.push(i[0],i[1]),d[u=a.toString()]=!0):(g.push(a,p,p,s),y.push(i,n,n,c),f.push(u,r,r,l));return h}function h0(t){t=t||{},this.j=this.v=null,this.f=this.o=1/0,this.g=this.l=-1/0,this.ra=this.oa=1/0,this.R=this.I=-1/0,this.Jb=void 0!==t.targetSize?t.targetSize:100,this.fb=void 0!==t.maxLines?t.maxLines:100,this.i=[],this.c=[],this.pa=void 0!==t.strokeStyle?t.strokeStyle:l0,this.D=this.u=void 0,this.a=this.b=this.S=null,1==t.showLabels&&(this.na=t.lonLabelFormatter||ir.bind(this,"EW"),this.Ua=t.latLabelFormatter||ir.bind(this,"NS"),this.fa=null==t.lonLabelPosition?0:t.lonLabelPosition,this.T=null==t.latLabelPosition?1:t.latLabelPosition,this.B=void 0!==t.lonLabelStyle?t.lonLabelStyle:new pf({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new Hh({color:"rgba(0,0,0,1)"}),stroke:new hp({color:"rgba(255,255,255,1)",width:3})}),this.C=void 0!==t.latLabelStyle?t.latLabelStyle:new pf({font:"12px Calibri,sans-serif",textAlign:"end",fill:new Hh({color:"rgba(0,0,0,1)"}),stroke:new hp({color:"rgba(255,255,255,1)",width:3})}),this.b=[],this.a=[]),this.setMap(void 0!==t.map?t.map:null)}e(n0,ro),(r=n0.prototype).ka=function(){this.Ke(!1),ro.prototype.ka.call(this)},r.Am=function(){var t=this.Uh();t&&(this.f=we(v("EPSG:4326"),t),this.a&&this.set("position",this.f(this.a)))},r.Bm=function(){var t;hi&&((t=this.Vh())&&void 0===this.c?this.c=navigator.geolocation.watchPosition(this.np.bind(this),this.op.bind(this),this.Gh()):t||void 0===this.c||(navigator.geolocation.clearWatch(this.c),this.c=void 0))},r.np=function(t){t=t.coords,this.set("accuracy",t.accuracy),this.set("altitude",null===t.altitude?void 0:t.altitude),this.set("altitudeAccuracy",null===t.altitudeAccuracy?void 0:t.altitudeAccuracy),this.set("heading",null===t.heading?void 0:it(t.heading)),this.a?(this.a[0]=t.longitude,this.a[1]=t.latitude):this.a=[t.longitude,t.latitude];var e=this.f(this.a);this.set("position",e),this.set("speed",null===t.speed?void 0:t.speed),(t=Yr(ie,this.a,t.accuracy)).Dc(this.f),this.set("accuracyGeometry",t),this.s()},r.op=function(t){t.type="error",this.Ke(!1),this.b(t)},r.Dk=function(){return this.get("accuracy")},r.Ek=function(){return this.get("accuracyGeometry")||null},r.Gk=function(){return this.get("altitude")},r.Hk=function(){return this.get("altitudeAccuracy")},r.ym=function(){return this.get("heading")},r.zm=function(){return this.get("position")},r.Uh=function(){return this.get("projection")},r.ll=function(){return this.get("speed")},r.Vh=function(){return this.get("tracking")},r.Gh=function(){return this.get("trackingOptions")},r.Wh=function(t){this.set("projection",v(t))},r.Ke=function(t){this.set("tracking",t)},r.wj=function(t){this.set("trackingOptions",t)},e(s0,b),(r=s0.prototype).clone=function(){var t=new s0(null);return br(t,this.ja,this.A.slice()),t.s(),t},r.Kb=function(t,e,o,i){var r=this.A,n=(t-=r[0],e-r[1]);if((e=t*t+n*n)<i){if(e)for(i=this.pd()/Math.sqrt(e),o[0]=r[0]+i*t,o[1]=r[1]+i*n,i=2;i<this.a;++i)o[i]=r[i];else for(i=0;i<this.a;++i)o[i]=r[i];return o.length=this.a,e}return i},r.Mc=function(t,e){var o=this.A;return(t-=o[0])*t+(e-=o[1])*e<=a0(this)},r.wa=function(){return this.A.slice(0,this.a)},r.se=function(t){var e=this.A,o=e[this.a]-e[0];return bt(e[0]-o,e[1]-o,e[0]+o,e[1]+o,t)},r.pd=function(){return Math.sqrt(a0(this))},r.U=function(){return"Circle"},r.Xa=function(t){var e;return!!Ot(t,this.G())&&(e=this.wa(),t[0]<=e[0]&&t[2]>=e[0]||t[1]<=e[1]&&t[3]>=e[1]||Et(t,this.sb,this))},r.ob=function(t){var e,o=this.a,i=t.slice();for(i[o]=i[0]+(this.A[o]-this.A[0]),e=1;e<o;++e)i[o+e]=t[e];br(this,this.ja,i),this.s()},r.Ng=function(t,e,o){if(t){var i;for(mr(this,o,t,0),this.A||(this.A=[]),t=Tr(o=this.A,t),o[t++]=o[0]+e,e=1,i=this.a;e<i;++e)o[t++]=o[e];o.length=t}else br(this,"XY",null);this.s()},r.X=function(){},r.ma=function(){},r.Uc=function(t){this.A[this.a]=this.A[0]+t,this.s()};var l0=new hp({color:"rgba(0,0,0,0.2)"}),u0=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001];function c0(t,e,o,i,r,n,s){var a,p,h,l,u=s;return a=e,p=o,h=i,l=t.j,r=r,o=p0(function(t){return[a,p+(h-p)*t]},me(v("EPSG:4326"),l),r),(u=void 0!==t.i[u]?t.i[u]:new S(null)).ba("XY",o),Ot(u.G(),n)&&(t.b&&(o=s,n=[(i=u.ga())[0],Q(n[1]+Math.abs(n[1]-n[3])*t.fa,Math.max(n[1],i[1]),Math.min(n[3],i[i.length-1]))],(o=t.b[o]?t.b[o].Qd:new m(null)).ma(n),t.b[s]={Qd:o,text:t.na(e)}),t.i[s++]=u),s}function f0(t,e,o,i,r){var n,s,a,p,h,l=r;return n=e,s=t.g,a=t.f,h=t.j,p=o,o=p0(function(t){return[s+(a-s)*t,n]},me(v("EPSG:4326"),h),p),(l=void 0!==t.c[l]?t.c[l]:new S(null)).ba("XY",o),Ot(l.G(),i)&&(t.a&&(o=r,h=l.ga(),i=[Q(i[0]+Math.abs(i[0]-i[2])*t.T,Math.max(i[0],h[0]),Math.min(i[2],h[h.length-2])),h[1]],(o=t.a[o]?t.a[o].Qd:new m(null)).ma(i),t.a[r]={Qd:o,text:t.Ua(e)}),t.c[r++]=l),r}function y0(t,e,o,i,r){eo.call(this),this.f=r,this.extent=t,this.a=o,this.resolution=e,this.state=i}function g0(t,e,o,i,r,n,s){y0.call(this,t,e,o,0,i),this.j=r,this.M=new Image,null!==n&&(this.M.crossOrigin=n),this.c={},this.i=null,this.state=0,this.g=s}function d0(t,e,o,i,r,n){this.c=n||null,y0.call(this,t,e,o,n?0:2,i),this.i=r}function v0(t,e){eo.call(this),this.ta=t,this.state=e,this.i=null,this.key=""}function b0(t){if(t.i){var e=t.i;do{if(2==e.getState())return e}while(e=e.i)}return t}function m0(t,e){t.state=e,t.s()}function w0(t,e,o,i,r){v0.call(this,t,e),this.g=o,this.M=new Image,null!==i&&(this.M.crossOrigin=i),this.c=null,this.j=r}function x0(t){t.c.forEach(qe),t.c=null}(r=h0.prototype).Cm=function(){return this.v},r.al=function(){return this.i},r.hl=function(){return this.c},r.Kh=function(t){var e,o,i,r,n,s,a,p,h,l,u=t.vectorContext,c=t.frameState,f=c.extent,y=(t=c.viewState).center,g=t.projection,d=t.resolution;for(t=d*d/(4*(t=c.pixelRatio)*t),this.j&&be(this.j,g)||(e=v("EPSG:4326"),o=g.G(),l=Pe(i=g.g,e,g),r=i[2],n=i[1],s=i[0],a=l[3],p=l[2],h=l[1],l=l[0],this.o=i[3],this.f=r,this.l=n,this.g=s,this.oa=a,this.ra=p,this.I=h,this.R=l,this.u=me(e,g),this.D=me(g,e),this.S=this.D(Lt(o)),this.j=g),g.i&&(e=Dt(g=g.G()),(c=c.focus[0])<g[0]||c>g[2])&&(c=e*Math.ceil((g[0]-c)/e),f=[f[0]+c,f[1],f[2]+c,f[3]]),c=this.S[0],g=this.S[1],e=-1,i=Math.pow(this.Jb*d,2),r=[],n=[],d=0,o=u0.length;d<o&&(r[0]=c-(s=u0[d]/2),r[1]=g-s,n[0]=c+s,n[1]=g+s,this.u(r,r),this.u(n,n),!((s=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2))<=i));++d)e=u0[d];if(-1==(d=e))this.i.length=this.c.length=0,this.b&&(this.b.length=0),this.a&&(this.a.length=0);else{for(y=(c=this.D(y))[0],c=c[1],g=this.fb,i=(e=Pe(e=[Math.max(f[0],this.R),Math.max(f[1],this.I),Math.min(f[2],this.ra),Math.min(f[3],this.oa)],this.j,"EPSG:4326"))[3],n=e[1],o=c0(this,r=Q(y=Math.floor(y/d)*d,this.g,this.f),n,i,t,f,0),e=0;r!=this.g&&e++<g;)o=c0(this,r=Math.max(r-d,this.g),n,i,t,f,o);for(r=Q(y,this.g,this.f),e=0;r!=this.f&&e++<g;)o=c0(this,r=Math.min(r+d,this.f),n,i,t,f,o);for(this.i.length=o,this.b&&(this.b.length=o),o=f0(this,y=Q(c=Math.floor(c/d)*d,this.l,this.o),t,f,0),e=0;y!=this.l&&e++<g;)o=f0(this,y=Math.max(y-d,this.l),t,f,o);for(y=Q(c,this.l,this.o),e=0;y!=this.o&&e++<g;)o=f0(this,y=Math.min(y+d,this.o),t,f,o);this.c.length=o,this.a&&(this.a.length=o)}for(u.Ma(null,this.pa),t=0,y=this.i.length;t<y;++t)d=this.i[t],u.zb(d);for(t=0,y=this.c.length;t<y;++t)d=this.c[t],u.zb(d);if(this.b)for(t=0,y=this.b.length;t<y;++t)d=this.b[t],this.B.xd(d.text),u.Cb(this.B),u.zb(d.Qd);if(this.a)for(t=0,y=this.a.length;t<y;++t)d=this.a[t],this.C.xd(d.text),u.Cb(this.C),u.zb(d.Qd)},r.setMap=function(t){this.v&&(this.v.K("postcompose",this.Kh,this),this.v.render()),t&&(t.J("postcompose",this.Kh,this),t.render()),this.v=t},e(y0,eo),y0.prototype.s=function(){this.b("change")},y0.prototype.G=function(){return this.extent},y0.prototype.getState=function(){return this.state},e(g0,y0),(r=g0.prototype).Y=function(t){var e;return void 0!==t?(t=U(t))in this.c?this.c[t]:(e=Zt(this.c)?this.M:this.M.cloneNode(!1),this.c[t]=e):this.M},r.Fm=function(){this.state=3,this.i.forEach(qe),this.i=null,this.s()},r.Gm=function(){void 0===this.resolution&&(this.resolution=It(this.extent)/this.M.height),this.state=2,this.i.forEach(qe),this.i=null,this.s()},r.load=function(){0!=this.state&&3!=this.state||(this.state=1,this.s(),this.i=[Ye(this.M,"error",this.Fm,this),Ye(this.M,"load",this.Gm,this)],this.g(this,this.j))},r.Og=function(t){this.M=t},e(d0,y0),d0.prototype.g=function(t){this.state=t?3:2,this.s()},d0.prototype.load=function(){0==this.state&&(this.state=1,this.s(),this.c(this.g.bind(this)))},d0.prototype.Y=function(){return this.i},e(v0,eo),v0.prototype.s=function(){this.b("change")},v0.prototype.bb=function(){return this.key+"/"+this.ta},v0.prototype.f=function(){return this.ta},v0.prototype.getState=function(){return this.state},e(w0,v0),(r=w0.prototype).ka=function(){1==this.state&&x0(this),this.i&&$e(this.i),this.state=5,this.s(),v0.prototype.ka.call(this)},r.Y=function(){return this.M},r.bb=function(){return this.g},r.Dm=function(){this.state=3,this.M=S0,x0(this),this.s()},r.Em=function(){this.state=this.M.naturalWidth&&this.M.naturalHeight?2:4,x0(this),this.s()},r.load=function(){0!=this.state&&3!=this.state||(this.state=1,this.s(),this.c=[Ye(this.M,"error",this.Dm,this),Ye(this.M,"load",this.Em,this)],this.j(this,this.g))};var S0=new Image;function M0(t){t=t||{},pn.call(this,{handleEvent:cr}),this.g=t.formatConstructors||[],this.o=t.projection?v(t.projection):null,this.a=null,this.target=t.target||null}function P0(t){for(var e=0,o=(t=t.dataTransfer.files).length;e<o;++e){var i=t.item(e),r=new FileReader;r.addEventListener("load",this.j.bind(this,i)),r.readAsText(i)}}function A0(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy"}function E0(t){var e=t.v;e&&(e=t.target||e.a,t.a=[d(e,"drop",P0,t),d(e,"dragenter",A0,t),d(e,"dragover",A0,t),d(e,"drop",A0,t)])}function T0(t){t.a&&(t.a.forEach(qe),t.a=null)}S0.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",e(M0,pn),M0.prototype.j=function(t,e){e=e.target.result;for(var o=this.v,i=(i=this.o)||o.Z().v,r=[],n=0,s=(o=this.g).length;n<s;++n){var a=new o[n],p={featureProjection:i};try{r=a.Oa(e,p)}catch(t){r=null}if(r&&0<r.length)break}this.b(new C0(j0,t,r,i))},M0.prototype.Ha=function(t){pn.prototype.Ha.call(this,t),(t?E0:T0)(this)},M0.prototype.setMap=function(t){T0(this),pn.prototype.setMap.call(this,t),this.c()&&E0(this)};var j0="addfeatures";function C0(t,e,o,i){Qe.call(this,t),this.features=o,this.file=e,this.projection=i}function L0(t){t=t||{},Mn.call(this,{handleDownEvent:N0,handleDragEvent:R0,handleUpEvent:I0}),this.l=t.condition||mn,this.a=this.g=void 0,this.j=0,this.u=void 0!==t.duration?t.duration:400}function R0(t){var e,o,i;xn(t)&&(o=(e=t.map).Ob(),t=(i=t.pixel)[0]-o[0]/2,i=o[1]/2-i[1],o=Math.atan2(i,t),t=Math.sqrt(t*t+i*i),(e=e.Z()).g.rotation!==_i&&void 0!==this.g&&(i=o-this.g,hn(e,e.Qa()-i)),this.g=o,void 0!==this.a&&(o=this.a*(e.Pa()/t),un(e,o)),void 0!==this.a&&(this.j=this.a/t),this.a=t)}function I0(t){if(!xn(t))return!0;nn(t=t.map.Z(),1,-1);var e=this.j-1,o=t.Qa(),o=t.constrainRotation(o,0),o=(hn(t,o,void 0,void 0),t.Pa()),i=this.u,o=t.constrainResolution(o,0,e);return un(t,o,void 0,i),this.j=0,!1}function N0(t){return!(!xn(t)||!this.l(t))&&(nn(t.map.Z(),1,1),!(this.a=this.g=void 0))}function F0(t,e,o,i){this.fb=t,this.Ua=e,this.overlaps=i,this.c=0,this.resolution=o,this.ra=this.oa=null,this.a=[],this.coordinates=[],this.T=ms(),this.b=[],this.B=null,this.fa=ms(),this.na=ms()}function k0(t,e,o,i,r,n,s){for(var a=t.coordinates.length,p=t.Sf(),h=(s&&(o+=r),s=[e[o],e[o+1]],[NaN,NaN]),l=!0,u=o+r;u<i;u+=r){h[0]=e[u],h[1]=e[u+1];var c=dt(p,h),l=c!==f?(l&&(t.coordinates[a++]=s[0],t.coordinates[a++]=s[1]),t.coordinates[a++]=h[0],t.coordinates[a++]=h[1],!1):1!==c||(t.coordinates[a++]=h[0],t.coordinates[a++]=h[1],!1),f=(s[0]=h[0],s[1]=h[1],c)}return(n&&l||u===o+r)&&(t.coordinates[a++]=s[0],t.coordinates[a++]=s[1]),a}function D0(t,e){t.oa=[0,e,0],t.a.push(t.oa),t.ra=[0,e,0],t.b.push(t.ra)}function O0(t,e,o,i,r,n,s,a,p){var h;t.B&&Z(i,t.T)?h=t.B:(t.B||(t.B=[]),h=gr(t.coordinates,0,t.coordinates.length,2,i,t.B),Ms(t.T,i)),i=!Zt(n);for(var l,u,c=0,D=s.length,f=0,y=t.fa,g=t.na,d=0,v=0,b=t.a!=s||t.overlaps?0:200;c<D;)switch((N=s[c])[0]){case 0:f=N[1],i&&n[U(f).toString()]||!f.V()?c=N[2]:void 0===p||Ot(p,f.V().G())?++c:c=N[2]+1;break;case 1:b<d&&(t.Va(e,r),d=0),b<v&&(e.stroke(),v=0),d||v||(e.beginPath(),l=u=NaN),++c;break;case 2:m=h[f=N[1]],N=h[f+1],j=h[f+2]-m,f=h[f+3]-N,f=Math.sqrt(j*j+f*f),e.moveTo(m+f,N),e.arc(m,N,f,0,2*Math.PI,!0),++c;break;case 3:e.closePath(),++c;break;case 4:f=N[1];var m=N[2],w=N[3],x=N[4]*o,S=N[5]*o,M=N[6],P=N[7],A=N[8],E=N[9],T=N[10],j=N[11],C=N[12],L=N[13],R=N[14];for(T&&(j+=r);f<m;f+=2){var I,N=h[f]-x,T=h[f+1]-S,F=(L&&(N=Math.round(N),T=Math.round(T)),1==C&&!j||(js(y,I=N+x,F=T+S,C,C,j,-I,-F),e.setTransform.apply(e,y)),I=e.globalAlpha,1!=P&&(e.globalAlpha=I*P),R+A>w.width?w.width-A:R),O=M+E>w.height?w.height-E:M;e.drawImage(w,A,E,F,O,N,T,F*o,O*o),1!=P&&(e.globalAlpha=I),1==C&&!j||e.setTransform.apply(e,g)}++c;break;case 5:for(f=N[1],m=N[2],S=N[3],M=N[4]*o,P=N[5]*o,j=N[6],C=N[7]*o,w=N[8],x=N[9],(T=N[10])&&(j+=r);f<m;f+=2){for(N=h[f]+M,T=h[f+1]+P,1==C&&!j||(js(y,N,T,C,C,j,-N,-T),e.setTransform.apply(e,y)),1<(E=(A=S.split("\n")).length)?T-=(E-1)/2*(L=Math.round(1.5*e.measureText("M").width)):L=0,R=0;R<E;R++)I=A[R],x&&e.strokeText(I,N,T),w&&e.fillText(I,N,T),T+=L;1==C&&!j||e.setTransform.apply(e,g)}++c;break;case 6:if(a&&(f=a(f=N[1])))return f;++c;break;case 7:b?d++:t.Va(e,r),++c;break;case 8:for(f=N[1],m=N[2],N=h[f],C=(T=h[f+1])+.5|0,(j=N+.5|0)===l&&C===u||(e.moveTo(N,T),l=j,u=C),f+=2;f<m;f+=2)j=(N=h[f])+.5|0,C=(T=h[f+1])+.5|0,f!=m-2&&j===l&&C===u||(e.lineTo(N,T),l=j,u=C);++c;break;case 9:t.R=N[2],d&&(t.Va(e,r),d=0,v&&(e.stroke(),v=0)),e.fillStyle=N[1],++c;break;case 10:var f=void 0===N[8]||N[8],k=N[9];m=N[2],v&&(e.stroke(),v=0),e.strokeStyle=N[1],e.lineWidth=f?m*o:m,e.lineCap=N[3],e.lineJoin=N[4],e.miterLimit=N[5],si&&(m=N[6],j=N[7],f&&o!==k&&(m=m.map(function(t){return t*o/k}),j*=o/k,N[6]=m,N[7]=j,N[9]=o),e.lineDashOffset=j,e.setLineDash(m)),++c;break;case 11:e.font=N[1],e.textAlign=N[2],e.textBaseline=N[3],++c;break;case 12:b?v++:e.stroke(),++c;break;default:++c}d&&t.Va(e,r),v&&e.stroke()}function U0(t){var e=t.b;e.reverse();for(var o=e.length,i=-1,r=0;r<o;++r){var n=e[r],s=n[0];if(6==s)i=r;else if(0==s){for(n[2]=r,n=t.b,s=r;i<s;){var a=n[i];n[i]=n[s],n[s]=a,++i,--s}i=-1}}}function G0(t,e){t.oa[2]=t.a.length,t.oa=null,t.ra[2]=t.b.length,t.ra=null,t.a.push(e=[6,e]),t.b.push(e)}function B0(t,e,o,i){F0.call(this,t,e,o,i),this.M=this.I=null,this.C=this.D=this.S=this.u=this.v=this.l=this.o=this.j=this.g=this.f=this.i=void 0}function X0(t,e,o,i){F0.call(this,t,e,o,i),this.f=null,this.i={Md:void 0,Gd:void 0,Hd:null,Id:void 0,Jd:void 0,Kd:void 0,Ld:void 0,eg:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}function V0(t,e,o,i,r){var n=t.coordinates.length;return e=k0(t,e,o,i,r,!1,!1),t.a.push(n=[8,n,e]),t.b.push(n),i}function W0(t){var e=t.i,o=e.strokeStyle,i=e.lineCap,r=e.lineDash,n=e.lineDashOffset,s=e.lineJoin,a=e.lineWidth,p=e.miterLimit;e.Md==o&&e.Gd==i&&Z(e.Hd,r)&&e.Id==n&&e.Jd==s&&e.Kd==a&&e.Ld==p||(e.eg!=t.coordinates.length&&(t.a.push([12]),e.eg=t.coordinates.length),t.a.push([10,o,a,i,s,p,r,n,!0,1],[1]),e.Md=o,e.Gd=i,e.Hd=r,e.Id=n,e.Jd=s,e.Kd=a,e.Ld=p)}function Z0(t,e,o,i){F0.call(this,t,e,o,i),this.f=null,this.i={oh:void 0,Md:void 0,Gd:void 0,Hd:null,Id:void 0,Jd:void 0,Kd:void 0,Ld:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}function K0(t,e,o,i,r){var n=void 0!==(s=t.i).fillStyle,s=null!=s.strokeStyle,a=i.length,p=[1];for(t.a.push(p),t.b.push(p),p=0;p<a;++p){var h=i[p],l=t.coordinates.length;o=k0(t,e,o,h,r,!0,!s),t.a.push(o=[8,l,o]),t.b.push(o),s&&(t.a.push(o=[3]),t.b.push(o)),o=h}return t.b.push(e=[7]),n&&t.a.push(e),s&&(t.a.push(n=[12]),t.b.push(n)),o}function z0(t,e){var o,i=t.i,r=i.fillStyle,n=i.strokeStyle,s=i.lineCap,a=i.lineDash,p=i.lineDashOffset,h=i.lineJoin,l=i.lineWidth,u=i.miterLimit;void 0===r||"string"==typeof r&&i.oh==r||(o=[9,r],"string"!=typeof r&&(e=e.G(),o.push([e[0],e[3]])),t.a.push(o),i.oh=i.fillStyle),void 0===n||i.Md==n&&i.Gd==s&&Z(i.Hd,a)&&i.Id==p&&i.Jd==h&&i.Kd==l&&i.Ld==u||(t.a.push([10,n,l,s,h,u,a,p,!0,1]),i.Md=n,i.Gd=s,i.Hd=a,i.Id=p,i.Jd=h,i.Kd=l,i.Ld=u)}function Y0(t,e,o,i){F0.call(this,t,e,o,i),this.C=this.D=this.S=null,this.Ia="",this.o=this.j=0,this.l=void 0,this.u=this.v=0,this.g=this.f=this.i=null}function H0(t,e,o,i,r){this.v=t,this.c=e,this.o=i,this.l=o,this.f=r,this.a={},this.g=Po(1,1),this.j=ms()}e(C0,Qe),e(L0,Mn),e(F0,Xs),F0.prototype.Va=function(t,e){var o;this.R&&(o=Ps(this.T,this.R.slice()),t.translate(o[0],o[1]),t.rotate(e)),t.fill(),this.R&&t.setTransform.apply(t,this.na)},F0.prototype.La=function(t,e,o,i,r){O0(this,t,e,o,i,r,this.a,void 0,void 0)},F0.prototype.Te=Y,F0.prototype.Sf=function(){return this.Ua},e(B0,F0),B0.prototype.qc=function(t,e){var o,i;this.M&&(D0(this,e),o=t.ga(),i=this.coordinates.length,t=k0(this,o,0,o.length,t.qa(),!1,!1),this.a.push([4,i,t,this.M,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),this.b.push([4,i,t,this.I,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),G0(this,e))},B0.prototype.oc=function(t,e){var o,i;this.M&&(D0(this,e),o=t.ga(),i=this.coordinates.length,t=k0(this,o,0,o.length,t.qa(),!1,!1),this.a.push([4,i,t,this.M,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),this.b.push([4,i,t,this.I,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),G0(this,e))},B0.prototype.Te=function(){U0(this),this.f=this.i=void 0,this.M=this.I=null,this.C=this.D=this.u=this.v=this.l=this.o=this.j=this.S=this.g=void 0},B0.prototype.Ub=function(t){var e=t.Hc(),o=t.ic(),i=t.qg(1),r=t.Y(1),n=t.Oc();this.i=e[0],this.f=e[1],this.I=i,this.M=r,this.g=o[1],this.j=t.f,this.o=n[0],this.l=n[1],this.v=t.l,this.u=t.g,this.S=t.a,this.D=t.v,this.C=o[0]},e(X0,F0),(r=X0.prototype).Sf=function(){return this.f||(this.f=ut(this.Ua),0<this.c&<(this.f,this.resolution*(this.c+1)/2,this.f)),this.f},r.mc=function(t,e){var o=this.i,i=o.lineWidth;void 0!==o.strokeStyle&&void 0!==i&&(W0(this),D0(this,e),this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1],[1]),V0(this,o=t.ga(),0,o.length,t.qa()),this.b.push([12]),G0(this,e))},r.nc=function(t,e){var o=this.i,i=o.lineWidth;if(void 0!==o.strokeStyle&&void 0!==i){W0(this),D0(this,e),this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1],[1]),o=t.Bb(),i=t.ga(),t=t.qa();for(var r=0,n=0,s=o.length;n<s;++n)r=V0(this,i,r,o[n],t);this.b.push([12]),G0(this,e)}},r.Te=function(){this.i.eg!=this.coordinates.length&&this.a.push([12]),U0(this),this.i=null},r.Ma=function(t,e){t=e.a,this.i.strokeStyle=Mo(t||Gs),t=e.f,this.i.lineCap=void 0!==t?t:"round",t=e.i,this.i.lineDash=t||Us,t=e.g,this.i.lineDashOffset=t||0,t=e.j,this.i.lineJoin=void 0!==t?t:"round",t=e.c,this.i.lineWidth=void 0!==t?t:1,e=e.o,this.i.miterLimit=void 0!==e?e:10,this.i.lineWidth>this.c&&(this.c=this.i.lineWidth,this.f=null)},e(Z0,F0),(r=Z0.prototype).Zb=function(t,e){var o,i=this.i,r=i.strokeStyle;void 0===i.fillStyle&&void 0===r||(z0(this,t),D0(this,e),this.b.push([9,bo(Os)]),void 0!==i.strokeStyle&&this.b.push([10,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset,!0,1]),o=t.ga(),r=this.coordinates.length,k0(this,o,0,o.length,t.qa(),!1,!1),this.a.push(t=[1],r=[2,r]),this.b.push(t,r),this.b.push(t=[7]),void 0!==i.fillStyle&&this.a.push(t),void 0!==i.strokeStyle&&(this.a.push(i=[12]),this.b.push(i)),G0(this,e))},r.rc=function(t,e){var o=this.i,o=(z0(this,t),D0(this,e),this.b.push([9,bo(Os)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]),t.Bb());K0(this,t.ec(),0,o,t.qa()),G0(this,e)},r.pc=function(t,e){var o=this.i,i=o.strokeStyle;if(void 0!==o.fillStyle||void 0!==i){z0(this,t),D0(this,e),this.b.push([9,bo(Os)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]),o=t.c,i=Il(t),t=t.qa();for(var r=0,n=0,s=o.length;n<s;++n)r=K0(this,i,r,o[n],t);G0(this,e)}},r.Te=function(){U0(this),this.i=null;var t=this.fb;if(t)for(var e=this.coordinates,o=0,i=e.length;o<i;++o)e[o]=t*Math.round(e[o]/t)},r.Sf=function(){return this.f||(this.f=ut(this.Ua),0<this.c&<(this.f,this.resolution*(this.c+1)/2,this.f)),this.f},r.Ma=function(t,e){var o=this.i;t?(t=t.b,o.fillStyle=Mo(t||Os)):o.fillStyle=void 0,e?(t=e.a,o.strokeStyle=Mo(t||Gs),t=e.f,o.lineCap=void 0!==t?t:"round",t=e.i,o.lineDash=t?t.slice():Us,t=e.g,o.lineDashOffset=t||0,t=e.j,o.lineJoin=void 0!==t?t:"round",t=e.c,o.lineWidth=void 0!==t?t:1,e=e.o,o.miterLimit=void 0!==e?e:10,o.lineWidth>this.c&&(this.c=o.lineWidth,this.f=null)):(o.strokeStyle=void 0,o.lineCap=void 0,o.lineDash=null,o.lineDashOffset=void 0,o.lineJoin=void 0,o.lineWidth=void 0,o.miterLimit=void 0)},e(Y0,F0),Y0.prototype.yc=function(t,e,o,i,r,n){var s,a;""!==this.Ia&&this.g&&(this.i||this.f)&&(this.i&&(r=this.i,(s=this.S)&&s.fillStyle==r.fillStyle||(a=[9,r.fillStyle],this.a.push(a),this.b.push(a),s?s.fillStyle=r.fillStyle:this.S={fillStyle:r.fillStyle})),this.f&&(r=this.f,(s=this.D)&&s.lineCap==r.lineCap&&s.lineDash==r.lineDash&&s.lineDashOffset==r.lineDashOffset&&s.lineJoin==r.lineJoin&&s.lineWidth==r.lineWidth&&s.miterLimit==r.miterLimit&&s.strokeStyle==r.strokeStyle||(a=[10,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset,!1,1],this.a.push(a),this.b.push(a),s?(s.lineCap=r.lineCap,s.lineDash=r.lineDash,s.lineDashOffset=r.lineDashOffset,s.lineJoin=r.lineJoin,s.lineWidth=r.lineWidth,s.miterLimit=r.miterLimit,s.strokeStyle=r.strokeStyle):this.D={lineCap:r.lineCap,lineDash:r.lineDash,lineDashOffset:r.lineDashOffset,lineJoin:r.lineJoin,lineWidth:r.lineWidth,miterLimit:r.miterLimit,strokeStyle:r.strokeStyle})),r=this.g,(s=this.C)&&s.font==r.font&&s.textAlign==r.textAlign&&s.textBaseline==r.textBaseline||(a=[11,r.font,r.textAlign,r.textBaseline],this.a.push(a),this.b.push(a),s?(s.font=r.font,s.textAlign=r.textAlign,s.textBaseline=r.textBaseline):this.C={font:r.font,textAlign:r.textAlign,textBaseline:r.textBaseline}),D0(this,n),t=[5,r=this.coordinates.length,t=k0(this,t,e,o,i,!1,!1),this.Ia,this.j,this.o,this.v,this.u,!!this.i,!!this.f,this.l],this.a.push(t),this.b.push(t),G0(this,n))},Y0.prototype.Cb=function(t){var e,o,i,r,n,s,a,p,h;t?((o=t.Fa())?(o=Mo((o=o.b)||Os),this.i?this.i.fillStyle=o:this.i={fillStyle:o}):this.i=null,(s=t.Ga())?(o=s.a,i=s.f,r=s.i,a=s.g,p=s.j,n=s.c,s=s.o,i=void 0!==i?i:"round",r=r?r.slice():Us,a=void 0!==a?a:0,p=void 0!==p?p:"round",n=void 0!==n?n:1,s=void 0!==s?s:10,o=Mo(o||Gs),this.f?((h=this.f).lineCap=i,h.lineDash=r,h.lineDashOffset=a,h.lineJoin=p,h.lineWidth=n,h.miterLimit=s,h.strokeStyle=o):this.f={lineCap:i,lineDash:r,lineDashOffset:a,lineJoin:p,lineWidth:n,miterLimit:s,strokeStyle:o}):this.f=null,e=t.a,o=t.i,i=t.c,r=t.o,n=t.f,s=t.b,a=t.Na(),p=t.g,h=t.j,t=void 0!==e?e:"10px sans-serif",p=void 0!==p?p:"center",h=void 0!==h?h:"middle",this.g?((e=this.g).font=t,e.textAlign=p,e.textBaseline=h):this.g={font:t,textAlign:p,textBaseline:h},this.Ia=void 0!==a?a:"",this.j=void 0!==o?o:0,this.o=void 0!==i?i:0,this.l=void 0!==r&&r,this.v=void 0!==n?n:0,this.u=void 0!==s?s:1):this.Ia=""},e(H0,$s);var q0={0:[[!0]]};function J0(t,e,o){var i,r=Math.floor(t.length/2);if(r<=e)for(i=r;i<e;i++)t[i][o]=!0;else if(e<r)for(i=e+1;i<r;i++)t[i][o]=!0}function _0(t){for(var e in t.a){var o,i=t.a[e];for(o in i)i[o].Te()}}function $0(t,e){var o=t.c,i=(t=o[0],o[1]),r=o[2];return gr(t=[t,i,t,o=o[3],r,o,r,i],0,8,2,e,t),t}H0.prototype.Ea=function(t,e,o,i,r,n){var s,a,p,h=2*(i=Math.round(i))+1,l=js(this.j,i+.5,i+.5,1/e,-1/e,-o,-t[0],-t[1]),u=this.g,c=(u.canvas.width!==h||u.canvas.height!==h?(u.canvas.width=h,u.canvas.height=h):u.clearRect(0,0,h,h),void 0!==this.f&&(Pt(s=vt(),t),lt(s,e*(this.f+i),s)),function(t){if(void 0!==q0[t])return q0[t];for(var e=2*t+1,o=Array(e),i=0;i<e;i++)o[i]=Array(e);for(var e=t,r=i=0;i<=e;)J0(o,t+e,t+i),J0(o,t+i,t+e),J0(o,t-i,t+e),J0(o,t-e,t+i),J0(o,t-e,t-i),J0(o,t-i,t-e),J0(o,t+i,t-e),J0(o,t+e,t-i),0<2*((r+=1+2*++i)-e)+1&&(r+=1-2*--e);return q0[t]=o}(i)),f=this,y=u,g=l,d=o,v=r,b=function(t){for(var e=u.getImageData(0,0,h,h).data,o=0;o<h;o++)for(var i=0;i<h;i++)if(c[o][i]&&0<e[4*(i*h+o)+3])return(t=n(t))?t:void u.clearRect(0,0,h,h)},m=s,w=Object.keys(f.a).map(Number),x=(w.sort(function(t,e){return e-t}),0);for(a=w.length;x<a;++x){var S=f.a[w[x].toString()];for(p=_s.length-1;0<=p;--p){var M=S[_s[p]];if(void 0!==M&&(M=O0(M,y,1,g,d,v,M.b,b,m)))return M}}},H0.prototype.b=function(t,e){var o=void 0!==t?t.toString():"0";return void 0===(t=this.a[o])&&(this.a[o]=t={}),void 0===(o=t[e])&&(o=new Q0[e](this.v,this.c,this.l,this.o),t[e]=o),o},H0.prototype.i=function(){return Zt(this.a)},H0.prototype.La=function(t,e,o,i,r,n){var s=Object.keys(this.a).map(Number),a=(s.sort(G),$0(this,o));t.save(),t.beginPath(),t.moveTo(a[0],a[1]),t.lineTo(a[2],a[3]),t.lineTo(a[4],a[5]),t.lineTo(a[6],a[7]),t.clip(),n=n||_s;for(var a=0,p=s.length;a<p;++a)for(var h=this.a[s[a].toString()],l=0,u=n.length;l<u;++l){var c=h[n[l]];void 0!==c&&c.La(t,e,o,i,r)}t.restore()};var Q0={Circle:Z0,Image:B0,LineString:X0,Polygon:Z0,Text:Y0};function tv(t){io.call(this),this.a=t}function ev(t,e){var o=e.getState();return 2!=o&&3!=o&&d(e,"change",t.na,t),0==o&&(e.load(),o=e.getState()),2==o}function ov(t){var e=t.a;e.Mb()&&"ready"==e.$f()&&t.s()}function iv(t,e){e.Ki()&&t.postRenderFunctions.push(function(t,e,o){e=U(t).toString(),t.fd(o.viewState.projection,o.usedTiles[e])}.bind(null,e))}function rv(t,e){if(e)for(var o=0,i=e.length;o<i;++o){var r=e[o];t[U(r).toString()]=r}}function nv(t,e){void 0!==(e=e.D)&&("string"==typeof e?t.logos[e]="":e&&(O("string"==typeof e.href,44),O("string"==typeof e.src,45),t.logos[e.src]=e.href))}function sv(t,e,o,i){e=U(e).toString(),o=o.toString(),e in t?o in t[e]?(t=t[e][o],i.ca<t.ca&&(t.ca=i.ca),i.$>t.$&&(t.$=i.$),i.da<t.da&&(t.da=i.da),i.ia>t.ia&&(t.ia=i.ia)):t[e][o]=i:(t[e]={},t[e][o]=i)}function av(t,e,o,i,r,n,s,a,p,h){for(var l,u=U(e).toString(),c=(u in t.wantedTiles||(t.wantedTiles[u]={}),t.wantedTiles[u]),f=(t=t.tileQueue,o.minZoom),y=s;f<=y;--y)for(var g,d=Ie(o,n,y,d),v=o.Da(y),b=d.ca;b<=d.$;++b)for(l=d.da;l<=d.ia;++l)s-y<=a?(0==(g=e.Nc(y,b,l,i,r)).getState()&&(c[g.bb()]=!0,g.bb()in t.a||t.f([g,u,Ne(o,g.ta),v])),p&&p.call(h,g)):e.Ug(y,b,l,r)}function pv(t){tv.call(this,t),this.fa=ms()}function hv(t,e,o){var i=e.pixelRatio,r=e.size[0]*i,n=e.size[1]*i,s=e.viewState.rotation,a=Ft(o),p=kt(o),h=Ct(o);o=jt(o),Ps(e.coordinateToPixelTransform,a),Ps(e.coordinateToPixelTransform,p),Ps(e.coordinateToPixelTransform,h),Ps(e.coordinateToPixelTransform,o),t.save(),Bs(t,-s,r/2,n/2),t.beginPath(),t.moveTo(a[0]*i,a[1]*i),t.lineTo(p[0]*i,p[1]*i),t.lineTo(h[0]*i,h[1]*i),t.lineTo(o[0]*i,o[1]*i),t.clip(),Bs(t,s,r/2,n/2)}function lv(t,e,o,i,r){var n,s,a,p=t.a;oo(p,e)&&(n=i.size[0]*i.pixelRatio,s=i.size[1]*i.pixelRatio,Bs(o,-(a=i.viewState.rotation),n/2,s/2),t=r||uv(t,i,0),p.b(new Ds(e,new Vs(o,i.pixelRatio,i.extent,t,i.viewState.rotation),i,o,null)),Bs(o,a,n/2,s/2))}function uv(t,e,o){var i=e.viewState,r=e.pixelRatio,n=r/i.resolution;return js(t.fa,r*e.size[0]/2,r*e.size[1]/2,n,-n,-i.rotation,-i.center[0]+o,-i.center[1])}function cv(t,e){return U(t)-U(e)}function fv(t,e){return(t=.5*t/e)*t}function yv(t,e,o,i,r,n){var s,a,p=!1;return(s=o.Y())&&(2==(a=s.Ye())||3==a?s.Bj(r,n):(0==a&&s.load(),s.Nh(r,n),p=!0)),(r=(0,o.Za)(e))&&(i=r.Vd(i),(0,gv[i.U()])(t,i,o,e)),p}e(tv,io),tv.prototype.Ea=Y,tv.prototype.Ue=fr,tv.prototype.Nf=function(o,i,r){return function(e,t){return Em(o,i,e,t,function(t){r[e]||(r[e]={}),r[e][t.ta.toString()]=t})}},tv.prototype.na=function(t){2===t.target.getState()&&ov(this)},e(pv,tv),pv.prototype.u=function(t,e,o,i){if(this.Ea(t,e,0,cr,this))return o.call(i,this.a,null)},pv.prototype.ef=function(t,e,o,i){lv(this,"postcompose",t,e,i)};var gv={Point:function(t,e,o,i){var r=o.Y();if(r){if(2!=r.Ye())return;var n=t.b(o.Ba(),"Image");n.Ub(r),n.qc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),t.yc(e.ga(),0,2,2,e,i))},LineString:function(t,e,o,i){var r,n=o.Ga();n&&((r=t.b(o.Ba(),"LineString")).Ma(null,n),r.mc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(jl(e),0,2,2,e,i))},Polygon:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(n||s)&&((r=t.b(o.Ba(),"Polygon")).Ma(n,s),r.rc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(zr(e),0,2,2,e,i))},MultiPoint:function(t,e,o,i){var r=o.Y();if(r){if(2!=r.Ye())return;var n=t.b(o.Ba(),"Image");n.Ub(r),n.oc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),o=e.ga(),t.yc(o,0,o.length,e.qa(),e,i))},MultiLineString:function(t,e,o,i){var r,n=o.Ga();n&&((r=t.b(o.Ba(),"LineString")).Ma(null,n),r.nc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),o=Cl(e),t.yc(o,0,o.length,2,e,i))},MultiPolygon:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(s||n)&&((r=t.b(o.Ba(),"Polygon")).Ma(n,s),r.pc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),o=Rl(e),t.yc(o,0,o.length,2,e,i))},GeometryCollection:function(t,e,o,i){for(var r=0,n=(e=e.a).length;r<n;++r)(0,gv[e[r].U()])(t,e[r],o,i)},Circle:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(n||s)&&((r=t.b(o.Ba(),"Circle")).Ma(n,s),r.Zb(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(e.wa(),0,2,2,e,i))}};function dv(t){pv.call(this,t),this.c=!1,this.v=-1,this.l=NaN,this.j=vt(),this.f=this.o=null,this.g=Po()}function vv(){this.b="precision mediump float;varying vec2 a;uniform float f;uniform sampler2D g;void main(void){vec4 texColor=texture2D(g,a);gl_FragColor.rgb=texColor.rgb;gl_FragColor.a=texColor.a*f;}"}e(dv,pv),dv.prototype.S=function(t,e,o){var i=t.extent,r=t.pixelRatio,n=e.Je?t.skippedFeatureUids:{},s=(a=t.viewState).projection,a=a.rotation,p=s.G(),h=this.a.ha(),l=uv(this,t,0),u=(lv(this,"precompose",o,t,l),e.extent),c=void 0!==u;if(c&&hv(o,t,u),(u=this.f)&&!u.i()){var f,y,g=0,d=0,v=(f=(y=oo(this.a,"render")?(y=o.canvas.width,f=o.canvas.height,a&&(g=((v=Math.round(Math.sqrt(y*y+f*f)))-y)/2,d=(v-f)/2,y=f=v),this.g.canvas.width=y,this.g.canvas.height=f,this.g):o).globalAlpha,y.globalAlpha=e.opacity,y!=o&&y.translate(g,d),t.size[0]*r),b=t.size[1]*r;if(Bs(y,-a,v/2,b/2),u.La(y,r,l,a,n),h.u&&s.i&&!yt(p,i)){for(var s=i[0],h=Dt(p),m=0;s<p[0];)l=uv(this,t,l=h*--m),u.La(y,r,l,a,n),s+=h;for(m=0,s=i[2];s>p[2];)l=uv(this,t,l=h*++m),u.La(y,r,l,a,n),s-=h;l=uv(this,t,0)}Bs(y,a,v/2,b/2),y!=o&&(lv(this,"render",y,t,l),o.drawImage(y.canvas,-g,-d),y.translate(-g,-d)),y.globalAlpha=f}c&&o.restore(),this.ef(o,t,e,l)},dv.prototype.Ea=function(t,e,o,i,r){var n,s;if(this.f)return n=this.a,s={},this.f.Ea(t,e.viewState.resolution,e.viewState.rotation,o,{},function(t){var e=U(t).toString();if(!(e in s))return s[e]=!0,i.call(r,t,n)})},dv.prototype.D=function(){ov(this)},dv.prototype.sd=function(t){function e(t){var e,o=t.Lc();if(o?e=o.call(t,n):(o=p.f)&&(e=o(t,n)),e){if(o=!1,Array.isArray(e))for(var i=0,r=e.length;i<r;++i)o=yv(a,t,e[i],fv(n,s),this.D,this)||o;else o=yv(a,t,e,fv(n,s),this.D,this)||o;t=o,this.c=this.c||t}}var o,n,s,i,a,r,p=this.a,h=p.ha(),l=(rv(t.attributions,h.j),nv(t,h),t.viewHints[0]),u=t.viewHints[1],c=p.T,f=p.na;return!this.c&&!c&&l||!f&&u||(o=t.extent,l=(f=t.viewState).projection,n=f.resolution,s=t.pixelRatio,u=p.i,i=p.c,void 0===(c=p.get(Av))&&(c=cv),o=lt(o,i*n),i=f.projection.G(),h.u&&f.projection.i&&!yt(i,t.extent)&&(t=Math.max(Dt(o)/2,Dt(i)),o[0]=i[0]-t,o[2]=i[2]+t),!this.c&&this.l==n&&this.v==u&&this.o==c&&yt(this.j,o)||(this.f=null,this.c=!1,a=new H0(.5*n/s,o,n,h.T,p.c),h.Yd(o,n,l),c?(r=[],h.$b(o,function(t){r.push(t)},this),r.sort(c),r.forEach(e,this)):h.$b(o,e,this),_0(a),this.l=n,this.v=u,this.o=c,this.j=o,this.f=a)),!0},e(vv,ta);var bv=new vv;function mv(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position=e*vec4(b,0.,1.);a=(d*vec4(c,0.,1.)).st;}"}e(mv,ea);var wv=new mv;function xv(t,e){this.i=t.getUniformLocation(e,"f"),this.c=t.getUniformLocation(e,"e"),this.g=t.getUniformLocation(e,"d"),this.f=t.getUniformLocation(e,"g"),this.b=t.getAttribLocation(e,"b"),this.a=t.getAttribLocation(e,"c")}function Sv(t,e){tv.call(this,e),this.c=t,this.T=new da([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),this.g=this.Ib=null,this.j=void 0,this.v=ms(),this.S=ms(),this.C=aa(),this.u=null}function Mv(t,e,o,i){var r;oo(t=t.a,e)&&(r=i.viewState,t.b(new Ds(e,new sh(o,r.center,r.resolution,r.rotation,i.size,i.extent,i.pixelRatio),i,null,o)))}function Pv(t,e){Sv.call(this,t,e),this.l=!1,this.R=-1,this.I=NaN,this.D=vt(),this.o=this.f=this.B=null}function s(t){var e=Xt({},t=t||{});delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,ys.call(this,e),this.c=void 0!==t.renderBuffer?t.renderBuffer:100,this.u=null,this.f=void 0,this.g(t.style),this.T=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.na=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}e(Sv,tv),Sv.prototype.Gi=function(t,e,o){Mv(this,"precompose",o,t),Ea(o,34962,this.T);var i,r=o.b,n=La(o,bv,wv);this.u?i=this.u:this.u=i=new xv(r,n),o.Qc(n)&&(r.enableVertexAttribArray(i.b),r.vertexAttribPointer(i.b,2,5126,!1,16,0),r.enableVertexAttribArray(i.a),r.vertexAttribPointer(i.a,2,5126,!1,16,8),r.uniform1i(i.f,0)),r.uniformMatrix4fv(i.g,!1,pa(this.C,this.v)),r.uniformMatrix4fv(i.c,!1,pa(this.C,this.S)),r.uniform1f(i.i,e.opacity),r.bindTexture(3553,this.Ib),r.drawArrays(5,0,4),Mv(this,"postcompose",o,t)},Sv.prototype.mg=function(){this.g=this.Ib=null,this.j=void 0},e(Pv,Sv),(r=Pv.prototype).Gi=function(t,e,o){this.o=e;var i=t.viewState,r=this.f,n=t.size,s=t.pixelRatio,a=this.c.i;r&&!r.i()&&(a.enable(a.SCISSOR_TEST),a.scissor(0,0,n[0]*s,n[1]*s),r.La(o,i.center,i.resolution,i.rotation,n,s,e.opacity,e.Je?t.skippedFeatureUids:{}),a.disable(a.SCISSOR_TEST))},r.ka=function(){var t=this.f;t&&(oh(t,this.c.f)(),this.f=null),Sv.prototype.ka.call(this)},r.Ea=function(t,e,o,i,r){var n,s;if(this.f&&this.o)return o=e.viewState,n=this.a,s={},this.f.Ea(t,this.c.f,o.center,o.resolution,o.rotation,e.size,e.pixelRatio,this.o.opacity,{},function(t){var e=U(t).toString();if(!(e in s))return s[e]=!0,i.call(r,t,n)})},r.Ue=function(t,e){var o,i,r,n,s,a,p;return!(!this.f||!this.o)&&(n=e.viewState,o=this.f,t=t,i=this.c.f,r=n.resolution,n=n.rotation,s=e.pixelRatio,a=this.o.opacity,e=e.skippedFeatureUids,(p=i.b).bindFramebuffer(p.FRAMEBUFFER,ja(i)),void 0!==ih(o,i,t,r,n,s,a,e,function(){var t=new Uint8Array(4);return p.readPixels(0,0,1,1,p.RGBA,p.UNSIGNED_BYTE,t),0<t[3]},!1))},r.lg=function(t,e,o,i){if(t=Ps(e.pixelToCoordinateTransform,t.slice()),this.Ue(t,e))return o.call(i,this.a,null)},r.Hi=function(){ov(this)},r.ng=function(t,e,o){function i(t){var e,o=t.Lc();if(o?e=o.call(t,h):(o=r.f)&&(e=o(t,h)),e){if(o=!1,Array.isArray(e))for(var i=e.length-1;0<=i;--i)o=yv(y,t,e[i],fv(h,l),this.Hi,this)||o;else o=yv(y,t,e,fv(h,l),this.Hi,this)||o;t=o,this.l=this.l||t}}var r=this.a,n=(e=r.ha(),rv(t.attributions,e.j),nv(t,e),t.viewHints[0]),s=t.viewHints[1],a=r.T,p=r.na;if(!(!this.l&&!a&&n||!p&&s)){var s=t.extent,n=(a=t.viewState).projection,h=a.resolution,l=t.pixelRatio,a=r.i,u=r.c,p=r.get(Av);if(void 0===p&&(p=cv),s=lt(s,u*h),this.l||this.I!=h||this.R!=a||this.B!=p||!yt(this.D,s)){this.f&&t.postRenderFunctions.push(oh(this.f,o)),this.l=!1;var c,f,y=new eh(.5*h/l,s,r.c),g=(e.Yd(s,h,n),p?(c=[],e.$b(s,function(t){c.push(t)},this),c.sort(p),c.forEach(i,this)):e.$b(s,i,this),y),d=o;for(f in g.a){var v,b=g.a[f];for(v in b)b[v].Db(d)}this.I=h,this.R=a,this.B=p,this.D=s,this.f=y}}return!0},e(s,ys),s.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new dv(this):"webgl"===o&&(e=new Pv(t,this)),e},s.prototype.D=function(){return this.u},s.prototype.C=function(){return this.f},s.prototype.g=function(t){this.u=void 0!==t?t:$h,this.f=null===t?void 0:Jh(this.u),this.s()};var Av="renderOrder";function Ev(){return[[-1/0,-1/0,1/0,1/0]]}function Tv(t){ro.call(this),this.c=v(t.projection),this.j=jv(t.attributions),this.D=t.logo,this.na=void 0!==t.state?t.state:"ready",this.u=void 0!==t.wrapX&&t.wrapX}function jv(t){if("string"==typeof t)return[new Be({html:t})];if(t instanceof Be)return[t];if(Array.isArray(t)){for(var e=t.length,o=Array(e),i=0;i<e;i++){var r=t[i];o[i]="string"==typeof r?new Be({html:r}):r}return o}return null}function Cv(t,e){t.na=e,t.s()}function a(t){Tv.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.B=Y,this.C=t.format,this.T=null==t.overlaps||t.overlaps,this.I=t.url,t.loader?this.B=t.loader:void 0!==this.I&&(O(this.C,7),this.B=ml(this.I,this.C)),this.fa=t.strategy||Ev;var e,o,i,r,n=void 0===t.useSpatialIndex||t.useSpatialIndex;this.a=n?new Fp:null,this.R=new Fp,this.g={},this.o={},this.l={},this.v={},this.f=null,t.features instanceof ho?o=(e=t.features).a:Array.isArray(t.features)&&(o=t.features),n||e||(e=new ho(o)),o&&Iv(this,o),e&&(i=e,r=!1,d(t=this,"addfeature",function(t){r||(r=!0,i.push(t.feature),r=!1)}),d(t,"removefeature",function(t){r||(r=!0,i.remove(t.feature),r=!1)}),d(i,"add",function(t){r||(r=!0,this.yb(t.element),r=!1)},t),d(i,"remove",function(t){r||(r=!0,this.Gb(t.element),r=!1)},t),t.f=i)}function Lv(t,e,o){t.v[e]=[d(o,"change",t.Oi,t),d(o,"propertychange",t.Oi,t)]}function Rv(t,e,o){var i=!0,r=o.a;return void 0!==r?r.toString()in t.o?i=!1:t.o[r.toString()]=o:(O(!(e in t.l),30),t.l[e]=o),i}function Iv(t,e){for(var o=[],i=[],r=[],n=0,s=e.length;n<s;n++){var a=e[n],p=U(a).toString();Rv(t,p,a)&&i.push(a)}for(n=0,s=i.length;n<s;n++)Lv(t,p=U(a=i[n]).toString(),a),(e=a.V())?(p=e.G(),o.push(p),r.push(a)):t.g[p]=a;for(t.a&&t.a.load(o,r),n=0,s=i.length;n<s;n++)t.b(new Fv("addfeature",i[n]))}function Nv(t,e){for(var o in t.o)if(t.o[o]===e){delete t.o[o];break}}function Fv(t,e){Qe.call(this,t),this.feature=e}function kv(t){var e;Mn.call(this,{handleDownEvent:Ov,handleEvent:Dv,handleUpEvent:Uv}),this.T=!1,this.fa=null,this.u=!1,this.Yb=t.source||null,this.$a=t.features||null,this.wk=t.snapTolerance||12,this.R=t.type,this.g=("Point"===(n=this.R)||"MultiPoint"===n?e=Kv:"LineString"===n||"MultiLineString"===n?e=zv:"Polygon"===n||"MultiPolygon"===n?e=Yv:"Circle"===n&&(e=Hv),e),this.Sa=t.minPoints||(this.g===Yv?3:2),this.va=t.maxPoints||1/0,this.Cf=t.finishCondition||cr;var o,i,r,n=(n=t.geometryFunction)||("Circle"===this.R?function(t,e){return(e=e||new s0([NaN,NaN])).Ng(t[0],Math.sqrt(pr(t[0],t[1]))),e}:((i=this.g)===Kv?o=m:i===zv?o=S:i===Yv&&(o=w),function(t,e){return e?i===Yv?e.ma([t[0].concat([t[0][0]])]):e.ma(t):e=new o(t),e}));this.Za=n,this.I=this.C=this.a=this.B=this.j=this.l=null,this.ad=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,this.pa=new s({source:new a({useSpatialIndex:!1,wrapX:t.wrapX||!1}),style:t.style||(r=Qh(),function(t){return r[t.V().U()]})}),this.xb=t.geometryName,this.vk=t.condition||bn,this.Df=t.freehand?cr:t.freehandCondition||mn,d(this,so("active"),this.ri,this)}function Dv(t){this.u=this.g!==Kv&&this.Df(t);var e=!this.u;return this.u&&"pointerdrag"===t.type&&null!==this.j?(Vv(this,t),e=!1):"pointermove"===t.type?e=Gv(this,t):"dblclick"===t.type&&(e=!1),An.call(this,t)&&e}function Ov(t){return this.T=!this.u,this.u?(this.fa=t.pixel,this.l||Xv(this,t),!0):!!this.vk(t)&&(this.fa=t.pixel,!0)}function Uv(t){var e=!0,o=(Gv(this,t),this.g===Hv);return this.T?(this.l?this.u||o?this.Pd():Bv(this,t)?this.Cf(t)&&this.Pd():Vv(this,t):(Xv(this,t),this.g===Kv&&this.Pd()),e=!1):this.u&&(this.l=null,Wv(this)),e}function Gv(t,e){var o,i,r;return t.fa&&(!t.u&&t.T||t.u&&!t.T)&&(i=t.fa,o=e.pixel,r=(r=i[0]-o[0])*r+(i=i[1]-o[1])*i,t.T=t.u?r>t.ad:r<=t.ad),t.l?(r=e.coordinate,i=t.j.V(),t.g===Kv?o=t.a:t.g===Yv?(o=(o=t.a[0])[o.length-1],Bv(t,e)&&(r=t.l.slice())):o=(o=t.a)[o.length-1],o[0]=r[0],o[1]=r[1],t.Za(t.a,i),t.B&&t.B.V().ma(r),i instanceof w&&t.g!==Yv?(t.C||(t.C=new x(new S(null))),r=i.Ch(0),(e=t.C.V()).ba(r.ja,r.ga())):t.I&&(e=t.C.V()).ma(t.I),Zv(t)):(e=e.coordinate.slice(),t.B?t.B.V().ma(e):(t.B=new x(new m(e)),Zv(t))),!0}function Bv(t,e){var o=!1;if(t.j){var i=!1,r=[t.l];if(t.g===zv?i=t.a.length>t.Sa:t.g===Yv&&(i=t.a[0].length>t.Sa,r=[t.a[0][0],t.a[0][t.a[0].length-2]]),i)for(var i=e.map,n=0,s=r.length;n<s;n++){var a=r[n],p=i.Ja(a),h=e.pixel,o=h[0]-p[0],p=h[1]-p[1];if(o=Math.sqrt(o*o+p*p)<=(t.u?1:t.wk)){t.l=a;break}}}return o}function Xv(t,e){e=e.coordinate,t.l=e,t.g===Kv?t.a=e.slice():t.g===Yv?(t.a=[[e.slice(),e.slice()]],t.I=t.a[0]):(t.a=[e.slice(),e.slice()],t.g===Hv&&(t.I=t.a)),t.I&&(t.C=new x(new S(t.I))),e=t.Za(t.a),t.j=new x,t.xb&&t.j.Tc(t.xb),t.j.Ra(e),Zv(t),t.b(new qv("drawstart",t.j))}function Vv(t,e){e=e.coordinate;var o,i,r=t.j.V();t.g===zv?(t.l=e.slice(),(i=t.a).length>=t.va&&(t.u?i.pop():o=!0),i.push(e.slice()),t.Za(i,r)):t.g===Yv&&((i=t.a[0]).length>=t.va&&(t.u?i.pop():o=!0),i.push(e.slice()),o&&(t.l=i[0]),t.Za(t.a,r)),Zv(t),o&&t.Pd()}function Wv(t){t.l=null;var e=t.j;return e&&(t.j=null,t.B=null,t.C=null,t.pa.ha().clear(!0)),e}function Zv(t){var e=[];t.j&&e.push(t.j),t.C&&e.push(t.C),t.B&&e.push(t.B),(t=t.pa.ha()).clear(!0),t.cd(e)}e(Tv,ro),(r=Tv.prototype).Ea=Y,r.ya=function(){return this.j},r.xa=function(){return this.D},r.za=function(){return this.c},r.getState=function(){return this.na},r.sa=function(){this.s()},r.ua=function(t){this.j=jv(t),this.s()},e(a,Tv),(r=a.prototype).yb=function(t){var e,o=U(t).toString();Rv(this,o,t)&&(Lv(this,o,t),(e=t.V())?(o=e.G(),this.a&&this.a.Ca(o,t)):this.g[o]=t,this.b(new Fv("addfeature",t))),this.s()},r.cd=function(t){Iv(this,t),this.s()},r.clear=function(t){if(t){for(var e in this.v)this.v[e].forEach(qe);this.f||(this.v={},this.o={},this.l={})}else if(this.a)for(var o in this.a.forEach(this.Ig,this),this.g)this.Ig(this.g[o]);this.f&&this.f.clear(),this.a&&this.a.clear(),this.R.clear(),this.g={},this.b(new Fv("clear")),this.s()},r.sh=function(t,e){return this.a?this.a.forEach(t,e):this.f?this.f.forEach(t,e):void 0},r.$b=function(t,e,o){return this.a?Up(this.a,t,e,o):this.f?this.f.forEach(e,o):void 0},r.th=function(e,o,i){return this.$b(e,function(t){if(t.V().Xa(e)&&(t=o.call(i,t)))return t})},r.Ah=function(){return this.f},r.Xe=function(){var t;return this.f?t=this.f.a:this.a&&(t=Dp(this.a),Zt(this.g)||X(t,Wt(this.g))),t},r.zh=function(t){var e,o,i=[];return e=t,o=function(t){i.push(t)},this.$b([e[0],e[1],e[0],e[1]],function(t){if(t.V().sb(e))return o.call(void 0,t)}),i},r.Uf=function(t){return Op(this.a,t)},r.vh=function(t,e){var i=t[0],r=t[1],n=null,s=[NaN,NaN],a=1/0,p=[-1/0,-1/0,1/0,1/0],h=e||cr;return Up(this.a,p,function(t){var e,o;h(t)&&(e=t.V(),o=a,(a=e.Kb(i,r,s,a))<o&&(n=t,t=Math.sqrt(a),p[0]=i-t,p[1]=r-t,p[2]=i+t,p[3]=r+t))}),n},r.G=function(t){return this.a.G(t)},r.yh=function(t){return void 0!==(t=this.o[t.toString()])?t:null},r.Mi=function(){return this.C},r.Ni=function(){return this.I},r.Oi=function(t){var e=U(t=t.target).toString(),o=t.V();o?(o=o.G(),e in this.g?(delete this.g[e],this.a&&this.a.Ca(o,t)):this.a&&kp(this.a,o,t)):e in this.g||(this.a&&this.a.remove(t),this.g[e]=t),void 0!==(o=t.a)?(o=o.toString(),e in this.l?(delete this.l[e],this.o[o]=t):this.o[o]!==t&&(Nv(this,t),this.o[o]=t)):e in this.l||(Nv(this,t),this.l[e]=t),this.s(),this.b(new Fv("changefeature",t))},r.Yd=function(t,e,o){for(var i=this.R,r=0,n=(t=this.fa(t,e)).length;r<n;++r){var s=t[r];Up(i,s,function(t){return yt(t.extent,s)})||(this.B.call(this,s,e,o),i.Ca(s,{extent:s.slice()}))}},r.Gb=function(t){var e=U(t).toString();e in this.g?delete this.g[e]:this.a&&this.a.remove(t),this.Ig(t),this.s()},r.Ig=function(t){var e=U(t).toString(),o=(this.v[e].forEach(qe),delete this.v[e],t.a);void 0!==o?delete this.o[o.toString()]:delete this.l[e],this.b(new Fv("removefeature",t))},e(Fv,Qe),e(kv,Mn),(r=kv.prototype).setMap=function(t){Mn.prototype.setMap.call(this,t),this.ri()},r.Op=function(){var t,e;this.j&&(t=this.j.V(),this.g===zv?((e=this.a).splice(-2,1),this.Za(e,t),2<=e.length&&(this.l=e[e.length-2].slice())):this.g===Yv&&((e=this.a[0]).splice(-2,1),this.C.V().ma(e),this.Za(this.a,t)),0===e.length&&(this.l=null),Zv(this))},r.Pd=function(){var t=Wv(this),e=this.a,o=t.V();this.g===zv?(e.pop(),this.Za(e,o)):this.g===Yv&&(e[0].pop(),this.Za(e,o),e=o.X()),"MultiPoint"===this.R?t.Ra(new P([e])):"MultiLineString"===this.R?t.Ra(new M([e])):"MultiPolygon"===this.R&&t.Ra(new f([e])),this.b(new qv("drawend",t)),this.$a&&this.$a.push(t),this.Yb&&this.Yb.yb(t)},r.vn=function(t){var e=t.V();this.j=t,this.a=e.X(),t=this.a[this.a.length-1],this.l=t.slice(),this.a.push(t.slice()),Zv(this),this.b(new qv("drawstart",this.j))},r.Xc=fr,r.ri=function(){var t=this.v,e=this.c();t&&e||Wv(this),this.pa.setMap(e?t:null)};var Kv="Point",zv="LineString",Yv="Polygon",Hv="Circle";function qv(t,e){Qe.call(this,t),this.feature=e}function Jv(t){var e,o;this.a=this.j=null,this.C=!1,this.B=this.l=null,(t=t||{}).extent&&this.g(t.extent),Mn.call(this,{handleDownEvent:$v,handleDragEvent:Qv,handleEvent:_v,handleUpEvent:tb}),this.u=new s({source:new a({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.boxStyle||(e=Qh(),function(){return e.Polygon}),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.I=new s({source:new a({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.pointerStyle||(o=Qh(),function(){return o.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0})}function _v(t){return!(t instanceof mi)||("pointermove"!=t.type||this.D||rb(this,ib(this,e=t.pixel,o=t.map)||o.Wa(e)),An.call(this,t),!1);var e,o}function $v(t){function e(t){var e=null,o=null;return t[0]==r[0]?e=r[2]:t[0]==r[2]&&(e=r[0]),t[1]==r[1]?o=r[3]:t[1]==r[3]&&(o=r[1]),null!==e&&null!==o?[e,o]:null}var o=t.pixel,i=t.map,r=this.G();return(t=ib(this,o,i))&&r?(o=t[0]==r[0]||t[0]==r[2]?t[0]:null,i=t[1]==r[1]||t[1]==r[3]?t[1]:null,null!==o&&null!==i?this.a=eb(e(t)):null!==o?this.a=ob(e([o,r[1]]),e([o,r[3]])):null!==i&&(this.a=ob(e([r[0],i]),e([r[2],i])))):(t=i.Wa(o),this.g([t[0],t[1],t[0],t[1]]),this.a=eb(t)),!0}function Qv(t){return this.a&&(t=t.coordinate,this.g(this.a(t)),rb(this,t)),!0}function tb(){this.a=null;var t=this.G();return t&&Tt(t)||this.g(null),!1}function eb(e){return function(t){return ht([e,t])}}function ob(e,o){return e[0]==o[0]?function(t){return ht([e,[t[0],o[1]]])}:e[1]==o[1]?function(t){return ht([e,[o[0],t[1]]])}:null}function ib(t,e,o){var i=o.Wa(e);if(r=t.G()){(r=[[[r[0],r[1]],[r[0],r[3]]],[[r[0],r[3]],[r[2],r[3]]],[[r[2],r[3]],[r[2],r[1]]],[[r[2],r[1]],[r[0],r[1]]]]).sort(function(t,e){return lr(i,t)-lr(i,e)});var r=r[0],n=or(i,r),s=o.Ja(n);if(hr(e,s)<=10)return e=o.Ja(r[0]),o=o.Ja(r[1]),e=pr(s,e),o=pr(s,o),t.C=Math.sqrt(Math.min(e,o))<=10,n=t.C?o<e?r[1]:r[0]:n}return null}function rb(t,e){var o=t.B;o?o.V().ma(e):(o=new x(new m(e)),t.B=o,t.I.ha().yb(o))}function nb(t){Qe.call(this,sb),this.b=t}e(qv,Qe),e(Jv,Mn),Jv.prototype.setMap=function(t){this.u.setMap(t),this.I.setMap(t),Mn.prototype.setMap.call(this,t)},Jv.prototype.G=function(){return this.j},Jv.prototype.g=function(t){this.j=t||null;var e=this.l;e?t?e.Ra(Hr(t)):e.Ra(void 0):(this.l=e=new x(t?Hr(t):{}),this.u.ha().yb(e)),this.b(new nb(this.j))},e(nb,Qe);var sb="extentchanged";function ab(t){var e;Mn.call(this,{handleDownEvent:cb,handleDragEvent:fb,handleEvent:gb,handleUpEvent:yb}),this.ad=t.condition||Sn,this.$a=function(t){return bn(t)&&vn(t)},this.xb=t.deleteCondition||this.$a,this.Yb=t.insertVertexCondition||cr,this.Sa=this.g=null,this.va=[0,0],this.C=this.I=!1,this.a=new Fp,this.fa=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.l=this.pa=!1,this.j=[],this.B=new s({source:new a({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style||(e=Qh(),function(){return e.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.T={Point:this.Dn,LineString:this.ti,LinearRing:this.ti,Polygon:this.En,MultiPoint:this.Bn,MultiLineString:this.An,MultiPolygon:this.Cn,Circle:this.yn,GeometryCollection:this.zn},this.u=t.features,this.u.forEach(this.kg,this),d(this.u,"add",this.wn,this),d(this.u,"remove",this.xn,this),this.R=null}function pb(t,e){t.C||(t.C=!0,t.b(new wb("modifystart",t.u,e)))}function hb(t,e){var o=t,i=e,r=(o=o.a,[]);o.forEach(function(t){i===t.feature&&r.push(t)});for(var n=r.length-1;0<=n;--n)o.remove(r[n]);t.g&&!t.u.dc()&&(t.B.ha().Gb(t.g),t.g=null),He(e,"change",t.si,t)}function lb(t,e){var o=t.g;o?o.V().ma(e):(o=new x(new m(e)),t.g=o,t.B.ha().yb(o))}function ub(t,e){return t.index-e.index}function cb(t){if(!this.ad(t))return!1;db(this,t.pixel,t.map);var e=t.map.Wa(t.pixel);if(this.j.length=0,this.C=!1,o=this.g){var o,i=[],r=ht([o=o.V().X()]),n={};(r=Op(this.a,r)).sort(ub);for(var s=0,a=r.length;s<a;++s){var p=r[s],h=p.la,l=U(p.feature),u=p.depth;u&&(l+="-"+u.join("-")),n[l]||(n[l]=Array(2)),"Circle"===p.geometry.U()&&1===p.index?nr(h=bb(e,p),o)&&!n[l][0]&&(this.j.push([p,0]),n[l][0]=p):nr(h[0],o)&&!n[l][0]?(this.j.push([p,0]),n[l][0]=p):nr(h[1],o)&&!n[l][1]?("LineString"===p.geometry.U()||"MultiLineString"===p.geometry.U())&&n[l][0]&&0===n[l][0].index||(this.j.push([p,1]),n[l][1]=p):this.Yb(t)&&U(h)in this.Sa&&!n[l][0]&&!n[l][1]&&i.push([p,o])}for(i.length&&pb(this,t),t=i.length-1;0<=t;--t)this.bm.apply(this,i[t])}return!!this.g}function fb(t){this.I=!1,pb(this,t),t=t.coordinate;for(var e=0,o=this.j.length;e<o;++e){for(var i,r=(p=this.j[e])[0],n=r.depth,s=r.geometry,a=r.la,p=p[1];t.length<s.qa();)t.push(a[p][t.length]);switch(s.U()){case"Point":i=t,a[0]=a[1]=t;break;case"MultiPoint":(i=s.X())[r.index]=t,a[0]=a[1]=t;break;case"LineString":(i=s.X())[r.index+p]=t,a[p]=t;break;case"MultiLineString":case"Polygon":(i=s.X())[n[0]][r.index+p]=t,a[p]=t;break;case"MultiPolygon":(i=s.X())[n[1]][n[0]][r.index+p]=t,a[p]=t;break;case"Circle":a[0]=a[1]=t,0===r.index?(this.l=!0,s.ob(t)):(this.l=!0,s.Uc(hr(s.wa(),t))),this.l=!1}i&&(r=s,n=i,this.l=!0,r.ma(n),this.l=!1)}lb(this,t)}function yb(t){for(var e,o,i,r,n=this.j.length-1;0<=n;--n)"Circle"===(e=(r=this.j[n][0]).geometry).U()?(o=e.wa(),i=r.Pf[0],r=r.Pf[1],i.la[0]=i.la[1]=o,r.la[0]=r.la[1]=o,kp(this.a,wt(o),i),kp(this.a,e.G(),r)):kp(this.a,ht(r.la),r);return this.C&&(this.b(new wb("modifyend",this.u,t)),this.C=!1),!1}function gb(t){return!(t instanceof mi)||(on((this.R=t).map.Z())[1]||"pointermove"!=t.type||this.D||(this.va=t.pixel,db(this,t.pixel,t.map)),this.g&&this.xb(t)&&(e=!("singleclick"!=t.type||!this.I)||this.hj()),"singleclick"==t.type&&(this.I=!1),An.call(this,t)&&!e);var e}function db(t,e,o){var i=o.Wa(e),r=lt(wt(i),o.Z().Pa()*t.fa);if(0<(r=Op(t.a,r)).length){r.sort(function(t,e){return vb(i,t)-vb(i,e)});var n,s=r[0],a=s.la,p=bb(i,s),h=o.Ja(p);if(hr(e,h)<=t.fa){if(e={},"Circle"===s.geometry.U()&&1===s.index)t.pa=!0,lb(t,p);else for(n=o.Ja(a[0]),s=o.Ja(a[1]),o=pr(h,n),h=pr(h,s),n=Math.sqrt(Math.min(o,h)),t.pa=n<=t.fa,lb(t,p=t.pa?h<o?a[1]:a[0]:p),h=1,o=r.length;h<o&&(p=r[h].la,nr(a[0],p[0])&&nr(a[1],p[1])||nr(a[0],p[1])&&nr(a[1],p[0]));++h)e[U(p)]=!0;return e[U(a)]=!0,void(t.Sa=e)}}t.g&&(t.B.ha().Gb(t.g),t.g=null)}function vb(t,e){var o=e.geometry;return"Circle"===o.U()&&1===e.index?(t=pr(o.wa(),t),(o=Math.sqrt(t)-o.pd())*o):lr(t,e.la)}function bb(t,e){var o=e.geometry;return"Circle"===o.U()&&1===e.index?o.Ab(t):or(t,e.la)}function mb(t,e,o,i,r){Up(t.a,e.G(),function(t){t.geometry===e&&(void 0===i||void 0===t.depth||Z(t.depth,i))&&t.index>o&&(t.index+=r)})}function wb(t,e,o){Qe.call(this,t),this.features=e,this.mapBrowserEvent=o}function xb(t){var e,o;pn.call(this,{handleEvent:Sb}),this.C=(t=t||{}).condition||vn,this.D=t.addCondition||fr,this.B=t.removeCondition||fr,this.I=t.toggleCondition||mn,this.l=t.multi||!1,this.o=t.filter||cr,this.j=t.hitTolerance||0,this.g=new s({source:new a({useSpatialIndex:!1,features:t.features,wrapX:t.wrapX}),style:t.style||(X((e=Qh()).Polygon,e.LineString),X(e.GeometryCollection,e.LineString),function(t){return t.V()?e[t.V().U()]:null}),updateWhileAnimating:!0,updateWhileInteracting:!0}),t=t.layers?"function"==typeof t.layers?t.layers:(o=t.layers,function(t){return D(o,t)}):cr,this.u=t,this.a={},d(t=this.g.ha().f,"add",this.Fn,this),d(t,"remove",this.Jn,this)}function Sb(t){if(!this.C(t))return!0;var o=this.D(t),i=this.B(t),r=this.I(t),e=!o&&!i&&!r,n=t.map,s=this.g.ha().f,a=[],p=[];if(e){for(Vt(this.a),n.we(t.pixel,function(t,e){if(this.o(t,e))return p.push(t),t=U(t),this.a[t]=e,!this.l}.bind(this),{layerFilter:this.u,hitTolerance:this.j}),e=s.dc()-1;0<=e;--e){var n=s.item(e),h=p.indexOf(n);-1<h?p.splice(h,1):(s.remove(n),a.push(n))}p.length&&s.fg(p)}else{for(n.we(t.pixel,function(t,e){if(this.o(t,e))return!o&&!r||D(s.a,t)?(i||r)&&D(s.a,t)&&(a.push(t),e=U(t),delete this.a[e]):(p.push(t),t=U(t),this.a[t]=e),!this.l}.bind(this),{layerFilter:this.u,hitTolerance:this.j}),e=a.length-1;0<=e;--e)s.remove(a[e]);s.fg(p)}return(0<p.length||0<a.length)&&this.b(new Mb(Pb,p,a,t)),dn(t)}function Mb(t,e,o,i){Qe.call(this,t),this.selected=e,this.deselected=o,this.mapBrowserEvent=i}e(ab,Mn),(r=ab.prototype).kg=function(t){var e=t.V();e&&e.U()in this.T&&this.T[e.U()].call(this,t,e),(e=this.v)&&e.c&&this.c()&&db(this,this.va,e),d(t,"change",this.si,this)},r.Ha=function(t){this.g&&!t&&(this.B.ha().Gb(this.g),this.g=null),Mn.prototype.Ha.call(this,t)},r.setMap=function(t){this.B.setMap(t),Mn.prototype.setMap.call(this,t)},r.wn=function(t){this.kg(t.element)},r.si=function(t){this.l||(hb(this,t=t.target),this.kg(t))},r.xn=function(t){hb(this,t.element)},r.Dn=function(t,e){var o=e.X();t={feature:t,geometry:e,la:[o,o]},this.a.Ca(e.G(),t)},r.Bn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i){var n={feature:t,geometry:e,depth:[i],index:i,la:[n=o[i],n]};this.a.Ca(e.G(),n)}},r.ti=function(t,e){for(var o=e.X(),i=0,r=o.length-1;i<r;++i){var n=o.slice(i,i+2),s={feature:t,geometry:e,index:i,la:n};this.a.Ca(ht(n),s)}},r.An=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length-1;s<a;++s){var p=n.slice(s,s+2),h={feature:t,geometry:e,depth:[i],index:s,la:p};this.a.Ca(ht(p),h)}},r.En=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length-1;s<a;++s){var p=n.slice(s,s+2),h={feature:t,geometry:e,depth:[i],index:s,la:p};this.a.Ca(ht(p),h)}},r.Cn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length;s<a;++s)for(var p=n[s],h=0,l=p.length-1;h<l;++h){var u=p.slice(h,h+2),c={feature:t,geometry:e,depth:[s,i],index:h,la:u};this.a.Ca(ht(u),c)}},r.yn=function(t,e){var o=e.wa(),i={feature:t,geometry:e,index:0,la:[o,o]};i.Pf=(t={feature:t,geometry:e,index:1,la:[o,o]}).Pf=[i,t],this.a.Ca(wt(o),i),this.a.Ca(e.G(),t)},r.zn=function(t,e){var o=e.a;for(e=0;e<o.length;++e)this.T[o[e].U()].call(this,t,o[e])},r.bm=function(t,e){for(var o,i=t.la,r=t.feature,n=t.geometry,s=t.depth,a=t.index;e.length<n.qa();)e.push(0);switch(n.U()){case"MultiLineString":case"Polygon":(o=n.X())[s[0]].splice(a+1,0,e);break;case"MultiPolygon":(o=n.X())[s[1]][s[0]].splice(a+1,0,e);break;case"LineString":(o=n.X()).splice(a+1,0,e);break;default:return}this.l=!0,n.ma(o),this.l=!1,(o=this.a).remove(t),mb(this,n,a,s,1),t={la:[i[0],e],feature:r,geometry:n,depth:s,index:a},o.Ca(ht(t.la),t),this.j.push([t,1]),e={la:[e,i[1]],feature:r,geometry:n,depth:s,index:a+1},o.Ca(ht(e.la),e),this.j.push([e,0]),this.I=!0},r.hj=function(){if(this.R&&"pointerdrag"!=this.R.type){var t,e=this.R,o=(pb(this,e),this.j),i={};for(a=o.length-1;0<=a;--a){var r=o[a],n=r[0],s=U(n.feature);n.depth&&(s+="-"+n.depth.join("-")),s in i||(i[s]={}),0===r[1]?(i[s].right=n,i[s].index=n.index):1==r[1]&&(i[s].left=n,i[s].index=n.index+1)}for(s in i){var a,p=i[s].right,h=i[s].left,l=(a=i[s].index)-1;l<0&&(l=0);var u=t=(r=(n=void 0!==h?h:p).geometry).X(),c=!1;switch(r.U()){case"MultiLineString":2<t[n.depth[0]].length&&(t[n.depth[0]].splice(a,1),c=!0);break;case"LineString":2<t.length&&(t.splice(a,1),c=!0);break;case"MultiPolygon":u=u[n.depth[1]];case"Polygon":4<(u=u[n.depth[0]]).length&&(a==u.length-1&&(a=0),u.splice(a,1),c=!0,0===a&&(u.pop(),u.push(u[0]),l=u.length-1))}c&&(c=r,this.l=!0,c.ma(t),this.l=!1,t=[],void 0!==h&&(this.a.remove(h),t.push(h.la[0])),void 0!==p&&(this.a.remove(p),t.push(p.la[1])),void 0!==h&&void 0!==p&&(h={depth:n.depth,feature:n.feature,geometry:n.geometry,index:l,la:t},this.a.Ca(ht(h.la),h)),mb(this,r,a,n.depth,-1),this.g&&(this.B.ha().Gb(this.g),this.g=null),o.length=0)}return this.b(new wb("modifyend",this.u,e)),!(this.C=!1)}return!1},e(wb,Qe),e(xb,pn),(r=xb.prototype).Gn=function(){return this.g.ha().f},r.Hn=function(){return this.j},r.In=function(t){return t=U(t),this.a[t]},r.Kn=function(t){this.j=t},r.setMap=function(t){var e=this.v,o=this.g.ha().f;e&&o.forEach(e.Cj,e),pn.prototype.setMap.call(this,t),this.g.setMap(t),t&&o.forEach(t.xj,t)},r.Fn=function(t){var e=this.v;e&&e.xj(t.element)},r.Jn=function(t){var e=this.v;e&&e.Cj(t.element)},e(Mb,Qe);var Pb="select";function Ab(t){Mn.call(this,{handleEvent:Tb,handleDownEvent:cr,handleUpEvent:jb}),this.l=(t=t||{}).source||null,this.R=void 0===t.vertex||t.vertex,this.C=void 0===t.edge||t.edge,this.j=t.features||null,this.pa=[],this.B={},this.T={},this.u={},this.I=null,this.g=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.va=function(t,e){return lr(this.I,t.la)-lr(this.I,e.la)}.bind(this),this.a=new Fp,this.fa={Point:this.Rn,LineString:this.wi,LinearRing:this.wi,Polygon:this.Sn,MultiPoint:this.Pn,MultiLineString:this.On,MultiPolygon:this.Qn,GeometryCollection:this.Nn,Circle:this.Mn}}function Eb(t,e,o,i){var r,n,s,a,p,h,l=i.Wa([e[0]-t.g,e[1]+t.g]),u=i.Wa([e[0]+t.g,e[1]-t.g]),l=ht([l,u]),c=Op(t.a,l),f=!1,l=!1,y=u=null;return 0<(c=t.R&&!t.C?c.filter(function(t){return"Circle"!==t.feature.V().U()}):c).length&&(t.I=o,c.sort(t.va),r=c[0].la,f="Circle"===c[0].feature.V().U(),t.R&&!t.C?(o=i.Ja(r[0]),f=i.Ja(r[1]),o=pr(e,o),e=pr(e,f),(f=(f=Math.sqrt(Math.min(o,e)))<=t.g)&&(l=!0,u=e<o?r[1]:r[0],y=i.Ja(u))):t.C&&(u=f?(n=o,c=c[0].feature.V(),s=c.pd(),c=(a=c.wa())[0],a=a[1],p=n[0]-c,n=n[1]-a,p||n||(p=1),h=Math.sqrt(p*p+n*n),[c+s*p/h,a+s*n/h]):or(o,r),hr(e,y=i.Ja(u))<=t.g&&(l=!0,t.R&&!f&&(o=i.Ja(r[0]),f=i.Ja(r[1]),o=pr(y,o),e=pr(y,f),f=(f=Math.sqrt(Math.min(o,e)))<=t.g)))&&(u=e<o?r[1]:r[0],y=i.Ja(u)),l&&(y=[Math.round(y[0]),Math.round(y[1])])),{nq:l,vertex:u,wq:y}}function Tb(t){var e=Eb(this,t.pixel,t.coordinate,t.map);return e.nq&&(t.coordinate=e.vertex.slice(0,2),t.pixel=e.wq),An.call(this,t)}function jb(){var t=Wt(this.u);return t.length&&(t.forEach(this.Dj,this),this.u={}),!1}function Cb(t){var e,o;Mn.call(this,{handleDownEvent:Lb,handleDragEvent:Ib,handleMoveEvent:Nb,handleUpEvent:Rb}),t=t||{},this.a=null,this.j=void 0!==t.features?t.features:null,o=t.layers?"function"==typeof t.layers?t.layers:(e=t.layers,function(t){return D(e,t)}):cr,this.C=o,this.l=t.hitTolerance||0,this.g=null,d(this,so("active"),this.u,this)}function Lb(t){var e;return this.g=Fb(this,t.pixel,t.map),!(this.a||!this.g)&&(this.a=t.coordinate,Nb.call(this,t),e=this.j||new ho([this.g]),this.b(new Db("translatestart",e,t.coordinate)),!0)}function Rb(t){var e;return!!this.a&&(this.a=null,Nb.call(this,t),e=this.j||new ho([this.g]),this.b(new Db("translateend",e,t.coordinate)),!0)}function Ib(t){var o,i,e;this.a&&(o=(t=t.coordinate)[0]-this.a[0],i=t[1]-this.a[1],(e=this.j||new ho([this.g])).forEach(function(t){var e=t.V();e.translate(o,i),t.Ra(e)}),this.a=t,this.b(new Db("translating",e,t)))}function Nb(t){var e=t.map.a;Fb(this,t.pixel,t.map)?(e.classList.remove(this.a?"ol-grab":"ol-grabbing"),e.classList.add(this.a?"ol-grabbing":"ol-grab")):e.classList.remove("ol-grab","ol-grabbing")}function Fb(t,e,o){return o.we(e,function(t){if(!this.j||D(this.j.a,t))return t}.bind(t),{layerFilter:t.C,hitTolerance:t.l})}function kb(t,e){var o=t.v;t=t.c(),o&&t||(o=o||e).a.classList.remove("ol-grab","ol-grabbing")}function Db(t,e,o){Qe.call(this,t),this.features=e,this.coordinate=o}function p(t){var e=Xt({},t=t||{}),o=(delete e.gradient,delete e.radius,delete e.blur,delete e.shadow,delete e.weight,s.call(this,e),this.j=null,this.R=void 0!==t.shadow?t.shadow:250,this.I=void 0,this.B=null,d(this,so(Gb),this.Bl,this),this.pj(t.gradient||Ob),this.jj(void 0!==t.blur?t.blur:15),this.Uc(void 0!==t.radius?t.radius:8),d(this,so(Ub),this.cg,this),d(this,so(Bb),this.cg,this),this.cg(),t.weight||"weight"),i="string"==typeof o?function(t){return t.get(o)}:o;this.g(function(t){var e=255*(t=void 0!==(t=i(t))?Q(t,0,1):1)|0,o=this.B[e];return o||(o=[new qh({image:new af({opacity:t,src:this.I})})],this.B[e]=o),o}.bind(this)),this.set(Av,null),d(this,"render",this.Sl,this)}e(Ab,Mn),(r=Ab.prototype).yb=function(t,e){e=void 0===e||e;var o,i=U(t),r=t.V();r&&(o=this.fa[r.U()])&&(this.T[i]=r.G(vt()),o.call(this,t,r)),e&&(this.B[i]=d(t,"change",this.Ln,this))},r.Ak=function(t){this.yb(t)},r.Bk=function(t){this.Gb(t)},r.ui=function(t){var e;t instanceof Fv?e=t.feature:t instanceof fo&&(e=t.element),this.yb(e)},r.vi=function(t){var e;t instanceof Fv?e=t.feature:t instanceof fo&&(e=t.element),this.Gb(e)},r.Ln=function(t){var e;t=t.target,this.D?(e=U(t))in this.u||(this.u[e]=t):this.Dj(t)},r.Gb=function(e,t){t=void 0===t||t;var o=U(e),i=this.T[o];if(i){var r=this.a,n=[];for(Up(r,i,function(t){e===t.feature&&n.push(t)}),i=n.length-1;0<=i;--i)r.remove(n[i])}t&&(qe(this.B[o]),delete this.B[o])},r.setMap=function(t){var e,o=this.v,i=this.pa;this.j?e=this.j:this.l&&(e=this.l.Xe()),o&&(i.forEach(qe),i.length=0,e.forEach(this.Bk,this)),Mn.prototype.setMap.call(this,t),t&&(this.j?i.push(d(this.j,"add",this.ui,this),d(this.j,"remove",this.vi,this)):this.l&&i.push(d(this.l,"addfeature",this.ui,this),d(this.l,"removefeature",this.vi,this)),e.forEach(this.Ak,this))},r.Xc=fr,r.Dj=function(t){this.Gb(t,!1),this.yb(t,!1)},r.Mn=function(t,e){for(var o=0,i=(e=qr(e).X()[0]).length-1;o<i;++o){var r=e.slice(o,o+2),n={feature:t,la:r};this.a.Ca(ht(r),n)}},r.Nn=function(t,e){var o=e.a;for(e=0;e<o.length;++e){var i=this.fa[o[e].U()];i&&i.call(this,t,o[e])}},r.wi=function(t,e){for(var o=0,i=(e=e.X()).length-1;o<i;++o){var r=e.slice(o,o+2),n={feature:t,la:r};this.a.Ca(ht(r),n)}},r.On=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length-1;n<s;++n){var a=r.slice(n,n+2),p={feature:t,la:a};this.a.Ca(ht(a),p)}},r.Pn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i){var n={feature:t,la:[n=o[i],n]};this.a.Ca(e.G(),n)}},r.Qn=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length;n<s;++n)for(var a=r[n],p=0,h=a.length-1;p<h;++p){var l=a.slice(p,p+2),u={feature:t,la:l};this.a.Ca(ht(l),u)}},r.Rn=function(t,e){var o=e.X();t={feature:t,la:[o,o]},this.a.Ca(e.G(),t)},r.Sn=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length-1;n<s;++n){var a=r.slice(n,n+2),p={feature:t,la:a};this.a.Ca(ht(a),p)}},e(Cb,Mn),Cb.prototype.B=function(){return this.l},Cb.prototype.I=function(t){this.l=t},Cb.prototype.setMap=function(t){var e=this.v;Mn.prototype.setMap.call(this,t),kb(this,e)},Cb.prototype.u=function(){kb(this,null)},e(Db,Qe),e(p,s);var Ob=["#00f","#0ff","#0f0","#ff0","#f00"],Ub=((r=p.prototype).uh=function(){return this.get(Ub)},r.Bh=function(){return this.get(Gb)},r.yi=function(){return this.get(Bb)},r.Bl=function(){for(var t=this.Bh(),e=Po(1,256),o=e.createLinearGradient(0,0,1,256),i=1/(t.length-1),r=0,n=t.length;r<n;++r)o.addColorStop(r*i,t[r]);e.fillStyle=o,e.fillRect(0,0,1,256),this.j=e.getImageData(0,0,1,256).data},r.cg=function(){var t=this.yi(),e=this.uh(),o=t+e+1,i=2*o;(i=Po(i,i)).shadowOffsetX=i.shadowOffsetY=this.R,i.shadowBlur=e,i.shadowColor="#000",i.beginPath(),e=o-this.R,i.arc(e,e,t,0,2*Math.PI,!0),i.fill(),this.I=i.canvas.toDataURL(),this.B=Array(256),this.s()},r.Sl=function(t){for(var e,o=(t=t.context).canvas,i=(o=t.getImageData(0,0,o.width,o.height)).data,r=0,n=i.length;r<n;r+=4)(e=4*i[r+3])&&(i[r]=this.j[e],i[r+1]=this.j[1+e],i[r+2]=this.j[2+e]);t.putImageData(o,0,0)},r.jj=function(t){this.set(Ub,t)},r.pj=function(t){this.set(Gb,t)},r.Uc=function(t){this.set(Bb,t)},"blur"),Gb="gradient",Bb="radius";function Xb(t){pv.call(this,t),this.v=ms(),this.j=null}function Vb(t){Xb.call(this,t),this.M=null,this.c=ms()}function Wb(t,e,o,i){var r=Me(o,e,t);return o=ce(e,i,o),void 0!==(e=e.sc())&&(o*=e),void 0!==(e=t.sc())&&(o/=e),t=ce(t,o,r)/o,isFinite(t)&&0<t&&(o/=t),o}function Zb(t,e,o,i){t=o-t,e=i-e;var r=Math.sqrt(t*t+e*e);return[Math.round(o+t/r),Math.round(i+e/r)]}function Kb(t,e,g,d,o,v,i,r,n,s,a){var b,m,p,w,x=Po(Math.round(g*t),Math.round(g*e));return n.length&&(x.scale(g,g),b=vt(),n.forEach(function(t){Mt(b,t.extent)}),m=Po(Math.round(g*Dt(b)/d),Math.round(g*It(b)/d)),p=g/d,n.forEach(function(t){m.drawImage(t.image,s,s,t.image.width-2*s,t.image.height-2*s,(t.extent[0]-b[0])*p,-(t.extent[3]-b[3])*p,Dt(t.extent)*p,It(t.extent)*p)}),w=Ft(i),r.c.forEach(function(t){var e=t.source,o=t.target,i=e[1][0],r=e[1][1],n=e[2][0],s=e[2][1],a=(t=(o[0][0]-w[0])/v,-(o[0][1]-w[1])/v),p=(o[1][0]-w[0])/v,h=-(o[1][1]-w[1])/v,l=(o[2][0]-w[0])/v,u=-(o[2][1]-w[1])/v;t:{for(r=(i=[[i=i-(o=e[0][0]),r=r-(e=e[0][1]),0,0,p-t],[n=n-o,s=s-e,0,0,l-t],[0,0,i,r,h-a],[0,0,n,s,u-a]]).length,n=0;n<r;n++){for(var s=n,c=Math.abs(i[n][n]),f=n+1;f<r;f++){var y=Math.abs(i[f][n]);c<y&&(c=y,s=f)}if(!c){i=null;break t}for(c=i[s],i[s]=i[n],i[n]=c,s=n+1;s<r;s++)for(c=-i[s][n]/i[n][n],f=n;f<r+1;f++)i[s][f]=n==f?0:i[s][f]+c*i[n][f]}for(n=Array(r),s=r-1;0<=s;s--)for(n[s]=i[s][r]/i[s][s],c=s-1;0<=c;c--)i[c][r]-=i[c][s]*n[s];i=n}i&&(x.save(),x.beginPath(),r=Zb(n=(t+p+l)/3,s=(a+h+u)/3,t,a),p=Zb(n,s,p,h),l=Zb(n,s,l,u),x.moveTo(p[0],p[1]),x.lineTo(r[0],r[1]),x.lineTo(l[0],l[1]),x.clip(),x.transform(i[0],i[2],i[1],i[3],t,a),x.translate(b[0]-o,b[3]-e),x.scale(d/g,-d/g),x.drawImage(m.canvas,0,0),x.restore())}),a&&(x.save(),x.strokeStyle="black",x.lineWidth=1,r.c.forEach(function(t){t=((n=t.target)[0][0]-w[0])/v;var e=-(n[0][1]-w[1])/v,o=(n[1][0]-w[0])/v,i=-(n[1][1]-w[1])/v,r=(n[2][0]-w[0])/v,n=-(n[2][1]-w[1])/v;x.beginPath(),x.moveTo(o,i),x.lineTo(t,e),x.lineTo(r,n),x.closePath(),x.stroke()}),x.restore())),x.canvas}function zb(t,e,o,i,r){this.i=t,this.f=e;var n,s={},a=me(this.f,this.i),p=(this.a=function(t){var e=t[0]+"/"+t[1];return s[e]||(s[e]=a(t)),s[e]},this.g=i,this.v=r*r,this.c=[],this.o=!1,this.l=this.i.i&&!!i&&!!this.i.G()&&Dt(i)==Dt(this.i.G()),this.b=this.i.G()?Dt(this.i.G()):null,this.j=this.f.G()?Dt(this.f.G()):null,t=Ft(o),e=kt(o),i=Ct(o),o=jt(o),r=this.a(t),this.a(e)),h=this.a(i),l=this.a(o);!function t(e,o,i,r,n,s,a,p,h,l){var u=ht([s,a,p,h]),c=e.b?Dt(u)/e.b:null,f=e.b,y=e.i.i&&.5<c&&c<1,g=!1;{var d;0<l&&(e.f.c&&e.j&&(d=ht([o,i,r,n]),g|=.25<Dt(d)/e.j),!y&&e.i.c&&c&&(g|=.25<c))}if(g||!e.g||Ot(u,e.g)){if(!(g||isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(p[0])&&isFinite(p[1])&&isFinite(h[0])&&isFinite(h[1]))){if(!(0<l))return;g=!0}if(0<l&&(g||(u=e.a([(o[0]+r[0])/2,(o[1]+r[1])/2]),f=y?(rt(s[0],f)+rt(p[0],f))/2-rt(u[0],f):(s[0]+p[0])/2-u[0],u=(s[1]+p[1])/2-u[1],g=f*f+u*u>e.v),g))Math.abs(o[0]-r[0])<=Math.abs(o[1]-r[1])?(y=[(i[0]+r[0])/2,(i[1]+r[1])/2],f=e.a(y),u=[(n[0]+o[0])/2,(n[1]+o[1])/2],c=e.a(u),t(e,o,i,y,u,s,a,f,c,l-1),t(e,u,y,r,n,c,f,p,h,l-1)):(y=[(o[0]+i[0])/2,(o[1]+i[1])/2],f=e.a(y),u=[(r[0]+n[0])/2,(r[1]+n[1])/2],c=e.a(u),t(e,o,y,u,n,s,f,c,h,l-1),t(e,y,i,r,u,f,a,p,c,l-1));else{if(y){if(!e.l)return;e.o=!0}e.c.push({source:[s,p,h],target:[o,r,n]}),e.c.push({source:[s,a,p],target:[o,i,r]})}}}(this,t,e,i,o,r,p,h,l,10),this.o&&(n=1/0,this.c.forEach(function(t){n=Math.min(n,t.source[0][0],t.source[1][0],t.source[2][0])}),this.c.forEach(function(t){var e;Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-n>this.b/2&&((e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]])[0][0]-n>this.b/2&&(e[0][0]-=this.b),e[1][0]-n>this.b/2&&(e[1][0]-=this.b),e[2][0]-n>this.b/2&&(e[2][0]-=this.b),Math.max(e[0][0],e[1][0],e[2][0])-Math.min(e[0][0],e[1][0],e[2][0])<this.b/2&&(t.source=e))},this)),s={}}function Yb(t){var e=vt();return t.c.forEach(function(t){t=t.source,Pt(e,t[0]),Pt(e,t[1]),Pt(e,t[2])}),e}function Hb(t,e,o,i,r,n){this.v=e,this.l=t.G();var s=(a=e.G())?Nt(o,a):o,a=Wb(t,e,Lt(s),i);this.j=new zb(t,e,s,this.l,.5*a),this.c=i,this.i=o,t=Yb(this.j),this.o=(this.Hb=n(t,a,r))?this.Hb.a:1,this.ee=this.g=null,r=2,n=[],this.Hb&&(r=0,n=this.Hb.f),y0.call(this,o,i,this.o,r,n)}function qb(t){Tv.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,state:t.state}),this.C=void 0!==t.resolutions?t.resolutions:null,this.a=null,this.fa=0}function Jb(t,e){return e=t.C?t.C[B(t.C,e,0)]:e}function _b(t,e){t.Y().src=e}function $b(t,e){Qe.call(this,t),this.image=e}e(Xb,pv),Xb.prototype.S=function(t,e,o){lv(this,"precompose",o,t,void 0);var i,r,n,s=this.Y();s&&((i=void 0!==(r=e.extent)&&!yt(r,t.extent)&&Ot(r,t.extent))&&hv(o,t,r),r=this.C(),n=o.globalAlpha,o.globalAlpha=e.opacity,o.drawImage(s,0,0,+s.width,+s.height,Math.round(r[4]),Math.round(r[5]),Math.round(s.width*r[0]),Math.round(s.height*r[3])),o.globalAlpha=n,i&&o.restore()),this.ef(o,t,e)},Xb.prototype.Ea=function(t,e,o,i,r){var n=this.a;return n.ha().Ea(t,e.viewState.resolution,e.viewState.rotation,o,e.skippedFeatureUids,function(t){return i.call(r,t,n)})},Xb.prototype.u=function(t,e,o,i){if(this.Y()){if(this.a.ha().Ea!==Y)return pv.prototype.u.apply(this,arguments);var r=Ps(this.v,t.slice());return ar(r,e.viewState.resolution/this.f),this.j||(this.j=Po(1,1)),this.j.clearRect(0,0,1,1),this.j.drawImage(this.Y(),r[0],r[1],1,1,0,0,1,1),0<(r=this.j.getImageData(0,0,1,1).data)[3]?o.call(i,this.a,r):void 0}},e(Vb,Xb),Vb.prototype.Y=function(){return this.M?this.M.Y():null},Vb.prototype.C=function(){return this.c},Vb.prototype.sd=function(t,e){var o,i=t.pixelRatio,r=t.size,n=t.viewState,s=n.center,a=n.resolution,p=this.a.ha(),h=t.viewHints,l=t.extent;return void 0!==e.extent&&(l=Nt(l,e.extent)),h[0]||h[1]||Ut(l)||(e=p.Y(l,a,i,n.projection))&&ev(this,e)&&(this.M=e),this.M&&(h=(e=this.M).G(),o=i*(l=e.resolution)/(a*(n=e.a)),h=js(this.c,i*r[0]/2,i*r[1]/2,o,o,0,n*(h[0]-s[0])/l,n*(s[1]-h[3])/l),js(this.v,i*r[0]/2-h[4],i*r[1]/2-h[5],i/a,-i/a,0,-s[0],-s[1]),rv(t.attributions,e.f),nv(t,p),this.f=a*i/n),!!this.M},e(Hb,y0),Hb.prototype.ka=function(){1==this.state&&(qe(this.ee),this.ee=null),y0.prototype.ka.call(this)},Hb.prototype.Y=function(){return this.g},Hb.prototype.de=function(){var t=this.Hb.getState();2==t&&(this.g=Kb(Dt(this.i)/this.c,It(this.i)/this.c,this.o,this.Hb.resolution,0,this.c,this.i,this.j,[{extent:this.Hb.G(),image:this.Hb.Y()}],0)),this.state=t,this.s()},Hb.prototype.load=function(){var t;0==this.state&&(this.state=1,this.s(),2==(t=this.Hb.getState())||3==t?this.de():(this.ee=d(this.Hb,"change",function(){var t=this.Hb.getState();2!=t&&3!=t||(qe(this.ee),this.ee=null,this.de())},this),this.Hb.load()))},e(qb,Tv),qb.prototype.Y=function(t,e,o,i){var r=this.c;if(r&&i&&!be(r,i)){if(this.a){if(this.fa==this.i&&be(this.a.v,i)&&this.a.resolution==e&&this.a.a==o&&St(this.a.G(),t))return this.a;$e(this.a),this.a=null}return this.a=new Hb(r,i,t,e,o,function(t,e,o){return this.Jc(t,e,o,r)}.bind(this)),this.fa=this.i,this.a}return this.Jc(t,e,o,i=r?r:i)},qb.prototype.o=function(t){switch((t=t.target).getState()){case 1:this.b(new $b(Qb,t));break;case 2:this.b(new $b(tm,t));break;case 3:this.b(new $b(em,t))}},e($b,Qe);var Qb="imageloadstart",tm="imageloadend",em="imageloaderror";function om(t){qb.call(this,{attributions:t.attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions,state:t.state}),this.pa=t.canvasFunction,this.R=null,this.T=0,this.va=void 0!==t.ratio?t.ratio:1.5}function im(t){this.f=t.source,this.$a=ms(),this.g=Po(),this.l=[0,0],this.Sa=null==t.renderBuffer?100:t.renderBuffer,this.B=null,om.call(this,{attributions:t.attributions,canvasFunction:this.tk.bind(this),logo:t.logo,projection:t.projection,ratio:t.ratio,resolutions:t.resolutions,state:this.f.getState()}),this.I=null,this.v=void 0,this.Ii(t.style),d(this.f,"change",this.ro,this)}function rm(t,e){Sv.call(this,t,e),this.o=this.f=this.M=null}function nm(t){ys.call(this,t||{})}function sm(t){Xb.call(this,t),this.c=null===this.c?null:Po(),this.o=null,this.g=[],this.l=vt(),this.va=new J(0,0,0,0),this.B=ms(),this.T=0}function am(t,e){return e=e.getState(),t=t.a.kd(),2==e||4==e||3==e&&!t}function pm(){this.b="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor=texture2D(e,a);}"}e(om,qb),om.prototype.Jc=function(t,e,o,i){e=Jb(this,e);var r=this.R;return r&&this.T==this.i&&r.resolution==e&&r.a==o&&yt(r.G(),t)||(Gt(t=t.slice(),this.va),(i=this.pa(t,e,o,[Dt(t)/e*o,It(t)/e*o],i))&&(r=new d0(t,e,o,this.j,i)),this.R=r,this.T=this.i),r},e(im,om),(r=im.prototype).tk=function(t,n,s,e,o){var i,r,a=new H0(.5*n/s,t,n,this.f.T,this.Sa),p=(this.f.Yd(t,n,o),!1);return this.f.$b(t,function(t){var e;if(!(i=p))if((i=t.Lc())?e=i.call(t,n):this.v&&(e=this.v(t,n)),e){for(var o=!1,i=0,r=(e=Array.isArray(e)?e:[e]).length;i<r;++i)o=yv(a,t,e[i],fv(n,s),this.qo,this)||o;i=o}else i=!1;p=i},this),_0(a),p?null:(this.l[0]!=e[0]||this.l[1]!=e[1]?(this.g.canvas.width=e[0],this.g.canvas.height=e[1],this.l[0]=e[0],this.l[1]=e[1]):this.g.clearRect(0,0,e[0],e[1]),o=this,i=Lt(t),r=s/(r=n),t=js(o.$a,e[0]/2,e[1]/2,r,-r,0,-i[0],-i[1]),a.La(this.g,s,t,0,{}),this.B=a,this.g.canvas)},r.Ea=function(t,e,o,i,r,n){var s;if(this.B)return s={},this.B.Ea(t,e,0,i,r,function(t){var e=U(t).toString();if(!(e in s))return s[e]=!0,n(t)})},r.no=function(){return this.f},r.oo=function(){return this.I},r.po=function(){return this.v},r.qo=function(){this.s()},r.ro=function(){Cv(this,this.f.getState())},r.Ii=function(t){this.I=void 0!==t?t:$h,this.v=t?Jh(this.I):void 0,this.s()},e(rm,Sv),rm.prototype.Ea=function(t,e,o,i,r){var n=this.a;return n.ha().Ea(t,e.viewState.resolution,e.viewState.rotation,o,e.skippedFeatureUids,function(t){return i.call(r,t,n)})},rm.prototype.ng=function(t,e){var o=this.c.i,i=t.pixelRatio,r=t.viewState,n=r.center,s=r.resolution,a=r.rotation,p=this.M,h=this.Ib,l=this.a.ha(),u=t.viewHints,c=t.extent;return void 0!==e.extent&&(c=Nt(c,e.extent)),u[0]||u[1]||Ut(c)||(e=l.Y(c,s,i,r.projection))&&ev(this,e)&&(u=this,c=(c=p=e).Y(),h=Na(u.c.i,c),this.Ib&&t.postRenderFunctions.push(function(t,e){t.isContextLost()||t.deleteTexture(e)}.bind(null,o,this.Ib))),p&&(o=this.c.f.j,r=this,e=o.width,u=o.height,c=i,o=n,n=s,s=a,a=p.G(),e*=n,u*=n,ws(r=r.S),Es(r,2*c/e,2*c/u),As(r,-s),Ts(r,a[0]-o[0],a[1]-o[1]),Es(r,(a[2]-a[0])/2,(a[3]-a[1])/2),Ts(r,1,1),this.o=null,ws(i=this.v),Es(i,1,-1),Ts(i,0,-1),this.M=p,this.Ib=h,rv(t.attributions,p.f),nv(t,l)),!!p},rm.prototype.Ue=function(t,e){return void 0!==this.Ea(t,e,0,cr,this)},rm.prototype.lg=function(t,e,o,i){if(this.M&&this.M.Y())if(this.a.ha()instanceof im){var r=Ps(e.pixelToCoordinateTransform,t.slice());if(this.Ea(r,e,0,cr,this))return o.call(i,this.a,null)}else{var n,s,r=[this.M.Y().width,this.M.Y().height];if(this.o||(n=e.size,Ts(e=ms(),-1,-1),Es(e,2/n[0],2/n[1]),Ts(e,0,n[1]),Es(e,1,-1),n=Cs(this.S.slice()),Ts(s=ms(),0,r[1]),Es(s,1,-1),Es(s,r[0]/2,r[1]/2),Ts(s,1,1),xs(s,n),xs(s,e),this.o=s),!((t=Ps(this.o,t.slice()))[0]<0||t[0]>r[0]||t[1]<0||t[1]>r[1])&&(this.f||(this.f=Po(1,1)),this.f.clearRect(0,0,1,1),this.f.drawImage(this.M.Y(),t[0],t[1],1,1,0,0,1,1),0<(r=this.f.getImageData(0,0,1,1).data)[3]))return o.call(i,this.a,r)}},e(nm,ys),nm.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new Vb(this):"webgl"===o&&(e=new rm(t,this)),e},e(sm,Xb),sm.prototype.sd=function(t,e){var o=t.pixelRatio,i=t.size,r=(s=t.viewState).projection,n=s.resolution,s=s.center,a=this.a,p=a.ha(),h=p.i,l=p.Ta(r),u=l.tc(n,this.T),c=l.Da(u),f=Math.round(n/c)||1,y=t.extent;if(Ut(y=void 0!==e.extent?Nt(y,e.extent):y))return!1;var g=Re(l,y,c),d=l.Pc(u),v=l.Da(u),b=pt(l.gb(u),l.j),d=bt(d[0]+g.ca*b[0]*v,d[1]+g.da*b[1]*v,d[0]+(g.$+1)*b[0]*v,d[1]+(g.ia+1)*b[1]*v,void 0),v=p.nb(o),m=((b={})[u]={},this.Nf(p,r,b)),w=this.l,x=this.va,S=!1;for(C=g.ca;C<=g.$;++C)for(L=g.da;L<=g.ia;++L){var M=p.Nc(u,C,L,o,r);3!=M.getState()||this.a.kd()||m0(M,2),am(this,M)||(M=b0(M)),am(this,M)?2==M.getState()&&(b[u][M.ta.toString()]=M,S||-1!=this.g.indexOf(M)||(S=!0)):Ce(l,M.ta,m,x,w)||(M=Le(l,M.ta,x,w))&&m(u+1,M)}if(C=(C=t.viewHints)[0]||C[1],!(this.f&&16<Date.now()-t.time&&C||!S&&this.o&&yt(this.o,y)&&this.mf==h&&f==this.R&&(C||c*o/v*f==this.f))){(C=this.c)&&(L=p.Xd(u,o,r),M=Math.round((g.$-g.ca+1)*L[0]/f),L=Math.round((g.ia-g.da+1)*L[1]/f),(S=C.canvas).width!=M||S.height!=L?(this.R=f,S.width=M,S.height=L):(C.clearRect(0,0,M,L),f=this.R)),this.g.length=0,(S=Object.keys(b).map(Number)).sort(G);for(var x=0,P=S.length;x<P;++x){C=S[x];var A,m=p.Xd(C,o,r),E=(M=l.Da(C))/c,T=v*p.Wf(r),j=b[C];for(A in j){var M=j[A],C=((L=l.Aa(M.ta,w))[0]-d[0])/c*v/f,L=(d[3]-L[3])/c*v/f,R=m[0]*E/f,I=m[1]*E/f;this.Of(M,t,e,C,L,R,I,T),this.g.push(M)}}this.mf=h,this.f=c*o/v*f,this.o=d}return e=this.f/n,e=js(this.B,o*i[0]/2,o*i[1]/2,e,e,0,(this.o[0]-s[0])/this.f*o,(s[1]-this.o[3])/this.f*o),js(this.v,o*i[0]/2-e[4],o*i[1]/2-e[5],o/n,-o/n,0,-s[0],-s[1]),sv(t.usedTiles,p,u,g),av(t,p,l,o,r,y,u,a.Ud()),iv(t,p),nv(t,p),0<this.g.length},sm.prototype.Of=function(t,e,o,i,r,n,s,a){this.a.ha().Zf(e.viewState.projection)||this.c.clearRect(i,r,n,s),(t=t.Y())&&this.c.drawImage(t,a,a,t.width-2*a,t.height-2*a,i,r,n,s)},sm.prototype.Y=function(){var t=this.c;return t?t.canvas:null},sm.prototype.C=function(){return this.B},e(pm,ta);var hm=new pm;function lm(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform vec4 d;void main(void){gl_Position=vec4(b*d.xy+d.zw,0.,1.);a=c;}"}e(lm,ea);var um=new lm;function cm(t,e){this.i=t.getUniformLocation(e,"e"),this.c=t.getUniformLocation(e,"d"),this.b=t.getAttribLocation(e,"b"),this.a=t.getAttribLocation(e,"c")}function fm(t,e){Sv.call(this,t,e),this.I=hm,this.fa=um,this.f=null,this.B=new da([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),this.D=this.o=null,this.l=-1,this.R=[0,0]}function A(t){var e=Xt({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,ys.call(this,e),this.zi(void 0!==t.preload?t.preload:0),this.Ai(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}function ym(t){this.c=null,sm.call(this,t),this.I=!1,this.D=ms(),this.T="vector"==t.j?1:0}e(fm,Sv),(r=fm.prototype).ka=function(){Ta(this.c.f,this.B),Sv.prototype.ka.call(this)},r.Nf=function(e,i,r){var n=this.c;return function(o,t){return Em(e,i,o,t,function(t){var e=n.a.b.hasOwnProperty(t.bb());return e&&(r[o]||(r[o]={}),r[o][t.ta.toString()]=t),e})}},r.mg=function(){Sv.prototype.mg.call(this),this.f=null},r.ng=function(t,e,o){var i,r,n,s,a,p,h=this.c,l=o.b,u=t.viewState,c=u.projection,f=this.a,y=f.ha(),g=y.Ta(c),d=g.tc(u.resolution),v=g.Da(d),b=y.Xd(d,t.pixelRatio,c),m=b[0]/pt(g.gb(d),this.R)[0],w=v/m,x=y.nb(m)*y.Wf(c),S=u.center,M=t.extent,P=Re(g,M,v);if(this.o&&(a=this.o,p=P,a.ca==p.ca&&a.da==p.da&&a.$==p.$&&a.ia==p.ia)&&this.l==y.i)w=this.D;else{var A=[P.$-P.ca+1,P.ia-P.da+1];O(0<(a=Math.max(A[0]*b[0],A[1]*b[1])),29);for(var E,A=w*(L=Math.pow(2,Math.ceil(Math.log(a)/Math.LN2))),T=g.Pc(d),w=[R=T[0]+P.ca*b[0]*w,w=T[1]+P.da*b[1]*w,R+A,w+A],j=(p=t,r=L,s=(i=this).c.i,void 0===i.j||i.j!=r?(p.postRenderFunctions.push(function(t,e,o){t.isContextLost()||(t.deleteFramebuffer(e),t.deleteTexture(o))}.bind(null,s,i.g,i.Ib)),p=Ia(s,r,r),n=s.createFramebuffer(),s.bindFramebuffer(36160,n),s.framebufferTexture2D(36160,36064,3553,p,0),i.Ib=p,i.g=n,i.j=r):s.bindFramebuffer(36160,i.g),l.viewport(0,0,L,L),l.clearColor(0,0,0,0),l.clear(16384),l.disable(3042),L=La(o,this.I,this.fa),o.Qc(L),this.f||(this.f=new cm(l,L)),Ea(o,34962,this.B),l.enableVertexAttribArray(this.f.b),l.vertexAttribPointer(this.f.b,2,5126,!1,16,0),l.enableVertexAttribArray(this.f.a),l.vertexAttribPointer(this.f.a,2,5126,!1,16,8),l.uniform1i(this.f.i,0),(o={})[d]={},this.Nf(y,c,o)),C=f.kd(),L=!0,R=vt(),I=new J(0,0,0,0),N=P.ca;N<=P.$;++N)for(E=P.da;E<=P.ia;++E){if(T=y.Nc(d,N,E,m,c),void 0!==e.extent){var F=g.Aa(T.ta,R);if(!Ot(F,e.extent))continue}if(2==(F=(T=(F=2==(F=T.getState())||4==F||3==F&&!C)?T:b0(T)).getState())){if(h.a.b.hasOwnProperty(T.bb())){o[d][T.ta.toString()]=T;continue}}else if(4==F||3==F&&!C)continue;L=!1,(F=Ce(g,T.ta,j,I,R))||(T=Le(g,T.ta,I,R))&&j(d+1,T)}(e=Object.keys(o).map(Number)).sort(G);for(var k,j=new Float32Array(4),C=0,I=e.length;C<I;++C)for(k in N=o[e[C]])T=N[k],F=g.Aa(T.ta,R),j[0]=2*(F[2]-F[0])/A,j[1]=2*(F[3]-F[1])/A,j[2]=2*(F[0]-w[0])/A-1,j[3]=2*(F[1]-w[1])/A-1,l.uniform4fv(this.f.c,j),hh(h,T,b,x*m),l.drawArrays(5,0,4);L?(this.o=P,this.D=w,this.l=y.i):(this.D=this.o=null,this.l=-1,t.animate=!0)}sv(t.usedTiles,y,d,P);var D=h.j;return av(t,y,g,m,c,M,d,f.Ud(),function(t){2!=t.getState()||h.a.b.hasOwnProperty(t.bb())||t.bb()in D.a||D.f([t,Ne(g,t.ta),g.Da(t.ta[0]),b,x*m])},this),iv(t,y),nv(t,y),ws(l=this.v),Ts(l,(Math.round(S[0]/v)*v-w[0])/(w[2]-w[0]),(Math.round(S[1]/v)*v-w[1])/(w[3]-w[1])),u.rotation&&As(l,u.rotation),Es(l,t.size[0]*u.resolution/(w[2]-w[0]),t.size[1]*u.resolution/(w[3]-w[1])),Ts(l,-.5,-.5),!0},r.lg=function(t,e,o,i){if(this.g){t=[(t=Ps(this.v,[t[0]/e.size[0],(e.size[1]-t[1])/e.size[1]].slice()))[0]*this.j,t[1]*this.j],(e=this.c.f.b).bindFramebuffer(e.FRAMEBUFFER,this.g);var r=new Uint8Array(4);if(e.readPixels(t[0],t[1],1,1,e.RGBA,e.UNSIGNED_BYTE,r),0<r[3])return o.call(i,this.a,r)}},e(A,ys),(r=A.prototype).Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new sm(this):"webgl"===o&&(e=new fm(t,this)),e},r.Ud=function(){return this.get("preload")},r.zi=function(t){this.set("preload",t)},r.kd=function(){return this.get("useInterimTilesOnError")},r.Ai=function(t){this.set("useInterimTilesOnError",t)},e(ym,sm);var gm={image:_s,hybrid:["Polygon","LineString"]},dm={hybrid:["Image","Text"],vector:_s};function E(t){var e=Xt({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,s.call(this,e),this.Bi(t.preload||0),this.Ci(t.useInterimTilesOnError||!0),O(null==t.renderMode||"image"==t.renderMode||"hybrid"==t.renderMode||"vector"==t.renderMode,28),this.j=t.renderMode||"hybrid"}function vm(t,e,o,i){function r(){delete window[s],n.parentNode.removeChild(n)}var n=document.createElement("script"),s="olc_"+U(e),a=(n.async=!0,n.src=t+(-1==t.indexOf("?")?"?":"&")+(i||"callback")+"="+s,setTimeout(function(){r(),o&&o()},1e4));window[s]=function(t){clearTimeout(a),r(),e(t)},document.getElementsByTagName("head")[0].appendChild(n)}function bm(t,e,o,i,r,n,s,a,p,h,l){if(v0.call(this,r,0),this.D=void 0!==l&&l,this.S=s,this.u=a,this.v=null,this.c=e,this.j=i,this.o=n||r,this.a=[],this.yd=null,this.g=0,n=i.Aa(this.o),a=this.j.G(),r=this.c.G(),Tt(n=a?Nt(n,a):n))if((a=t.G())&&(r=r?Nt(r,a):a),i=Wb(t,o,Lt(n),i.Da(this.o[0])),!isFinite(i)||i<=0)this.state=4;else if(this.l=new zb(t,o,n,r,i*(void 0!==h?h:.5)),this.l.c.length)if(this.g=e.tc(i),o=Yb(this.l),r&&(t.i?(o[1]=Q(o[1],r[1],r[3]),o[3]=Q(o[3],r[1],r[3])):o=Nt(o,r)),Tt(o)){for(e=(t=Ie(e,o,this.g)).ca;e<=t.$;e++)for(o=t.da;o<=t.ia;o++)(h=p(this.g,e,o,s))&&this.a.push(h);this.a.length||(this.state=4)}else this.state=4;else this.state=4;else this.state=4}function mm(t,e){for(var o=t.length,i=Array(o),r=0;r<o;++r)i[r]=function(t,o){var i=/\{z\}/g,r=/\{x\}/g,n=/\{y\}/g,s=/\{-y\}/g;return function(e){if(e)return t.replace(i,e[0].toString()).replace(r,e[1].toString()).replace(n,function(){return(-e[2]-1).toString()}).replace(s,function(){var t=o.a?o.a[e[0]]:null;return O(t,55),(t.ia-t.da+1+e[2]).toString()})}}(t[r],e);return wm(i)}function wm(i){return 1===i.length?i[0]:function(t,e,o){if(t)return i[rt((t[1]<<t[0])+t[2],i.length)](t,e,o)}}function xm(){}function Sm(t){var e=[],o=/\{([a-z])-([a-z])\}/.exec(t);if(o)for(var i=o[2].charCodeAt(0),r=o[1].charCodeAt(0);r<=i;++r)e.push(t.replace(o[0],String.fromCharCode(r)));else if(o=/\{(\d+)-(\d+)\}/.exec(t))for(i=parseInt(o[2],10),r=parseInt(o[1],10);r<=i;r++)e.push(t.replace(o[0],r.toString()));else e.push(t);return e}function Mm(t){ah.call(this),this.highWaterMark=void 0!==t?t:2048}function Pm(t){return t.c>t.highWaterMark}function Am(t){Tv.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,state:t.state,wrapX:t.wrapX}),this.va=void 0!==t.opaque&&t.opaque,this.$a=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null,this.a=new Mm(t.cacheSize),this.o=[0,0],this.uc=""}function Em(t,e,o,i,r){if(!(e=t.Wd(e)))return!1;for(var n,s,a=!0,p=i.ca;p<=i.$;++p)for(var h=i.da;h<=i.ia;++h)n=t.Sb(o,p,h),s=!1,e.b.hasOwnProperty(n)&&((s=2===(n=e.get(n)).getState())&&(s=!1!==r(n))),s||(a=!1);return a}function Tm(t,e){t.uc!==e&&(t.uc=e,t.s())}function jm(t,e,o){var i,r,n=void 0!==o?o:t.c;return o=t.Ta(n),t.u&&n.c&&(e=(i=e)[0],t=Ne(o,i),e=ft(n=Ge(n),t)?i:(i=Dt(n),t[0]+=i*Math.ceil((n[0]-t[0])/i),o.bg(t,e))),i=e[0],n=e[1],t=e[2],(o=!(o.minZoom>i||i>o.maxZoom)&&(!(o=(r=o.G())?Ie(o,r,i):o.a?o.a[i]:null)||_(o,n,t)))?e:null}function Cm(t,e){Qe.call(this,t),this.tile=e}function Lm(t){Am.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,extent:t.extent,logo:t.logo,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX}),this.tileLoadFunction=t.tileLoadFunction,this.tileUrlFunction=this.Fc?this.Fc.bind(this):xm,this.urls=null,t.urls?this.eb(t.urls):t.url&&this.jb(t.url),t.tileUrlFunction&&this.cb(t.tileUrlFunction)}function T(t){Lm.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,extent:t.extent,logo:t.logo,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction||Nm,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX}),this.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,this.tileClass=t.tileClass||w0,this.g={},this.v={},this.Sa=t.reprojectionErrorThreshold,this.I=!1}function Rm(t,e,o,i,r,n,s){return r=(o=jm(t,e=[e,o,i],n))?t.tileUrlFunction(o,r,n):void 0,(r=new t.tileClass(e,void 0!==r?0:4,void 0!==r?r:"",t.crossOrigin,t.tileLoadFunction)).key=s,d(r,"change",t.Li,t),r}function Im(t,e,o,i,r,n){var s=t.Sb(e,o,i),a=t.uc;if(t.a.b.hasOwnProperty(s)){if((h=t.a.get(s)).key!=a){var p=h,h=Rm(t,e,o,i,r,n,a);if(0==p.getState()?h.i=p.i:h.i=p,h.i){e=h.i,o=h;do{if(2==e.getState()){e.i=null;break}}while(1!=e.getState()&&0==e.getState()?o.i=e.i:o=e,e=o.i)}t.a.replace(s,h)}}else h=Rm(t,e,o,i,r,n,a),t.a.set(s,h);return h}function Nm(t,e){t.Y().src=e}function j(t){this.B=void 0!==t.hidpi&&t.hidpi,T.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",opaque:!0,projection:v("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,tilePixelRatio:this.B?2:1,wrapX:void 0===t.wrapX||t.wrapX}),this.R=void 0!==t.culture?t.culture:"en-us",this.C=void 0!==t.maxZoom?t.maxZoom:-1,this.f=t.key,this.l=t.imagerySet,vm("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.l+"?uriScheme=https&include=ImageryProviders&key="+this.f,this.pa.bind(this),void 0,"jsonp")}(r=ym.prototype).sd=function(t,e){var o=this.a,i=o.i;return this.pa!=i&&(this.g.length=0,o=o.j,this.c||"vector"==o||(this.c=Po()),this.c&&"vector"==o&&(this.c=null)),this.pa=i,sm.prototype.sd.apply(this,arguments)},r.Of=function(t,e,o,i,r,n,s,a){var p=t,h=this.a,l=e.pixelRatio,u=e.viewState.projection,c=h.i,f=h.get(Av)||null,y=p.o;if(y.Nd||y.mf!=c||y.Kg!=f){for(var g=0,d=p.a.length;g<d;++g){var v,b,m=p.c[p.a[g]],w=(m.S=null,y.Nd=!1,h.ha()),x=w.tileGrid,S=m.ta,M=m.a,P=(E=w.Ta(u)).Da(p.ta[0]),A=x.Da(m.ta[0]),E=Nt(E=E.Aa(p.v),S=x.Aa(S));for("tile-pixels"==M.a?(v=x=w.nb(),A=Ps(A=js(this.D,0,0,1/A*v,-1/A*v,0,-S[0],-S[3]),[E[0],E[3]]).concat(Ps(A,[E[2],E[1]]))):(x=P,A=E,be(u,M)||(b=!0,m.ig(u))),y.Nd=!1,w=new H0(0,A,x,w.l,h.c),A=fv(x,l),x=m.g,f&&f!==y.Kg&&x.sort(f),S=0,E=x.length;S<E;++S){v=x[S],b&&v.V().tb(M,u);var T=void 0;if((j=v.Lc())?T=j.call(v,P):(j=h.f)&&(T=j(v,P)),T){var j=A,C=w;if(T=Array.isArray(T)?T:[T]){var L=!1;if(Array.isArray(T))for(var R=0,I=T.length;R<I;++R)L=yv(C,v,T[R],j,this.Fi,this)||L;else L=yv(C,v,T,j,this.Fi,this)||L;v=L}else v=!1;this.I=this.I||v,y.Nd=y.Nd||v}}_0(w),m.c[p.ta.toString()]=w}y.mf=c,y.Kg=f}if(this.c){if(g=e,u=this.a,l=p.o,c=u.i,(h=gm[u.j])&&l.Lg!==c)for(l.Lg=c,m=(d=p.v)[0],l=g.pixelRatio,u=(P=u.ha()).tileGrid,c=(M=P.Ta(g.viewState.projection)).Da(m),f=P.nb(),p.j||(p.j=Po()),y=p.j,g=P.Xd(m,l,g.viewState.projection),y.canvas.width=g[0],y.canvas.height=g[1],g=M.Aa(d),d=0,m=p.a.length;d<m;++d)w=(M=p.c[p.a[d]]).ta,b=l/c,P=ws(this.D),"tile-pixels"==M.a.a?(b=u.Aa(w,this.l),Es(P,A=l/f*(w=u.Da(w[0]))/c,A),Ts(P,Math.round((b[0]-g[0])/w*f),Math.round((g[3]-b[3])/w*f))):(Es(P,b,-b),Ts(P,-g[0],-g[3])),M.c[p.ta.toString()].La(y,l,P,0,{},h);sm.prototype.Of.apply(this,arguments)}},r.Ea=function(t,e,o,i,r){for(var n=e.viewState.resolution,s=e.viewState.rotation,a=(o=null==o?0:o,this.a),p={},h=this.g,l=a.ha(),u=(e=l.Ta(e.viewState.projection),l.tileGrid),c=0,f=h.length;c<f;++c){var y=h[c],g=y.ta,d=lt(g=e.Aa(g,this.l),o*n,d);if(ft(d,t))for(var g=0,v=y.a.length;g<v;++g)var b,m="tile-pixels"===(w=y.c[y.a[g]]).a.a?(b=w.ta,m=Ft(n=u.Aa(b,this.l)),n=l.nb(),b=u.Da(b[0])/n,[(t[0]-m[0])/b,(m[1]-t[1])/b]):t,w=w.c[y.ta],x=x||w.Ea(m,n,s,o,{},function(t){var e=U(t).toString();if(!(e in p))return p[e]=!0,i.call(r,t,a)})}return x},r.Fi=function(){ov(this)},r.ef=function(t,e,o){var i=(l=this.a).ha(),r=dm[l.j];if(r)for(var n=e.pixelRatio,s=e.viewState.rotation,a=e.size,p=Math.round(n*a[0]/2),a=Math.round(n*a[1]/2),h=this.g,l=l.ha().nb(),u=i.tileGrid,i=i.Ta(e.viewState.projection),c=[],f=[],y=h.length-1;0<=y;--y){var g=h[y];if(5!=g.getState())for(var d=g.ta,v=i.Aa(d)[0]-i.Aa(g.v)[0],b=0,m=g.a.length;b<m;++b){var w,x,S,M,P,A=g.c[g.a[b]],E=A.ta[0],T=u.Da(E),j=A,C=e;for(Ts(C="tile-pixels"==j.a.a?(M=(w=this.a.ha()).tileGrid,P=j.ta,w=M.Da(P[0])/w.nb(),j=C.viewState,x=C.pixelRatio,S=j.resolution/x,P=M.Aa(P,this.l),M=j.center,P=Ft(P),C=C.size,js(this.D,Math.round(x*C[0]/2),Math.round(x*C[1]/2),w/S,w/S,j.rotation,(P[0]-M[0])/w,(M[1]-P[1])/w)):uv(this,C,0),v*l/T,0),T=$0(A=A.c[d.toString()],C),t.save(),t.globalAlpha=o.opacity,Bs(t,-s,p,a),w=0,j=c.length;w<j;++w)x=c[w],E<f[w]&&(t.beginPath(),t.moveTo(T[0],T[1]),t.lineTo(T[2],T[3]),t.lineTo(T[4],T[5]),t.lineTo(T[6],T[7]),t.moveTo(x[6],x[7]),t.lineTo(x[4],x[5]),t.lineTo(x[2],x[3]),t.lineTo(x[0],x[1]),t.clip());A.La(t,n,C,s,{},r),t.restore(),c.push(T),f.push(E)}}sm.prototype.ef.apply(this,arguments)},e(E,s),(r=E.prototype).Fd=function(t){var e=null;return e="canvas"===t.U()?new ym(this):e},r.Ud=function(){return this.get("preload")},r.kd=function(){return this.get("useInterimTilesOnError")},r.Bi=function(t){this.set("preload",t)},r.Ci=function(t){this.set("useInterimTilesOnError",t)},e(bm,v0),bm.prototype.ka=function(){1==this.state&&(this.yd.forEach(qe),this.yd=null),v0.prototype.ka.call(this)},bm.prototype.Y=function(){return this.v},bm.prototype.de=function(){var t,e,o,i,r,n=[];this.a.forEach(function(t){t&&2==t.getState()&&n.push({extent:this.c.Aa(t.ta),image:t.Y()})},this),this.a.length=0,n.length?(o=this.o[0],t="number"==typeof(e=this.j.gb(o))?e:e[0],e="number"==typeof e?e:e[1],o=this.j.Da(o),i=this.c.Da(this.g),r=this.j.Aa(this.o),this.v=Kb(t,e,this.S,i,this.c.G(),o,r,this.l,n,this.u,this.D),this.state=2):this.state=3,this.s()},bm.prototype.load=function(){var i;0==this.state&&(this.state=1,this.s(),i=0,this.yd=[],this.a.forEach(function(e){var o,t=e.getState();0!=t&&1!=t||(i++,o=d(e,"change",function(){var t=e.getState();2!=t&&3!=t&&4!=t||(qe(o),--i||(this.yd.forEach(qe),this.yd=null,this.de()))},this),this.yd.push(o))},this),this.a.forEach(function(t){0==t.getState()&&t.load()}),i||setTimeout(this.de.bind(this),0))},e(Mm,ah),Mm.prototype.fd=function(t){for(var e,o,i;Pm(this);){if((e=(i=(o=this.a.Yc).ta[0].toString())in t)&&(o=o.ta,e=_(t[i],o[1],o[2])),e)break;$e(this.pop())}},e(Am,Tv),(r=Am.prototype).Ki=function(){return Pm(this.a)},r.fd=function(t,e){(t=this.Wd(t))&&t.fd(e)},r.Wf=function(){return 0},r.Sb=function(t,e,o){return t+"/"+e+"/"+o},r.Zf=function(){return this.va},r.ab=function(){return this.tileGrid},r.Ta=function(t){return this.tileGrid||ke(t)},r.Wd=function(t){var e=this.c;return e&&!be(e,t)?null:this.a},r.nb=function(){return this.$a},r.Xd=function(t,e,o){return o=this.Ta(o),e=this.nb(e),t=pt(o.gb(t),this.o),1==e?t:at(t,e,this.o)},r.sa=function(){this.a.clear(),this.s()},r.Ug=Y,e(Cm,Qe),e(Lm,Am),(r=Lm.prototype).pb=function(){return this.tileLoadFunction},r.qb=function(){return this.tileUrlFunction},r.rb=function(){return this.urls},r.Li=function(t){switch((t=t.target).getState()){case 1:this.b(new Cm("tileloadstart",t));break;case 2:this.b(new Cm("tileloadend",t));break;case 3:this.b(new Cm("tileloaderror",t))}},r.vb=function(t){this.a.clear(),this.tileLoadFunction=t,this.s()},r.cb=function(t,e){this.tileUrlFunction=t,void 0!==e?Tm(this,e):this.s()},r.jb=function(t){var e=this.urls=Sm(t);this.cb(this.Fc?this.Fc.bind(this):mm(e,this.tileGrid),t)},r.eb=function(t){var e=(this.urls=t).join("\n");this.cb(this.Fc?this.Fc.bind(this):mm(t,this.tileGrid),e)},r.Ug=function(t,e,o){t=this.Sb(t,e,o),this.a.b.hasOwnProperty(t)&&this.a.get(t)},e(T,Lm),(r=T.prototype).Ki=function(){if(Pm(this.a))return!0;for(var t in this.g)if(Pm(this.g[t]))return!0;return!1},r.fd=function(t,e){for(var o in t=this.Wd(t),this.a.fd(this.a==t?e:{}),this.g){o=this.g[o];o.fd(o==t?e:{})}},r.Wf=function(t){return this.c&&t&&!be(this.c,t)?0:this.Xf()},r.Xf=function(){return 0},r.Zf=function(t){return!(this.c&&t&&!be(this.c,t))&&Lm.prototype.Zf.call(this,t)},r.Ta=function(t){var e=this.c;return!this.tileGrid||e&&!be(e,t)?((e=U(t).toString())in this.v||(this.v[e]=ke(t)),this.v[e]):this.tileGrid},r.Wd=function(t){var e=this.c;return!e||be(e,t)?this.a:((t=U(t).toString())in this.g||(this.g[t]=new Mm(this.a.highWaterMark)),this.g[t])},r.Nc=function(t,e,o,i,r){if(this.c&&r&&!be(this.c,r)){var n,s=this.Wd(r);if(t=this.Sb.apply(this,o=[t,e,o]),s.b.hasOwnProperty(t)&&(n=s.get(t)),e=this.uc,n&&n.key==e)return n;var a=this.c,p=this.Ta(a),h=this.Ta(r),l=jm(this,o,r);return(i=new bm(a,p,r,h,o,l,this.nb(i),this.Xf(),function(t,e,o,i){return Im(this,t,e,o,i,a)}.bind(this),this.Sa,this.I)).key=e,n?(i.i=n,s.replace(t,i)):s.set(t,i),i}return Im(this,t,e,o,i,r)},r.Pb=function(t){if(this.I!=t){for(var e in this.I=t,this.g)this.g[e].clear();this.s()}},r.Qb=function(t,e){(t=v(t))&&((t=U(t).toString())in this.v||(this.v[t]=e))},e(j,T);var Fm=new Be({html:'<a class="ol-attribution-bing-tos" href="http://www.microsoft.com/maps/product/terms.html">Terms of Use</a>'});function km(t){var e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",o=void 0!==t.tileGrid?t.tileGrid:De({extent:Ge(e),maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});T.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:o,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX})}function C(t){this.C=t.account,this.B=t.map||"",this.f=t.config||{},this.l={},km.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,maxZoom:void 0!==t.maxZoom?t.maxZoom:18,minZoom:t.minZoom,projection:t.projection,state:"loading",wrapX:t.wrapX}),Dm(this)}function Dm(t){var e,o,i=JSON.stringify(t.f);t.l[i]?Om(t,t.l[i]):(e="https://"+t.C+".cartodb.com/api/v1/map",t.B&&(e+="/named/"+t.B),(o=new XMLHttpRequest).addEventListener("load",t.Dl.bind(t,i)),o.addEventListener("error",t.Cl.bind(t)),o.open("POST",e),o.setRequestHeader("Content-type","application/json"),o.send(JSON.stringify(t.f)))}function Om(t,e){t.jb("https://"+e.cdn_url.https+"/"+t.C+"/api/v1/map/"+e.layergroupid+"/{z}/{x}/{y}.png")}function L(t){a.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,wrapX:t.wrapX}),this.resolution=void 0,this.distance=void 0!==t.distance?t.distance:20,this.features=[],this.geometryFunction=t.geometryFunction||function(t){return O((t=t.V())instanceof m,10),t},this.source=t.source,this.source.J("change",L.prototype.sa,this)}function Um(t){if(void 0!==t.resolution){t.features.length=0;for(var e=vt(),o=t.distance*t.resolution,i=t.source.Xe(),r={},n=0,s=i.length;n<s;n++){var a=i[n];U(a).toString()in r||!(a=t.geometryFunction(a))||(wt(a=a.X(),e),lt(e,o,e),a=(a=t.source.Uf(e)).filter(function(t){return!((t=U(t).toString())in r)&&(r[t]=!0)}),t.features.push(function(t,e){for(var o=[0,0],i=e.length-1;0<=i;--i){var r=t.geometryFunction(e[i]);r?er(o,r.X()):e.splice(i,1)}return ar(o,1/e.length),(t=new x(new m(o))).set("features",e),t}(t,a)))}}}function Gm(t,e){var o=[],i=(Object.keys(e).forEach(function(t){null!==e[t]&&void 0!==e[t]&&o.push(t+"="+encodeURIComponent(e[t]))}),o.join("&"));return(t=-1===(t=t.replace(/[?&]$/,"")).indexOf("?")?t+"?":t+"&")+i}function Bm(t){qb.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions}),this.R=void 0!==t.crossOrigin?t.crossOrigin:null,this.T=void 0===t.hidpi||t.hidpi,this.f=t.url,this.g=t.imageLoadFunction||_b,this.v=t.params||{},this.M=null,this.l=[0,0],this.I=0,this.B=void 0!==t.ratio?t.ratio:1.5}function Xm(t){qb.call(this,{projection:t.projection,resolutions:t.resolutions}),this.R=void 0!==t.crossOrigin?t.crossOrigin:null,this.l=void 0!==t.displayDpi?t.displayDpi:96,this.g=t.params||{},this.I=t.url,this.f=t.imageLoadFunction||_b,this.T=void 0===t.hidpi||t.hidpi,this.pa=void 0!==t.metersPerUnit?t.metersPerUnit:1,this.v=void 0!==t.ratio?t.ratio:1,this.va=void 0!==t.useOverlay&&t.useOverlay,this.M=null,this.B=0}function Vm(t){var e=t.imageExtent,o=void 0!==t.crossOrigin?t.crossOrigin:null,i=t.imageLoadFunction||_b;qb.call(this,{attributions:t.attributions,logo:t.logo,projection:v(t.projection)}),this.M=new g0(e,void 0,1,this.j,t.url,o,i),this.f=t.imageSize||null,d(this.M,"change",this.o,this)}function Wm(t){qb.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions}),this.pa=void 0!==t.crossOrigin?t.crossOrigin:null,this.g=t.url,this.v=t.imageLoadFunction||_b,this.f=t.params||{},this.l=!0,zm(this),this.T=t.serverType,this.va=void 0===t.hidpi||t.hidpi,this.M=null,this.B=[0,0],this.R=0,this.I=void 0!==t.ratio?t.ratio:1.5}j.prototype.T=function(){return this.f},j.prototype.fa=function(){return this.l},j.prototype.pa=function(t){var e,i,s,a,r,n,p;200!=t.statusCode||"OK"!=t.statusDescription||"ValidCredentials"!=t.authenticationResultCode||1!=t.resourceSets.length||1!=t.resourceSets[0].resources.length?Cv(this,"error"):(-1==(e=t.brandLogoUri).indexOf("https")&&(e=e.replace("http","https")),i=t.resourceSets[0].resources[0],s=-1==this.C?i.zoomMax:this.C,a=De({extent:t=Ge(this.c),minZoom:i.zoomMin,maxZoom:s,tileSize:(i.imageWidth==i.imageHeight?i.imageWidth:[i.imageWidth,i.imageHeight])/this.nb()}),this.tileGrid=a,r=this.R,n=this.B,this.tileUrlFunction=wm(i.imageUrlSubdomains.map(function(t){var e=[0,0,0],o=i.imageUrl.replace("{subdomain}",t).replace("{culture}",r);return function(t){if(t)return Ee(t[0],t[1],-t[2]-1,e),t=o,n&&(t+="&dpi=d1&device=mobile"),t.replace("{quadkey}",function(t){for(var e=t[0],o=Array(e),i=1<<e-1,r=0;r<e;++r){var n=48;t[1]&i&&(n+=1),t[2]&i&&(n+=2),o[r]=String.fromCharCode(n),i>>=1}return o.join("")}(e))}})),i.imageryProviders&&(p=we(v("EPSG:4326"),this.c),(t=i.imageryProviders.map(function(t){var e=t.attribution,n={};return t.coverageAreas.forEach(function(t){var e,o=t.zoomMin,i=Math.min(t.zoomMax,s);for(t=Bt([(t=t.bbox)[1],t[0],t[3],t[2]],p),e=o;e<=i;++e){var r=e.toString(),o=Ie(a,t,e);r in n?n[r].push(o):n[r]=[o]}}),new Be({html:e,tileRanges:n})})).push(Fm),this.ua(t)),this.D=e,Cv(this,"ready"))},e(km,T),e(C,km),(r=C.prototype).Kk=function(){return this.f},r.tq=function(t){Xt(this.f,t),Dm(this)},r.Xp=function(t){this.f=t||{},Dm(this)},r.Dl=function(t,e){if(!(e=e.target).status||200<=e.status&&e.status<300){try{var o=JSON.parse(e.responseText)}catch(t){return void Cv(this,"error")}Om(this,o),this.l[t]=o,Cv(this,"ready")}else Cv(this,"error")},r.Cl=function(){Cv(this,"error")},e(L,a),(r=L.prototype).$n=function(){return this.distance},r.ao=function(){return this.source},r.Yd=function(t,e,o){this.source.Yd(t,e,o),e!==this.resolution&&(this.clear(),this.resolution=e,Um(this),this.cd(this.features))},r.Yp=function(t){this.distance=t,this.sa()},r.sa=function(){this.clear(),Um(this),this.cd(this.features),a.prototype.sa.call(this)},e(Bm,qb),(r=Bm.prototype).co=function(){return this.v},r.Jc=function(t,e,o,i){if(void 0===this.f)return null;e=Jb(this,e),o=this.T?o:1;var r=this.M;if(r&&this.I==this.i&&r.resolution==e&&r.a==o&&yt(r.G(),t))return r;Xt(r={F:"image",FORMAT:"PNG32",TRANSPARENT:!0},this.v);var n=((t=t.slice())[0]+t[2])/2,s=(t[1]+t[3])/2,a=(1!=this.B&&(a=this.B*Dt(t)/2,p=this.B*It(t)/2,t[0]=n-a,t[1]=s-p,t[2]=n+a,t[3]=s+p),e/o),p=Math.ceil(Dt(t)/a),h=Math.ceil(It(t)/a);return t[0]=n-a*p/2,t[2]=n+a*p/2,t[1]=s-a*h/2,t[3]=s+a*h/2,this.l[0]=p,this.l[1]=h,n=t,s=this.l,a=o,i=i.mb.split(":").pop(),r.SIZE=s[0]+","+s[1],r.BBOX=n.join(","),r.BBOXSR=i,r.IMAGESR=i,r.DPI=Math.round(90*a),(n=(i=this.f).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"))==i&&O(!1,50),r=Gm(n,r),this.M=new g0(t,e,o,this.j,r,this.R,this.g),this.I=this.i,d(this.M,"change",this.o,this),this.M},r.bo=function(){return this.g},r.eo=function(){return this.f},r.fo=function(t){this.M=null,this.g=t,this.s()},r.ho=function(t){t!=this.f&&(this.f=t,this.M=null,this.s())},r.io=function(t){Xt(this.v,t),this.M=null,this.s()},e(Xm,qb),(r=Xm.prototype).ko=function(){return this.g},r.Jc=function(t,e,o){e=Jb(this,e),o=this.T?o:1;var i,r,n,s,a,p,h,l,u=this.M;return u&&this.B==this.i&&u.resolution==e&&u.a==o&&yt(u.G(),t)||(1!=this.v&&Gt(t=t.slice(),this.v),l=[Dt(t)/e*o,It(t)/e*o],void 0!==this.I?(u=this.I,i=Lt(t),r=this.pa,n=Dt(t),s=It(t),a=l[0],p=l[1],h=.0254/this.l,l={OPERATION:this.va?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.l,SETDISPLAYWIDTH:Math.round(l[0]),SETDISPLAYHEIGHT:Math.round(l[1]),SETVIEWSCALE:a*s<p*n?n*r/(a*h):s*r/(p*h),SETVIEWCENTERX:i[0],SETVIEWCENTERY:i[1]},Xt(l,this.g),u=Gm(u,l),d(u=new g0(t,e,o,this.j,u,this.R,this.f),"change",this.o,this)):u=null,this.M=u,this.B=this.i),u},r.jo=function(){return this.f},r.mo=function(t){Xt(this.g,t),this.s()},r.lo=function(t){this.M=null,this.f=t,this.s()},e(Vm,qb),Vm.prototype.Jc=function(t){return Ot(t,this.M.G())?this.M:null},Vm.prototype.o=function(t){var e,o,i,r,n;2==this.M.getState()&&(i=this.M.G(),e=this.M.Y(),n=this.f?(o=this.f[0],this.f[1]):(o=e.width,e.height),(i=Math.ceil(Dt(i)/(It(i)/n)))!=o&&(r=(i=Po(i,n)).canvas,i.drawImage(e,0,0,o,n,0,0,r.width,r.height),this.M.Og(r))),qb.prototype.o.call(this,t)},e(Wm,qb);var Zm=[101,101];function Km(t,e,o,i,r,n){if(O(void 0!==t.g,9),n[t.l?"CRS":"SRS"]=r.mb,"STYLES"in t.f||(n.STYLES=""),1!=i)switch(t.T){case"geoserver":i=90*i+.5|0,n.FORMAT_OPTIONS="FORMAT_OPTIONS"in n?n.FORMAT_OPTIONS+";dpi:"+i:"dpi:"+i;break;case"mapserver":n.MAP_RESOLUTION=90*i;break;case"carmentaserver":case"qgis":n.DPI=90*i;break;default:O(!1,8)}return n.WIDTH=o[0],n.HEIGHT=o[1],o=r.b,r=t.l&&"ne"==o.substr(0,2)?[e[1],e[0],e[3],e[2]]:e,n.BBOX=r.join(","),Gm(t.g,n)}function zm(t){t.l=0<=tr(t.f.VERSION||"1.3.0")}function Ym(t){var e=void 0!==(t=t||{}).attributions?t.attributions:[Hm];km.call(this,{attributions:e,cacheSize:t.cacheSize,crossOrigin:void 0!==t.crossOrigin?t.crossOrigin:"anonymous",opaque:void 0===t.opaque||t.opaque,maxZoom:void 0!==t.maxZoom?t.maxZoom:19,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,url:void 0!==t.url?t.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:t.wrapX})}(r=Wm.prototype).so=function(t,e,o,i){var r,n;if(void 0!==this.g)return r=Rt(t,e,0,Zm),n={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS},Xt(n,this.f,i),i=Math.floor((r[3]-t[1])/e),n[this.l?"I":"X"]=Math.floor((t[0]-r[0])/e),n[this.l?"J":"Y"]=i,Km(this,r,Zm,1,v(o),n)},r.uo=function(){return this.f},r.Jc=function(t,e,o,i){if(void 0===this.g)return null;var r=(e=Jb(this,e))/(o=1==o||this.va&&void 0!==this.T?o:1),n=Lt(t),s=Rt(n,r,0,[Math.ceil(Dt(t)/r),Math.ceil(It(t)/r)]);return t=Rt(n,r,0,[Math.ceil(this.I*Dt(t)/r),Math.ceil(this.I*It(t)/r)]),(n=this.M)&&this.R==this.i&&n.resolution==e&&n.a==o&&yt(n.G(),s)?n:(Xt(s={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},this.f),this.B[0]=Math.round(Dt(t)/r),this.B[1]=Math.round(It(t)/r),i=Km(this,t,this.B,o,i,s),this.M=new g0(t,e,o,this.j,i,this.pa,this.v),this.R=this.i,d(this.M,"change",this.o,this),this.M)},r.to=function(){return this.v},r.vo=function(){return this.g},r.wo=function(t){this.M=null,this.v=t,this.s()},r.xo=function(t){t!=this.g&&(this.g=t,this.M=null,this.s())},r.yo=function(t){Xt(this.f,t),zm(this),this.M=null,this.s()},e(Ym,km);var Hm=new Be({html:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.'}),fi=(mp.df={},mp.df.Af=function(){},mp.df=mp.df||{});function qm(u){var c=!0;try{new ImageData(10,10)}catch(t){c=!1}return function(t){var e=t.buffers,o=t.meta,i=t.width,r=t.height,n=e.length,s=e[0].byteLength;if(t.imageOps){for(s=Array(n),t=0;t<n;++t){var a=t,p=new Uint8ClampedArray(e[t]),h=i,l=r,p=c?new ImageData(p,h,l):{data:p,width:h,height:l};s[a]=p}i=u(s,o).data}else{for(i=new Uint8ClampedArray(s),r=Array(n),a=Array(n),t=0;t<n;++t)r[t]=new Uint8ClampedArray(e[t]),a[t]=[0,0,0,0];for(e=0;e<s;e+=4){for(t=0;t<n;++t)p=r[t],a[t][0]=p[e],a[t][1]=p[e+1],a[t][2]=p[e+2],a[t][3]=p[e+3];t=u(a,o),i[e]=t[0],i[e+1]=t[1],i[e+2]=t[2],i[e+3]=t[3]}}return i.buffer}}function Jm(t){this.Ff=!!t.$l;var e,o,i,r,n=[];if(e=0===t.threads?0:!this.Ff&&t.threads||1)for(var s=0;s<e;++s)n[s]=function(e,t){var o=Object.keys(e.lib||{}).map(function(t){return"var "+t+" = "+e.lib[t].toString()+";"}).concat(["var __minion__ = ("+qm.toString()+")(",e.operation.toString(),");",'self.addEventListener("message", function(event) {'," var buffer = __minion__(event.data);"," self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),o=URL.createObjectURL(new Blob(o,{type:"text/javascript"}));return(o=new Worker(o)).addEventListener("message",t),o}(t,this.gh.bind(this,s));else n[0]=(o=t,i=this.gh.bind(this,0),r=qm(o.operation),{postMessage:function(t){setTimeout(function(){i({data:{buffer:r(t),meta:t.meta}})},0)}});this.qe=n,this.Ed=[],this.fk=t.rp||1/0,this.oe=0,this.bd={},this.Gf=null}var _m=!0;try{new ImageData(10,10)}catch(t){_m=!1}var $m=document.createElement("canvas").getContext("2d");function Qm(t){this.B=null,this.va=void 0!==t.operationType?t.operationType:"pixel",this.Sa=void 0!==t.threads?t.threads:1,this.g=function(t){for(var e=t.length,o=Array(e),i=0;i<e;++i){var r=i,n=t[i],s=null;n instanceof Am?(n=new A({source:n}),s=new sm(n)):n instanceof qb&&(n=new nm({source:n}),s=new Vb(n)),o[r]=s}return o}(t.sources);for(var e=0,o=this.g.length;e<o;++e)d(this.g[e],"change",this.s,this);this.T=new qi(function(){return 1},this.s.bind(this));for(var o={},i=0,r=(e=this.g.map(function(t){return us(t.a)})).length;i<r;++i)o[U(e[i].layer)]=e[i];this.f=null,this.I={animate:!1,attributions:{},coordinateToPixelTransform:ms(),extent:null,focus:null,index:0,layerStates:o,layerStatesArray:e,logos:{},pixelRatio:1,pixelToCoordinateTransform:ms(),postRenderFunctions:[],size:[0,0],skippedFeatureUids:{},tileQueue:this.T,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{}},qb.call(this,{}),t.operation&&this.v(t.operation,t.lib)}Jm.prototype.pp=function(t,e,o){this.dk({inputs:t,Qh:e,callback:o}),this.dh()},Jm.prototype.dk=function(t){for(this.Ed.push(t);this.Ed.length>this.fk;)this.Ed.shift().callback(null,null)},Jm.prototype.dh=function(){if(0===this.oe&&0<this.Ed.length){var t=this.Gf=this.Ed.shift(),e=t.inputs[0].width,o=t.inputs[0].height,i=t.inputs.map(function(t){return t.data.buffer}),r=this.qe.length;if(1===(this.oe=r))this.qe[0].postMessage({buffers:i,meta:t.Qh,imageOps:this.Ff,width:e,height:o},i);else for(var n=4*Math.ceil(t.inputs[0].data.length/4/r),s=0;s<r;++s){for(var a=s*n,p=[],h=0,l=i.length;h<l;++h)p.push(i[s].slice(a,a+n));this.qe[s].postMessage({buffers:p,meta:t.Qh,imageOps:this.Ff,width:e,height:o},p)}}},Jm.prototype.gh=function(t,e){this.Jq||(this.bd[t]=e.data,--this.oe,0===this.oe&&this.gk())},Jm.prototype.gk=function(){var t,e,o=this.Gf,i=this.qe.length;if(1===i)var r=new Uint8ClampedArray(this.bd[0].buffer),n=this.bd[0].meta;else for(var s=o.inputs[0].data.length,r=new Uint8ClampedArray(s),n=Array(s),s=4*Math.ceil(s/4/i),a=0;a<i;++a){var p=a*s;r.set(new Uint8ClampedArray(this.bd[a].buffer),p),n[a]=this.bd[a].meta}this.Gf=null,this.bd={},o.callback(null,(t=r,e=o.inputs[0].width,o=o.inputs[0].height,_m?new ImageData(t,e,o):((e=$m.createImageData(e,o)).data.set(t),e)),n),this.dh()},fi.default={Af:Jm},fi.Af=Jm,e(Qm,qb),Qm.prototype.v=function(t,e){this.B=new mp.df.Af({operation:t,$l:"image"===this.va,rp:1,lib:e,threads:this.Sa}),this.s()},Qm.prototype.Y=function(t,e,o,i){o=!0;for(var r=0,n=this.g.length;r<n;++r)if("ready"!==(h=this.g[r].a.ha()).getState()){o=!1;break}if(!o)return null;if((o=Xt({},this.I)).viewState=Xt({},o.viewState),h=Lt(t),o.extent=t.slice(),o.focus=h,o.size[0]=Math.round(Dt(t)/e),o.size[1]=Math.round(It(t)/e),(r=o.viewState).center=h,r.projection=i,r.resolution=e,Ji((this.l=o).tileQueue,16,16),this.f&&(i=this.f.resolution,o=this.f.G(),e===i&&St(t,o)||(this.f=null)),!this.f||this.i!==this.R)t:{for(t=this.l,i=this.g.length,e=Array(i),o=0;o<i;++o){var s,a,p,h=this.g[o],r=t,n=t.layerStatesArray[o];if(!(h=h.sd(r,n)?(s=r.size[0],a=r.size[1],!t1||(p=t1.canvas).width!==s||p.height!==a?t1=Po(s,a):t1.clearRect(0,0,s,a),h.S(r,n,t1),t1.getImageData(0,0,s,a)):null))break t;e[o]=h}this.b(new e1(o1,t,i={})),this.B.pp(e,i,this.pa.bind(this,t))}return this.f},Qm.prototype.pa=function(t,e,o,i){var r,n;!e&&o&&(e=t.extent,(r=t.viewState.resolution)===this.l.viewState.resolution&&St(e,this.l.extent)&&(this.f?n=this.f.Y().getContext("2d"):(n=Po(Math.round(Dt(e)/r),Math.round(It(e)/r)),this.f=new d0(e,r,1,this.j,n.canvas)),n.putImageData(o,0,0),this.s(),this.R=this.i,this.b(new e1(i1,t,i))))};var t1=null;function e1(t,e,o){Qe.call(this,t),this.extent=e.extent,this.resolution=e.viewState.resolution/e.pixelRatio,this.data=o}e(e1,Qe),Qm.prototype.Jc=function(){return null};var o1="beforeoperations",i1="afteroperations";function r1(t){var e=t.layer.indexOf("-"),e=a1[-1==e?t.layer:t.layer.slice(0,e)],o=s1[t.layer];km.call(this,{attributions:n1,cacheSize:t.cacheSize,crossOrigin:"anonymous",maxZoom:(null!=t.maxZoom?t:e).maxZoom,minZoom:(null!=t.minZoom?t:e).minZoom,opaque:o.opaque,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,url:void 0!==t.url?t.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+t.layer+"/{z}/{x}/{y}."+o.Lb,wrapX:t.wrapX})}e(r1,km);var n1=[new Be({html:'Map tiles by <a href="http://stamen.com/">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.'}),Hm],s1={terrain:{Lb:"jpg",opaque:!0},"terrain-background":{Lb:"jpg",opaque:!0},"terrain-labels":{Lb:"png",opaque:!1},"terrain-lines":{Lb:"png",opaque:!1},"toner-background":{Lb:"png",opaque:!0},toner:{Lb:"png",opaque:!0},"toner-hybrid":{Lb:"png",opaque:!1},"toner-labels":{Lb:"png",opaque:!1},"toner-lines":{Lb:"png",opaque:!1},"toner-lite":{Lb:"png",opaque:!0},watercolor:{Lb:"jpg",opaque:!0}},a1={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:1,maxZoom:16}};function R(t){T.call(this,{attributions:(t=t||{}).attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.f=t.params||{},this.l=vt(),Tm(this,p1(this))}function p1(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function h1(t){Am.call(this,{opaque:!1,projection:t.projection,tileGrid:t.tileGrid,wrapX:void 0===t.wrapX||t.wrapX})}function l1(t,e,o){v0.call(this,t,2),this.c=e,this.Ia=o,this.a=null}function u1(t){var e;this.f=null,T.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,projection:v("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,wrapX:void 0===t.wrapX||t.wrapX}),t.url?t.jsonp?vm(t.url,this.og.bind(this),this.Ve.bind(this)):((e=new XMLHttpRequest).addEventListener("load",this.Ao.bind(this)),e.addEventListener("error",this.zo.bind(this)),e.open("GET",t.url),e.send()):t.tileJSON?this.og(t.tileJSON):O(!1,51)}function c1(t){var e;Am.call(this,{projection:v("EPSG:3857"),state:"loading"}),this.v=void 0===t.preemptive||t.preemptive,this.l=xm,this.g=void 0,this.f=t.jsonp||!1,t.url?this.f?vm(t.url,this.pg.bind(this),this.We.bind(this)):((e=new XMLHttpRequest).addEventListener("load",this.Eo.bind(this)),e.addEventListener("error",this.Do.bind(this)),e.open("GET",t.url),e.send()):t.tileJSON?this.pg(t.tileJSON):O(!1,51)}function f1(t,e,o,i,r,n){v0.call(this,t,e),this.o=o,this.a=i,this.v=r,this.c=this.j=this.g=null,this.l=n}function y1(t){var e;0==t.state&&(t.state=1,t.l?vm(t.o,t.Ji.bind(t),t.De.bind(t)):((e=new XMLHttpRequest).addEventListener("load",t.Co.bind(t)),e.addEventListener("error",t.Bo.bind(t)),e.open("GET",t.o),e.send()))}function I(t){var e=(t=t||{}).params||{};T.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,opaque:!(!("TRANSPARENT"in e)||e.TRANSPARENT),projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.C=void 0!==t.gutter?t.gutter:0,this.f=e,this.l=!0,this.B=t.serverType,this.T=void 0===t.hidpi||t.hidpi,this.R="",d1(this),this.fa=vt(),b1(this),Tm(this,v1(this))}function g1(t,e,o,i,r,n,s){var a=t.urls;if(a){if(s.WIDTH=o[0],s.HEIGHT=o[1],s[t.l?"CRS":"SRS"]=n.mb,"STYLES"in t.f||(s.STYLES=""),1!=r)switch(t.B){case"geoserver":o=90*r+.5|0,s.FORMAT_OPTIONS="FORMAT_OPTIONS"in s?s.FORMAT_OPTIONS+";dpi:"+o:"dpi:"+o;break;case"mapserver":s.MAP_RESOLUTION=90*r;break;case"carmentaserver":case"qgis":s.DPI=90*r;break;default:O(!1,52)}return n=n.b,t.l&&"ne"==n.substr(0,2)&&(t=i[0],i[0]=i[1],i[1]=t,t=i[2],i[2]=i[3],i[3]=t),s.BBOX=i.join(","),Gm(1==a.length?a[0]:a[rt((e[1]<<e[0])+e[2],a.length)],s)}}function d1(t){var e=0,o=[];if(t.urls)for(var i=0,r=t.urls.length;i<r;++i)o[e++]=t.urls[i];t.R=o.join("#")}function v1(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function b1(t){t.l=0<=tr(t.f.VERSION||"1.3.0")}function m1(t,e,o,i,r,n,s,a,p,h,l,u,c,f){var y,g;v0.call(this,t,e),this.j=null,this.o={Nd:!1,Kg:null,mf:-1,Lg:-1},this.c=h,this.a=[],this.u=o,this.v=n,this.g=[],this.l=[],n&&(y=p.Aa(n),g=p.Da(t[0]),a.Rf(y,a.tc(g),function(t){var e,o=Nt(y,a.Aa(t));.5<=Dt(o)/g&&.5<=It(o)/g&&(o=t.toString(),(e=h[o])||(e=s(t,l,u),e=h[o]=new c(t,null==e?4:0,null==e?"":e,i,r),this.l.push(d(e,"change",f))),e.j++,this.a.push(o))}.bind(this)))}function w1(t,e){t.Pg(bl(e,t.o,t.$o.bind(t),t.Zo.bind(t)))}function x1(t,e,o,i,r){v0.call(this,t,e),this.j=0,this.o=i,this.g=null,this.c={},this.u=r,this.l=o}function S1(t){Lm.call(this,{attributions:t.attributions,cacheSize:void 0!==t.cacheSize?t.cacheSize:128,extent:t.extent,logo:t.logo,opaque:!1,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction||w1,tileUrlFunction:t.tileUrlFunction,tilePixelRatio:t.tilePixelRatio,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.g=t.format||null,this.v={},this.l=null==t.overlaps||t.overlaps,this.tileClass=t.tileClass||x1,this.f={},this.tileGrid||(this.tileGrid=this.Ta(v(t.projection||"EPSG:3857")))}function M1(t){this.o=t.matrixIds,Te.call(this,{extent:t.extent,origin:t.origin,origins:t.origins,resolutions:t.resolutions,tileSize:t.tileSize,tileSizes:t.tileSizes,sizes:t.sizes})}function P1(t,e,o){var r=[],n=[],s=[],a=[],p=[],h=void 0!==o?o:[],l=(o=v(t.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))).sc(),u="ne"==o.b.substr(0,2);return t.TileMatrix.sort(function(t,e){return e.ScaleDenominator-t.ScaleDenominator}),t.TileMatrix.forEach(function(e){var t,o,i;(t=!(0<h.length)||W(h,function(t){return e.Identifier==t.TileMatrix}))&&(n.push(e.Identifier),t=28e-5*e.ScaleDenominator/l,o=e.TileWidth,i=e.TileHeight,u?s.push([e.TopLeftCorner[1],e.TopLeftCorner[0]]):s.push(e.TopLeftCorner),r.push(t),a.push(o==i?o:[o,i]),p.push([e.MatrixWidth,-e.MatrixHeight]))}),new M1({extent:e,origins:s,resolutions:r,matrixIds:n,tileSizes:a,sizes:p})}function N(t){this.fa=void 0!==t.version?t.version:"1.0.0",this.C=void 0!==t.format?t.format:"image/jpeg",this.f=t.dimensions||{},this.B=t.layer,this.l=t.matrixSet,this.R=t.style;var e=t.urls,i=(void 0===e&&void 0!==t.url&&(e=Sm(t.url)),this.T=void 0!==t.requestEncoding?t.requestEncoding:"KVP"),r=t.tileGrid,o={layer:this.B,style:this.R,tilematrixset:this.l},n=("KVP"==i&&Xt(o,{Service:"WMTS",Request:"GetTile",Version:this.fa,Format:this.C}),this.f),s=e&&0<e.length?wm(e.map(function(e){return e="KVP"==i?Gm(e,o):e.replace(/\{(\w+?)\}/g,function(t,e){return e.toLowerCase()in o?o[e.toLowerCase()]:t}),function(t){var o;if(t)return o={TileMatrix:r.o[t[0]],TileCol:t[1],TileRow:-t[2]-1},Xt(o,n),t=e,"KVP"==i?Gm(t,o):t.replace(/\{(\w+?)\}/g,function(t,e){return o[e]})}})):xm;T.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:r,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:s,urls:e,wrapX:void 0!==t.wrapX&&t.wrapX}),Tm(this,A1(this))}function A1(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function E1(t){var e=(t=t||{}).size,o=e[0],i=e[1],n=[],r=256;switch(void 0!==t.tierSizeCalculation?t.tierSizeCalculation:j1){case j1:for(;r<o||r<i;)n.push([Math.ceil(o/r),Math.ceil(i/r)]),r+=r;break;case C1:for(;r<o||r<i;)n.push([Math.ceil(o/r),Math.ceil(i/r)]),o>>=1,i>>=1;break;default:O(!1,53)}n.push([1,1]),n.reverse();for(var r=[1],s=[0],i=1,o=n.length;i<o;i++)r.push(1<<i),s.push(n[i-1][0]*n[i-1][1]+s[i-1]);r.reverse(),e=new Te({extent:e=[0,-e[1],e[0],0],origin:Ft(e),resolutions:r}),(r=t.url)&&-1==r.indexOf("{TileGroup}")&&(r+="{TileGroup}/{z}-{x}-{y}.jpg"),r=wm((r=Sm(r)).map(function(r){return function(t){var e,o,i;if(t)return e=t[0],o=t[1],i={z:e,x:o,y:t=-t[2]-1,TileGroup:"TileGroup"+((o+t*n[e][0]+s[e])/256|0)},r.replace(/\{(\w+?)\}/g,function(t,e){return i[e]})}})),T.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:T1,tileGrid:e,tileUrlFunction:r})}function T1(t,e,o,i,r){w0.call(this,t,e,o,i,r),this.a=null}e(R,T),R.prototype.C=function(){return this.f},R.prototype.nb=function(t){return t},R.prototype.Fc=function(t,e,o){var i,r,n,s=this.tileGrid;if(!((s=s||this.Ta(o)).b.length<=t[0]))return i=s.Aa(t,this.l),r=pt(s.gb(t[0]),this.o),1!=e&&(r=at(r,e,this.o)),Xt(s={F:"image",FORMAT:"PNG32",TRANSPARENT:!0},this.f),(n=this.urls)?(o=o.mb.split(":").pop(),s.SIZE=r[0]+","+r[1],s.BBOX=i.join(","),s.BBOXSR=o,s.IMAGESR=o,s.DPI=Math.round(s.DPI?s.DPI*e:90*e),Gm(t=(1==n.length?n[0]:n[rt((t[1]<<t[0])+t[2],n.length)]).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"),s)):void 0},R.prototype.B=function(t){Xt(this.f,t),Tm(this,p1(this))},e(h1,Am),h1.prototype.Nc=function(t,e,o){var i=this.Sb(t,e,o);if(this.a.b.hasOwnProperty(i))return this.a.get(i);var r=pt(this.tileGrid.gb(t)),r=new l1(t=[t,e,o],r,e=(e=jm(this,t))?jm(this,e).toString():"");return this.a.set(i,r),r},e(l1,v0),l1.prototype.Y=function(){if(this.a)return this.a;var t=this.c,e=Po(t[0],t[1]);return e.strokeStyle="black",e.strokeRect(.5,.5,t[0]+.5,t[1]+.5),e.fillStyle="black",e.textAlign="center",e.textBaseline="middle",e.font="24px sans-serif",e.fillText(this.Ia,t[0]/2,t[1]/2),this.a=e.canvas},l1.prototype.load=function(){},e(u1,T),(r=u1.prototype).Ao=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.Ve()}this.og(e)}else this.Ve()},r.zo=function(){this.Ve()},r.pl=function(){return this.f},r.og=function(t){var e,o=v("EPSG:4326"),i=this.c,r=(t.bounds&&(n=we(o,i),e=Bt(t.bounds,n)),t.minzoom||0),n=t.maxzoom||22;if(this.tileGrid=i=De({extent:Ge(i),maxZoom:n,minZoom:r}),this.tileUrlFunction=mm(t.tiles,i),void 0!==t.attribution&&!this.j){o=void 0!==e?e:o.G(),e={};for(;r<=n;++r)e[r.toString()]=[Ie(i,o,r)];this.ua([new Be({html:t.attribution,tileRanges:e})])}this.f=t,Cv(this,"ready")},r.Ve=function(){Cv(this,"error")},e(c1,Am),(r=c1.prototype).Eo=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.We()}this.pg(e)}else this.We()},r.Do=function(){this.We()},r.ml=function(){return this.g},r.zk=function(t,e,o,i,r){var n,s,a;this.tileGrid?(e=this.tileGrid.Be(t,e),e=this.Nc(e[0],e[1],e[2],1,this.c),n=t,s=o,a=i,t=r,0==e.state&&!0===t?(Ye(e,"change",function(){s.call(a,this.getData(n))},e),y1(e)):!0===t?setTimeout(function(){s.call(a,this.getData(n))}.bind(e),0):s.call(a,e.getData(n))):!0===r?setTimeout(function(){o.call(i,null)},0):o.call(i,null)},r.We=function(){Cv(this,"error")},r.pg=function(t){var e,o=v("EPSG:4326"),i=this.c,r=(t.bounds&&(n=we(o,i),e=Bt(t.bounds,n)),t.minzoom||0),n=t.maxzoom||22,s=(this.tileGrid=i=De({extent:Ge(i),maxZoom:n,minZoom:r}),this.g=t.template,t.grids);if(s){if(this.l=mm(s,i),void 0!==t.attribution){for(o=void 0!==e?e:o.G(),e={};r<=n;++r)e[s=r.toString()]=[Ie(i,o,r)];this.ua([new Be({html:t.attribution,tileRanges:e})])}Cv(this,"ready")}else Cv(this,"error")},r.Nc=function(t,e,o,i,r){var n=this.Sb(t,e,o);return this.a.b.hasOwnProperty(n)?this.a.get(n):(e=jm(this,t=[t,e,o],r),i=new f1(t,void 0!==(i=this.l(e,i,r))?0:4,void 0!==i?i:"",this.tileGrid.Aa(t),this.v,this.f),this.a.set(n,i),i)},r.Ug=function(t,e,o){t=this.Sb(t,e,o),this.a.b.hasOwnProperty(t)&&this.a.get(t)},e(f1,v0),(r=f1.prototype).Y=function(){return null},r.getData=function(t){if(!this.g||!this.j)return null;var e=this.g[Math.floor((1-(t[1]-this.a[1])/(this.a[3]-this.a[1]))*this.g.length)];return"string"!=typeof e?null:(93<=(e=e.charCodeAt(Math.floor((t[0]-this.a[0])/(this.a[2]-this.a[0])*e.length)))&&e--,35<=e&&e--,t=null,(e-=32)in this.j&&(e=this.j[e],t=this.c&&e in this.c?this.c[e]:e),t)},r.bb=function(){return this.o},r.De=function(){this.state=3,this.s()},r.Ji=function(t){this.g=t.grid,this.j=t.keys,this.c=t.data,this.state=4,this.s()},r.Co=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.De()}this.Ji(e)}else this.De()},r.Bo=function(){this.De()},r.load=function(){this.v&&y1(this)},e(I,T),(r=I.prototype).Fo=function(t,e,o,i){o=v(o);var r,n,s,a=this.tileGrid;if(e=(a=a||this.Ta(o)).Be(t,e),!(a.b.length<=e[0]))return r=a.Da(e[0]),n=a.Aa(e,this.fa),a=pt(a.gb(e[0]),this.o),(s=this.C)&&(a=st(a,s,this.o),n=lt(n,r*s,n)),s={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS},Xt(s,this.f,i),i=Math.floor((n[3]-t[1])/r),s[this.l?"I":"X"]=Math.floor((t[0]-n[0])/r),s[this.l?"J":"Y"]=i,g1(this,e,a,n,1,o,s)},r.Xf=function(){return this.C},r.Sb=function(t,e,o){return this.R+T.prototype.Sb.call(this,t,e,o)},r.Go=function(){return this.f},r.nb=function(t){return this.T&&void 0!==this.B?t:1},r.Fc=function(t,e,o){var i,r,n,s=this.tileGrid;if(!((s=s||this.Ta(o)).b.length<=t[0]))return 1==e||this.T&&void 0!==this.B||(e=1),i=s.Da(t[0]),r=s.Aa(t,this.fa),s=pt(s.gb(t[0]),this.o),(n=this.C)&&(s=st(s,n,this.o),r=lt(r,i*n,r)),1!=e&&(s=at(s,e,this.o)),Xt(i={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},this.f),g1(this,t,s,r,e,o,i)},r.eb=function(t){T.prototype.eb.call(this,t),d1(this)},r.Ho=function(t){Xt(this.f,t),d1(this),b1(this),Tm(this,v1(this))},e(m1,v0),m1.prototype.ka=function(){for(var t=0,e=this.a.length;t<e;++t){var o=this.a[t],i=this.c[o];i.j--,i.j||(delete this.c[o],$e(i))}this.a.length=0,this.c=null,1==this.state&&(this.g.forEach(qe),this.g.length=0),this.i&&$e(this.i),this.state=5,this.s(),this.l.forEach(qe),this.l.length=0,v0.prototype.ka.call(this)},m1.prototype.Y=function(){return-1==this.o.Lg?null:this.j.canvas},m1.prototype.bb=function(){return this.a.join("/")+"/"+this.u},m1.prototype.load=function(){var r=0,n=!1;0==this.state&&m0(this,1),1==this.state&&this.a.forEach(function(e){var o,i=this.c[e];0==i.state?(i.Pg(this.S),i.load()):3==i.state?n=!0:4==i.state&&V(this.a,e),1==i.state&&(o=d(i,"change",function(){var t=i.getState();2!=t&&3!=t||(--r,qe(o),V(this.g,o),3==t&&(V(this.a,e),n=!0),r||m0(this,0<this.a.length?2:3))}.bind(this)),this.g.push(o),++r)}.bind(this)),r||setTimeout(function(){m0(this,0<this.a.length?2:n?3:4)}.bind(this),0)},e(x1,v0),(r=x1.prototype).ka=function(){this.g=null,this.c={},this.state=5,this.s(),v0.prototype.ka.call(this)},r.Lm=function(){return this.o},r.Km=function(){return this.g},r.bb=function(){return this.l},r.Mm=function(){return this.a},r.load=function(){0==this.state&&(m0(this,1),this.u(this,this.l),this.v(null,NaN,null))},r.$o=function(t,e){this.ig(e),this.mj(t)},r.Zo=function(){m0(this,3)},r.mj=function(t){this.g=t,m0(this,2)},r.ig=function(t){this.a=t},r.Pg=function(t){this.v=t},e(S1,Lm),S1.prototype.Nc=function(t,e,o,i,r){var n=this.Sb(t,e,o);return this.a.b.hasOwnProperty(n)?this.a.get(n):(i=new m1(t=[t,e,o],void 0!==(o=(e=jm(this,t,r))?this.tileUrlFunction(e,i,r):void 0)?0:4,void 0!==o?o:"",this.g,this.tileLoadFunction,e,this.tileUrlFunction,this.tileGrid,this.Ta(r),this.v,i,r,this.tileClass,this.Li.bind(this)),this.a.set(n,i),i)},S1.prototype.Ta=function(t){var e=t.mb,o=this.f[e];return o||(o=this.tileGrid,o=this.f[e]=Ue(t,void 0,o?o.gb(o.minZoom):void 0)),o},S1.prototype.nb=function(t){return null==t?Lm.prototype.nb.call(this,t):t},S1.prototype.Xd=function(t,e,o){return t=pt(this.Ta(o).gb(t)),[Math.round(t[0]*e),Math.round(t[1]*e)]},e(M1,Te),M1.prototype.l=function(){return this.o},e(N,T),(r=N.prototype).Mk=function(){return this.f},r.Io=function(){return this.C},r.Jo=function(){return this.B},r.$k=function(){return this.l},r.kl=function(){return this.T},r.Ko=function(){return this.R},r.rl=function(){return this.fa},r.uq=function(t){Xt(this.f,t),Tm(this,A1(this))},e(E1,T),e(T1,w0),T1.prototype.Y=function(){if(this.a)return this.a;var t=w0.prototype.Y.call(this);if(2!=this.state)return t;if(256==t.width&&256==t.height)return this.a=t;var e=Po(256,256);return e.drawImage(t,0,0),this.a=e.canvas};var j1="default",C1="truncated";function L1(t,e){this.b=e,this.a=[{x:0,y:0,width:t,height:t}],this.c={},this.i=Po(t,t),this.f=this.i.canvas}function R1(t,e,o,i){e=[e,1],0<o.width&&0<o.height&&e.push(o),0<i.width&&0<i.height&&e.push(i),t.a.splice.apply(t.a,e)}function I1(t){this.a=void 0!==(t=t||{}).initialSize?t.initialSize:256,this.i=void 0!==t.maxSize?t.maxSize:void 0!==vi?vi:2048,this.b=void 0!==t.space?t.space:1,this.f=[new L1(this.a,this.b)],this.c=this.a,this.g=[new L1(this.c,this.b)]}function N1(t,e,o,i,r,n,s){for(var a=e?t.g:t.f,p=0,h=a.length;p<h;++p){var l=a[p];if(l=l.add(o,i,r,n,s))return l;l||p!==h-1||(e?(l=Math.min(2*t.c,t.i),t.c=l):(l=Math.min(2*t.a,t.i),t.a=l),l=new L1(l,t.b),a.push(l),++h)}return null}return L1.prototype.get=function(t){return this.c[t]||null},L1.prototype.add=function(t,e,o,i,r){for(var n=0,s=this.a.length;n<s;++n){var a=this.a[n];if(a.width>=e+this.b&&a.height>=o+this.b)return s={offsetX:a.x+this.b,offsetY:a.y+this.b,image:this.f},this.c[t]=s,i.call(r,this.i,a.x+this.b,a.y+this.b),t=n,e+=this.b,i=o+this.b,e=a.width-e>a.height-i?(o={x:a.x+e,y:a.y,width:a.width-e,height:a.height},{x:a.x,y:a.y+i,width:e,height:a.height-i}):(o={x:a.x+e,y:a.y,width:a.width-e,height:i},{x:a.x,y:a.y+i,width:a.width,height:a.height-i}),R1(this,t,o,e),s}return null},I1.prototype.add=function(t,e,o,i,r,n){return!(e+this.b>this.i||o+this.b>this.i)&&(i=N1(this,!1,t,e,o,i,n))?(t=N1(this,!0,t,e,o,r||Y,n),{offsetX:i.offsetX,offsetY:i.offsetY,image:i.image,Zl:t.image}):null},t("ol.Attribution",Be),Be.prototype.getHTML=Be.prototype.i,t("ol.Collection",ho),ho.prototype.extend=ho.prototype.fg,ho.prototype.getArray=ho.prototype.tm,ho.prototype.getLength=ho.prototype.dc,ho.prototype.insertAt=ho.prototype.He,ho.prototype.removeAt=ho.prototype.Hg,ho.prototype.setAt=ho.prototype.Wp,t("ol.color.asArray",vo),t("ol.color.asString",bo),t("ol.colorlike.asColorLike",Mo),t("ol.control.defaults",Uo),t("ol.coordinate.add",er),t("ol.coordinate.createStringXY",function(e){return function(t){return ur(t,e)}}),t("ol.coordinate.format",rr),t("ol.coordinate.rotate",sr),t("ol.coordinate.toStringHDMS",function(t,e){return t?ir("NS",t[1],e)+" "+ir("EW",t[0],e):""}),t("ol.coordinate.toStringXY",ur),t("ol.DeviceOrientation",Uh),Uh.prototype.getAlpha=Uh.prototype.Fk,Uh.prototype.getBeta=Uh.prototype.Ik,Uh.prototype.getGamma=Uh.prototype.Ok,Uh.prototype.getHeading=Uh.prototype.um,Uh.prototype.getTracking=Uh.prototype.Th,Uh.prototype.setTracking=Uh.prototype.gg,t("ol.easing.easeIn",Ro),t("ol.easing.easeOut",Io),t("ol.easing.inAndOut",No),t("ol.easing.linear",Fo),t("ol.easing.upAndDown",function(t){return t<.5?No(2*t):1-No(2*(t-.5))}),t("ol.extent.boundingExtent",ht),t("ol.extent.buffer",lt),t("ol.extent.containsCoordinate",ft),t("ol.extent.containsExtent",yt),t("ol.extent.containsXY",gt),t("ol.extent.createEmpty",vt),t("ol.extent.equals",St),t("ol.extent.extend",Mt),t("ol.extent.getArea",Tt),t("ol.extent.getBottomLeft",jt),t("ol.extent.getBottomRight",Ct),t("ol.extent.getCenter",Lt),t("ol.extent.getHeight",It),t("ol.extent.getIntersection",Nt),t("ol.extent.getSize",function(t){return[t[2]-t[0],t[3]-t[1]]}),t("ol.extent.getTopLeft",Ft),t("ol.extent.getTopRight",kt),t("ol.extent.getWidth",Dt),t("ol.extent.intersects",Ot),t("ol.extent.isEmpty",Ut),t("ol.extent.applyTransform",Bt),t("ol.Feature",x),x.prototype.getGeometry=x.prototype.V,x.prototype.getId=x.prototype.wm,x.prototype.getGeometryName=x.prototype.Qk,x.prototype.getStyle=x.prototype.xm,x.prototype.getStyleFunction=x.prototype.Lc,x.prototype.setGeometry=x.prototype.Ra,x.prototype.setStyle=x.prototype.hg,x.prototype.setId=x.prototype.jc,x.prototype.setGeometryName=x.prototype.Tc,t("ol.featureloader.xhr",ml),t("ol.Geolocation",n0),n0.prototype.getAccuracy=n0.prototype.Dk,n0.prototype.getAccuracyGeometry=n0.prototype.Ek,n0.prototype.getAltitude=n0.prototype.Gk,n0.prototype.getAltitudeAccuracy=n0.prototype.Hk,n0.prototype.getHeading=n0.prototype.ym,n0.prototype.getPosition=n0.prototype.zm,n0.prototype.getProjection=n0.prototype.Uh,n0.prototype.getSpeed=n0.prototype.ll,n0.prototype.getTracking=n0.prototype.Vh,n0.prototype.getTrackingOptions=n0.prototype.Gh,n0.prototype.setProjection=n0.prototype.Wh,n0.prototype.setTracking=n0.prototype.Ke,n0.prototype.setTrackingOptions=n0.prototype.wj,t("ol.Graticule",h0),h0.prototype.getMap=h0.prototype.Cm,h0.prototype.getMeridians=h0.prototype.al,h0.prototype.getParallels=h0.prototype.hl,t("ol.has.DEVICE_PIXEL_RATIO",ni),t("ol.has.CANVAS",ai),t("ol.has.DEVICE_ORIENTATION",pi),t("ol.has.GEOLOCATION",hi),t("ol.has.TOUCH",li),t("ol.has.WEBGL",gi),g0.prototype.getImage=g0.prototype.Y,w0.prototype.getImage=w0.prototype.Y,t("ol.inherits",e),t("ol.interaction.defaults",hs),t("ol.Kinetic",sn),t("ol.loadingstrategy.all",Ev),t("ol.loadingstrategy.bbox",function(t){return[t]}),t("ol.loadingstrategy.tile",function(i){return function(t,e){e=i.tc(e),t=Ie(i,t,e);var o=[];for((e=[e,0,0])[1]=t.ca;e[1]<=t.$;++e[1])for(e[2]=t.da;e[2]<=t.ia;++e[2])o.push(i.Aa(e));return o}}),t("ol.Map",u),u.prototype.addControl=u.prototype.kk,u.prototype.addInteraction=u.prototype.lk,u.prototype.addLayer=u.prototype.ih,u.prototype.addOverlay=u.prototype.jh,u.prototype.forEachFeatureAtPixel=u.prototype.we,u.prototype.forEachLayerAtPixel=u.prototype.Im,u.prototype.hasFeatureAtPixel=u.prototype.Yl,u.prototype.getEventCoordinate=u.prototype.Tf,u.prototype.getEventPixel=u.prototype.xe,u.prototype.getTarget=u.prototype.ag,u.prototype.getTargetElement=u.prototype.jd,u.prototype.getCoordinateFromPixel=u.prototype.Wa,u.prototype.getControls=u.prototype.Lk,u.prototype.getOverlays=u.prototype.fl,u.prototype.getOverlayById=u.prototype.el,u.prototype.getInteractions=u.prototype.Sk,u.prototype.getLayerGroup=u.prototype.Kc,u.prototype.getLayers=u.prototype.Xh,u.prototype.getPixelFromCoordinate=u.prototype.Ja,u.prototype.getSize=u.prototype.Ob,u.prototype.getView=u.prototype.Z,u.prototype.getViewport=u.prototype.sl,u.prototype.renderSync=u.prototype.Tp,u.prototype.removeControl=u.prototype.Mp,u.prototype.removeInteraction=u.prototype.Np,u.prototype.removeLayer=u.prototype.Pp,u.prototype.removeOverlay=u.prototype.Qp,u.prototype.setLayerGroup=u.prototype.qj,u.prototype.setSize=u.prototype.Qg,u.prototype.setTarget=u.prototype.Le,u.prototype.setView=u.prototype.iq,u.prototype.updateSize=u.prototype.Ad,t("ol.Object",ro),ro.prototype.getKeys=ro.prototype.O,ro.prototype.getProperties=ro.prototype.N,ro.prototype.setProperties=ro.prototype.H,ro.prototype.unset=ro.prototype.P,t("ol.Observable",io),t("ol.Observable.unByKey",function(t){if(Array.isArray(t))for(var e=0,o=t.length;e<o;++e)qe(t[e]);else qe(t)}),io.prototype.changed=io.prototype.s,io.prototype.dispatchEvent=io.prototype.b,io.prototype.getRevision=io.prototype.L,io.prototype.on=io.prototype.J,io.prototype.un=io.prototype.K,t("ol.Overlay",fh),fh.prototype.getElement=fh.prototype.Rd,fh.prototype.getId=fh.prototype.Jm,fh.prototype.getMap=fh.prototype.Me,fh.prototype.getOffset=fh.prototype.Dh,fh.prototype.getPosition=fh.prototype.Yh,fh.prototype.getPositioning=fh.prototype.Eh,fh.prototype.setElement=fh.prototype.lj,fh.prototype.setOffset=fh.prototype.rj,fh.prototype.setPosition=fh.prototype.Ne,fh.prototype.setPositioning=fh.prototype.uj,t("ol.proj.METERS_PER_UNIT",Yt),t("ol.proj.setProj4",function(t){Ht=t}),t("ol.proj.getPointResolution",ce),t("ol.proj.addEquivalentProjections",fe),t("ol.proj.addProjection",ye),t("ol.proj.addCoordinateTransforms",de),t("ol.proj.fromLonLat",function(t,e){return Me(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}),t("ol.proj.toLonLat",function(t,e){return Me(t,void 0!==e?e:"EPSG:3857","EPSG:4326")}),t("ol.proj.get",v),t("ol.proj.equivalent",be),t("ol.proj.getTransform",me),t("ol.proj.transform",Me),t("ol.proj.transformExtent",Pe),t("ol.render.toContext",function(t,e){var o=t.canvas,i=e||{};return e=i.pixelRatio||ni,(i=i.size)&&(o.width=i[0]*e,o.height=i[1]*e,o.style.width=i[0]+"px",o.style.height=i[1]+"px"),new Vs(t,e,o=[0,0,o.width,o.height],i=Es(ms(),e,e),0)}),t("ol.size.toSize",pt),t("ol.Sphere",Kt),Kt.prototype.geodesicArea=Kt.prototype.a,Kt.prototype.haversineDistance=Kt.prototype.b,v0.prototype.getTileCoord=v0.prototype.f,t("ol.tilegrid.createXYZ",De),x1.prototype.getFormat=x1.prototype.Lm,x1.prototype.getFeatures=x1.prototype.Km,x1.prototype.getProjection=x1.prototype.Mm,x1.prototype.setFeatures=x1.prototype.mj,x1.prototype.setProjection=x1.prototype.ig,x1.prototype.setLoader=x1.prototype.Pg,t("ol.View",h),h.prototype.getAnimating=h.prototype.Ic,h.prototype.getInteracting=h.prototype.Rk,h.prototype.cancelAnimations=h.prototype.ed,h.prototype.constrainCenter=h.prototype.Ec,h.prototype.getCenter=h.prototype.wa,h.prototype.calculateExtent=h.prototype.dd,h.prototype.getMaxResolution=h.prototype.Nm,h.prototype.getMinResolution=h.prototype.Pm,h.prototype.getMaxZoom=h.prototype.Om,h.prototype.setMaxZoom=h.prototype.eq,h.prototype.getMinZoom=h.prototype.Qm,h.prototype.setMinZoom=h.prototype.fq,h.prototype.getProjection=h.prototype.Rm,h.prototype.getResolution=h.prototype.Pa,h.prototype.getResolutions=h.prototype.Sm,h.prototype.getResolutionForExtent=h.prototype.ze,h.prototype.getRotation=h.prototype.Qa,h.prototype.getZoom=h.prototype.Hh,h.prototype.getZoomForResolution=h.prototype.Ce,h.prototype.fit=h.prototype.Qf,h.prototype.centerOn=h.prototype.uk,h.prototype.setCenter=h.prototype.ob,h.prototype.setResolution=h.prototype.Vc,h.prototype.setRotation=h.prototype.Oe,h.prototype.setZoom=h.prototype.lq,t("ol.xml.getAllTextContent",il),t("ol.xml.parse",sl),Aa.prototype.getGL=Aa.prototype.Wo,Aa.prototype.useProgram=Aa.prototype.Qc,t("ol.tilegrid.TileGrid",Te),Te.prototype.forEachTileCoord=Te.prototype.Rf,Te.prototype.getMaxZoom=Te.prototype.Ti,Te.prototype.getMinZoom=Te.prototype.Ui,Te.prototype.getOrigin=Te.prototype.Pc,Te.prototype.getResolution=Te.prototype.Da,Te.prototype.getResolutions=Te.prototype.Vi,Te.prototype.getTileCoordExtent=Te.prototype.Aa,Te.prototype.getTileCoordForCoordAndResolution=Te.prototype.Be,Te.prototype.getTileCoordForCoordAndZ=Te.prototype.bg,Te.prototype.getTileSize=Te.prototype.gb,Te.prototype.getZForResolution=Te.prototype.tc,t("ol.tilegrid.WMTS",M1),M1.prototype.getMatrixIds=M1.prototype.l,t("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",P1),t("ol.style.AtlasManager",I1),t("ol.style.Circle",Yh),Yh.prototype.setRadius=Yh.prototype.Uc,t("ol.style.Fill",Hh),Hh.prototype.getColor=Hh.prototype.i,Hh.prototype.setColor=Hh.prototype.c,t("ol.style.Icon",af),af.prototype.getAnchor=af.prototype.Hc,af.prototype.getColor=af.prototype.Lo,af.prototype.getImage=af.prototype.Y,af.prototype.getOrigin=af.prototype.Oc,af.prototype.getSrc=af.prototype.Mo,af.prototype.getSize=af.prototype.ic,t("ol.style.Image",Zh),Zh.prototype.getOpacity=Zh.prototype.Ze,Zh.prototype.getRotateWithView=Zh.prototype.$e,Zh.prototype.getRotation=Zh.prototype.af,Zh.prototype.getScale=Zh.prototype.bf,Zh.prototype.getSnapToPixel=Zh.prototype.Ae,Zh.prototype.setOpacity=Zh.prototype.td,Zh.prototype.setRotation=Zh.prototype.cf,Zh.prototype.setScale=Zh.prototype.ud,t("ol.style.RegularShape",Kh),Kh.prototype.getAnchor=Kh.prototype.Hc,Kh.prototype.getAngle=Kh.prototype.Pi,Kh.prototype.getFill=Kh.prototype.Fa,Kh.prototype.getImage=Kh.prototype.Y,Kh.prototype.getOrigin=Kh.prototype.Oc,Kh.prototype.getPoints=Kh.prototype.Qi,Kh.prototype.getRadius=Kh.prototype.Ri,Kh.prototype.getRadius2=Kh.prototype.Fh,Kh.prototype.getSize=Kh.prototype.ic,Kh.prototype.getStroke=Kh.prototype.Ga,t("ol.style.Stroke",hp),hp.prototype.getColor=hp.prototype.No,hp.prototype.getLineCap=hp.prototype.Vk,hp.prototype.getLineDash=hp.prototype.Oo,hp.prototype.getLineDashOffset=hp.prototype.Wk,hp.prototype.getLineJoin=hp.prototype.Xk,hp.prototype.getMiterLimit=hp.prototype.bl,hp.prototype.getWidth=hp.prototype.Po,hp.prototype.setColor=hp.prototype.Qo,hp.prototype.setLineCap=hp.prototype.aq,hp.prototype.setLineDashOffset=hp.prototype.bq,hp.prototype.setLineJoin=hp.prototype.cq,hp.prototype.setMiterLimit=hp.prototype.gq,hp.prototype.setWidth=hp.prototype.jq,t("ol.style.Style",qh),qh.prototype.getGeometry=qh.prototype.V,qh.prototype.getGeometryFunction=qh.prototype.Pk,qh.prototype.getFill=qh.prototype.Fa,qh.prototype.setFill=qh.prototype.pf,qh.prototype.getImage=qh.prototype.Y,qh.prototype.setImage=qh.prototype.Og,qh.prototype.getStroke=qh.prototype.Ga,qh.prototype.setStroke=qh.prototype.qf,qh.prototype.getText=qh.prototype.Na,qh.prototype.setText=qh.prototype.xd,qh.prototype.getZIndex=qh.prototype.Ba,qh.prototype.setGeometry=qh.prototype.Ra,qh.prototype.setZIndex=qh.prototype.Vb,t("ol.style.Text",pf),pf.prototype.getFont=pf.prototype.Nk,pf.prototype.getOffsetX=pf.prototype.cl,pf.prototype.getOffsetY=pf.prototype.dl,pf.prototype.getFill=pf.prototype.Fa,pf.prototype.getRotateWithView=pf.prototype.Ro,pf.prototype.getRotation=pf.prototype.So,pf.prototype.getScale=pf.prototype.To,pf.prototype.getStroke=pf.prototype.Ga,pf.prototype.getText=pf.prototype.Na,pf.prototype.getTextAlign=pf.prototype.nl,pf.prototype.getTextBaseline=pf.prototype.ol,pf.prototype.setFont=pf.prototype.nj,pf.prototype.setOffsetX=pf.prototype.sj,pf.prototype.setOffsetY=pf.prototype.tj,pf.prototype.setFill=pf.prototype.pf,pf.prototype.setRotation=pf.prototype.Uo,pf.prototype.setScale=pf.prototype.Si,pf.prototype.setStroke=pf.prototype.qf,pf.prototype.setText=pf.prototype.xd,pf.prototype.setTextAlign=pf.prototype.vj,pf.prototype.setTextBaseline=pf.prototype.hq,t("ol.source.BingMaps",j),t("ol.source.BingMaps.TOS_ATTRIBUTION",Fm),j.prototype.getApiKey=j.prototype.T,j.prototype.getImagerySet=j.prototype.fa,t("ol.source.CartoDB",C),C.prototype.getConfig=C.prototype.Kk,C.prototype.updateConfig=C.prototype.tq,C.prototype.setConfig=C.prototype.Xp,t("ol.source.Cluster",L),L.prototype.getDistance=L.prototype.$n,L.prototype.getSource=L.prototype.ao,L.prototype.setDistance=L.prototype.Yp,t("ol.source.Image",qb),t("ol.source.ImageArcGISRest",Bm),Bm.prototype.getParams=Bm.prototype.co,Bm.prototype.getImageLoadFunction=Bm.prototype.bo,Bm.prototype.getUrl=Bm.prototype.eo,Bm.prototype.setImageLoadFunction=Bm.prototype.fo,Bm.prototype.setUrl=Bm.prototype.ho,Bm.prototype.updateParams=Bm.prototype.io,t("ol.source.ImageCanvas",om),t("ol.source.ImageMapGuide",Xm),Xm.prototype.getParams=Xm.prototype.ko,Xm.prototype.getImageLoadFunction=Xm.prototype.jo,Xm.prototype.updateParams=Xm.prototype.mo,Xm.prototype.setImageLoadFunction=Xm.prototype.lo,t("ol.source.ImageStatic",Vm),t("ol.source.ImageVector",im),im.prototype.getSource=im.prototype.no,im.prototype.getStyle=im.prototype.oo,im.prototype.getStyleFunction=im.prototype.po,im.prototype.setStyle=im.prototype.Ii,t("ol.source.ImageWMS",Wm),Wm.prototype.getGetFeatureInfoUrl=Wm.prototype.so,Wm.prototype.getParams=Wm.prototype.uo,Wm.prototype.getImageLoadFunction=Wm.prototype.to,Wm.prototype.getUrl=Wm.prototype.vo,Wm.prototype.setImageLoadFunction=Wm.prototype.wo,Wm.prototype.setUrl=Wm.prototype.xo,Wm.prototype.updateParams=Wm.prototype.yo,t("ol.source.OSM",Ym),t("ol.source.OSM.ATTRIBUTION",Hm),t("ol.source.Raster",Qm),Qm.prototype.setOperation=Qm.prototype.v,t("ol.source.Source",Tv),Tv.prototype.getAttributions=Tv.prototype.ya,Tv.prototype.getLogo=Tv.prototype.xa,Tv.prototype.getProjection=Tv.prototype.za,Tv.prototype.refresh=Tv.prototype.sa,Tv.prototype.setAttributions=Tv.prototype.ua,t("ol.source.Stamen",r1),t("ol.source.Tile",Am),Am.prototype.getTileGrid=Am.prototype.ab,t("ol.source.TileArcGISRest",R),R.prototype.getParams=R.prototype.C,R.prototype.updateParams=R.prototype.B,t("ol.source.TileDebug",h1),t("ol.source.TileImage",T),T.prototype.setRenderReprojectionEdges=T.prototype.Pb,T.prototype.setTileGridForProjection=T.prototype.Qb,t("ol.source.TileJSON",u1),u1.prototype.getTileJSON=u1.prototype.pl,t("ol.source.TileUTFGrid",c1),c1.prototype.getTemplate=c1.prototype.ml,c1.prototype.forDataAtCoordinateAndResolution=c1.prototype.zk,t("ol.source.TileWMS",I),I.prototype.getGetFeatureInfoUrl=I.prototype.Fo,I.prototype.getParams=I.prototype.Go,I.prototype.updateParams=I.prototype.Ho,Lm.prototype.getTileLoadFunction=Lm.prototype.pb,Lm.prototype.getTileUrlFunction=Lm.prototype.qb,Lm.prototype.getUrls=Lm.prototype.rb,Lm.prototype.setTileLoadFunction=Lm.prototype.vb,Lm.prototype.setTileUrlFunction=Lm.prototype.cb,Lm.prototype.setUrl=Lm.prototype.jb,Lm.prototype.setUrls=Lm.prototype.eb,t("ol.source.Vector",a),a.prototype.addFeature=a.prototype.yb,a.prototype.addFeatures=a.prototype.cd,a.prototype.forEachFeature=a.prototype.sh,a.prototype.forEachFeatureInExtent=a.prototype.$b,a.prototype.forEachFeatureIntersectingExtent=a.prototype.th,a.prototype.getFeaturesCollection=a.prototype.Ah,a.prototype.getFeatures=a.prototype.Xe,a.prototype.getFeaturesAtCoordinate=a.prototype.zh,a.prototype.getFeaturesInExtent=a.prototype.Uf,a.prototype.getClosestFeatureToCoordinate=a.prototype.vh,a.prototype.getExtent=a.prototype.G,a.prototype.getFeatureById=a.prototype.yh,a.prototype.getFormat=a.prototype.Mi,a.prototype.getUrl=a.prototype.Ni,a.prototype.removeFeature=a.prototype.Gb,t("ol.source.VectorTile",S1),t("ol.source.WMTS",N),N.prototype.getDimensions=N.prototype.Mk,N.prototype.getFormat=N.prototype.Io,N.prototype.getLayer=N.prototype.Jo,N.prototype.getMatrixSet=N.prototype.$k,N.prototype.getRequestEncoding=N.prototype.kl,N.prototype.getStyle=N.prototype.Ko,N.prototype.getVersion=N.prototype.rl,N.prototype.updateDimensions=N.prototype.uq,t("ol.source.WMTS.optionsFromCapabilities",function(t,r){var e=W(t.Contents.Layer,function(t){return t.Identifier==r.layer});if(null===e)return null;var o,i,n=t.Contents.TileMatrixSet,s=1<e.TileMatrixSetLink.length?"projection"in r?z(e.TileMatrixSetLink,function(e){var t=W(n,function(t){return t.Identifier==e.TileMatrixSet}).SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"),o=v(t),i=v(r.projection);return o&&i?be(o,i):t==r.projection}):z(e.TileMatrixSetLink,function(t){return t.TileMatrixSet==r.matrixSet}):0,a=e.TileMatrixSetLink[s=s<0?0:s].TileMatrixSet,p=e.TileMatrixSetLink[s].TileMatrixSetLimits,h=e.Format[0],l=("format"in r&&(h=r.format),s=z(e.Style,function(t){return"style"in r?t.Title==r.style:t.isDefault}),s=e.Style[s=s<0?0:s].Identifier,{}),u=("Dimension"in e&&e.Dimension.forEach(function(t){var e=t.Identifier,o=t.Default;void 0===o&&(o=t.Value[0]),l[e]=o}),W(t.Contents.TileMatrixSet,function(t){return t.Identifier==a})),c="projection"in r?v(r.projection):v(u.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3")),f=e.WGS84BoundingBox,y=(void 0!==f&&(o=v("EPSG:4326").G(),o=f[0]==o[0]&&f[2]==o[2],i=Pe(f,"EPSG:4326",c),(f=c.G())&&!yt(f,i)&&(i=void 0)),p=P1(u,i,p),[]),u=void 0!==(u=r.requestEncoding)?u:"";if("OperationsMetadata"in t&&"GetTile"in t.OperationsMetadata)for(i=0,f=(t=t.OperationsMetadata.GetTile.DCP.HTTP.Get).length;i<f;++i){var g=W(t[i].Constraint,function(t){return"GetEncoding"==t.name}).AllowedValues.Value;if("KVP"!==(u=""===u?g[0]:u))break;D(g,"KVP")&&y.push(t[i].href)}return y.length||(u="REST",e.ResourceURL.forEach(function(t){"tile"===t.resourceType&&(h=t.format,y.push(t.template))})),{urls:y,layer:r.layer,matrixSet:a,format:h,projection:c,requestEncoding:u,tileGrid:p,style:s,dimensions:l,wrapX:o,crossOrigin:r.crossOrigin}}),t("ol.source.XYZ",km),t("ol.source.Zoomify",E1),og.prototype.getExtent=og.prototype.G,og.prototype.getId=og.prototype.Wn,og.prototype.getGeometry=og.prototype.V,og.prototype.getProperties=og.prototype.Xn,og.prototype.getType=og.prototype.U,t("ol.render.VectorContext",Xs),sh.prototype.setStyle=sh.prototype.rd,sh.prototype.drawGeometry=sh.prototype.zb,sh.prototype.drawFeature=sh.prototype.te,Vs.prototype.drawCircle=Vs.prototype.Zb,Vs.prototype.setStyle=Vs.prototype.rd,Vs.prototype.drawGeometry=Vs.prototype.zb,Vs.prototype.drawFeature=Vs.prototype.te,t("ol.proj.common.add",Ae),t("ol.proj.Projection",qt),qt.prototype.getCode=qt.prototype.Jk,qt.prototype.getExtent=qt.prototype.G,qt.prototype.getUnits=qt.prototype.Un,qt.prototype.getMetersPerUnit=qt.prototype.sc,qt.prototype.getWorldExtent=qt.prototype.tl,qt.prototype.isGlobal=qt.prototype.dm,qt.prototype.setGlobal=qt.prototype.$p,qt.prototype.setExtent=qt.prototype.Vn,qt.prototype.setWorldExtent=qt.prototype.kq,qt.prototype.setGetPointResolution=qt.prototype.Zp,t("ol.proj.Units.METERS_PER_UNIT",Yt),t("ol.layer.Base",ls),ls.prototype.getExtent=ls.prototype.G,ls.prototype.getMaxResolution=ls.prototype.fc,ls.prototype.getMinResolution=ls.prototype.gc,ls.prototype.getOpacity=ls.prototype.hc,ls.prototype.getVisible=ls.prototype.Mb,ls.prototype.getZIndex=ls.prototype.Ba,ls.prototype.setExtent=ls.prototype.vc,ls.prototype.setMaxResolution=ls.prototype.Ac,ls.prototype.setMinResolution=ls.prototype.Bc,ls.prototype.setOpacity=ls.prototype.wc,ls.prototype.setVisible=ls.prototype.xc,ls.prototype.setZIndex=ls.prototype.Vb,t("ol.layer.Group",cs),cs.prototype.getLayers=cs.prototype.qd,cs.prototype.setLayers=cs.prototype.xi,t("ol.layer.Heatmap",p),p.prototype.getBlur=p.prototype.uh,p.prototype.getGradient=p.prototype.Bh,p.prototype.getRadius=p.prototype.yi,p.prototype.setBlur=p.prototype.jj,p.prototype.setGradient=p.prototype.pj,p.prototype.setRadius=p.prototype.Uc,t("ol.layer.Image",nm),nm.prototype.getSource=nm.prototype.ha,t("ol.layer.Layer",ys),ys.prototype.getSource=ys.prototype.ha,ys.prototype.setSource=ys.prototype.Wc,t("ol.layer.Tile",A),A.prototype.getPreload=A.prototype.Ud,A.prototype.getSource=A.prototype.ha,A.prototype.setPreload=A.prototype.zi,A.prototype.getUseInterimTilesOnError=A.prototype.kd,A.prototype.setUseInterimTilesOnError=A.prototype.Ai,t("ol.layer.Vector",s),s.prototype.getSource=s.prototype.ha,s.prototype.getStyle=s.prototype.D,s.prototype.getStyleFunction=s.prototype.C,s.prototype.setStyle=s.prototype.g,t("ol.layer.VectorTile",E),E.prototype.getPreload=E.prototype.Ud,E.prototype.getUseInterimTilesOnError=E.prototype.kd,E.prototype.setPreload=E.prototype.Bi,E.prototype.setUseInterimTilesOnError=E.prototype.Ci,t("ol.interaction.DoubleClickZoom",cn),t("ol.interaction.DoubleClickZoom.handleEvent",fn),t("ol.interaction.DragAndDrop",M0),t("ol.interaction.DragAndDrop.handleEvent",cr),t("ol.interaction.DragBox",On),On.prototype.getGeometry=On.prototype.V,t("ol.interaction.DragPan",En),t("ol.interaction.DragRotate",Ln),t("ol.interaction.DragRotateAndZoom",L0),t("ol.interaction.DragZoom",zn),t("ol.interaction.Draw",kv),t("ol.interaction.Draw.handleEvent",Dv),kv.prototype.removeLastPoint=kv.prototype.Op,kv.prototype.finishDrawing=kv.prototype.Pd,kv.prototype.extend=kv.prototype.vn,t("ol.interaction.Draw.createRegularPolygon",function(r,n){return function(t,e){var o=t[0],i=(t=t[1],Math.sqrt(pr(o,t)));return Jr(e=e||qr(new s0(o),r),o,i,n||Math.atan((t[1]-o[1])/(t[0]-o[0]))),e}}),t("ol.interaction.Draw.createBox",function(){return function(t,e){return t=ht(t),(e=e||new w(null)).ma([[jt(t),Ct(t),kt(t),Ft(t),jt(t)]]),e}}),t("ol.interaction.Extent",Jv),Jv.prototype.getExtent=Jv.prototype.G,Jv.prototype.setExtent=Jv.prototype.g,nb.prototype.extent_=nb.prototype.b,t("ol.interaction.Interaction",pn),pn.prototype.getActive=pn.prototype.c,pn.prototype.getMap=pn.prototype.f,pn.prototype.setActive=pn.prototype.Ha,t("ol.interaction.KeyboardPan",Yn),t("ol.interaction.KeyboardPan.handleEvent",Hn),t("ol.interaction.KeyboardZoom",qn),t("ol.interaction.KeyboardZoom.handleEvent",Jn),t("ol.interaction.Modify",ab),t("ol.interaction.Modify.handleEvent",gb),ab.prototype.removePoint=ab.prototype.hj,t("ol.interaction.MouseWheelZoom",_n),t("ol.interaction.MouseWheelZoom.handleEvent",$n),_n.prototype.setMouseAnchor=_n.prototype.T,t("ol.interaction.PinchRotate",es),t("ol.interaction.PinchZoom",ns),t("ol.interaction.Pointer",Mn),t("ol.interaction.Pointer.handleEvent",An),t("ol.interaction.Select",xb),xb.prototype.getFeatures=xb.prototype.Gn,xb.prototype.getHitTolerance=xb.prototype.Hn,xb.prototype.getLayer=xb.prototype.In,t("ol.interaction.Select.handleEvent",Sb),xb.prototype.setHitTolerance=xb.prototype.Kn,t("ol.interaction.Snap",Ab),Ab.prototype.addFeature=Ab.prototype.yb,Ab.prototype.removeFeature=Ab.prototype.Gb,t("ol.interaction.Translate",Cb),Cb.prototype.getHitTolerance=Cb.prototype.B,Cb.prototype.setHitTolerance=Cb.prototype.I,t("ol.geom.Circle",s0),s0.prototype.getCenter=s0.prototype.wa,s0.prototype.getRadius=s0.prototype.pd,s0.prototype.getType=s0.prototype.U,s0.prototype.intersectsExtent=s0.prototype.Xa,s0.prototype.setCenter=s0.prototype.ob,s0.prototype.setCenterAndRadius=s0.prototype.Ng,s0.prototype.setRadius=s0.prototype.Uc,s0.prototype.transform=s0.prototype.tb,t("ol.geom.Geometry",yr),yr.prototype.getClosestPoint=yr.prototype.Ab,yr.prototype.intersectsCoordinate=yr.prototype.sb,yr.prototype.getExtent=yr.prototype.G,yr.prototype.simplify=yr.prototype.Rb,yr.prototype.transform=yr.prototype.tb,t("ol.geom.GeometryCollection",uu),uu.prototype.getGeometries=uu.prototype.Vf,uu.prototype.getType=uu.prototype.U,uu.prototype.intersectsExtent=uu.prototype.Xa,uu.prototype.setGeometries=uu.prototype.oj,uu.prototype.applyTransform=uu.prototype.Dc,t("ol.geom.LinearRing",Fr),Fr.prototype.getArea=Fr.prototype.qn,Fr.prototype.getCoordinates=Fr.prototype.X,Fr.prototype.getType=Fr.prototype.U,Fr.prototype.setCoordinates=Fr.prototype.ma,t("ol.geom.LineString",S),S.prototype.appendCoordinate=S.prototype.mk,S.prototype.forEachSegment=S.prototype.Ck,S.prototype.getCoordinateAtM=S.prototype.nn,S.prototype.getCoordinates=S.prototype.X,S.prototype.getCoordinateAt=S.prototype.wh,S.prototype.getLength=S.prototype.pn,S.prototype.getType=S.prototype.U,S.prototype.intersectsExtent=S.prototype.Xa,S.prototype.setCoordinates=S.prototype.ma,t("ol.geom.MultiLineString",M),M.prototype.appendLineString=M.prototype.nk,M.prototype.getCoordinateAtM=M.prototype.rn,M.prototype.getCoordinates=M.prototype.X,M.prototype.getLineString=M.prototype.Yk,M.prototype.getLineStrings=M.prototype.gd,M.prototype.getType=M.prototype.U,M.prototype.intersectsExtent=M.prototype.Xa,M.prototype.setCoordinates=M.prototype.ma,t("ol.geom.MultiPoint",P),P.prototype.appendPoint=P.prototype.qk,P.prototype.getCoordinates=P.prototype.X,P.prototype.getPoint=P.prototype.il,P.prototype.getPoints=P.prototype.Zd,P.prototype.getType=P.prototype.U,P.prototype.intersectsExtent=P.prototype.Xa,P.prototype.setCoordinates=P.prototype.ma,t("ol.geom.MultiPolygon",f),f.prototype.appendPolygon=f.prototype.rk,f.prototype.getArea=f.prototype.sn,f.prototype.getCoordinates=f.prototype.X,f.prototype.getInteriorPoints=f.prototype.Uk,f.prototype.getPolygon=f.prototype.jl,f.prototype.getPolygons=f.prototype.Td,f.prototype.getType=f.prototype.U,f.prototype.intersectsExtent=f.prototype.Xa,f.prototype.setCoordinates=f.prototype.ma,t("ol.geom.Point",m),m.prototype.getCoordinates=m.prototype.X,m.prototype.getType=m.prototype.U,m.prototype.intersectsExtent=m.prototype.Xa,m.prototype.setCoordinates=m.prototype.ma,t("ol.geom.Polygon",w),w.prototype.appendLinearRing=w.prototype.pk,w.prototype.getArea=w.prototype.tn,w.prototype.getCoordinates=w.prototype.X,w.prototype.getInteriorPoint=w.prototype.Tk,w.prototype.getLinearRingCount=w.prototype.Zk,w.prototype.getLinearRing=w.prototype.Ch,w.prototype.getLinearRings=w.prototype.Sd,w.prototype.getType=w.prototype.U,w.prototype.intersectsExtent=w.prototype.Xa,w.prototype.setCoordinates=w.prototype.ma,t("ol.geom.Polygon.circular",Yr),t("ol.geom.Polygon.fromExtent",Hr),t("ol.geom.Polygon.fromCircle",qr),t("ol.geom.SimpleGeometry",b),b.prototype.getFirstCoordinate=b.prototype.ac,b.prototype.getLastCoordinate=b.prototype.bc,b.prototype.getLayout=b.prototype.cc,b.prototype.applyTransform=b.prototype.Dc,t("ol.format.EsriJSON",kl),kl.prototype.readFeature=kl.prototype.Tb,kl.prototype.readFeatures=kl.prototype.Oa,kl.prototype.readGeometry=kl.prototype.Sc,kl.prototype.readProjection=kl.prototype.kb,kl.prototype.writeGeometry=kl.prototype.$c,kl.prototype.writeGeometryObject=kl.prototype.je,kl.prototype.writeFeature=kl.prototype.Bd,kl.prototype.writeFeatureObject=kl.prototype.Zc,kl.prototype.writeFeatures=kl.prototype.Wb,kl.prototype.writeFeaturesObject=kl.prototype.he,t("ol.format.Feature",wl),t("ol.format.filter.and",hu),t("ol.format.filter.or",function(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(au,e))}),t("ol.format.filter.not",function(t){return new nu(t)}),t("ol.format.filter.bbox",lu),t("ol.format.filter.intersects",function(t,e,o){return new Ql(t,e,o)}),t("ol.format.filter.within",function(t,e,o){return new pu(t,e,o)}),t("ol.format.filter.equalTo",function(t,e,o){return new ql(t,e,o)}),t("ol.format.filter.notEqualTo",function(t,e,o){return new su(t,e,o)}),t("ol.format.filter.lessThan",function(t,e){return new iu(t,e)}),t("ol.format.filter.lessThanOrEqualTo",function(t,e){return new ru(t,e)}),t("ol.format.filter.greaterThan",function(t,e){return new Jl(t,e)}),t("ol.format.filter.greaterThanOrEqualTo",function(t,e){return new _l(t,e)}),t("ol.format.filter.isNull",function(t){return new ou(t)}),t("ol.format.filter.between",function(t,e,o){return new tu(t,e,o)}),t("ol.format.filter.like",function(t,e,o,i,r,n){return new eu(t,e,o,i,r,n)}),t("ol.format.filter.during",function(t,e,o){return new Yl(t,e,o)}),t("ol.format.GeoJSON",gu),gu.prototype.readFeature=gu.prototype.Tb,gu.prototype.readFeatures=gu.prototype.Oa,gu.prototype.readGeometry=gu.prototype.Sc,gu.prototype.readProjection=gu.prototype.kb,gu.prototype.writeFeature=gu.prototype.Bd,gu.prototype.writeFeatureObject=gu.prototype.Zc,gu.prototype.writeFeatures=gu.prototype.Wb,gu.prototype.writeFeaturesObject=gu.prototype.he,gu.prototype.writeGeometry=gu.prototype.$c,gu.prototype.writeGeometryObject=gu.prototype.je,t("ol.format.GML",y),y.prototype.writeFeatures=y.prototype.Wb,y.prototype.writeFeaturesNode=y.prototype.Xb,t("ol.format.GML2",Zu),t("ol.format.GML3",y),y.prototype.writeGeometryNode=y.prototype.ie,y.prototype.writeFeatures=y.prototype.Wb,y.prototype.writeFeaturesNode=y.prototype.Xb,Mu.prototype.readFeatures=Mu.prototype.Oa,t("ol.format.GPX",ec),ec.prototype.readFeature=ec.prototype.Tb,ec.prototype.readFeatures=ec.prototype.Oa,ec.prototype.readProjection=ec.prototype.kb,ec.prototype.writeFeatures=ec.prototype.Wb,ec.prototype.writeFeaturesNode=ec.prototype.Xb,t("ol.format.IGC",Uc),Uc.prototype.readFeature=Uc.prototype.Tb,Uc.prototype.readFeatures=Uc.prototype.Oa,Uc.prototype.readProjection=Uc.prototype.kb,t("ol.format.KML",hf),hf.prototype.readFeature=hf.prototype.Tb,hf.prototype.readFeatures=hf.prototype.Oa,hf.prototype.readName=hf.prototype.Cp,hf.prototype.readNetworkLinks=hf.prototype.Dp,hf.prototype.readRegion=hf.prototype.Gp,hf.prototype.readRegionFromNode=hf.prototype.lf,hf.prototype.readProjection=hf.prototype.kb,hf.prototype.writeFeatures=hf.prototype.Wb,hf.prototype.writeFeaturesNode=hf.prototype.Xb,t("ol.format.MVT",ig),ig.prototype.readFeatures=ig.prototype.Oa,ig.prototype.readProjection=ig.prototype.kb,ig.prototype.setLayers=ig.prototype.mn,t("ol.format.OSMXML",ng),ng.prototype.readFeatures=ng.prototype.Oa,ng.prototype.readProjection=ng.prototype.kb,t("ol.format.Polyline",Cg),t("ol.format.Polyline.encodeDeltas",Lg),t("ol.format.Polyline.decodeDeltas",Rg),t("ol.format.Polyline.encodeFloats",Ig),t("ol.format.Polyline.decodeFloats",Ng),Cg.prototype.readFeature=Cg.prototype.Tb,Cg.prototype.readFeatures=Cg.prototype.Oa,Cg.prototype.readGeometry=Cg.prototype.Sc,Cg.prototype.readProjection=Cg.prototype.kb,Cg.prototype.writeGeometry=Cg.prototype.$c,t("ol.format.TopoJSON",Fg),Fg.prototype.readFeatures=Fg.prototype.Oa,Fg.prototype.readProjection=Fg.prototype.kb,t("ol.format.WFS",Gg),Gg.prototype.readFeatures=Gg.prototype.Oa,Gg.prototype.readTransactionResponse=Gg.prototype.j,Gg.prototype.readFeatureCollectionMetadata=Gg.prototype.g,t("ol.format.WFS.writeFilter",function(t){var e=ol("http://www.opengis.net/ogc","Filter");return vl({node:e},nd,cl(t.kc),[t],[]),e}),Gg.prototype.writeGetFeature=Gg.prototype.l,Gg.prototype.writeTransaction=Gg.prototype.v,Gg.prototype.readProjection=Gg.prototype.kb,t("ol.format.WKT",sd),sd.prototype.readFeature=sd.prototype.Tb,sd.prototype.readFeatures=sd.prototype.Oa,sd.prototype.readGeometry=sd.prototype.Sc,sd.prototype.writeFeature=sd.prototype.Bd,sd.prototype.writeFeatures=sd.prototype.Wb,sd.prototype.writeGeometry=sd.prototype.$c,t("ol.format.WMSCapabilities",Md),t("ol.format.WMSGetFeatureInfo",Kd),Kd.prototype.readFeatures=Kd.prototype.Oa,t("ol.format.WMTSCapabilities",zd),t("ol.format.filter.And",Zl),t("ol.format.filter.Bbox",Kl),t("ol.format.filter.Comparison",zl),t("ol.format.filter.ComparisonBinary",Hl),t("ol.format.filter.During",Yl),t("ol.format.filter.EqualTo",ql),t("ol.format.filter.Filter",Vl),t("ol.format.filter.GreaterThan",Jl),t("ol.format.filter.GreaterThanOrEqualTo",_l),t("ol.format.filter.Intersects",Ql),t("ol.format.filter.IsBetween",tu),t("ol.format.filter.IsLike",eu),t("ol.format.filter.IsNull",ou),t("ol.format.filter.LessThan",iu),t("ol.format.filter.LessThanOrEqualTo",ru),t("ol.format.filter.Not",nu),t("ol.format.filter.NotEqualTo",su),t("ol.format.filter.Or",au),t("ol.format.filter.Spatial",$l),t("ol.format.filter.Within",pu),t("ol.events.condition.altKeyOnly",function(t){return(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}),t("ol.events.condition.altShiftKeysOnly",yn),t("ol.events.condition.always",cr),t("ol.events.condition.click",function(t){return"click"==t.type}),t("ol.events.condition.never",fr),t("ol.events.condition.pointerMove",dn),t("ol.events.condition.singleClick",vn),t("ol.events.condition.doubleClick",function(t){return"dblclick"==t.type}),t("ol.events.condition.noModifierKeys",bn),t("ol.events.condition.platformModifierKeyOnly",function(t){return!(t=t.originalEvent).altKey&&(ri?t.metaKey:t.ctrlKey)&&!t.shiftKey}),t("ol.events.condition.shiftKeyOnly",mn),t("ol.events.condition.targetNotEditable",wn),t("ol.events.condition.mouseOnly",xn),t("ol.events.condition.primaryAction",Sn),t("ol.control.Attribution",jo),t("ol.control.Attribution.render",Co),jo.prototype.getCollapsible=jo.prototype.Um,jo.prototype.setCollapsible=jo.prototype.Xm,jo.prototype.setCollapsed=jo.prototype.Wm,jo.prototype.getCollapsed=jo.prototype.Tm,t("ol.control.Control",To),To.prototype.getMap=To.prototype.g,To.prototype.setTarget=To.prototype.f,t("ol.control.FullScreen",Go),t("ol.control.MousePosition",Ko),t("ol.control.MousePosition.render",zo),Ko.prototype.getCoordinateFormat=Ko.prototype.xh,Ko.prototype.getProjection=Ko.prototype.Zh,Ko.prototype.setCoordinateFormat=Ko.prototype.kj,Ko.prototype.setProjection=Ko.prototype.$h,t("ol.control.OverviewMap",Sh),t("ol.control.OverviewMap.render",Mh),Sh.prototype.getCollapsible=Sh.prototype.$m,Sh.prototype.setCollapsible=Sh.prototype.cn,Sh.prototype.setCollapsed=Sh.prototype.bn,Sh.prototype.getCollapsed=Sh.prototype.Zm,Sh.prototype.getOverviewMap=Sh.prototype.gl,t("ol.control.Rotate",ko),t("ol.control.Rotate.render",Do),t("ol.control.ScaleLine",Th),Th.prototype.getUnits=Th.prototype.C,t("ol.control.ScaleLine.render",Ch),Th.prototype.setUnits=Th.prototype.I,t("ol.control.Zoom",Oo),t("ol.control.ZoomSlider",Ih),t("ol.control.ZoomSlider.render",Fh),t("ol.control.ZoomToExtent",Oh),ro.prototype.changed=ro.prototype.s,ro.prototype.dispatchEvent=ro.prototype.b,ro.prototype.getRevision=ro.prototype.L,ro.prototype.on=ro.prototype.J,ro.prototype.un=ro.prototype.K,ho.prototype.getKeys=ho.prototype.O,ho.prototype.getProperties=ho.prototype.N,ho.prototype.setProperties=ho.prototype.H,ho.prototype.unset=ho.prototype.P,ho.prototype.changed=ho.prototype.s,ho.prototype.dispatchEvent=ho.prototype.b,ho.prototype.getRevision=ho.prototype.L,ho.prototype.on=ho.prototype.J,ho.prototype.un=ho.prototype.K,Uh.prototype.getKeys=Uh.prototype.O,Uh.prototype.getProperties=Uh.prototype.N,Uh.prototype.setProperties=Uh.prototype.H,Uh.prototype.unset=Uh.prototype.P,Uh.prototype.changed=Uh.prototype.s,Uh.prototype.dispatchEvent=Uh.prototype.b,Uh.prototype.getRevision=Uh.prototype.L,Uh.prototype.on=Uh.prototype.J,Uh.prototype.un=Uh.prototype.K,x.prototype.getKeys=x.prototype.O,x.prototype.getProperties=x.prototype.N,x.prototype.setProperties=x.prototype.H,x.prototype.unset=x.prototype.P,x.prototype.changed=x.prototype.s,x.prototype.dispatchEvent=x.prototype.b,x.prototype.getRevision=x.prototype.L,x.prototype.on=x.prototype.J,x.prototype.un=x.prototype.K,n0.prototype.getKeys=n0.prototype.O,n0.prototype.getProperties=n0.prototype.N,n0.prototype.setProperties=n0.prototype.H,n0.prototype.unset=n0.prototype.P,n0.prototype.changed=n0.prototype.s,n0.prototype.dispatchEvent=n0.prototype.b,n0.prototype.getRevision=n0.prototype.L,n0.prototype.on=n0.prototype.J,n0.prototype.un=n0.prototype.K,w0.prototype.getTileCoord=w0.prototype.f,u.prototype.getKeys=u.prototype.O,u.prototype.getProperties=u.prototype.N,u.prototype.setProperties=u.prototype.H,u.prototype.unset=u.prototype.P,u.prototype.changed=u.prototype.s,u.prototype.dispatchEvent=u.prototype.b,u.prototype.getRevision=u.prototype.L,u.prototype.on=u.prototype.J,u.prototype.un=u.prototype.K,fh.prototype.getKeys=fh.prototype.O,fh.prototype.getProperties=fh.prototype.N,fh.prototype.setProperties=fh.prototype.H,fh.prototype.unset=fh.prototype.P,fh.prototype.changed=fh.prototype.s,fh.prototype.dispatchEvent=fh.prototype.b,fh.prototype.getRevision=fh.prototype.L,fh.prototype.on=fh.prototype.J,fh.prototype.un=fh.prototype.K,m1.prototype.getTileCoord=m1.prototype.f,x1.prototype.getTileCoord=x1.prototype.f,h.prototype.getKeys=h.prototype.O,h.prototype.getProperties=h.prototype.N,h.prototype.setProperties=h.prototype.H,h.prototype.unset=h.prototype.P,h.prototype.changed=h.prototype.s,h.prototype.dispatchEvent=h.prototype.b,h.prototype.getRevision=h.prototype.L,h.prototype.on=h.prototype.J,h.prototype.un=h.prototype.K,M1.prototype.forEachTileCoord=M1.prototype.Rf,M1.prototype.getMaxZoom=M1.prototype.Ti,M1.prototype.getMinZoom=M1.prototype.Ui,M1.prototype.getOrigin=M1.prototype.Pc,M1.prototype.getResolution=M1.prototype.Da,M1.prototype.getResolutions=M1.prototype.Vi,M1.prototype.getTileCoordExtent=M1.prototype.Aa,M1.prototype.getTileCoordForCoordAndResolution=M1.prototype.Be,M1.prototype.getTileCoordForCoordAndZ=M1.prototype.bg,M1.prototype.getTileSize=M1.prototype.gb,M1.prototype.getZForResolution=M1.prototype.tc,Kh.prototype.getOpacity=Kh.prototype.Ze,Kh.prototype.getRotateWithView=Kh.prototype.$e,Kh.prototype.getRotation=Kh.prototype.af,Kh.prototype.getScale=Kh.prototype.bf,Kh.prototype.getSnapToPixel=Kh.prototype.Ae,Kh.prototype.setOpacity=Kh.prototype.td,Kh.prototype.setRotation=Kh.prototype.cf,Kh.prototype.setScale=Kh.prototype.ud,Yh.prototype.getAngle=Yh.prototype.Pi,Yh.prototype.getFill=Yh.prototype.Fa,Yh.prototype.getPoints=Yh.prototype.Qi,Yh.prototype.getRadius=Yh.prototype.Ri,Yh.prototype.getRadius2=Yh.prototype.Fh,Yh.prototype.getStroke=Yh.prototype.Ga,Yh.prototype.getOpacity=Yh.prototype.Ze,Yh.prototype.getRotateWithView=Yh.prototype.$e,Yh.prototype.getRotation=Yh.prototype.af,Yh.prototype.getScale=Yh.prototype.bf,Yh.prototype.getSnapToPixel=Yh.prototype.Ae,Yh.prototype.setOpacity=Yh.prototype.td,Yh.prototype.setRotation=Yh.prototype.cf,Yh.prototype.setScale=Yh.prototype.ud,af.prototype.getOpacity=af.prototype.Ze,af.prototype.getRotateWithView=af.prototype.$e,af.prototype.getRotation=af.prototype.af,af.prototype.getScale=af.prototype.bf,af.prototype.getSnapToPixel=af.prototype.Ae,af.prototype.setOpacity=af.prototype.td,af.prototype.setRotation=af.prototype.cf,af.prototype.setScale=af.prototype.ud,Tv.prototype.getKeys=Tv.prototype.O,Tv.prototype.getProperties=Tv.prototype.N,Tv.prototype.setProperties=Tv.prototype.H,Tv.prototype.unset=Tv.prototype.P,Tv.prototype.changed=Tv.prototype.s,Tv.prototype.dispatchEvent=Tv.prototype.b,Tv.prototype.getRevision=Tv.prototype.L,Tv.prototype.on=Tv.prototype.J,Tv.prototype.un=Tv.prototype.K,Am.prototype.getAttributions=Am.prototype.ya,Am.prototype.getLogo=Am.prototype.xa,Am.prototype.getProjection=Am.prototype.za,Am.prototype.refresh=Am.prototype.sa,Am.prototype.setAttributions=Am.prototype.ua,Am.prototype.getKeys=Am.prototype.O,Am.prototype.getProperties=Am.prototype.N,Am.prototype.setProperties=Am.prototype.H,Am.prototype.unset=Am.prototype.P,Am.prototype.changed=Am.prototype.s,Am.prototype.dispatchEvent=Am.prototype.b,Am.prototype.getRevision=Am.prototype.L,Am.prototype.on=Am.prototype.J,Am.prototype.un=Am.prototype.K,Lm.prototype.getTileGrid=Lm.prototype.ab,Lm.prototype.refresh=Lm.prototype.sa,Lm.prototype.getAttributions=Lm.prototype.ya,Lm.prototype.getLogo=Lm.prototype.xa,Lm.prototype.getProjection=Lm.prototype.za,Lm.prototype.setAttributions=Lm.prototype.ua,Lm.prototype.getKeys=Lm.prototype.O,Lm.prototype.getProperties=Lm.prototype.N,Lm.prototype.setProperties=Lm.prototype.H,Lm.prototype.unset=Lm.prototype.P,Lm.prototype.changed=Lm.prototype.s,Lm.prototype.dispatchEvent=Lm.prototype.b,Lm.prototype.getRevision=Lm.prototype.L,Lm.prototype.on=Lm.prototype.J,Lm.prototype.un=Lm.prototype.K,T.prototype.getTileLoadFunction=T.prototype.pb,T.prototype.getTileUrlFunction=T.prototype.qb,T.prototype.getUrls=T.prototype.rb,T.prototype.setTileLoadFunction=T.prototype.vb,T.prototype.setTileUrlFunction=T.prototype.cb,T.prototype.setUrl=T.prototype.jb,T.prototype.setUrls=T.prototype.eb,T.prototype.getTileGrid=T.prototype.ab,T.prototype.refresh=T.prototype.sa,T.prototype.getAttributions=T.prototype.ya,T.prototype.getLogo=T.prototype.xa,T.prototype.getProjection=T.prototype.za,T.prototype.setAttributions=T.prototype.ua,T.prototype.getKeys=T.prototype.O,T.prototype.getProperties=T.prototype.N,T.prototype.setProperties=T.prototype.H,T.prototype.unset=T.prototype.P,T.prototype.changed=T.prototype.s,T.prototype.dispatchEvent=T.prototype.b,T.prototype.getRevision=T.prototype.L,T.prototype.on=T.prototype.J,T.prototype.un=T.prototype.K,j.prototype.setRenderReprojectionEdges=j.prototype.Pb,j.prototype.setTileGridForProjection=j.prototype.Qb,j.prototype.getTileLoadFunction=j.prototype.pb,j.prototype.getTileUrlFunction=j.prototype.qb,j.prototype.getUrls=j.prototype.rb,j.prototype.setTileLoadFunction=j.prototype.vb,j.prototype.setTileUrlFunction=j.prototype.cb,j.prototype.setUrl=j.prototype.jb,j.prototype.setUrls=j.prototype.eb,j.prototype.getTileGrid=j.prototype.ab,j.prototype.refresh=j.prototype.sa,j.prototype.getAttributions=j.prototype.ya,j.prototype.getLogo=j.prototype.xa,j.prototype.getProjection=j.prototype.za,j.prototype.setAttributions=j.prototype.ua,j.prototype.getKeys=j.prototype.O,j.prototype.getProperties=j.prototype.N,j.prototype.setProperties=j.prototype.H,j.prototype.unset=j.prototype.P,j.prototype.changed=j.prototype.s,j.prototype.dispatchEvent=j.prototype.b,j.prototype.getRevision=j.prototype.L,j.prototype.on=j.prototype.J,j.prototype.un=j.prototype.K,km.prototype.setRenderReprojectionEdges=km.prototype.Pb,km.prototype.setTileGridForProjection=km.prototype.Qb,km.prototype.getTileLoadFunction=km.prototype.pb,km.prototype.getTileUrlFunction=km.prototype.qb,km.prototype.getUrls=km.prototype.rb,km.prototype.setTileLoadFunction=km.prototype.vb,km.prototype.setTileUrlFunction=km.prototype.cb,km.prototype.setUrl=km.prototype.jb,km.prototype.setUrls=km.prototype.eb,km.prototype.getTileGrid=km.prototype.ab,km.prototype.refresh=km.prototype.sa,km.prototype.getAttributions=km.prototype.ya,km.prototype.getLogo=km.prototype.xa,km.prototype.getProjection=km.prototype.za,km.prototype.setAttributions=km.prototype.ua,km.prototype.getKeys=km.prototype.O,km.prototype.getProperties=km.prototype.N,km.prototype.setProperties=km.prototype.H,km.prototype.unset=km.prototype.P,km.prototype.changed=km.prototype.s,km.prototype.dispatchEvent=km.prototype.b,km.prototype.getRevision=km.prototype.L,km.prototype.on=km.prototype.J,km.prototype.un=km.prototype.K,C.prototype.setRenderReprojectionEdges=C.prototype.Pb,C.prototype.setTileGridForProjection=C.prototype.Qb,C.prototype.getTileLoadFunction=C.prototype.pb,C.prototype.getTileUrlFunction=C.prototype.qb,C.prototype.getUrls=C.prototype.rb,C.prototype.setTileLoadFunction=C.prototype.vb,C.prototype.setTileUrlFunction=C.prototype.cb,C.prototype.setUrl=C.prototype.jb,C.prototype.setUrls=C.prototype.eb,C.prototype.getTileGrid=C.prototype.ab,C.prototype.refresh=C.prototype.sa,C.prototype.getAttributions=C.prototype.ya,C.prototype.getLogo=C.prototype.xa,C.prototype.getProjection=C.prototype.za,C.prototype.setAttributions=C.prototype.ua,C.prototype.getKeys=C.prototype.O,C.prototype.getProperties=C.prototype.N,C.prototype.setProperties=C.prototype.H,C.prototype.unset=C.prototype.P,C.prototype.changed=C.prototype.s,C.prototype.dispatchEvent=C.prototype.b,C.prototype.getRevision=C.prototype.L,C.prototype.on=C.prototype.J,C.prototype.un=C.prototype.K,a.prototype.getAttributions=a.prototype.ya,a.prototype.getLogo=a.prototype.xa,a.prototype.getProjection=a.prototype.za,a.prototype.refresh=a.prototype.sa,a.prototype.setAttributions=a.prototype.ua,a.prototype.getKeys=a.prototype.O,a.prototype.getProperties=a.prototype.N,a.prototype.setProperties=a.prototype.H,a.prototype.unset=a.prototype.P,a.prototype.changed=a.prototype.s,a.prototype.dispatchEvent=a.prototype.b,a.prototype.getRevision=a.prototype.L,a.prototype.on=a.prototype.J,a.prototype.un=a.prototype.K,L.prototype.addFeature=L.prototype.yb,L.prototype.addFeatures=L.prototype.cd,L.prototype.forEachFeature=L.prototype.sh,L.prototype.forEachFeatureInExtent=L.prototype.$b,L.prototype.forEachFeatureIntersectingExtent=L.prototype.th,L.prototype.getFeaturesCollection=L.prototype.Ah,L.prototype.getFeatures=L.prototype.Xe,L.prototype.getFeaturesAtCoordinate=L.prototype.zh,L.prototype.getFeaturesInExtent=L.prototype.Uf,L.prototype.getClosestFeatureToCoordinate=L.prototype.vh,L.prototype.getExtent=L.prototype.G,L.prototype.getFeatureById=L.prototype.yh,L.prototype.getFormat=L.prototype.Mi,L.prototype.getUrl=L.prototype.Ni,L.prototype.removeFeature=L.prototype.Gb,L.prototype.getAttributions=L.prototype.ya,L.prototype.getLogo=L.prototype.xa,L.prototype.getProjection=L.prototype.za,L.prototype.refresh=L.prototype.sa,L.prototype.setAttributions=L.prototype.ua,L.prototype.getKeys=L.prototype.O,L.prototype.getProperties=L.prototype.N,L.prototype.setProperties=L.prototype.H,L.prototype.unset=L.prototype.P,L.prototype.changed=L.prototype.s,L.prototype.dispatchEvent=L.prototype.b,L.prototype.getRevision=L.prototype.L,L.prototype.on=L.prototype.J,L.prototype.un=L.prototype.K,qb.prototype.getAttributions=qb.prototype.ya,qb.prototype.getLogo=qb.prototype.xa,qb.prototype.getProjection=qb.prototype.za,qb.prototype.refresh=qb.prototype.sa,qb.prototype.setAttributions=qb.prototype.ua,qb.prototype.getKeys=qb.prototype.O,qb.prototype.getProperties=qb.prototype.N,qb.prototype.setProperties=qb.prototype.H,qb.prototype.unset=qb.prototype.P,qb.prototype.changed=qb.prototype.s,qb.prototype.dispatchEvent=qb.prototype.b,qb.prototype.getRevision=qb.prototype.L,qb.prototype.on=qb.prototype.J,qb.prototype.un=qb.prototype.K,Bm.prototype.getAttributions=Bm.prototype.ya,Bm.prototype.getLogo=Bm.prototype.xa,Bm.prototype.getProjection=Bm.prototype.za,Bm.prototype.refresh=Bm.prototype.sa,Bm.prototype.setAttributions=Bm.prototype.ua,Bm.prototype.getKeys=Bm.prototype.O,Bm.prototype.getProperties=Bm.prototype.N,Bm.prototype.setProperties=Bm.prototype.H,Bm.prototype.unset=Bm.prototype.P,Bm.prototype.changed=Bm.prototype.s,Bm.prototype.dispatchEvent=Bm.prototype.b,Bm.prototype.getRevision=Bm.prototype.L,Bm.prototype.on=Bm.prototype.J,Bm.prototype.un=Bm.prototype.K,om.prototype.getAttributions=om.prototype.ya,om.prototype.getLogo=om.prototype.xa,om.prototype.getProjection=om.prototype.za,om.prototype.refresh=om.prototype.sa,om.prototype.setAttributions=om.prototype.ua,om.prototype.getKeys=om.prototype.O,om.prototype.getProperties=om.prototype.N,om.prototype.setProperties=om.prototype.H,om.prototype.unset=om.prototype.P,om.prototype.changed=om.prototype.s,om.prototype.dispatchEvent=om.prototype.b,om.prototype.getRevision=om.prototype.L,om.prototype.on=om.prototype.J,om.prototype.un=om.prototype.K,Xm.prototype.getAttributions=Xm.prototype.ya,Xm.prototype.getLogo=Xm.prototype.xa,Xm.prototype.getProjection=Xm.prototype.za,Xm.prototype.refresh=Xm.prototype.sa,Xm.prototype.setAttributions=Xm.prototype.ua,Xm.prototype.getKeys=Xm.prototype.O,Xm.prototype.getProperties=Xm.prototype.N,Xm.prototype.setProperties=Xm.prototype.H,Xm.prototype.unset=Xm.prototype.P,Xm.prototype.changed=Xm.prototype.s,Xm.prototype.dispatchEvent=Xm.prototype.b,Xm.prototype.getRevision=Xm.prototype.L,Xm.prototype.on=Xm.prototype.J,Xm.prototype.un=Xm.prototype.K,Vm.prototype.getAttributions=Vm.prototype.ya,Vm.prototype.getLogo=Vm.prototype.xa,Vm.prototype.getProjection=Vm.prototype.za,Vm.prototype.refresh=Vm.prototype.sa,Vm.prototype.setAttributions=Vm.prototype.ua,Vm.prototype.getKeys=Vm.prototype.O,Vm.prototype.getProperties=Vm.prototype.N,Vm.prototype.setProperties=Vm.prototype.H,Vm.prototype.unset=Vm.prototype.P,Vm.prototype.changed=Vm.prototype.s,Vm.prototype.dispatchEvent=Vm.prototype.b,Vm.prototype.getRevision=Vm.prototype.L,Vm.prototype.on=Vm.prototype.J,Vm.prototype.un=Vm.prototype.K,im.prototype.getAttributions=im.prototype.ya,im.prototype.getLogo=im.prototype.xa,im.prototype.getProjection=im.prototype.za,im.prototype.refresh=im.prototype.sa,im.prototype.setAttributions=im.prototype.ua,im.prototype.getKeys=im.prototype.O,im.prototype.getProperties=im.prototype.N,im.prototype.setProperties=im.prototype.H,im.prototype.unset=im.prototype.P,im.prototype.changed=im.prototype.s,im.prototype.dispatchEvent=im.prototype.b,im.prototype.getRevision=im.prototype.L,im.prototype.on=im.prototype.J,im.prototype.un=im.prototype.K,Wm.prototype.getAttributions=Wm.prototype.ya,Wm.prototype.getLogo=Wm.prototype.xa,Wm.prototype.getProjection=Wm.prototype.za,Wm.prototype.refresh=Wm.prototype.sa,Wm.prototype.setAttributions=Wm.prototype.ua,Wm.prototype.getKeys=Wm.prototype.O,Wm.prototype.getProperties=Wm.prototype.N,Wm.prototype.setProperties=Wm.prototype.H,Wm.prototype.unset=Wm.prototype.P,Wm.prototype.changed=Wm.prototype.s,Wm.prototype.dispatchEvent=Wm.prototype.b,Wm.prototype.getRevision=Wm.prototype.L,Wm.prototype.on=Wm.prototype.J,Wm.prototype.un=Wm.prototype.K,Ym.prototype.setRenderReprojectionEdges=Ym.prototype.Pb,Ym.prototype.setTileGridForProjection=Ym.prototype.Qb,Ym.prototype.getTileLoadFunction=Ym.prototype.pb,Ym.prototype.getTileUrlFunction=Ym.prototype.qb,Ym.prototype.getUrls=Ym.prototype.rb,Ym.prototype.setTileLoadFunction=Ym.prototype.vb,Ym.prototype.setTileUrlFunction=Ym.prototype.cb,Ym.prototype.setUrl=Ym.prototype.jb,Ym.prototype.setUrls=Ym.prototype.eb,Ym.prototype.getTileGrid=Ym.prototype.ab,Ym.prototype.refresh=Ym.prototype.sa,Ym.prototype.getAttributions=Ym.prototype.ya,Ym.prototype.getLogo=Ym.prototype.xa,Ym.prototype.getProjection=Ym.prototype.za,Ym.prototype.setAttributions=Ym.prototype.ua,Ym.prototype.getKeys=Ym.prototype.O,Ym.prototype.getProperties=Ym.prototype.N,Ym.prototype.setProperties=Ym.prototype.H,Ym.prototype.unset=Ym.prototype.P,Ym.prototype.changed=Ym.prototype.s,Ym.prototype.dispatchEvent=Ym.prototype.b,Ym.prototype.getRevision=Ym.prototype.L,Ym.prototype.on=Ym.prototype.J,Ym.prototype.un=Ym.prototype.K,Qm.prototype.getAttributions=Qm.prototype.ya,Qm.prototype.getLogo=Qm.prototype.xa,Qm.prototype.getProjection=Qm.prototype.za,Qm.prototype.refresh=Qm.prototype.sa,Qm.prototype.setAttributions=Qm.prototype.ua,Qm.prototype.getKeys=Qm.prototype.O,Qm.prototype.getProperties=Qm.prototype.N,Qm.prototype.setProperties=Qm.prototype.H,Qm.prototype.unset=Qm.prototype.P,Qm.prototype.changed=Qm.prototype.s,Qm.prototype.dispatchEvent=Qm.prototype.b,Qm.prototype.getRevision=Qm.prototype.L,Qm.prototype.on=Qm.prototype.J,Qm.prototype.un=Qm.prototype.K,r1.prototype.setRenderReprojectionEdges=r1.prototype.Pb,r1.prototype.setTileGridForProjection=r1.prototype.Qb,r1.prototype.getTileLoadFunction=r1.prototype.pb,r1.prototype.getTileUrlFunction=r1.prototype.qb,r1.prototype.getUrls=r1.prototype.rb,r1.prototype.setTileLoadFunction=r1.prototype.vb,r1.prototype.setTileUrlFunction=r1.prototype.cb,r1.prototype.setUrl=r1.prototype.jb,r1.prototype.setUrls=r1.prototype.eb,r1.prototype.getTileGrid=r1.prototype.ab,r1.prototype.refresh=r1.prototype.sa,r1.prototype.getAttributions=r1.prototype.ya,r1.prototype.getLogo=r1.prototype.xa,r1.prototype.getProjection=r1.prototype.za,r1.prototype.setAttributions=r1.prototype.ua,r1.prototype.getKeys=r1.prototype.O,r1.prototype.getProperties=r1.prototype.N,r1.prototype.setProperties=r1.prototype.H,r1.prototype.unset=r1.prototype.P,r1.prototype.changed=r1.prototype.s,r1.prototype.dispatchEvent=r1.prototype.b,r1.prototype.getRevision=r1.prototype.L,r1.prototype.on=r1.prototype.J,r1.prototype.un=r1.prototype.K,R.prototype.setRenderReprojectionEdges=R.prototype.Pb,R.prototype.setTileGridForProjection=R.prototype.Qb,R.prototype.getTileLoadFunction=R.prototype.pb,R.prototype.getTileUrlFunction=R.prototype.qb,R.prototype.getUrls=R.prototype.rb,R.prototype.setTileLoadFunction=R.prototype.vb,R.prototype.setTileUrlFunction=R.prototype.cb,R.prototype.setUrl=R.prototype.jb,R.prototype.setUrls=R.prototype.eb,R.prototype.getTileGrid=R.prototype.ab,R.prototype.refresh=R.prototype.sa,R.prototype.getAttributions=R.prototype.ya,R.prototype.getLogo=R.prototype.xa,R.prototype.getProjection=R.prototype.za,R.prototype.setAttributions=R.prototype.ua,R.prototype.getKeys=R.prototype.O,R.prototype.getProperties=R.prototype.N,R.prototype.setProperties=R.prototype.H,R.prototype.unset=R.prototype.P,R.prototype.changed=R.prototype.s,R.prototype.dispatchEvent=R.prototype.b,R.prototype.getRevision=R.prototype.L,R.prototype.on=R.prototype.J,R.prototype.un=R.prototype.K,h1.prototype.getTileGrid=h1.prototype.ab,h1.prototype.refresh=h1.prototype.sa,h1.prototype.getAttributions=h1.prototype.ya,h1.prototype.getLogo=h1.prototype.xa,h1.prototype.getProjection=h1.prototype.za,h1.prototype.setAttributions=h1.prototype.ua,h1.prototype.getKeys=h1.prototype.O,h1.prototype.getProperties=h1.prototype.N,h1.prototype.setProperties=h1.prototype.H,h1.prototype.unset=h1.prototype.P,h1.prototype.changed=h1.prototype.s,h1.prototype.dispatchEvent=h1.prototype.b,h1.prototype.getRevision=h1.prototype.L,h1.prototype.on=h1.prototype.J,h1.prototype.un=h1.prototype.K,u1.prototype.setRenderReprojectionEdges=u1.prototype.Pb,u1.prototype.setTileGridForProjection=u1.prototype.Qb,u1.prototype.getTileLoadFunction=u1.prototype.pb,u1.prototype.getTileUrlFunction=u1.prototype.qb,u1.prototype.getUrls=u1.prototype.rb,u1.prototype.setTileLoadFunction=u1.prototype.vb,u1.prototype.setTileUrlFunction=u1.prototype.cb,u1.prototype.setUrl=u1.prototype.jb,u1.prototype.setUrls=u1.prototype.eb,u1.prototype.getTileGrid=u1.prototype.ab,u1.prototype.refresh=u1.prototype.sa,u1.prototype.getAttributions=u1.prototype.ya,u1.prototype.getLogo=u1.prototype.xa,u1.prototype.getProjection=u1.prototype.za,u1.prototype.setAttributions=u1.prototype.ua,u1.prototype.getKeys=u1.prototype.O,u1.prototype.getProperties=u1.prototype.N,u1.prototype.setProperties=u1.prototype.H,u1.prototype.unset=u1.prototype.P,u1.prototype.changed=u1.prototype.s,u1.prototype.dispatchEvent=u1.prototype.b,u1.prototype.getRevision=u1.prototype.L,u1.prototype.on=u1.prototype.J,u1.prototype.un=u1.prototype.K,c1.prototype.getTileGrid=c1.prototype.ab,c1.prototype.refresh=c1.prototype.sa,c1.prototype.getAttributions=c1.prototype.ya,c1.prototype.getLogo=c1.prototype.xa,c1.prototype.getProjection=c1.prototype.za,c1.prototype.setAttributions=c1.prototype.ua,c1.prototype.getKeys=c1.prototype.O,c1.prototype.getProperties=c1.prototype.N,c1.prototype.setProperties=c1.prototype.H,c1.prototype.unset=c1.prototype.P,c1.prototype.changed=c1.prototype.s,c1.prototype.dispatchEvent=c1.prototype.b,c1.prototype.getRevision=c1.prototype.L,c1.prototype.on=c1.prototype.J,c1.prototype.un=c1.prototype.K,I.prototype.setRenderReprojectionEdges=I.prototype.Pb,I.prototype.setTileGridForProjection=I.prototype.Qb,I.prototype.getTileLoadFunction=I.prototype.pb,I.prototype.getTileUrlFunction=I.prototype.qb,I.prototype.getUrls=I.prototype.rb,I.prototype.setTileLoadFunction=I.prototype.vb,I.prototype.setTileUrlFunction=I.prototype.cb,I.prototype.setUrl=I.prototype.jb,I.prototype.setUrls=I.prototype.eb,I.prototype.getTileGrid=I.prototype.ab,I.prototype.refresh=I.prototype.sa,I.prototype.getAttributions=I.prototype.ya,I.prototype.getLogo=I.prototype.xa,I.prototype.getProjection=I.prototype.za,I.prototype.setAttributions=I.prototype.ua,I.prototype.getKeys=I.prototype.O,I.prototype.getProperties=I.prototype.N,I.prototype.setProperties=I.prototype.H,I.prototype.unset=I.prototype.P,I.prototype.changed=I.prototype.s,I.prototype.dispatchEvent=I.prototype.b,I.prototype.getRevision=I.prototype.L,I.prototype.on=I.prototype.J,I.prototype.un=I.prototype.K,S1.prototype.getTileLoadFunction=S1.prototype.pb,S1.prototype.getTileUrlFunction=S1.prototype.qb,S1.prototype.getUrls=S1.prototype.rb,S1.prototype.setTileLoadFunction=S1.prototype.vb,S1.prototype.setTileUrlFunction=S1.prototype.cb,S1.prototype.setUrl=S1.prototype.jb,S1.prototype.setUrls=S1.prototype.eb,S1.prototype.getTileGrid=S1.prototype.ab,S1.prototype.refresh=S1.prototype.sa,S1.prototype.getAttributions=S1.prototype.ya,S1.prototype.getLogo=S1.prototype.xa,S1.prototype.getProjection=S1.prototype.za,S1.prototype.setAttributions=S1.prototype.ua,S1.prototype.getKeys=S1.prototype.O,S1.prototype.getProperties=S1.prototype.N,S1.prototype.setProperties=S1.prototype.H,S1.prototype.unset=S1.prototype.P,S1.prototype.changed=S1.prototype.s,S1.prototype.dispatchEvent=S1.prototype.b,S1.prototype.getRevision=S1.prototype.L,S1.prototype.on=S1.prototype.J,S1.prototype.un=S1.prototype.K,N.prototype.setRenderReprojectionEdges=N.prototype.Pb,N.prototype.setTileGridForProjection=N.prototype.Qb,N.prototype.getTileLoadFunction=N.prototype.pb,N.prototype.getTileUrlFunction=N.prototype.qb,N.prototype.getUrls=N.prototype.rb,N.prototype.setTileLoadFunction=N.prototype.vb,N.prototype.setTileUrlFunction=N.prototype.cb,N.prototype.setUrl=N.prototype.jb,N.prototype.setUrls=N.prototype.eb,N.prototype.getTileGrid=N.prototype.ab,N.prototype.refresh=N.prototype.sa,N.prototype.getAttributions=N.prototype.ya,N.prototype.getLogo=N.prototype.xa,N.prototype.getProjection=N.prototype.za,N.prototype.setAttributions=N.prototype.ua,N.prototype.getKeys=N.prototype.O,N.prototype.getProperties=N.prototype.N,N.prototype.setProperties=N.prototype.H,N.prototype.unset=N.prototype.P,N.prototype.changed=N.prototype.s,N.prototype.dispatchEvent=N.prototype.b,N.prototype.getRevision=N.prototype.L,N.prototype.on=N.prototype.J,N.prototype.un=N.prototype.K,E1.prototype.setRenderReprojectionEdges=E1.prototype.Pb,E1.prototype.setTileGridForProjection=E1.prototype.Qb,E1.prototype.getTileLoadFunction=E1.prototype.pb,E1.prototype.getTileUrlFunction=E1.prototype.qb,E1.prototype.getUrls=E1.prototype.rb,E1.prototype.setTileLoadFunction=E1.prototype.vb,E1.prototype.setTileUrlFunction=E1.prototype.cb,E1.prototype.setUrl=E1.prototype.jb,E1.prototype.setUrls=E1.prototype.eb,E1.prototype.getTileGrid=E1.prototype.ab,E1.prototype.refresh=E1.prototype.sa,E1.prototype.getAttributions=E1.prototype.ya,E1.prototype.getLogo=E1.prototype.xa,E1.prototype.getProjection=E1.prototype.za,E1.prototype.setAttributions=E1.prototype.ua,E1.prototype.getKeys=E1.prototype.O,E1.prototype.getProperties=E1.prototype.N,E1.prototype.setProperties=E1.prototype.H,E1.prototype.unset=E1.prototype.P,E1.prototype.changed=E1.prototype.s,E1.prototype.dispatchEvent=E1.prototype.b,E1.prototype.getRevision=E1.prototype.L,E1.prototype.on=E1.prototype.J,E1.prototype.un=E1.prototype.K,bm.prototype.getTileCoord=bm.prototype.f,tv.prototype.changed=tv.prototype.s,tv.prototype.dispatchEvent=tv.prototype.b,tv.prototype.getRevision=tv.prototype.L,tv.prototype.on=tv.prototype.J,tv.prototype.un=tv.prototype.K,Sv.prototype.changed=Sv.prototype.s,Sv.prototype.dispatchEvent=Sv.prototype.b,Sv.prototype.getRevision=Sv.prototype.L,Sv.prototype.on=Sv.prototype.J,Sv.prototype.un=Sv.prototype.K,rm.prototype.changed=rm.prototype.s,rm.prototype.dispatchEvent=rm.prototype.b,rm.prototype.getRevision=rm.prototype.L,rm.prototype.on=rm.prototype.J,rm.prototype.un=rm.prototype.K,fm.prototype.changed=fm.prototype.s,fm.prototype.dispatchEvent=fm.prototype.b,fm.prototype.getRevision=fm.prototype.L,fm.prototype.on=fm.prototype.J,fm.prototype.un=fm.prototype.K,Pv.prototype.changed=Pv.prototype.s,Pv.prototype.dispatchEvent=Pv.prototype.b,Pv.prototype.getRevision=Pv.prototype.L,Pv.prototype.on=Pv.prototype.J,Pv.prototype.un=Pv.prototype.K,pv.prototype.changed=pv.prototype.s,pv.prototype.dispatchEvent=pv.prototype.b,pv.prototype.getRevision=pv.prototype.L,pv.prototype.on=pv.prototype.J,pv.prototype.un=pv.prototype.K,Xb.prototype.changed=Xb.prototype.s,Xb.prototype.dispatchEvent=Xb.prototype.b,Xb.prototype.getRevision=Xb.prototype.L,Xb.prototype.on=Xb.prototype.J,Xb.prototype.un=Xb.prototype.K,Vb.prototype.changed=Vb.prototype.s,Vb.prototype.dispatchEvent=Vb.prototype.b,Vb.prototype.getRevision=Vb.prototype.L,Vb.prototype.on=Vb.prototype.J,Vb.prototype.un=Vb.prototype.K,sm.prototype.changed=sm.prototype.s,sm.prototype.dispatchEvent=sm.prototype.b,sm.prototype.getRevision=sm.prototype.L,sm.prototype.on=sm.prototype.J,sm.prototype.un=sm.prototype.K,dv.prototype.changed=dv.prototype.s,dv.prototype.dispatchEvent=dv.prototype.b,dv.prototype.getRevision=dv.prototype.L,dv.prototype.on=dv.prototype.J,dv.prototype.un=dv.prototype.K,ym.prototype.changed=ym.prototype.s,ym.prototype.dispatchEvent=ym.prototype.b,ym.prototype.getRevision=ym.prototype.L,ym.prototype.on=ym.prototype.J,ym.prototype.un=ym.prototype.K,ls.prototype.getKeys=ls.prototype.O,ls.prototype.getProperties=ls.prototype.N,ls.prototype.setProperties=ls.prototype.H,ls.prototype.unset=ls.prototype.P,ls.prototype.changed=ls.prototype.s,ls.prototype.dispatchEvent=ls.prototype.b,ls.prototype.getRevision=ls.prototype.L,ls.prototype.on=ls.prototype.J,ls.prototype.un=ls.prototype.K,cs.prototype.getExtent=cs.prototype.G,cs.prototype.getMaxResolution=cs.prototype.fc,cs.prototype.getMinResolution=cs.prototype.gc,cs.prototype.getOpacity=cs.prototype.hc,cs.prototype.getVisible=cs.prototype.Mb,cs.prototype.getZIndex=cs.prototype.Ba,cs.prototype.setExtent=cs.prototype.vc,cs.prototype.setMaxResolution=cs.prototype.Ac,cs.prototype.setMinResolution=cs.prototype.Bc,cs.prototype.setOpacity=cs.prototype.wc,cs.prototype.setVisible=cs.prototype.xc,cs.prototype.setZIndex=cs.prototype.Vb,cs.prototype.getKeys=cs.prototype.O,cs.prototype.getProperties=cs.prototype.N,cs.prototype.setProperties=cs.prototype.H,cs.prototype.unset=cs.prototype.P,cs.prototype.changed=cs.prototype.s,cs.prototype.dispatchEvent=cs.prototype.b,cs.prototype.getRevision=cs.prototype.L,cs.prototype.on=cs.prototype.J,cs.prototype.un=cs.prototype.K,ys.prototype.getExtent=ys.prototype.G,ys.prototype.getMaxResolution=ys.prototype.fc,ys.prototype.getMinResolution=ys.prototype.gc,ys.prototype.getOpacity=ys.prototype.hc,ys.prototype.getVisible=ys.prototype.Mb,ys.prototype.getZIndex=ys.prototype.Ba,ys.prototype.setExtent=ys.prototype.vc,ys.prototype.setMaxResolution=ys.prototype.Ac,ys.prototype.setMinResolution=ys.prototype.Bc,ys.prototype.setOpacity=ys.prototype.wc,ys.prototype.setVisible=ys.prototype.xc,ys.prototype.setZIndex=ys.prototype.Vb,ys.prototype.getKeys=ys.prototype.O,ys.prototype.getProperties=ys.prototype.N,ys.prototype.setProperties=ys.prototype.H,ys.prototype.unset=ys.prototype.P,ys.prototype.changed=ys.prototype.s,ys.prototype.dispatchEvent=ys.prototype.b,ys.prototype.getRevision=ys.prototype.L,ys.prototype.on=ys.prototype.J,ys.prototype.un=ys.prototype.K,s.prototype.setSource=s.prototype.Wc,s.prototype.getExtent=s.prototype.G,s.prototype.getMaxResolution=s.prototype.fc,s.prototype.getMinResolution=s.prototype.gc,s.prototype.getOpacity=s.prototype.hc,s.prototype.getVisible=s.prototype.Mb,s.prototype.getZIndex=s.prototype.Ba,s.prototype.setExtent=s.prototype.vc,s.prototype.setMaxResolution=s.prototype.Ac,s.prototype.setMinResolution=s.prototype.Bc,s.prototype.setOpacity=s.prototype.wc,s.prototype.setVisible=s.prototype.xc,s.prototype.setZIndex=s.prototype.Vb,s.prototype.getKeys=s.prototype.O,s.prototype.getProperties=s.prototype.N,s.prototype.setProperties=s.prototype.H,s.prototype.unset=s.prototype.P,s.prototype.changed=s.prototype.s,s.prototype.dispatchEvent=s.prototype.b,s.prototype.getRevision=s.prototype.L,s.prototype.on=s.prototype.J,s.prototype.un=s.prototype.K,p.prototype.getSource=p.prototype.ha,p.prototype.getStyle=p.prototype.D,p.prototype.getStyleFunction=p.prototype.C,p.prototype.setStyle=p.prototype.g,p.prototype.setSource=p.prototype.Wc,p.prototype.getExtent=p.prototype.G,p.prototype.getMaxResolution=p.prototype.fc,p.prototype.getMinResolution=p.prototype.gc,p.prototype.getOpacity=p.prototype.hc,p.prototype.getVisible=p.prototype.Mb,p.prototype.getZIndex=p.prototype.Ba,p.prototype.setExtent=p.prototype.vc,p.prototype.setMaxResolution=p.prototype.Ac,p.prototype.setMinResolution=p.prototype.Bc,p.prototype.setOpacity=p.prototype.wc,p.prototype.setVisible=p.prototype.xc,p.prototype.setZIndex=p.prototype.Vb,p.prototype.getKeys=p.prototype.O,p.prototype.getProperties=p.prototype.N,p.prototype.setProperties=p.prototype.H,p.prototype.unset=p.prototype.P,p.prototype.changed=p.prototype.s,p.prototype.dispatchEvent=p.prototype.b,p.prototype.getRevision=p.prototype.L,p.prototype.on=p.prototype.J,p.prototype.un=p.prototype.K,nm.prototype.setSource=nm.prototype.Wc,nm.prototype.getExtent=nm.prototype.G,nm.prototype.getMaxResolution=nm.prototype.fc,nm.prototype.getMinResolution=nm.prototype.gc,nm.prototype.getOpacity=nm.prototype.hc,nm.prototype.getVisible=nm.prototype.Mb,nm.prototype.getZIndex=nm.prototype.Ba,nm.prototype.setExtent=nm.prototype.vc,nm.prototype.setMaxResolution=nm.prototype.Ac,nm.prototype.setMinResolution=nm.prototype.Bc,nm.prototype.setOpacity=nm.prototype.wc,nm.prototype.setVisible=nm.prototype.xc,nm.prototype.setZIndex=nm.prototype.Vb,nm.prototype.getKeys=nm.prototype.O,nm.prototype.getProperties=nm.prototype.N,nm.prototype.setProperties=nm.prototype.H,nm.prototype.unset=nm.prototype.P,nm.prototype.changed=nm.prototype.s,nm.prototype.dispatchEvent=nm.prototype.b,nm.prototype.getRevision=nm.prototype.L,nm.prototype.on=nm.prototype.J,nm.prototype.un=nm.prototype.K,A.prototype.setSource=A.prototype.Wc,A.prototype.getExtent=A.prototype.G,A.prototype.getMaxResolution=A.prototype.fc,A.prototype.getMinResolution=A.prototype.gc,A.prototype.getOpacity=A.prototype.hc,A.prototype.getVisible=A.prototype.Mb,A.prototype.getZIndex=A.prototype.Ba,A.prototype.setExtent=A.prototype.vc,A.prototype.setMaxResolution=A.prototype.Ac,A.prototype.setMinResolution=A.prototype.Bc,A.prototype.setOpacity=A.prototype.wc,A.prototype.setVisible=A.prototype.xc,A.prototype.setZIndex=A.prototype.Vb,A.prototype.getKeys=A.prototype.O,A.prototype.getProperties=A.prototype.N,A.prototype.setProperties=A.prototype.H,A.prototype.unset=A.prototype.P,A.prototype.changed=A.prototype.s,A.prototype.dispatchEvent=A.prototype.b,A.prototype.getRevision=A.prototype.L,A.prototype.on=A.prototype.J,A.prototype.un=A.prototype.K,E.prototype.getSource=E.prototype.ha,E.prototype.getStyle=E.prototype.D,E.prototype.getStyleFunction=E.prototype.C,E.prototype.setStyle=E.prototype.g,E.prototype.setSource=E.prototype.Wc,E.prototype.getExtent=E.prototype.G,E.prototype.getMaxResolution=E.prototype.fc,E.prototype.getMinResolution=E.prototype.gc,E.prototype.getOpacity=E.prototype.hc,E.prototype.getVisible=E.prototype.Mb,E.prototype.getZIndex=E.prototype.Ba,E.prototype.setExtent=E.prototype.vc,E.prototype.setMaxResolution=E.prototype.Ac,E.prototype.setMinResolution=E.prototype.Bc,E.prototype.setOpacity=E.prototype.wc,E.prototype.setVisible=E.prototype.xc,E.prototype.setZIndex=E.prototype.Vb,E.prototype.getKeys=E.prototype.O,E.prototype.getProperties=E.prototype.N,E.prototype.setProperties=E.prototype.H,E.prototype.unset=E.prototype.P,E.prototype.changed=E.prototype.s,E.prototype.dispatchEvent=E.prototype.b,E.prototype.getRevision=E.prototype.L,E.prototype.on=E.prototype.J,E.prototype.un=E.prototype.K,pn.prototype.getKeys=pn.prototype.O,pn.prototype.getProperties=pn.prototype.N,pn.prototype.setProperties=pn.prototype.H,pn.prototype.unset=pn.prototype.P,pn.prototype.changed=pn.prototype.s,pn.prototype.dispatchEvent=pn.prototype.b,pn.prototype.getRevision=pn.prototype.L,pn.prototype.on=pn.prototype.J,pn.prototype.un=pn.prototype.K,cn.prototype.getActive=cn.prototype.c,cn.prototype.getMap=cn.prototype.f,cn.prototype.setActive=cn.prototype.Ha,cn.prototype.getKeys=cn.prototype.O,cn.prototype.getProperties=cn.prototype.N,cn.prototype.setProperties=cn.prototype.H,cn.prototype.unset=cn.prototype.P,cn.prototype.changed=cn.prototype.s,cn.prototype.dispatchEvent=cn.prototype.b,cn.prototype.getRevision=cn.prototype.L,cn.prototype.on=cn.prototype.J,cn.prototype.un=cn.prototype.K,M0.prototype.getActive=M0.prototype.c,M0.prototype.getMap=M0.prototype.f,M0.prototype.setActive=M0.prototype.Ha,M0.prototype.getKeys=M0.prototype.O,M0.prototype.getProperties=M0.prototype.N,M0.prototype.setProperties=M0.prototype.H,M0.prototype.unset=M0.prototype.P,M0.prototype.changed=M0.prototype.s,M0.prototype.dispatchEvent=M0.prototype.b,M0.prototype.getRevision=M0.prototype.L,M0.prototype.on=M0.prototype.J,M0.prototype.un=M0.prototype.K,Mn.prototype.getActive=Mn.prototype.c,Mn.prototype.getMap=Mn.prototype.f,Mn.prototype.setActive=Mn.prototype.Ha,Mn.prototype.getKeys=Mn.prototype.O,Mn.prototype.getProperties=Mn.prototype.N,Mn.prototype.setProperties=Mn.prototype.H,Mn.prototype.unset=Mn.prototype.P,Mn.prototype.changed=Mn.prototype.s,Mn.prototype.dispatchEvent=Mn.prototype.b,Mn.prototype.getRevision=Mn.prototype.L,Mn.prototype.on=Mn.prototype.J,Mn.prototype.un=Mn.prototype.K,On.prototype.getActive=On.prototype.c,On.prototype.getMap=On.prototype.f,On.prototype.setActive=On.prototype.Ha,On.prototype.getKeys=On.prototype.O,On.prototype.getProperties=On.prototype.N,On.prototype.setProperties=On.prototype.H,On.prototype.unset=On.prototype.P,On.prototype.changed=On.prototype.s,On.prototype.dispatchEvent=On.prototype.b,On.prototype.getRevision=On.prototype.L,On.prototype.on=On.prototype.J,On.prototype.un=On.prototype.K,En.prototype.getActive=En.prototype.c,En.prototype.getMap=En.prototype.f,En.prototype.setActive=En.prototype.Ha,En.prototype.getKeys=En.prototype.O,En.prototype.getProperties=En.prototype.N,En.prototype.setProperties=En.prototype.H,En.prototype.unset=En.prototype.P,En.prototype.changed=En.prototype.s,En.prototype.dispatchEvent=En.prototype.b,En.prototype.getRevision=En.prototype.L,En.prototype.on=En.prototype.J,En.prototype.un=En.prototype.K,Ln.prototype.getActive=Ln.prototype.c,Ln.prototype.getMap=Ln.prototype.f,Ln.prototype.setActive=Ln.prototype.Ha,Ln.prototype.getKeys=Ln.prototype.O,Ln.prototype.getProperties=Ln.prototype.N,Ln.prototype.setProperties=Ln.prototype.H,Ln.prototype.unset=Ln.prototype.P,Ln.prototype.changed=Ln.prototype.s,Ln.prototype.dispatchEvent=Ln.prototype.b,Ln.prototype.getRevision=Ln.prototype.L,Ln.prototype.on=Ln.prototype.J,Ln.prototype.un=Ln.prototype.K,L0.prototype.getActive=L0.prototype.c,L0.prototype.getMap=L0.prototype.f,L0.prototype.setActive=L0.prototype.Ha,L0.prototype.getKeys=L0.prototype.O,L0.prototype.getProperties=L0.prototype.N,L0.prototype.setProperties=L0.prototype.H,L0.prototype.unset=L0.prototype.P,L0.prototype.changed=L0.prototype.s,L0.prototype.dispatchEvent=L0.prototype.b,L0.prototype.getRevision=L0.prototype.L,L0.prototype.on=L0.prototype.J,L0.prototype.un=L0.prototype.K,zn.prototype.getGeometry=zn.prototype.V,zn.prototype.getActive=zn.prototype.c,zn.prototype.getMap=zn.prototype.f,zn.prototype.setActive=zn.prototype.Ha,zn.prototype.getKeys=zn.prototype.O,zn.prototype.getProperties=zn.prototype.N,zn.prototype.setProperties=zn.prototype.H,zn.prototype.unset=zn.prototype.P,zn.prototype.changed=zn.prototype.s,zn.prototype.dispatchEvent=zn.prototype.b,zn.prototype.getRevision=zn.prototype.L,zn.prototype.on=zn.prototype.J,zn.prototype.un=zn.prototype.K,kv.prototype.getActive=kv.prototype.c,kv.prototype.getMap=kv.prototype.f,kv.prototype.setActive=kv.prototype.Ha,kv.prototype.getKeys=kv.prototype.O,kv.prototype.getProperties=kv.prototype.N,kv.prototype.setProperties=kv.prototype.H,kv.prototype.unset=kv.prototype.P,kv.prototype.changed=kv.prototype.s,kv.prototype.dispatchEvent=kv.prototype.b,kv.prototype.getRevision=kv.prototype.L,kv.prototype.on=kv.prototype.J,kv.prototype.un=kv.prototype.K,Jv.prototype.getActive=Jv.prototype.c,Jv.prototype.getMap=Jv.prototype.f,Jv.prototype.setActive=Jv.prototype.Ha,Jv.prototype.getKeys=Jv.prototype.O,Jv.prototype.getProperties=Jv.prototype.N,Jv.prototype.setProperties=Jv.prototype.H,Jv.prototype.unset=Jv.prototype.P,Jv.prototype.changed=Jv.prototype.s,Jv.prototype.dispatchEvent=Jv.prototype.b,Jv.prototype.getRevision=Jv.prototype.L,Jv.prototype.on=Jv.prototype.J,Jv.prototype.un=Jv.prototype.K,Yn.prototype.getActive=Yn.prototype.c,Yn.prototype.getMap=Yn.prototype.f,Yn.prototype.setActive=Yn.prototype.Ha,Yn.prototype.getKeys=Yn.prototype.O,Yn.prototype.getProperties=Yn.prototype.N,Yn.prototype.setProperties=Yn.prototype.H,Yn.prototype.unset=Yn.prototype.P,Yn.prototype.changed=Yn.prototype.s,Yn.prototype.dispatchEvent=Yn.prototype.b,Yn.prototype.getRevision=Yn.prototype.L,Yn.prototype.on=Yn.prototype.J,Yn.prototype.un=Yn.prototype.K,qn.prototype.getActive=qn.prototype.c,qn.prototype.getMap=qn.prototype.f,qn.prototype.setActive=qn.prototype.Ha,qn.prototype.getKeys=qn.prototype.O,qn.prototype.getProperties=qn.prototype.N,qn.prototype.setProperties=qn.prototype.H,qn.prototype.unset=qn.prototype.P,qn.prototype.changed=qn.prototype.s,qn.prototype.dispatchEvent=qn.prototype.b,qn.prototype.getRevision=qn.prototype.L,qn.prototype.on=qn.prototype.J,qn.prototype.un=qn.prototype.K,ab.prototype.getActive=ab.prototype.c,ab.prototype.getMap=ab.prototype.f,ab.prototype.setActive=ab.prototype.Ha,ab.prototype.getKeys=ab.prototype.O,ab.prototype.getProperties=ab.prototype.N,ab.prototype.setProperties=ab.prototype.H,ab.prototype.unset=ab.prototype.P,ab.prototype.changed=ab.prototype.s,ab.prototype.dispatchEvent=ab.prototype.b,ab.prototype.getRevision=ab.prototype.L,ab.prototype.on=ab.prototype.J,ab.prototype.un=ab.prototype.K,_n.prototype.getActive=_n.prototype.c,_n.prototype.getMap=_n.prototype.f,_n.prototype.setActive=_n.prototype.Ha,_n.prototype.getKeys=_n.prototype.O,_n.prototype.getProperties=_n.prototype.N,_n.prototype.setProperties=_n.prototype.H,_n.prototype.unset=_n.prototype.P,_n.prototype.changed=_n.prototype.s,_n.prototype.dispatchEvent=_n.prototype.b,_n.prototype.getRevision=_n.prototype.L,_n.prototype.on=_n.prototype.J,_n.prototype.un=_n.prototype.K,es.prototype.getActive=es.prototype.c,es.prototype.getMap=es.prototype.f,es.prototype.setActive=es.prototype.Ha,es.prototype.getKeys=es.prototype.O,es.prototype.getProperties=es.prototype.N,es.prototype.setProperties=es.prototype.H,es.prototype.unset=es.prototype.P,es.prototype.changed=es.prototype.s,es.prototype.dispatchEvent=es.prototype.b,es.prototype.getRevision=es.prototype.L,es.prototype.on=es.prototype.J,es.prototype.un=es.prototype.K,ns.prototype.getActive=ns.prototype.c,ns.prototype.getMap=ns.prototype.f,ns.prototype.setActive=ns.prototype.Ha,ns.prototype.getKeys=ns.prototype.O,ns.prototype.getProperties=ns.prototype.N,ns.prototype.setProperties=ns.prototype.H,ns.prototype.unset=ns.prototype.P,ns.prototype.changed=ns.prototype.s,ns.prototype.dispatchEvent=ns.prototype.b,ns.prototype.getRevision=ns.prototype.L,ns.prototype.on=ns.prototype.J,ns.prototype.un=ns.prototype.K,xb.prototype.getActive=xb.prototype.c,xb.prototype.getMap=xb.prototype.f,xb.prototype.setActive=xb.prototype.Ha,xb.prototype.getKeys=xb.prototype.O,xb.prototype.getProperties=xb.prototype.N,xb.prototype.setProperties=xb.prototype.H,xb.prototype.unset=xb.prototype.P,xb.prototype.changed=xb.prototype.s,xb.prototype.dispatchEvent=xb.prototype.b,xb.prototype.getRevision=xb.prototype.L,xb.prototype.on=xb.prototype.J,xb.prototype.un=xb.prototype.K,Ab.prototype.getActive=Ab.prototype.c,Ab.prototype.getMap=Ab.prototype.f,Ab.prototype.setActive=Ab.prototype.Ha,Ab.prototype.getKeys=Ab.prototype.O,Ab.prototype.getProperties=Ab.prototype.N,Ab.prototype.setProperties=Ab.prototype.H,Ab.prototype.unset=Ab.prototype.P,Ab.prototype.changed=Ab.prototype.s,Ab.prototype.dispatchEvent=Ab.prototype.b,Ab.prototype.getRevision=Ab.prototype.L,Ab.prototype.on=Ab.prototype.J,Ab.prototype.un=Ab.prototype.K,Cb.prototype.getActive=Cb.prototype.c,Cb.prototype.getMap=Cb.prototype.f,Cb.prototype.setActive=Cb.prototype.Ha,Cb.prototype.getKeys=Cb.prototype.O,Cb.prototype.getProperties=Cb.prototype.N,Cb.prototype.setProperties=Cb.prototype.H,Cb.prototype.unset=Cb.prototype.P,Cb.prototype.changed=Cb.prototype.s,Cb.prototype.dispatchEvent=Cb.prototype.b,Cb.prototype.getRevision=Cb.prototype.L,Cb.prototype.on=Cb.prototype.J,Cb.prototype.un=Cb.prototype.K,yr.prototype.getKeys=yr.prototype.O,yr.prototype.getProperties=yr.prototype.N,yr.prototype.setProperties=yr.prototype.H,yr.prototype.unset=yr.prototype.P,yr.prototype.changed=yr.prototype.s,yr.prototype.dispatchEvent=yr.prototype.b,yr.prototype.getRevision=yr.prototype.L,yr.prototype.on=yr.prototype.J,yr.prototype.un=yr.prototype.K,b.prototype.getClosestPoint=b.prototype.Ab,b.prototype.intersectsCoordinate=b.prototype.sb,b.prototype.getExtent=b.prototype.G,b.prototype.simplify=b.prototype.Rb,b.prototype.transform=b.prototype.tb,b.prototype.getKeys=b.prototype.O,b.prototype.getProperties=b.prototype.N,b.prototype.setProperties=b.prototype.H,b.prototype.unset=b.prototype.P,b.prototype.changed=b.prototype.s,b.prototype.dispatchEvent=b.prototype.b,b.prototype.getRevision=b.prototype.L,b.prototype.on=b.prototype.J,b.prototype.un=b.prototype.K,s0.prototype.getFirstCoordinate=s0.prototype.ac,s0.prototype.getLastCoordinate=s0.prototype.bc,s0.prototype.getLayout=s0.prototype.cc,s0.prototype.getClosestPoint=s0.prototype.Ab,s0.prototype.intersectsCoordinate=s0.prototype.sb,s0.prototype.getExtent=s0.prototype.G,s0.prototype.simplify=s0.prototype.Rb,s0.prototype.getKeys=s0.prototype.O,s0.prototype.getProperties=s0.prototype.N,s0.prototype.setProperties=s0.prototype.H,s0.prototype.unset=s0.prototype.P,s0.prototype.changed=s0.prototype.s,s0.prototype.dispatchEvent=s0.prototype.b,s0.prototype.getRevision=s0.prototype.L,s0.prototype.on=s0.prototype.J,s0.prototype.un=s0.prototype.K,uu.prototype.getClosestPoint=uu.prototype.Ab,uu.prototype.intersectsCoordinate=uu.prototype.sb,uu.prototype.getExtent=uu.prototype.G,uu.prototype.simplify=uu.prototype.Rb,uu.prototype.transform=uu.prototype.tb,uu.prototype.getKeys=uu.prototype.O,uu.prototype.getProperties=uu.prototype.N,uu.prototype.setProperties=uu.prototype.H,uu.prototype.unset=uu.prototype.P,uu.prototype.changed=uu.prototype.s,uu.prototype.dispatchEvent=uu.prototype.b,uu.prototype.getRevision=uu.prototype.L,uu.prototype.on=uu.prototype.J,uu.prototype.un=uu.prototype.K,Fr.prototype.getFirstCoordinate=Fr.prototype.ac,Fr.prototype.getLastCoordinate=Fr.prototype.bc,Fr.prototype.getLayout=Fr.prototype.cc,Fr.prototype.getClosestPoint=Fr.prototype.Ab,Fr.prototype.intersectsCoordinate=Fr.prototype.sb,Fr.prototype.getExtent=Fr.prototype.G,Fr.prototype.simplify=Fr.prototype.Rb,Fr.prototype.transform=Fr.prototype.tb,Fr.prototype.getKeys=Fr.prototype.O,Fr.prototype.getProperties=Fr.prototype.N,Fr.prototype.setProperties=Fr.prototype.H,Fr.prototype.unset=Fr.prototype.P,Fr.prototype.changed=Fr.prototype.s,Fr.prototype.dispatchEvent=Fr.prototype.b,Fr.prototype.getRevision=Fr.prototype.L,Fr.prototype.on=Fr.prototype.J,Fr.prototype.un=Fr.prototype.K,S.prototype.getFirstCoordinate=S.prototype.ac,S.prototype.getLastCoordinate=S.prototype.bc,S.prototype.getLayout=S.prototype.cc,S.prototype.getClosestPoint=S.prototype.Ab,S.prototype.intersectsCoordinate=S.prototype.sb,S.prototype.getExtent=S.prototype.G,S.prototype.simplify=S.prototype.Rb,S.prototype.transform=S.prototype.tb,S.prototype.getKeys=S.prototype.O,S.prototype.getProperties=S.prototype.N,S.prototype.setProperties=S.prototype.H,S.prototype.unset=S.prototype.P,S.prototype.changed=S.prototype.s,S.prototype.dispatchEvent=S.prototype.b,S.prototype.getRevision=S.prototype.L,S.prototype.on=S.prototype.J,S.prototype.un=S.prototype.K,M.prototype.getFirstCoordinate=M.prototype.ac,M.prototype.getLastCoordinate=M.prototype.bc,M.prototype.getLayout=M.prototype.cc,M.prototype.getClosestPoint=M.prototype.Ab,M.prototype.intersectsCoordinate=M.prototype.sb,M.prototype.getExtent=M.prototype.G,M.prototype.simplify=M.prototype.Rb,M.prototype.transform=M.prototype.tb,M.prototype.getKeys=M.prototype.O,M.prototype.getProperties=M.prototype.N,M.prototype.setProperties=M.prototype.H,M.prototype.unset=M.prototype.P,M.prototype.changed=M.prototype.s,M.prototype.dispatchEvent=M.prototype.b,M.prototype.getRevision=M.prototype.L,M.prototype.on=M.prototype.J,M.prototype.un=M.prototype.K,P.prototype.getFirstCoordinate=P.prototype.ac,P.prototype.getLastCoordinate=P.prototype.bc,P.prototype.getLayout=P.prototype.cc,P.prototype.getClosestPoint=P.prototype.Ab,P.prototype.intersectsCoordinate=P.prototype.sb,P.prototype.getExtent=P.prototype.G,P.prototype.simplify=P.prototype.Rb,P.prototype.transform=P.prototype.tb,P.prototype.getKeys=P.prototype.O,P.prototype.getProperties=P.prototype.N,P.prototype.setProperties=P.prototype.H,P.prototype.unset=P.prototype.P,P.prototype.changed=P.prototype.s,P.prototype.dispatchEvent=P.prototype.b,P.prototype.getRevision=P.prototype.L,P.prototype.on=P.prototype.J,P.prototype.un=P.prototype.K,f.prototype.getFirstCoordinate=f.prototype.ac,f.prototype.getLastCoordinate=f.prototype.bc,f.prototype.getLayout=f.prototype.cc,f.prototype.getClosestPoint=f.prototype.Ab,f.prototype.intersectsCoordinate=f.prototype.sb,f.prototype.getExtent=f.prototype.G,f.prototype.simplify=f.prototype.Rb,f.prototype.transform=f.prototype.tb,f.prototype.getKeys=f.prototype.O,f.prototype.getProperties=f.prototype.N,f.prototype.setProperties=f.prototype.H,f.prototype.unset=f.prototype.P,f.prototype.changed=f.prototype.s,f.prototype.dispatchEvent=f.prototype.b,f.prototype.getRevision=f.prototype.L,f.prototype.on=f.prototype.J,f.prototype.un=f.prototype.K,m.prototype.getFirstCoordinate=m.prototype.ac,m.prototype.getLastCoordinate=m.prototype.bc,m.prototype.getLayout=m.prototype.cc,m.prototype.getClosestPoint=m.prototype.Ab,m.prototype.intersectsCoordinate=m.prototype.sb,m.prototype.getExtent=m.prototype.G,m.prototype.simplify=m.prototype.Rb,m.prototype.transform=m.prototype.tb,m.prototype.getKeys=m.prototype.O,m.prototype.getProperties=m.prototype.N,m.prototype.setProperties=m.prototype.H,m.prototype.unset=m.prototype.P,m.prototype.changed=m.prototype.s,m.prototype.dispatchEvent=m.prototype.b,m.prototype.getRevision=m.prototype.L,m.prototype.on=m.prototype.J,m.prototype.un=m.prototype.K,w.prototype.getFirstCoordinate=w.prototype.ac,w.prototype.getLastCoordinate=w.prototype.bc,w.prototype.getLayout=w.prototype.cc,w.prototype.getClosestPoint=w.prototype.Ab,w.prototype.intersectsCoordinate=w.prototype.sb,w.prototype.getExtent=w.prototype.G,w.prototype.simplify=w.prototype.Rb,w.prototype.transform=w.prototype.tb,w.prototype.getKeys=w.prototype.O,w.prototype.getProperties=w.prototype.N,w.prototype.setProperties=w.prototype.H,w.prototype.unset=w.prototype.P,w.prototype.changed=w.prototype.s,w.prototype.dispatchEvent=w.prototype.b,w.prototype.getRevision=w.prototype.L,w.prototype.on=w.prototype.J,w.prototype.un=w.prototype.K,y.prototype.readFeatures=y.prototype.Oa,Zu.prototype.readFeatures=Zu.prototype.Oa,y.prototype.readFeatures=y.prototype.Oa,To.prototype.getKeys=To.prototype.O,To.prototype.getProperties=To.prototype.N,To.prototype.setProperties=To.prototype.H,To.prototype.unset=To.prototype.P,To.prototype.changed=To.prototype.s,To.prototype.dispatchEvent=To.prototype.b,To.prototype.getRevision=To.prototype.L,To.prototype.on=To.prototype.J,To.prototype.un=To.prototype.K,jo.prototype.getMap=jo.prototype.g,jo.prototype.setTarget=jo.prototype.f,jo.prototype.getKeys=jo.prototype.O,jo.prototype.getProperties=jo.prototype.N,jo.prototype.setProperties=jo.prototype.H,jo.prototype.unset=jo.prototype.P,jo.prototype.changed=jo.prototype.s,jo.prototype.dispatchEvent=jo.prototype.b,jo.prototype.getRevision=jo.prototype.L,jo.prototype.on=jo.prototype.J,jo.prototype.un=jo.prototype.K,Go.prototype.getMap=Go.prototype.g,Go.prototype.setTarget=Go.prototype.f,Go.prototype.getKeys=Go.prototype.O,Go.prototype.getProperties=Go.prototype.N,Go.prototype.setProperties=Go.prototype.H,Go.prototype.unset=Go.prototype.P,Go.prototype.changed=Go.prototype.s,Go.prototype.dispatchEvent=Go.prototype.b,Go.prototype.getRevision=Go.prototype.L,Go.prototype.on=Go.prototype.J,Go.prototype.un=Go.prototype.K,Ko.prototype.getMap=Ko.prototype.g,Ko.prototype.setTarget=Ko.prototype.f,Ko.prototype.getKeys=Ko.prototype.O,Ko.prototype.getProperties=Ko.prototype.N,Ko.prototype.setProperties=Ko.prototype.H,Ko.prototype.unset=Ko.prototype.P,Ko.prototype.changed=Ko.prototype.s,Ko.prototype.dispatchEvent=Ko.prototype.b,Ko.prototype.getRevision=Ko.prototype.L,Ko.prototype.on=Ko.prototype.J,Ko.prototype.un=Ko.prototype.K,Sh.prototype.getMap=Sh.prototype.g,Sh.prototype.setTarget=Sh.prototype.f,Sh.prototype.getKeys=Sh.prototype.O,Sh.prototype.getProperties=Sh.prototype.N,Sh.prototype.setProperties=Sh.prototype.H,Sh.prototype.unset=Sh.prototype.P,Sh.prototype.changed=Sh.prototype.s,Sh.prototype.dispatchEvent=Sh.prototype.b,Sh.prototype.getRevision=Sh.prototype.L,Sh.prototype.on=Sh.prototype.J,Sh.prototype.un=Sh.prototype.K,ko.prototype.getMap=ko.prototype.g,ko.prototype.setTarget=ko.prototype.f,ko.prototype.getKeys=ko.prototype.O,ko.prototype.getProperties=ko.prototype.N,ko.prototype.setProperties=ko.prototype.H,ko.prototype.unset=ko.prototype.P,ko.prototype.changed=ko.prototype.s,ko.prototype.dispatchEvent=ko.prototype.b,ko.prototype.getRevision=ko.prototype.L,ko.prototype.on=ko.prototype.J,ko.prototype.un=ko.prototype.K,Th.prototype.getMap=Th.prototype.g,Th.prototype.setTarget=Th.prototype.f,Th.prototype.getKeys=Th.prototype.O,Th.prototype.getProperties=Th.prototype.N,Th.prototype.setProperties=Th.prototype.H,Th.prototype.unset=Th.prototype.P,Th.prototype.changed=Th.prototype.s,Th.prototype.dispatchEvent=Th.prototype.b,Th.prototype.getRevision=Th.prototype.L,Th.prototype.on=Th.prototype.J,Th.prototype.un=Th.prototype.K,Oo.prototype.getMap=Oo.prototype.g,Oo.prototype.setMap,Oo.prototype.setTarget=Oo.prototype.f,Oo.prototype.get,Oo.prototype.getKeys=Oo.prototype.O,Oo.prototype.getProperties=Oo.prototype.N,Oo.prototype.set,Oo.prototype.setProperties=Oo.prototype.H,Oo.prototype.unset=Oo.prototype.P,Oo.prototype.changed=Oo.prototype.s,Oo.prototype.dispatchEvent=Oo.prototype.b,Oo.prototype.getRevision=Oo.prototype.L,Oo.prototype.on=Oo.prototype.J,Oo.prototype.once,Oo.prototype.un=Oo.prototype.K,Ih.prototype.getMap=Ih.prototype.g,Ih.prototype.setTarget=Ih.prototype.f,Ih.prototype.getKeys=Ih.prototype.O,Ih.prototype.getProperties=Ih.prototype.N,Ih.prototype.setProperties=Ih.prototype.H,Ih.prototype.unset=Ih.prototype.P,Ih.prototype.changed=Ih.prototype.s,Ih.prototype.dispatchEvent=Ih.prototype.b,Ih.prototype.getRevision=Ih.prototype.L,Ih.prototype.on=Ih.prototype.J,Ih.prototype.un=Ih.prototype.K,Oh.prototype.getMap=Oh.prototype.g,Oh.prototype.setTarget=Oh.prototype.f,Oh.prototype.getKeys=Oh.prototype.O,Oh.prototype.getProperties=Oh.prototype.N,Oh.prototype.setProperties=Oh.prototype.H,Oh.prototype.unset=Oh.prototype.P,Oh.prototype.changed=Oh.prototype.s,Oh.prototype.dispatchEvent=Oh.prototype.b,Oh.prototype.getRevision=Oh.prototype.L,Oh.prototype.on=Oh.prototype.J,Oh.prototype.un=Oh.prototype.K,F.ol})
\ No newline at end of file
1
+!function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define([],e):t.ol=e()}(this,function(){var F={},k=this;function t(t,e){var o,i=F;(t=t.split("."))[0]in(i=i||k)||!i.execScript||i.execScript("var "+t[0]);for(;t.length&&(o=t.shift());)t.length||void 0===e?i=i[o]&&i[o]!==Object.prototype[o]?i[o]:i[o]={}:i[o]=e}function G(t,e){return e<t?1:t<e?-1:0}function D(t,e){return 0<=t.indexOf(e)}function B(t,e,o){var i=t.length;if(t[0]<=e)return 0;if(!(e<=t[i-1]))if(0<o){for(o=1;o<i;++o)if(t[o]<e)return o-1}else if(o<0){for(o=1;o<i;++o)if(t[o]<=e)return o}else for(o=1;o<i;++o){if(t[o]==e)return o;if(t[o]<e)return t[o-1]-e<e-t[o]?o-1:o}return i-1}function X(t,e){var o=Array.isArray(e)?e:[e],i=o.length;for(e=0;e<i;e++)t[t.length]=o[e]}function V(t,e){-1<(e=t.indexOf(e))&&t.splice(e,1)}function W(t,e){for(var o,i=t.length>>>0,r=0;r<i;r++)if(e(o=t[r],r,t))return o;return null}function Z(t,e){var o=t.length;if(o===e.length){for(var i=0;i<o;i++)if(t[i]!==e[i])return;return 1}}function K(t){for(var o=ks,e=t.length,i=Array(t.length),r=0;r<e;r++)i[r]={index:r,value:t[r]};for(i.sort(function(t,e){return o(t.value,e.value)||t.index-e.index}),r=0;r<t.length;r++)t[r]=i[r].value}function z(o,i){var r;return o.every(function(t,e){return!i(t,r=e,o)})?-1:r}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function Y(){}function U(t){return t.Vo||(t.Vo=++H)}var H=0;function q(t){this.message="Assertion failed. See https://openlayers.org/en/v4.2.0/doc/errors/#"+t+" for details.",this.code=t,this.name="AssertionError"}function O(t,e){if(!t)throw new q(e)}function J(t,e,o,i){this.ca=t,this.$=e,this.da=o,this.ia=i}function _(t,e,o){return t.ca<=e&&e<=t.$&&t.da<=o&&o<=t.ia}function $(t,e){return t.ca<=e.$&&t.$>=e.ca&&t.da<=e.ia&&t.ia>=e.da}function Q(t,e,o){return Math.min(Math.max(t,e),o)}e(q,Error);var tt="cosh"in Math?Math.cosh:function(t){return((t=Math.exp(t))+1/t)/2};function et(t,e,o,i,r,n){var s,a=r-o,p=n-i;return(a||p)&&(1<(s=((t-o)*a+(e-i)*p)/(a*a+p*p))?(o=r,i=n):0<s&&(o+=a*s,i+=p*s)),ot(t,e,o,i)}function ot(t,e,o,i){return(t=o-t)*t+(e=i-e)*e}function it(t){return t*Math.PI/180}function rt(t,e){return(t%=e)*e<0?t+e:t}function nt(t,e,o){return t+o*(e-t)}function st(t,e,o){return(o=void 0===o?[0,0]:o)[0]=t[0]+2*e,o[1]=t[1]+2*e,o}function at(t,e,o){return(o=void 0===o?[0,0]:o)[0]=t[0]*e+.5|0,o[1]=t[1]*e+.5|0,o}function pt(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:e[0]=e[1]=t,e)}function ht(t){for(var e=vt(),o=0,i=t.length;o<i;++o)Pt(e,t[o]);return e}function lt(t,e,o){return o?(o[0]=t[0]-e,o[1]=t[1]-e,o[2]=t[2]+e,o[3]=t[3]+e,o):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function ut(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function ct(t,e,o){return(e=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*e+(t=o<t[1]?t[1]-o:t[3]<o?o-t[3]:0)*t}function ft(t,e){return gt(t,e[0],e[1])}function yt(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function gt(t,e,o){return t[0]<=e&&e<=t[2]&&t[1]<=o&&o<=t[3]}function dt(t,e){var o=t[1],i=t[2],r=t[3],n=e[0],s=(e=e[1],0);return n<t[0]?s|=16:i<n&&(s|=4),e<o?s|=8:r<e&&(s|=2),s=s||1}function vt(){return[1/0,1/0,-1/0,-1/0]}function bt(t,e,o,i,r){return r?(r[0]=t,r[1]=e,r[2]=o,r[3]=i,r):[t,e,o,i]}function mt(t){return bt(1/0,1/0,-1/0,-1/0,t)}function wt(t,e){var o=t[0];return bt(o,t=t[1],o,t,e)}function xt(t,e,o,i,r){return At(r=mt(r),t,e,o,i)}function St(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function Mt(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function Pt(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function At(t,e,o,i,r){for(;o<i;o+=r){var n=t,s=e[o],a=e[o+1];n[0]=Math.min(n[0],s),n[1]=Math.min(n[1],a),n[2]=Math.max(n[2],s),n[3]=Math.max(n[3],a)}return t}function Et(t,e,o){return e.call(o,jt(t))||e.call(o,Ct(t))||e.call(o,kt(t))||e.call(o,Ft(t))||!1}function Tt(t){var e=0;return e=Ut(t)?e:Dt(t)*It(t)}function jt(t){return[t[0],t[1]]}function Ct(t){return[t[2],t[1]]}function Lt(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function Rt(t,e,o,i,r){var n=e*i[0]/2,s=(i=e*i[1]/2,e=Math.cos(o),Math.sin(o)),a=(o=n*e,n*=s,e*=i,i*s),p=t[0],h=t[1],a=(t=p-o+a,i=p-o-a,s=p+o-a,o=p+o+a,h-n-e),p=h-n+e,l=h+n+e,n=h+n-e;return bt(Math.min(t,i,s,o),Math.min(a,p,l,n),Math.max(t,i,s,o),Math.max(a,p,l,n),r)}function It(t){return t[3]-t[1]}function Nt(t,e,o){return o=o||vt(),Ot(t,e)&&(o[0]=(t[0]>e[0]?t:e)[0],o[1]=(t[1]>e[1]?t:e)[1],o[2]=(t[2]<e[2]?t:e)[2],o[3]=(t[3]<e[3]?t:e)[3]),o}function Ft(t){return[t[0],t[3]]}function kt(t){return[t[2],t[3]]}function Dt(t){return t[2]-t[0]}function Ot(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function Ut(t){return t[2]<t[0]||t[3]<t[1]}function Gt(t,e){var o=(t[2]-t[0])/2*(e-1);e=(t[3]-t[1])/2*(e-1),t[0]-=o,t[2]+=o,t[1]-=e,t[3]+=e}function Bt(t,e,o){e(t=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]],t,2);var i=[t[0],t[2],t[4],t[6]],r=[t[1],t[3],t[5],t[7]];return bt(e=Math.min.apply(null,i),t=Math.min.apply(null,r),Math.max.apply(null,i),Math.max.apply(null,r),o)}var Xt="function"==typeof Object.assign?Object.assign:function(t,e){if(!t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(t),i=1,r=arguments.length;i<r;++i){var n=arguments[i];if(null!=n)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s])}return o};function Vt(t){for(var e in t)delete t[e]}function Wt(t){var e,o=[];for(e in t)o.push(t[e]);return o}function Zt(t){for(var e in t)return!1;return!e}function Kt(t){this.radius=t}Kt.prototype.a=function(t){for(var e=0,o=t.length,i=t[o-1][0],r=t[o-1][1],n=0;n<o;n++)var s=t[n][0],a=t[n][1],e=e+it(s-i)*(2+Math.sin(it(r))+Math.sin(it(a))),i=s,r=a;return e*this.radius*this.radius/2},Kt.prototype.b=function(t,e){var o=it(t[1]),i=it(e[1]),r=(i-o)/2;return t=it(e[0]-t[0])/2,o=Math.sin(r)*Math.sin(r)+Math.sin(t)*Math.sin(t)*Math.cos(o)*Math.cos(i),2*this.radius*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))},Kt.prototype.offset=function(t,e,o){var i=it(t[1]),r=(e/=this.radius,Math.asin(Math.sin(i)*Math.cos(e)+Math.cos(i)*Math.sin(e)*Math.cos(o)));return[180*(it(t[0])+Math.atan2(Math.sin(o)*Math.sin(e)*Math.cos(i),Math.cos(e)-Math.sin(i)*Math.sin(r)))/Math.PI,180*r/Math.PI]};var zt=new Kt(6370997),Yt={},Ht=(Yt.degrees=2*Math.PI*zt.radius/360,Yt.ft=.3048,Yt.m=1,Yt["us-ft"]=1200/3937,null);function qt(t){this.mb=t.code,this.a=t.units,this.f=void 0!==t.extent?t.extent:null,this.g=void 0!==t.worldExtent?t.worldExtent:null,this.b=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.c=void 0!==t.global&&t.global,this.i=!(!this.c||!this.f),this.o=t.getPointResolution,this.j=null,this.l=t.metersPerUnit;var e=t.code,o=Ht||window.proj4;"function"==typeof o&&void 0!==(e=o.defs(e))&&(void 0!==e.axis&&void 0===t.axisOrientation&&(this.b=e.axis),void 0===t.metersPerUnit&&(this.l=e.to_meter),void 0===t.units)&&(this.a=e.units)}function Jt(t){qt.call(this,{code:t,units:"m",extent:$t,global:!0,worldExtent:Qt,getPointResolution:function(t,e){return t/tt(e[1]/6378137)}})}(r=qt.prototype).Jk=function(){return this.mb},r.G=function(){return this.f},r.Un=function(){return this.a},r.sc=function(){return this.l||Yt[this.a]},r.tl=function(){return this.g},r.dm=function(){return this.c},r.$p=function(t){this.c=t,this.i=!(!t||!this.f)},r.Vn=function(t){this.f=t,this.i=!(!this.c||!t)},r.kq=function(t){this.g=t},r.Zp=function(t){this.o=t},e(Jt,qt);var _t=6378137*Math.PI,$t=[-_t,-_t,_t,_t],Qt=[-180,-85,180,85],te="EPSG:3857 EPSG:102100 EPSG:102113 EPSG:900913 urn:ogc:def:crs:EPSG:6.18:3:3857 urn:ogc:def:crs:EPSG::3857 http://www.opengis.net/gml/srs/epsg.xml#3857".split(" ").map(function(t){return new Jt(t)});function ee(t,e,o){var i=t.length;o=1<o?o:2,void 0===e&&(e=2<o?t.slice():Array(i));for(var r=0;r<i;r+=o){e[r]=_t*t[r]/180;var n=6378137*Math.log(Math.tan(Math.PI*(t[r+1]+90)/360));_t<n?n=_t:n<-_t&&(n=-_t),e[r+1]=n}return e}function oe(t,e,o){var i=t.length;o=1<o?o:2,void 0===e&&(e=2<o?t.slice():Array(i));for(var r=0;r<i;r+=o)e[r]=180*t[r]/_t,e[r+1]=360*Math.atan(Math.exp(t[r+1]/6378137))/Math.PI-90;return e}var ie=new Kt(6378137);function re(t,e){qt.call(this,{code:t,units:"degrees",extent:ne,axisOrientation:e,global:!0,metersPerUnit:se,worldExtent:ne})}e(re,qt);var ne=[-180,-90,180,90],se=Math.PI*ie.radius/180,ae=[new re("CRS:84"),new re("EPSG:4326","neu"),new re("urn:ogc:def:crs:EPSG::4326","neu"),new re("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new re("urn:ogc:def:crs:OGC:1.3:CRS84"),new re("urn:ogc:def:crs:OGC:2:84"),new re("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new re("urn:x-ogc:def:crs:EPSG:4326","neu")],pe={},he={};function le(t,e,o){t=t.mb,e=e.mb,t in he||(he[t]={}),he[t][e]=o}function ue(t,e){var o;return o=t in he&&e in he[t]?he[t][e]:o}function ce(t,e,o){var i=(t=v(t)).o;return i?e=i(e,o):"degrees"!=t.a&&(e=(i=we(t,v("EPSG:4326")))(e=[o[0]-e/2,o[1],o[0]+e/2,o[1],o[0],o[1]-e/2,o[0],o[1]+e/2],e,2),e=(zt.b(e.slice(0,2),e.slice(2,4))+zt.b(e.slice(4,6),e.slice(6,8)))/2,void 0!==(t=t.sc()))&&(e/=t),e}function fe(t){t.forEach(ye),t.forEach(function(e){t.forEach(function(t){e!==t&&le(e,t,Se)})})}function ye(t){le(pe[t.mb]=t,t,Se)}function ge(t){return t?"string"==typeof t?v(t):t:v("EPSG:3857")}function de(t,e,o,i){le(t=v(t),e=v(e),ve(o)),le(e,t,ve(i))}function ve(s){return function(t,e,o){var i,r=t.length;for(o=void 0!==o?o:2,e=void 0!==e?e:Array(r),i=0;i<r;i+=o){var n=s([t[i],t[i+1]]);for(e[i]=n[0],e[i+1]=n[1],n=o-1;2<=n;--n)e[i+n]=t[i+n]}return e}}function v(t){var e,o=null;return t instanceof qt?o=t:"string"==typeof t&&(o=pe[t]||null,e=Ht||window.proj4,o||"function"!=typeof e||void 0===e.defs(t)||ye(o=new qt({code:t}))),o}function be(t,e){var o;return t===e||(o=t.a===e.a,(t.mb===e.mb||we(t,e)===Se)&&o)}function me(t,e){return we(t=v(t),e=v(e))}function we(t,e){var o,i,r,n=t.mb,s=e.mb,a=ue(n,s);return a||"function"==typeof(o=Ht||window.proj4)&&(i=o.defs(n),r=o.defs(s),void 0!==i)&&void 0!==r&&(i===r?fe([e,t]):de(e,t,(a=o(s,n)).forward,a.inverse),a=ue(n,s)),a=a||xe}function xe(t,e){if(void 0!==e&&t!==e){for(var o=0,i=t.length;o<i;++o)e[o]=t[o];t=e}return t}function Se(t,e){if(void 0!==e){for(var o=0,i=t.length;o<i;++o)e[o]=t[o];t=e}else t=t.slice();return t}function Me(t,e,o){return me(e,o)(t,void 0,t.length)}function Pe(t,e,o){return Bt(t,e=me(e,o))}function Ae(){fe(te),fe(ae),ae.forEach(function(e){te.forEach(function(t){le(e,t,ee),le(t,e,oe)})})}function Ee(t,e,o,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=o,i):[t,e,o]}function Te(t){this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.b=t.resolutions,O((o=this.b,i=function(t,e){return e-t}||G,o.every(function(t,e){return!e||!(0<(t=i(o[e-1],t))||0===t)})),17),this.maxZoom=this.b.length-1,this.i=void 0!==t.origin?t.origin:null,this.c=null,void 0!==t.origins&&(this.c=t.origins,O(this.c.length==this.b.length,20));var o,i,e=t.extent;if(void 0===e||this.i||this.c||(this.i=Ft(e)),O(!this.i&&this.c||this.i&&!this.c,18),this.f=null,void 0!==t.tileSizes&&(this.f=t.tileSizes,O(this.f.length==this.b.length,19)),this.g=void 0!==t.tileSize?t.tileSize:this.f?null:256,O(!this.g&&this.f||this.g&&!this.f,22),this.v=void 0!==e?e:null,this.a=null,this.j=[0,0],void 0!==t.sizes)this.a=t.sizes.map(function(t){return new J(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1))},this);else if(e){for(var r=this,n=e,s=r.b.length,a=Array(s),p=r.minZoom;p<s;++p)a[p]=Ie(r,n,p);r.a=a}}Ae();var je=[0,0,0];function Ce(t,e,o,i,r){for(r=t.Aa(e,r),e=e[0]-1;e>=t.minZoom;){if(o.call(null,e,Ie(t,r,e,i)))return!0;--e}return!1}function Le(t,e,o,i){return e[0]<t.maxZoom?(i=t.Aa(e,i),Ie(t,i,e[0]+1,o)):null}function Re(t,e,o,i){Fe(t,e[0],e[1],o,!1,je);var r=je[1],n=je[2];return Fe(t,e[2],e[3],o,!0,je),t=je[1],e=je[2],void 0!==i?(i.ca=r,i.$=t,i.da=n,i.ia=e):i=new J(r,t,n,e),i}function Ie(t,e,o,i){return Re(t,e,t.Da(o),i)}function Ne(t,e){var o=t.Pc(e[0]),i=t.Da(e[0]);return t=pt(t.gb(e[0]),t.j),[o[0]+(e[1]+.5)*t[0]*i,o[1]+(e[2]+.5)*t[1]*i]}function Fe(t,e,o,i,r,n){var s=t.tc(i),a=i/t.Da(s),p=t.Pc(s);return t=pt(t.gb(s),t.j),e=a*Math.floor((e-p[0])/i+(r?.5:0))/t[0],o=a*Math.floor((o-p[1])/i+(r?0:.5))/t[1],o=r?(e=Math.ceil(e)-1,Math.ceil(o)-1):(e=Math.floor(e),Math.floor(o)),Ee(s,e,o,n)}function ke(t){var e=t.j;return e||(e=Ue(t),t.j=e),e}function De(t){var e={};return Xt(e,t||{}),void 0===e.extent&&(e.extent=v("EPSG:3857").G()),e.resolutions=Oe(e.extent,e.maxZoom,e.tileSize),delete e.maxZoom,new Te(e)}function Oe(t,e,o){e=void 0!==e?e:42;var i=It(t);for(t=Dt(t),o=pt(void 0!==o?o:256),o=Math.max(t/o[0],i/o[1]),e+=1,i=Array(e),t=0;t<e;++t)i[t]=o/Math.pow(2,t);return i}function Ue(t,e,o){return e=Oe(t=Ge(t),e,o),new Te({extent:t,origin:Ft(t),resolutions:e,tileSize:o})}function Ge(t){var e=(t=v(t)).G();return e=e?e:bt(-(t=180*Yt.degrees/t.sc()),-t,t,t)}function Be(t){this.b=t.html,this.a=t.tileRanges||null}function Xe(t){return t}function Ve(i){return i.mh=function(t){var e=i.listener,o=i.lh||i.target;return i.nh&&qe(i),e.call(o,t)}}function We(t,e,o,i){for(var r,n=0,s=t.length;n<s;++n)if((r=t[n]).listener===e&&r.lh===o)return i&&(r.deleteIndex=n),r}function Ze(t,e){return(t=t.fb)?t[e]:void 0}function Ke(t){return t.fb||(t.fb={})}function ze(t,e){var o=Ze(t,e);if(o){for(var i=0,r=o.length;i<r;++i)t.removeEventListener(e,o[i].mh),Vt(o[i]);o.length=0,(o=t.fb)&&(delete o[e],Object.keys(o).length||delete t.fb)}}function d(t,e,o,i,r){var n=Ke(t),s=n[e];return(n=We(s=s||(n[e]=[]),o,i,!1))?r||(n.nh=!1):(t.addEventListener(e,Ve(n={lh:i,nh:!!r,listener:o,target:t,type:e})),s.push(n)),n}function Ye(t,e,o,i){return d(t,e,o,i,!0)}function He(t,e,o,i){(t=Ze(t,e))&&(o=We(t,o,i,!0))&&qe(o)}function qe(t){var e,o;t&&t.target&&(t.target.removeEventListener(t.type,t.mh),(e=Ze(t.target,t.type))&&(-1!==(o="deleteIndex"in t?t.deleteIndex:e.indexOf(t))&&e.splice(o,1),e.length||ze(t.target,t.type)),Vt(t))}function Je(t){for(var e in Ke(t))ze(t,e)}function _e(){}function $e(t){t.Jb||(t.Jb=!0,t.ka())}function Qe(t){this.type=t,this.target=null}function to(t){t.stopPropagation()}function eo(){this.Ua={},this.ra={},this.oa={}}function oo(t,e){return e?e in t.oa:0<Object.keys(t.oa).length}function io(){eo.call(this),this.i=0}function ro(t){io.call(this),U(this),this.S={},void 0!==t&&this.H(t)}(r=Te.prototype).Rf=function(t,e,o){for(var i=(t=Ie(this,t,e)).ca,r=t.$;i<=r;++i)for(var n=t.da,s=t.ia;n<=s;++n)o([e,i,n])},r.G=function(){return this.v},r.Ti=function(){return this.maxZoom},r.Ui=function(){return this.minZoom},r.Pc=function(t){return this.i||this.c[t]},r.Da=function(t){return this.b[t]},r.Vi=function(){return this.b},r.Aa=function(t,e){var o=this.Pc(t[0]),i=this.Da(t[0]),r=pt(this.gb(t[0]),this.j),n=o[0]+t[1]*r[0]*i;return bt(n,t=o[1]+t[2]*r[1]*i,n+r[0]*i,t+r[1]*i,e)},r.Be=function(t,e,o){return Fe(this,t[0],t[1],e,!1,o)},r.bg=function(t,e,o){return Fe(this,t[0],t[1],this.Da(e),!1,o)},r.gb=function(t){return this.g||this.f[t]},r.tc=function(t,e){return Q(B(this.b,t,e||0),this.minZoom,this.maxZoom)},_e.prototype.Jb=!(Be.prototype.i=function(){return this.b}),_e.prototype.ka=Y,Qe.prototype.preventDefault=Qe.prototype.stopPropagation=function(){this.qp=!0},e(eo,_e),eo.prototype.addEventListener=function(t,e){var o=this.oa[t];-1===(o=o||(this.oa[t]=[])).indexOf(e)&&o.push(e)},eo.prototype.b=function(t){var e="string"==typeof t?new Qe(t):t,o=(t=e.type,(e.target=this).oa[t]);if(o){t in this.ra||(this.ra[t]=0,this.Ua[t]=0),++this.ra[t];for(var i=0,r=o.length;i<r;++i)if(!1===o[i].call(this,e)||e.qp){var n=!1;break}if(--this.ra[t],!this.ra[t]){for(e=this.Ua[t],delete this.Ua[t];e--;)this.removeEventListener(t,Y);delete this.ra[t]}return n}},eo.prototype.ka=function(){Je(this)},eo.prototype.removeEventListener=function(t,e){var o=this.oa[t];o&&(e=o.indexOf(e),t in this.Ua?(o[e]=Y,++this.Ua[t]):(o.splice(e,1),o.length||delete this.oa[t]))},e(io,eo),(r=io.prototype).s=function(){++this.i,this.b("change")},r.L=function(){return this.i},r.J=function(t,e,o){if(Array.isArray(t)){for(var i=t.length,r=Array(i),n=0;n<i;++n)r[n]=d(this,t[n],e,o);return r}return d(this,t,e,o)},r.once=function(t,e,o){if(Array.isArray(t)){for(var i=t.length,r=Array(i),n=0;n<i;++n)r[n]=Ye(this,t[n],e,o);return r}return Ye(this,t,e,o)},r.K=function(t,e,o){if(Array.isArray(t))for(var i=0,r=t.length;i<r;++i)He(this,t[i],e,o);else He(this,t,e,o)},e(ro,io);var no={};function so(t){return no.hasOwnProperty(t)?no[t]:no[t]="change:"+t}function ao(t,e,o){var i=so(e);t.b(new po(i,e,o)),t.b(new po("propertychange",e,o))}function po(t,e,o){Qe.call(this,t),this.key=e,this.oldValue=o}function ho(t,e){if(ro.call(this),this.c=!!(e||{}).unique,this.a=t||[],this.c)for(t=0,e=this.a.length;t<e;++t)uo(this,this.a[t],t);lo(this)}function lo(t){t.set(co,t.a.length)}function uo(t,e,o){for(var i=0,r=t.a.length;i<r;++i)if(t.a[i]===e&&i!==o)throw new q(58)}(r=ro.prototype).get=function(t){var e;return e=this.S.hasOwnProperty(t)?this.S[t]:e},r.O=function(){return Object.keys(this.S)},r.N=function(){return Xt({},this.S)},r.set=function(t,e,o){o?this.S[t]=e:(o=this.S[t])!==(this.S[t]=e)&&ao(this,t,o)},r.H=function(t,e){for(var o in t)this.set(o,t[o],e)},r.P=function(t,e){var o;t in this.S&&(o=this.S[t],delete this.S[t],e||ao(this,t,o))},e(po,Qe),e(ho,ro),(r=ho.prototype).clear=function(){for(;0<this.dc();)this.pop()},r.fg=function(t){for(var e=0,o=t.length;e<o;++e)this.push(t[e]);return this},r.forEach=function(t,e){this.a.forEach(t,e)},r.tm=function(){return this.a},r.item=function(t){return this.a[t]},r.dc=function(){return this.get(co)},r.He=function(t,e){this.c&&uo(this,e),this.a.splice(t,0,e),lo(this),this.b(new fo("add",e))},r.pop=function(){return this.Hg(this.dc()-1)},r.push=function(t){this.c&&uo(this,t);var e=this.dc();return this.He(e,t),this.dc()},r.remove=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)if(e[o]===t)return this.Hg(o)},r.Hg=function(t){var e=this.a[t];return this.a.splice(t,1),lo(this),this.b(new fo("remove",e)),e},r.Wp=function(t,e){var o=this.dc();if(t<o)this.c&&uo(this,e,t),o=this.a[t],this.a[t]=e,this.b(new fo("remove",o)),this.b(new fo("add",e));else{for(;o<t;++o)this.He(o,void 0);this.He(t,e)}};var co="length";function fo(t,e){Qe.call(this,t),this.element=e}e(fo,Qe);var yo=/^#(?:[0-9a-f]{3}){1,2}$/i,go=/^([a-z]*)$/i;function vo(t){return Array.isArray(t)?t:xo(t)}function bo(t){var e;return t="string"!=typeof t?"rgba("+(e=(e=t[0])!=(0|e)?e+.5|0:e)+","+(e=(e=t[1])!=(0|e)?e+.5|0:e)+","+(e=(e=t[2])!=(0|e)?e+.5|0:e)+","+(void 0===t[3]?1:t[3])+")":t}mo={},wo=0;var mo,wo,xo=function(t){if(mo.hasOwnProperty(t))var e=mo[t];else{if(1024<=wo)for(var o in e=0,mo)3&e++||(delete mo[o],--wo);var i,r;go.exec(e=t)&&((o=document.createElement("div")).style.color=e,document.body.appendChild(o),e=getComputedStyle(o).color,document.body.removeChild(o)),yo.exec(e)?(O(3==(r=e.length-1)||6==r,54),i=3==r?1:2,r=parseInt(e.substr(1+0*i,i),16),o=parseInt(e.substr(1+i,i),16),e=parseInt(e.substr(1+2*i,i),16),1==i&&(r=(r<<4)+r,o=(o<<4)+o,e=(e<<4)+e),r=[r,o,e,1]):e.indexOf("rgba(")?e.indexOf("rgb(")?O(!1,14):((e=e.slice(4,-1).split(",").map(Number)).push(1),r=So(e)):r=So(e=e.slice(5,-1).split(",").map(Number)),e=r,mo[t]=e,++wo}return e};function So(t){var e=[];return e[0]=Q(t[0]+.5|0,0,255),e[1]=Q(t[1]+.5|0,0,255),e[2]=Q(t[2]+.5|0,0,255),e[3]=Q(t[3],0,1),e}function Mo(t){return"string"==typeof t||t instanceof CanvasPattern||t instanceof CanvasGradient?t:bo(t)}function Po(t,e){var o=document.createElement("CANVAS");return t&&(o.width=t),e&&(o.height=e),o.getContext("2d")}function Ao(t,e){var o=e.parentNode;o&&o.replaceChild(t,e)}function Eo(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function To(t){ro.call(this),this.element=t.element||null,this.a=this.R=null,this.v=[],this.render=t.render||Y,t.target&&this.f(t.target)}function jo(t){t=t||{},this.I=document.createElement("UL"),this.u=document.createElement("LI"),this.I.appendChild(this.u),this.u.style.display="none",this.c=void 0===t.collapsed||t.collapsed,this.o=void 0===t.collapsible||t.collapsible,this.o||(this.c=!1);var e=void 0!==t.className?t.className:"ol-attribution",o=void 0!==t.tipLabel?t.tipLabel:"Attributions",i=void 0!==t.collapseLabel?t.collapseLabel:"»",r=("string"==typeof i?(this.D=document.createElement("span"),this.D.textContent=i):this.D=i,"string"==typeof(i=void 0!==t.label?t.label:"i")?(this.C=document.createElement("span"),this.C.textContent=i):this.C=i,this.o&&!this.c?this.D:this.C);(i=document.createElement("button")).setAttribute("type","button"),i.title=o,i.appendChild(r),d(i,"click",this.Vm,this),(o=document.createElement("div")).className=e+" ol-unselectable ol-control"+(this.c&&this.o?" ol-collapsed":"")+(this.o?"":" ol-uncollapsible"),o.appendChild(this.I),o.appendChild(i),To.call(this,{element:o,render:t.render||Co,target:t.target}),this.B=!0,this.l={},this.j={},this.T={}}function Co(t){if(t=t.frameState){var e,o,i,r,n,s,a,p=t.layerStatesArray,h=Xt({},t.attributions),l={},u={},c=t.viewState.projection,f=0;for(a=p.length;f<a;f++)if(o=p[f].layer.ha()){var y=U(o).toString();if(i=o.j)for(var g=0,d=i.length;g<d;g++){var v=i[g],b=U(v).toString();if(!(b in h)){if(e=t.usedTiles[y])t:{var m=void 0,w=v,x=M=o.Ta(c),S=c;if(w.a){for(m in e)if(m in w.a)for(var M=e[m],P=0,A=w.a[m].length;P<A;++P){var E=w.a[m][P];if($(E,M)){m=!0;break t}var T=Ie(x,Ge(S),parseInt(m,10)),j=T.$-T.ca+1;if((M.ca<T.ca||M.$>T.$)&&($(E,new J(rt(M.ca,j),rt(M.$,j),M.da,M.ia))||M.$-M.ca+1>j&&$(E,T))){m=!0;break t}}m=!1}else m=!0}else m=!1;m?(b in l&&delete l[b],(m=v.b)in u||(u[m]=!0,h[b]=v)):l[b]=v}}}for(r in f=(a=[h,l])[0],a=a[1],this.l)r in f?(this.j[r]||(this.l[r].style.display="",this.j[r]=!0),delete f[r]):r in a?(this.j[r]&&(this.l[r].style.display="none",delete this.j[r]),delete a[r]):(Eo(this.l[r]),delete this.l[r],delete this.j[r]);for(r in f)g=document.createElement("LI"),g.innerHTML=f[r].b,this.I.appendChild(g),this.l[r]=g,this.j[r]=!0;for(r in a)g=document.createElement("LI"),g.innerHTML=a[r].b,g.style.display="none",this.I.appendChild(g),this.l[r]=g;for(s in r=!Zt(this.j)||!Zt(t.logos),this.B!=r&&(this.element.style.display=r?"":"none",this.B=r),r&&Zt(this.j)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only"),t=t.logos,r=this.T)s in t||(Eo(r[s]),delete r[s]);for(n in t)(a=t[n])instanceof HTMLElement&&(this.u.appendChild(a),r[n]=a),n in r||((s=new Image).src=n,""===a?f=s:((f=document.createElement("a")).href=a,f.appendChild(s)),this.u.appendChild(f),r[n]=f);this.u.style.display=Zt(t)?"none":""}else this.B&&(this.element.style.display="none",this.B=!1)}function Lo(t){t.element.classList.toggle("ol-collapsed"),t.c?Ao(t.D,t.C):Ao(t.C,t.D),t.c=!t.c}function Ro(t){return Math.pow(t,3)}function Io(t){return 1-Ro(1-t)}function No(t){return 3*t*t-2*t*t*t}function Fo(t){return t}function ko(t){var e=void 0!==(t=t||{}).className?t.className:"ol-rotate",o=void 0!==t.label?t.label:"⇧",i=(this.c=null,"string"==typeof o?(this.c=document.createElement("span"),this.c.className="ol-compass",this.c.textContent=o):(this.c=o,this.c.classList.add("ol-compass")),t.tipLabel||"Reset rotation");(o=document.createElement("button")).className=e+"-reset",o.setAttribute("type","button"),o.title=i,o.appendChild(this.c),d(o,"click",ko.prototype.D,this),(i=document.createElement("div")).className=e+" ol-unselectable ol-control",i.appendChild(o),e=t.render||Do,this.o=t.resetNorth||void 0,To.call(this,{element:i,render:e,target:t.target}),this.l=void 0!==t.duration?t.duration:250,this.j=void 0===t.autoHide||t.autoHide,this.u=void 0,this.j&&this.element.classList.add("ol-hidden")}function Do(t){var e,o;(t=t.frameState)&&((t=t.viewState.rotation)!=this.u&&(e="rotate("+t+"rad)",this.j&&((o=this.element.classList.contains("ol-hidden"))||t?o&&t&&this.element.classList.remove("ol-hidden"):this.element.classList.add("ol-hidden")),this.c.style.msTransform=e,this.c.style.webkitTransform=e,this.c.style.transform=e),this.u=t)}function Oo(t){var e=void 0!==(t=t||{}).className?t.className:"ol-zoom",o=void 0!==t.delta?t.delta:1,i=void 0!==t.zoomInLabel?t.zoomInLabel:"+",r=void 0!==t.zoomOutLabel?t.zoomOutLabel:"−",n=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",s=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",a=document.createElement("button");a.className=e+"-in",a.setAttribute("type","button"),a.title=n,a.appendChild("string"==typeof i?document.createTextNode(i):i),d(a,"click",Oo.prototype.j.bind(this,o)),(i=document.createElement("button")).className=e+"-out",i.setAttribute("type","button"),i.title=s,i.appendChild("string"==typeof r?document.createTextNode(r):r),d(i,"click",Oo.prototype.j.bind(this,-o)),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(a),o.appendChild(i),To.call(this,{element:o,target:t.target}),this.c=void 0!==t.duration?t.duration:250}function Uo(t){t=t||{};var e=new ho;return void 0!==t.zoom&&!t.zoom||e.push(new Oo(t.zoomOptions)),void 0!==t.rotate&&!t.rotate||e.push(new ko(t.rotateOptions)),void 0!==t.attribution&&!t.attribution||e.push(new jo(t.attributionOptions)),e}function Go(t){this.c=void 0!==(t=t||{}).className?t.className:"ol-full-screen";var e=void 0!==t.label?t.label:"⤢",o=(this.o="string"==typeof e?document.createTextNode(e):e,e=void 0!==t.labelActive?t.labelActive:"×",this.l="string"==typeof e?document.createTextNode(e):e,t.tipLabel||"Toggle full-screen");(e=document.createElement("button")).className=this.c+"-"+Xo(),e.setAttribute("type","button"),e.title=o,e.appendChild(this.o),d(e,"click",this.C,this),(o=document.createElement("div")).className=this.c+" ol-unselectable ol-control "+(Bo()?"":"ol-unsupported"),o.appendChild(e),To.call(this,{element:o,target:t.target}),this.D=void 0!==t.keys&&t.keys,this.j=t.source}function Bo(){var t=document.body;return t.webkitRequestFullscreen||t.mozRequestFullScreen&&document.mozFullScreenEnabled||t.msRequestFullscreen&&document.msFullscreenEnabled||t.requestFullscreen&&document.fullscreenEnabled}function Xo(){return!!(document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||document.fullscreenElement)}function Vo(t){t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}e(To,ro),To.prototype.ka=function(){Eo(this.element),ro.prototype.ka.call(this)},To.prototype.g=function(){return this.a},To.prototype.setMap=function(t){this.a&&Eo(this.element);for(var e=0,o=this.v.length;e<o;++e)qe(this.v[e]);this.v.length=0,(this.a=t)&&((this.R||t.D).appendChild(this.element),this.render!==Y&&this.v.push(d(t,"postrender",this.render,this)),t.render())},To.prototype.f=function(t){this.R="string"==typeof t?document.getElementById(t):t},e(jo,To),(r=jo.prototype).Vm=function(t){t.preventDefault(),Lo(this)},r.Um=function(){return this.o},r.Xm=function(t){this.o!==t&&(this.o=t,this.element.classList.toggle("ol-uncollapsible"),!t)&&this.c&&Lo(this)},r.Wm=function(t){this.o&&this.c!==t&&Lo(this)},r.Tm=function(){return this.c},e(ko,To),ko.prototype.D=function(t){t.preventDefault(),this.o?this.o():(t=this.a.Z())&&void 0!==t.Qa()&&(0<this.l?t.animate({rotation:0,duration:this.l,easing:Io}):t.Oe(0))},e(Oo,To),Oo.prototype.j=function(t,e){var o;e.preventDefault(),(e=this.a.Z())&&(o=e.Pa())&&(t=e.constrainResolution(o,t),0<this.c?(e.Ic()&&e.ed(),e.animate({resolution:t,duration:this.c,easing:Io})):e.Vc(t))},e(Go,To),Go.prototype.C=function(t){t.preventDefault(),Bo()&&(t=this.a)&&(Xo()?document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():(t=this.j?"string"==typeof this.j?document.getElementById(this.j):this.j:t.jd(),this.D?t.mozRequestFullScreenWithKeys?t.mozRequestFullScreenWithKeys():t.webkitRequestFullscreen?t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):Vo(t):Vo(t)))},Go.prototype.u=function(){var t=this.element.firstElementChild,e=this.a;Xo()?(t.className=this.c+"-true",Ao(this.l,this.o)):(t.className=this.c+"-false",Ao(this.o,this.l)),e&&e.Ad()},Go.prototype.setMap=function(t){To.prototype.setMap.call(this,t),t&&this.v.push(d(document,Zo(),this.u,this))};var Wo,Zo=function(){var t;return Wo||((t=document.body).webkitRequestFullscreen?Wo="webkitfullscreenchange":t.mozRequestFullScreen?Wo="mozfullscreenchange":t.msRequestFullscreen?Wo="MSFullscreenChange":t.requestFullscreen&&(Wo="fullscreenchange")),Wo};function Ko(t){t=t||{};var e=document.createElement("DIV");e.className=void 0!==t.className?t.className:"ol-mouse-position",To.call(this,{element:e,render:t.render||zo,target:t.target}),d(this,so(Ho),this.Ym,this),t.coordinateFormat&&this.kj(t.coordinateFormat),t.projection&&this.$h(t.projection),this.u=void 0!==t.undefinedHTML?t.undefinedHTML:"",this.l=e.innerHTML,this.o=this.j=this.c=null}function zo(t){(t=t.frameState)?this.c!=t.viewState.projection&&(this.c=t.viewState.projection,this.j=null):this.c=null,Yo(this,this.o)}function Yo(t,e){var o,i=t.u;e&&t.c&&(t.j||(o=t.Zh(),t.j=o?we(t.c,o):xe),e=t.a.Wa(e))&&(t.j(e,e),i=(i=t.xh())?i(e):e.toString()),t.l&&i==t.l||(t.element.innerHTML=i,t.l=i)}e(Ko,To),(r=Ko.prototype).Ym=function(){this.j=null},r.xh=function(){return this.get(qo)},r.Zh=function(){return this.get(Ho)},r.Ll=function(t){this.o=this.a.xe(t),Yo(this,this.o)},r.Ml=function(){Yo(this,null),this.o=null},r.setMap=function(t){To.prototype.setMap.call(this,t),t&&(t=t.a,this.v.push(d(t,"mousemove",this.Ll,this),d(t,"mouseout",this.Ml,this)))},r.kj=function(t){this.set(qo,t)},r.$h=function(t){this.set(Ho,v(t))};var Ho="projection",qo="coordinateFormat";function Jo(t,e,o){Qe.call(this,t),this.map=e,this.frameState=void 0!==o?o:null}function _o(t,e,o,i,r){Jo.call(this,t,e,r),this.originalEvent=o,this.pixel=e.xe(o),this.coordinate=e.Wa(this.pixel),this.dragging=void 0!==i&&i}e(Jo,Qe),e(_o,Jo),_o.prototype.preventDefault=function(){Jo.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},_o.prototype.stopPropagation=function(){Jo.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()};var $o=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Qo(t,e){for(var o,i=$o.length,r=0;r<i;++r)try{if(o=t.getContext($o[r],e))return o}catch(t){}return null}var ti="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",ei=-1!==ti.indexOf("firefox"),oi=-1!==ti.indexOf("safari")&&-1==ti.indexOf("chrom"),ii=-1!==ti.indexOf("webkit")&&-1==ti.indexOf("edge"),ri=-1!==ti.indexOf("macintosh"),ni=window.devicePixelRatio||1,si=!1,ai=function(){if(!("HTMLCanvasElement"in window))return!1;try{var t=document.createElement("CANVAS").getContext("2d");return!!t&&(void 0!==t.setLineDash&&(si=!0),!0)}catch(t){return!1}}(),pi="DeviceOrientationEvent"in window,hi="geolocation"in navigator,li="ontouchstart"in window,ui="PointerEvent"in window,ci=!!navigator.msPointerEnabled,ti=!1,fi=[];if("WebGLRenderingContext"in window)try{var yi=Qo(document.createElement("CANVAS"),{failIfMajorPerformanceCaveat:!0});yi&&(ti=!0,By=yi.getParameter(yi.MAX_TEXTURE_SIZE),fi=yi.getSupportedExtensions())}catch(t){}var gi=ti,di=fi,vi=By,bi={Iq:"singleclick",xq:"click",yq:"dblclick",Bq:"pointerdrag",Eq:"pointermove",Aq:"pointerdown",Hq:"pointerup",Gq:"pointerover",Fq:"pointerout",Cq:"pointerenter",Dq:"pointerleave",zq:"pointercancel"};function mi(t,e,o,i,r){_o.call(this,t,e,o.b,i,r),this.b=o}function wi(t,e){this.b=t,this.f=e}function xi(t){wi.call(this,t,{mousedown:this.fm,mousemove:this.gm,mouseup:this.jm,mouseover:this.im,mouseout:this.hm}),this.a=t.i,this.i=[]}function Si(t,e){t=t.i;var o=e.clientX;e=e.clientY;for(var i,r=0,n=t.length;r<n&&(i=t[r]);r++){var s=Math.abs(e-i[1]);if(Math.abs(o-i[0])<=25&&s<=25)return 1}}function Mi(t){var e=Fi(t,t),o=e.preventDefault;return e.preventDefault=function(){t.preventDefault(),o()},e.pointerId=1,e.isPrimary=!0,e.pointerType="mouse",e}function Pi(t){wi.call(this,t,{MSPointerDown:this.om,MSPointerMove:this.pm,MSPointerUp:this.sm,MSPointerOut:this.qm,MSPointerOver:this.rm,MSPointerCancel:this.nm,MSGotPointerCapture:this.lm,MSLostPointerCapture:this.mm}),this.a=t.i,this.i=["","unavailable","touch","pen","mouse"]}function Ai(t,e){var o=e;return"number"==typeof e.pointerType&&((o=Fi(e,e)).pointerType=t.i[e.pointerType]),o}function Ei(t){wi.call(this,t,{pointerdown:this.ip,pointermove:this.jp,pointerup:this.mp,pointerout:this.kp,pointerover:this.lp,pointercancel:this.hp,gotpointercapture:this.ul,lostpointercapture:this.em})}function Ti(t,e,o){var i;Qe.call(this,t),this.b=e,this.buttons=function(t){if(t.buttons||ji)t=t.buttons;else switch(t.which){case 1:t=1;break;case 2:t=4;break;case 3:t=2;break;default:t=0}return t}(t=o||{}),this.pressure=(o=t,i=this.buttons,o.pressure||(i?.5:0)),this.bubbles="bubbles"in t&&t.bubbles,this.cancelable="cancelable"in t&&t.cancelable,this.view="view"in t?t.view:null,this.detail="detail"in t?t.detail:null,this.screenX="screenX"in t?t.screenX:0,this.screenY="screenY"in t?t.screenY:0,this.clientX="clientX"in t?t.clientX:0,this.clientY="clientY"in t?t.clientY:0,this.ctrlKey="ctrlKey"in t&&t.ctrlKey,this.altKey="altKey"in t&&t.altKey,this.shiftKey="shiftKey"in t&&t.shiftKey,this.metaKey="metaKey"in t&&t.metaKey,this.button="button"in t?t.button:0,this.relatedTarget="relatedTarget"in t?t.relatedTarget:null,this.pointerId="pointerId"in t?t.pointerId:0,this.width="width"in t?t.width:0,this.height="height"in t?t.height:0,this.tiltX="tiltX"in t?t.tiltX:0,this.tiltY="tiltY"in t?t.tiltY:0,this.pointerType="pointerType"in t?t.pointerType:"",this.isPrimary="isPrimary"in t&&t.isPrimary,e.preventDefault&&(this.preventDefault=function(){e.preventDefault()})}e(mi,_o),e(xi,wi),(r=xi.prototype).fm=function(t){var e;Si(this,t)||(1..toString()in this.a&&this.cancel(t),e=Mi(t),this.a[1..toString()]=t,Ui(this.b,"pointerdown",e,t))},r.gm=function(t){var e;Si(this,t)||(e=Mi(t),Ui(this.b,"pointermove",e,t))},r.jm=function(t){var e;Si(this,t)||(e=this.a[1..toString()])&&e.button===t.button&&(e=Mi(t),Ui(this.b,"pointerup",e,t),delete this.a[1..toString()])},r.im=function(t){var e;Si(this,t)||(e=Mi(t),Oi(this.b,e,t))},r.hm=function(t){var e;Si(this,t)||(e=Mi(t),Di(this.b,e,t))},r.cancel=function(t){var e=Mi(t);this.b.cancel(e,t),delete this.a[1..toString()]},e(Pi,wi),(r=Pi.prototype).om=function(t){this.a[t.pointerId.toString()]=t;var e=Ai(this,t);Ui(this.b,"pointerdown",e,t)},r.pm=function(t){var e=Ai(this,t);Ui(this.b,"pointermove",e,t)},r.sm=function(t){var e=Ai(this,t);Ui(this.b,"pointerup",e,t),delete this.a[t.pointerId.toString()]},r.qm=function(t){var e=Ai(this,t);Di(this.b,e,t)},r.rm=function(t){var e=Ai(this,t);Oi(this.b,e,t)},r.nm=function(t){var e=Ai(this,t);this.b.cancel(e,t),delete this.a[t.pointerId.toString()]},r.mm=function(t){this.b.b(new Ti("lostpointercapture",t,t))},r.lm=function(t){this.b.b(new Ti("gotpointercapture",t,t))},e(Ei,wi),(r=Ei.prototype).ip=function(t){Gi(this.b,t)},r.jp=function(t){Gi(this.b,t)},r.mp=function(t){Gi(this.b,t)},r.kp=function(t){Gi(this.b,t)},r.lp=function(t){Gi(this.b,t)},r.hp=function(t){Gi(this.b,t)},r.em=function(t){Gi(this.b,t)},r.ul=function(t){Gi(this.b,t)},e(Ti,Qe);var ji=!1;try{ji=1===new MouseEvent("click",{buttons:1}).buttons}catch(t){}function Ci(t,e){wi.call(this,t,{touchstart:this.rq,touchmove:this.qq,touchend:this.pq,touchcancel:this.oq}),this.a=t.i,this.j=e,this.i=void 0,this.g=0,this.c=void 0}function Li(t,e,o){function i(){e.preventDefault()}for(var r,n,s=Array.prototype.slice.call(e.changedTouches),a=s.length,p=0;p<a;++p){h=t,r=e,n=s[p],(r=Fi(r,n)).pointerId=n.identifier+2,r.bubbles=!0,r.cancelable=!0,r.detail=h.g,r.button=0,r.buttons=1,r.width=n.webkitRadiusX||n.radiusX||0,r.height=n.webkitRadiusY||n.radiusY||0,r.pressure=n.webkitForce||n.force||.5,r.isPrimary=h.i===n.identifier,r.pointerType="touch",r.clientX=n.clientX,r.clientY=n.clientY,r.screenX=n.screenX,r.screenY=n.screenY;var h=r;h.preventDefault=i,o.call(t,e,h)}}function Ri(t,e){var o,i=t.j.i;e=e.changedTouches[0],t.i===e.identifier&&(o=[e.clientX,e.clientY],i.push(o),setTimeout(function(){V(i,o)},2500))}function Ii(t){eo.call(this),this.g=t,this.i={},this.f={},this.a=[],ui?Ni(this,new Ei(this)):ci?Ni(this,new Pi(this)):(Ni(this,t=new xi(this)),li&&Ni(this,new Ci(this,t))),t=this.a.length;for(var e,o,i=0;i<t;i++)e=this.a[i],o=this,Object.keys(e.f).forEach(function(t){d(this.g,t,this.c,this)},o)}function Ni(t,o){var e=Object.keys(o.f);e&&(e.forEach(function(t){var e=o.f[t];e&&(this.f[t]=e.bind(o))},t),t.a.push(o))}function Fi(t,e){for(var o,i={},r=0,n=Bi.length;r<n;r++)i[o=Bi[r][0]]=t[o]||e[o]||Bi[r][1];return i}function ki(t,e,o){e.bubbles=!1,Ui(t,"pointerleave",e,o)}function Di(t,e,o){t.out(e,o);var i=e.target,r=e.relatedTarget;i&&r&&i.contains(r)||ki(t,e,o)}function Oi(t,e,o){e.bubbles=!0,Ui(t,"pointerover",e,o);var i=e.target,r=e.relatedTarget;i&&r&&i.contains(r)||(e.bubbles=!1,Ui(t,"pointerenter",e,o))}function Ui(t,e,o,i){t.b(new Ti(e,i,o))}function Gi(t,e){t.b(new Ti(e.type,e,e))}e(Ci,wi),(r=Ci.prototype).ij=function(){this.g=0,this.c=void 0},r.rq=function(t){var e=t.touches,o=Object.keys(this.a),i=o.length;if(i>=e.length){for(var r=[],n=0;n<i;++n){var s,a=o[n],p=this.a[a];if(!(s=1==a))t:{for(var h=e.length,l=0;l<h;l++)if((s=e[l]).identifier===a-2){s=!0;break t}s=!1}s||r.push(p.out)}for(n=0;n<r.length;++n)this.Kf(t,r[n])}e=t.changedTouches[0],(!(o=Object.keys(this.a).length)||1===o&&1..toString()in this.a)&&(this.i=e.identifier,void 0!==this.c)&&clearTimeout(this.c),Ri(this,t),this.g++,Li(this,t,this.cp)},r.cp=function(t,e){this.a[e.pointerId]={target:e.target,out:e,Wi:e.target};var o=this.b;e.bubbles=!0,Ui(o,"pointerover",e,t),o=this.b,e.bubbles=!1,Ui(o,"pointerenter",e,t),Ui(this.b,"pointerdown",e,t)},r.qq=function(t){t.preventDefault(),Li(this,t,this.km)},r.km=function(t,e){var o,i,r=this.a[e.pointerId];r&&(o=r.out,i=r.Wi,Ui(this.b,"pointermove",e,t),o&&i!==e.target&&(o.relatedTarget=e.target,e.relatedTarget=i,o.target=i,e.target?(Di(this.b,o,t),Oi(this.b,e,t)):(e.target=i,e.relatedTarget=null,this.Kf(t,e))),r.out=e,r.Wi=e.target)},r.pq=function(t){Ri(this,t),Li(this,t,this.sq)},r.sq=function(t,e){Ui(this.b,"pointerup",e,t),this.b.out(e,t),ki(this.b,e,t),delete this.a[e.pointerId],e.isPrimary&&(this.i=void 0,this.c=setTimeout(this.ij.bind(this),200))},r.oq=function(t){Li(this,t,this.Kf)},r.Kf=function(t,e){this.b.cancel(e,t),this.b.out(e,t),ki(this.b,e,t),delete this.a[e.pointerId],e.isPrimary&&(this.i=void 0,this.c=setTimeout(this.ij.bind(this),200))},e(Ii,eo),Ii.prototype.c=function(t){var e=this.f[t.type];e&&e(t)},Ii.prototype.out=function(t,e){t.bubbles=!0,Ui(this,"pointerout",t,e)},Ii.prototype.cancel=function(t,e){Ui(this,"pointercancel",t,e)};var Bi=[["bubbles",!(Ii.prototype.ka=function(){for(var t,e,o=this.a.length,i=0;i<o;i++)t=this.a[i],e=this,Object.keys(t.f).forEach(function(t){He(this.g,t,this.c,this)},e);eo.prototype.ka.call(this)})],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]];function Xi(t,e){eo.call(this),this.i=t,this.j=0,this.o=!1,this.f=[],this.D=e?e*ni:ni,this.c=null,t=this.i.a,this.S=0,this.u={},this.g=new Ii(t),this.a=null,this.l=d(this.g,"pointerdown",this.Ol,this),this.v=d(this.g,"pointermove",this.Lp,this)}function Vi(t,e){"pointerup"==e.type||"pointercancel"==e.type?delete t.u[e.pointerId]:"pointerdown"==e.type&&(t.u[e.pointerId]=!0),t.S=Object.keys(t.u).length}function Wi(t,e){return Math.abs(e.clientX-t.c.clientX)>t.D||Math.abs(e.clientY-t.c.clientY)>t.D}function Zi(t,e){this.l=t,this.c=e,this.b=[],this.i=[],this.a={}}function Ki(t){var e=t.b,o=t.i,i=e[0];return 1==e.length?(e.length=0,o.length=0):(e[0]=e.pop(),o[0]=o.pop(),zi(t,0)),e=t.c(i),delete t.a[e],i}function zi(t,e){for(var o=t.b,i=t.i,r=o.length,n=o[e],s=i[e],a=e;e<r>>1;){var p=2*e+1,h=2*e+2,p=h<r&&i[h]<i[p]?h:p;o[e]=o[p],i[e]=i[p],e=p}o[e]=n,i[e]=s,Yi(t,a,e)}function Yi(t,e,o){var i=t.b;t=t.i;for(var r=i[o],n=t[o];e<o;){var s=o-1>>1;if(!(t[s]>n))break;i[o]=i[s],t[o]=t[s],o=s}i[o]=r,t[o]=n}function Hi(t){for(var e=t.l,o=t.b,i=t.i,r=0,n=o.length,s=0;s<n;++s){var a=o[s],p=e(a);1/0==p?delete t.a[t.c(a)]:(i[r]=p,o[r++]=a)}for(o.length=r,i.length=r,e=(t.b.length>>1)-1;0<=e;e--)zi(t,e)}function qi(e,t){Zi.call(this,function(t){return e.apply(null,t)},function(t){return t[0].bb()}),this.v=t,this.j=0,this.g={}}function Ji(t,e,o){for(var i,r,n=0;t.j<e&&n<o&&0<t.b.length;)r=(i=Ki(t)[0]).bb(),0!==i.getState()||r in t.g||(t.g[r]=!0,++t.j,++n,i.load())}function _i(t){if(void 0!==t)return 0}function $i(t,e){if(void 0!==t)return t+e}function Qi(t,e){return 2<(e=-1===(e=(t=void 0!==e?t.toFixed(e):""+t).indexOf("."))?t.length:e)?t:Array(3-e).join("0")+t}function tr(t){t=(""+t).split(".");for(var e=["1","3"],o=0;o<Math.max(t.length,e.length);o++){var i=parseInt(t[o]||"0",10),r=parseInt(e[o]||"0",10);if(r<i)return 1;if(i<r)return-1}return 0}function er(t,e){return t[0]+=e[0],t[1]+=e[1],t}function or(t,e){var o=t[0],i=(t=t[1],e[0]),r=e[1],i=(e=i[0],i[1]),n=r[0],s=n-e,a=(r=r[1])-i;return o=(o=s||a?(s*(o-e)+a*(t-i))/(s*s+a*a||0):0)<=0?(t=e,i):1<=o?(t=n,r):(t=e+o*s,i+o*a),[t,o]}function ir(t,e,o){e=rt(e+180,360)-180;var i=Math.abs(3600*e),r=(o=o||0,Math.pow(10,o)),n=Math.floor(i/3600),s=Math.floor((i-3600*n)/60);return 60<=(i=Math.ceil((i-3600*n-60*s)*r)/r)&&(i=0,s+=1),60<=s&&(s=0,n+=1),n+"° "+Qi(s)+"′ "+Qi(i,o)+"″"+(e?" "+t.charAt(e<0?1:0):"")}function rr(t,e,o){return t?e.replace("{x}",t[0].toFixed(o)).replace("{y}",t[1].toFixed(o)):""}function nr(t,e){for(var o=!0,i=t.length-1;0<=i;--i)if(t[i]!=e[i]){o=!1;break}return o}function sr(t,e){var o=Math.cos(e),i=(e=Math.sin(e),t[1]*o+t[0]*e);return t[0]=t[0]*o-t[1]*e,t[1]=i,t}function ar(t,e){t[0]*=e,t[1]*=e}function pr(t,e){var o=t[0]-e[0];return o*o+(t=t[1]-e[1])*t}function hr(t,e){return Math.sqrt(pr(t,e))}function lr(t,e){return pr(t,or(t,e))}function ur(t,e){return rr(t,"{x}, {y}",e)}function cr(){return!0}function fr(){return!1}function yr(){ro.call(this),this.l=vt(),this.v=-1,this.f={},this.o=this.g=0}function gr(t,e,o,i,r,n){for(var s=n||[],a=0;e<o;e+=i){var p=t[e],h=t[e+1];s[a++]=r[0]*p+r[2]*h+r[4],s[a++]=r[1]*p+r[3]*h+r[5]}return n&&s.length!=a&&(s.length=a),s}function dr(t,e,o,i,r,n,s){for(var a,p=s||[],h=0;e<o;e+=i)for(p[h++]=t[e]+r,p[h++]=t[e+1]+n,a=e+2;a<e+i;++a)p[h++]=t[a];return s&&p.length!=h&&(p.length=h),p}function b(){yr.call(this),this.ja="XY",this.a=2,this.A=null}function vr(t){var e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function br(t,e,o){t.a=vr(e),t.ja=e,t.A=o}function mr(t,e,o,i){if(e)o=vr(e);else{for(e=0;e<i;++e){if(!o.length)return t.ja="XY",void(t.a=2);o=o[0]}var r;2==(o=o.length)?r="XY":3==o?r="XYZ":4==o&&(r="XYZM"),e=r}t.ja=e,t.a=o}function wr(t,e,o,i){for(var r=0,n=t[o-i],s=t[o-i+1];e<o;e+=i)var a=t[e],p=t[e+1],r=r+(s*a-n*p),n=a,s=p;return r/2}function xr(t,e,o,i){for(var r=0,n=0,s=o.length;n<s;++n){var a=o[n],r=r+wr(t,e,a,i);e=a}return r}function Sr(t,e,o,i,r,n,s){var a=t[e],p=t[e+1],h=t[o]-a,l=t[o+1]-p;if(h||l)if(1<(n=((r-a)*h+(n-p)*l)/(h*h+l*l)))e=o;else if(0<n){for(r=0;r<i;++r)s[r]=nt(t[e+r],t[o+r],n);return void(s.length=i)}for(r=0;r<i;++r)s[r]=t[e+r];s.length=i}function Mr(t,e,o,i,r){var n=t[e],s=t[e+1];for(e+=i;e<o;e+=i){var a=t[e],p=t[e+1];r<(n=ot(n,s,a,p))&&(r=n),n=a,s=p}return r}function Pr(t,e,o,i,r){for(var n=0,s=o.length;n<s;++n){var a=o[n];r=Mr(t,e,a,i,r),e=a}return r}function Ar(t,e,o,i,r,n,s,a,p,h,l){if(e!=o)if(r){for(var u=l||[NaN,NaN],c=e+i;c<o;)if(Sr(t,c-i,c,i,s,a,u),(f=ot(s,a,u[0],u[1]))<h){for(h=f,l=0;l<i;++l)p[l]=u[l];c+=p.length=i}else c+=i*Math.max((Math.sqrt(f)-Math.sqrt(h))/r|0,1);if(n&&(Sr(t,o-i,e,i,s,a,u),(f=ot(s,a,u[0],u[1]))<h)){for(h=f,l=0;l<i;++l)p[l]=u[l];p.length=i}}else{var f=ot(s,a,t[e],t[e+1]);if(f<h){for(l=0;l<i;++l)p[l]=t[e+l];return p.length=i,f}}return h}function Er(t,e,o,i,r,n,s,a,p,h,l){l=l||[NaN,NaN];for(var u=0,c=o.length;u<c;++u){var f=o[u];h=Ar(t,e,f,i,r,n,s,a,p,h,l),e=f}return h}function Tr(t,e){for(var o=0,i=0,r=e.length;i<r;++i)t[o++]=e[i];return o}function jr(t,e,o,i){for(var r=0,n=o.length;r<n;++r)for(var s=o[r],a=0;a<i;++a)t[e++]=s[a];return e}function Cr(t,e,o,i,r){r=r||[];for(var n=0,s=0,a=o.length;s<a;++s)e=jr(t,e,o[s],i),r[n++]=e;return r.length=n,r}function Lr(t,e,o,i,r){r=void 0!==r?r:[];for(var n=0;e<o;e+=i)r[n++]=t.slice(e,e+i);return r.length=n,r}function Rr(t,e,o,i,r){r=void 0!==r?r:[];for(var n=0,s=0,a=o.length;s<a;++s){var p=o[s];r[n++]=Lr(t,e,p,i,r[n]),e=p}return r.length=n,r}function Ir(t,e,o,i,r,n,s){var a=(o-e)/i;if(a<3)for(;e<o;e+=i)n[s++]=t[e],n[s++]=t[e+1];else{var p=Array(a);p[0]=1,p[a-1]=1,o=[e,o-i];for(var h=0;0<o.length;){for(var l=o.pop(),u=o.pop(),c=0,f=t[u],y=t[u+1],g=t[l],d=t[l+1],v=u+i;v<l;v+=i){var b=et(t[v],t[v+1],f,y,g,d);c<b&&(h=v,c=b)}r<c&&(p[(h-e)/i]=1,u+i<h&&o.push(u,h),h+i<l)&&o.push(h,l)}for(v=0;v<a;++v)p[v]&&(n[s++]=t[e+v*i],n[s++]=t[e+v*i+1])}return s}function Nr(t,e,o,i,r,n,s,a){for(var p=0,h=o.length;p<h;++p){var l=o[p];t:{var u=t,c=l,f=i,y=r,g=n,d=s;if(e!=c){var v=y*Math.round(u[e]/y),b=y*Math.round(u[e+1]/y);e+=f,g[d++]=v,g[d++]=b;do{var m=y*Math.round(u[e]/y);if(s=y*Math.round(u[e+1]/y),(e+=f)==c){g[d++]=m,g[d++]=s,s=d;break t}}while(m==v&&s==b);for(;e<c;){var w,x,S,M,P=y*Math.round(u[e]/y),A=y*Math.round(u[e+1]/y);e+=f,P==m&&A==s||((w=m-v)*(M=A-b)==(x=s-b)*(S=P-v)&&(w<0&&S<w||w==S||0<w&&w<S)&&(x<0&&M<x||x==M||0<x&&x<M)||(v=g[d++]=m,b=g[d++]=s),m=P,s=A)}g[d++]=m,g[d++]=s}s=d}a.push(s),e=l}return s}function Fr(t,e){b.call(this),this.c=this.j=-1,this.ma(t,e)}function kr(t,e,o){br(t,e,o),t.s()}function m(t,e){b.call(this),this.ma(t,e)}function Dr(t,e,o,i,r,n){for(var s=0,a=t[o-i],p=t[o-i+1];e<o;e+=i){var h=t[e],l=t[e+1];p<=n?n<l&&0<(h-a)*(n-p)-(r-a)*(l-p)&&s++:l<=n&&(h-a)*(n-p)-(r-a)*(l-p)<0&&s--,a=h,p=l}return s}function Or(t,e,o,i,r,n){if(!o.length||!Dr(t,e,o[0],i,r,n))return!1;var s;for(e=1,s=o.length;e<s;++e)if(Dr(t,o[e-1],o[e],i,r,n))return!1;return!0}function Ur(t,e,o,i,r,n,s){for(var a=r[n+1],p=[],h=o[0],l=t[h-i],u=t[h-i+1],c=e;c<h;c+=i){var f=t[c],y=t[c+1];(a<=u&&y<=a||u<=a&&a<=y)&&p.push(l=(a-u)/(y-u)*(f-l)+l),l=f,u=y}for(h=NaN,u=-1/0,p.sort(G),l=p[0],c=1,y=p.length;c<y;++c){var f=p[c],g=Math.abs(f-l);u<g&&Or(t,e,o,i,l=(l+f)/2,a)&&(h=l,u=g),l=f}return isNaN(h)&&(h=r[n]),s?(s.push(h,a),s):[h,a]}function Gr(t,e,o,i,r,n){for(var s,a=[t[e],t[e+1]],p=[];e+i<o;e+=i){if(p[0]=t[e+i],p[1]=t[e+i+1],s=r.call(n,a,p))return s;a[0]=p[0],a[1]=p[1]}return!1}function Br(t,e,o,i,l){var r=At(vt(),t,e,o,i);return!!Ot(l,r)&&(!!(yt(l,r)||r[0]>=l[0]&&r[2]<=l[2]||r[1]>=l[1]&&r[3]<=l[3])||Gr(t,e,o,i,function(t,e){var o,i,r,n,s,a=!1,p=dt(l,t),h=dt(l,e);return 1===p||1===h?a=!0:(o=l[0],i=l[1],r=l[2],n=l[3],s=e[0],t=((e=e[1])-t[1])/(s-t[0]),(a=(a=(a=2&h&&!(2&p)?o<=(a=s-(e-n)/t)&&a<=r:a)||!(4&h)||4&p?a:i<=(a=e-(s-r)*t)&&a<=n)||!(8&h)||8&p?a:o<=(a=s-(e-i)/t)&&a<=r)||!(16&h)||16&p||(a=i<=(a=e-(s-o)*t)&&a<=n)),a}))}function Xr(t,e,o,i,r){var n=o[0];if(!(Br(t,e,n,i,r)||Dr(t,e,n,i,r[0],r[1])||Dr(t,e,n,i,r[0],r[3])||Dr(t,e,n,i,r[2],r[1])||Dr(t,e,n,i,r[2],r[3])))return!1;if(1!==o.length)for(e=1,n=o.length;e<n;++e)if(function(e,o,i,r,t){return!Et(t,function(t){return!Dr(e,o,i,r,t[0],t[1])})}(t,o[e-1],o[e],i,r))return!1;return!0}function Vr(t,e,o,i){for(var r=0,n=t[o-i],s=t[o-i+1];e<o;e+=i)var a=t[e],p=t[e+1],r=r+(a-n)*(p+s),n=a,s=p;return 0<r}function Wr(t,e,o,i){for(var r=0,n=(i=void 0!==i&&i,0),s=e.length;n<s;++n){var a=e[n],r=Vr(t,r,a,o);if(n){if(i&&!r||!i&&r)return}else if(i&&r||!i&&!r)return;r=a}return 1}function Zr(t,e,o,i,r){r=void 0!==r&&r;for(var n=0,s=o.length;n<s;++n){var a=o[n],p=Vr(t,e,a,i);if(n?r&&!p||!r&&p:r&&p||!r&&!p)for(var p=t,h=a,l=i;e<h-l;){for(var u=0;u<l;++u){var c=p[e+u];p[e+u]=p[h-l+u],p[h-l+u]=c}e+=l,h-=l}e=a}return e}function Kr(t,e,o,i){for(var r=0,n=0,s=e.length;n<s;++n)r=Zr(t,r,e[n],o,i);return r}function w(t,e){b.call(this),this.c=[],this.u=-1,this.D=null,this.I=this.C=this.B=-1,this.j=null,this.ma(t,e)}function zr(t){var e;return t.u!=t.i&&(e=Lt(t.G()),t.D=Ur(t.ec(),0,t.c,t.a,e,0),t.u=t.i),t.D}function Yr(t,e,o,i){var r,n=i||32;for(i=[],r=0;r<n;++r)X(i,t.offset(e,o,2*Math.PI*r/n));return i.push(i[0],i[1]),(t=new w(null)).ba("XY",i,[i.length]),t}function Hr(t){var e=t[0],o=t[1],i=t[2],e=[e,o,e,t=t[3],i,t,i,o,e,o];return(o=new w(null)).ba("XY",e,[e.length]),o}function qr(t,e,o){for(var i=e||32,r=t.qa(),n=new w(null,e=t.ja),i=r*(i+1),r=Array(i),s=0;s<i;s++)r[s]=0;return n.ba(e,r,[r.length]),Jr(n,t.wa(),t.pd(),o),n}function Jr(t,e,o,i){var r=t.ga(),n=t.ja,s=t.qa(),a=t.Bb(),p=r.length/s-1;i=i||0;for(var h,l,u=0;u<=p;++u)l=u*s,h=i+2*rt(u,p)*Math.PI/p,r[l]=e[0]+o*Math.cos(h),r[1+l]=e[1]+o*Math.sin(h);t.ba(n,r,a)}function h(t){ro.call(this),t=Xt({},t),this.o=[0,0],this.c=[],this.wf=this.wf.bind(this),this.v=ge(t.projection),_r(this,t)}function _r(t,e){var o,i,r,n,s,a,p,h,l,u,c,f={},y=(f.center=void 0!==e.center?e.center:null,void 0!==e.minZoom?e.minZoom:0),g=void 0!==e.maxZoom?e.maxZoom:28,d=void 0!==e.zoomFactor?e.zoomFactor:2;g=void 0!==e.resolutions?(o=(g=e.resolutions)[0],i=g[g.length-1],p=g,function(t,e,o){if(void 0!==t)return(t=Q((t=B(p,t,o))+e,0,p.length-1))!=(e=Math.floor(t))&&e<p.length-1?p[e]/Math.pow(p[e]/p[e+1],t-e):p[e]}):(r=(h=((i=(o=ge(e.projection)).G())?Math.max(Dt(i),It(i)):360*Yt.degrees/o.sc())/256/Math.pow(2,0))/Math.pow(2,28),void 0!==(o=e.maxResolution)?y=0:o=h/Math.pow(d,y),void 0===(i=e.minResolution)&&(i=void 0!==e.maxZoom?void 0!==e.maxResolution?o/Math.pow(d,g):h/Math.pow(d,g):r),g=y+Math.floor(Math.log(o/i)/Math.log(d)),i=o/Math.pow(d,g-y),n=d,s=o,a=g-y,function(t,e,o){if(void 0!==t)return t=Math.max(Math.floor(Math.log(s/t)/Math.log(n)+(-o/2+.5))+e,0),void 0!==a&&(t=Math.min(t,a)),s/Math.pow(n,t)}),t.a=o,t.f=i,t.C=d,t.j=e.resolutions,t.l=y,y=void 0===e.enableRotation||e.enableRotation?void 0===(y=e.constrainRotation)||!0===y?(u=it(5),function(t,e){if(void 0!==t)return Math.abs(t+e)<=u?0:t+e}):!1!==y&&"number"==typeof y?(h=y,l=2*Math.PI/h,function(t,e){if(void 0!==t)return Math.floor((t+e)/l+.5)*l}):$i:_i,t.g={center:void 0!==e.extent?(c=e.extent,function(t){if(t)return[Q(t[0],c[0],c[2]),Q(t[1],c[1],c[3])]}):Xe,resolution:g,rotation:y},void 0!==e.resolution?f.resolution=e.resolution:void 0!==e.zoom&&(f.resolution=t.constrainResolution(t.a,e.zoom-t.l)),f.rotation=void 0!==e.rotation?e.rotation:0,t.H(f),t.D=e}function $r(t,e){var o=Xt({},t.D);return void 0!==o.resolution?o.resolution=t.Pa():o.zoom=t.Hh(),o.center=t.wa(),o.rotation=t.Qa(),Xt({},o,e)}function Qr(t,e,o){var i,r=t.wa();return void 0!==r&&(sr(i=[r[0]-o[0],r[1]-o[1]],e-t.Qa()),er(i,o)),i}function tn(t,e,o){var i,r=t.wa();return t=t.Pa(),i=void 0!==r&&void 0!==t?[o[0]-e*(o[0]-r[0])/t,o[1]-e*(o[1]-r[1])/t]:i}function en(t){var e=[100,100];return t='.ol-viewport[data-view="'+U(t)+'"]',(t=document.querySelector(t))&&(t=getComputedStyle(t),e[0]=parseInt(t.width,10),e[1]=parseInt(t.height,10)),e}function on(t,e){return void 0!==e?(e[0]=t.o[0],e[1]=t.o[1],e):t.o.slice()}function rn(t){return t.wa()&&void 0!==t.Pa()}function nn(t,e,o){t.o[e]+=o,t.s()}function sn(t,e,o){this.f=t,this.c=e,this.g=o,this.b=[],this.a=this.i=0}function an(t){t.b.length=0,t.i=0,t.a=0}function pn(t){ro.call(this),this.v=null,this.Ha(!0),this.handleEvent=t.handleEvent}function hn(t,e,o,i){var r,n;void 0!==e&&(r=t.Qa(),n=t.wa(),void 0!==r&&n&&0<i?t.animate({rotation:e,anchor:o,duration:i,easing:Io}):t.rotate(e,o))}function ln(t,e,o,i){var r,n=t.Pa();e=t.constrainResolution(n,e,0),o&&void 0!==e&&e!==n&&(r=t.wa(),o=tn(t,e,o),o=t.Ec(o),o=[(e*r[0]-n*o[0])/(e-n),(e*r[1]-n*o[1])/(e-n)]),un(t,e,o,i)}function un(t,e,o,i){var r,n;e&&(r=t.Pa(),n=t.wa(),void 0!==r&&n&&e!==r&&i?t.animate({resolution:e,anchor:o,duration:i,easing:Io}):(o&&(o=tn(t,e,o),t.ob(o)),t.Vc(e)))}function cn(t){this.a=(t=t||{}).delta||1,pn.call(this,{handleEvent:fn}),this.g=void 0!==t.duration?t.duration:250}function fn(t){var e=!1,o=t.originalEvent;return"dblclick"==t.type&&(e=t.coordinate,o=o.shiftKey?-this.a:this.a,ln(t.map.Z(),o,e,this.g),t.preventDefault(),e=!0),!e}function yn(t){return(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}function gn(t){return!((t=t.originalEvent).button||ii&&ri&&t.ctrlKey)}function dn(t){return"pointermove"==t.type}function vn(t){return"singleclick"==t.type}function bn(t){return!(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}function mn(t){return!(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}function wn(t){return"INPUT"!==(t=t.originalEvent.target.tagName)&&"SELECT"!==t&&"TEXTAREA"!==t}function xn(t){return O(t.b,56),"mouse"==t.b.pointerType}function Sn(t){return(t=t.b).isPrimary&&0===t.button}function Mn(t){pn.call(this,{handleEvent:(t=t||{}).handleEvent||An}),this.yf=t.handleDownEvent||fr,this.If=t.handleDragEvent||Y,this.Jf=t.handleMoveEvent||Y,this.sk=t.handleUpEvent||fr,this.D=!1,this.na={},this.o=[]}function Pn(t){for(var e=t.length,o=0,i=0,r=0;r<e;r++)o+=t[r].clientX,i+=t[r].clientY;return[o/e,i/e]}function An(t){var e,o;return!(t instanceof mi&&(e=!1,"pointerdown"!==(o=t.type)&&"pointerdrag"!==o&&"pointerup"!==o||(o=t.b,"pointerup"==t.type?delete this.na[o.pointerId]:("pointerdown"==t.type||o.pointerId in this.na)&&(this.na[o.pointerId]=o),this.o=Wt(this.na)),this.D?"pointerdrag"==t.type?this.If(t):"pointerup"==t.type&&(this.D=this.sk(t)&&0<this.o.length):"pointerdown"==t.type?(this.D=t=this.yf(t),e=this.Xc(t)):"pointermove"==t.type&&this.Jf(t),e))}function En(t){Mn.call(this,{handleDownEvent:Cn,handleDragEvent:Tn,handleUpEvent:jn}),this.a=(t=t||{}).kinetic,this.g=null,this.u=t.condition||bn,this.j=!1}function Tn(t){var e,o,i=this.o,r=Pn(i);i.length==this.l?(this.a&&this.a.b.push(r[0],r[1],Date.now()),this.g&&(ar(o=[o=this.g[0]-r[0],r[1]-this.g[1]],(e=(t=t.map.Z()).getState()).resolution),sr(o,e.rotation),er(o,e.center),o=t.Ec(o),t.ob(o))):this.a&&an(this.a),this.g=r,this.l=i.length}function jn(t){var e,o,i,r=t.map;return t=r.Z(),this.o.length?(this.a&&an(this.a),!(this.g=null)):(!this.j&&this.a&&function(t){if(!(t.b.length<6)){var e=Date.now()-t.g,o=t.b.length-3;if(!(t.b[2+o]<e)){for(var i,r=o-3;0<r&&t.b[r+2]>e;)r-=3;if(!((e=t.b[2+o]-t.b[r+2])<1e3/60))return i=t.b[o]-t.b[r],o=t.b[1+o]-t.b[r+1],t.i=Math.atan2(o,i),t.a=Math.sqrt(i*i+o*o)/e,t.a>t.c}}}(this.a)&&(e=((e=this.a).c-e.a)/e.f,o=this.a.i,i=t.wa(),i=r.Ja(i),r=r.Wa([i[0]-e*Math.cos(o),i[1]-e*Math.sin(o)]),t.animate({center:t.Ec(r),duration:500,easing:Io})),nn(t,1,-1),!1)}function Cn(t){var e;return!!(0<this.o.length&&this.u(t))&&(e=t.map.Z(),this.g=null,this.D||nn(e,1,1),on(e)[0]&&e.ob(t.frameState.viewState.center),this.a&&an(this.a),this.j=1<this.o.length,!0)}function Ln(t){t=t||{},Mn.call(this,{handleDownEvent:Nn,handleDragEvent:Rn,handleUpEvent:In}),this.g=t.condition||yn,this.a=void 0,this.j=void 0!==t.duration?t.duration:250}function Rn(t){var e,o,i;xn(t)&&(e=(o=t.map).Z()).g.rotation!==_i&&(o=o.Ob(),t=t.pixel,t=Math.atan2(o[1]/2-t[1],t[0]-o[0]/2),void 0!==this.a&&(o=t-this.a,i=e.Qa(),hn(e,i-o)),this.a=t)}function In(t){if(!xn(t))return!0;nn(t=t.map.Z(),1,-1);var e=t.Qa(),o=this.j,e=t.constrainRotation(e,0);return hn(t,e,void 0,o),!1}function Nn(t){return!!(xn(t)&&gn(t)&&this.g(t))&&(nn(t.map.Z(),1,1),!(this.a=void 0))}function Fn(t){this.Gc=null,this.a=document.createElement("div"),this.a.style.position="absolute",this.a.className="ol-box "+t,this.i=this.c=this.b=null}function kn(t){var e=t.c,o=t.i;(t=t.a.style).left=Math.min(e[0],o[0])+"px",t.top=Math.min(e[1],o[1])+"px",t.width=Math.abs(o[0]-e[0])+"px",t.height=Math.abs(o[1]-e[1])+"px"}function Dn(t){var e=t.c,o=t.i;(e=[e,[e[0],o[1]],o,[o[0],e[1]]].map(t.b.Wa,t.b))[4]=e[0].slice(),t.Gc?t.Gc.ma([e]):t.Gc=new w([e])}function On(t){Mn.call(this,{handleDownEvent:Xn,handleDragEvent:Gn,handleUpEvent:Bn}),this.a=new Fn((t=t||{}).className||"ol-dragbox"),this.u=void 0!==t.minArea?t.minArea:64,this.g=null,this.C=t.condition||cr,this.l=t.boxEndCondition||Un}function Un(t,e,o){return(t=o[0]-e[0])*t+(e=o[1]-e[1])*e>=this.u}function Gn(t){var e,o;xn(t)&&(e=this.a,o=t.pixel,e.c=this.g,e.i=o,Dn(e),kn(e),this.b(new Kn(Wn,t.coordinate,t)))}function Bn(t){return!xn(t)||(this.a.setMap(null),this.l(t,this.g,t.pixel)&&(this.j(t),this.b(new Kn(Zn,t.coordinate,t))),!1)}function Xn(t){var e,o;return!!(xn(t)&&gn(t)&&this.C(t))&&(this.g=t.pixel,this.a.setMap(t.map),e=this.a,o=this.g,e.c=this.g,e.i=o,Dn(e),kn(e),this.b(new Kn(Vn,t.coordinate,t)),!0)}e(Xi,eo),(r=Xi.prototype).Jh=function(t){Vi(this,t);var e,o=new mi("pointerup",this.i,t);this.b(o),this.o||t.button||(e=(o=this).c,t=new mi("click",o.i,e),o.b(t),o.j?(clearTimeout(o.j),o.j=0,t=new mi("dblclick",o.i,e),o.b(t)):o.j=setTimeout(function(){this.j=0;var t=new mi("singleclick",this.i,e);this.b(t)}.bind(o),250)),this.S||(this.f.forEach(qe),this.f.length=0,this.o=!1,this.c=null,$e(this.a),this.a=null)},r.Ol=function(t){Vi(this,t);var e=new mi("pointerdown",this.i,t);this.b(e),this.c=t,this.f.length||(this.a=new Ii(document),this.f.push(d(this.a,"pointermove",this.Hm,this),d(this.a,"pointerup",this.Jh,this),d(this.g,"pointercancel",this.Jh,this)))},r.Hm=function(t){var e;Wi(this,t)&&(this.o=!0,e=new mi("pointerdrag",this.i,t,this.o),this.b(e)),t.preventDefault()},r.Lp=function(t){this.b(new mi(t.type,this.i,t,!(!this.c||!Wi(this,t))))},r.ka=function(){this.v&&(qe(this.v),this.v=null),this.l&&(qe(this.l),this.l=null),this.f.forEach(qe),this.f.length=0,this.a&&($e(this.a),this.a=null),this.g&&($e(this.g),this.g=null),eo.prototype.ka.call(this)},Zi.prototype.clear=function(){this.b.length=0,this.i.length=0,Vt(this.a)},Zi.prototype.f=function(t){O(!(this.c(t)in this.a),31);var e=this.l(t);return 1/0!=e&&(this.b.push(t),this.i.push(e),this.a[this.c(t)]=!0,Yi(this,0,this.b.length-1),!0)},e(qi,Zi),qi.prototype.f=function(t){var e=Zi.prototype.f.call(this,t);return e&&d(t[0],"change",this.o,this),e},qi.prototype.o=function(t){var e=(t=t.target).getState();2!==e&&3!==e&&4!==e&&5!==e||(He(t,"change",this.o,this),(t=t.bb())in this.g&&(delete this.g[t],--this.j),this.v())},e(yr,ro),(r=yr.prototype).Ab=function(t,e){return this.Kb(t[0],t[1],e=e||[NaN,NaN],1/0),e},r.sb=function(t){return this.Mc(t[0],t[1])},r.Mc=fr,r.G=function(t){this.v!=this.i&&(this.l=this.se(this.l),this.v=this.i);var e=this.l;return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]):t=e,t},r.Rb=function(t){return this.Vd(t*t)},r.tb=function(t,e){return this.Dc(me(t,e)),this},e(b,yr),(r=b.prototype).Mc=fr,r.se=function(t){return xt(this.A,0,this.A.length,this.a,t)},r.ac=function(){return this.A.slice(0,this.a)},r.ga=function(){return this.A},r.bc=function(){return this.A.slice(this.A.length-this.a)},r.cc=function(){return this.ja},r.Vd=function(t){if(this.o!=this.i&&(Vt(this.f),this.g=0,this.o=this.i),!(t<0||this.g&&t<=this.g)){var e=t.toString();if(this.f.hasOwnProperty(e))return this.f[e];var o=this.hd(t);if(o.ga().length<this.A.length)return this.f[e]=o;this.g=t}return this},r.hd=function(){return this},r.qa=function(){return this.a},r.Dc=function(t){this.A&&(t(this.A,this.A,this.a),this.s())},r.rotate=function(t,e){var o=this.ga();if(o){var i=o.length,r=this.qa(),n=o||[],s=Math.cos(t),a=(t=Math.sin(t),e[0]);e=e[1];for(var p=0,h=0;h<i;h+=r){var l=o[h]-a,u=o[h+1]-e;for(n[p++]=a+l*s-u*t,n[p++]=e+l*t+u*s,l=h+2;l<h+r;++l)n[p++]=o[l]}o&&n.length!=p&&(n.length=p),this.s()}},r.scale=function(t,e,o){var i=void 0===e?t:e;if(a=(a=o)||Lt(this.G()),o=this.ga()){e=o.length;for(var r=this.qa(),n=o||[],s=a[0],a=a[1],p=0,h=0;h<e;h+=r){var l=o[h]-s,u=o[h+1]-a;for(n[p++]=s+t*l,n[p++]=a+i*u,l=h+2;l<h+r;++l)n[p++]=o[l]}o&&n.length!=p&&(n.length=p),this.s()}},r.translate=function(t,e){var o=this.ga();o&&(dr(o,0,o.length,this.qa(),t,e,o),this.s())},e(Fr,b),(r=Fr.prototype).clone=function(){var t=new Fr(null);return kr(t,this.ja,this.A.slice()),t},r.Kb=function(t,e,o,i){return i<ct(this.G(),t,e)?i:(this.c!=this.i&&(this.j=Math.sqrt(Mr(this.A,0,this.A.length,this.a,0)),this.c=this.i),Ar(this.A,0,this.A.length,this.a,this.j,!0,t,e,o,i))},r.qn=function(){return wr(this.A,0,this.A.length,this.a)},r.X=function(){return Lr(this.A,0,this.A.length,this.a)},r.hd=function(t){var e=[];return e.length=Ir(this.A,0,this.A.length,this.a,t,e,0),kr(t=new Fr(null),"XY",e),t},r.U=function(){return"LinearRing"},r.Xa=function(){},r.ma=function(t,e){t?(mr(this,e,t,1),this.A||(this.A=[]),this.A.length=jr(this.A,0,t,this.a),this.s()):kr(this,"XY",null)},e(m,b),(r=m.prototype).clone=function(){var t=new m(null);return t.ba(this.ja,this.A.slice()),t},r.Kb=function(t,e,o,i){var r=this.A;if((t=ot(t,e,r[0],r[1]))<i){for(i=this.a,e=0;e<i;++e)o[e]=r[e];return o.length=i,t}return i},r.X=function(){return this.A?this.A.slice():[]},r.se=function(t){return wt(this.A,t)},r.U=function(){return"Point"},r.Xa=function(t){return gt(t,this.A[0],this.A[1])},r.ma=function(t,e){t?(mr(this,e,t,0),this.A||(this.A=[]),this.A.length=Tr(this.A,t),this.s()):this.ba("XY",null)},r.ba=function(t,e){br(this,t,e),this.s()},e(w,b),(r=w.prototype).pk=function(t){this.A?X(this.A,t.ga()):this.A=t.ga().slice(),this.c.push(this.A.length),this.s()},r.clone=function(){var t=new w(null);return t.ba(this.ja,this.A.slice(),this.c.slice()),t},r.Kb=function(t,e,o,i){return i<ct(this.G(),t,e)?i:(this.C!=this.i&&(this.B=Math.sqrt(Pr(this.A,0,this.c,this.a,0)),this.C=this.i),Er(this.A,0,this.c,this.a,this.B,!0,t,e,o,i))},r.Mc=function(t,e){return Or(this.ec(),0,this.c,this.a,t,e)},r.tn=function(){return xr(this.ec(),0,this.c,this.a)},r.X=function(t){var e;return void 0!==t?Zr(e=this.ec().slice(),0,this.c,this.a,t):e=this.A,Rr(e,0,this.c,this.a)},r.Bb=function(){return this.c},r.Tk=function(){return new m(zr(this))},r.Zk=function(){return this.c.length},r.Ch=function(t){var e;return t<0||this.c.length<=t?null:(kr(e=new Fr(null),this.ja,this.A.slice(t?this.c[t-1]:0,this.c[t])),e)},r.Sd=function(){for(var t=this.ja,e=this.A,o=this.c,i=[],r=0,n=0,s=o.length;n<s;++n){var a=o[n],p=new Fr(null);kr(p,t,e.slice(r,a)),i.push(p),r=a}return i},r.ec=function(){var t;return this.I!=this.i&&(Wr(t=this.A,this.c,this.a)?this.j=t:(this.j=t.slice(),this.j.length=Zr(this.j,0,this.c,this.a)),this.I=this.i),this.j},r.hd=function(t){var e=[],o=[];return e.length=Nr(this.A,0,this.c,this.a,Math.sqrt(t),e,0,o),(t=new w(null)).ba("XY",e,o),t},r.U=function(){return"Polygon"},r.Xa=function(t){return Xr(this.ec(),0,this.c,this.a,t)},r.ma=function(t,e){t?(mr(this,e,t,2),this.A||(this.A=[]),t=Cr(this.A,0,t,this.a,this.c),this.A.length=t.length?t[t.length-1]:0,this.s()):this.ba("XY",null,this.c)},r.ba=function(t,e,o){br(this,t,e),this.c=o,this.s()},e(h,ro),(r=h.prototype).animate=function(t){var e,o=Date.now(),i=this.wa().slice(),r=this.Pa(),n=this.Qa(),s=arguments.length;1<s&&"function"==typeof arguments[s-1]&&(e=arguments[s-1],--s);for(var a=[],p=0;p<s;++p){var h=arguments[p],l={start:o,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||No};h.center&&(l.Rg=i,l.Tg=h.center,i=l.Tg),void 0!==h.zoom?(l.tf=r,l.zd=this.constrainResolution(this.a,h.zoom-this.l,0),r=l.zd):h.resolution&&(l.tf=r,l.zd=h.resolution,r=l.zd),void 0!==h.rotation&&(l.Sg=n,l.uf=h.rotation,n=l.uf),l.callback=e,o+=l.duration,a.push(l)}this.c.push(a),nn(this,0,1),this.wf()},r.Ic=function(){return 0<on(this)[0]},r.Rk=function(){return 0<on(this)[1]},r.ed=function(){nn(this,0,-on(this)[0]);for(var t=0,e=this.c.length;t<e;++t){var o=this.c[t];o[0].callback&&o[0].callback(!1)}this.c.length=0},r.wf=function(){if(void 0!==this.u&&(cancelAnimationFrame(this.u),this.u=void 0),this.Ic()){for(var t=Date.now(),e=!1,o=this.c.length-1;0<=o;--o){for(var i=this.c[o],r=!0,n=0,s=i.length;n<s;++n){var a=i[n];if(!a.complete){var p,h,e=t-a.start;if(1<=(e=0<a.duration?e/a.duration:1)?(a.complete=!0,e=1):r=!1,e=a.easing(e),a.Rg&&(p=a.Rg[0],h=a.Rg[1],this.set("center",[p+e*(a.Tg[0]-p),h+e*(a.Tg[1]-h)])),a.tf&&a.zd&&(p=1===e?a.zd:a.tf+e*(a.zd-a.tf),a.anchor&&this.set("center",tn(this,p,a.anchor)),this.set("resolution",p)),void 0!==a.Sg&&void 0!==a.uf&&(e=1===e?a.uf:a.Sg+e*(a.uf-a.Sg),a.anchor&&this.set("center",Qr(this,e,a.anchor)),this.set("rotation",e)),e=!0,!a.complete)break}}r&&(this.c[o]=null,nn(this,0,-1),i=i[0].callback)&&i(!0)}this.c=this.c.filter(Boolean),e&&void 0===this.u&&(this.u=requestAnimationFrame(this.wf))}},r.Ec=function(t){return this.g.center(t)},r.constrainResolution=function(t,e,o){return this.g.resolution(t,e||0,o||0)},r.constrainRotation=function(t,e){return this.g.rotation(t,e||0)},r.wa=function(){return this.get("center")},r.dd=function(t){t=t||en(this);var e=this.wa(),o=(O(e,1),this.Pa()),i=(O(void 0!==o,2),this.Qa());return O(void 0!==i,3),Rt(e,o,i,t)},r.Nm=function(){return this.a},r.Pm=function(){return this.f},r.Om=function(){return this.Ce(this.f)},r.eq=function(t){_r(this,$r(this,{maxZoom:t}))},r.Qm=function(){return this.Ce(this.a)},r.fq=function(t){_r(this,$r(this,{minZoom:t}))},r.Rm=function(){return this.v},r.Pa=function(){return this.get("resolution")},r.Sm=function(){return this.j},r.ze=function(t,e){return e=e||en(this),Math.max(Dt(t)/e[0],It(t)/e[1])},r.Qa=function(){return this.get("rotation")},r.getState=function(){var t=this.wa(),e=this.v,o=this.Pa(),i=this.Qa();return{center:t.slice(),projection:void 0!==e?e:null,resolution:o,rotation:i}},r.Hh=function(){var t,e=this.Pa();return t=void 0!==e?this.Ce(e):t},r.Ce=function(t){if(t>=this.f&&t<=this.a){var e=this.l||0;if(this.j){if(e+=i=B(this.j,t,1),i==this.j.length-1)return e;var o=this.j[i],i=o/this.j[i+1]}else o=this.a,i=this.C;e+=Math.log(o/t)/Math.log(i)}return e},r.Qf=function(t,e){var o=(o=(e=e||{}).size)||en(this);t instanceof b?"Circle"===t.U()?(f=Hr(t=t.G())).rotate(this.Qa(),Lt(t)):f=t:(O(Array.isArray(t),24),O(!Ut(t),25),f=Hr(t));for(var i=e.padding||[0,0,0,0],r=void 0===e.constrainResolution||e.constrainResolution,n=void 0!==e.nearest&&e.nearest,s=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.constrainResolution(this.a,e.maxZoom-this.l,0):0,a=f.ga(),p=this.Qa(),p=(t=Math.cos(-p),Math.sin(-p)),h=1/0,l=1/0,u=-1/0,c=-1/0,f=f.qa(),y=0,g=a.length;y<g;y+=f)var d=a[y]*t-a[y+1]*p,v=a[y]*p+a[y+1]*t,h=Math.min(h,d),l=Math.min(l,v),u=Math.max(u,d),c=Math.max(c,v);o=this.ze([h,l,u,c],[o[0]-i[1]-i[3],o[1]-i[0]-i[2]]),o=isNaN(o)?s:Math.max(o,s),r&&(s=this.constrainResolution(o,0,0),o=s=!n&&s<o?this.constrainResolution(s,-1,0):s),t=[(s=(h+u)/2+(i[1]-i[3])/2*o)*t-(i=(l+c)/2+(i[0]-i[2])/2*o)*(p=-p),i*t+s*p],i=e.callback||Y,void 0!==e.duration?this.animate({resolution:o,center:t,duration:e.duration,easing:e.easing},i):(this.Vc(o),this.ob(t),setTimeout(i.bind(void 0,!0),0))},r.uk=function(t,e,o){var i=this.Qa(),r=Math.cos(-i),i=Math.sin(-i),n=t[0]*r-t[1]*i,s=(t=t[1]*r+t[0]*i,this.Pa()),n=n+(e[0]/2-o[0])*s;t+=(o[1]-e[1]/2)*s,this.ob([n*r-t*(i=-i),t*r+n*i])},r.rotate=function(t,e){void 0!==e&&(e=Qr(this,t,e),this.ob(e)),this.Oe(t)},r.ob=function(t){this.set("center",t),this.Ic()&&this.ed()},r.Vc=function(t){this.set("resolution",t),this.Ic()&&this.ed()},r.Oe=function(t){this.set("rotation",t),this.Ic()&&this.ed()},r.lq=function(t){t=this.constrainResolution(this.a,t-this.l,0),this.Vc(t)},e(pn,ro),pn.prototype.c=function(){return this.get("active")},pn.prototype.f=function(){return this.v},pn.prototype.Ha=function(t){this.set("active",t)},pn.prototype.setMap=function(t){this.v=t},e(cn,pn),e(Mn,pn),Mn.prototype.Xc=function(t){return t},e(En,Mn),En.prototype.Xc=fr,e(Ln,Mn),Ln.prototype.Xc=fr,e(Fn,_e),Fn.prototype.ka=function(){this.setMap(null)},Fn.prototype.setMap=function(t){var e;this.b&&(this.b.C.removeChild(this.a),(e=this.a.style).left=e.top=e.width=e.height="inherit"),(this.b=t)&&this.b.C.appendChild(this.a)},Fn.prototype.V=function(){return this.Gc},e(On,Mn),On.prototype.V=function(){return this.a.V()},On.prototype.j=Y;var Vn="boxstart",Wn="boxdrag",Zn="boxend";function Kn(t,e,o){Qe.call(this,t),this.coordinate=e,this.mapBrowserEvent=o}function zn(t){var e=(t=t||{}).condition||mn;this.B=void 0!==t.duration?t.duration:200,this.I=void 0!==t.out&&t.out,On.call(this,{condition:e,className:t.className||"ol-dragzoom"})}function Yn(t){pn.call(this,{handleEvent:Hn}),t=t||{},this.a=function(t){return bn(t)&&wn(t)},this.g=t.condition||this.a,this.j=void 0!==t.duration?t.duration:100,this.o=void 0!==t.pixelDelta?t.pixelDelta:128}function Hn(t){var e,o,i,r,n=!1;return"keydown"==t.type&&(e=t.originalEvent.keyCode,!this.g(t)||40!=e&&37!=e&&39!=e&&38!=e||(o=(n=t.map.Z()).Pa()*this.o,r=i=0,40==e?r=-o:37==e?i=-o:39==e?i=o:r=o,sr(o=[i,r],n.Qa()),e=this.j,(i=n.wa())&&(o=n.Ec([i[0]+o[0],i[1]+o[1]]),e?n.animate({duration:e,easing:Fo,center:o}):n.ob(o)),t.preventDefault(),n=!0)),!n}function qn(t){pn.call(this,{handleEvent:Jn}),this.g=(t=t||{}).condition||wn,this.a=t.delta||1,this.j=void 0!==t.duration?t.duration:100}function Jn(t){var e,o=!1;return"keydown"!=t.type&&"keypress"!=t.type||(e=t.originalEvent.charCode,!this.g(t))||43!=e&&45!=e||(o=43==e?this.a:-this.a,ln(e=t.map.Z(),o,void 0,this.j),t.preventDefault(),o=!0),!o}function _n(t){pn.call(this,{handleEvent:$n}),t=t||{},this.j=0,this.D=void 0!==t.duration?t.duration:250,this.na=void 0!==t.timeout?t.timeout:80,this.C=void 0===t.useAnchor||t.useAnchor,this.R=t.constrainResolution||!1,this.a=null,this.l=this.o=this.u=this.g=void 0}function $n(t){if("wheel"!==(s=t.type)&&"mousewheel"!==s)return!0;t.preventDefault();var e,o,i,r,n,s=t.map,a=t.originalEvent;return this.C&&(this.a=t.coordinate),"wheel"==t.type?(e=a.deltaY,ei&&a.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=ni),a.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)):"mousewheel"==t.type&&(e=-a.wheelDeltaY,oi)&&(e/=3),0!==e&&(t=Date.now(),void 0===this.g&&(this.g=t),(!this.o||400<t-this.g)&&(this.o=Math.abs(e)<4?Qn:ts),this.o===Qn?(s=s.Z(),this.l?clearTimeout(this.l):nn(s,1,1),this.l=setTimeout(this.B.bind(this),400),a=s.Pa()*Math.pow(2,e/300),o=s.f,i=s.a,r=0,a<o?(a=Math.max(a,o/1.5),r=1):i<a&&(a=Math.min(a,1.5*i),r=-1),this.a&&(n=tn(s,a,this.a),s.ob(s.Ec(n))),s.Vc(a),!r&&this.R&&s.animate({resolution:s.constrainResolution(a,0<e?-1:1),easing:Io,anchor:this.a,duration:this.D}),0<r?s.animate({resolution:o,easing:Io,anchor:this.a,duration:500}):r<0&&s.animate({resolution:i,easing:Io,anchor:this.a,duration:500}),this.g=t):(this.j+=e,e=Math.max(this.na-(t-this.g),0),clearTimeout(this.u),this.u=setTimeout(this.I.bind(this,s),e))),!1}e(Kn,Qe),e(zn,On),zn.prototype.j=function(){var t=(r=this.v).Z(),e=r.Ob(),o=this.V().G();if(this.I){for(var i=t.dd(e),o=[r.Ja(jt(o)),r.Ja(kt(o))],r=mt(void 0),n=0,s=o.length;n<s;++n)Pt(r,o[n]);Gt(i,1/(o=t.ze(r,e))),o=i}e=t.constrainResolution(t.ze(o,e)),i=Lt(o),i=t.Ec(i),t.animate({resolution:e,center:i,duration:this.B,easing:Io})},e(Yn,pn),e(qn,pn),e(_n,pn),_n.prototype.B=function(){this.l=void 0,nn(this.v.Z(),1,-1)},_n.prototype.I=function(t){(t=t.Z()).Ic()&&t.ed(),ln(t,-Q(this.j,-1,1),this.a,this.D),this.o=void 0,this.j=0,this.a=null,this.u=this.g=void 0},_n.prototype.T=function(t){(this.C=t)||(this.a=null)};var Qn="trackpad",ts="wheel";function es(t){Mn.call(this,{handleDownEvent:rs,handleDragEvent:os,handleUpEvent:is}),t=t||{},this.g=null,this.j=void 0,this.a=!1,this.l=0,this.C=void 0!==t.threshold?t.threshold:.3,this.u=void 0!==t.duration?t.duration:250}function os(t){var e,o=0,i=this.o[0],r=this.o[1],i=Math.atan2(r.clientY-i.clientY,r.clientX-i.clientX);void 0!==this.j&&(o=i-this.j,this.l+=o,!this.a)&&Math.abs(this.l)>this.C&&(this.a=!0),this.j=i,(i=(t=t.map).Z()).g.rotation!==_i&&(r=t.a.getBoundingClientRect(),(e=Pn(this.o))[0]-=r.left,e[1]-=r.top,this.g=t.Wa(e),this.a)&&(r=i.Qa(),t.render(),hn(i,r+o,this.g))}function is(t){var e,o,i;return!(this.o.length<2&&(nn(t=t.map.Z(),1,-1),this.a&&(i=t.Qa(),e=this.g,o=this.u,i=t.constrainRotation(i,0),hn(t,i,e,o)),1))}function rs(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.j=void 0,this.a=!1,this.l=0,this.D||nn(t.Z(),1,1),!0)}function ns(t){Mn.call(this,{handleDownEvent:ps,handleDragEvent:ss,handleUpEvent:as}),this.l=(t=t||{}).constrainResolution||!1,this.g=null,this.u=void 0!==t.duration?t.duration:400,this.a=void 0,this.j=1}function ss(t){var e=1,o=this.o[0],i=this.o[1],r=o.clientX-i.clientX,o=o.clientY-i.clientY,r=Math.sqrt(r*r+o*o);void 0!==this.a&&(e=this.a/r),this.a=r;var i=(r=(t=t.map).Z()).Pa(),n=r.a,s=r.f;n<(o=i*e)?(e=n/i,o=n):o<s&&(e=s/i,o=s),1!=e&&(this.j=e),e=t.a.getBoundingClientRect(),(i=Pn(this.o))[0]-=e.left,i[1]-=e.top,this.g=t.Wa(i),t.render(),un(r,o,this.g)}function as(t){var e,o,i;return!(this.o.length<2&&(nn(t=t.map.Z(),1,-1),i=t.Pa(),(this.l||i<t.f||i>t.a)&&(e=this.g,o=this.u,i=t.constrainResolution(i,0,this.j-1),un(t,i,e,o)),1))}function ps(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.a=void 0,this.j=1,this.D||nn(t.Z(),1,1),!0)}function hs(t){t=t||{};var e=new ho,o=new sn(-.005,.05,100);return void 0!==t.altShiftDragRotate&&!t.altShiftDragRotate||e.push(new Ln),void 0!==t.doubleClickZoom&&!t.doubleClickZoom||e.push(new cn({delta:t.zoomDelta,duration:t.zoomDuration})),void 0!==t.dragPan&&!t.dragPan||e.push(new En({kinetic:o})),void 0!==t.pinchRotate&&!t.pinchRotate||e.push(new es),void 0!==t.pinchZoom&&!t.pinchZoom||e.push(new ns({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.keyboard&&!t.keyboard||(e.push(new Yn),e.push(new qn({delta:t.zoomDelta,duration:t.zoomDuration}))),void 0!==t.mouseWheelZoom&&!t.mouseWheelZoom||e.push(new _n({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.shiftDragZoom&&!t.shiftDragZoom||e.push(new zn({duration:t.zoomDuration})),e}function ls(t){ro.call(this);var e=Xt({},t);e.opacity=void 0!==t.opacity?t.opacity:1,e.visible=void 0===t.visible||t.visible,e.zIndex=void 0!==t.zIndex?t.zIndex:0,e.maxResolution=void 0!==t.maxResolution?t.maxResolution:1/0,e.minResolution=void 0!==t.minResolution?t.minResolution:0,this.H(e),this.a={layer:this,Je:!0}}function us(t){return t.a.opacity=Q(t.hc(),0,1),t.a.yj=t.$f(),t.a.visible=t.Mb(),t.a.extent=t.G(),t.a.zIndex=t.Ba(),t.a.maxResolution=t.fc(),t.a.minResolution=Math.max(t.gc(),0),t.a}function cs(t){var e=t||{};delete(t=Xt({},e)).layers,e=e.layers,ls.call(this,t),this.f=[],this.c={},d(this,so(fs),this.Hl,this),e?Array.isArray(e)?e=new ho(e.slice(),{unique:!0}):O(e instanceof ho,43):e=new ho(void 0,{unique:!0}),this.xi(e)}e(es,Mn),es.prototype.Xc=fr,e(ns,Mn),ns.prototype.Xc=fr,e(ls,ro),(r=ls.prototype).G=function(){return this.get("extent")},r.fc=function(){return this.get("maxResolution")},r.gc=function(){return this.get("minResolution")},r.hc=function(){return this.get("opacity")},r.Mb=function(){return this.get("visible")},r.Ba=function(){return this.get("zIndex")},r.vc=function(t){this.set("extent",t)},r.Ac=function(t){this.set("maxResolution",t)},r.Bc=function(t){this.set("minResolution",t)},r.wc=function(t){this.set("opacity",t)},r.xc=function(t){this.set("visible",t)},r.Vb=function(t){this.set("zIndex",t)},e(cs,ls),(r=cs.prototype).Fd=function(){},r.Fe=function(){this.Mb()&&this.s()},r.Hl=function(){this.f.forEach(qe),this.f.length=0;var t=this.qd();for(e in this.f.push(d(t,"add",this.Gl,this),d(t,"remove",this.Il,this)),this.c)this.c[e].forEach(qe);Vt(this.c);for(var e=0,o=(t=t.a).length;e<o;e++){var i=t[e];this.c[U(i).toString()]=[d(i,"propertychange",this.Fe,this),d(i,"change",this.Fe,this)]}this.s()},r.Gl=function(t){var e=U(t=t.element).toString();this.c[e]=[d(t,"propertychange",this.Fe,this),d(t,"change",this.Fe,this)],this.s()},r.Il=function(t){t=U(t.element).toString(),this.c[t].forEach(qe),delete this.c[t],this.s()},r.qd=function(){return this.get(fs)},r.xi=function(t){this.set(fs,t)},r.Yf=function(t){var e,o=void 0!==t?t:[],i=o.length;for(this.qd().forEach(function(t){t.Yf(o)}),t=us(this),e=o.length;i<e;i++){var r=o[i];r.opacity*=t.opacity,r.visible=r.visible&&t.visible,r.maxResolution=Math.min(r.maxResolution,t.maxResolution),r.minResolution=Math.max(r.minResolution,t.minResolution),void 0!==t.extent&&(r.extent=void 0!==r.extent?Nt(r.extent,t.extent):t.extent)}return o},r.$f=function(){return"ready"};var fs="layers";function ys(t){var e=Xt({},t);delete e.source,ls.call(this,e),this.v=this.l=this.o=null,t.map&&this.setMap(t.map),d(this,so("source"),this.Ul,this),this.Wc(t.source||null)}function gs(t,e){return t.visible&&e>=t.minResolution&&e<t.maxResolution}function ds(){this.b={},this.a=0}e(ys,ls),(r=ys.prototype).Yf=function(t){return(t=t||[]).push(us(this)),t},r.ha=function(){return this.get("source")||null},r.$f=function(){var t=this.ha();return t?t.getState():"undefined"},r.Tn=function(){this.s()},r.Ul=function(){this.v&&(qe(this.v),this.v=null);var t=this.ha();t&&(this.v=d(t,"change",this.Tn,this)),this.s()},r.setMap=function(t){this.o&&(qe(this.o),this.o=null),t||this.s(),this.l&&(qe(this.l),this.l=null),t&&(this.o=d(t,"precompose",function(t){var e=us(this);e.Je=!1,e.zIndex=1/0,t.frameState.layerStatesArray.push(e),t.frameState.layerStates[U(this)]=e},this),this.l=d(this,"change",t.render,t),this.s())},r.Wc=function(t){this.set("source",t)},ds.prototype.clear=function(){this.b={},this.a=0},ds.prototype.get=function(t,e,o){return(t=e+":"+t+":"+(o?bo(o):"null"))in this.b?this.b[t]:null},ds.prototype.set=function(t,e,o,i){this.b[e+":"+t+":"+(o?bo(o):"null")]=i,++this.a};var vs=new ds,bs=Array(6);function ms(){return[1,0,0,1,0,0]}function ws(t){return Ss(t,1,0,0,1,0,0)}function xs(t,e){var o=t[0],i=t[1],r=t[2],n=t[3],s=t[4],a=t[5],p=e[0],h=e[1],l=e[2],u=e[3],c=e[4];return e=e[5],t[0]=o*p+r*h,t[1]=i*p+n*h,t[2]=o*l+r*u,t[3]=i*l+n*u,t[4]=o*c+r*e+s,t[5]=i*c+n*e+a,t}function Ss(t,e,o,i,r,n,s){return t[0]=e,t[1]=o,t[2]=i,t[3]=r,t[4]=n,t[5]=s,t}function Ms(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Ps(t,e){var o=e[0],i=e[1];return e[0]=t[0]*o+t[2]*i+t[4],e[1]=t[1]*o+t[3]*i+t[5],e}function As(t,e){var o=Math.cos(e);e=Math.sin(e),xs(t,Ss(bs,o,e,-e,o,0,0))}function Es(t,e,o){return xs(t,Ss(bs,e,0,0,o,0,0))}function Ts(t,e,o){xs(t,Ss(bs,1,0,0,1,e,o))}function js(t,e,o,i,r,n,s,a){var p=Math.sin(n);return n=Math.cos(n),t[0]=i*n,t[1]=r*p,t[2]=-i*p,t[3]=r*n,t[4]=s*i*n-a*i*p+e,t[5]=s*r*p+a*r*n+o,t}function Cs(t){var e=t[0]*t[3]-t[1]*t[2],o=(O(!!e,32),t[0]),i=t[1],r=t[2],n=t[3],s=t[4],a=t[5];return t[0]=n/e,t[1]=-i/e,t[2]=-r/e,t[3]=o/e,t[4]=(r*a-n*s)/e,t[5]=-(o*a-i*s)/e,t}function Ls(t,e){this.o=e,this.c={},this.v={}}function Rs(t){var e=t.viewState,o=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;js(o,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Cs(Ms(i,o))}function Is(){if(32<vs.a){var t,e=0;for(t in vs.b){var o=vs.b[t];3&e++||oo(o)||(delete vs.b[t],--vs.a)}}}function Ns(t,e){var o=U(e).toString();return o in t.c?t.c[o]:(e=e.Fd(t),t.c[o]=e,t.v[o]=d(e,"change",t.Fl,t),e)}function Fs(t,e){for(var o in t.c)if(!(o in e.layerStates)){e.postRenderFunctions.push(t.Rp.bind(t));break}}function ks(t,e){return t.zIndex-e.zIndex}function Ds(t,e,o,i,r){Qe.call(this,t),this.vectorContext=e,this.frameState=o,this.context=i,this.glContext=r}e(Ls,_e),(r=Ls.prototype).ka=function(){for(var t in this.c)$e(this.c[t])},r.Ea=function(t,r,e,n,s,o,i){function a(t,e){var o=U(t).toString(),i=r.layerStates[U(e)].Je;if(!(o in r.skippedFeatureUids)||i)return n.call(s,t,i?e:null)}var p,h,l=(c=r.viewState).resolution,u=c.projection,c=t;for(u.i&&(h=Dt(u=u.G()),(y=t[0])<u[0]||y>u[2])&&(c=[y+h*Math.ceil((u[0]-y)/h),t[1]]),h=(u=r.layerStatesArray).length-1;0<=h;--h){var f=u[h],y=f.layer;if(gs(f,l)&&o.call(i,y)&&(f=Ns(this,y),p=y.ha()?f.Ea(y.ha().u?c:t,r,e,a,s):p))return p}},r.Ei=function(t,e,o,i,r){return void 0!==this.Ea(t,e,o,cr,this,i,r)},r.Fl=function(){this.o.render()},r.Jg=Y,r.Rp=function(t,e){for(var o in this.c)e&&o in e.layerStates||(t=o,o=this.c[t],delete this.c[t],qe(this.v[t]),delete this.v[t],$e(o))},e(Ds,Qe);var Os=[0,0,0,1],Us=[],Gs=[0,0,0,1];function Bs(t,e,o,i){e&&(t.translate(o,i),t.rotate(e),t.translate(-o,-i))}function Xs(){}function Vs(t,e,o,i,r){this.i=t,this.u=e,this.c=o,this.S=i,this.Yb=r,this.M=this.b=this.a=this.Ua=this.R=this.I=null,this.na=this.T=this.l=this.B=this.C=this.D=0,this.fa=!1,this.f=this.fb=0,this.pa=!1,this.oa=0,this.Ia="",this.va=this.Jb=0,this.Sa=!1,this.j=this.$a=0,this.ra=this.o=this.g=null,this.v=[],this.xb=ms()}function Ws(t,e,o){if(t.M){e=gr(e,0,o,2,t.S,t.v),o=t.i;for(var i=t.xb,r=o.globalAlpha,n=(1!=t.l&&(o.globalAlpha=r*t.l),t.fb),s=(t.fa&&(n+=t.Yb),0),a=e.length;s<a;s+=2){var p,h,l=e[s]-t.D,u=e[s+1]-t.C;t.pa&&(l=Math.round(l),u=Math.round(u)),!n&&1==t.f||(js(i,p=l+t.D,h=u+t.C,t.f,t.f,n,-p,-h),o.setTransform.apply(o,i)),o.drawImage(t.M,t.T,t.na,t.oa,t.B,l,u,t.oa,t.B)}!n&&1==t.f||o.setTransform(1,0,0,1,0,0),1!=t.l&&(o.globalAlpha=r)}}function Zs(t,e,o,i){var r=0;if(t.ra&&""!==t.Ia){t.g&&Ys(t,t.g),t.o&&Hs(t,t.o);var n=t.ra,s=t.i;for((p=t.Ua)?(p.font!=n.font&&(p.font=s.font=n.font),p.textAlign!=n.textAlign&&(p.textAlign=s.textAlign=n.textAlign),p.textBaseline!=n.textBaseline&&(p.textBaseline=s.textBaseline=n.textBaseline)):(s.font=n.font,s.textAlign=n.textAlign,s.textBaseline=n.textBaseline,t.Ua={font:n.font,textAlign:n.textAlign,textBaseline:n.textBaseline}),e=gr(e,r,o,i,t.S,t.v),n=t.i,s=t.$a,t.Sa&&(s+=t.Yb);r<o;r+=i){var a,p=e[r]+t.Jb,h=e[r+1]+t.va;!s&&1==t.j||(a=js(t.xb,p,h,t.j,t.j,s,-p,-h),n.setTransform.apply(n,a)),t.o&&n.strokeText(t.Ia,p,h),t.g&&n.fillText(t.Ia,p,h)}!s&&1==t.j||n.setTransform(1,0,0,1,0,0)}}function Ks(t,e,o,i,r,n){var s=t.i;for(t=gr(e,o,i,r,t.S,t.v),s.moveTo(t[0],t[1]),e=t.length,n&&(e-=2),o=2;o<e;o+=2)s.lineTo(t[o],t[o+1]);return n&&s.closePath(),i}function zs(t,e,o,i,r){for(var n=0,s=i.length;n<s;++n)o=Ks(t,e,o,i[n],r,!0);return o}function Ys(t,e){var o=t.i,i=t.I;i?i.fillStyle!=e.fillStyle&&(i.fillStyle=o.fillStyle=e.fillStyle):(o.fillStyle=e.fillStyle,t.I={fillStyle:e.fillStyle})}function Hs(t,e){var o=t.i,i=t.R;i?(i.lineCap!=e.lineCap&&(i.lineCap=o.lineCap=e.lineCap),si&&!Z(i.lineDash,e.lineDash)&&o.setLineDash(i.lineDash=e.lineDash),i.lineJoin!=e.lineJoin&&(i.lineJoin=o.lineJoin=e.lineJoin),i.lineWidth!=e.lineWidth&&(i.lineWidth=o.lineWidth=e.lineWidth),i.miterLimit!=e.miterLimit&&(i.miterLimit=o.miterLimit=e.miterLimit),i.strokeStyle!=e.strokeStyle&&(i.strokeStyle=o.strokeStyle=e.strokeStyle)):(o.lineCap=e.lineCap,si&&o.setLineDash(e.lineDash),o.lineJoin=e.lineJoin,o.lineWidth=e.lineWidth,o.miterLimit=e.miterLimit,o.strokeStyle=e.strokeStyle,t.R={lineCap:e.lineCap,lineDash:e.lineDash,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle})}function qs(t,e){Ls.call(this,0,e),this.i=Po(),this.b=this.i.canvas,this.b.style.width="100%",this.b.style.height="100%",this.b.style.display="block",this.b.className="ol-unselectable",t.insertBefore(this.b,t.childNodes[0]||null),this.a=!0,this.f=ms()}function Js(t,e,o){var i,r,n,s,a,p=t.o,h=t.i;oo(p,e)&&(i=o.extent,r=o.pixelRatio,n=o.viewState.rotation,s=o.viewState,a=o.pixelRatio/s.resolution,t=js(t.f,t.b.width/2,t.b.height/2,a,-a,-s.rotation,-s.center[0],-s.center[1]),p.b(new Ds(e,new Vs(h,r,i,t,n),o,h,null)))}(r=Xs.prototype).zb=function(){},r.rd=function(){},r.Zb=function(){},r.te=function(){},r.ue=function(){},r.mc=function(){},r.nc=function(){},r.oc=function(){},r.pc=function(){},r.qc=function(){},r.rc=function(){},r.yc=function(){},r.Ma=function(){},r.Ub=function(){},r.Cb=function(){},e(Vs,Xs),(r=Vs.prototype).Zb=function(t){var e,o,i;Ot(this.c,t.G())&&((this.a||this.b)&&(this.a&&Ys(this,this.a),this.b&&Hs(this,this.b),e=this.S,o=this.v,o=(e=(i=t.ga())?gr(i,0,i.length,t.qa(),e,o):null)[2]-e[0],i=e[3]-e[1],o=Math.sqrt(o*o+i*i),(i=this.i).beginPath(),i.arc(e[0],e[1],o,0,2*Math.PI),this.a&&i.fill(),this.b)&&i.stroke(),""!==this.Ia)&&Zs(this,t.wa(),2,2)},r.rd=function(t){this.Ma(t.Fa(),t.Ga()),this.Ub(t.Y()),this.Cb(t.Na())},r.zb=function(t){switch(t.U()){case"Point":this.qc(t);break;case"LineString":this.mc(t);break;case"Polygon":this.rc(t);break;case"MultiPoint":this.oc(t);break;case"MultiLineString":this.nc(t);break;case"MultiPolygon":this.pc(t);break;case"GeometryCollection":this.ue(t);break;case"Circle":this.Zb(t)}},r.te=function(t,e){(t=(0,e.Za)(t))&&Ot(this.c,t.G())&&(this.rd(e),this.zb(t))},r.ue=function(t){for(var e=0,o=(t=t.a).length;e<o;++e)this.zb(t[e])},r.qc=function(t){var e=t.ga();t=t.qa(),this.M&&Ws(this,e,e.length),""!==this.Ia&&Zs(this,e,e.length,t)},r.oc=function(t){var e=t.ga();t=t.qa(),this.M&&Ws(this,e,e.length),""!==this.Ia&&Zs(this,e,e.length,t)},r.mc=function(t){var e,o;Ot(this.c,t.G())&&(this.b&&(Hs(this,this.b),e=this.i,o=t.ga(),e.beginPath(),Ks(this,o,0,o.length,t.qa(),!1),e.stroke()),""!==this.Ia)&&Zs(this,t=jl(t),2,2)},r.nc=function(t){var e=t.G();if(Ot(this.c,e)){if(this.b){Hs(this,this.b);for(var e=this.i,o=t.ga(),i=0,r=t.Bb(),n=t.qa(),s=(e.beginPath(),0),a=r.length;s<a;++s)i=Ks(this,o,i,r[s],n,!1);e.stroke()}""!==this.Ia&&Zs(this,t=Cl(t),t.length,2)}},r.rc=function(t){var e;Ot(this.c,t.G())&&((this.b||this.a)&&(this.a&&Ys(this,this.a),this.b&&Hs(this,this.b),(e=this.i).beginPath(),zs(this,t.ec(),0,t.Bb(),t.qa()),this.a&&e.fill(),this.b)&&e.stroke(),""!==this.Ia)&&Zs(this,t=zr(t),2,2)},r.pc=function(t){if(Ot(this.c,t.G())){if(this.b||this.a){this.a&&Ys(this,this.a),this.b&&Hs(this,this.b);for(var e=this.i,o=Il(t),i=0,r=t.c,n=t.qa(),s=(e.beginPath(),0),a=r.length;s<a;++s)i=zs(this,o,i,r[s],n);this.a&&e.fill(),this.b&&e.stroke()}""!==this.Ia&&Zs(this,t=Rl(t),t.length,2)}},r.Ma=function(t,e){var o,i,r,n,s;t?(t=t.b,this.a={fillStyle:Mo(t||Os)}):this.a=null,e?(t=e.a,o=e.f,i=e.i,r=e.g,n=e.j,s=e.c,e=e.o,this.b={lineCap:void 0!==o?o:"round",lineDash:i||Us,lineDashOffset:r||0,lineJoin:void 0!==n?n:"round",lineWidth:this.u*(void 0!==s?s:1),miterLimit:void 0!==e?e:10,strokeStyle:Mo(t||Gs)}):this.b=null},r.Ub=function(t){var e,o,i,r;t?(e=t.Hc(),o=t.Y(1),i=t.Oc(),r=t.ic(),this.D=e[0],this.C=e[1],this.B=r[1],this.M=o,this.l=t.f,this.T=i[0],this.na=i[1],this.fa=t.l,this.fb=t.g,this.f=t.a,this.pa=t.v,this.oa=r[0]):this.M=null},r.Cb=function(t){var e,o,i,r,n,s,a,p;t?((e=t.Fa())?(e=e.b,this.g={fillStyle:Mo(e||Os)}):this.g=null,(a=t.Ga())?(e=a.a,o=a.f,i=a.i,r=a.g,n=a.j,s=a.c,a=a.o,this.o={lineCap:void 0!==o?o:"round",lineDash:i||Us,lineDashOffset:r||0,lineJoin:void 0!==n?n:"round",lineWidth:void 0!==s?s:1,miterLimit:void 0!==a?a:10,strokeStyle:Mo(e||Gs)}):this.o=null,e=t.a,o=t.i,i=t.c,r=t.o,n=t.f,s=t.b,a=t.Na(),p=t.g,t=t.j,this.ra={font:void 0!==e?e:"10px sans-serif",textAlign:void 0!==p?p:"center",textBaseline:void 0!==t?t:"middle"},this.Ia=void 0!==a?a:"",this.Jb=void 0!==o?this.u*o:0,this.va=void 0!==i?this.u*i:0,this.Sa=void 0!==r&&r,this.$a=void 0!==n?n:0,this.j=this.u*(void 0!==s?s:1)):this.Ia=""},e(qs,Ls),qs.prototype.U=function(){return"canvas"},qs.prototype.Jg=function(t){if(t){for(var e=this.i,o=t.pixelRatio,i=Math.round(t.size[0]*o),r=Math.round(t.size[1]*o),n=(this.b.width!=i||this.b.height!=r?(this.b.width=i,this.b.height=r):e.clearRect(0,0,i,r),o=t.viewState.rotation,Rs(t),Js(this,"precompose",t),t.layerStatesArray),i=(K(n),o&&(e.save(),Bs(e,o,i/2,r/2)),t.viewState.resolution),r=0,s=n.length;r<s;++r){var a=n[r],p=Ns(this,p=a.layer);gs(a,i)&&"ready"==a.yj&&p.sd(t,a)&&p.S(t,a,e)}o&&e.restore(),Js(this,"postcompose",t),this.a||(this.b.style.display="",this.a=!0),Fs(this,t),t.postRenderFunctions.push(Is)}else this.a&&(this.b.style.display="none",this.a=!1)},qs.prototype.Di=function(t,e,o,i,r,n){var s=e.viewState.resolution,a=e.layerStatesArray,p=a.length;for(t=Ps(e.pixelToCoordinateTransform,t.slice()),--p;0<=p;--p){var h=a[p],l=h.layer;if(gs(h,s)&&r.call(n,l)&&(h=Ns(this,l).u(t,e,o,i)))return h}};var _s=["Polygon","Circle","LineString","Image","Text"];function $s(){}function Qs(t){this.b=t}function ta(t){this.b=t}function ea(t){this.b=t}function oa(){this.b="precision mediump float;varying vec2 a;varying vec2 b;varying float c;varying float d;uniform float m;uniform vec4 n;uniform vec4 o;uniform vec2 p;void main(void){vec2 windowCenter=vec2((a.x+1.0)/2.0*p.x*d,(a.y+1.0)/2.0*p.y*d);vec2 windowOffset=vec2((b.x+1.0)/2.0*p.x*d,(b.y+1.0)/2.0*p.y*d);float radius=length(windowCenter-windowOffset);float dist=length(windowCenter-gl_FragCoord.xy);if(dist>radius+c){if(o.a==0.0){gl_FragColor=n;}else{gl_FragColor=o;}gl_FragColor.a=gl_FragColor.a-(dist-(radius+c));}else if(n.a==0.0){gl_FragColor=o;if(dist<radius-c){gl_FragColor.a=gl_FragColor.a-(radius-c-dist);}} else{gl_FragColor=n;float strokeDist=radius-c;float antialias=2.0*d;if(dist>strokeDist){gl_FragColor=o;}else if(dist>=strokeDist-antialias){float step=smoothstep(strokeDist-antialias,strokeDist,dist);gl_FragColor=mix(n,o,step);}} gl_FragColor.a=gl_FragColor.a*m;if(gl_FragColor.a<=0.0){discard;}}"}e(ta,Qs),ta.prototype.U=function(){return 35632},e(ea,Qs),ea.prototype.U=function(){return 35633},e(oa,ta);var ia=new oa;function ra(){this.b="varying vec2 a;varying vec2 b;varying float c;varying float d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;void main(void){mat4 offsetMatrix=i*j;a=vec4(h*vec4(e,0.0,1.0)).xy;d=l;float lineWidth=k*l;c=lineWidth/2.0;if(lineWidth==0.0){lineWidth=2.0*l;}vec2 offset;float radius=g+3.0*l;if(f==0.0){offset=vec2(-1.0,1.0);}else if(f==1.0){offset=vec2(-1.0,-1.0);}else if(f==2.0){offset=vec2(1.0,-1.0);}else{offset=vec2(1.0,1.0);}gl_Position=h*vec4(e+offset*radius,0.0,1.0)+offsetMatrix*vec4(offset*lineWidth,0.0,0.0);b=vec4(h*vec4(e.x+g,e.y,0.0,1.0)).xy;if(distance(a,b)>20000.0){gl_Position=vec4(a,0.0,1.0);}}"}e(ra,ea);var na=new ra;function sa(t,e){this.B=t.getUniformLocation(e,"n"),this.oa=t.getUniformLocation(e,"k"),this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"m"),this.ra=t.getUniformLocation(e,"l"),this.i=t.getUniformLocation(e,"h"),this.I=t.getUniformLocation(e,"p"),this.R=t.getUniformLocation(e,"o"),this.j=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"e"),this.S=t.getAttribLocation(e,"g")}function aa(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function pa(t,e){return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}function ha(t,e){this.origin=Lt(e),this.xb=ms(),this.Sa=ms(),this.$a=ms(),this.Jb=aa(),this.b=[],this.o=null,this.i=[],this.f=[],this.a=[],this.l=null,this.g=void 0}function la(t,e,o,i){t.drawElements(4,i-o,e.g?5125:5123,o*(e.g?4:2))}e(ha,Xs),ha.prototype.La=function(t,e,o,i,r,n,s,a,p,h,l){var u,c,f,y,g,d,v,b,m,w=t.b,x=(this.g&&(u=w.isEnabled(w.STENCIL_TEST),c=w.getParameter(w.STENCIL_FUNC),f=w.getParameter(w.STENCIL_VALUE_MASK),y=w.getParameter(w.STENCIL_REF),g=w.getParameter(w.STENCIL_WRITEMASK),d=w.getParameter(w.STENCIL_FAIL),v=w.getParameter(w.STENCIL_PASS_DEPTH_PASS),b=w.getParameter(w.STENCIL_PASS_DEPTH_FAIL),w.enable(w.STENCIL_TEST),w.clear(w.STENCIL_BUFFER_BIT),w.stencilMask(255),w.stencilFunc(w.ALWAYS,1,255),w.stencilOp(w.KEEP,w.KEEP,w.REPLACE),this.g.La(t,e,o,i,r,n,s,a,p,h,l),w.stencilMask(0),w.stencilFunc(w.NOTEQUAL,1,255)),Ea(t,34962,this.l),Ea(t,34963,this.o),n=this.rf(w,t,r,n),ws(this.xb));return Es(x,2/(o*r[0]),2/(o*r[1])),As(x,-i),Ts(x,-(e[0]-this.origin[0]),-(e[1]-this.origin[1])),Es(e=ws(this.$a),2/r[0],2/r[1]),r=ws(this.Sa),i&&As(r,-i),w.uniformMatrix4fv(n.i,!1,pa(this.Jb,x)),w.uniformMatrix4fv(n.f,!1,pa(this.Jb,e)),w.uniformMatrix4fv(n.c,!1,pa(this.Jb,r)),w.uniform1f(n.a,s),p?m=t=h?this.ve(w,t,a,p,l):(w.clear(w.COLOR_BUFFER_BIT|w.DEPTH_BUFFER_BIT),this.Od(w,t,a,!0),(t=p(null))||void 0):this.Od(w,t,a,!1),this.sf(w,n),this.g&&(u||w.disable(w.STENCIL_TEST),w.clear(w.STENCIL_BUFFER_BIT),w.stencilFunc(c,y,f),w.stencilMask(g),w.stencilOp(d,b,v)),m};var ua=[0,0,0,1],ca=[],fa=[0,0,0,1];function ya(t,e,o,i,r,n){return(t=(o-t)*(n-e)-(r-t)*(i-e))<=ga&&-ga<=t?void 0:0<t}var ga=Number.EPSILON||2220446049250313e-31;function da(t){this.b=void 0!==t?t:[],this.a=va}var va=35044;function ba(t,e){ha.call(this,0,e),this.v=null,this.j=[],this.u=[],this.S=0,this.c={fillColor:null,strokeColor:null,lineDash:null,lineDashOffset:void 0,lineWidth:void 0,s:!1}}function ma(t,e,o,i){e.uniform4fv(t.v.R,o),e.uniform1f(t.v.oa,i)}function wa(){this.b="precision mediump float;varying vec2 a;varying float b;uniform float k;uniform sampler2D l;void main(void){vec4 texColor=texture2D(l,a);gl_FragColor.rgb=texColor.rgb;float alpha=texColor.a*b*k;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(ba,ha),(r=ba.prototype).Zb=function(t,e){var o=t.pd(),i=t.qa();if(o){this.i.push(this.b.length),this.f.push(e),this.c.s&&(this.u.push(this.b.length),this.c.s=!1),this.S=o,t=dr(t=t.ga(),0,2,i,-this.origin[0],-this.origin[1]),e=this.a.length;for(var o=this.b.length,r=e/4,n=0;n<2;n+=i)this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=0,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=1,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=2,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=3,this.a[e++]=this.S,this.b[o++]=r,this.b[o++]=r+1,this.b[o++]=r+2,this.b[o++]=r+2,this.b[o++]=r+3,this.b[o++]=r,r+=4}else this.c.s&&(this.j.pop(),this.j.length)&&(i=this.j[this.j.length-1],this.c.fillColor=i[0],this.c.strokeColor=i[1],this.c.lineWidth=i[2],this.c.s=!1)},r.Db=function(){this.l=new da(this.a),this.o=new da(this.b),this.i.push(this.b.length),!this.u.length&&0<this.j.length&&(this.j=[]),this.b=this.a=null},r.Eb=function(t){var e=this.l,o=this.o;return function(){Ta(t,e),Ta(t,o)}},r.rf=function(t,e,o,i){var r,n=La(e,ia,na);return this.v?r=this.v:this.v=r=new sa(t,n),e.Qc(n),t.enableVertexAttribArray(r.b),t.vertexAttribPointer(r.b,2,5126,!1,16,0),t.enableVertexAttribArray(r.j),t.vertexAttribPointer(r.j,1,5126,!1,16,8),t.enableVertexAttribArray(r.S),t.vertexAttribPointer(r.S,1,5126,!1,16,12),t.uniform2fv(r.I,o),t.uniform1f(r.ra,i),r},r.sf=function(t,e){t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.j),t.disableVertexAttribArray(e.S)},r.Od=function(t,e,o){if(Zt(o)){var i=this.i[this.i.length-1];for(o=this.u.length-1;0<=o;--o){var r=this.u[o],n=this.j[o];t.uniform4fv(this.v.B,n[0]),ma(this,t,n[1],n[2]),la(t,e,r,i),i=r}}else for(var s=this.i.length-2,n=i=this.i[s+1],r=this.u.length-1;0<=r;--r){var a=this.j[r];for(t.uniform4fv(this.v.B,a[0]),ma(this,t,a[1],a[2]),a=this.u[r];0<=s&&this.i[s]>=a;){var p=this.i[s];o[U(this.f[s]).toString()]&&(i!==n&&la(t,e,i,n),n=p),s--,i=p}i!==n&&la(t,e,i,n),i=n=a}},r.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.u.length-1;0<=p;--p){var h=this.j[p];for(t.uniform4fv(this.v.B,h[0]),ma(this,t,h[1],h[2]),n=this.u[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[U(l).toString()]&&l.V()&&(void 0===r||Ot(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),la(t,e,h,a),a=i(l)))return a;s--,a=h}}},r.Ma=function(t,e){var o;e=e?(o=e.i,this.c.lineDash=o||ca,o=e.g,this.c.lineDashOffset=o||0,o=!((o=e.a)instanceof CanvasGradient||o instanceof CanvasPattern)&&vo(o).map(function(t,e){return 3!=e?t/255:t})||fa,void 0!==(e=e.c)?e:1):(o=[0,0,0,0],0),t=!((t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern)&&vo(t).map(function(t,e){return 3!=e?t/255:t})||ua,this.c.strokeColor&&Z(this.c.strokeColor,o)&&this.c.fillColor&&Z(this.c.fillColor,t)&&this.c.lineWidth===e||(this.c.s=!0,this.c.fillColor=t,this.c.strokeColor=o,this.c.lineWidth=e,this.j.push([t,o,e]))},e(wa,ta);var xa=new wa;function Sa(){this.b="varying vec2 a;varying float b;attribute vec2 c;attribute vec2 d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;void main(void){mat4 offsetMatrix=i;if(g==1.0){offsetMatrix=i*j;}vec4 offsets=offsetMatrix*vec4(e,0.0,0.0);gl_Position=h*vec4(c,0.0,1.0)+offsets;a=d;b=f;}"}e(Sa,ea);var Ma=new Sa;function Pa(t,e){this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"k"),this.i=t.getUniformLocation(e,"h"),this.v=t.getAttribLocation(e,"e"),this.u=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"c"),this.D=t.getAttribLocation(e,"g"),this.C=t.getAttribLocation(e,"d")}function Aa(t,e){this.j=t,this.b=e,this.a={},this.c={},this.i={},this.l=this.v=this.f=this.o=null,(this.g=D(di,"OES_element_index_uint"))&&e.getExtension("OES_element_index_uint"),d(this.j,"webglcontextlost",this.Xo,this),d(this.j,"webglcontextrestored",this.Yo,this)}function Ea(t,e,o){var i,r,n=t.b,s=o.b,a=String(U(o));a in t.a?n.bindBuffer(e,t.a[a].buffer):(i=n.createBuffer(),n.bindBuffer(e,i),34962==e?r=new Float32Array(s):34963==e&&(r=new(t.g?Uint32Array:Uint16Array)(s)),n.bufferData(e,r,o.a),t.a[a]={lc:o,buffer:i})}function Ta(t,e){var o=t.b,i=(e=String(U(e)),t.a[e]);o.isContextLost()||o.deleteBuffer(i.buffer),delete t.a[e]}function ja(t){var e,o,i,r;return t.f||(o=(e=t.b).createFramebuffer(),e.bindFramebuffer(e.FRAMEBUFFER,o),i=Ia(e,1,1),r=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,r),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,1,1),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,i,0),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,r),e.bindTexture(e.TEXTURE_2D,null),e.bindRenderbuffer(e.RENDERBUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null),t.f=o,t.v=i,t.l=r),t.f}function Ca(t,e){var o,i,r=String(U(e));return r in t.c?t.c[r]:(i=(o=t.b).createShader(e.U()),o.shaderSource(i,e.b),o.compileShader(i),t.c[r]=i)}function La(t,e,o){var i,r,n=U(e)+"/"+U(o);return n in t.i?t.i[n]:(r=(i=t.b).createProgram(),i.attachShader(r,Ca(t,e)),i.attachShader(r,Ca(t,o)),i.linkProgram(r),t.i[n]=r)}function Ra(t,e,o){var i=t.createTexture();return t.bindTexture(t.TEXTURE_2D,i),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),void 0!==e&&t.texParameteri(3553,10242,e),void 0!==o&&t.texParameteri(3553,10243,o),i}function Ia(t,e,o){var i=Ra(t,void 0,void 0);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,o,0,t.RGBA,t.UNSIGNED_BYTE,null),i}function Na(t,e){var o=Ra(t,33071,33071);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),o}function Fa(t,e){ha.call(this,0,e),this.C=this.D=void 0,this.S=[],this.v=[],this.oa=void 0,this.j=[],this.c=[],this.I=this.ra=void 0,this.B=null,this.fb=this.fa=this.na=this.T=this.Ua=this.R=void 0,this.va=[],this.u=[],this.pa=void 0}function ka(t,e,o,i){for(var r=t.D,n=t.C,s=t.oa,a=t.ra,p=t.I,h=t.R,l=t.Ua,u=t.T,c=t.na?1:0,f=-t.fa,y=t.fb,g=t.pa,d=Math.cos(f),f=Math.sin(f),v=t.b.length,b=t.a.length,m=0;m<o;m+=i){var w=e[m]-t.origin[0],x=e[m+1]-t.origin[1],S=b/8,M=-y*r,P=-y*(s-n);t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=l/p,t.a[b++]=(u+s)/a,t.a[b++]=h,t.a[b++]=c,M=y*(g-r),P=-y*(s-n),t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=(l+g)/p,t.a[b++]=(u+s)/a,t.a[b++]=h,t.a[b++]=c,M=y*(g-r),P=y*n,t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=(l+g)/p,t.a[b++]=u/a,t.a[b++]=h,t.a[b++]=c,M=-y*r,P=y*n,t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=l/p,t.a[b++]=u/a,t.a[b++]=h,t.a[b++]=c,t.b[v++]=S,t.b[v++]=1+S,t.b[v++]=2+S,t.b[v++]=S,t.b[v++]=2+S,t.b[v++]=3+S}}function Da(t,e,o,i){for(var r=e.length,n=0;n<r;++n){var s=e[n],a=U(s).toString();a in o?s=o[a]:(s=Na(i,s),o[a]=s),t[n]=s}}function Oa(t,e,o){var i=e-o;return t[0]===t[i]&&t[1]===t[1+i]&&3<+e/o&&!!wr(t,0,e,o)}function Ua(){this.b="precision mediump float;varying float a;varying vec2 b;varying float c;uniform float m;uniform vec4 n;uniform vec2 o;uniform float p;void main(void){if(a>0.0){vec2 windowCoords=vec2((b.x+1.0)/2.0*o.x*p,(b.y+1.0)/2.0*o.y*p);if(length(windowCoords-gl_FragCoord.xy)>c*p){discard;}} gl_FragColor=n;float alpha=n.a*m;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(Aa,_e),(r=Aa.prototype).ka=function(){Je(this.j);var t=this.b;if(!t.isContextLost()){for(var e in this.a)t.deleteBuffer(this.a[e].buffer);for(e in this.i)t.deleteProgram(this.i[e]);for(e in this.c)t.deleteShader(this.c[e]);t.deleteFramebuffer(this.f),t.deleteRenderbuffer(this.l),t.deleteTexture(this.v)}},r.Wo=function(){return this.b},r.Xo=function(){Vt(this.a),Vt(this.c),Vt(this.i),this.l=this.v=this.f=this.o=null},r.Yo=function(){},r.Qc=function(t){return t!=this.o&&(this.b.useProgram(t),this.o=t,!0)},e(Fa,ha),(r=Fa.prototype).Eb=function(o){var i=this.l,r=this.o,n=this.va,s=this.u,a=o.b;return function(){if(!a.isContextLost()){for(var t=0,e=n.length;t<e;++t)a.deleteTexture(n[t]);for(t=0,e=s.length;t<e;++t)a.deleteTexture(s[t])}Ta(o,i),Ta(o,r)}},r.oc=function(t,e){this.i.push(this.b.length),this.f.push(e),ka(this,e=t.ga(),e.length,t.qa())},r.qc=function(t,e){this.i.push(this.b.length),this.f.push(e),ka(this,e=t.ga(),e.length,t.qa())},r.Db=function(t){t=t.b,this.S.push(this.b.length),this.v.push(this.b.length),this.l=new da(this.a),this.o=new da(this.b);var e={};Da(this.va,this.j,e,t),Da(this.u,this.c,e,t),this.oa=this.C=this.D=void 0,this.c=this.j=null,this.I=this.ra=void 0,this.b=null,this.fb=this.fa=this.na=this.T=this.Ua=this.R=void 0,this.a=null,this.pa=void 0},r.rf=function(t,e){var o,i=La(e,xa,Ma);return this.B?o=this.B:this.B=o=new Pa(t,i),e.Qc(i),t.enableVertexAttribArray(o.b),t.vertexAttribPointer(o.b,2,5126,!1,32,0),t.enableVertexAttribArray(o.v),t.vertexAttribPointer(o.v,2,5126,!1,32,8),t.enableVertexAttribArray(o.C),t.vertexAttribPointer(o.C,2,5126,!1,32,16),t.enableVertexAttribArray(o.u),t.vertexAttribPointer(o.u,1,5126,!1,32,24),t.enableVertexAttribArray(o.D),t.vertexAttribPointer(o.D,1,5126,!1,32,28),o},r.sf=function(t,e){t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.v),t.disableVertexAttribArray(e.C),t.disableVertexAttribArray(e.u),t.disableVertexAttribArray(e.D)},r.Od=function(t,e,o,i){var r=i?this.u:this.va;if(i=i?this.v:this.S,Zt(o))for(var n=r.length,s=o=0;o<n;++o){t.bindTexture(3553,r[o]);var a=i[o];la(t,e,s,a),s=a}else for(s=n=0,a=r.length;s<a;++s){t.bindTexture(3553,r[s]);for(var p=0<s?i[s-1]:0,h=i[s],l=p;n<this.i.length&&this.i[n]<=h;){p=void 0!==o[U(this.f[n]).toString()]?(l!==p&&la(t,e,l,p),l=n===this.i.length-1?h:this.i[n+1]):n===this.i.length-1?h:this.i[n+1];n++}l!==p&&la(t,e,l,p)}},r.ve=function(t,e,o,i,r){for(var n=this.i.length-1,s=this.u.length-1;0<=s;--s){t.bindTexture(3553,this.u[s]);for(var a=0<s?this.v[s-1]:0,p=this.v[s];0<=n&&this.i[n]>=a;){var h=this.i[n],l=this.f[n];if(void 0===o[U(l).toString()]&&l.V()&&(void 0===r||Ot(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),la(t,e,h,p),p=i(l)))return p;p=h,n--}}},r.Ub=function(t){var e=t.Hc(),o=t.Y(1),i=t.ye(),r=t.qg(1),n=t.f,s=t.Oc(),a=t.l,p=t.g,h=t.ic();t=t.a,this.j.length?U(this.j[this.j.length-1])!=U(o)&&(this.S.push(this.b.length),this.j.push(o)):this.j.push(o),this.c.length?U(this.c[this.c.length-1])!=U(r)&&(this.v.push(this.b.length),this.c.push(r)):this.c.push(r),this.D=e[0],this.C=e[1],this.oa=h[1],this.ra=i[1],this.I=i[0],this.R=n,this.Ua=s[0],this.T=s[1],this.fa=p,this.na=a,this.fb=t,this.pa=h[0]},e(Ua,ta);var Ga=new Ua;function Ba(){this.b="varying float a;varying vec2 b;varying float c;attribute vec2 d;attribute vec2 e;attribute vec2 f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;bool nearlyEquals(in float value,in float ref){float epsilon=0.000000000001;return value>=ref-epsilon&&value<=ref+epsilon;}void alongNormal(out vec2 offset,in vec2 nextP,in float turnDir,in float direction){vec2 dirVect=nextP-e;vec2 normal=normalize(vec2(-turnDir*dirVect.y,turnDir*dirVect.x));offset=k/2.0*normal*direction;}void miterUp(out vec2 offset,out float round,in bool isRound,in float direction){float halfWidth=k/2.0;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=f-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;round=0.0;if(isRound){round=1.0;}else if(miterLength>l+k){offset=halfWidth*tmpNormal*direction;}} bool miterDown(out vec2 offset,in vec4 projPos,in mat4 offsetMatrix,in float direction){bool degenerate=false;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=d-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));vec2 longOffset,shortOffset,longVertex;vec4 shortProjVertex;float halfWidth=k/2.0;if(length(f-e)>length(d-e)){longOffset=tmpNormal*direction*halfWidth;shortOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=f;shortProjVertex=h*vec4(d,0.0,1.0);}else{shortOffset=tmpNormal*direction*halfWidth;longOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=d;shortProjVertex=h*vec4(f,0.0,1.0);}vec4 p1=h*vec4(longVertex,0.0,1.0)+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p2=projPos+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p3=shortProjVertex+offsetMatrix*vec4(-shortOffset,0.0,0.0);vec4 p4=shortProjVertex+offsetMatrix*vec4(shortOffset,0.0,0.0);float denom=(p4.y-p3.y)*(p2.x-p1.x)-(p4.x-p3.x)*(p2.y-p1.y);float firstU=((p4.x-p3.x)*(p1.y-p3.y)-(p4.y-p3.y)*(p1.x-p3.x))/denom;float secondU=((p2.x-p1.x)*(p1.y-p3.y)-(p2.y-p1.y)*(p1.x-p3.x))/denom;float epsilon=0.000000000001;if(firstU>epsilon&&firstU<1.0-epsilon&&secondU>epsilon&&secondU<1.0-epsilon){shortProjVertex.x=p1.x+firstU*(p2.x-p1.x);shortProjVertex.y=p1.y+firstU*(p2.y-p1.y);offset=shortProjVertex.xy;degenerate=true;}else{float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;}return degenerate;}void squareCap(out vec2 offset,out float round,in bool isRound,in vec2 nextP,in float turnDir,in float direction){round=0.0;vec2 dirVect=e-nextP;vec2 firstNormal=normalize(dirVect);vec2 secondNormal=vec2(turnDir*firstNormal.y*direction,-turnDir*firstNormal.x*direction);vec2 hypotenuse=normalize(firstNormal-secondNormal);vec2 normal=vec2(turnDir*hypotenuse.y*direction,-turnDir*hypotenuse.x*direction);float length=sqrt(c*c*2.0);offset=normal*length;if(isRound){round=1.0;}} void main(void){bool degenerate=false;float direction=float(sign(g));mat4 offsetMatrix=i*j;vec2 offset;vec4 projPos=h*vec4(e,0.0,1.0);bool round=nearlyEquals(mod(g,2.0),0.0);a=0.0;c=k/2.0;b=projPos.xy;if(nearlyEquals(mod(g,3.0),0.0)||nearlyEquals(mod(g,17.0),0.0)){alongNormal(offset,f,1.0,direction);}else if(nearlyEquals(mod(g,5.0),0.0)||nearlyEquals(mod(g,13.0),0.0)){alongNormal(offset,d,-1.0,direction);}else if(nearlyEquals(mod(g,23.0),0.0)){miterUp(offset,a,round,direction);}else if(nearlyEquals(mod(g,19.0),0.0)){degenerate=miterDown(offset,projPos,offsetMatrix,direction);}else if(nearlyEquals(mod(g,7.0),0.0)){squareCap(offset,a,round,f,1.0,direction);}else if(nearlyEquals(mod(g,11.0),0.0)){squareCap(offset,a,round,d,-1.0,direction);}if(!degenerate){vec4 offsets=offsetMatrix*vec4(offset,0.0,0.0);gl_Position=projPos+offsets;}else{gl_Position=vec4(offset,0.0,1.0);}}"}e(Ba,ea);var Xa=new Ba;function Va(t,e){this.B=t.getUniformLocation(e,"n"),this.oa=t.getUniformLocation(e,"k"),this.R=t.getUniformLocation(e,"l"),this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"m"),this.ra=t.getUniformLocation(e,"p"),this.i=t.getUniformLocation(e,"h"),this.I=t.getUniformLocation(e,"o"),this.g=t.getAttribLocation(e,"g"),this.o=t.getAttribLocation(e,"d"),this.l=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"e")}function Wa(t,e){ha.call(this,0,e),this.v=null,this.u=[],this.j=[],this.c={strokeColor:null,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0,s:!1}}function Za(t,e,o,i){for(var r=t.a.length,n=t.b.length,s="bevel"===t.c.lineJoin?0:"miter"===t.c.lineJoin?1:2,a="butt"===t.c.lineCap?0:"square"===t.c.lineCap?1:2,p=Oa(e,o,i),h=n,l=1,u=0;u<o;u+=i){var c,f=r/7,y=g,g=c||[e[u],e[u+1]];if(u){if(u===o-i){p?c=d:(r=Ka(t,y=y||[0,0],g,[0,0],l*_a*(a||1),r),r=Ka(t,y,g,[0,0],-l*_a*(a||1),r),t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=h,t.b[n++]=f+1,t.b[n++]=f,a&&(r=Ka(t,y,g,[0,0],l*Qa*a,r),r=Ka(t,y,g,[0,0],-l*Qa*a,r),t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=f+1,t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f+2));break}c=[e[u+i],e[u+i+1]]}else{if(c=[e[u+i],e[u+i+1]],+o==2*i&&Z(g,c))break;if(!p){a&&(r=Ka(t,[0,0],g,c,l*$a*a,r),r=Ka(t,[0,0],g,c,-l*$a*a,r),t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=f+1,t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f+2),r=Ka(t,[0,0],g,c,l*Ja*(a||1),r),h=(r=Ka(t,[0,0],g,c,-l*Ja*(a||1),r))/7-1;continue}var y=[e[o-2*i],e[o-2*i+1]],d=c}var v=ya(y[0],y[1],g[0],g[1],c[0],c[1])?-1:1,r=Ka(t,y,g,c,v*tp*(s||1),r);r=Ka(t,y,g,c,v*ep*(s||1),r),r=Ka(t,y,g,c,-v*op*(s||1),r),0<u&&(t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=0<l*v?h:h-1),t.b[n++]=f,t.b[n++]=f+2,t.b[n++]=f+1,h=f+2,l=v,s&&(r=Ka(t,y,g,c,v*ip*s,r),t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f)}p&&(f=f||r/7,r=Ka(t,y,g,c,(v=Vr([y[0],y[1],g[0],g[1],c[0],c[1]],0,6,2)?1:-1)*tp*(s||1),r),Ka(t,y,g,c,-v*op*(s||1),r),t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=f+1,t.b[n++]=f,t.b[n++]=0<l*v?h:h-1)}function Ka(t,e,o,i,r,n){return t.a[n++]=e[0],t.a[n++]=e[1],t.a[n++]=o[0],t.a[n++]=o[1],t.a[n++]=i[0],t.a[n++]=i[1],t.a[n++]=r,n}function za(t,e,o,i){return!((o-=e)<2*i||o===2*i&&Z([t[e],t[e+1]],[t[e+i],t[e+i+1]]))}function Ya(t,e,o,i){var r;if(Oa(e,e.length,i)||(e.push(e[0]),e.push(e[1])),Za(t,e,e.length,i),o.length)for(e=0,r=o.length;e<r;++e)Oa(o[e],o[e].length,i)||(o[e].push(o[e][0]),o[e].push(o[e][1])),Za(t,o[e],o[e].length,i)}function Ha(t,e,o){o=void 0===o?t.b.length:o,t.i.push(o),t.f.push(e),t.c.s&&(t.j.push(o),t.c.s=!1)}function qa(t,e,o,i,r){e.uniform4fv(t.v.B,o),e.uniform1f(t.v.oa,i),e.uniform1f(t.v.R,r)}e(Wa,ha),(r=Wa.prototype).mc=function(t,e){var o=t.ga();t=t.qa(),za(o,0,o.length,t)&&(o=dr(o,0,o.length,t,-this.origin[0],-this.origin[1]),this.c.s&&(this.j.push(this.b.length),this.c.s=!1),this.i.push(this.b.length),this.f.push(e),Za(this,o,o.length,t))},r.nc=function(t,e){var o=this.b.length,i=t.Bb(),r=(i.unshift(0),t.ga());if(t=t.qa(),1<i.length)for(var n,s=1,a=i.length;s<a;++s)za(r,i[s-1],i[s],t)&&Za(this,n=dr(r,i[s-1],i[s],t,-this.origin[0],-this.origin[1]),n.length,t);this.b.length>o&&(this.i.push(o),this.f.push(e),this.c.s)&&(this.j.push(o),this.c.s=!1)},r.Db=function(){this.l=new da(this.a),this.o=new da(this.b),this.i.push(this.b.length),!this.j.length&&0<this.u.length&&(this.u=[]),this.b=this.a=null},r.Eb=function(t){var e=this.l,o=this.o;return function(){Ta(t,e),Ta(t,o)}},r.rf=function(t,e,o,i){var r,n=La(e,Ga,Xa);return this.v?r=this.v:this.v=r=new Va(t,n),e.Qc(n),t.enableVertexAttribArray(r.o),t.vertexAttribPointer(r.o,2,5126,!1,28,0),t.enableVertexAttribArray(r.b),t.vertexAttribPointer(r.b,2,5126,!1,28,8),t.enableVertexAttribArray(r.l),t.vertexAttribPointer(r.l,2,5126,!1,28,16),t.enableVertexAttribArray(r.g),t.vertexAttribPointer(r.g,1,5126,!1,28,24),t.uniform2fv(r.I,o),t.uniform1f(r.ra,i),r},r.sf=function(t,e){t.disableVertexAttribArray(e.o),t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.l),t.disableVertexAttribArray(e.g)},r.Od=function(t,e,o,i){var r=t.getParameter(t.DEPTH_FUNC),n=t.getParameter(t.DEPTH_WRITEMASK);if(i||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),Zt(o)){var s=this.i[this.i.length-1];for(o=this.j.length-1;0<=o;--o){var a=this.j[o],p=this.u[o];qa(this,t,p[0],p[1],p[2]),la(t,e,a,s),t.clear(t.DEPTH_BUFFER_BIT),s=a}}else for(var h=this.i.length-2,p=s=this.i[h+1],a=this.j.length-1;0<=a;--a){var l=this.u[a];for(qa(this,t,l[0],l[1],l[2]),l=this.j[a];0<=h&&this.i[h]>=l;){var u=this.i[h];o[U(this.f[h]).toString()]&&(s!==p&&(la(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),p=u),h--,s=u}s!==p&&(la(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),s=p=l}i||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(n),t.depthFunc(r))},r.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.j.length-1;0<=p;--p)for(qa(this,t,(h=this.u[p])[0],h[1],h[2]),n=this.j[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[U(l).toString()]&&l.V()&&(void 0===r||Ot(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),la(t,e,h,a),a=i(l)))return a;s--,a=h}},r.Ma=function(t,e){t=e.f,this.c.lineCap=void 0!==t?t:"round",t=e.i,this.c.lineDash=t||ca,t=e.g,this.c.lineDashOffset=t||0,t=e.j,this.c.lineJoin=void 0!==t?t:"round",t=!((t=e.a)instanceof CanvasGradient||t instanceof CanvasPattern)&&vo(t).map(function(t,e){return 3!=e?t/255:t})||fa;var o=void 0!==(o=e.c)?o:1;e=void 0!==(e=e.o)?e:10,this.c.strokeColor&&Z(this.c.strokeColor,t)&&this.c.lineWidth===o&&this.c.miterLimit===e||(this.c.s=!0,this.c.strokeColor=t,this.c.lineWidth=o,this.c.miterLimit=e,this.u.push([t,o,e]))};var Ja=3,_a=5,$a=7,Qa=11,tp=13,ep=17,op=19,ip=23;function rp(){this.b="precision mediump float;uniform vec4 e;uniform float f;void main(void){gl_FragColor=e;float alpha=e.a*f;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(rp,ta);var np=new rp;function sp(){this.b="attribute vec2 a;uniform mat4 b;uniform mat4 c;uniform mat4 d;void main(void){gl_Position=b*vec4(a,0.0,1.0);}"}e(sp,ea);var ap=new sp;function pp(t,e){this.B=t.getUniformLocation(e,"e"),this.c=t.getUniformLocation(e,"d"),this.f=t.getUniformLocation(e,"c"),this.a=t.getUniformLocation(e,"f"),this.i=t.getUniformLocation(e,"b"),this.b=t.getAttribLocation(e,"a")}function hp(t){this.a=void 0!==(t=t||{}).color?t.color:null,this.f=t.lineCap,this.i=void 0!==t.lineDash?t.lineDash:null,this.g=t.lineDashOffset,this.j=t.lineJoin,this.o=t.miterLimit,this.c=t.width,this.b=void 0}function lp(t){this.b=this.a=this.i=void 0,this.f=void 0===t||t,this.c=0}function up(t){var e,o,i=t.b;i&&(e=i.next,o=i.ub,e&&(e.ub=o),o&&(o.next=e),t.b=e||o,t.i===t.a?(t.b=void 0,t.i=void 0,t.a=void 0):t.i===i?t.i=t.b:t.a===i&&(t.a=o?t.b.ub:t.b),t.c--)}function cp(t){if(t.b=t.i,t.b)return t.b.data}function fp(t){if(t.b&&t.b.next)return t.b=t.b.next,t.b.data}function yp(t){if(t.b&&t.b.next)return t.b.next.data}function gp(t){if(t.b&&t.b.ub)return t.b=t.b.ub,t.b.data}function dp(t){if(t.b&&t.b.ub)return t.b.ub.data}function vp(t){if(t.b)return t.b.data}(r=hp.prototype).clone=function(){var t=this.a;return new hp({color:t&&t.slice?t.slice():t||void 0,lineCap:this.f,lineDash:this.i?this.i.slice():void 0,lineDashOffset:this.g,lineJoin:this.j,miterLimit:this.o,width:this.c})},r.No=function(){return this.a},r.Vk=function(){return this.f},r.Oo=function(){return this.i},r.Wk=function(){return this.g},r.Xk=function(){return this.j},r.bl=function(){return this.o},r.Po=function(){return this.c},r.Qo=function(t){this.a=t,this.b=void 0},r.aq=function(t){this.f=t,this.b=void 0},r.setLineDash=function(t){this.i=t,this.b=void 0},r.bq=function(t){this.g=t,this.b=void 0},r.cq=function(t){this.j=t,this.b=void 0},r.gq=function(t){this.o=t,this.b=void 0},r.jq=function(t){this.c=t,this.b=void 0},lp.prototype.concat=function(t){var e;t.b&&(this.b?(e=this.b.next,this.b.next=t.i,t.i.ub=this.b,e.ub=t.a,t.a.next=e,this.c+=t.c):(this.b=t.b,this.i=t.i,this.a=t.a,this.c=t.c),t.b=void 0,t.i=void 0,t.a=void 0,t.c=0)};var bp,mp={$d:function(){}};function wp(t,e,o){var i=t[e];t[e]=t[o],t[o]=i}function xp(t,e){return t<e?-1:e<t?1:0}function Sp(t,e){if(!(this instanceof Sp))return new Sp(t,e);this.Hf=Math.max(4,t||9),this.fh=Math.max(2,Math.ceil(.4*this.Hf)),e&&this.ek(e),this.clear()}function Mp(t,e){Pp(t,0,t.children.length,e,t)}function Pp(t,e,o,i,r){(r=r||Ip(null)).ca=1/0,r.da=1/0,r.$=-1/0,r.ia=-1/0;for(var n;e<o;e++)n=t.children[e],Ap(r,t.ib?i(n):n);return r}function Ap(t,e){t.ca=Math.min(t.ca,e.ca),t.da=Math.min(t.da,e.da),t.$=Math.max(t.$,e.$),t.ia=Math.max(t.ia,e.ia)}function Ep(t,e){return t.ca-e.ca}function Tp(t,e){return t.da-e.da}function jp(t){return(t.$-t.ca)*(t.ia-t.da)}function Cp(t){return t.$-t.ca+(t.ia-t.da)}function Lp(t,e){return t.ca<=e.ca&&t.da<=e.da&&e.$<=t.$&&e.ia<=t.ia}function Rp(t,e){return e.ca<=t.$&&e.da<=t.ia&&e.$>=t.ca&&e.ia>=t.da}function Ip(t){return{children:t,height:1,ib:!0,ca:1/0,da:1/0,$:-1/0,ia:-1/0}}function Np(t,e,o,i,r){for(var n,s=[e,o];s.length;)(o=s.pop())-(e=s.pop())<=i||(n=e+Math.ceil((o-e)/i/2)*i,bp(t,n,e,o,r),s.push(e,n,n,o))}function Fp(t){this.a=mp.$d(t),this.b={}}function kp(t,e,o){var i=t.b[U(o)];St([i.ca,i.da,i.$,i.ia],e)||(t.remove(o),t.Ca(e,o))}function Dp(t){return t.a.all().map(function(t){return t.value})}function Op(t,e){return t.a.search({ca:e[0],da:e[1],$:e[2],ia:e[3]}).map(function(t){return t.value})}function Up(t,e,o,i){return Gp(Op(t,e),o,i)}function Gp(t,e,o){for(var i,r=0,n=t.length;r<n&&!(i=e.call(o,t[r]));r++);return i}function Bp(t,e){ha.call(this,0,e),this.g=new Wa(0,e),this.v=null,this.u=[],this.c=[],this.j={fillColor:null,s:!1}}function Xp(t,e,o,i){var r=new lp,n=new Fp;if(e=Vp(t,e,i,r,n,!0),o.length){for(var s=[],a=0,p=o.length;a<p;++a){var h={list:new lp,$:void 0,Mg:new Fp};s.push(h),h.$=Vp(t,o[a],i,h.list,h.Mg,!1)}for(s.sort(function(t,e){return e.$[0]===t.$[0]?t.$[1]-e.$[1]:e.$[0]-t.$[0]}),a=0;a<s.length;++a){p=i=cp(o=s[a].list);do{if(_p(p,n).length){var l=!0;break}}while(i!==(p=fp(o)));l||(Wp(o,s[a].Mg,!0),function(t,e,o,i,r){for(var n=cp(t);n.W.x!==e;)n=fp(t);e=n.W,i={x:i,y:e.y,hb:-1};var s,a=1/0,p=_p({aa:e,W:i},r,!0),h=0;for(s=p.length;h<s;++h){var l,u=p[h],c=$p(e,i,u.aa,u.W,!0),f=Math.abs(e.x-c[0]);f<a&&void 0!==ya(e.x,e.y,u.aa.x,u.aa.y,u.W.x,u.W.y)&&(a=f,l={x:c[0],y:c[1],hb:-1},n=u)}if(1/0===a)return;if(p=n.W,0<a&&(n=Jp(e,l,n.W,r)).length)for(l=1/0,h=0,s=n.length;h<s;++h)a=n[h],((u=Math.atan2(e.y-a.y,i.x-a.x))<l||u===l&&a.x<p.x)&&(l=u,p=a);for(n=cp(o);n.W.x!==p.x||n.W.y!==p.y;)n=fp(o);return i={x:e.x,y:e.y,hb:e.hb,Fb:void 0},h={x:n.W.x,y:n.W.y,hb:n.W.hb,Fb:void 0},yp(t).aa=i,Hp(e,n.W,t,r),Hp(h,i,t,r),n.W=h,t.f&&t.b&&(t.i=t.b,t.a=t.b.ub),o.concat(t),1}(o,s[a].$[0],r,e[0],n)&&(n.concat(s[a].Mg),Wp(r,n,!1)))}}else Wp(r,n,!1);!function t(e,o,i){for(var r=!1,n=zp(o,i);3<o.c;)if(n){if(!Zp(e,o,i,n,r)&&!Wp(o,i,r)&&!Kp(e,o,i,!0))break}else if(!Zp(e,o,i,n,r)&&!Wp(o,i,r)&&!Kp(e,o,i)){if(!(n=zp(o,i))){n=e,s=a=cp(r=o);do{if((p=_p(s,i)).length){for(a=p[0],p=$p(s.aa,s.W,a.aa,a.W),p=Yp(n,p[0],p[1],n.a.length/2),h=new lp,l=new Fp,Hp(p,s.W,h,l),s.W=p,kp(i,[Math.min(s.aa.x,p.x),Math.min(s.aa.y,p.y),Math.max(s.aa.x,p.x),Math.max(s.aa.y,p.y)],s),s=fp(r);s!==a;)Hp(s.aa,s.W,h,l),i.remove(s),up(r),s=vp(r);Hp(a.aa,p,h,l),a.aa=p,kp(i,[Math.min(a.W.x,p.x),Math.min(a.W.y,p.y),Math.max(a.W.x,p.x),Math.max(a.W.y,p.y)],a),Wp(r,i,!1),t(n,r,i),Wp(h,l,!1),t(n,h,l);break}}while((s=fp(r))!==a);break}for(var s=2*(r=o).c,a=Array(s),p=cp(r),h=p,l=0;a[l++]=h.aa.x,a[l++]=h.aa.y,(h=fp(r))!==p;);r=!Vr(a,0,s,2),Wp(o,i,r)}3===o.c&&(n=e.b.length,e.b[n++]=dp(o).aa.hb,e.b[n++]=vp(o).aa.hb,e.b[n++]=yp(o).aa.hb)}(t,r,n)}function Vp(t,e,o,i,r,n){var s,a=t.a.length/2,p=[],h=[];if(n===Vr(e,0,e.length,o))for(var l=s=Yp(t,e[0],e[1],a++),u=(n=e[0],e[1]),c=o,f=e.length;c<f;c+=o){var y=Yp(t,e[c],e[c+1],a++);h.push(Hp(l,y,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),e[c]>n&&(n=e[c],u=e[c+1]),l=y}else for(l=s=Yp(t,e[c=e.length-o],e[c+1],a++),n=e[c],u=e[c+1],c-=o,f=0;f<=c;c-=o)y=Yp(t,e[c],e[c+1],a++),h.push(Hp(l,y,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),e[c]>n&&(n=e[c],u=e[c+1]),l=y;return h.push(Hp(y,s,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),r.load(p,h),[n,u]}function Wp(t,e,o){var i=cp(t),r=i,n=fp(t),s=!1;do{var a=o?ya(n.W.x,n.W.y,r.W.x,r.W.y,r.aa.x,r.aa.y):ya(r.aa.x,r.aa.y,r.W.x,r.W.y,n.W.x,n.W.y)}while(void 0===a?(qp(r,n,t,e),s=!0,n===i&&(i=yp(t)),n=r,gp(t)):r.W.Fb!==a&&(r.W.Fb=a,s=!0),r=n,n=fp(t),r!==i);return s}function Zp(t,e,o,i,r){var n=t.b.length,s=cp(e),a=dp(e),p=s,h=fp(e),l=yp(e),u=!1;do{var c,f=p.aa,y=p.W,g=h.W}while(!1===y.Fb&&(c=r?Qp(l.W,g,y,f,a.aa):Qp(a.aa,f,y,g,l.W),!i&&_p({aa:f,W:g},o).length||!c||Jp(f,y,g,o,!0).length||!i&&!1!==f.Fb&&!1!==g.Fb&&Vr([a.aa.x,a.aa.y,f.x,f.y,y.x,y.y,g.x,g.y,l.W.x,l.W.y],0,10,2)!==!r||(t.b[n++]=f.hb,t.b[n++]=y.hb,t.b[n++]=g.hb,qp(p,h,e,o),h===s&&(s=l),u=!0)),a=dp(e),p=vp(e),h=fp(e),l=yp(e),p!==s&&3<e.c);return u}function Kp(t,e,o,i){var r=cp(e),n=(fp(e),r),s=fp(e),a=!1;do{var p=$p(n.aa,n.W,s.aa,s.W,i);if(p){var a=t.b.length,h=t.a.length/2,l=gp(e),u=(up(e),o.remove(l),l===r);if(i?(u=p[0]===n.aa.x&&p[1]===n.aa.y?(gp(e),p=n.aa,s.aa=p,o.remove(n),u||n===r):(p=s.W,n.W=p,o.remove(s),u||s===r),up(e)):(p=Yp(t,p[0],p[1],h),n.W=p,s.aa=p,kp(o,[Math.min(n.aa.x,n.W.x),Math.min(n.aa.y,n.W.y),Math.max(n.aa.x,n.W.x),Math.max(n.aa.y,n.W.y)],n),kp(o,[Math.min(s.aa.x,s.W.x),Math.min(s.aa.y,s.W.y),Math.max(s.aa.x,s.W.x),Math.max(s.aa.y,s.W.y)],s)),t.b[a++]=l.aa.hb,t.b[a++]=l.W.hb,t.b[a++]=p.hb,a=!0,u)break}}while(n=dp(e),s=fp(e),n!==r);return a}function zp(t,e){var o=cp(t),i=o;do{if(_p(i,e).length)return!1}while((i=fp(t))!==o);return!0}function Yp(t,e,o,i){var r=t.a.length;return{x:t.a[r++]=e,y:t.a[+r]=o,hb:i,Fb:void 0}}function Hp(t,e,o,i){var r,n={aa:t,W:e},s={ub:void 0,next:void 0,data:n},a=o.b;return a?(r=a.next,s.ub=a,s.next=r,a.next=s,r&&(r.ub=s),a===o.a&&(o.a=s)):(o.i=s,o.a=s,o.f&&((s.next=s).ub=s)),o.b=s,o.c++,i&&i.Ca([Math.min(t.x,e.x),Math.min(t.y,e.y),Math.max(t.x,e.x),Math.max(t.y,e.y)],n),n}function qp(t,e,o,i){vp(o)===e&&(up(o),t.W=e.W,i.remove(e),kp(i,[Math.min(t.aa.x,t.W.x),Math.min(t.aa.y,t.W.y),Math.max(t.aa.x,t.W.x),Math.max(t.aa.y,t.W.y)],t))}function Jp(t,e,o,i,r){var n,s,a=[],p=Op(i,[Math.min(t.x,e.x,o.x),Math.min(t.y,e.y,o.y),Math.max(t.x,e.x,o.x),Math.max(t.y,e.y,o.y)]);for(i=0,n=p.length;i<n;++i)for(s in p[i]){var h=p[i][s];"object"!=typeof h||r&&!h.Fb||h.x===t.x&&h.y===t.y||h.x===e.x&&h.y===e.y||h.x===o.x&&h.y===o.y||-1!==a.indexOf(h)||!Dr([t.x,t.y,e.x,e.y,o.x,o.y],0,6,2,h.x,h.y)||a.push(h)}return a}function _p(t,e,o){for(var i=t.aa,r=t.W,n=[],s=0,a=(e=Op(e,[Math.min(i.x,r.x),Math.min(i.y,r.y),Math.max(i.x,r.x),Math.max(i.y,r.y)])).length;s<a;++s){var p=e[s];t!==p&&(o||p.aa!==r||p.W!==i)&&$p(i,r,p.aa,p.W,o)&&n.push(p)}return n}function $p(t,e,o,i,r){var n=(i.y-o.y)*(e.x-t.x)-(i.x-o.x)*(e.y-t.y);if(n&&(i=((i.x-o.x)*(t.y-o.y)-(i.y-o.y)*(t.x-o.x))/n,o=((e.x-t.x)*(t.y-o.y)-(e.y-t.y)*(t.x-o.x))/n,!r&&ga<i&&i<1-ga&&ga<o&&o<1-ga||r&&0<=i&&i<=1&&0<=o&&o<=1))return[t.x+i*(e.x-t.x),t.y+i*(e.y-t.y)]}function Qp(t,e,o,i,r){var n;return void 0!==e.Fb&&void 0!==i.Fb&&(n=(o.x-i.x)*(e.y-i.y)>(o.y-i.y)*(e.x-i.x),r=(r.x-i.x)*(e.y-i.y)<(r.y-i.y)*(e.x-i.x),t=(t.x-e.x)*(i.y-e.y)>(t.y-e.y)*(i.x-e.x),o=(o.x-e.x)*(i.y-e.y)<(o.y-e.y)*(i.x-e.x),e=e.Fb?o||t:o&&t,i.Fb?r||n:r&&n)&&e}function th(){}function eh(t,e,o){this.f=e,this.g=t,this.c=o,this.a={}}function oh(t,e){var o,i=[];for(o in t.a){var r,n=t.a[o];for(r in n)i.push(n[r].Eb(e))}return function(){for(var t,e=i.length,o=0;o<e;o++)t=i[o].apply(this,arguments);return t}}function ih(t,e,o,i,r,n,s,a,p,h,l){for(var u=rh,c=Object.keys(t.a).map(Number),f=(c.sort(function(t,e){return e-t}),0),y=c.length;f<y;++f)for(var g=t.a[c[f].toString()],d=_s.length-1;0<=d;--d){var v=g[_s[d]];if(void 0!==v&&(v=v.La(e,o,i,r,u,n,s,a,p,h,l)))return v}}yi=mp.$d=mp.$d||{},bp=function t(e,o,i,r,n){for(i=i||0,r=r||e.length-1,n=n||xp;i<r;){var s,a,p,h;for(600<r-i&&(s=r-i+1,a=o-i+1,h=Math.log(s),p=.5*Math.exp(2*h/3),h=.5*Math.sqrt(h*p*(s-p)/s)*(a-s/2<0?-1:1),t(e,o,Math.max(i,Math.floor(o-a*p/s+h)),Math.min(r,Math.floor(o+(s-a)*p/s+h)),n)),s=e[o],p=r,wp(e,a=i,o),0<n(e[r],s)&&wp(e,i,r);a<p;){for(wp(e,a,p),a++,p--;n(e[a],s)<0;)a++;for(;0<n(e[p],s);)p--}0===n(e[i],s)?wp(e,i,p):wp(e,++p,r),p<=o&&(i=p+1),o<=p&&(r=p-1)}},Sp.prototype={all:function(){return this.$g(this.data,[])},search:function(t){var e=this.data,o=[],i=this.wb;if(Rp(t,e))for(var r,n,s,a,p=[];e;){for(r=0,n=e.children.length;r<n;r++)s=e.children[r],Rp(t,a=e.ib?i(s):s)&&(e.ib?o.push(s):Lp(t,a)?this.$g(s,o):p.push(s));e=p.pop()}return o},load:function(t){if(t&&t.length)if(t.length<this.fh)for(var e=0,o=t.length;e<o;e++)this.Ca(t[e]);else t=this.bh(t.slice(),0,t.length-1,0),this.data.children.length?this.data.height===t.height?this.hh(this.data,t):(this.data.height<t.height&&(e=this.data,this.data=t,t=e),this.eh(t,this.data.height-t.height-1,!0)):this.data=t;return this},Ca:function(t){return t&&this.eh(t,this.data.height-1),this},clear:function(){return this.data=Ip([]),this},remove:function(t,e){if(t)for(var o,i,r,n=this.data,s=this.wb(t),a=[],p=[];n||a.length;){if(n||(n=a.pop(),i=a[a.length-1],o=p.pop(),r=!0),n.ib){t:{var h=t,l=n.children,u=e;if(u){for(var c=0;c<l.length;c++)if(u(h,l[c])){h=c;break t}h=-1}else h=l.indexOf(h)}if(-1!==h){n.children.splice(h,1),a.push(n),this.ck(a);break}}r||n.ib||!Lp(n,s)?i?(o++,n=i.children[o],r=!1):n=null:(a.push(n),p.push(o),n=(i=n).children[o=0])}return this},wb:function(t){return t},Lf:Ep,Mf:Tp,toJSON:function(){return this.data},$g:function(t,e){for(var o=[];t;)t.ib?e.push.apply(e,t.children):o.push.apply(o,t.children),t=o.pop();return e},bh:function(t,e,o,i){var r,n,s=o-e+1,a=this.Hf;if(s<=a)Mp(r=Ip(t.slice(e,o+1)),this.wb);else{for(i||(i=Math.ceil(Math.log(s)/Math.log(a)),a=Math.ceil(s/Math.pow(a,i-1))),(r=Ip([])).ib=!1,r.height=i,Np(t,e,o,a=(s=Math.ceil(s/a))*Math.ceil(Math.sqrt(a)),this.Lf);e<=o;e+=a){var p=Math.min(e+a-1,o);for(Np(t,e,p,s,this.Mf),n=e;n<=p;n+=s){var h=Math.min(n+s-1,p);r.children.push(this.bh(t,n,h,i-1))}}Mp(r,this.wb)}return r},bk:function(t,e,o,i){for(var r,n,s,a,p,h,l,u;i.push(e),!e.ib&&i.length-1!==o;){for(l=u=1/0,r=0,n=e.children.length;r<n;r++)p=jp(s=e.children[r]),(h=(Math.max(s.$,t.$)-Math.min(s.ca,t.ca))*(Math.max(s.ia,t.ia)-Math.min(s.da,t.da))-p)<u?(u=h,l=p<l?p:l,a=s):h===u&&p<l&&(l=p,a=s);e=a||e.children[0]}return e},eh:function(t,e,o){var i=this.wb,i=(o=o?t:i(t),[]),r=this.bk(o,this.data,e,i);for(r.children.push(t),Ap(r,o);0<=e&&i[e].children.length>this.Hf;)this.jk(i,e),e--;this.Zj(o,i,e)},jk:function(t,e){var o=t[e],i=o.children.length,r=this.fh;this.$j(o,r,i),i=this.ak(o,r,i),(i=Ip(o.children.splice(i,o.children.length-i))).height=o.height,i.ib=o.ib,Mp(o,this.wb),Mp(i,this.wb),e?t[e-1].children.push(i):this.hh(o,i)},hh:function(t,e){this.data=Ip([t,e]),this.data.height=t.height+1,this.data.ib=!1,Mp(this.data,this.wb)},ak:function(t,e,o){for(var i=s=1/0,r=e;r<=o-e;r++){var n,s,a=Pp(t,0,r,this.wb),p=Pp(t,r,o,this.wb),h=Math.max(0,Math.min(a.$,p.$)-Math.max(a.ca,p.ca))*Math.max(0,Math.min(a.ia,p.ia)-Math.max(a.da,p.da)),a=jp(a)+jp(p);h<i?(i=h,n=r,s=a<s?a:s):h===i&&a<s&&(s=a,n=r)}return n},$j:function(t,e,o){var i=t.ib?this.Lf:Ep,r=t.ib?this.Mf:Tp;this.ah(t,e,o,i)<(e=this.ah(t,e,o,r))&&t.children.sort(i)},ah:function(t,e,o,i){t.children.sort(i);for(var r=Pp(t,0,e,i=this.wb),n=Pp(t,o-e,o,i),s=Cp(r)+Cp(n),a=e;a<o-e;a++){var p=t.children[a];Ap(r,t.ib?i(p):p),s+=Cp(r)}for(a=o-e-1;e<=a;a--)p=t.children[a],Ap(n,t.ib?i(p):p),s+=Cp(n);return s},Zj:function(t,e,o){for(;0<=o;o--)Ap(e[o],t)},ck:function(t){for(var e,o=t.length-1;0<=o;o--)0===t[o].children.length?0<o?(e=t[o-1].children).splice(e.indexOf(t[o]),1):this.clear():Mp(t[o],this.wb)},ek:function(t){var e=["return a"," - b",";"];this.Lf=new Function("a","b",e.join(t[0])),this.Mf=new Function("a","b",e.join(t[1])),this.wb=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}},yi.default=Sp,mp.$d=mp.$d.default,(r=Fp.prototype).Ca=function(t,e){t={ca:t[0],da:t[1],$:t[2],ia:t[3],value:e},this.a.Ca(t),this.b[U(e)]=t},r.load=function(t,e){for(var o=Array(e.length),i=0,r=e.length;i<r;i++){var n=t[i],s=e[i],n={ca:n[0],da:n[1],$:n[2],ia:n[3],value:s};o[i]=n,this.b[U(s)]=n}this.a.load(o)},r.remove=function(t){t=U(t);var e=this.b[t];return delete this.b[t],null!==this.a.remove(e)},r.forEach=function(t,e){return Gp(Dp(this),t,e)},r.clear=function(){this.a.clear(),this.b={}},r.G=function(t){var e=this.a.data;return bt(e.ca,e.da,e.$,e.ia,t)},r.concat=function(t){for(var e in this.a.load(t.a.all()),t.b)this.b[0|e]=t.b[0|e]},e(Bp,ha),(r=Bp.prototype).pc=function(t,e){for(var o=t.c,i=t.qa(),r=this.b.length,n=this.g.b.length,s=(t=t.ga(),c=0),a=o.length;s<a;++s){var p=o[s];if(0<p.length){var h=dr(t,c,p[0],i,-this.origin[0],-this.origin[1]);if(h.length){for(var l,u=[],c=1,f=p.length;c<f;++c)p[c]!==p[c-1]&&(l=dr(t,p[c-1],p[c],i,-this.origin[0],-this.origin[1]),u.push(l));Ya(this.g,h,u,i),Xp(this,h,u,i)}}c=p[p.length-1]}this.b.length>r&&(this.i.push(r),this.f.push(e),this.j.s)&&(this.c.push(r),this.j.s=!1),this.g.b.length>n&&Ha(this.g,e,n)},r.rc=function(t,e){var o=t.Bb(),i=t.qa();if(0<o.length){var r=dr(t=t.ga().map(Number),0,o[0],i,-this.origin[0],-this.origin[1]);if(r.length){for(var n,s=[],a=1,p=o.length;a<p;++a)o[a]!==o[a-1]&&(n=dr(t,o[a-1],o[a],i,-this.origin[0],-this.origin[1]),s.push(n));this.i.push(this.b.length),this.f.push(e),this.j.s&&(this.c.push(this.b.length),this.j.s=!1),Ha(this.g,e),Ya(this.g,r,s,i),Xp(this,r,s,i)}}},r.Db=function(t){this.l=new da(this.a),this.o=new da(this.b),this.i.push(this.b.length),this.g.Db(t),!this.c.length&&0<this.u.length&&(this.u=[]),this.b=this.a=null},r.Eb=function(t){var e=this.l,o=this.o,i=this.g.Eb(t);return function(){Ta(t,e),Ta(t,o),i()}},r.rf=function(t,e){var o,i=La(e,np,ap);return this.v?o=this.v:this.v=o=new pp(t,i),e.Qc(i),t.enableVertexAttribArray(o.b),t.vertexAttribPointer(o.b,2,5126,!1,8,0),o},r.sf=function(t,e){t.disableVertexAttribArray(e.b)},r.Od=function(t,e,o,i){var r=t.getParameter(t.DEPTH_FUNC),n=t.getParameter(t.DEPTH_WRITEMASK);if(i||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),Zt(o)){var s=this.i[this.i.length-1];for(o=this.c.length-1;0<=o;--o){var a=this.c[o],p=this.u[o];t.uniform4fv(this.v.B,p),la(t,e,a,s),s=a}}else for(var h=this.i.length-2,p=s=this.i[h+1],a=this.c.length-1;0<=a;--a){var l=this.u[a];for(t.uniform4fv(this.v.B,l),l=this.c[a];0<=h&&this.i[h]>=l;){var u=this.i[h];o[U(this.f[h]).toString()]&&(s!==p&&(la(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),p=u),h--,s=u}s!==p&&(la(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),s=p=l}i||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(n),t.depthFunc(r))},r.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.c.length-1;0<=p;--p){var h=this.u[p];for(t.uniform4fv(this.v.B,h),n=this.c[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[U(l).toString()]&&l.V()&&(void 0===r||Ot(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),la(t,e,h,a),a=i(l)))return a;s--,a=h}}},r.Ma=function(t,e){t=!((t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern)&&vo(t).map(function(t,e){return 3!=e?t/255:t})||ua,this.j.fillColor&&Z(t,this.j.fillColor)||(this.j.fillColor=t,this.j.s=!0,this.u.push(t)),e?this.g.Ma(null,e):this.g.Ma(null,new hp({color:[0,0,0,0],lineWidth:0}))},th.prototype.La=function(){},e(eh,$s),eh.prototype.b=function(t,e){var o=void 0!==t?t.toString():"0";return void 0===(t=this.a[o])&&(this.a[o]=t={}),void 0===(o=t[e])&&(o=new nh[e](this.g,this.f),t[e]=o),o},eh.prototype.i=function(){return Zt(this.a)},eh.prototype.La=function(t,e,o,i,r,n,s,a){for(var p=Object.keys(this.a).map(Number),h=(p.sort(G),0),l=p.length;h<l;++h)for(var u=this.a[p[h].toString()],c=0,f=_s.length;c<f;++c){var y=u[_s[c]];void 0!==y&&y.La(t,e,o,i,r,n,s,a,void 0,!1)}},eh.prototype.Ea=function(t,e,o,i,r,n,s,a,p,h){var l,u=e.b;return u.bindFramebuffer(u.FRAMEBUFFER,ja(e)),ih(this,e,t,i,r,s,a,p,function(t){var e=new Uint8Array(4);if(u.readPixels(0,0,1,1,u.RGBA,u.UNSIGNED_BYTE,e),0<e[3]&&(t=h(t)))return t},!0,l=void 0!==this.c?lt(wt(t),i*this.c):l)};var rh=[1,1],nh={Circle:ba,Image:Fa,LineString:Wa,Polygon:Bp,Text:th};function sh(t,e,o,i,r,n,s){this.b=t,this.i=e,this.a=n,this.c=s,this.j=r,this.g=i,this.f=o,this.o=this.l=this.v=null}function ah(){this.c=0,this.b={},this.i=this.a=null}function ph(t,e){Ls.call(this,0,e),this.b=document.createElement("CANVAS"),this.b.style.width="100%",this.b.style.height="100%",this.b.style.display="block",this.b.className="ol-unselectable",t.insertBefore(this.b,t.childNodes[0]||null),this.S=this.D=0,this.C=Po(),this.l=!0,this.i=Qo(this.b,{antialias:!0,depth:!0,failIfMajorPerformanceCaveat:!0,preserveDrawingBuffer:!1,stencil:!0}),this.f=new Aa(this.b,this.i),d(this.b,"webglcontextlost",this.Yn,this),d(this.b,"webglcontextrestored",this.Zn,this),this.a=new ah,this.u=null,this.j=new Zi(function(t){var e=t[1],o=(t=t[2],e[0]-this.u[0]),e=e[1]-this.u[1];return 65536*Math.log(t)+Math.sqrt(o*o+e*e)/t}.bind(this),function(t){return t[0].bb()}),this.B=function(){var t;return this.j.b.length&&(Hi(this.j),hh(this,(t=Ki(this.j))[0],t[3],t[4])),!1}.bind(this),this.g=0,uh(this)}function hh(t,e,o,i){var r,n,s,a=t.i,p=e.bb();t.a.b.hasOwnProperty(p)?(t=t.a.get(p),a.bindTexture(3553,t.Ib),9729!=t.Ph&&(a.texParameteri(3553,10240,9729),t.Ph=9729),9729!=t.Rh&&(a.texParameteri(3553,10241,9729),t.Rh=9729)):(r=a.createTexture(),a.bindTexture(3553,r),0<i?(n=t.C.canvas,s=t.C,t.D!==o[0]||t.S!==o[1]?(n.width=o[0],n.height=o[1],t.D=o[0],t.S=o[1]):s.clearRect(0,0,o[0],o[1]),s.drawImage(e.Y(),i,i,o[0],o[1],0,0,o[0],o[1]),a.texImage2D(3553,0,6408,6408,5121,n)):a.texImage2D(3553,0,6408,6408,5121,e.Y()),a.texParameteri(3553,10240,9729),a.texParameteri(3553,10241,9729),a.texParameteri(3553,10242,33071),a.texParameteri(3553,10243,33071),t.a.set(p,{Ib:r,Ph:9729,Rh:9729}))}function lh(t,e,o){var i,r=t.o;oo(r,e)&&(t=t.f,i=o.viewState,r.b(new Ds(e,new sh(t,i.center,i.resolution,i.rotation,o.size,o.extent,o.pixelRatio),o,null,t)))}function uh(t){(t=t.i).activeTexture(33984),t.blendFuncSeparate(770,771,1,771),t.disable(2884),t.disable(2929),t.disable(3089),t.disable(2960)}e(sh,Xs),(r=sh.prototype).rd=function(t){this.Ma(t.Fa(),t.Ga()),this.Ub(t.Y())},r.zb=function(t){switch(t.U()){case"Point":this.qc(t,null);break;case"LineString":this.mc(t,null);break;case"Polygon":this.rc(t,null);break;case"MultiPoint":this.oc(t,null);break;case"MultiLineString":this.nc(t,null);break;case"MultiPolygon":this.pc(t,null);break;case"GeometryCollection":this.ue(t,null);break;case"Circle":this.Zb(t,null)}},r.te=function(t,e){(t=(0,e.Za)(t))&&Ot(this.a,t.G())&&(this.rd(e),this.zb(t))},r.ue=function(t){for(var e=0,o=(t=t.a).length;e<o;++e)this.zb(t[e])},r.qc=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"Image");i.Ub(this.v),i.qc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.oc=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"Image");i.Ub(this.v),i.oc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.mc=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"LineString");i.Ma(null,this.o),i.mc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.nc=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"LineString");i.Ma(null,this.o),i.nc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.rc=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"Polygon");i.Ma(this.l,this.o),i.rc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.pc=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"Polygon");i.Ma(this.l,this.o),i.pc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.Zb=function(t,e){var o=this.b,i=new eh(1,this.a).b(0,"Circle");i.Ma(this.l,this.o),i.Zb(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},r.Ub=function(t){this.v=t},r.Ma=function(t,e){this.l=t,this.o=e},(r=ah.prototype).clear=function(){this.c=0,this.b={},this.i=this.a=null},r.forEach=function(t,e){for(var o=this.a;o;)t.call(e,o.Yc,o.uc,this),o=o.Nb},r.get=function(t){return O(!!(t=this.b[t]),15),t!==this.i&&(t===this.a?(this.a=this.a.Nb,this.a.vd=null):(t.Nb.vd=t.vd,t.vd.Nb=t.Nb),t.Nb=null,t.vd=this.i,this.i=this.i.Nb=t),t.Yc},r.pop=function(){var t=this.a;return delete this.b[t.uc],t.Nb&&(t.Nb.vd=null),this.a=t.Nb,this.a||(this.i=null),--this.c,t.Yc},r.replace=function(t,e){this.get(t),this.b[t].Yc=e},r.set=function(t,e){O(!(t in this.b),16),e={uc:t,Nb:null,vd:this.i,Yc:e},this.i?this.i.Nb=e:this.a=e,this.i=e,this.b[t]=e,++this.c},e(ph,Ls),(r=ph.prototype).ka=function(){var e=this.i;e.isContextLost()||this.a.forEach(function(t){t&&e.deleteTexture(t.Ib)}),$e(this.f),Ls.prototype.ka.call(this)},r.xk=function(t,e){t=this.i;for(var o;1024<this.a.c-this.g;){if(o=this.a.a.Yc)t.deleteTexture(o.Ib);else{if(+this.a.a.uc==e.index)break;--this.g}this.a.pop()}},r.U=function(){return"webgl"},r.Yn=function(t){for(var e in t.preventDefault(),this.a.clear(),this.g=0,t=this.c)t[e].mg()},r.Zn=function(){uh(this),this.o.render()},r.Jg=function(t){var e=this.f,o=this.i;if(o.isContextLost())return!1;if(!t)return this.l&&(this.b.style.display="none",this.l=!1),!1;this.u=t.focus,this.a.set((-t.index).toString(),null),++this.g,lh(this,"precompose",t);for(var i=[],r=t.layerStatesArray,n=(K(r),t.viewState.resolution),s=0,a=r.length;s<a;++s){var p=r[s];gs(p,n)&&"ready"==p.yj&&Ns(this,p.layer).ng(t,p,e)&&i.push(p)}for(r=t.size[0]*t.pixelRatio,n=t.size[1]*t.pixelRatio,this.b.width==r&&this.b.height==n||(this.b.width=r,this.b.height=n),o.bindFramebuffer(36160,null),o.clearColor(0,0,0,0),o.clear(16384),o.enable(3042),o.viewport(0,0,this.b.width,this.b.height),s=0,a=i.length;s<a;++s)Ns(this,(p=i[s]).layer).Gi(t,p,e);this.l||(this.b.style.display="",this.l=!0),Rs(t),1024<this.a.c-this.g&&t.postRenderFunctions.push(this.xk.bind(this)),this.j.b.length&&(t.postRenderFunctions.push(this.B),t.animate=!0),lh(this,"postcompose",t),Fs(this,t),t.postRenderFunctions.push(Is)},r.Ea=function(t,e,o,i,r,n,s){if(this.i.isContextLost())return!1;for(var a=e.viewState,p=e.layerStatesArray,h=p.length-1;0<=h;--h){var l=p[h],u=l.layer;if(gs(l,a.resolution)&&n.call(s,u)&&(l=Ns(this,u).Ea(t,e,o,i,r)))return l}},r.Ei=function(t,e,o,i,r){if(o=!1,this.i.isContextLost())return!1;for(var n=e.viewState,s=e.layerStatesArray,a=s.length-1;0<=a;--a){var p=s[a],h=p.layer;if(gs(p,n.resolution)&&i.call(r,h)&&(o=Ns(this,h).Ue(t,e)))return!0}return o},r.Di=function(t,e,o,i,r){if(this.i.isContextLost())return!1;for(var n=e.viewState,s=e.layerStatesArray,a=s.length-1;0<=a;--a){var p=s[a],h=p.layer;if(gs(p,n.resolution)&&r.call(i,h)&&(p=Ns(this,h).lg(t,e,o,i)))return p}};var ch=["canvas","webgl"];function u(t){ro.call(this);var e=function(t){var e=null,o=(void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget),{}),i={};void 0===t.logo||"boolean"==typeof t.logo&&t.logo?i["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC"]="https://openlayers.org/":"string"==typeof(s=t.logo)?i[s]="":s instanceof HTMLElement?i[U(s).toString()]=s:s&&(O("string"==typeof s.href,44),O("string"==typeof s.src,45),i[s.src]=s.href);s=t.layers instanceof cs?t.layers:new cs({layers:t.layers}),o.layergroup=s,o.target=t.target,o.view=void 0!==t.view?t.view:new h;var r,n,s=Ls,a=(void 0!==t.renderer?(Array.isArray(t.renderer)?r=t.renderer:"string"==typeof t.renderer?r=[t.renderer]:O(!1,46),0<=r.indexOf("dom")&&(r=r.concat(ch))):r=ch,0);for(n=r.length;a<n;++a){var p=r[a];if("canvas"==p){if(ai){s=qs;break}}else if("webgl"==p&&gi){s=ph;break}}return r=void 0!==t.controls?Array.isArray(t.controls)?new ho(t.controls.slice()):(O(t.controls instanceof ho,47),t.controls):Uo(),a=void 0!==t.interactions?Array.isArray(t.interactions)?new ho(t.interactions.slice()):(O(t.interactions instanceof ho,48),t.interactions):hs(),t=void 0!==t.overlays?Array.isArray(t.overlays)?new ho(t.overlays.slice()):(O(t.overlays instanceof ho,49),t.overlays):new ho,{controls:r,interactions:a,keyboardEventTarget:e,logos:i,overlays:t,Up:s,values:o}}(t);this.Cf=void 0!==t.loadTilesWhileAnimating&&t.loadTilesWhileAnimating,this.Df=void 0!==t.loadTilesWhileInteracting&&t.loadTilesWhileInteracting,this.If=void 0!==t.pixelRatio?t.pixelRatio:ni,this.yf=e.logos,this.pa=function(){this.j=void 0,this.Sp.call(this,Date.now())}.bind(this),this.Yb=ms(),this.Jf=ms(),this.ad=0,this.I=this.R=this.T=this.g=this.c=null,this.a=document.createElement("DIV"),this.a.className="ol-viewport"+(li?" ol-touch":""),this.a.style.position="relative",this.a.style.overflow="hidden",this.a.style.width="100%",this.a.style.height="100%",this.a.style.msTouchAction="none",this.a.style.touchAction="none",this.C=document.createElement("DIV"),this.C.className="ol-overlaycontainer",this.a.appendChild(this.C),this.D=document.createElement("DIV"),this.D.className="ol-overlaycontainer-stopevent";for(var o,i="click dblclick mousedown touchstart MSPointerDown pointerdown mousewheel wheel".split(" "),r=0,n=i.length;r<n;++r)d(this.D,i[r],to);for(o in this.a.appendChild(this.D),this.Sa=new Xi(this,t.moveTolerance),bi)d(this.Sa,bi[o],this.Ih,this);this.va=e.keyboardEventTarget,this.u=null,d(this.a,"wheel",this.ld,this),d(this.a,"mousewheel",this.ld,this),this.l=e.controls,this.o=e.interactions,this.v=e.overlays,this.rg={},this.B=new e.Up(this.a,this),this.na=null,this.xb=[],this.$a=new qi(this.ql.bind(this),this.Wl.bind(this)),this.fa={},d(this,so("layergroup"),this.El,this),d(this,so("view"),this.Xl,this),d(this,so("size"),this.Tl,this),d(this,so("target"),this.Vl,this),this.H(e.values),this.l.forEach(function(t){t.setMap(this)},this),d(this.l,"add",function(t){t.element.setMap(this)},this),d(this.l,"remove",function(t){t.element.setMap(null)},this),this.o.forEach(function(t){t.setMap(this)},this),d(this.o,"add",function(t){t.element.setMap(this)},this),d(this.o,"remove",function(t){t.element.setMap(null)},this),this.v.forEach(this.kh,this),d(this.v,"add",function(t){this.kh(t.element)},this),d(this.v,"remove",function(t){var e=t.element.g;void 0!==e&&delete this.rg[e.toString()],t.element.setMap(null)},this)}function fh(t){ro.call(this),this.g=t.id,this.l=void 0===t.insertFirst||t.insertFirst,this.v=void 0===t.stopEvent||t.stopEvent,this.c=document.createElement("DIV"),this.c.className="ol-overlay-container ol-selectable",this.c.style.position="absolute",this.autoPan=void 0!==t.autoPan&&t.autoPan,this.j=t.autoPanAnimation||{},this.o=void 0!==t.autoPanMargin?t.autoPanMargin:20,this.a={re:"",Ie:"",nf:"",vf:"",visible:!0},this.f=null,d(this,so(vh),this.zl,this),d(this,so(bh),this.Jl,this),d(this,so(mh),this.Nl,this),d(this,so(wh),this.Pl,this),d(this,so(xh),this.Ql,this),void 0!==t.element&&this.lj(t.element),this.rj(void 0!==t.offset?t.offset:[0,0]),this.uj(void 0!==t.positioning?t.positioning:"top-left"),void 0!==t.position&&this.Ne(t.position)}function yh(t,e){var o=t.getBoundingClientRect();return[t=o.left+window.pageXOffset,o=o.top+window.pageYOffset,t+e[0],o+e[1]]}function gh(t,e){t.a.visible!==e&&(t.c.style.display=e?"":"none",t.a.visible=e)}function dh(t){var e,o,i,r,n=t.Me(),s=t.Yh();n&&n.c&&s?(s=n.Ja(s),e=n.Ob(),n=t.c.style,r=t.Dh(),o=t.Eh(),gh(t,!0),i=r[0],r=r[1],"bottom-right"==o||"center-right"==o||"top-right"==o?(""!==t.a.Ie&&(t.a.Ie=n.left=""),i=Math.round(e[0]-s[0]-i)+"px",t.a.nf!=i&&(t.a.nf=n.right=i)):(""!==t.a.nf&&(t.a.nf=n.right=""),"bottom-center"!=o&&"center-center"!=o&&"top-center"!=o||(i-=t.c.offsetWidth/2),i=Math.round(s[0]+i)+"px",t.a.Ie!=i&&(t.a.Ie=n.left=i)),"bottom-left"==o||"bottom-center"==o||"bottom-right"==o?(""!==t.a.vf&&(t.a.vf=n.top=""),s=Math.round(e[1]-s[1]-r)+"px",t.a.re!=s&&(t.a.re=n.bottom=s)):(""!==t.a.re&&(t.a.re=n.bottom=""),"center-left"!=o&&"center-center"!=o&&"center-right"!=o||(r-=t.c.offsetHeight/2),s=Math.round(s[1]+r)+"px",t.a.vf!=s&&(t.a.vf=n.top=s))):gh(t,!1)}e(u,ro),(r=u.prototype).kk=function(t){this.l.push(t)},r.lk=function(t){this.o.push(t)},r.ih=function(t){this.Kc().qd().push(t)},r.jh=function(t){this.v.push(t)},r.kh=function(t){var e=t.g;void 0!==e&&(this.rg[e.toString()]=t),t.setMap(this)},r.ka=function(){$e(this.Sa),$e(this.B),He(this.a,"wheel",this.ld,this),He(this.a,"mousewheel",this.ld,this),this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0),this.j&&(cancelAnimationFrame(this.j),this.j=void 0),this.Le(null),ro.prototype.ka.call(this)},r.we=function(t,e,o){if(this.c)return t=this.Wa(t),this.B.Ea(t,this.c,void 0!==(o=o||{}).hitTolerance?o.hitTolerance*this.c.pixelRatio:0,e,null,o.layerFilter||cr,null)},r.Im=function(t,e,o,i,r){if(this.c)return this.B.Di(t,this.c,e,void 0!==o?o:null,i||cr,void 0!==r?r:null)},r.Yl=function(t,e){return!!this.c&&(t=this.Wa(t),this.B.Ei(t,this.c,void 0!==(e=e||{}).hitTolerance?e.hitTolerance*this.c.pixelRatio:0,e.layerFilter||cr,null))},r.Tf=function(t){return this.Wa(this.xe(t))},r.xe=function(t){var e=this.a.getBoundingClientRect();return[(t=t.changedTouches?t.changedTouches[0]:t).clientX-e.left,t.clientY-e.top]},r.ag=function(){return this.get("target")},r.jd=function(){var t=this.ag();return void 0!==t?"string"==typeof t?document.getElementById(t):t:null},r.Wa=function(t){var e=this.c;return e?Ps(e.pixelToCoordinateTransform,t.slice()):null},r.Lk=function(){return this.l},r.fl=function(){return this.v},r.el=function(t){return void 0!==(t=this.rg[t.toString()])?t:null},r.Sk=function(){return this.o},r.Kc=function(){return this.get("layergroup")},r.Xh=function(){return this.Kc().qd()},r.Ja=function(t){var e=this.c;return e?Ps(e.coordinateToPixelTransform,t.slice(0,2)):null},r.Ob=function(){return this.get("size")},r.Z=function(){return this.get("view")},r.sl=function(){return this.a},r.ql=function(t,e,o,i){var r=this.c;return r&&e in r.wantedTiles&&r.wantedTiles[e][t.bb()]?(t=o[0]-r.focus[0],o=o[1]-r.focus[1],65536*Math.log(i)+Math.sqrt(t*t+o*o)/i):1/0},r.ld=function(t,e){t=new _o(e||t.type,this,t),this.Ih(t)},r.Ih=function(t){if(this.c){this.na=t.coordinate,t.frameState=this.c;var e,o=this.o.a;if(!1!==this.b(t))for(e=o.length-1;0<=e;e--){var i=o[e];if(i.c()&&!i.handleEvent(t))break}}},r.Rl=function(){var t,e,o,i=this.c,r=this.$a;for(r.b.length&&(e=t=16,i&&((o=i.viewHints)[0]&&(t=this.Cf?8:0,e=2),o[1])&&(t=this.Df?8:0,e=2),r.j<t)&&(Hi(r),Ji(r,t,e)),t=0,e=(r=this.xb).length;t<e;++t)r[t](this,i);r.length=0},r.Tl=function(){this.render()},r.Vl=function(){var t;if(this.ag()&&(t=this.jd()),this.u){for(var e=0,o=this.u.length;e<o;++e)qe(this.u[e]);this.u=null}t?(t.appendChild(this.a),t=this.va||t,this.u=[d(t,"keydown",this.ld,this),d(t,"keypress",this.ld,this)],this.f||(this.f=this.Ad.bind(this),window.addEventListener("resize",this.f,!1))):(Eo(this.a),this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0)),this.Ad()},r.Wl=function(){this.render()},r.Lh=function(){this.render()},r.Xl=function(){this.T&&(qe(this.T),this.T=null),this.R&&(qe(this.R),this.R=null);var t=this.Z();t&&(this.a.setAttribute("data-view",U(t)),this.T=d(t,"propertychange",this.Lh,this),this.R=d(t,"change",this.Lh,this)),this.render()},r.El=function(){this.I&&(this.I.forEach(qe),this.I=null);var t=this.Kc();t&&(this.I=[d(t,"propertychange",this.render,this),d(t,"change",this.render,this)]),this.render()},r.Tp=function(){this.j&&cancelAnimationFrame(this.j),this.pa()},r.render=function(){void 0===this.j&&(this.j=requestAnimationFrame(this.pa))},r.Mp=function(t){return this.l.remove(t)},r.Np=function(t){return this.o.remove(t)},r.Pp=function(t){return this.Kc().qd().remove(t)},r.Qp=function(t){return this.v.remove(t)},r.Sp=function(t){var e=this.Ob(),o=this.Z(),i=vt(),r=this.c,n=null;if(void 0!==e&&0<e[0]&&0<e[1]&&o&&rn(o)){for(var n=on(o,this.c?this.c.viewHints:void 0),s=this.Kc().Yf(),a={},p=0,h=s.length;p<h;++p)a[U(s[p].layer)]=s[p];p=o.getState(),n={animate:!1,attributions:{},coordinateToPixelTransform:this.Yb,extent:i,focus:this.na||p.center,index:this.ad++,layerStates:a,layerStatesArray:s,logos:Xt({},this.yf),pixelRatio:this.If,pixelToCoordinateTransform:this.Jf,postRenderFunctions:[],size:e,skippedFeatureUids:this.fa,tileQueue:this.$a,time:t,usedTiles:{},viewState:p,viewHints:n,wantedTiles:{}}}n&&(n.extent=Rt(p.center,p.resolution,p.rotation,n.size,i)),this.c=n,this.B.Jg(n),n&&(n.animate&&this.render(),Array.prototype.push.apply(this.xb,n.postRenderFunctions),!r||this.g&&(Ut(this.g)||St(n.extent,this.g))||(this.b(new Jo("movestart",this,r)),this.g=mt(this.g)),!this.g||n.viewHints[0]||n.viewHints[1]||St(n.extent,this.g)||(this.b(new Jo("moveend",this,n)),ut(n.extent,this.g))),this.b(new Jo("postrender",this,n)),setTimeout(this.Rl.bind(this),0)},r.qj=function(t){this.set("layergroup",t)},r.Qg=function(t){this.set("size",t)},r.Le=function(t){this.set("target",t)},r.iq=function(t){this.set("view",t)},r.xj=function(t){t=U(t).toString(),this.fa[t]=!0,this.render()},r.Ad=function(){var t,e=this.jd();e?(t=getComputedStyle(e),this.Qg([e.offsetWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)-parseFloat(t.borderRightWidth),e.offsetHeight-parseFloat(t.borderTopWidth)-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)-parseFloat(t.borderBottomWidth)])):this.Qg(void 0)},r.Cj=function(t){t=U(t).toString(),delete this.fa[t],this.render()},e(fh,ro),(r=fh.prototype).Rd=function(){return this.get(vh)},r.Jm=function(){return this.g},r.Me=function(){return this.get(bh)},r.Dh=function(){return this.get(mh)},r.Yh=function(){return this.get(wh)},r.Eh=function(){return this.get(xh)},r.zl=function(){for(var t=this.c;t.lastChild;)t.removeChild(t.lastChild);(t=this.Rd())&&this.c.appendChild(t)},r.Jl=function(){this.f&&(Eo(this.c),qe(this.f),this.f=null);var t=this.Me();t&&(this.f=d(t,"postrender",this.render,this),dh(this),t=this.v?t.D:t.C,this.l?t.insertBefore(this.c,t.childNodes[0]||null):t.appendChild(this.c))},r.render=function(){dh(this)},r.Nl=function(){dh(this)},r.Pl=function(){var t,e,o,i,r,n,s;dh(this),this.get(wh)&&this.autoPan&&(t=this.Me())&&t.jd()&&(e=yh(t.jd(),t.Ob()),o=(s=this.Rd()).offsetWidth,r=getComputedStyle(s),o+=parseInt(r.marginLeft,10)+parseInt(r.marginRight,10),r=s.offsetHeight,i=getComputedStyle(s),n=yh(s,[o,r=r+(parseInt(i.marginTop,10)+parseInt(i.marginBottom,10))]),s=this.o,yt(e,n)||(o=n[0]-e[0],r=e[2]-n[2],i=n[1]-e[1],n=e[3]-n[3],e=[0,0],o<0?e[0]=o-s:r<0&&(e[0]=Math.abs(r)+s),i<0?e[1]=i-s:n<0&&(e[1]=Math.abs(n)+s),0===e[0]&&0===e[1])||(s=t.Z().wa(),e=[(s=t.Ja(s))[0]+e[0],s[1]+e[1]],t.Z().animate({center:t.Wa(e),duration:this.j.duration,easing:this.j.easing})))},r.Ql=function(){dh(this)},r.lj=function(t){this.set(vh,t)},r.setMap=function(t){this.set(bh,t)},r.rj=function(t){this.set(mh,t)},r.Ne=function(t){this.set(wh,t)},r.uj=function(t){this.set(xh,t)};var vh="element",bh="map",mh="offset",wh="position",xh="positioning";function Sh(t){function e(t){t=a.Tf(t),p.a.Z().ob(t),window.removeEventListener("mousemove",o),window.removeEventListener("mouseup",e)}function o(t){t=a.Tf({clientX:t.clientX-l.offsetWidth/2,clientY:t.clientY+l.offsetHeight/2}),h.Ne(t)}this.j=void 0===(t=t||{}).collapsed||t.collapsed,this.o=void 0===t.collapsible||t.collapsible,this.o||(this.j=!1);var i=void 0!==t.className?t.className:"ol-overviewmap",r=void 0!==t.tipLabel?t.tipLabel:"Overview map",n=void 0!==t.collapseLabel?t.collapseLabel:"«",s=("string"==typeof n?(this.u=document.createElement("span"),this.u.textContent=n):this.u=n,"string"==typeof(n=void 0!==t.label?t.label:"»")?(this.D=document.createElement("span"),this.D.textContent=n):this.D=n,this.o&&!this.j?this.u:this.D),a=((n=document.createElement("button")).setAttribute("type","button"),n.title=r,n.appendChild(s),d(n,"click",this.an,this),this.C=document.createElement("DIV"),this.C.className="ol-overviewmap-map",this.c=new u({controls:new ho,interactions:new ho,view:t.view})),p=(t.layers&&t.layers.forEach(function(t){a.ih(t)},this),(r=document.createElement("DIV")).className="ol-overviewmap-box",r.style.boxSizing="border-box",this.l=new fh({position:[0,0],positioning:"bottom-left",element:r}),this.c.jh(this.l),(r=document.createElement("div")).className=i+" ol-unselectable ol-control"+(this.j&&this.o?" ol-collapsed":"")+(this.o?"":" ol-uncollapsible"),r.appendChild(this.C),r.appendChild(n),To.call(this,{element:r,render:t.render||Mh,target:t.target}),this),h=this.l,l=this.l.Rd();l.addEventListener("mousedown",function(){window.addEventListener("mousemove",o),window.addEventListener("mouseup",e)})}function Mh(){var t,e,o,i,r=this.a,n=this.c;r.c&&n.c&&(t=r.Ob(),r=r.Z().dd(t),i=n.Ob(),t=n.Z().dd(i),e=n.Ja(Ft(r)),o=n.Ja(Ct(r)),n=Math.abs(e[0]-o[0]),e=Math.abs(e[1]-o[1]),o=i[0],i=i[1],n<.1*o||e<.1*i||.75*o<n||.75*i<e?Ph(this):yt(t,r)||(r=this.c,t=this.a.Z(),r.Z().ob(t.wa()))),Ah(this)}function Ph(t){var e=t.a,o=(t=t.c,e.Ob()),e=e.Z().dd(o);t=t.Z(),Gt(e,1/(.1*Math.pow(2,Math.log(7.5)/Math.LN2/2))),t.Qf(e)}function Ah(t){var e,o,i,r,n,s,a=t.a,p=t.c;a.c&&p.c&&(i=a.Ob(),r=a.Z(),n=p.Z(),p=r.Qa(),a=t.l,e=t.l.Rd(),o=r.dd(i),i=n.Pa(),r=jt(o),n=kt(o),(t=t.a.Z().wa())&&(sr(s=[r[0]-t[0],r[1]-t[1]],p),er(s,t)),a.Ne(s),e)&&(e.style.width=Math.abs((r[0]-n[0])/i)+"px",e.style.height=Math.abs((n[1]-r[1])/i)+"px")}function Eh(t){t.element.classList.toggle("ol-collapsed"),t.j?Ao(t.u,t.D):Ao(t.D,t.u),t.j=!t.j;var e=t.c;t.j||e.c||(e.Ad(),Ph(t),Ye(e,"postrender",function(){Ah(this)},t))}function Th(t){var e=void 0!==(t=t||{}).className?t.className:"ol-scale-line";this.o=document.createElement("DIV"),this.o.className=e+"-inner",this.c=document.createElement("DIV"),this.c.className=e+" ol-unselectable",this.c.appendChild(this.o),this.u=null,this.l=void 0!==t.minWidth?t.minWidth:64,this.j=!1,this.B=void 0,this.D="",To.call(this,{element:this.c,render:t.render||Ch,target:t.target}),d(this,so(Rh),this.T,this),this.I(t.units||"metric")}e(Sh,To),(r=Sh.prototype).setMap=function(t){var e=this.a;t!==e&&(e&&((e=e.Z())&&He(e,so("rotation"),this.Ge,this),this.c.Le(null)),To.prototype.setMap.call(this,t),t)&&(this.c.Le(this.C),this.v.push(d(t,"propertychange",this.Kl,this)),this.c.Xh().dc()||this.c.qj(t.Kc()),t=t.Z())&&(d(t,so("rotation"),this.Ge,this),rn(t)&&(this.c.Ad(),Ph(this)))},r.Kl=function(t){"view"===t.key&&((t=t.oldValue)&&He(t,so("rotation"),this.Ge,this),d(t=this.a.Z(),so("rotation"),this.Ge,this))},r.Ge=function(){this.c.Z().Oe(this.a.Z().Qa())},r.an=function(t){t.preventDefault(),Eh(this)},r.$m=function(){return this.o},r.cn=function(t){this.o!==t&&(this.o=t,this.element.classList.toggle("ol-uncollapsible"),!t)&&this.j&&Eh(this)},r.bn=function(t){this.o&&this.j!==t&&Eh(this)},r.Zm=function(){return this.j},r.gl=function(){return this.c},e(Th,To);var jh=[1,2,5];function Ch(t){(t=t.frameState)?this.u=t.viewState:this.u=null,Lh(this)}function Lh(t){if(o=t.u){var e=(i=o.projection).sc(),o=ce(i,o.resolution,o.center)*e,e=t.l*o,i="";"degrees"==(n=t.C())?(o/=i=Yt.degrees,e<i/60?(i="″",o*=3600):e<i?(i="′",o*=60):i="°"):"imperial"==n?e<.9144?(i="in",o/=.0254):e<1609.344?(i="ft",o/=.3048):(i="mi",o/=1609.344):"nautical"==n?(o/=1852,i="nm"):"metric"==n?e<.001?(i="μm",o*=1e6):e<1?(i="mm",o*=1e3):e<1e3?i="m":(i="km",o/=1e3):"us"==n?e<.9144?(i="in",o*=39.37):e<1609.344?(i="ft",o/=.30480061):(i="mi",o/=1609.3472):O(!1,33);for(var r,n=3*Math.floor(Math.log(t.l*o)/Math.log(10));;){if(r=jh[(n%3+3)%3]*Math.pow(10,Math.floor(n/3)),e=Math.round(r/o),isNaN(e))return t.c.style.display="none",void(t.j=!1);if(e>=t.l)break;++n}t.D!=(o=r+" "+i)&&(t.o.innerHTML=o,t.D=o),t.B!=e&&(t.o.style.width=e+"px",t.B=e),t.j||(t.c.style.display="",t.j=!0)}else t.j&&(t.c.style.display="none",t.j=!1)}Th.prototype.C=function(){return this.get(Rh)},Th.prototype.T=function(){Lh(this)},Th.prototype.I=function(t){this.set(Rh,t)};var Rh="units";function Ih(t){t=t||{},this.c=void 0,this.j=Nh,this.D=this.l=0,this.I=null,this.na=!1,this.T=void 0!==t.duration?t.duration:200;var e=void 0!==t.className?t.className:"ol-zoomslider",o=document.createElement("button"),i=(o.setAttribute("type","button"),o.className=e+"-thumb ol-unselectable",document.createElement("div"));i.className=e+" ol-unselectable ol-control",i.appendChild(o),this.o=new Ii(i),d(this.o,"pointerdown",this.yl,this),d(this.o,"pointermove",this.wl,this),d(this.o,"pointerup",this.xl,this),d(i,"click",this.vl,this),d(o,"click",to),To.call(this,{element:i,render:t.render||Fh})}e(Ih,To),Ih.prototype.ka=function(){$e(this.o),To.prototype.ka.call(this)};var Nh=0;function Fh(t){var e,o,i,r,n;t.frameState&&(this.na||(e=(r=this.element).offsetWidth,o=r.offsetHeight,n=r.firstElementChild,i=getComputedStyle(n),r=n.offsetWidth+parseFloat(i.marginRight)+parseFloat(i.marginLeft),n=n.offsetHeight+parseFloat(i.marginTop)+parseFloat(i.marginBottom),this.I=[r,n],o<e?(this.j=1,this.D=e-r):(this.j=Nh,this.l=o-n),this.na=!0),(t=t.frameState.viewState.resolution)!==this.c)&&(this.c=t,kh(this,t))}function kh(t,e){e=1-(r=t.a.Z(),o=r.a,i=Math.log(o/r.f)/Math.log(2),function(t){return Math.log(o/t)/Math.log(2)/i}(e));var o,i,r=t.element.firstElementChild;1==t.j?r.style.left=t.D*e+"px":r.style.top=t.l*e+"px"}function Dh(t,e){t=t.a.Z(),o=t.a,t=Math.log(o/t.f)/Math.log(2);var o,e=1-e;return o/Math.pow(2,e*t)}function Oh(t){this.c=(t=t||{}).extent||null;var e=void 0!==t.className?t.className:"ol-zoom-extent",o=void 0!==t.label?t.label:"E",i=void 0!==t.tipLabel?t.tipLabel:"Fit to extent",r=document.createElement("button");r.setAttribute("type","button"),r.title=i,r.appendChild("string"==typeof o?document.createTextNode(o):o),d(r,"click",this.j,this),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(r),To.call(this,{element:o,target:t.target})}function Uh(t){ro.call(this),t=t||{},this.a=null,d(this,so(Wh),this.vm,this),this.gg(void 0!==t.tracking&&t.tracking)}(r=Ih.prototype).setMap=function(t){To.prototype.setMap.call(this,t),t&&t.render()},r.vl=function(t){var e=this.a.Z();t=Dh(this,Q(1===this.j?(t.offsetX-this.I[0]/2)/this.D:(t.offsetY-this.I[1]/2)/this.l,0,1)),e.animate({resolution:e.constrainResolution(t),duration:this.T,easing:Io})},r.yl=function(t){this.u||t.b.target!==this.element.firstElementChild||(nn(this.a.Z(),1,1),this.C=t.clientX,this.B=t.clientY,this.u=!0)},r.wl=function(t){var e;this.u&&(e=this.element.firstElementChild,this.c=Dh(this,Q(1===this.j?(t.clientX-this.C+parseInt(e.style.left,10))/this.D:(t.clientY-this.B+parseInt(e.style.top,10))/this.l,0,1)),this.a.Z().Vc(this.c),kh(this,this.c),this.C=t.clientX,this.B=t.clientY)},r.xl=function(){var t;this.u&&(nn(t=this.a.Z(),1,-1),t.animate({resolution:t.constrainResolution(this.c),duration:this.T,easing:Io}),this.u=!1,this.B=this.C=void 0)},e(Oh,To),Oh.prototype.j=function(t){t.preventDefault(),t=this.a.Z();var e=this.c||t.v.G();t.Qf(e)},e(Uh,ro),(r=Uh.prototype).ka=function(){this.gg(!1),ro.prototype.ka.call(this)},r.ap=function(t){var e;null!==t.alpha&&(e=it(t.alpha),this.set(Gh,e),"boolean"==typeof t.absolute&&t.absolute?this.set(Vh,e):"number"==typeof t.webkitCompassHeading&&-1!=t.webkitCompassAccuracy&&this.set(Vh,it(t.webkitCompassHeading))),null!==t.beta&&this.set(Bh,it(t.beta)),null!==t.gamma&&this.set(Xh,it(t.gamma)),this.s()},r.Fk=function(){return this.get(Gh)},r.Ik=function(){return this.get(Bh)},r.Ok=function(){return this.get(Xh)},r.um=function(){return this.get(Vh)},r.Th=function(){return this.get(Wh)},r.vm=function(){var t;pi&&((t=this.Th())&&!this.a?this.a=d(window,"deviceorientation",this.ap,this):t||null===this.a||(qe(this.a),this.a=null))},r.gg=function(t){this.set(Wh,t)};var Gh="alpha",Bh="beta",Xh="gamma",Vh="heading",Wh="tracking";function Zh(t){this.f=t.opacity,this.l=t.rotateWithView,this.g=t.rotation,this.a=t.scale,this.v=t.snapToPixel}function Kh(t){this.D=this.u=this.c=null,this.Va=void 0!==t.fill?t.fill:null,this.oa=[0,0],this.o=t.points,this.b=void 0!==t.radius?t.radius:t.radius1,this.i=t.radius2,this.j=void 0!==t.angle?t.angle:0,this.Ya=void 0!==t.stroke?t.stroke:null,this.B=this.ra=this.C=null,this.S=t.atlasManager,zh(this,this.S),Zh.call(this,{opacity:1,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,rotation:void 0!==t.rotation?t.rotation:0,scale:1,snapToPixel:void 0===t.snapToPixel||t.snapToPixel})}function zh(t,e){var o,i,r="",n="",s=0,a=null,p=0,h=(t.Ya&&(o=Mo(o=null===(o=t.Ya.a)?Gs:o),void 0===(p=t.Ya.c)&&(p=1),a=t.Ya.i,si||(a=null),void 0===(n=t.Ya.j)&&(n="round"),void 0===(r=t.Ya.f)&&(r="round"),void 0===(s=t.Ya.o))&&(s=10),2*(t.b+p)+1),r={strokeStyle:o,zj:p,size:h,lineCap:r,lineDash:a,lineJoin:n,miterLimit:s};void 0===e?(i=Po(h,h),t.u=i.canvas,e=h=t.u.width,t.rh(r,i,0,0),t.Va?t.D=t.u:(i=Po(r.size,r.size),t.D=i.canvas,t.qh(r,i,0,0))):(h=Math.round(h),(n=!t.Va)&&(i=t.qh.bind(t,r)),s=t.Ya?(void 0===(s=t.Ya).b&&(s.b="s",s.b=s.a?"string"==typeof s.a?s.b+s.a:s.b+U(s.a).toString():s.b+"-",s.b+=","+(void 0!==s.f?s.f.toString():"-")+","+(s.i?s.i.toString():"-")+","+(void 0!==s.g?s.g:"-")+","+(void 0!==s.j?s.j:"-")+","+(void 0!==s.o?s.o.toString():"-")+","+(void 0!==s.c?s.c.toString():"-")),s.b):"-",a=t.Va?(void 0===(a=t.Va).a&&(a.a=a.b instanceof CanvasPattern||a.b instanceof CanvasGradient?U(a.b).toString():"f"+(a.b?bo(a.b):"-")),a.a):"-",t.c&&s==t.c[1]&&a==t.c[2]&&t.b==t.c[3]&&t.i==t.c[4]&&t.j==t.c[5]&&t.o==t.c[6]||(t.c=["r"+s+a+(void 0!==t.b?t.b.toString():"-")+(void 0!==t.i?t.i.toString():"-")+(void 0!==t.j?t.j.toString():"-")+(void 0!==t.o?t.o.toString():"-"),s,a,t.b,t.i,t.j,t.o]),i=e.add(t.c[0],h,h,t.rh.bind(t,r),i),t.u=i.image,t.oa=[i.offsetX,i.offsetY],e=i.image.width,t.D=n?i.Zl:t.u),t.C=[h/2,h/2],t.ra=[h,h],t.B=[e,e]}function Yh(t){Kh.call(this,{points:1/0,fill:(t=t||{}).fill,radius:t.radius,snapToPixel:t.snapToPixel,stroke:t.stroke,atlasManager:t.atlasManager})}function Hh(t){this.b=void 0!==(t=t||{}).color?t.color:null,this.a=void 0}function qh(t){t=t||{},this.Gc=null,this.Za=tl,void 0!==t.geometry&&this.Ra(t.geometry),this.Va=void 0!==t.fill?t.fill:null,this.M=void 0!==t.image?t.image:null,this.Ya=void 0!==t.stroke?t.stroke:null,this.Ia=void 0!==t.text?t.text:null,this.Fj=t.zIndex}function Jh(t){var e;return"function"!=typeof t&&(e=Array.isArray(t)?t:(O(t instanceof qh,41),[t]),t=function(){return e}),t}(r=Zh.prototype).Ze=function(){return this.f},r.$e=function(){return this.l},r.af=function(){return this.g},r.bf=function(){return this.a},r.Ae=function(){return this.v},r.td=function(t){this.f=t},r.cf=function(t){this.g=t},r.ud=function(t){this.a=t},e(Kh,Zh),(r=Kh.prototype).clone=function(){var t=new Kh({fill:this.Fa()?this.Fa().clone():void 0,points:this.o,radius:this.b,radius2:this.i,angle:this.j,snapToPixel:this.v,stroke:this.Ga()?this.Ga().clone():void 0,rotation:this.g,rotateWithView:this.l,atlasManager:this.S});return t.td(this.f),t.ud(this.a),t},r.Hc=function(){return this.C},r.Pi=function(){return this.j},r.Fa=function(){return this.Va},r.qg=function(){return this.D},r.Y=function(){return this.u},r.ye=function(){return this.B},r.Ye=function(){return 2},r.Oc=function(){return this.oa},r.Qi=function(){return this.o},r.Ri=function(){return this.b},r.Fh=function(){return this.i},r.ic=function(){return this.ra},r.Ga=function(){return this.Ya},r.Nh=function(){},r.load=function(){},r.Bj=function(){},r.rh=function(t,e,o,i){e.setTransform(1,0,0,1,0,0),e.translate(o,i),e.beginPath();var r=this.o;if(1/0===r)e.arc(t.size/2,t.size/2,this.b,0,2*Math.PI,!0);else{var n=void 0!==this.i?this.i:this.b;for(n!==this.b&&(r*=2),o=0;o<=r;o++){i=2*o*Math.PI/r-Math.PI/2+this.j;var s=o%2?n:this.b;e.lineTo(t.size/2+s*Math.cos(i),t.size/2+s*Math.sin(i))}}this.Va&&(o=this.Va.b,e.fillStyle=Mo(o=null===o?Os:o),e.fill()),this.Ya&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.zj,t.lineDash&&e.setLineDash(t.lineDash),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke()),e.closePath()},r.qh=function(t,e,o,i){var r;if(e.setTransform(1,0,0,1,0,0),e.translate(o,i),e.beginPath(),1/0===(o=this.o))e.arc(t.size/2,t.size/2,this.b,0,2*Math.PI,!0);else for((i=void 0!==this.i?this.i:this.b)!==this.b&&(o*=2),r=0;r<=o;r++){var n=2*r*Math.PI/o-Math.PI/2+this.j,s=r%2?i:this.b;e.lineTo(t.size/2+s*Math.cos(n),t.size/2+s*Math.sin(n))}e.fillStyle=Os,e.fill(),this.Ya&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.zj,t.lineDash&&e.setLineDash(t.lineDash),e.stroke()),e.closePath()},e(Yh,Kh),Yh.prototype.clone=function(){var t=new Yh({fill:this.Fa()?this.Fa().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,radius:this.b,snapToPixel:this.v,atlasManager:this.S});return t.td(this.f),t.ud(this.a),t},Yh.prototype.Uc=function(t){this.b=t,zh(this,this.S)},Hh.prototype.clone=function(){var t=this.b;return new Hh({color:t&&t.slice?t.slice():t||void 0})},Hh.prototype.i=function(){return this.b},Hh.prototype.c=function(t){this.b=t,this.a=void 0},(r=qh.prototype).clone=function(){var t=this.V();return new qh({geometry:t=t&&t.clone?t.clone():t,fill:this.Fa()?this.Fa().clone():void 0,image:this.Y()?this.Y().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,text:this.Na()?this.Na().clone():void 0,zIndex:this.Ba()})},r.V=function(){return this.Gc},r.Pk=function(){return this.Za},r.Fa=function(){return this.Va},r.pf=function(t){this.Va=t},r.Y=function(){return this.M},r.Og=function(t){this.M=t},r.Ga=function(){return this.Ya},r.qf=function(t){this.Ya=t},r.Na=function(){return this.Ia},r.xd=function(t){this.Ia=t},r.Ba=function(){return this.Fj},r.Ra=function(e){this.Za="function"==typeof e?e:"string"==typeof e?function(t){return t.get(e)}:e?function(){return e}:tl,this.Gc=e},r.Vb=function(t){this.Fj=t};var _h=null;function $h(){var t,e;return _h||(t=new Hh({color:"rgba(255,255,255,0.4)"}),e=new hp({color:"#3399CC",width:1.25}),_h=[new qh({image:new Yh({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]),_h}function Qh(){var t={},e=[255,255,255,1],o=[0,153,255,1];return t.Polygon=[new qh({fill:new Hh({color:[255,255,255,.5]})})],t.MultiPolygon=t.Polygon,t.LineString=[new qh({stroke:new hp({color:e,width:5})}),new qh({stroke:new hp({color:o,width:3})})],t.MultiLineString=t.LineString,t.Circle=t.Polygon.concat(t.LineString),t.Point=[new qh({image:new Yh({radius:6,fill:new Hh({color:o}),stroke:new hp({color:e,width:1.5})}),zIndex:1/0})],t.MultiPoint=t.Point,t.GeometryCollection=t.Polygon.concat(t.LineString,t.Point),t}function tl(t){return t.V()}function x(t){ro.call(this),this.a=void 0,this.c="geometry",this.g=null,this.j=void 0,this.f=null,d(this,so(this.c),this.Ee,this),void 0!==t&&(t instanceof yr||!t?this.Ra(t):this.H(t))}e(x,ro),(r=x.prototype).clone=function(){var t=new x(this.N()),e=(t.Tc(this.c),this.V());return e&&t.Ra(e.clone()),(e=this.g)&&t.hg(e),t},r.V=function(){return this.get(this.c)},r.wm=function(){return this.a},r.Qk=function(){return this.c},r.xm=function(){return this.g},r.Lc=function(){return this.j},r.Al=function(){this.s()},r.Ee=function(){this.f&&(qe(this.f),this.f=null);var t=this.V();t&&(this.f=d(t,"change",this.Al,this)),this.s()},r.Ra=function(t){this.set(this.c,t)},r.hg=function(t){this.j=(this.g=t)?function(e){var t;{var o;t="function"==typeof e?2==e.length?function(t){return e(this,t)}:e:(o=Array.isArray(e)?e:(O(e instanceof qh,41),[e]),function(){return o})}return t}(t):void 0,this.s()},r.jc=function(t){this.a=t,this.s()},r.Tc=function(t){He(this,so(this.c),this.Ee,this),this.c=t,d(this,so(this.c),this.Ee,this),this.Ee()};var el=document.implementation.createDocument("","",null);function ol(t,e){return el.createElementNS(t,e)}function il(t,e){return function t(e,o,i){if(e.nodeType==Node.CDATA_SECTION_NODE||e.nodeType==Node.TEXT_NODE)o?i.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):i.push(e.nodeValue);else for(e=e.firstChild;e;e=e.nextSibling)t(e,o,i);return i}(t,e,[]).join("")}function rl(t){return t instanceof Document}function nl(t){return t instanceof Node}function sl(t){return(new DOMParser).parseFromString(t,"application/xml")}function al(o,i){return function(t,e){void 0!==(t=o.call(i,t,e))&&X(e[e.length-1],t)}}function pl(o,i){return function(t,e){void 0!==(t=o.call(void 0!==i?i:this,t,e))&&e[e.length-1].push(t)}}function hl(o,i){return function(t,e){void 0!==(t=o.call(void 0!==i?i:this,t,e))&&(e[e.length-1]=t)}}function ll(i){return function(t,e){var o=i.call(this,t,e);void 0!==o&&(e=e[e.length-1],((t=t.localName)in e?e[t]:e[t]=[]).push(o))}}function o(i,r){return function(t,e){var o=i.call(this,t,e);void 0!==o&&(e[e.length-1][void 0!==r?r:t.localName]=o)}}function c(i,r){return function(t,e,o){i.call(void 0!==r?r:this,t,e,o),o[o.length-1].node.appendChild(t)}}function ul(r){var n,s;return function(t,e,o){var i;n||(n={},(i={})[t.localName]=r,n[t.namespaceURI]=i,s=cl(t.localName)),dl(n,s,e,o)}}function cl(i,r){return function(t,e,o){return t=e[e.length-1].node,void 0===(e=i)&&(e=o),ol(o=void 0===(o=r)?t.namespaceURI:r,e)}}var fl=cl();function yl(t,e){for(var o=e.length,i=Array(o),r=0;r<o;++r)i[r]=t[e[r]];return i}function l(t,e,o){o=void 0!==o?o:{};for(var i=0,r=t.length;i<r;++i)o[t[i]]=e;return o}function gl(t,e,o,i){for(e=e.firstElementChild;e;e=e.nextElementSibling){var r=t[e.namespaceURI];void 0!==r&&(r=r[e.localName])&&r.call(i,e,o)}}function g(t,e,o,i,r){return i.push(t),gl(e,o,i,r),i.pop()}function dl(t,e,o,i,r,n){for(var s,a,p=(void 0!==r?r:o).length,h=0;h<p;++h)void 0!==(s=o[h])&&void 0!==(a=e.call(n,s,i,void 0!==r?r[h]:void 0))&&t[a.namespaceURI][a.localName].call(n,a,s,i)}function vl(t,e,o,i,r,n,s){r.push(t),dl(e,o,i,r,n,s),r.pop()}function bl(r,n,s,a){return function(t,e,o){var i=new XMLHttpRequest;i.open("GET","function"==typeof r?r(t,e,o):r,!0),"arraybuffer"==n.U()&&(i.responseType="arraybuffer"),i.onload=function(){var t,e;(!i.status||200<=i.status&&i.status<300)&&("json"==(t=n.U())||"text"==t?e=i.responseText:"xml"==t?e=(e=i.responseXML)||sl(i.responseText):"arraybuffer"==t&&(e=i.response),e)?s.call(this,n.Oa(e,{featureProjection:o}),n.kb(e)):a.call(this)}.bind(this),i.onerror=function(){a.call(this)}.bind(this),i.send()}}function ml(t,e){return bl(t,e,function(t){this.cd(t)},Y)}function wl(){this.f=this.defaultDataProjection=null}function xl(t,e,o){var i;return o&&(i={dataProjection:o.dataProjection||t.kb(e),featureProjection:o.featureProjection}),Sl(t,i)}function Sl(t,e){return Xt({dataProjection:t.defaultDataProjection,featureProjection:t.f},e)}function Ml(t,e,o){var i,r=o?v(o.featureProjection):null,n=o?v(o.dataProjection):null,n=r&&n&&!be(r,n)?t instanceof yr?(e?t.clone():t).tb(e?r:n,e?n:r):Pe(t,n,r):t;return e&&o&&void 0!==o.decimals&&(i=Math.pow(10,o.decimals),(n=n===t?n.clone():n).Dc(function(t){for(var e=0,o=t.length;e<o;++e)t[e]=Math.round(t[e]*i)/i;return t})),n}function Pl(){wl.call(this)}function Al(t){return"string"==typeof t?(t=JSON.parse(t))||null:null!==t?t:null}function El(t,e,o,i,r,n){var s=NaN,a=NaN;if(1===(p=(o-e)/i))s=t[e],a=t[e+1];else if(2==p)s=(1-r)*t[e]+r*t[e+i],a=(1-r)*t[e+1]+r*t[e+i+1];else if(p){for(var a=t[e],p=t[e+1],h=0,s=[0],l=e+i;l<o;l+=i){var u=t[l],c=t[l+1],h=h+Math.sqrt((u-a)*(u-a)+(c-p)*(c-p));s.push(h),a=u,p=c}for(o=r*h,p=0,h=s.length,l=!1;p<h;)(a=+G(s[r=p+(h-p>>1)],o))<0?p=r+1:(h=r,l=!a);a=(r=l?p:~p)<0?(o=(o-s[-r-2])/(s[-r-1]-s[-r-2]),s=nt(t[e+=(-r-2)*i],t[e+i],o),nt(t[e+1],t[e+i+1],o)):(s=t[e+r*i],t[e+r*i+1])}return n?(n[0]=s,n[1]=a,n):[s,a]}function Tl(t,e,o,i,r,n){if(o==e)return null;if(r<t[e+i-1])return n?((o=t.slice(e,e+i))[i-1]=r,o):null;if(t[o-1]<r)return n?((o=t.slice(o-i,o))[i-1]=r,o):null;if(r==t[e+i-1])return t.slice(e,e+i);for(e/=i,o/=i;e<o;)r<t[((n=e+o>>1)+1)*i-1]?o=n:e=n+1;if(r==(o=t[e*i-1]))return t.slice((e-1)*i,(e-1)*i+i);var s;for(n=(r-o)/(t[(e+1)*i-1]-o),o=[],s=0;s<i-1;++s)o.push(nt(t[(e-1)*i+s],t[e*i+s],n));return o.push(r),o}function S(t,e){b.call(this),this.c=null,this.u=this.D=this.j=-1,this.ma(t,e)}function jl(t){return t.j!=t.i&&(t.c=t.wh(.5,t.c),t.j=t.i),t.c}function M(t,e){b.call(this),this.c=[],this.j=this.u=-1,this.ma(t,e)}function Cl(t){for(var e=[],o=t.A,i=0,r=t.c,n=(t=t.a,0),s=r.length;n<s;++n){var a=r[n];X(e,i=El(o,i,a,t,.5)),i=a}return e}function Ll(t,e){for(var o=t.ja,i=[],r=[],n=0,s=e.length;n<s;++n){var a=e[n];n||(o=a.ja),X(i,a.ga()),r.push(i.length)}t.ba(o,i,r)}function P(t,e){b.call(this),this.ma(t,e)}function f(t,e){b.call(this),this.c=[],this.u=-1,this.D=null,this.I=this.C=this.B=-1,this.j=null,this.ma(t,e)}function Rl(t){if(t.u!=t.i){var e=t.A,o=t.c,i=t.a,r=0,n=[],s=0;for(h=o.length;s<h;++s){var a=o[s],r=xt(e,r,a[0],i);n.push((r[0]+r[2])/2,(r[1]+r[3])/2),r=a[a.length-1]}for(e=Il(t),o=t.c,i=t.a,h=[],a=s=0,r=o.length;a<r;++a)var p=o[a],h=Ur(e,s,p,i,n,2*a,h),s=p[p.length-1];t.D=h,t.u=t.i}return t.D}function Il(t){if(t.I!=t.i){var e=t.A;t:{for(var o=t.c,i=0,r=o.length;i<r;++i)if(!Wr(e,o[i],t.a,void 0)){o=!1;break t}o=!0}o?t.j=e:(t.j=e.slice(),t.j.length=Kr(t.j,t.c,t.a)),t.I=t.i}return t.j}function Nl(t,e,o,i){br(t,e,o),t.c=i,t.s()}function Fl(t,e){for(var o=t.ja,i=[],r=[],n=0,s=e.length;n<s;++n){for(var a=e[n],p=(n||(o=a.ja),i.length),h=a.Bb(),l=0,u=h.length;l<u;++l)h[l]+=p;X(i,a.ga()),r.push(h)}Nl(t,o,i,r)}function kl(t){t=t||{},wl.call(this),this.b=t.geometryName}function Dl(t,e){if(!t)return null;if("number"==typeof t.x&&"number"==typeof t.y)var o="Point";else if(t.points)o="MultiPoint";else if(t.paths)o=1===t.paths.length?"LineString":"MultiLineString";else if(t.rings){for(var i=t.rings,r=Ol(t),n=[],s=[],o=[],a=0,p=i.length;a<p;++a)n.length=0,jr(n,0,i[a],r.length),Vr(n,0,n.length,r.length)?s.push([i[a]]):o.push(i[a]);for(;o.length;){for(i=o.shift(),r=!1,a=s.length-1;0<=a;a--)if(yt(new Fr(s[a][0]).G(),new Fr(i).G())){s[a].push(i),r=!0;break}r||s.push([i.reverse()])}t=Xt({},t),1===s.length?(o="Polygon",t.rings=s[0]):(o="MultiPolygon",t.rings=s)}return Ml((0,Gl[o])(t),!1,e)}function Ol(t){var e="XY";return!0===t.hasZ&&!0===t.hasM?e="XYZM":!0===t.hasZ?e="XYZ":!0===t.hasM&&(e="XYM"),e}function Ul(t){return{hasZ:"XYZ"===(t=t.ja)||"XYZM"===t,hasM:"XYM"===t||"XYZM"===t}}e(Pl,wl),(r=Pl.prototype).U=function(){return"json"},r.Tb=function(t,e){return this.Rc(Al(t),xl(this,t,e))},r.Oa=function(t,e){return this.yg(Al(t),xl(this,t,e))},r.Sc=function(t,e){return this.Cg(Al(t),xl(this,t,e))},r.kb=function(t){return this.Fg(Al(t))},r.Bd=function(t,e){return JSON.stringify(this.Zc(t,e))},r.Wb=function(t,e){return JSON.stringify(this.he(t,e))},r.$c=function(t,e){return JSON.stringify(this.je(t,e))},e(S,b),(r=S.prototype).mk=function(t){this.A?X(this.A,t):this.A=t.slice(),this.s()},r.clone=function(){var t=new S(null);return t.ba(this.ja,this.A.slice()),t},r.Kb=function(t,e,o,i){return i<ct(this.G(),t,e)?i:(this.u!=this.i&&(this.D=Math.sqrt(Mr(this.A,0,this.A.length,this.a,0)),this.u=this.i),Ar(this.A,0,this.A.length,this.a,this.D,!1,t,e,o,i))},r.Ck=function(t,e){return Gr(this.A,0,this.A.length,this.a,t,e)},r.nn=function(t,e){return"XYM"!=this.ja&&"XYZM"!=this.ja?null:Tl(this.A,0,this.A.length,this.a,t,void 0!==e&&e)},r.X=function(){return Lr(this.A,0,this.A.length,this.a)},r.wh=function(t,e){return El(this.A,0,this.A.length,this.a,t,e)},r.pn=function(){for(var t=this.A,e=this.a,o=t[0],i=t[1],r=0,n=0+e;n<this.A.length;n+=e)var s=t[n],a=t[n+1],r=r+Math.sqrt((s-o)*(s-o)+(a-i)*(a-i)),o=s,i=a;return r},r.hd=function(t){var e=[];return e.length=Ir(this.A,0,this.A.length,this.a,t,e,0),(t=new S(null)).ba("XY",e),t},r.U=function(){return"LineString"},r.Xa=function(t){return Br(this.A,0,this.A.length,this.a,t)},r.ma=function(t,e){t?(mr(this,e,t,1),this.A||(this.A=[]),this.A.length=jr(this.A,0,t,this.a),this.s()):this.ba("XY",null)},r.ba=function(t,e){br(this,t,e),this.s()},e(M,b),(r=M.prototype).nk=function(t){this.A?X(this.A,t.ga().slice()):this.A=t.ga().slice(),this.c.push(this.A.length),this.s()},r.clone=function(){var t=new M(null);return t.ba(this.ja,this.A.slice(),this.c.slice()),t},r.Kb=function(t,e,o,i){return i<ct(this.G(),t,e)?i:(this.j!=this.i&&(this.u=Math.sqrt(Pr(this.A,0,this.c,this.a,0)),this.j=this.i),Er(this.A,0,this.c,this.a,this.u,!1,t,e,o,i))},r.rn=function(t,e,o){if(("XYM"==this.ja||"XYZM"==this.ja)&&this.A.length){var i=this.A,r=this.c,n=this.a,s=t,a=void 0!==e&&e,p=void 0!==o&&o,h=0;if(p)return Tl(i,h,r[r.length-1],n,s,a);if(s<i[n-1])return a?((i=i.slice(0,n))[n-1]=s,i):null;if(i[i.length-1]<s)return a?((i=i.slice(i.length-n))[n-1]=s,i):null;for(a=0,p=r.length;a<p;++a){var l=r[a];if(h!=l){if(s<i[h+n-1])break;if(s<=i[l-1])return Tl(i,h,l,n,s,!1);h=l}}}return null},r.X=function(){return Rr(this.A,0,this.c,this.a)},r.Bb=function(){return this.c},r.Yk=function(t){var e;return t<0||this.c.length<=t?null:((e=new S(null)).ba(this.ja,this.A.slice(t?this.c[t-1]:0,this.c[t])),e)},r.gd=function(){for(var t=this.A,e=this.c,o=this.ja,i=[],r=0,n=0,s=e.length;n<s;++n){var a=e[n],p=new S(null);p.ba(o,t.slice(r,a)),i.push(p),r=a}return i},r.hd=function(t){for(var e=[],o=[],i=this.A,r=this.c,n=this.a,s=0,a=0,p=0,h=r.length;p<h;++p){var l=r[p],a=Ir(i,s,l,n,t,e,a);o.push(a),s=l}return e.length=a,(t=new M(null)).ba("XY",e,o),t},r.U=function(){return"MultiLineString"},r.Xa=function(t){t:{for(var e=this.A,o=this.c,i=this.a,r=0,n=0,s=o.length;n<s;++n){if(Br(e,r,o[n],i,t)){t=!0;break t}r=o[n]}t=!1}return t},r.ma=function(t,e){t?(mr(this,e,t,2),this.A||(this.A=[]),t=Cr(this.A,0,t,this.a,this.c),this.A.length=t.length?t[t.length-1]:0,this.s()):this.ba("XY",null,this.c)},r.ba=function(t,e,o){br(this,t,e),this.c=o,this.s()},e(P,b),(r=P.prototype).qk=function(t){this.A?X(this.A,t.ga()):this.A=t.ga().slice(),this.s()},r.clone=function(){var t=new P(null);return t.ba(this.ja,this.A.slice()),t},r.Kb=function(t,e,o,i){if(!(i<ct(this.G(),t,e)))for(var r=this.A,n=this.a,s=0,a=r.length;s<a;s+=n){var p=ot(t,e,r[s],r[s+1]);if(p<i){for(i=p,p=0;p<n;++p)o[p]=r[s+p];o.length=n}}return i},r.X=function(){return Lr(this.A,0,this.A.length,this.a)},r.il=function(t){var e=this.A?this.A.length/this.a:0;return t<0||e<=t?null:((e=new m(null)).ba(this.ja,this.A.slice(t*this.a,(t+1)*this.a)),e)},r.Zd=function(){for(var t=this.A,e=this.ja,o=this.a,i=[],r=0,n=t.length;r<n;r+=o){var s=new m(null);s.ba(e,t.slice(r,r+o)),i.push(s)}return i},r.U=function(){return"MultiPoint"},r.Xa=function(t){for(var e=this.A,o=this.a,i=0,r=e.length;i<r;i+=o)if(gt(t,e[i],e[i+1]))return!0;return!1},r.ma=function(t,e){t?(mr(this,e,t,1),this.A||(this.A=[]),this.A.length=jr(this.A,0,t,this.a),this.s()):this.ba("XY",null)},r.ba=function(t,e){br(this,t,e),this.s()},e(f,b),(r=f.prototype).rk=function(t){if(this.A)for(var e=this.A.length,o=(X(this.A,t.ga()),0),i=(t=t.Bb().slice()).length;o<i;++o)t[o]+=e;else this.A=t.ga().slice(),t=t.Bb().slice(),this.c.push();this.c.push(t),this.s()},r.clone=function(){for(var t=new f(null),e=this.c.length,o=Array(e),i=0;i<e;++i)o[i]=this.c[i].slice();return Nl(t,this.ja,this.A.slice(),o),t},r.Kb=function(t,e,o,i){if(!(i<ct(this.G(),t,e))){if(this.C!=this.i){for(var r=this.c,n=0,s=0,a=0,p=r.length;a<p;++a)var h=r[a],s=Pr(this.A,n,h,this.a,s),n=h[h.length-1];this.B=Math.sqrt(s),this.C=this.i}r=Il(this),n=this.c,s=this.a;for(var a=this.B,h=[NaN,NaN],l=p=0,u=n.length;l<u;++l){var c=n[l];i=Er(r,p,c,s,a,!0,t,e,o,i,h),p=c[c.length-1]}}return i},r.Mc=function(t,e){t:{var o=Il(this),i=this.c,r=0;if(i.length)for(var n=0,s=i.length;n<s;++n){var a=i[n];if(Or(o,r,a,this.a,t,e)){t=!0;break t}r=a[a.length-1]}t=!1}return t},r.sn=function(){for(var t=Il(this),e=this.c,o=0,i=0,r=0,n=e.length;r<n;++r)var s=e[r],i=i+xr(t,o,s,this.a),o=s[s.length-1];return i},r.X=function(t){void 0!==t?Kr(e=Il(this).slice(),this.c,this.a,t):e=this.A,t=e,e=this.c;for(var e,o=this.a,i=0,r=[],n=0,s=0,a=e.length;s<a;++s){var p=e[s];r[n++]=Rr(t,i,p,o,r[n]),i=p[p.length-1]}return r.length=n,r},r.Uk=function(){var t=new P(null);return t.ba("XY",Rl(this).slice()),t},r.hd=function(t){for(var e=[],o=[],i=this.A,r=this.c,n=this.a,s=(t=Math.sqrt(t),0),a=0,p=0,h=r.length;p<h;++p){var l=r[p],u=[],a=Nr(i,s,l,n,t,e,a,u);o.push(u),s=l[l.length-1]}return e.length=a,Nl(i=new f(null),"XY",e,o),i},r.jl=function(t){if(t<0||this.c.length<=t)return null;e=t?(e=this.c[t-1])[e.length-1]:0;var e,o=(t=this.c[t].slice())[t.length-1];if(e)for(var i=0,r=t.length;i<r;++i)t[i]-=e;return(i=new w(null)).ba(this.ja,this.A.slice(e,o),t),i},r.Td=function(){for(var t=this.ja,e=this.A,o=this.c,i=[],r=0,n=0,s=o.length;n<s;++n){var a=o[n].slice(),p=a[a.length-1];if(r)for(var h=0,l=a.length;h<l;++h)a[h]-=r;(h=new w(null)).ba(t,e.slice(r,p),a),i.push(h),r=p}return i},r.U=function(){return"MultiPolygon"},r.Xa=function(t){t:{for(var e=Il(this),o=this.c,i=this.a,r=0,n=0,s=o.length;n<s;++n){var a=o[n];if(Xr(e,r,a,i,t)){t=!0;break t}r=a[a.length-1]}t=!1}return t},r.ma=function(t,e){if(t){mr(this,e,t,3),this.A||(this.A=[]),e=this.A;for(var o=this.a,i=0,r=(r=this.c)||[],n=0,s=0,a=t.length;s<a;++s)i=Cr(e,i,t[s],o,r[n]),i=(r[n++]=i)[i.length-1];r.length=n,r.length?(t=r[r.length-1],this.A.length=t.length?t[t.length-1]:0):this.A.length=0,this.s()}else Nl(this,"XY",null,this.c)},e(kl,Pl);var Gl={Point:function(t){return void 0!==t.m&&void 0!==t.z?new m([t.x,t.y,t.z,t.m],"XYZM"):void 0!==t.z?new m([t.x,t.y,t.z],"XYZ"):void 0!==t.m?new m([t.x,t.y,t.m],"XYM"):new m([t.x,t.y])},LineString:function(t){return new S(t.paths[0],Ol(t))},Polygon:function(t){return new w(t.rings,Ol(t))},MultiPoint:function(t){return new P(t.points,Ol(t))},MultiLineString:function(t){return new M(t.paths,Ol(t))},MultiPolygon:function(t){return new f(t.rings,Ol(t))}},Bl={Point:function(t){var e,o=t.X();return"XYZ"===(t=t.ja)?e={x:o[0],y:o[1],z:o[2]}:"XYM"===t?e={x:o[0],y:o[1],m:o[2]}:"XYZM"===t?e={x:o[0],y:o[1],z:o[2],m:o[3]}:"XY"===t?e={x:o[0],y:o[1]}:O(!1,34),e},LineString:function(t){var e=Ul(t);return{hasZ:e.hasZ,hasM:e.hasM,paths:[t.X()]}},Polygon:function(t){var e=Ul(t);return{hasZ:e.hasZ,hasM:e.hasM,rings:t.X(!1)}},MultiPoint:function(t){var e=Ul(t);return{hasZ:e.hasZ,hasM:e.hasM,points:t.X()}},MultiLineString:function(t){var e=Ul(t);return{hasZ:e.hasZ,hasM:e.hasM,paths:t.X()}},MultiPolygon:function(t){var e=Ul(t);t=t.X(!1);for(var o=[],i=0;i<t.length;i++)for(var r=t[i].length-1;0<=r;r--)o.push(t[i][r]);return{hasZ:e.hasZ,hasM:e.hasM,rings:o}}};function Xl(t,e){return(0,Bl[t.U()])(Ml(t,!0,e),e)}function Vl(t){this.kc=t}function Wl(t,e){this.kc=t,this.b=Array.prototype.slice.call(arguments,1),O(2<=this.b.length,57)}function Zl(t){var e=["And"].concat(Array.prototype.slice.call(arguments));Wl.apply(this,e)}function Kl(t,e,o){this.kc="BBOX",this.geometryName=t,this.extent=e,this.srsName=o}function zl(t,e){this.kc=t,this.b=e}function Yl(t,e,o){zl.call(this,"During",t),this.a=e,this.i=o}function Hl(t,e,o,i){zl.call(this,t,e),this.i=o,this.a=i}function ql(t,e,o){Hl.call(this,"PropertyIsEqualTo",t,e,o)}function Jl(t,e){Hl.call(this,"PropertyIsGreaterThan",t,e)}function _l(t,e){Hl.call(this,"PropertyIsGreaterThanOrEqualTo",t,e)}function $l(t,e,o,i){this.kc=t,this.geometryName=e||"the_geom",this.geometry=o,this.srsName=i}function Ql(t,e,o){$l.call(this,"Intersects",t,e,o)}function tu(t,e,o){zl.call(this,"PropertyIsBetween",t),this.a=e,this.i=o}function eu(t,e,o,i,r,n){zl.call(this,"PropertyIsLike",t),this.c=e,this.g=void 0!==o?o:"*",this.f=void 0!==i?i:".",this.i=void 0!==r?r:"!",this.a=n}function ou(t){zl.call(this,"PropertyIsNull",t)}function iu(t,e){Hl.call(this,"PropertyIsLessThan",t,e)}function ru(t,e){Hl.call(this,"PropertyIsLessThanOrEqualTo",t,e)}function nu(t){this.kc="Not",this.condition=t}function su(t,e,o){Hl.call(this,"PropertyIsNotEqualTo",t,e,o)}function au(t){var e=["Or"].concat(Array.prototype.slice.call(arguments));Wl.apply(this,e)}function pu(t,e,o){$l.call(this,"Within",t,e,o)}function hu(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(Zl,e))}function lu(t,e,o){return new Kl(t,e,o)}function uu(t){yr.call(this),this.a=t||null,yu(this)}function cu(t){for(var e=[],o=0,i=t.length;o<i;++o)e.push(t[o].clone());return e}function fu(t){if(t.a)for(var e=0,o=t.a.length;e<o;++e)He(t.a[e],"change",t.s,t)}function yu(t){if(t.a)for(var e=0,o=t.a.length;e<o;++e)d(t.a[e],"change",t.s,t)}function gu(t){t=t||{},wl.call(this),this.defaultDataProjection=v(t.defaultDataProjection||"EPSG:4326"),t.featureProjection&&(this.f=v(t.featureProjection)),this.b=t.geometryName}function du(t,e){return t?Ml((0,bu[t.type])(t),!1,e):null}function vu(t,e){return(0,mu[t.U()])(Ml(t,!0,e),e)}(r=kl.prototype).Rc=function(t,e){var o=Dl(t.geometry,e),i=new x;return this.b&&i.Tc(this.b),i.Ra(o),e&&e.dg&&t.attributes[e.dg]&&i.jc(t.attributes[e.dg]),t.attributes&&i.H(t.attributes),i},r.yg=function(t,e){if(e=e||{},t.features){var o,i=[],r=t.features;for(e.dg=t.objectIdFieldName,t=0,o=r.length;t<o;++t)i.push(this.Rc(r[t],e));return i}return[this.Rc(t,e)]},r.Cg=Dl,r.Fg=function(t){return t.spatialReference&&t.spatialReference.wkid?v("EPSG:"+t.spatialReference.wkid):null},r.je=function(t,e){return Xl(t,Sl(this,e))},r.Zc=function(t,e){e=Sl(this,e);var o={},i=t.V();return i&&(o.geometry=Xl(i,e)),delete(i=t.N())[t.c],o.attributes=Zt(i)?{}:i,e&&e.featureProjection&&(o.spatialReference={wkid:v(e.featureProjection).mb.split(":").pop()}),o},r.he=function(t,e){e=Sl(this,e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(this.Zc(t[i],e));return{features:o}},e(Wl,Vl),e(Zl,Wl),e(Kl,Vl),e(zl,Vl),e(Yl,zl),e(Hl,zl),e(ql,Hl),e(Jl,Hl),e(_l,Hl),e($l,Vl),e(Ql,$l),e(tu,zl),e(eu,zl),e(ou,zl),e(iu,Hl),e(ru,Hl),e(nu,Vl),e(su,Hl),e(au,Wl),e(pu,$l),e(uu,yr),(r=uu.prototype).clone=function(){var t=new uu(null);return t.oj(this.a),t},r.Kb=function(t,e,o,i){if(!(i<ct(this.G(),t,e)))for(var r=this.a,n=0,s=r.length;n<s;++n)i=r[n].Kb(t,e,o,i);return i},r.Mc=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)if(o[i].Mc(t,e))return!0;return!1},r.se=function(t){mt(t);for(var e=this.a,o=0,i=e.length;o<i;++o)Mt(t,e[o].G());return t},r.Vf=function(){return cu(this.a)},r.Vd=function(t){if(this.o!=this.i&&(Vt(this.f),this.g=0,this.o=this.i),!(t<0||this.g&&t<this.g)){var e=t.toString();if(this.f.hasOwnProperty(e))return this.f[e];for(var o=[],i=this.a,r=!1,n=0,s=i.length;n<s;++n){var a=i[n],p=a.Vd(t);o.push(p),p!==a&&(r=!0)}if(r)return fu(t=new uu(null)),t.a=o,yu(t),t.s(),this.f[e]=t;this.g=t}return this},r.U=function(){return"GeometryCollection"},r.Xa=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)if(e[o].Xa(t))return!0;return!1},r.rotate=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)o[i].rotate(t,e);this.s()},r.scale=function(t,e,o){o=o||Lt(this.G());for(var i=this.a,r=0,n=i.length;r<n;++r)i[r].scale(t,e,o);this.s()},r.oj=function(t){t=cu(t),fu(this),this.a=t,yu(this),this.s()},r.Dc=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)e[o].Dc(t);this.s()},r.translate=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)o[i].translate(t,e);this.s()},r.ka=function(){fu(this),yr.prototype.ka.call(this)},e(gu,Pl);var bu={Point:function(t){return new m(t.coordinates)},LineString:function(t){return new S(t.coordinates)},Polygon:function(t){return new w(t.coordinates)},MultiPoint:function(t){return new P(t.coordinates)},MultiLineString:function(t){return new M(t.coordinates)},MultiPolygon:function(t){return new f(t.coordinates)},GeometryCollection:function(t,e){return new uu(t=t.geometries.map(function(t){return du(t,e)}))}},mu={Point:function(t){return{type:"Point",coordinates:t.X()}},LineString:function(t){return{type:"LineString",coordinates:t.X()}},Polygon:function(t,e){var o;return e&&(o=e.rightHanded),{type:"Polygon",coordinates:t.X(o)}},MultiPoint:function(t){return{type:"MultiPoint",coordinates:t.X()}},MultiLineString:function(t){return{type:"MultiLineString",coordinates:t.X()}},MultiPolygon:function(t,e){var o;return e&&(o=e.rightHanded),{type:"MultiPolygon",coordinates:t.X(o)}},GeometryCollection:function(t,o){return{type:"GeometryCollection",geometries:t.a.map(function(t){var e=Xt({},o);return delete e.featureProjection,vu(t,e)})}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};function wu(){this.i=new XMLSerializer,wl.call(this)}function xu(t,e,o){return 0<(t=Su(t,e,o)).length?t[0]:null}function Su(t,e,o){var i=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&X(i,t.zc(e,o));return i}function Mu(t){this.featureType=(t=t||{}).featureType,this.featureNS=t.featureNS,this.srsName=t.srsName,this.schemaLocation="",this.b={},this.b["http://www.opengis.net/gml"]={featureMember:hl(Mu.prototype.be),featureMembers:hl(Mu.prototype.be)},wu.call(this)}(r=gu.prototype).Rc=function(t,e){e=du((t="Feature"===t.type?t:{type:"Feature",geometry:t}).geometry,e);var o=new x;return this.b&&o.Tc(this.b),o.Ra(e),void 0!==t.id&&o.jc(t.id),t.properties&&o.H(t.properties),o},r.yg=function(t,e){if("FeatureCollection"===t.type)for(var o=[],i=0,r=(t=t.features).length;i<r;++i)o.push(this.Rc(t[i],e));else o=[this.Rc(t,e)];return o},r.Cg=du,r.Fg=function(t){var e;return(t=t.crs)?"name"==t.type?e=v(t.properties.name):"EPSG"==t.type?e=v("EPSG:"+t.properties.code):O(!1,36):e=this.defaultDataProjection,e},r.Zc=function(t,e){e=Sl(this,e);var o={type:"Feature"},i=t.a;return void 0!==i&&(o.id=i),(i=t.V())?o.geometry=vu(i,e):o.geometry=null,delete(e=t.N())[t.c],Zt(e)?o.properties=null:o.properties=e,o},r.he=function(t,e){e=Sl(this,e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(this.Zc(t[i],e));return{type:"FeatureCollection",features:o}},r.je=function(t,e){return vu(t,Sl(this,e))},e(wu,wl),(r=wu.prototype).U=function(){return"xml"},r.Tb=function(t,e){return rl(t)?xu(this,t,e):nl(t)?this.xg(t,e):"string"==typeof t?xu(this,t=sl(t),e):null},r.xg=function(){return null},r.Oa=function(t,e){return rl(t)?Su(this,t,e):nl(t)?this.zc(t,e):"string"==typeof t?Su(this,t=sl(t),e):[]},r.Sc=function(t,e){if(!rl(t)){if(nl(t))return this.aj(t,e);"string"==typeof t&&sl(t)}return null},r.aj=function(){return null},r.kb=function(t){return rl(t)?this.Eg(t):nl(t)?this.kf(t):"string"==typeof t?(t=sl(t),this.Eg(t)):null},r.Eg=function(){return this.defaultDataProjection},r.kf=function(){return this.defaultDataProjection},r.Bd=function(t,e){return this.i.serializeToString(this.Vg(t,e))},r.Vg=function(){return null},r.Wb=function(t,e){return t=this.Xb(t,e),this.i.serializeToString(t)},r.Xb=function(){return null},r.$c=function(t,e){return t=this.ie(t,e),this.i.serializeToString(t)},r.ie=function(){return null},e(Mu,wu);var Pu=/^[\s\xa0]*$/;function Au(t){return Eu(t=il(t,!1))}function Eu(t){if(t=/^\s*(true|1)|(false|0)\s*$/.exec(t))return void 0!==t[1]||!1}function Tu(t){return t=il(t,!1),t=Date.parse(t),isNaN(t)?void 0:t/1e3}function ju(t){return Cu(t=il(t,!1))}function Cu(t){if(t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(t))return parseFloat(t[1])}function Lu(t){return Ru(t=il(t,!1))}function Ru(t){if(t=/^\s*(\d+)\s*$/.exec(t))return parseInt(t[1],10)}function i(t){return il(t,!1).trim()}function Iu(t,e){ku(t,e?"1":"0")}function Nu(t,e){t.appendChild(el.createTextNode(e.toPrecision()))}function Fu(t,e){t.appendChild(el.createTextNode(e.toString()))}function ku(t,e){t.appendChild(el.createTextNode(e))}function y(t){Mu.call(this,t=t||{}),this.l=void 0!==t.surface&&t.surface,this.c=void 0!==t.curve&&t.curve,this.g=void 0===t.multiCurve||t.multiCurve,this.j=void 0===t.multiSurface||t.multiSurface,this.schemaLocation=t.schemaLocation||"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd"}function Du(t,e,o){o=(i=o[o.length-1]).hasZ;for(var i=i.srsName,r=(e=e.X()).length,n=Array(r),s=0;s<r;++s){var a=e[s],p=s,h=o,l="enu",l="en"===(l=i?v(i).b:l).substr(0,2)?a[0]+" "+a[1]:a[1]+" "+a[0];h&&(l+=" "+(a[2]||0)),n[p]=l}ku(t,n.join(" "))}(r=Mu.prototype).be=function(t,e){var o=t.localName,i=null;if("FeatureCollection"==o)i="http://www.opengis.net/wfs"===t.namespaceURI?g([],this.b,t,e,this):g(null,this.b,t,e,this);else if("featureMembers"==o||"featureMember"==o){var r=(y=e[0]).featureType,n=y.featureNS;if(!r&&t.childNodes){r=[];for(var n={},s=0,a=t.childNodes.length;s<a;++s)if(1===(c=t.childNodes[s]).nodeType){var p=c.nodeName.split(":").pop();if(-1===r.indexOf(p)){var h,l="",u=0,c=c.namespaceURI;for(h in n){if(n[h]===c){l=h;break}++u}l||(n[l="p"+u]=c),r.push(l+":"+p)}}"featureMember"!=o&&(y.featureType=r,y.featureNS=n)}"string"==typeof n&&(s=n,(n={}).p0=s);var f,y={},r=Array.isArray(r)?r:[r];for(f in n){for(p={},s=0,a=r.length;s<a;++s)(-1===r[s].indexOf(":")?"p0":r[s].split(":")[0])===f&&(p[r[s].split(":").pop()]=("featureMembers"==o?pl:hl)(this.wg,this));y[n[f]]=p}i=g("featureMember"==o?void 0:[],y,t,e)}return i=null===i?[]:i},r.gf=function(t,e){var o=e[0];if(o.srsName=t.firstElementChild.getAttribute("srsName"),t=g(null,this.Zg,t,e,this))return Ml(t,!1,o)},r.wg=function(t,e){var o,i=(i=t.getAttribute("fid"))||t.getAttributeNS("http://www.opengis.net/gml","id")||"",r={};for(t=t.firstElementChild;t;t=t.nextElementSibling){var n,s=t.localName;0===t.childNodes.length||1===t.childNodes.length&&(3===t.firstChild.nodeType||4===t.firstChild.nodeType)?(n=il(t,!1),Pu.test(n)&&(n=void 0),r[s]=n):("boundedBy"!==s&&(o=s),r[s]=this.gf(t,e))}return e=new x(r),o&&e.Tc(o),i&&e.jc(i),e},r.fj=function(t,e){if(t=this.ff(t,e))return(e=new m(null)).ba("XYZ",t),e},r.dj=function(t,e){if(t=g([],this.Nj,t,e,this))return new P(t)},r.cj=function(t,e){if(t=g([],this.Mj,t,e,this))return Ll(e=new M(null),t),e},r.ej=function(t,e){if(t=g([],this.Oj,t,e,this))return Fl(e=new f(null),t),e},r.Xi=function(t,e){gl(this.Rj,t,e,this)},r.Mh=function(t,e){gl(this.Kj,t,e,this)},r.Yi=function(t,e){gl(this.Sj,t,e,this)},r.hf=function(t,e){if(t=this.ff(t,e))return(e=new S(null)).ba("XYZ",t),e},r.wp=function(t,e){if(t=g(null,this.ke,t,e,this))return t},r.bj=function(t,e){if(t=this.ff(t,e))return kr(e=new Fr(null),"XYZ",t),e},r.jf=function(t,e){if((t=g([null],this.zf,t,e,this))&&t[0]){e=new w(null);for(var o=t[0],i=[o.length],r=1,n=t.length;r<n;++r)X(o,t[r]),i.push(o.length);return e.ba("XYZ",o,i),e}},r.ff=function(t,e){return g(null,this.ke,t,e,this)},r.Nj={"http://www.opengis.net/gml":{pointMember:pl(Mu.prototype.Xi),pointMembers:pl(Mu.prototype.Xi)}},r.Mj={"http://www.opengis.net/gml":{lineStringMember:pl(Mu.prototype.Mh),lineStringMembers:pl(Mu.prototype.Mh)}},r.Oj={"http://www.opengis.net/gml":{polygonMember:pl(Mu.prototype.Yi),polygonMembers:pl(Mu.prototype.Yi)}},r.Rj={"http://www.opengis.net/gml":{Point:pl(Mu.prototype.ff)}},r.Kj={"http://www.opengis.net/gml":{LineString:pl(Mu.prototype.hf)}},r.Sj={"http://www.opengis.net/gml":{Polygon:pl(Mu.prototype.jf)}},r.le={"http://www.opengis.net/gml":{LinearRing:hl(Mu.prototype.wp)}},r.aj=function(t,e){return(t=this.gf(t,[xl(this,t,e||{})]))||null},r.zc=function(t,e){var o={featureType:this.featureType,featureNS:this.featureNS};return e&&Xt(o,xl(this,t,e)),this.be(t,[o])||[]},r.kf=function(t){return v(this.srsName||t.firstElementChild.getAttribute("srsName"))},e(y,Mu),(r=y.prototype).Ap=function(t,e){if(t=g([],this.Lj,t,e,this))return Ll(e=new M(null),t),e},r.Bp=function(t,e){if(t=g([],this.Pj,t,e,this))return Fl(e=new f(null),t),e},r.ph=function(t,e){gl(this.Hj,t,e,this)},r.Aj=function(t,e){gl(this.Uj,t,e,this)},r.Ep=function(t,e){return g([null],this.Qj,t,e,this)},r.Hp=function(t,e){return g([null],this.Tj,t,e,this)},r.Fp=function(t,e){return g([null],this.zf,t,e,this)},r.zp=function(t,e){return g([null],this.ke,t,e,this)},r.cm=function(t,e){(t=g(void 0,this.le,t,e,this))&&e[e.length-1].push(t)},r.yk=function(t,e){(t=g(void 0,this.le,t,e,this))&&(e[e.length-1][0]=t)},r.gj=function(t,e){if((t=g([null],this.Vj,t,e,this))&&t[0]){e=new w(null);for(var o=t[0],i=[o.length],r=1,n=t.length;r<n;++r)X(o,t[r]),i.push(o.length);return e.ba("XYZ",o,i),e}},r.Zi=function(t,e){if(t=g([null],this.Ij,t,e,this))return(e=new S(null)).ba("XYZ",t),e},r.vp=function(t,e){return bt((t=g([null],this.Jj,t,e,this))[1][0],t[1][1],t[2][0],t[2][1])},r.xp=function(t,e){var o,i=il(t,!1),r=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/;for(t=[];o=r.exec(i);)t.push(parseFloat(o[1])),i=i.substr(o[0].length);if(""===i){if(i="enu","neu"===(i=(e=e[0].srsName)?v(e).b:i))for(e=0,i=t.length;e<i;e+=3)r=t[e],t[e]=t[e+1],t[e+1]=r;if(2==(e=t.length)&&t.push(0),e)return t}},r.Bg=function(t,e){var o=il(t,!1).replace(/^\s*|\s*$/g,""),i=e[0].srsName,r=t.parentNode.getAttribute("srsDimension");e="enu",i&&(e=v(i).b),o=o.split(/\s+/),i=2,t.getAttribute("srsDimension")?i=Ru(t.getAttribute("srsDimension")):t.getAttribute("dimension")?i=Ru(t.getAttribute("dimension")):r&&(i=Ru(r));for(var n,s=[],a=0,p=o.length;a<p;a+=i)t=parseFloat(o[a]),r=parseFloat(o[a+1]),n=3===i?parseFloat(o[a+2]):0,"en"===e.substr(0,2)?s.push(t,r,n):s.push(r,t,n);return s},r.ke={"http://www.opengis.net/gml":{pos:hl(y.prototype.xp),posList:hl(y.prototype.Bg)}},r.zf={"http://www.opengis.net/gml":{interior:y.prototype.cm,exterior:y.prototype.yk}},r.Zg={"http://www.opengis.net/gml":{Point:hl(Mu.prototype.fj),MultiPoint:hl(Mu.prototype.dj),LineString:hl(Mu.prototype.hf),MultiLineString:hl(Mu.prototype.cj),LinearRing:hl(Mu.prototype.bj),Polygon:hl(Mu.prototype.jf),MultiPolygon:hl(Mu.prototype.ej),Surface:hl(y.prototype.gj),MultiSurface:hl(y.prototype.Bp),Curve:hl(y.prototype.Zi),MultiCurve:hl(y.prototype.Ap),Envelope:hl(y.prototype.vp)}},r.Lj={"http://www.opengis.net/gml":{curveMember:pl(y.prototype.ph),curveMembers:pl(y.prototype.ph)}},r.Pj={"http://www.opengis.net/gml":{surfaceMember:pl(y.prototype.Aj),surfaceMembers:pl(y.prototype.Aj)}},r.Hj={"http://www.opengis.net/gml":{LineString:pl(Mu.prototype.hf),Curve:pl(y.prototype.Zi)}},r.Uj={"http://www.opengis.net/gml":{Polygon:pl(Mu.prototype.jf),Surface:pl(y.prototype.gj)}},r.Vj={"http://www.opengis.net/gml":{patches:hl(y.prototype.Ep)}},r.Ij={"http://www.opengis.net/gml":{segments:hl(y.prototype.Hp)}},r.Jj={"http://www.opengis.net/gml":{lowerCorner:pl(y.prototype.Bg),upperCorner:pl(y.prototype.Bg)}},r.Qj={"http://www.opengis.net/gml":{PolygonPatch:hl(y.prototype.Fp)}},r.Tj={"http://www.opengis.net/gml":{LineStringSegment:hl(y.prototype.zp)}},r.ni=function(t,e,o){var i=o[o.length-1].srsName,r=(i&&t.setAttribute("srsName",i),i=ol(t.namespaceURI,"pos"),t.appendChild(i),t=(o=o[o.length-1]).hasZ,o.srsName);o="enu",r&&(o=v(r).b),e=e.X(),o="en"===o.substr(0,2)?e[0]+" "+e[1]:e[1]+" "+e[0],t&&(o+=" "+(e[2]||0)),ku(i,o)};var r,Ou={"http://www.opengis.net/gml":{lowerCorner:c(ku),upperCorner:c(ku)}},Uu=((r=y.prototype).jn=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),vl({node:t},Ou,fl,[e[0]+" "+e[1],e[2]+" "+e[3]],o,["lowerCorner","upperCorner"],this)},r.ki=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=ol(t.namespaceURI,"posList"),t.appendChild(i),Du(i,e,o)},r.hn=function(t,e){e=(t=e[e.length-1]).node;var o=t.exteriorWritten;return void 0===o&&(t.exteriorWritten=!0),ol(e.namespaceURI,void 0!==o?"interior":"exterior")},r.Se=function(t,e,o){var i=(r=o[o.length-1]).hasZ,r=r.srsName;"PolygonPatch"!==t.nodeName&&r&&t.setAttribute("srsName",r),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName?(e=e.Sd(),vl({node:t,hasZ:i,srsName:r},Xu,this.hn,e,o,void 0,this)):"Surface"===t.nodeName&&(i=ol(t.namespaceURI,"patches"),t.appendChild(i),t=ol(i.namespaceURI,"PolygonPatch"),i.appendChild(t),this.Se(t,e,o))},r.Re=function(t,e,o){var i=o[o.length-1].srsName;"LineStringSegment"!==t.nodeName&&i&&t.setAttribute("srsName",i),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName?(i=ol(t.namespaceURI,"posList"),t.appendChild(i),Du(i,e,o)):"Curve"===t.nodeName&&(i=ol(t.namespaceURI,"segments"),t.appendChild(i),t=ol(i.namespaceURI,"LineStringSegment"),i.appendChild(t),this.Re(t,e,o))},r.mi=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.surface;r&&t.setAttribute("srsName",r),e=e.Td(),vl({node:t,hasZ:i,srsName:r,surface:n},Uu,this.o,e,o,void 0,this)},r.kn=function(t,e,o){var i=(r=o[o.length-1]).srsName,r=r.hasZ;i&&t.setAttribute("srsName",i),e=e.Zd(),vl({node:t,hasZ:r,srsName:i},Gu,cl("pointMember"),e,o,void 0,this)},r.li=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.curve;r&&t.setAttribute("srsName",r),e=e.gd(),vl({node:t,hasZ:i,srsName:r,curve:n},Bu,this.o,e,o,void 0,this)},r.oi=function(t,e,o){var i=ol(t.namespaceURI,"LinearRing");t.appendChild(i),this.ki(i,e,o)},r.pi=function(t,e,o){var i=this.a(e,o);i&&(t.appendChild(i),this.Se(i,e,o))},r.ln=function(t,e,o){var i=ol(t.namespaceURI,"Point");t.appendChild(i),this.ni(i,e,o)},r.ji=function(t,e,o){var i=this.a(e,o);i&&(t.appendChild(i),this.Re(i,e,o))},r.od=function(t,e,o){var i=o[o.length-1],r=Xt({},i);r.node=t,t=Array.isArray(e)?i.dataProjection?Pe(e,i.featureProjection,i.dataProjection):e:Ml(e,!0,i),vl(r,Vu,this.a,[t],o,void 0,this)},r.ii=function(t,e,o){var i=e.a;i&&t.setAttribute("fid",i);var r=(i=o[o.length-1]).featureNS,n=e.c,s=(i.lb||(i.lb={},i.lb[r]={}),e.N()),a=(e=[],[]);for(h in s){var p=s[h];null!==p&&(e.push(h),a.push(p),h==n||p instanceof yr?h in i.lb[r]||(i.lb[r][h]=c(this.od,this)):h in i.lb[r]||(i.lb[r][h]=c(ku)))}var h=Xt({},i);h.node=t,vl(h,i.lb,cl(void 0,r),a,o,e)},{"http://www.opengis.net/gml":{surfaceMember:c(y.prototype.pi),polygonMember:c(y.prototype.pi)}}),Gu={"http://www.opengis.net/gml":{pointMember:c(y.prototype.ln)}},Bu={"http://www.opengis.net/gml":{lineStringMember:c(y.prototype.ji),curveMember:c(y.prototype.ji)}},Xu={"http://www.opengis.net/gml":{exterior:c(y.prototype.oi),interior:c(y.prototype.oi)}},Vu={"http://www.opengis.net/gml":{Curve:c(y.prototype.Re),MultiCurve:c(y.prototype.li),Point:c(y.prototype.ni),MultiPoint:c(y.prototype.kn),LineString:c(y.prototype.Re),MultiLineString:c(y.prototype.li),LinearRing:c(y.prototype.ki),Polygon:c(y.prototype.Se),MultiPolygon:c(y.prototype.mi),Surface:c(y.prototype.Se),MultiSurface:c(y.prototype.mi),Envelope:c(y.prototype.jn)}},Wu={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};function Zu(t){Mu.call(this,t=t||{}),this.b["http://www.opengis.net/gml"].featureMember=pl(Mu.prototype.be),this.schemaLocation=t.schemaLocation||"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd"}function Ku(t){return(t=ol(t,"coordinates")).setAttribute("decimal","."),t.setAttribute("cs",","),t.setAttribute("ts"," "),t}function zu(t,e,o){o=(r=o[o.length-1]).hasZ;for(var i,r=r.srsName,n=(e=e.X()).length,s=Array(n),a=0;a<n;++a)i=e[a],s[a]=Yu(i,r,o);ku(t,s.join(" "))}function Yu(t,e,o){var i="enu";return e="en"===(i=e?v(e).b:i).substr(0,2)?t[0]+","+t[1]:t[1]+","+t[0],o&&(e+=","+(t[2]||0)),e}y.prototype.o=function(t,e){return ol("http://www.opengis.net/gml",Wu[e[e.length-1].node.nodeName])},y.prototype.a=function(t,e){e=(r=e[e.length-1]).multiSurface;var o=r.surface,i=r.curve,r=r.multiCurve;return Array.isArray(t)?t="Envelope":"MultiPolygon"===(t=t.U())&&!0===e?t="MultiSurface":"Polygon"===t&&!0===o?t="Surface":"LineString"===t&&!0===i?t="Curve":"MultiLineString"===t&&!0===r&&(t="MultiCurve"),ol("http://www.opengis.net/gml",t)},y.prototype.ie=function(t,e){e=Sl(this,e);var o=ol("http://www.opengis.net/gml","geom"),i={node:o,hasZ:this.hasZ,srsName:this.srsName,curve:this.c,surface:this.l,multiSurface:this.j,multiCurve:this.g};return e&&Xt(i,e),this.od(o,t,[i]),o},y.prototype.Xb=function(t,e){e=Sl(this,e);var o=ol("http://www.opengis.net/gml","featureMembers"),i=(o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation),{srsName:this.srsName,hasZ:this.hasZ,curve:this.c,surface:this.l,multiSurface:this.j,multiCurve:this.g,featureNS:this.featureNS,featureType:this.featureType}),r=(e&&Xt(i,e),(e=[i])[e.length-1]),i=r.featureType,n=r.featureNS,s={};return s[n]={},s[n][i]=c(this.ii,this),(r=Xt({},r)).node=o,vl(r,s,cl(i,n),t,e),o},e(Zu,Mu),(r=Zu.prototype).$i=function(t,e){t=il(t,!1).replace(/^\s*|\s*$/g,"");var o=e[0].srsName;e="enu",(o=o&&v(o))&&(e=o.b);for(var i,r,n=[],s=0,a=(t=t.trim().split(/\s+/)).length;s<a;s++)r=t[s].split(/,+/),o=parseFloat(r[0]),i=parseFloat(r[1]),r=3===r.length?parseFloat(r[2]):0,"en"===e.substr(0,2)?n.push(o,i,r):n.push(i,o,r);return n},r.tp=function(t,e){return bt((t=g([null],this.Gj,t,e,this))[1][0],t[1][1],t[1][3],t[1][4])},r.am=function(t,e){(t=g(void 0,this.le,t,e,this))&&e[e.length-1].push(t)},r.bp=function(t,e){(t=g(void 0,this.le,t,e,this))&&(e[e.length-1][0]=t)},r.ke={"http://www.opengis.net/gml":{coordinates:hl(Zu.prototype.$i)}},r.zf={"http://www.opengis.net/gml":{innerBoundaryIs:Zu.prototype.am,outerBoundaryIs:Zu.prototype.bp}},r.Gj={"http://www.opengis.net/gml":{coordinates:pl(Zu.prototype.$i)}},r.Zg={"http://www.opengis.net/gml":{Point:hl(Mu.prototype.fj),MultiPoint:hl(Mu.prototype.dj),LineString:hl(Mu.prototype.hf),MultiLineString:hl(Mu.prototype.cj),LinearRing:hl(Mu.prototype.bj),Polygon:hl(Mu.prototype.jf),MultiPolygon:hl(Mu.prototype.ej),Box:hl(Zu.prototype.tp)}},r.jg=function(t,e){e=(i=e[e.length-1]).multiSurface;var o=i.surface,i=i.multiCurve;return Array.isArray(t)?t="Envelope":"MultiPolygon"===(t=t.U())&&!0===e?t="MultiSurface":"Polygon"===t&&!0===o?t="Surface":"MultiLineString"===t&&!0===i&&(t="MultiCurve"),ol("http://www.opengis.net/gml",t)},r.ai=function(t,e,o){var i=o[o.length-1],r=Xt({},i);r.node=t,t=Array.isArray(e)?i.dataProjection?Pe(e,i.featureProjection,i.dataProjection):e:Ml(e,!0,i),vl(r,Hu,this.jg,[t],o,void 0,this)},r.Pe=function(t,e,o){var i=o[o.length-1].srsName;"LineStringSegment"!==t.nodeName&&i&&t.setAttribute("srsName",i),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName?(i=Ku(t.namespaceURI),t.appendChild(i),zu(i,e,o)):"Curve"===t.nodeName&&(i=ol(t.namespaceURI,"segments"),t.appendChild(i),t=ol(i.namespaceURI,"LineStringSegment"),i.appendChild(t),this.Pe(t,e,o))},r.Qe=function(t,e,o){var i=(r=o[o.length-1]).hasZ,r=r.srsName;"PolygonPatch"!==t.nodeName&&r&&t.setAttribute("srsName",r),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName?(e=e.Sd(),vl({node:t,hasZ:i,srsName:r},qu,this.dn,e,o,void 0,this)):"Surface"===t.nodeName&&(i=ol(t.namespaceURI,"patches"),t.appendChild(i),t=ol(i.namespaceURI,"PolygonPatch"),i.appendChild(t),this.Qe(t,e,o))},r.dn=function(t,e){e=(t=e[e.length-1]).node;var o=t.exteriorWritten;return void 0===o&&(t.exteriorWritten=!0),ol(e.namespaceURI,void 0!==o?"innerBoundaryIs":"outerBoundaryIs")},r.gi=function(t,e,o){var i=ol(t.namespaceURI,"LinearRing");t.appendChild(i),this.ci(i,e,o)},r.di=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.curve;r&&t.setAttribute("srsName",r),e=e.gd(),vl({node:t,hasZ:i,srsName:r,curve:n},_u,this.a,e,o,void 0,this)},r.fi=function(t,e,o){var i=o[o.length-1],r=(o=i.hasZ,i.srsName);r&&t.setAttribute("srsName",r),i=Ku(t.namespaceURI),t.appendChild(i),ku(i,t=Yu(t=e.X(),r,o))},r.fn=function(t,e,o){var i=o[o.length-1],r=i.hasZ;(i=i.srsName)&&t.setAttribute("srsName",i),e=e.Zd(),vl({node:t,hasZ:r,srsName:i},Ju,cl("pointMember"),e,o,void 0,this)},r.gn=function(t,e,o){var i=ol(t.namespaceURI,"Point");t.appendChild(i),this.fi(i,e,o)},r.bi=function(t,e,o){var i=this.jg(e,o);i&&(t.appendChild(i),this.Pe(i,e,o))},r.ci=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=Ku(t.namespaceURI),t.appendChild(i),zu(i,e,o)},r.ei=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.surface;r&&t.setAttribute("srsName",r),e=e.Td(),vl({node:t,hasZ:i,srsName:r,surface:n},Qu,this.a,e,o,void 0,this)},r.hi=function(t,e,o){var i=this.jg(e,o);i&&(t.appendChild(i),this.Qe(i,e,o))},r.en=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),vl({node:t},tc,fl,[e[0]+" "+e[1],e[2]+" "+e[3]],o,["lowerCorner","upperCorner"],this)};var Hu={"http://www.opengis.net/gml":{Curve:c(Zu.prototype.Pe),MultiCurve:c(Zu.prototype.di),Point:c(Zu.prototype.fi),MultiPoint:c(Zu.prototype.fn),LineString:c(Zu.prototype.Pe),MultiLineString:c(Zu.prototype.di),LinearRing:c(Zu.prototype.ci),Polygon:c(Zu.prototype.Qe),MultiPolygon:c(Zu.prototype.ei),Surface:c(Zu.prototype.Qe),MultiSurface:c(Zu.prototype.ei),Envelope:c(Zu.prototype.en)}},qu={"http://www.opengis.net/gml":{outerBoundaryIs:c(Zu.prototype.gi),innerBoundaryIs:c(Zu.prototype.gi)}},Ju={"http://www.opengis.net/gml":{pointMember:c(Zu.prototype.gn)}},_u={"http://www.opengis.net/gml":{lineStringMember:c(Zu.prototype.bi),curveMember:c(Zu.prototype.bi)}},$u=(Zu.prototype.a=function(t,e){return ol("http://www.opengis.net/gml",$u[e[e.length-1].node.nodeName])},{MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"}),Qu={"http://www.opengis.net/gml":{surfaceMember:c(Zu.prototype.hi),polygonMember:c(Zu.prototype.hi)}},tc={"http://www.opengis.net/gml":{lowerCorner:c(ku),upperCorner:c(ku)}};function ec(t){t=t||{},wu.call(this),this.defaultDataProjection=v("EPSG:4326"),this.b=t.readExtensions}e(ec,wu);var oc=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function ic(t,e,o,i){return t.push(parseFloat(o.getAttribute("lon")),parseFloat(o.getAttribute("lat"))),"ele"in i?(t.push(i.ele),delete i.ele,e.hasZ=!0):t.push(0),"time"in i?(t.push(i.time),delete i.time,e.hasM=!0):t.push(0),t}function rc(t,e,o){var i="XY",r=2;if(t.hasZ&&t.hasM?(i="XYZM",r=4):t.hasZ?(i="XYZ",r=3):t.hasM&&(i="XYM",r=3),4!==r){for(var n=0,s=e.length/4;n<s;n++)e[n*r]=e[4*n],e[n*r+1]=e[4*n+1],t.hasZ&&(e[n*r+2]=e[4*n+2]),t.hasM&&(e[n*r+2]=e[4*n+3]);if(e.length=e.length/4*r,o)for(n=0,s=o.length;n<s;n++)o[n]=o[n]/4*r}return i}function nc(t,e){var o=e[e.length-1],i=t.getAttribute("href");null!==i&&(o.link=i),gl(cc,t,e)}function sc(t,e){e[e.length-1].extensionsNode_=t}function ac(t,e){var o,i,r=e[0];if(t=g({flatCoordinates:[],layoutOptions:{}},fc,t,e))return e=t.flatCoordinates,delete t.flatCoordinates,o=t.layoutOptions,delete t.layoutOptions,o=rc(o,e),(i=new S(null)).ba(o,e),Ml(i,!1,r),(r=new x(i)).H(t),r}function pc(t,e){var o,i,r,n=e[0];if(t=g({flatCoordinates:[],ends:[],layoutOptions:{}},gc,t,e))return e=t.flatCoordinates,delete t.flatCoordinates,o=t.ends,delete t.ends,i=t.layoutOptions,delete t.layoutOptions,i=rc(i,e,o),(r=new M(null)).ba(i,e,o),Ml(r,!1,n),(n=new x(r)).H(t),n}function hc(t,e){var o,i=e[0];if(e=g({},bc,t,e))return Ml(t=new m(t=ic([],o={},t,e),o=rc(o,t)),!1,i),(i=new x(t)).H(e),i}var lc={rte:ac,trk:pc,wpt:hc},uc=l(oc,{rte:pl(ac),trk:pl(pc),wpt:pl(hc)}),cc=l(oc,{text:o(i,"linkText"),type:o(i,"linkType")}),fc=l(oc,{name:o(i),cmt:o(i),desc:o(i),src:o(i),link:nc,number:o(Lu),extensions:sc,type:o(i),rtept:function(t,e){var o=g({},yc,t,e);o&&ic((e=e[e.length-1]).flatCoordinates,e.layoutOptions,t,o)}}),yc=l(oc,{ele:o(ju),time:o(Tu)}),gc=l(oc,{name:o(i),cmt:o(i),desc:o(i),src:o(i),link:nc,number:o(Lu),type:o(i),extensions:sc,trkseg:function(t,e){var o=e[e.length-1];gl(dc,t,e),o.ends.push(o.flatCoordinates.length)}}),dc=l(oc,{trkpt:function(t,e){var o=g({},vc,t,e);o&&ic((e=e[e.length-1]).flatCoordinates,e.layoutOptions,t,o)}}),vc=l(oc,{ele:o(ju),time:o(Tu)}),bc=l(oc,{ele:o(ju),time:o(Tu),magvar:o(ju),geoidheight:o(ju),name:o(i),cmt:o(i),desc:o(i),src:o(i),link:nc,sym:o(i),type:o(i),fix:o(i),sat:o(Lu),hdop:o(ju),vdop:o(ju),pdop:o(ju),ageofdgpsdata:o(ju),dgpsid:o(Lu),extensions:sc});function mc(t,e){for(var o=0,i=(e=e||[]).length;o<i;++o){var r,n=e[o];t.b&&(r=n.get("extensionsNode_")||null,t.b(n,r)),n.set("extensionsNode_",void 0)}}function wc(t,e,o){t.setAttribute("href",e),e=o[o.length-1].properties,vl({node:t},Mc,fl,[e.linkText,e.linkType],o,Sc)}function xc(t,e,o){var i=o[o.length-1],r=i.node.namespaceURI,n=i.properties;switch(t.setAttributeNS(null,"lat",e[1]),t.setAttributeNS(null,"lon",e[0]),i.geometryLayout){case"XYZM":e[3]&&(n.time=e[3]);case"XYZ":e[2]&&(n.ele=e[2]);break;case"XYM":e[2]&&(n.time=e[2])}i=yl(n,e=("rtept"==t.nodeName?Ec:Rc)[r]),vl({node:t,properties:n},Ic,fl,i,o,e)}ec.prototype.xg=function(t,e){var o;return D(oc,t.namespaceURI)&&(o=lc[t.localName])&&(t=o(t,[xl(this,t,e)]))?(mc(this,[t]),t):null},ec.prototype.zc=function(t,e){return D(oc,t.namespaceURI)&&"gpx"==t.localName&&(t=g([],uc,t,[xl(this,t,e)]))?(mc(this,t),t):[]};var Sc=["text","type"],Mc=l(oc,{text:c(ku),type:c(ku)}),Pc=l(oc,"name cmt desc src link number type rtept".split(" ")),Ac=l(oc,{name:c(ku),cmt:c(ku),desc:c(ku),src:c(ku),link:c(wc),number:c(Fu),type:c(ku),rtept:ul(c(xc))}),Ec=l(oc,["ele","time"]),Tc=l(oc,"name cmt desc src link number type trkseg".split(" ")),jc=l(oc,{name:c(ku),cmt:c(ku),desc:c(ku),src:c(ku),link:c(wc),number:c(Fu),type:c(ku),trkseg:ul(c(function(t,e,o){vl({node:t,geometryLayout:e.ja,properties:{}},Lc,Cc,e.X(),o)}))}),Cc=cl("trkpt"),Lc=l(oc,{trkpt:c(xc)}),Rc=l(oc,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),Ic=l(oc,{ele:c(Nu),time:c(function(t,e){e=new Date(1e3*e),t.appendChild(el.createTextNode(e.getUTCFullYear()+"-"+Qi(e.getUTCMonth()+1)+"-"+Qi(e.getUTCDate())+"T"+Qi(e.getUTCHours())+":"+Qi(e.getUTCMinutes())+":"+Qi(e.getUTCSeconds())+"Z"))}),magvar:c(Nu),geoidheight:c(Nu),name:c(ku),cmt:c(ku),desc:c(ku),src:c(ku),link:c(wc),sym:c(ku),type:c(ku),fix:c(ku),sat:c(Fu),hdop:c(Nu),vdop:c(Nu),pdop:c(Nu),ageofdgpsdata:c(Nu),dgpsid:c(Fu)}),Nc={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function Fc(t,e){if(t=(t=t.V())&&Nc[t.U()])return ol(e[e.length-1].node.namespaceURI,t)}var kc=l(oc,{rte:c(function(t,e,o){var i=o[0],r=e.N();t={node:t,properties:r},(e=e.V())&&(e=Ml(e,!0,i),t.geometryLayout=e.ja,r.rtept=e.X()),r=yl(r,i=Pc[o[o.length-1].node.namespaceURI]),vl(t,Ac,fl,r,o,i)}),trk:c(function(t,e,o){var i=o[0],r=e.N();t={node:t,properties:r},(e=e.V())&&(e=Ml(e,!0,i),r.trkseg=e.gd()),r=yl(r,i=Tc[o[o.length-1].node.namespaceURI]),vl(t,jc,fl,r,o,i)}),wpt:c(function(t,e,o){var i=o[0],r=o[o.length-1];r.properties=e.N(),(e=e.V())&&(e=Ml(e,!0,i),r.geometryLayout=e.ja,xc(t,e.X(),o))})});function Dc(){wl.call(this)}function Oc(t){return"string"==typeof t?t:""}function Uc(t){t=t||{},wl.call(this),this.defaultDataProjection=v("EPSG:4326"),this.b=t.altitudeMode||"none"}ec.prototype.Xb=function(t,e){e=Sl(this,e);var o=ol("http://www.topografix.com/GPX/1/1","gpx");return o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"),o.setAttribute("version","1.1"),o.setAttribute("creator","OpenLayers"),vl({node:o},kc,Fc,t,[e]),o},e(Dc,wl),(r=Dc.prototype).U=function(){return"text"},r.Tb=function(t,e){return this.ae(Oc(t),Sl(this,e))},r.Oa=function(t,e){return this.zg(Oc(t),Sl(this,e))},r.Sc=function(t,e){return this.wd(Oc(t),Sl(this,e))},r.kb=function(){return this.defaultDataProjection},r.Bd=function(t,e){return this.ge(t,Sl(this,e))},r.Wb=function(t,e){return this.Wg(t,Sl(this,e))},r.$c=function(t,e){return this.Cd(t,Sl(this,e))},e(Uc,Dc);var Gc,Bc,Xc,Vc,Wc,Zc,Kc,zc,Yc,Hc,qc,Jc,_c,$c,Qc,tf=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,ef=/^H.([A-Z]{3}).*?:(.*)/,of=/^HFDTE(\d{2})(\d{2})(\d{2})/,rf=/\r\n|\r|\n/;function nf(t,e,o,i,r,n){eo.call(this),this.j=null,this.M=t||new Image,null!==i&&(this.M.crossOrigin=i),this.c=n?document.createElement("CANVAS"):null,this.g=n,this.f=null,this.i=r,this.a=o,this.o=e,this.l=!1,2==this.i&&sf(this)}function sf(e){var t=Po(1,1);try{t.drawImage(e.M,0,0),t.getImageData(0,0,1,1)}catch(t){e.l=!0}}function af(t){this.o=void 0!==(t=t||{}).anchor?t.anchor:[.5,.5],this.u=null,this.i=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.C=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.B=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.ra=void 0!==t.crossOrigin?t.crossOrigin:null;var e=void 0!==t.img?t.img:null,o=void 0!==t.imgSize?t.imgSize:null,i=t.src,r=(O(!(void 0!==i&&e),4),O(!e||o,5),O(void 0!==(i=void 0!==i&&i.length||!e?i:e.src||U(e).toString())&&0<i.length,6),void 0!==t.src?0:2),n=(this.j=void 0!==t.color?vo(t.color):null,this.ra),s=this.j,a=vs.get(i,n,s);a||(a=new nf(e,i,o,n,r,s),vs.set(i,n,s,a)),this.b=a,this.oa=void 0!==t.offset?t.offset:[0,0],this.c=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.S=null,this.D=void 0!==t.size?t.size:null,Zh.call(this,{opacity:void 0!==t.opacity?t.opacity:1,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,snapToPixel:void 0===t.snapToPixel||t.snapToPixel,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView})}function pf(t){this.a=(t=t||{}).font,this.f=t.rotation,this.o=t.rotateWithView,this.b=t.scale,this.Ia=t.text,this.g=t.textAlign,this.j=t.textBaseline,this.Va=void 0!==t.fill?t.fill:new Hh({color:"#333"}),this.Ya=void 0!==t.stroke?t.stroke:null,this.i=void 0!==t.offsetX?t.offsetX:0,this.c=void 0!==t.offsetY?t.offsetY:0}function hf(t){t=t||{},wu.call(this),Gc||(Xc=new Hh({color:Bc=[255,255,255,1]}),Zc=Wc="pixels",Hc=new af({anchor:Vc=[20,2],anchorOrigin:"bottom-left",anchorXUnits:Wc,anchorYUnits:Zc,crossOrigin:"anonymous",rotation:0,scale:Yc=.5,size:Kc=[64,64],src:zc="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),qc="NO_IMAGE",Jc=new hp({color:Bc,width:1}),_c=new hp({color:[51,51,51,1],width:2}),$c=new pf({font:"bold 16px Helvetica",fill:Xc,stroke:_c,scale:.8}),Qc=new qh({fill:Xc,image:Hc,text:$c,stroke:Jc,zIndex:0}),Gc=[Qc]),this.defaultDataProjection=v("EPSG:4326"),this.a=t.defaultStyle||Gc,this.c=void 0===t.extractStyles||t.extractStyles,this.j=void 0===t.writeStyles||t.writeStyles,this.b={},this.g=void 0===t.showPointNames||t.showPointNames}(r=Uc.prototype).ae=function(t,e){for(var o=this.b,i=t.split(rf),r=(t={},[]),n=2e3,s=0,a=1,p=-1,h=0,l=i.length;h<l;++h){var u,c,f,y,g,d=i[h];"B"==d.charAt(0)?(u=tf.exec(d))&&(d=parseInt(u[1],10),c=parseInt(u[2],10),f=parseInt(u[3],10),y=parseInt(u[4],10)+parseInt(u[5],10)/6e4,"S"==u[6]&&(y=-y),g=parseInt(u[7],10)+parseInt(u[8],10)/6e4,"W"==u[9]&&(g=-g),r.push(g,y),"none"!=o&&r.push("gps"==o?parseInt(u[11],10):"barometric"==o?parseInt(u[12],10):0),(u=Date.UTC(n,s,a,d,c,f))<p&&(u=Date.UTC(n,s,a+1,d,c,f)),r.push(u/1e3),p=u):"H"==d.charAt(0)&&((u=of.exec(d))?(a=parseInt(u[1],10),s=parseInt(u[2],10)-1,n=2e3+parseInt(u[3],10)):(u=ef.exec(d))&&(t[u[1]]=u[2].trim()))}return r.length?((i=new S(null)).ba("none"==o?"XYM":"XYZM",r),(e=new x(Ml(i,!1,e))).H(t),e):null},r.zg=function(t,e){return(t=this.ae(t,e))?[t]:[]},r.ge=function(){},r.Wg=function(){},r.Cd=function(){},r.wd=function(){},e(nf,eo),nf.prototype.v=function(){this.i=3,this.f.forEach(qe),this.f=null,this.b("change")},nf.prototype.u=function(){if(this.i=2,this.a&&(this.M.width=this.a[0],this.M.height=this.a[1]),this.a=[this.M.width,this.M.height],this.f.forEach(qe),this.f=null,sf(this),!this.l&&null!==this.g){this.c.width=this.M.width,this.c.height=this.M.height;var t=this.c.getContext("2d");t.drawImage(this.M,0,0);for(var e=t.getImageData(0,0,this.M.width,this.M.height),o=e.data,i=this.g[0]/255,r=this.g[1]/255,n=this.g[2]/255,s=0,a=o.length;s<a;s+=4)o[s]*=i,o[s+1]*=r,o[s+2]*=n;t.putImageData(e,0,0)}this.b("change")},nf.prototype.Y=function(){return this.c||this.M},nf.prototype.load=function(){if(0==this.i){this.i=1,this.f=[Ye(this.M,"error",this.v,this),Ye(this.M,"load",this.u,this)];try{this.M.src=this.o}catch(t){this.v()}}},e(af,Zh),(r=af.prototype).clone=function(){var t,e,o=this.Y(1);return 2===this.b.i&&("IMG"===o.tagName.toUpperCase()?t=o.cloneNode(!0):(e=(t=document.createElement("canvas")).getContext("2d"),t.width=o.width,t.height=o.height,e.drawImage(o,0,0))),new af({anchor:this.o.slice(),anchorOrigin:this.i,anchorXUnits:this.C,anchorYUnits:this.B,crossOrigin:this.ra,color:this.j&&this.j.slice?this.j.slice():this.j||void 0,img:t||void 0,imgSize:t?this.b.a.slice():void 0,src:t?void 0:this.b.o,offset:this.oa.slice(),offsetOrigin:this.c,size:null!==this.D?this.D.slice():void 0,opacity:this.f,scale:this.a,snapToPixel:this.v,rotation:this.g,rotateWithView:this.l})},r.Hc=function(){if(this.u)return this.u;var t=this.o,e=this.ic();if("fraction"==this.C||"fraction"==this.B){if(!e)return null;t=this.o.slice(),"fraction"==this.C&&(t[0]*=e[0]),"fraction"==this.B&&(t[1]*=e[1])}if("top-left"!=this.i){if(!e)return null;t===this.o&&(t=this.o.slice()),"top-right"!=this.i&&"bottom-right"!=this.i||(t[0]=-t[0]+e[0]),"bottom-left"!=this.i&&"bottom-right"!=this.i||(t[1]=-t[1]+e[1])}return this.u=t},r.Lo=function(){return this.j},r.Y=function(t){return this.b.Y(t)},r.ye=function(){return this.b.a},r.Ye=function(){return this.b.i},r.qg=function(){var t,e,o,i=this.b;return i.j||(i.l?((o=Po(t=i.a[0],e=i.a[1])).fillRect(0,0,t,e),i.j=o.canvas):i.j=i.M),i.j},r.Oc=function(){if(this.S)return this.S;var t=this.oa;if("top-left"!=this.c){var e=this.ic(),o=this.b.a;if(!e||!o)return null;t=t.slice(),"top-right"!=this.c&&"bottom-right"!=this.c||(t[0]=o[0]-e[0]-t[0]),"bottom-left"!=this.c&&"bottom-right"!=this.c||(t[1]=o[1]-e[1]-t[1])}return this.S=t},r.Mo=function(){return this.b.o},r.ic=function(){return this.D||this.b.a},r.Nh=function(t,e){return d(this.b,"change",t,e)},r.load=function(){this.b.load()},r.Bj=function(t,e){He(this.b,"change",t,e)},(r=pf.prototype).clone=function(){return new pf({font:this.a,rotation:this.f,rotateWithView:this.o,scale:this.b,text:this.Na(),textAlign:this.g,textBaseline:this.j,fill:this.Fa()?this.Fa().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,offsetX:this.i,offsetY:this.c})},r.Nk=function(){return this.a},r.cl=function(){return this.i},r.dl=function(){return this.c},r.Fa=function(){return this.Va},r.Ro=function(){return this.o},r.So=function(){return this.f},r.To=function(){return this.b},r.Ga=function(){return this.Ya},r.Na=function(){return this.Ia},r.nl=function(){return this.g},r.ol=function(){return this.j},r.nj=function(t){this.a=t},r.sj=function(t){this.i=t},r.tj=function(t){this.c=t},r.pf=function(t){this.Va=t},r.Uo=function(t){this.f=t},r.Si=function(t){this.b=t},r.qf=function(t){this.Ya=t},r.xd=function(t){this.Ia=t},r.vj=function(t){this.g=t},r.hq=function(t){this.j=t},e(hf,wu);var lf=["http://www.google.com/kml/ext/2.2"],n=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],uf={fraction:"fraction",pixels:"pixels",insetPixels:"pixels"};function cf(t,e){var o,i=[0,0],r="start";return t.Y()&&2==(o=null===(o=t.Y().ye())?Kc:o).length&&(r=t.Y().a,i[0]=r*o[0]/2,i[1]=-r*o[1]/2,r="left"),null!==t.Na()?((t=(o=t.Na()).clone()).nj(o.a||$c.a),t.Si(o.b||$c.b),t.pf(o.Fa()||$c.Fa()),t.qf(o.Ga()||_c)):t=$c.clone(),t.xd(e),t.sj(i[0]),t.tj(i[1]),t.vj(r),new qh({text:t})}function ff(i,r,n,s,a){return function(){var t,e=a,o="";return(e=e&&this.V()?"Point"===this.V().U():e)&&(o=this.get("name"),e=e&&o),i?e?(e=cf(i[0],o),i.concat(e)):i:r?(t=function t(e,o,i){return Array.isArray(e)?e:"string"==typeof e?(!(e in i)&&"#"+e in i&&(e="#"+e),t(i[e],o,i)):o}(r,n,s),e?(e=cf(t[0],o),t.concat(e)):t):e?(e=cf(n[0],o),n.concat(e)):n}}function yf(t){if(t=il(t,!1),t=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(t))return t=t[1],[parseInt(t.substr(6,2),16),parseInt(t.substr(4,2),16),parseInt(t.substr(2,2),16),parseInt(t.substr(0,2),16)/255]}function gf(t){t=il(t,!1);for(var e,o=[],i=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i;e=i.exec(t);)o.push(parseFloat(e[1]),parseFloat(e[2]),e[3]?parseFloat(e[3]):0),t=t.substr(e[0].length);if(""===t)return o}function df(t){var e=il(t,!1).trim();return t.baseURI&&"about:blank"!==t.baseURI?new URL(e,t.baseURI).href:e}function vf(t){return ju(t)}function bf(t,e){return g(null,kf,t,e)}function mf(t,e){if(e=g({A:[],Ej:[]},Of,t,e)){t=e.A,e=e.Ej;for(var o=0,i=Math.min(t.length,e.length);o<i;++o)t[4*o+3]=e[o];return(e=new S(null)).ba("XYZM",t),e}}function wf(t,e){var o=g({},Ff,t,e);if(t=g(null,Uf,t,e))return(e=new S(null)).ba("XYZ",t),e.H(o),e}function xf(t,e){var o=g({},Ff,t,e);if(t=g(null,Uf,t,e))return(e=new w(null)).ba("XYZ",t,[t.length]),e.H(o),e}function Sf(t,e){if(!(t=g([],Zf,t,e)))return null;if(!t.length)return new uu(t);var o=!0,i=t[0].U(),r=1;for(s=t.length;r<s;++r)if((e=t[r]).U()!=i){o=!1;break}if(o)if("Point"==i){for(var n=t[0],o=n.ja,i=n.ga(),r=1,s=t.length;r<s;++r)X(i,(e=t[r]).ga());(n=new P(null)).ba(o,i),Ef(n,t)}else"LineString"==i?(Ll(n=new M(null),t),Ef(n,t)):"Polygon"==i?(Fl(n=new f(null),t),Ef(n,t)):"GeometryCollection"==i?n=new uu(t):O(!1,37);else n=new uu(t);return n}function Mf(t,e){var o=g({},Ff,t,e);if(t=g(null,Uf,t,e))return(e=new m(null)).ba("XYZ",t),e.H(o),e}function Pf(t,e){var o=g({},Ff,t,e);if((t=g([null],Df,t,e))&&t[0]){e=new w(null);for(var i=t[0],r=[i.length],n=1,s=t.length;n<s;++n)X(i,t[n]),r.push(i.length);return e.ba("XYZ",i,r),e.H(o),e}}function Af(t,e){if(!(e=g({},Qf,t,e)))return null;t="fillStyle"in e?e.fillStyle:Xc;var o=e.fill,i=(void 0===o||o||(t=null),(o="imageStyle"in e?e.imageStyle:Hc)==qc&&(o=void 0),"textStyle"in e?e.textStyle:$c),r="strokeStyle"in e?e.strokeStyle:Jc;return[new qh({fill:t,image:o,stroke:r=void 0===(e=e.outline)||e?r:null,text:i,zIndex:void 0})]}function Ef(t,e){for(var o,i=e.length,r=Array(e.length),n=Array(e.length),s=o=!1,a=0;a<i;++a){var p=e[a];r[a]=p.get("extrude"),n[a]=p.get("altitudeMode"),s=s||void 0!==r[a],o=o||n[a]}s&&t.set("extrude",r),o&&t.set("altitudeMode",n)}function Tf(t,e){gl(Lf,t,e)}function jf(t,e){gl(Rf,t,e)}var Cf=l(n,{displayName:o(i),value:o(i)}),Lf=l(n,{Data:function(t,e){var o=t.getAttribute("name");gl(Cf,t,e),t=e[e.length-1],null!==o?t[o]=t.value:null!==t.displayName&&(t[t.displayName]=t.value)},SchemaData:function(t,e){gl($f,t,e)}}),Rf=l(n,{LatLonAltBox:function(t,e){(t=g({},If,t,e))&&((e=e[e.length-1]).extent=[parseFloat(t.west),parseFloat(t.south),parseFloat(t.east),parseFloat(t.north)],e.altitudeMode=t.altitudeMode,e.minAltitude=parseFloat(t.minAltitude),e.maxAltitude=parseFloat(t.maxAltitude))},Lod:function(t,e){(t=g({},Nf,t,e))&&((e=e[e.length-1]).minLodPixels=parseFloat(t.minLodPixels),e.maxLodPixels=parseFloat(t.maxLodPixels),e.minFadeExtent=parseFloat(t.minFadeExtent),e.maxFadeExtent=parseFloat(t.maxFadeExtent))}}),If=l(n,{altitudeMode:o(i),minAltitude:o(ju),maxAltitude:o(ju),north:o(ju),south:o(ju),east:o(ju),west:o(ju)}),Nf=l(n,{minLodPixels:o(ju),maxLodPixels:o(ju),minFadeExtent:o(ju),maxFadeExtent:o(ju)}),Ff=l(n,{extrude:o(Au),altitudeMode:o(i)}),kf=l(n,{coordinates:hl(gf)}),Df=l(n,{innerBoundaryIs:function(t,e){(t=g(void 0,Xf,t,e))&&e[e.length-1].push(t)},outerBoundaryIs:function(t,e){(t=g(void 0,Hf,t,e))&&(e[e.length-1][0]=t)}}),Of=l(n,{when:function(t,e){e=e[e.length-1].Ej,t=il(t,!1),t=Date.parse(t),e.push(isNaN(t)?0:t)}},l(lf,{coord:function(t,e){e=e[e.length-1].A,t=il(t,!1),(t=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(t))?e.push(parseFloat(t[1]),parseFloat(t[2]),parseFloat(t[3]),0):e.push(0,0,0,0)}})),Uf=l(n,{coordinates:hl(gf)}),Gf=l(n,{href:o(df)},l(lf,{x:o(ju),y:o(ju),w:o(ju),h:o(ju)})),Bf=l(n,{Icon:o(function(t,e){return(t=g({},Gf,t,e))||null}),heading:o(ju),hotSpot:o(function(t){var e=t.getAttribute("xunits"),o=t.getAttribute("yunits"),i="insetPixels"!==e?"insetPixels"!==o?"bottom-left":"top-left":"insetPixels"!==o?"bottom-right":"top-right";return{x:parseFloat(t.getAttribute("x")),Xg:uf[e],y:parseFloat(t.getAttribute("y")),Yg:uf[o],origin:i}}),scale:o(vf)}),Xf=l(n,{LinearRing:hl(bf)}),Vf=l(n,{color:o(yf),scale:o(vf)}),Wf=l(n,{color:o(yf),width:o(ju)}),Zf=l(n,{LineString:pl(wf),LinearRing:pl(xf),MultiGeometry:pl(Sf),Point:pl(Mf),Polygon:pl(Pf)}),Kf=l(lf,{Track:pl(mf)}),zf=l(n,{ExtendedData:Tf,Region:jf,Link:function(t,e){gl(Yf,t,e)},address:o(i),description:o(i),name:o(i),open:o(Au),phoneNumber:o(i),visibility:o(Au)}),Yf=l(n,{href:o(df)}),Hf=l(n,{LinearRing:hl(bf)}),qf=l(n,{Style:o(Af),key:o(i),styleUrl:o(df)}),Jf=l(n,{ExtendedData:Tf,Region:jf,MultiGeometry:o(Sf,"geometry"),LineString:o(wf,"geometry"),LinearRing:o(xf,"geometry"),Point:o(Mf,"geometry"),Polygon:o(Pf,"geometry"),Style:o(Af),StyleMap:function(t,e){(t=g(void 0,ty,t,e))&&(e=e[e.length-1],Array.isArray(t)?e.Style=t:"string"==typeof t?e.styleUrl=t:O(!1,38))},address:o(i),description:o(i),name:o(i),open:o(Au),phoneNumber:o(i),styleUrl:o(df),visibility:o(Au)},l(lf,{MultiTrack:o(function(t,e){if(t=g([],Kf,t,e))return Ll(e=new M(null),t),e},"geometry"),Track:o(mf,"geometry")})),_f=l(n,{color:o(yf),fill:o(Au),outline:o(Au)}),$f=l(n,{SimpleData:function(t,e){var o=t.getAttribute("name");null!==o&&(t=i(t),e[e.length-1][o]=t)}}),Qf=l(n,{IconStyle:function(t,e){var o,i,r,n,s,a,p,h,l,u,c,f;(t=g({},Bf,t,e))&&(e=e[e.length-1],f="Icon"in t?t.Icon:{},o=!("Icon"in t)||0<Object.keys(f).length,(r=f.href)?i=r:o&&(i=zc),r="bottom-left",(u=t.hotSpot)?(n=[u.x,u.y],s=u.Xg,a=u.Yg,r=u.origin):i===zc?(n=Vc,s=Wc,a=Zc):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(i)&&(n=[.5,0],a=s="fraction"),u=f.x,h=f.y,void 0!==u&&void 0!==h&&(p=[u,h]),u=f.w,f=f.h,void 0!==u&&void 0!==f&&(l=[u,f]),void 0!==(f=t.heading)&&(c=it(f)),t=t.scale,o?(i=new af({anchor:n,anchorOrigin:r,anchorXUnits:s,anchorYUnits:a,crossOrigin:"anonymous",offset:p,offsetOrigin:"bottom-left",rotation:c,scale:t=i==zc&&(l=Kc,void 0===t)?Yc:t,size:l,src:i}),e.imageStyle=i):e.imageStyle=qc)},LabelStyle:function(t,e){(t=g({},Vf,t,e))&&(e[e.length-1].textStyle=new pf({fill:new Hh({color:"color"in t?t.color:Bc}),scale:t.scale}))},LineStyle:function(t,e){(t=g({},Wf,t,e))&&(e[e.length-1].strokeStyle=new hp({color:"color"in t?t.color:Bc,width:"width"in t?t.width:1}))},PolyStyle:function(t,e){var o;(t=g({},_f,t,e))&&((e=e[e.length-1]).fillStyle=new Hh({color:"color"in t?t.color:Bc}),void 0!==(o=t.fill)&&(e.fill=o),void 0!==(t=t.outline))&&(e.outline=t)}}),ty=l(n,{Pair:function(t,e){var o;(t=g({},qf,t,e))&&(o=t.key)&&"normal"==o&&((o=t.styleUrl)&&(e[e.length-1]=o),t=t.Style)&&(e[e.length-1]=t)}});function ey(t,e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE){var o=oy(t,e);if(o)return o}}function oy(t,e){for(var o=e.firstElementChild;o;o=o.nextElementSibling)if(D(n,o.namespaceURI)&&"name"==o.localName)return i(o);for(o=e.firstElementChild;o;o=o.nextElementSibling)if(e=o.localName,D(n,o.namespaceURI)&&("Document"==e||"Folder"==e||"Placemark"==e||"kml"==e)&&(e=oy(t,o)))return e}function iy(t,e){var o=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&X(o,ry(t,e));return o}function ry(t,e){for(var o,i=[],r=e.firstElementChild;r;r=r.nextElementSibling)D(n,r.namespaceURI)&&"NetworkLink"==r.localName&&(o=g({},zf,r,[]),i.push(o));for(r=e.firstElementChild;r;r=r.nextElementSibling)e=r.localName,!D(n,r.namespaceURI)||"Document"!=e&&"Folder"!=e&&"kml"!=e||X(i,ry(t,r));return i}function ny(t,e){var o=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&X(o,t.lf(e));return o}function sy(t,e){var o;for(e=[255*(4==(e=vo(e)).length?e[3]:1),e[2],e[1],e[0]],o=0;o<4;++o){var i=parseInt(e[o],10).toString(16);e[o]=1==i.length?"0"+i:i}ku(t,e.join(""))}function ay(t,e,o){t={node:t};var i,r,n=e.U();"GeometryCollection"==n?(i=e.Vf(),r=Oy):"MultiPoint"==n?(i=e.Zd(),r=zy):"MultiLineString"==n?(i=e.gd(),r=Yy):"MultiPolygon"==n?(i=e.Td(),r=qy):O(!1,39),vl(t,Ty,r,i,o)}function py(t,e,o){vl({node:t},Ey,Hy,[e],o)}function hy(t,e,o){var i,r={node:t},n=(e.a&&t.setAttribute("id",e.a),t=e.N(),{address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1}),s=(n[e.c]=1,Object.keys(t||{}).sort().filter(function(t){return!n[t]}));0<s.length&&(i=yl(t,s),vl(r,Cy,Zy,[{names:s,values:i}],o)),(s=(s=e.Lc())&&s.call(e,0))&&(s=Array.isArray(s)?s[0]:s,this.j&&(t.Style=s),s=s.Na())&&(t.name=s.Na()),t=yl(t,s=jy[o[o.length-1].node.namespaceURI]),vl(r,Cy,fl,t,o,s),t=o[0],e=(e=e.V())&&Ml(e,!0,t),vl(r,Cy,Oy,[e],o)}function ly(t,e,o){var i=e.ga();(t={node:t}).layout=e.ja,t.stride=e.qa(),vl(t,Ly,Vy,[i],o)}function uy(t,e,o){var i=(e=e.Sd()).shift();vl(t={node:t},Ry,Ky,e,o),vl(t,Ry,Jy,[i],o)}function cy(t,e){Nu(t,Math.round(1e6*e)/1e6)}(r=hf.prototype).vg=function(t,e){if(t=g([],l(n,{Document:al(this.vg,this),Folder:al(this.vg,this),Placemark:pl(this.Dg,this),Style:this.Jp.bind(this),StyleMap:this.Ip.bind(this)}),t,e,this))return t},r.Dg=function(t,e){var o,i=g({geometry:null},Jf,t,e);if(i)return o=new x,null!==(t=t.getAttribute("id"))&&o.jc(t),e=e[0],(t=i.geometry)&&Ml(t,!1,e),o.Ra(t),delete i.geometry,this.c&&o.hg(ff(i.Style,i.styleUrl,this.a,this.b,this.g)),delete i.Style,o.H(i),o},r.Jp=function(t,e){var o=t.getAttribute("id");null!==o&&(e=Af(t,e))&&(t=t.baseURI&&"about:blank"!==t.baseURI?new URL("#"+o,t.baseURI).href:"#"+o,this.b[t]=e)},r.Ip=function(t,e){var o=t.getAttribute("id");null!==o&&(e=g(void 0,ty,t,e))&&(t=t.baseURI&&"about:blank"!==t.baseURI?new URL("#"+o,t.baseURI).href:"#"+o,this.b[t]=e)},r.xg=function(t,e){return D(n,t.namespaceURI)&&(t=this.Dg(t,[xl(this,t,e)]))||null},r.zc=function(t,e){if(!D(n,t.namespaceURI))return[];var o=t.localName;if("Document"==o||"Folder"==o)return(o=this.vg(t,[xl(this,t,e)]))||[];if("Placemark"==o)return(e=this.Dg(t,[xl(this,t,e)]))?[e]:[];if("kml"!=o)return[];for(o=[],t=t.firstElementChild;t;t=t.nextElementSibling){var i=this.zc(t,e);i&&X(o,i)}return o},r.Cp=function(t){return rl(t)?ey(this,t):nl(t)?oy(this,t):"string"==typeof t?ey(this,t=sl(t)):void 0},r.Dp=function(t){var e=[];return rl(t)?X(e,iy(this,t)):nl(t)?X(e,ry(this,t)):"string"==typeof t&&X(e,iy(this,t=sl(t))),e},r.Gp=function(t){var e=[];return rl(t)?X(e,ny(this,t)):nl(t)?X(e,this.lf(t)):"string"==typeof t&&X(e,ny(this,t=sl(t))),e},r.lf=function(t){for(var e,o=[],i=t.firstElementChild;i;i=i.nextElementSibling)D(n,i.namespaceURI)&&"Region"==i.localName&&(e=g({},Rf,i,[]),o.push(e));for(i=t.firstElementChild;i;i=i.nextElementSibling)t=i.localName,!D(n,i.namespaceURI)||"Document"!=t&&"Folder"!=t&&"kml"!=t||X(o,this.lf(i));return o};var fy=l(n,["Document","Placemark"]),yy=l(n,{Document:c(function(t,e,o){vl({node:t},gy,Dy,e,o,void 0,this)}),Placemark:c(hy)}),gy=l(n,{Placemark:c(hy)}),dy=l(n,{Data:c(function(t,e,o){t.setAttribute("name",e.name),t={node:t},"object"==typeof(e=e.value)?(null!==e&&e.displayName&&vl(t,dy,fl,[e.displayName],o,["displayName"]),null!==e&&e.value&&vl(t,dy,fl,[e.value],o,["value"])):vl(t,dy,fl,[e],o,["value"])}),value:c(function(t,e){ku(t,e)}),displayName:c(function(t,e){t.appendChild(el.createCDATASection(e))})}),vy={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},by=l(n,["href"],l(lf,["x","y","w","h"])),my=l(n,{href:c(ku)},l(lf,{x:c(Nu),y:c(Nu),w:c(Nu),h:c(Nu)})),wy=l(n,["scale","heading","Icon","hotSpot"]),xy=l(n,{Icon:c(function(t,e,o){t={node:t};var i=by[o[o.length-1].node.namespaceURI],r=yl(e,i);vl(t,my,fl,r,o,i),r=yl(e,i=by[lf[0]]),vl(t,my,ky,r,o,i)}),heading:c(Nu),hotSpot:c(function(t,e){t.setAttribute("x",e.x),t.setAttribute("y",e.y),t.setAttribute("xunits",e.Xg),t.setAttribute("yunits",e.Yg)}),scale:c(cy)}),Sy=l(n,["color","scale"]),My=l(n,{color:c(sy),scale:c(cy)}),Py=l(n,["color","width"]),Ay=l(n,{color:c(sy),width:c(Nu)}),Ey=l(n,{LinearRing:c(ly)}),Ty=l(n,{LineString:c(ly),Point:c(ly),Polygon:c(uy),GeometryCollection:c(ay)}),jy=l(n,"name open visibility address phoneNumber description styleUrl Style".split(" ")),Cy=l(n,{ExtendedData:c(function(t,e,o){t={node:t};var i=e.names;e=e.values;for(var r=i.length,n=0;n<r;n++)vl(t,dy,Wy,[{name:i[n],value:e[n]}],o)}),MultiGeometry:c(ay),LineString:c(ly),LinearRing:c(ly),Point:c(ly),Polygon:c(uy),Style:c(function(t,e,o){t={node:t};var i={},r=e.Fa(),n=e.Ga(),s=e.Y();e=e.Na(),s instanceof af&&(i.IconStyle=s),e&&(i.LabelStyle=e),n&&(i.LineStyle=n),r&&(i.PolyStyle=r),i=yl(i,e=Ny[o[o.length-1].node.namespaceURI]),vl(t,Fy,fl,i,o,e)}),address:c(ku),description:c(ku),name:c(ku),open:c(Iu),phoneNumber:c(ku),styleUrl:c(ku),visibility:c(Iu)}),Ly=l(n,{coordinates:c(function(t,e,o){var i,r=(o=o[o.length-1]).layout;o=o.stride,"XY"==r||"XYM"==r?i=2:"XYZ"==r||"XYZM"==r?i=3:O(!1,34);var n,s=e.length,a="";if(0<s){for(a+=e[0],r=1;r<i;++r)a+=","+e[r];for(n=o;n<s;n+=o)for(a+=" "+e[n],r=1;r<i;++r)a+=","+e[n+r]}ku(t,a)})}),Ry=l(n,{outerBoundaryIs:c(py),innerBoundaryIs:c(py)}),Iy=l(n,{color:c(sy)}),Ny=l(n,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Fy=l(n,{IconStyle:c(function(t,e,o){t={node:t};var i,r,n={},s=e.ic(),a=e.ye(),p={href:e.b.o};s&&(p.w=s[0],p.h=s[1],i=e.Hc(),(r=e.Oc())&&a&&r[0]&&r[1]!==s[1]&&(p.x=r[0],p.y=a[1]-(r[1]+s[1])),i)&&i[0]&&i[1]!==s[1]&&(n.hotSpot={x:i[0],Xg:"pixels",y:s[1]-i[1],Yg:"pixels"}),n.Icon=p,1!==(s=e.a)&&(n.scale=s),(e=e.g)&&(n.heading=e),n=yl(n,e=wy[o[o.length-1].node.namespaceURI]),vl(t,xy,fl,n,o,e)}),LabelStyle:c(function(t,e,o){t={node:t};var i={},r=e.Fa();r&&(i.color=r.b),(e=e.b)&&1!==e&&(i.scale=e),i=yl(i,e=Sy[o[o.length-1].node.namespaceURI]),vl(t,My,fl,i,o,e)}),LineStyle:c(function(t,e,o){t={node:t};var i=Py[o[o.length-1].node.namespaceURI];e=yl({color:e.a,width:e.c},i),vl(t,Ay,fl,e,o,i)}),PolyStyle:c(function(t,e,o){vl({node:t},Iy,Xy,[e.b],o)})});function ky(t,e,o){return ol(lf[0],"gx:"+o)}function Dy(t,e){return ol(e[e.length-1].node.namespaceURI,"Placemark")}function Oy(t,e){if(t)return ol(e[e.length-1].node.namespaceURI,vy[t.U()])}var Uy,Gy,By,Xy=cl("color"),Vy=cl("coordinates"),Wy=cl("Data"),Zy=cl("ExtendedData"),Ky=cl("innerBoundaryIs"),zy=cl("Point"),Yy=cl("LineString"),Hy=cl("LinearRing"),qy=cl("Polygon"),Jy=cl("outerBoundaryIs");function _y(t){this.lc=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.type=this.ea=0,this.length=this.lc.length}function $y(t,e,o){return o?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function Qy(t,e){this.layers=t.Ag(ng,{},e)}function tg(t,e){this.x=t,this.y=e}function eg(t,e,o,i,r){this.properties={},this.extent=o,this.type=0,this.Cc=t,this.Ef=-1,this.ne=i,this.pe=r,t.Ag(og,this,e)}function og(t,e,o){if(1==t)e.id=o.Ka();else if(2==t)for(t=o.Ka()+o.ea;o.ea<t;){var i=e.ne[o.Ka()],r=e.pe[o.Ka()];e.properties[i]=r}else 3==t?e.type=o.Ka():4==t&&(e.Ef=o.ea)}function ig(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this.Cc=t,this.ne=[],this.pe=[],this.me=[],t.Ag(rg,this,e),this.length=this.me.length}function rg(t,e,o){15===t?e.version=o.Ka():1===t?e.name=o.Gg():5===t?e.extent=o.Ka():2===t?e.me.push(o.ea):3===t?e.ne.push(o.Gg()):4===t&&e.pe.push(function(t){for(var e=null,o=t.Ka()+t.ea;t.ea<o;)e=1==(e=t.Ka()>>3)?t.Gg():2===e?t.yp():3===e?t.up():4===e?t.Kp():5===e?t.Ka():6===e?t.ce():7===e?t.sp():null;return e}(o))}function ng(t,e,o){3===t&&(t=new Gy(o,o.Ka()+o.ea)).length&&(e[t.name]=t)}function sg(t,e,o,i,r){this.g=r,this.i=t,this.b=e,this.f=o,this.c=i}function ag(t){wl.call(this),t=t||{},this.defaultDataProjection=new qt({code:"",units:"tile-pixels"}),this.b=t.featureClass||sg,this.a=t.geometryName,this.i=t.layerName||"layer",this.c=t.layers||null}function pg(t,e,o){for(var i=0,r=0,n=t.length;r<n;++r){for(var s=t[r],a=0,p=s.length;a<p;++a){var h=s[a];e.push(h.x,h.y)}i+=2*a,o.push(i)}}function hg(){wu.call(this),this.defaultDataProjection=v("EPSG:4326")}function lg(t,e){e[e.length-1].fe[t.getAttribute("k")]=t.getAttribute("v")}hf.prototype.Xb=function(t,e){e=Sl(this,e);var o=ol(n[4],"kml"),i=(o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:gx",lf[0]),o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd"),{node:o}),r={};return 1<t.length?r.Document=t:1==t.length&&(r.Placemark=t[0]),r=yl(r,t=fy[o.namespaceURI]),vl(i,yy,fl,r,[e],t,this),o},mp.Dd=function(){},ti=mp.Dd=mp.Dd||{},Uy=function(t,e,o,i,r){var n=8*r-i-1,s=(1<<n)-1,a=s>>1,p=-7,h=o?-1:1,l=t[e+(r=o?r-1:0)];for(r+=h,o=l&(1<<-p)-1,l>>=-p,p+=n;0<p;o=256*o+t[e+r],r+=h,p-=8);for(n=o&(1<<-p)-1,o>>=-p,p+=i;0<p;n=256*n+t[e+r],r+=h,p-=8);if(0===o)o=1-a;else{if(o===s)return n?NaN:1/0*(l?-1:1);n+=Math.pow(2,i),o-=a}return(l?-1:1)*n*Math.pow(2,o-i)},_y.c=0,_y.i=1,_y.b=2,_y.a=5,_y.prototype={Ag:function(t,e,o){for(o=o||this.length;this.ea<o;){var i=this.Ka(),r=i>>3,n=this.ea;this.type=7&i,t(r,e,this),this.ea===n&&this.mq(i)}return e},yp:function(){var t=Uy(this.lc,this.ea,!0,23,4);return this.ea+=4,t},up:function(){var t=Uy(this.lc,this.ea,!0,52,8);return this.ea+=8,t},Ka:function(t){var e=this.lc,o=e[this.ea++],i=127&o;if(o<128)return i;if(i|=(127&(o=e[this.ea++]))<<7,o<128)return i;if(i|=(127&(o=e[this.ea++]))<<14,o<128)return i;if(i|=(127&(o=e[this.ea++]))<<21,o<128)return i;var o=i|(15&e[this.ea])<<28,i=t,e=this,t=e.lc,r=t[e.ea++],n=(112&r)>>4;if(r<128)return $y(o,n,i);if(n|=(127&(r=t[e.ea++]))<<3,r<128)return $y(o,n,i);if(n|=(127&(r=t[e.ea++]))<<10,r<128)return $y(o,n,i);if(n|=(127&(r=t[e.ea++]))<<17,r<128)return $y(o,n,i);if(n|=(127&(r=t[e.ea++]))<<24,r<128)return $y(o,n,i);if((r=t[e.ea++])<128)return $y(o,n|(1&r)<<31,i);throw Error("Expected varint not more than 10 bytes")},Kp:function(){return this.Ka(!0)},ce:function(){var t=this.Ka();return 1==t%2?(t+1)/-2:t/2},sp:function(){return!!this.Ka()},Gg:function(){for(var t=this.Ka()+this.ea,e=this.lc,o="",i=this.ea;i<t;){var r,n,s,a=e[i],p=null,h=239<a?4:223<a?3:191<a?2:1;if(t<i+h)break;1===h?a<128&&(p=a):2===h?128==(192&(r=e[i+1]))&&(p=(31&a)<<6|63&r)<=127&&(p=null):3===h?(r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&((p=(15&a)<<12|(63&r)<<6|63&n)<=2047||55296<=p&&p<=57343)&&(p=null)):4===h&&(r=e[i+1],n=e[i+2],s=e[i+3],128==(192&r))&&128==(192&n)&&128==(192&s)&&((p=(15&a)<<18|(63&r)<<12|(63&n)<<6|63&s)<=65535||1114112<=p)&&(p=null),null===p?(p=65533,h=1):65535<p&&(p-=65536,o+=String.fromCharCode(p>>>10&1023|55296),p=56320|1023&p),o+=String.fromCharCode(p),i+=h}return this.ea=t,o},mq:function(t){if((t&=7)===_y.c)for(;127<this.lc[this.ea++];);else if(t===_y.b)this.ea=this.Ka()+this.ea;else if(t===_y.a)this.ea+=4;else{if(t!==_y.i)throw Error("Unimplemented type: "+t);this.ea+=8}}},ti.default=_y,mp.Dd=mp.Dd.default,mp.xf={},mp.xf.Bf=function(){},fi=mp.xf=mp.xf||{},tg.prototype={clone:function(){return new tg(this.x,this.y)},add:function(t){return this.clone().Yj(t)},rotate:function(t){return this.clone().hk(t)},round:function(){return this.clone().ik()},angle:function(){return Math.atan2(this.y,this.x)},Yj:function(t){return this.x+=t.x,this.y+=t.y,this},hk:function(t){var e=Math.cos(t),o=(t=Math.sin(t))*this.x+e*this.y;return this.x=e*this.x-t*this.y,this.y=o,this},ik:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},tg.Kq=function(t){return!(t instanceof tg)&&Array.isArray(t)?new tg(t[0],t[1]):t},eg.b=["Unknown","Point","LineString","Polygon"],eg.prototype.Oh=function(){var t=this.Cc;t.ea=this.Ef;for(var e,o=t.Ka()+t.ea,i=1,r=0,n=0,s=0,a=[];t.ea<o;)if(r||(i=7&(r=t.Ka()),r>>=3),r--,1===i||2===i)n+=t.ce(),s+=t.ce(),1===i&&(e&&a.push(e),e=[]),e.push(new tg(n,s));else{if(7!==i)throw Error("unknown command "+i);e&&e.push(e[0].clone())}return e&&a.push(e),a},eg.prototype.bbox=function(){var t=this.Cc;t.ea=this.Ef;for(var e=t.Ka()+t.ea,o=1,i=0,r=0,n=0,s=1/0,a=-1/0,p=1/0,h=-1/0;t.ea<e;)if(i||(o=7&(i=t.Ka()),i>>=3),i--,1===o||2===o)(r+=t.ce())<s&&(s=r),a<r&&(a=r),(n+=t.ce())<p&&(p=n),h<n&&(h=n);else if(7!==o)throw Error("unknown command "+o);return[s,p,a,h]},(Gy=ig).prototype.feature=function(t){if(t<0||t>=this.me.length)throw Error("feature index out of bounds");return this.Cc.ea=this.me[t],t=this.Cc.Ka()+this.Cc.ea,new eg(this.Cc,t,this.extent,this.ne,this.pe)},By=Gy,fi.default={Bf:Qy,Wj:eg,Xj:By},fi.Bf=Qy,fi.Wj=eg,fi.Xj=By,(r=sg.prototype).get=function(t){return this.c[t]},r.Bb=function(){return this.f},r.G=function(){return this.a||(this.a="Point"===this.i?wt(this.b):xt(this.b,0,this.b.length,2)),this.a},r.Wn=function(){return this.g},r.ec=function(){return this.b},r.ga=sg.prototype.ec,r.V=function(){return this},r.Xn=function(){return this.c},r.Vd=sg.prototype.V,r.qa=function(){return 2},r.Lc=Y,r.U=function(){return this.i},e(ag,wl),(r=ag.prototype).U=function(){return"arraybuffer"},r.Oa=function(t,e){var o,i=this.c,r=(t=new mp.Dd(t),t=new mp.xf.Bf(t),[]),n=this.b;for(o in t.layers)if(!i||-1!=i.indexOf(o))for(var s,a,p,h,l,u,c,f,y,g=t.layers[o],d=0,v=g.length;d<v;++d)n===sg?(s=void 0,p=o,pg(h=(a=g.feature(d)).Oh(),u=[],l=[]),1===(c=a.type)?s=1===h.length?"Point":"MultiPoint":2===c?s=1===h.length?"LineString":"MultiLineString":3===c&&(s="Polygon"),(h=a.properties)[this.i]=p,s=new this.b(s,u,l,h,a.id)):(c=g.feature(d),u=o,l=e,s=new this.b,a=c.id,(p=c.properties)[this.i]=u,this.a&&s.Tc(this.a),u=void 0,0===(h=c.type)?u=null:(f=[],y=[],pg(c=c.Oh(),y,f),1===h?u=new(1===c.length?m:P)(null):2===h?u=new(1===c.length?S:M)(null):3===h&&(u=new w(null)),u.ba("XY",y,f)),l=Ml(u,!1,Sl(this,l)),s.Ra(l),s.jc(a),s.H(p)),r.push(s);return r},r.kb=function(){return this.defaultDataProjection},r.mn=function(t){this.c=t},r.Tb=function(){},r.Sc=function(){},r.Bd=function(){},r.$c=function(){},r.Wb=function(){},e(hg,wu);var ti=[null],ug=l(ti,{nd:function(t,e){e[e.length-1].md.push(t.getAttribute("ref"))},tag:lg}),cg=l(ti,{node:function(t,e){var o=e[0],i=e[e.length-1],r=t.getAttribute("id"),n=[parseFloat(t.getAttribute("lon")),parseFloat(t.getAttribute("lat"))];i.Sh[r]=n,Zt((t=g({fe:{}},fg,t,e)).fe)||(Ml(n=new m(n),!1,o),(o=new x(n)).jc(r),o.H(t.fe),i.features.push(o))},way:function(t,e){var o=e[0],i=t.getAttribute("id");t=g({md:[],fe:{}},ug,t,e),e=e[e.length-1];for(var r=[],n=0,s=t.md.length;n<s;n++)X(r,e.Sh[t.md[n]]);t.md[0]==t.md[t.md.length-1]?(n=new w(null)).ba("XY",r,[r.length]):(n=new S(null)).ba("XY",r),Ml(n,!1,o),(o=new x(n)).jc(i),o.H(t.fe),e.features.push(o)}}),fg=l(ti,{tag:lg});function yg(t){return t.getAttributeNS("http://www.w3.org/1999/xlink","href")}function gg(){}function dg(){}hg.prototype.zc=function(t,e){return e=xl(this,t,e),"osm"==t.localName&&(t=g({Sh:{},features:[]},cg,t,[e])).features?t.features:[]},hg.prototype.Vg=function(){},hg.prototype.Xb=function(){},hg.prototype.ie=function(){},gg.prototype.read=function(t){return rl(t)?this.a(t):nl(t)?this.b(t):"string"==typeof t?(t=sl(t),this.a(t)):null},e(dg,gg),dg.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},dg.prototype.b=function(t){return(t=g({},vg,t,[]))||null};var fi=[null,"http://www.opengis.net/ows/1.1"],vg=l(fi,{ServiceIdentification:o(function(t,e){return g({},Cg,t,e)}),ServiceProvider:o(function(t,e){return g({},Lg,t,e)}),OperationsMetadata:o(function(t,e){return g({},Ag,t,e)})}),bg=l(fi,{DeliveryPoint:o(i),City:o(i),AdministrativeArea:o(i),PostalCode:o(i),Country:o(i),ElectronicMailAddress:o(i)}),mg=l(fi,{Value:ll(i)}),wg=l(fi,{AllowedValues:o(function(t,e){return g({},mg,t,e)})}),xg=l(fi,{Phone:o(function(t,e){return g({},Eg,t,e)}),Address:o(function(t,e){return g({},bg,t,e)})}),Sg=l(fi,{HTTP:o(function(t,e){return g({},Mg,t,e)})}),Mg=l(fi,{Get:ll(function(t,e){var o=yg(t);if(o)return g({href:o},Tg,t,e)}),Post:void 0}),Pg=l(fi,{DCP:o(function(t,e){return g({},Sg,t,e)})}),Ag=l(fi,{Operation:function(t,e){var o=t.getAttribute("name");(t=g({},Pg,t,e))&&(e[e.length-1][o]=t)}}),Eg=l(fi,{Voice:o(i),Facsimile:o(i)}),Tg=l(fi,{Constraint:ll(function(t,e){var o=t.getAttribute("name");if(o)return g({name:o},wg,t,e)})}),jg=l(fi,{IndividualName:o(i),PositionName:o(i),ContactInfo:o(function(t,e){return g({},xg,t,e)})}),Cg=l(fi,{Title:o(i),ServiceTypeVersion:o(i),ServiceType:o(i)}),Lg=l(fi,{ProviderName:o(i),ProviderSite:o(yg),ServiceContact:o(function(t,e){return g({},jg,t,e)})});function Rg(t,e,o,i){for(var r=void 0!==i?i:[],n=i=0;n<e;){var s=t[n++];for(r[i++]=t[n++],r[i++]=s,s=2;s<o;++s)r[i++]=t[n++]}r.length=i}function Ig(t){t=t||{},wl.call(this),this.defaultDataProjection=v("EPSG:4326"),this.b=t.factor||1e5,this.a=t.geometryLayout||"XY"}function Ng(t,e,o){for(var i=Array(e),r=0;r<e;++r)i[r]=0;for(var n=0,s=t.length;n<s;)for(r=0;r<e;++r,++n){var a=t[n],p=a-i[r];i[r]=a,t[n]=p}return kg(t,o||1e5)}function Fg(t,e,o){for(var i,r=Array(e),n=0;n<e;++n)r[n]=0;for(t=Dg(t,o||1e5),o=0,i=t.length;o<i;)for(n=0;n<e;++n,++o)r[n]+=t[o],t[o]=r[n];return t}function kg(t,e){e=e||1e5;for(var o=0,i=t.length;o<i;++o)t[o]=Math.round(t[o]*e);for(e=0,o=t.length;e<o;++e)i=t[e],t[e]=i<0?~(i<<1):i<<1;for(e="",o=0,i=t.length;o<i;++o){for(var r=t[o],n="";32<=r;)n+=String.fromCharCode(63+(32|31&r)),r>>=5;e+=n+=String.fromCharCode(r+63)}return e}function Dg(t,e){e=e||1e5;for(var o=[],i=0,r=0,n=0,s=t.length;n<s;++n){var a=t.charCodeAt(n)-63,i=i|(31&a)<<r;a<32?(o.push(i),r=i=0):r+=5}for(t=0,i=o.length;t<i;++t)o[t]=1&(r=o[t])?~(r>>1):r>>1;for(t=0,i=o.length;t<i;++t)o[t]/=e;return o}function Og(t){t=t||{},wl.call(this),this.a=t.layerName,this.b=t.layers||null,this.defaultDataProjection=v(t.defaultDataProjection||"EPSG:4326")}function Ug(t,e){for(var o=[],i=0,r=t.length;i<r;++i){var n=t[i];0<i&&o.pop(),n=0<=n?e[n]:e[~n].slice().reverse(),o.push.apply(o,n)}for(t=0,e=o.length;t<e;++t)o[t]=o[t].slice();return o}function Gg(t,e,o,i,r,n,s){var a=t.type,p=Xg[a];return o="Point"===a||"MultiPoint"===a?p(t,o,i):p(t,e),(e=new x).Ra(Ml(o,!1,s)),void 0!==t.id&&e.jc(t.id),t=t.properties,r&&((t=t||{})[r]=n),t&&e.H(t),e}function Bg(t,e,o){t[0]=t[0]*e[0]+o[0],t[1]=t[1]*e[1]+o[1]}e(Ig,Dc),(r=Ig.prototype).ae=function(t,e){return new x(t=this.wd(t,e))},r.zg=function(t,e){return[this.ae(t,e)]},r.wd=function(t,e){var o=vr(this.a);return Rg(t=Fg(t,o,this.b),t.length,o,t),Ml(new S(Lr(t,0,t.length,o),this.a),!1,Sl(this,e))},r.ge=function(t,e){return(t=t.V())?this.Cd(t,e):(O(!1,40),"")},r.Wg=function(t,e){return this.ge(t[0],e)},r.Cd=function(t,e){return e=(t=Ml(t,!0,Sl(this,e))).ga(),t=t.qa(),Rg(e,e.length,t,e),Ng(e,t,this.b)},e(Og,Pl),Og.prototype.yg=function(t,e){if("Topology"!=t.type)return[];var o=null,i=null,r=(t.transform&&(o=(n=t.transform).scale,i=n.translate),t.arcs);if(n)for(var n=o,s=i,a=0,p=r.length;a<p;++a)for(var h=r[a],l=n,u=s,c=0,f=0,y=0,g=h.length;y<g;++y){var d=h[y];c+=d[0],f+=d[1],d[0]=c,d[1]=f,Bg(d,l,u)}n=[],t=t.objects;var v,s=this.a;for(v in t)this.b&&-1==this.b.indexOf(v)||("GeometryCollection"===t[v].type?(a=t[v],n.push.apply(n,function(t,e,o,i,r,n,s){for(var a=[],p=0,h=(t=t.geometries).length;p<h;++p)a[p]=Gg(t[p],e,o,i,r,n,s);return a}(a,r,o,i,s,v,e))):(a=t[v],n.push(Gg(a,r,o,i,s,v,e))));return n},Og.prototype.Fg=function(){return this.defaultDataProjection};var Xg={Point:function(t,e,o){return t=t.coordinates,e&&o&&Bg(t,e,o),new m(t)},LineString:function(t,e){return new S(t=Ug(t.arcs,e))},Polygon:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i)o[i]=Ug(t.arcs[i],e);return new w(o)},MultiPoint:function(t,e,o){if(t=t.coordinates,e&&o)for(var i=0,r=t.length;i<r;++i)Bg(t[i],e,o);return new P(t)},MultiLineString:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i)o[i]=Ug(t.arcs[i],e);return new M(o)},MultiPolygon:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i){for(var n=t.arcs[i],s=[],a=0,p=n.length;a<p;++a)s[a]=Ug(n[a],e);o[i]=s}return new f(o)}};function Vg(t){this.c=(t=t||{}).featureType,this.a=t.featureNS,this.b=t.gmlFormat||new y,this.o=t.schemaLocation||Wg["1.1.0"],wu.call(this)}(r=Og.prototype).Zc=function(){},r.he=function(){},r.je=function(){},r.Cg=function(){},r.Rc=function(){},e(Vg,wu);var Wg={"1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"};function Zg(t,e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return zg(t,e)}Vg.prototype.zc=function(t,e){var o={featureType:this.c,featureNS:this.a};return Xt(o,xl(this,t,e||{})),e=[o],this.b.b["http://www.opengis.net/gml"].featureMember=pl(Mu.prototype.be),t=(t=g([],this.b.b,t,e,this.b))||[]},Vg.prototype.j=function(t){return rl(t)?_g(t):nl(t)?g({},Jg,t,[]):"string"==typeof t?_g(t=sl(t)):void 0},Vg.prototype.g=function(t){return rl(t)?Zg(this,t):nl(t)?zg(this,t):"string"==typeof t?Zg(this,t=sl(t)):void 0};var Kg={"http://www.opengis.net/gml":{boundedBy:o(Mu.prototype.gf,"bounds")}};function zg(t,e){var o={},i=Ru(e.getAttribute("numberOfFeatures"));return o.numberOfFeatures=i,g(o,Kg,e,[],t.b)}var Yg={"http://www.opengis.net/wfs":{totalInserted:o(Lu),totalUpdated:o(Lu),totalDeleted:o(Lu)}},Hg={"http://www.opengis.net/ogc":{FeatureId:pl(function(t){return t.getAttribute("fid")})}},qg={"http://www.opengis.net/wfs":{Feature:function(t,e){gl(Hg,t,e)}}},Jg={"http://www.opengis.net/wfs":{TransactionSummary:o(function(t,e){return g({},Yg,t,e)},"transactionSummary"),InsertResults:o(function(t,e){return g([],qg,t,e)},"insertIds")}};function _g(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return g({},Jg,t,[])}var $g={"http://www.opengis.net/wfs":{PropertyName:c(ku)}};function Qg(t,e){var o=ol("http://www.opengis.net/ogc","Filter"),i=ol("http://www.opengis.net/ogc","FeatureId");o.appendChild(i),i.setAttribute("fid",e),t.appendChild(o)}function td(t,e){return e.indexOf(t=(t||"feature")+":")?t+e:e}var ed={"http://www.opengis.net/wfs":{Insert:c(function(t,e,o){var i=(r=o[o.length-1]).gmlVersion,r=ol(r.featureNS,r.featureType);if(t.appendChild(r),2===i){t=Zu.prototype,(i=e.a)&&r.setAttribute("fid",i);var n=(i=o[o.length-1]).featureNS,s=e.c,a=(i.lb||(i.lb={},i.lb[n]={}),e.N()),p=(e=[],[]);for(l in a){var h=a[l];null!==h&&(e.push(l),p.push(h),l==s||h instanceof yr?l in i.lb[n]||(i.lb[n][l]=c(t.ai,t)):l in i.lb[n]||(i.lb[n][l]=c(ku)))}var l=Xt({},i);l.node=r,vl(l,i.lb,cl(void 0,n),p,o,e)}else y.prototype.ii(r,e,o)}),Update:c(function(t,e,o){var i=o[o.length-1],r=(O(void 0!==e.a,27),i.featurePrefix),n=i.featureNS;if(t.setAttribute("typeName",td(r,i.featureType)),t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+r,n),void 0!==(r=e.a)){for(var s=[],a=0,p=(n=e.O()).length;a<p;a++){var h=e.get(n[a]);void 0!==h&&s.push({name:n[a],value:h})}vl({gmlVersion:i.gmlVersion,node:t,hasZ:i.hasZ,srsName:i.srsName},ed,cl("Property"),s,o),Qg(t,r)}}),Delete:c(function(t,e,o){o=o[o.length-1],O(void 0!==e.a,26);var i=o.featurePrefix,r=o.featureNS;t.setAttribute("typeName",td(i,o.featureType)),t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+i,r),void 0!==(e=e.a)&&Qg(t,e)}),Property:c(function(t,e,o){var i=ol("http://www.opengis.net/wfs","Name"),r=o[o.length-1].gmlVersion;t.appendChild(i),ku(i,e.name),void 0!==e.value&&null!==e.value&&(i=ol("http://www.opengis.net/wfs","Value"),t.appendChild(i),e.value instanceof yr?2===r?Zu.prototype.ai(i,e.value,o):y.prototype.od(i,e.value,o):ku(i,e.value))}),Native:c(function(t,e){e.vq&&t.setAttribute("vendorId",e.vq),void 0!==e.Vp&&t.setAttribute("safeToIgnore",e.Vp),void 0!==e.value&&ku(t,e.value)})}};function od(t,e,o){var i={node:t};e.b.forEach(function(t){vl(i,pd,cl(t.kc),[t],o)})}function id(t,e){void 0!==e.a&&t.setAttribute("matchCase",e.a.toString()),nd(t,e.b),sd(t,""+e.i)}function rd(t,e,o){ku(t=ol("http://www.opengis.net/ogc",t),o),e.appendChild(t)}function nd(t,e){rd("PropertyName",t,e)}function sd(t,e){rd("Literal",t,e)}function ad(t,e){var o=ol("http://www.opengis.net/gml","TimeInstant");t.appendChild(o),t=ol("http://www.opengis.net/gml","timePosition"),o.appendChild(t),ku(t,e)}var pd={"http://www.opengis.net/wfs":{Query:c(function(t,e,o){var i=o[o.length-1],r=i.featurePrefix,n=i.featureNS,s=i.propertyNames,a=i.srsName;t.setAttribute("typeName",r?td(r,e):e),a&&t.setAttribute("srsName",a),n&&t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+r,n),(e=Xt({},i)).node=t,vl(e,$g,cl("PropertyName"),s,o),(i=i.filter)&&(s=ol("http://www.opengis.net/ogc","Filter"),t.appendChild(s),vl({node:s},pd,cl(i.kc),[i],o))})},"http://www.opengis.net/ogc":{During:c(function(t,e){var o=ol("http://www.opengis.net/fes","ValueReference");ku(o,e.b),t.appendChild(o),o=ol("http://www.opengis.net/gml","TimePeriod"),t.appendChild(o),t=ol("http://www.opengis.net/gml","begin"),o.appendChild(t),ad(t,e.a),t=ol("http://www.opengis.net/gml","end"),o.appendChild(t),ad(t,e.i)}),And:c(od),Or:c(od),Not:c(function(t,e,o){e=e.condition,vl({node:t},pd,cl(e.kc),[e],o)}),BBOX:c(function(t,e,o){o[o.length-1].srsName=e.srsName,nd(t,e.geometryName),y.prototype.od(t,e.extent,o)}),Intersects:c(function(t,e,o){o[o.length-1].srsName=e.srsName,nd(t,e.geometryName),y.prototype.od(t,e.geometry,o)}),Within:c(function(t,e,o){o[o.length-1].srsName=e.srsName,nd(t,e.geometryName),y.prototype.od(t,e.geometry,o)}),PropertyIsEqualTo:c(id),PropertyIsNotEqualTo:c(id),PropertyIsLessThan:c(id),PropertyIsLessThanOrEqualTo:c(id),PropertyIsGreaterThan:c(id),PropertyIsGreaterThanOrEqualTo:c(id),PropertyIsNull:c(function(t,e){nd(t,e.b)}),PropertyIsBetween:c(function(t,e){nd(t,e.b);var o=ol("http://www.opengis.net/ogc","LowerBoundary");t.appendChild(o),sd(o,""+e.a),o=ol("http://www.opengis.net/ogc","UpperBoundary"),t.appendChild(o),sd(o,""+e.i)}),PropertyIsLike:c(function(t,e){t.setAttribute("wildCard",e.g),t.setAttribute("singleChar",e.f),t.setAttribute("escapeChar",e.i),void 0!==e.a&&t.setAttribute("matchCase",e.a.toString()),nd(t,e.b),sd(t,""+e.c)})}};function hd(t){t=t||{},wl.call(this),this.b=void 0!==t.splitCollection&&t.splitCollection}function ld(t){return(t=t.X()).length?t.join(" "):""}function ud(t){for(var e=[],o=0,i=(t=t.X()).length;o<i;++o)e.push(t[o].join(" "));return e.join(",")}function cd(t){for(var e=[],o=0,i=(t=t.Sd()).length;o<i;++o)e.push("("+ud(t[o])+")");return e.join(",")}function fd(t){var e,o=t.U(),i=(0,yd[o])(t),o=o.toUpperCase();return t instanceof b&&(e="","XYZ"!==(t=t.ja)&&"XYZM"!==t||(e+="Z"),"XYM"!==t&&"XYZM"!==t||(e+="M"),0<(t=e).length)&&(o+=" "+t),i.length?o+"("+i+")":o+" EMPTY"}Vg.prototype.l=function(t){var e,o,i=ol("http://www.opengis.net/wfs","GetFeature");return i.setAttribute("service","WFS"),i.setAttribute("version","1.1.0"),t&&(t.handle&&i.setAttribute("handle",t.handle),t.outputFormat&&i.setAttribute("outputFormat",t.outputFormat),void 0!==t.maxFeatures&&i.setAttribute("maxFeatures",t.maxFeatures),t.resultType&&i.setAttribute("resultType",t.resultType),void 0!==t.startIndex&&i.setAttribute("startIndex",t.startIndex),void 0!==t.count&&i.setAttribute("count",t.count),o=t.filter,t.bbox)&&(O(t.geometryName,12),e=lu(t.geometryName,t.bbox,t.srsName),o=o?hu(o,e):e),i.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.o),o={node:i,srsName:t.srsName,featureNS:t.featureNS||this.a,featurePrefix:t.featurePrefix,geometryName:t.geometryName,filter:o,propertyNames:t.propertyNames||[]},O(Array.isArray(t.featureTypes),11),t=t.featureTypes,(e=Xt({},(o=[o])[o.length-1])).node=i,vl(e,pd,cl("Query"),t,o),i},Vg.prototype.v=function(t,e,o,i){var r,n=[],s=ol("http://www.opengis.net/wfs","Transaction"),a=i.version||"1.1.0",p="1.0.0"===a?2:3;return s.setAttribute("service","WFS"),s.setAttribute("version",a),i&&(r=i.gmlOptions||{},i.handle)&&s.setAttribute("handle",i.handle),s.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",Wg[a]),t&&(a={node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,hasZ:i.hasZ,srsName:i.srsName},Xt(a,r),vl(a,ed,cl("Insert"),t,n)),e&&(a={node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,hasZ:i.hasZ,srsName:i.srsName},Xt(a,r),vl(a,ed,cl("Update"),e,n)),o&&vl({node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,srsName:i.srsName},ed,cl("Delete"),o,n),i.nativeElements&&vl({node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,srsName:i.srsName},ed,cl("Native"),i.nativeElements,n),s},Vg.prototype.Eg=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.kf(t);return null},Vg.prototype.kf=function(t){if(t.firstElementChild&&t.firstElementChild.firstElementChild)for(t=(t=t.firstElementChild.firstElementChild).firstElementChild;t;t=t.nextElementSibling){var e;if(0!==t.childNodes.length&&(1!==t.childNodes.length||3!==t.firstChild.nodeType))return this.b.gf(t,e=[{}]),v(e.pop().srsName)}return null},e(hd,Dc);var yd={Point:ld,LineString:ud,Polygon:cd,MultiPoint:function(t){for(var e=[],o=0,i=(t=t.Zd()).length;o<i;++o)e.push("("+ld(t[o])+")");return e.join(",")},MultiLineString:function(t){for(var e=[],o=0,i=(t=t.gd()).length;o<i;++o)e.push("("+ud(t[o])+")");return e.join(",")},MultiPolygon:function(t){for(var e=[],o=0,i=(t=t.Td()).length;o<i;++o)e.push("("+cd(t[o])+")");return e.join(",")},GeometryCollection:function(t){for(var e=[],o=0,i=(t=t.Vf()).length;o<i;++o)e.push(fd(t[o]));return e.join(",")}};function gd(t){this.a=t,this.b=-1}function dd(t){this.i=t,this.a="XY"}function vd(t){t.b=function t(e){var o=e.a.charAt(++e.b),i={position:e.b,value:o};if("("==o)i.type=2;else if(","==o)i.type=5;else if(")"==o)i.type=3;else if("0"<=o&&o<="9"||"."==o||"-"==o){var o=e.b,r=!(i.type=4),n=!1;do{"."==s?r=!0:"e"!=s&&"E"!=s||(n=!0);var s=e.a.charAt(++e.b)}while("0"<=s&&s<="9"||"."==s&&(void 0===r||!r)||!n&&("e"==s||"E"==s)||n&&("-"==s||"+"==s));e=parseFloat(e.a.substring(o,e.b--)),i.value=e}else if("a"<=o&&o<="z"||"A"<=o&&o<="Z"){for(i.type=1,o=e.b;"a"<=(s=e.a.charAt(++e.b))&&s<="z"||"A"<=s&&s<="Z";);e=e.a.substring(o,e.b--).toUpperCase(),i.value=e}else{if(" "==o||"\t"==o||"\r"==o||"\n"==o)return t(e);if(""!==o)throw Error("Unexpected character: "+o);i.type=6}return i}(t.i)}function bd(t,e){return(e=t.b.type==e)&&vd(t),e}function md(t){for(var e=[],o=t.a.length,i=0;i<o;++i){var r=t.b;if(!bd(t,4))break;e.push(r.value)}if(e.length==o)return e;throw Error(Md(t))}function wd(t){for(var e=[md(t)];bd(t,5);)e.push(md(t));return e}function xd(t){for(var e=[t.sg()];bd(t,5);)e.push(t.sg());return e}function Sd(t){var e=1==t.b.type&&"EMPTY"==t.b.value;return e&&vd(t),e}function Md(t){return"Unexpected `"+t.b.value+"` at position "+t.b.position+" in `"+t.i.a+"`"}(r=hd.prototype).ae=function(t,e){return(t=this.wd(t,e))?((e=new x).Ra(t),e):null},r.zg=function(t,e){var o=[];t=this.wd(t,e),e=[];for(var i=0,r=(o=this.b&&"GeometryCollection"==t.U()?t.a:[t]).length;i<r;++i)(t=new x).Ra(o[i]),e.push(t);return e},r.wd=function(t,e){return vd(t=new dd(new gd(t))),(t=function t(e){var o=e.b;if(bd(e,1)){var o=o.value,i="XY",r=e.b;if(1==e.b.type&&("Z"===(r=r.value)?i="XYZ":"M"===r?i="XYM":"ZM"===r&&(i="XYZM"),"XY"!==i)&&vd(e),e.a=i,"GEOMETRYCOLLECTION"==o){t:{if(bd(e,2)){for(o=[];o.push(t(e)),bd(e,5););if(bd(e,3)){e=o;break t}}else if(Sd(e)){e=[];break t}throw Error(Md(e))}return new uu(e)}if(r=Ad[o],i=Pd[o],r&&i)return o=r.call(e),new i(o,e.a);throw Error("Invalid geometry type: "+o)}throw Error(Md(e))}(t))?Ml(t,!1,e):null},r.ge=function(t,e){return(t=t.V())?this.Cd(t,e):""},r.Wg=function(t,e){if(1==t.length)return this.ge(t[0],e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(t[i].V());return t=new uu(o),this.Cd(t,e)},r.Cd=function(t,e){return fd(Ml(t,!0,e))},(r=dd.prototype).tg=function(){if(bd(this,2)){var t=md(this);if(bd(this,3))return t}else if(Sd(this))return null;throw Error(Md(this))},r.sg=function(){if(bd(this,2)){var t=wd(this);if(bd(this,3))return t}else if(Sd(this))return[];throw Error(Md(this))},r.ug=function(){if(bd(this,2)){var t=xd(this);if(bd(this,3))return t}else if(Sd(this))return[];throw Error(Md(this))},r.fp=function(){if(bd(this,2)){var t;if(2==this.b.type)for(t=[this.tg()];bd(this,5);)t.push(this.tg());else t=wd(this);if(bd(this,3))return t}else if(Sd(this))return[];throw Error(Md(this))},r.ep=function(){if(bd(this,2)){var t=xd(this);if(bd(this,3))return t}else if(Sd(this))return[];throw Error(Md(this))},r.gp=function(){if(bd(this,2)){for(var t=[this.ug()];bd(this,5);)t.push(this.ug());if(bd(this,3))return t}else if(Sd(this))return[];throw Error(Md(this))};var Pd={POINT:m,LINESTRING:S,POLYGON:w,MULTIPOINT:P,MULTILINESTRING:M,MULTIPOLYGON:f},Ad={POINT:dd.prototype.tg,LINESTRING:dd.prototype.sg,POLYGON:dd.prototype.ug,MULTIPOINT:dd.prototype.fp,MULTILINESTRING:dd.prototype.ep,MULTIPOLYGON:dd.prototype.gp};function Ed(){this.version=void 0}function Td(t,e){return g({},zd,t,e)}function jd(t,e){return g({},Vd,t,e)}function Cd(t,e){if(e=Td(t,e))return t=[Ru(t.getAttribute("width")),Ru(t.getAttribute("height"))],e.size=t,e}function Ld(t,e){return g([],Yd,t,e)}e(Ed,gg),Ed.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},Ed.prototype.b=function(t){return this.version=t.getAttribute("version").trim(),(t=g({version:this.version},Rd,t,[]))||null};var ti=[null,"http://www.opengis.net/wms"],Rd=l(ti,{Service:o(function(t,e){return g({},Nd,t,e)}),Capability:o(function(t,e){return g({},Id,t,e)})}),Id=l(ti,{Request:o(function(t,e){return g({},Xd,t,e)}),Exception:o(function(t,e){return g([],Od,t,e)}),Layer:o(function(t,e){return g({},Ud,t,e)})}),Nd=l(ti,{Name:o(i),Title:o(i),Abstract:o(i),KeywordList:o(Ld),OnlineResource:o(yg),ContactInformation:o(function(t,e){return g({},Fd,t,e)}),Fees:o(i),AccessConstraints:o(i),LayerLimit:o(Lu),MaxWidth:o(Lu),MaxHeight:o(Lu)}),Fd=l(ti,{ContactPersonPrimary:o(function(t,e){return g({},kd,t,e)}),ContactPosition:o(i),ContactAddress:o(function(t,e){return g({},Dd,t,e)}),ContactVoiceTelephone:o(i),ContactFacsimileTelephone:o(i),ContactElectronicMailAddress:o(i)}),kd=l(ti,{ContactPerson:o(i),ContactOrganization:o(i)}),Dd=l(ti,{AddressType:o(i),Address:o(i),City:o(i),StateOrProvince:o(i),PostCode:o(i),Country:o(i)}),Od=l(ti,{Format:pl(i)}),Ud=l(ti,{Name:o(i),Title:o(i),Abstract:o(i),KeywordList:o(Ld),CRS:ll(i),EX_GeographicBoundingBox:o(function(t,e){if(i=g({},Bd,t,e)){t=i.westBoundLongitude,e=i.southBoundLatitude;var o=i.eastBoundLongitude,i=i.northBoundLatitude;if(void 0!==t&&void 0!==e&&void 0!==o&&void 0!==i)return[t,e,o,i]}}),BoundingBox:ll(function(t){var e=[Cu(t.getAttribute("minx")),Cu(t.getAttribute("miny")),Cu(t.getAttribute("maxx")),Cu(t.getAttribute("maxy"))],o=[Cu(t.getAttribute("resx")),Cu(t.getAttribute("resy"))];return{crs:t.getAttribute("CRS"),extent:e,res:o}}),Dimension:ll(function(t){return{name:t.getAttribute("name"),units:t.getAttribute("units"),unitSymbol:t.getAttribute("unitSymbol"),default:t.getAttribute("default"),multipleValues:Eu(t.getAttribute("multipleValues")),nearestValue:Eu(t.getAttribute("nearestValue")),current:Eu(t.getAttribute("current")),values:i(t)}}),Attribution:o(function(t,e){return g({},Gd,t,e)}),AuthorityURL:ll(function(t,e){if(e=Td(t,e))return e.name=t.getAttribute("name"),e}),Identifier:ll(i),MetadataURL:ll(function(t,e){if(e=Td(t,e))return e.type=t.getAttribute("type"),e}),DataURL:ll(Td),FeatureListURL:ll(Td),Style:ll(function(t,e){return g({},Kd,t,e)}),MinScaleDenominator:o(ju),MaxScaleDenominator:o(ju),Layer:ll(function(t,e){var o=e[e.length-1],i=g({},Ud,t,e);if(i)return void 0===(e=Eu(t.getAttribute("queryable")))&&(e=o.queryable),i.queryable=void 0!==e&&e,void 0===(e=Ru(t.getAttribute("cascaded")))&&(e=o.cascaded),i.cascaded=e,void 0===(e=Eu(t.getAttribute("opaque")))&&(e=o.opaque),i.opaque=void 0!==e&&e,void 0===(e=Eu(t.getAttribute("noSubsets")))&&(e=o.noSubsets),i.noSubsets=void 0!==e&&e,e=(e=Cu(t.getAttribute("fixedWidth")))||o.fixedWidth,i.fixedWidth=e,t=(t=Cu(t.getAttribute("fixedHeight")))||o.fixedHeight,i.fixedHeight=t,["Style","CRS","AuthorityURL"].forEach(function(t){t in o&&(i[t]=(i[t]||[]).concat(o[t]))}),"EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" ").forEach(function(t){t in i||(i[t]=o[t])}),i})}),Gd=l(ti,{Title:o(i),OnlineResource:o(yg),LogoURL:o(Cd)}),Bd=l(ti,{westBoundLongitude:o(ju),eastBoundLongitude:o(ju),southBoundLatitude:o(ju),northBoundLatitude:o(ju)}),Xd=l(ti,{GetCapabilities:o(jd),GetMap:o(jd),GetFeatureInfo:o(jd)}),Vd=l(ti,{Format:ll(i),DCPType:ll(function(t,e){return g({},Wd,t,e)})}),Wd=l(ti,{HTTP:o(function(t,e){return g({},Zd,t,e)})}),Zd=l(ti,{Get:o(Td),Post:o(Td)}),Kd=l(ti,{Name:o(i),Title:o(i),Abstract:o(i),LegendURL:ll(Cd),StyleSheetURL:o(Td),StyleURL:o(Td)}),zd=l(ti,{Format:o(i),OnlineResource:o(yg)}),Yd=l(ti,{Keyword:pl(i)});function Hd(t){t=t||{},this.a="http://mapserver.gis.umn.edu/mapserver",this.b=new Zu,this.c=t.layers||null,wu.call(this)}function qd(){this.i=new dg}function Jd(t){var e=i(t).split(" ");if(e&&2==e.length&&(t=+e[0],e=+e[1],!isNaN(t))&&!isNaN(e))return[t,e]}e(Hd,wu),Hd.prototype.zc=function(t,e){var o={},i=(e&&Xt(o,xl(this,t,e)),o=[o],t.setAttribute("namespaceURI",this.a),t.localName);if(e=[],t.childNodes.length){if("msGMLOutput"==i)for(var r=0,n=t.childNodes.length;r<n;r++){var s,a,p,h=t.childNodes[r];h.nodeType===Node.ELEMENT_NODE&&(s=o[0],a=h.localName.replace("_layer",""),!this.c||D(this.c,a))&&(a+="_feature",s.featureType=a,s.featureNS=this.a,(p={})[a]=pl(this.b.wg,this.b),s=l([s.featureNS,null],p),h.setAttribute("namespaceURI",this.a),h=g([],s,h,o,this.b))&&X(e,h)}"FeatureCollection"==i&&(t=g([],this.b.b,t,[{}],this.b))&&(e=t)}return e},Hd.prototype.Vg=function(){},Hd.prototype.Xb=function(){},Hd.prototype.ie=function(){},e(qd,gg),qd.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},qd.prototype.b=function(t){var e=t.getAttribute("version").trim(),o=this.i.b(t);return o&&(o.version=e,o=g(o,_d,t,[]))||null};var fi=[null,"http://www.opengis.net/wmts/1.0"],ti=[null,"http://www.opengis.net/ows/1.1"],_d=l(fi,{Contents:o(function(t,e){return g({},$d,t,e)})}),$d=l(fi,{Layer:ll(function(t,e){return g({},Qd,t,e)}),TileMatrixSet:ll(function(t,e){return g({},s0,t,e)})}),Qd=l(fi,{Style:ll(function(t,e){if(e=g({},t0,t,e))return t="true"===t.getAttribute("isDefault"),e.isDefault=t,e}),Format:ll(i),TileMatrixSetLink:ll(function(t,e){return g({},e0,t,e)}),Dimension:ll(function(t,e){return g({},r0,t,e)}),ResourceURL:ll(function(t){var e=t.getAttribute("format"),o=t.getAttribute("template"),i=(t=t.getAttribute("resourceType"),{});return e&&(i.format=e),o&&(i.template=o),t&&(i.resourceType=t),i})},l(ti,{Title:o(i),Abstract:o(i),WGS84BoundingBox:o(function(t,e){if(2==(t=g([],n0,t,e)).length)return ht(t)}),Identifier:o(i)})),t0=l(fi,{LegendURL:ll(function(t){var e={};return e.format=t.getAttribute("format"),e.href=yg(t),e})},l(ti,{Title:o(i),Identifier:o(i)})),e0=l(fi,{TileMatrixSet:o(i),TileMatrixSetLimits:o(function(t,e){return g([],o0,t,e)})}),o0=l(fi,{TileMatrixLimits:pl(function(t,e){return g({},i0,t,e)})}),i0=l(fi,{TileMatrix:o(i),MinTileRow:o(Lu),MaxTileRow:o(Lu),MinTileCol:o(Lu),MaxTileCol:o(Lu)}),r0=l(fi,{Default:o(i),Value:ll(i)},l(ti,{Identifier:o(i)})),n0=l(ti,{LowerCorner:pl(Jd),UpperCorner:pl(Jd)}),s0=l(fi,{WellKnownScaleSet:o(i),TileMatrix:ll(function(t,e){return g({},a0,t,e)})},l(ti,{SupportedCRS:o(i),Identifier:o(i)})),a0=l(fi,{TopLeftCorner:o(Jd),ScaleDenominator:o(ju),TileWidth:o(Lu),TileHeight:o(Lu),MatrixWidth:o(Lu),MatrixHeight:o(Lu)},l(ti,{Identifier:o(i)}));function p0(t){ro.call(this),t=t||{},this.a=null,this.f=xe,this.c=void 0,d(this,so("projection"),this.Am,this),d(this,so("tracking"),this.Bm,this),void 0!==t.projection&&this.Wh(t.projection),void 0!==t.trackingOptions&&this.wj(t.trackingOptions),this.Ke(void 0!==t.tracking&&t.tracking)}function h0(t,e,o){b.call(this),this.Ng(t,e||0,o)}function l0(t){var e=t.A[t.a]-t.A[0];return e*e+(t=t.A[t.a+1]-t.A[1])*t}function u0(t,e,o){for(var i,r,n,s,a,p,h=[],l=t(0),u=t(1),c=e(l),f=[u,l],y=[e(u),c],g=[1,0],d={},v=1e5;0<--v&&0<g.length;)s=g.pop(),l=f.pop(),c=y.pop(),(u=s.toString())in d||(h.push(c[0],c[1]),d[u]=!0),a=g.pop(),u=f.pop(),i=y.pop(),et((n=e(r=t(p=(s+a)/2)))[0],n[1],c[0],c[1],i[0],i[1])<o?(h.push(i[0],i[1]),d[u=a.toString()]=!0):(g.push(a,p,p,s),y.push(i,n,n,c),f.push(u,r,r,l));return h}function c0(t){t=t||{},this.j=this.v=null,this.f=this.o=1/0,this.g=this.l=-1/0,this.ra=this.oa=1/0,this.R=this.I=-1/0,this.Jb=void 0!==t.targetSize?t.targetSize:100,this.fb=void 0!==t.maxLines?t.maxLines:100,this.i=[],this.c=[],this.pa=void 0!==t.strokeStyle?t.strokeStyle:f0,this.D=this.u=void 0,this.a=this.b=this.S=null,1==t.showLabels&&(this.na=t.lonLabelFormatter||ir.bind(this,"EW"),this.Ua=t.latLabelFormatter||ir.bind(this,"NS"),this.fa=null==t.lonLabelPosition?0:t.lonLabelPosition,this.T=null==t.latLabelPosition?1:t.latLabelPosition,this.B=void 0!==t.lonLabelStyle?t.lonLabelStyle:new pf({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new Hh({color:"rgba(0,0,0,1)"}),stroke:new hp({color:"rgba(255,255,255,1)",width:3})}),this.C=void 0!==t.latLabelStyle?t.latLabelStyle:new pf({font:"12px Calibri,sans-serif",textAlign:"end",fill:new Hh({color:"rgba(0,0,0,1)"}),stroke:new hp({color:"rgba(255,255,255,1)",width:3})}),this.b=[],this.a=[]),this.setMap(void 0!==t.map?t.map:null)}e(p0,ro),(r=p0.prototype).ka=function(){this.Ke(!1),ro.prototype.ka.call(this)},r.Am=function(){var t=this.Uh();t&&(this.f=we(v("EPSG:4326"),t),this.a)&&this.set("position",this.f(this.a))},r.Bm=function(){var t;hi&&((t=this.Vh())&&void 0===this.c?this.c=navigator.geolocation.watchPosition(this.np.bind(this),this.op.bind(this),this.Gh()):t||void 0===this.c||(navigator.geolocation.clearWatch(this.c),this.c=void 0))},r.np=function(t){t=t.coords,this.set("accuracy",t.accuracy),this.set("altitude",null===t.altitude?void 0:t.altitude),this.set("altitudeAccuracy",null===t.altitudeAccuracy?void 0:t.altitudeAccuracy),this.set("heading",null===t.heading?void 0:it(t.heading)),this.a?(this.a[0]=t.longitude,this.a[1]=t.latitude):this.a=[t.longitude,t.latitude];var e=this.f(this.a);this.set("position",e),this.set("speed",null===t.speed?void 0:t.speed),(t=Yr(ie,this.a,t.accuracy)).Dc(this.f),this.set("accuracyGeometry",t),this.s()},r.op=function(t){t.type="error",this.Ke(!1),this.b(t)},r.Dk=function(){return this.get("accuracy")},r.Ek=function(){return this.get("accuracyGeometry")||null},r.Gk=function(){return this.get("altitude")},r.Hk=function(){return this.get("altitudeAccuracy")},r.ym=function(){return this.get("heading")},r.zm=function(){return this.get("position")},r.Uh=function(){return this.get("projection")},r.ll=function(){return this.get("speed")},r.Vh=function(){return this.get("tracking")},r.Gh=function(){return this.get("trackingOptions")},r.Wh=function(t){this.set("projection",v(t))},r.Ke=function(t){this.set("tracking",t)},r.wj=function(t){this.set("trackingOptions",t)},e(h0,b),(r=h0.prototype).clone=function(){var t=new h0(null);return br(t,this.ja,this.A.slice()),t.s(),t},r.Kb=function(t,e,o,i){var r=this.A,n=(t-=r[0],e-r[1]);if((e=t*t+n*n)<i){if(e)for(i=this.pd()/Math.sqrt(e),o[0]=r[0]+i*t,o[1]=r[1]+i*n,i=2;i<this.a;++i)o[i]=r[i];else for(i=0;i<this.a;++i)o[i]=r[i];return o.length=this.a,e}return i},r.Mc=function(t,e){var o=this.A;return(t-=o[0])*t+(e-=o[1])*e<=l0(this)},r.wa=function(){return this.A.slice(0,this.a)},r.se=function(t){var e=this.A,o=e[this.a]-e[0];return bt(e[0]-o,e[1]-o,e[0]+o,e[1]+o,t)},r.pd=function(){return Math.sqrt(l0(this))},r.U=function(){return"Circle"},r.Xa=function(t){var e;return!!Ot(t,this.G())&&(e=this.wa(),t[0]<=e[0]&&t[2]>=e[0]||t[1]<=e[1]&&t[3]>=e[1]||Et(t,this.sb,this))},r.ob=function(t){var e,o=this.a,i=t.slice();for(i[o]=i[0]+(this.A[o]-this.A[0]),e=1;e<o;++e)i[o+e]=t[e];br(this,this.ja,i),this.s()},r.Ng=function(t,e,o){if(t){var i;for(mr(this,o,t,0),this.A||(this.A=[]),t=Tr(o=this.A,t),o[t++]=o[0]+e,e=1,i=this.a;e<i;++e)o[t++]=o[e];o.length=t}else br(this,"XY",null);this.s()},r.X=function(){},r.ma=function(){},r.Uc=function(t){this.A[this.a]=this.A[0]+t,this.s()};var f0=new hp({color:"rgba(0,0,0,0.2)"}),y0=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001];function g0(t,e,o,i,r,n,s){var a,p,h,l,u=s;return a=e,p=o,h=i,l=t.j,r=r,o=u0(function(t){return[a,p+(h-p)*t]},me(v("EPSG:4326"),l),r),(u=void 0!==t.i[u]?t.i[u]:new S(null)).ba("XY",o),Ot(u.G(),n)&&(t.b&&(o=s,n=[(i=u.ga())[0],Q(n[1]+Math.abs(n[1]-n[3])*t.fa,Math.max(n[1],i[1]),Math.min(n[3],i[i.length-1]))],(o=t.b[o]?t.b[o].Qd:new m(null)).ma(n),t.b[s]={Qd:o,text:t.na(e)}),t.i[s++]=u),s}function d0(t,e,o,i,r){var n,s,a,p,h,l=r;return n=e,s=t.g,a=t.f,h=t.j,p=o,o=u0(function(t){return[s+(a-s)*t,n]},me(v("EPSG:4326"),h),p),(l=void 0!==t.c[l]?t.c[l]:new S(null)).ba("XY",o),Ot(l.G(),i)&&(t.a&&(o=r,h=l.ga(),i=[Q(i[0]+Math.abs(i[0]-i[2])*t.T,Math.max(i[0],h[0]),Math.min(i[2],h[h.length-2])),h[1]],(o=t.a[o]?t.a[o].Qd:new m(null)).ma(i),t.a[r]={Qd:o,text:t.Ua(e)}),t.c[r++]=l),r}function v0(t,e,o,i,r){eo.call(this),this.f=r,this.extent=t,this.a=o,this.resolution=e,this.state=i}function b0(t,e,o,i,r,n,s){v0.call(this,t,e,o,0,i),this.j=r,this.M=new Image,null!==n&&(this.M.crossOrigin=n),this.c={},this.i=null,this.state=0,this.g=s}function m0(t,e,o,i,r,n){this.c=n||null,v0.call(this,t,e,o,n?0:2,i),this.i=r}function w0(t,e){eo.call(this),this.ta=t,this.state=e,this.i=null,this.key=""}function x0(t){if(t.i){var e=t.i;do{if(2==e.getState())return e}while(e=e.i)}return t}function S0(t,e){t.state=e,t.s()}function M0(t,e,o,i,r){w0.call(this,t,e),this.g=o,this.M=new Image,null!==i&&(this.M.crossOrigin=i),this.c=null,this.j=r}function P0(t){t.c.forEach(qe),t.c=null}(r=c0.prototype).Cm=function(){return this.v},r.al=function(){return this.i},r.hl=function(){return this.c},r.Kh=function(t){var e,o,i,r,n,s,a,p,h,l,u=t.vectorContext,c=t.frameState,f=c.extent,y=(t=c.viewState).center,g=t.projection,d=t.resolution;for(t=d*d/(4*(t=c.pixelRatio)*t),this.j&&be(this.j,g)||(e=v("EPSG:4326"),o=g.G(),l=Pe(i=g.g,e,g),r=i[2],n=i[1],s=i[0],a=l[3],p=l[2],h=l[1],l=l[0],this.o=i[3],this.f=r,this.l=n,this.g=s,this.oa=a,this.ra=p,this.I=h,this.R=l,this.u=me(e,g),this.D=me(g,e),this.S=this.D(Lt(o)),this.j=g),g.i&&(e=Dt(g=g.G()),(c=c.focus[0])<g[0]||c>g[2])&&(c=e*Math.ceil((g[0]-c)/e),f=[f[0]+c,f[1],f[2]+c,f[3]]),c=this.S[0],g=this.S[1],e=-1,i=Math.pow(this.Jb*d,2),r=[],n=[],d=0,o=y0.length;d<o&&(r[0]=c-(s=y0[d]/2),r[1]=g-s,n[0]=c+s,n[1]=g+s,this.u(r,r),this.u(n,n),!((s=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2))<=i));++d)e=y0[d];if(-1==(d=e))this.i.length=this.c.length=0,this.b&&(this.b.length=0),this.a&&(this.a.length=0);else{for(y=(c=this.D(y))[0],c=c[1],g=this.fb,i=(e=Pe(e=[Math.max(f[0],this.R),Math.max(f[1],this.I),Math.min(f[2],this.ra),Math.min(f[3],this.oa)],this.j,"EPSG:4326"))[3],n=e[1],o=g0(this,r=Q(y=Math.floor(y/d)*d,this.g,this.f),n,i,t,f,0),e=0;r!=this.g&&e++<g;)o=g0(this,r=Math.max(r-d,this.g),n,i,t,f,o);for(r=Q(y,this.g,this.f),e=0;r!=this.f&&e++<g;)o=g0(this,r=Math.min(r+d,this.f),n,i,t,f,o);for(this.i.length=o,this.b&&(this.b.length=o),o=d0(this,y=Q(c=Math.floor(c/d)*d,this.l,this.o),t,f,0),e=0;y!=this.l&&e++<g;)o=d0(this,y=Math.max(y-d,this.l),t,f,o);for(y=Q(c,this.l,this.o),e=0;y!=this.o&&e++<g;)o=d0(this,y=Math.min(y+d,this.o),t,f,o);this.c.length=o,this.a&&(this.a.length=o)}for(u.Ma(null,this.pa),t=0,y=this.i.length;t<y;++t)d=this.i[t],u.zb(d);for(t=0,y=this.c.length;t<y;++t)d=this.c[t],u.zb(d);if(this.b)for(t=0,y=this.b.length;t<y;++t)d=this.b[t],this.B.xd(d.text),u.Cb(this.B),u.zb(d.Qd);if(this.a)for(t=0,y=this.a.length;t<y;++t)d=this.a[t],this.C.xd(d.text),u.Cb(this.C),u.zb(d.Qd)},r.setMap=function(t){this.v&&(this.v.K("postcompose",this.Kh,this),this.v.render()),t&&(t.J("postcompose",this.Kh,this),t.render()),this.v=t},e(v0,eo),v0.prototype.s=function(){this.b("change")},v0.prototype.G=function(){return this.extent},v0.prototype.getState=function(){return this.state},e(b0,v0),(r=b0.prototype).Y=function(t){var e;return void 0!==t?(t=U(t))in this.c?this.c[t]:(e=Zt(this.c)?this.M:this.M.cloneNode(!1),this.c[t]=e):this.M},r.Fm=function(){this.state=3,this.i.forEach(qe),this.i=null,this.s()},r.Gm=function(){void 0===this.resolution&&(this.resolution=It(this.extent)/this.M.height),this.state=2,this.i.forEach(qe),this.i=null,this.s()},r.load=function(){0!=this.state&&3!=this.state||(this.state=1,this.s(),this.i=[Ye(this.M,"error",this.Fm,this),Ye(this.M,"load",this.Gm,this)],this.g(this,this.j))},r.Og=function(t){this.M=t},e(m0,v0),m0.prototype.g=function(t){this.state=t?3:2,this.s()},m0.prototype.load=function(){0==this.state&&(this.state=1,this.s(),this.c(this.g.bind(this)))},m0.prototype.Y=function(){return this.i},e(w0,eo),w0.prototype.s=function(){this.b("change")},w0.prototype.bb=function(){return this.key+"/"+this.ta},w0.prototype.f=function(){return this.ta},w0.prototype.getState=function(){return this.state},e(M0,w0),(r=M0.prototype).ka=function(){1==this.state&&P0(this),this.i&&$e(this.i),this.state=5,this.s(),w0.prototype.ka.call(this)},r.Y=function(){return this.M},r.bb=function(){return this.g},r.Dm=function(){this.state=3,this.M=A0,P0(this),this.s()},r.Em=function(){this.state=this.M.naturalWidth&&this.M.naturalHeight?2:4,P0(this),this.s()},r.load=function(){0!=this.state&&3!=this.state||(this.state=1,this.s(),this.c=[Ye(this.M,"error",this.Dm,this),Ye(this.M,"load",this.Em,this)],this.j(this,this.g))};var A0=new Image;function E0(t){t=t||{},pn.call(this,{handleEvent:cr}),this.g=t.formatConstructors||[],this.o=t.projection?v(t.projection):null,this.a=null,this.target=t.target||null}function T0(t){for(var e=0,o=(t=t.dataTransfer.files).length;e<o;++e){var i=t.item(e),r=new FileReader;r.addEventListener("load",this.j.bind(this,i)),r.readAsText(i)}}function j0(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy"}function C0(t){var e=t.v;e&&(e=t.target||e.a,t.a=[d(e,"drop",T0,t),d(e,"dragenter",j0,t),d(e,"dragover",j0,t),d(e,"drop",j0,t)])}function L0(t){t.a&&(t.a.forEach(qe),t.a=null)}A0.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",e(E0,pn),E0.prototype.j=function(t,e){e=e.target.result;for(var o=this.v,i=(i=this.o)||o.Z().v,r=[],n=0,s=(o=this.g).length;n<s;++n){var a=new o[n],p={featureProjection:i};try{r=a.Oa(e,p)}catch(t){r=null}if(r&&0<r.length)break}this.b(new I0(R0,t,r,i))},E0.prototype.Ha=function(t){pn.prototype.Ha.call(this,t),(t?C0:L0)(this)},E0.prototype.setMap=function(t){L0(this),pn.prototype.setMap.call(this,t),this.c()&&C0(this)};var R0="addfeatures";function I0(t,e,o,i){Qe.call(this,t),this.features=o,this.file=e,this.projection=i}function N0(t){t=t||{},Mn.call(this,{handleDownEvent:D0,handleDragEvent:F0,handleUpEvent:k0}),this.l=t.condition||mn,this.a=this.g=void 0,this.j=0,this.u=void 0!==t.duration?t.duration:400}function F0(t){var e,o,i;xn(t)&&(o=(e=t.map).Ob(),t=(i=t.pixel)[0]-o[0]/2,i=o[1]/2-i[1],o=Math.atan2(i,t),t=Math.sqrt(t*t+i*i),(e=e.Z()).g.rotation!==_i&&void 0!==this.g&&(i=o-this.g,hn(e,e.Qa()-i)),this.g=o,void 0!==this.a&&(o=this.a*(e.Pa()/t),un(e,o)),void 0!==this.a&&(this.j=this.a/t),this.a=t)}function k0(t){if(!xn(t))return!0;nn(t=t.map.Z(),1,-1);var e=this.j-1,o=t.Qa(),o=t.constrainRotation(o,0),o=(hn(t,o,void 0,void 0),t.Pa()),i=this.u,o=t.constrainResolution(o,0,e);return un(t,o,void 0,i),this.j=0,!1}function D0(t){return!(!xn(t)||!this.l(t)||(nn(t.map.Z(),1,1),this.a=this.g=void 0))}function O0(t,e,o,i){this.fb=t,this.Ua=e,this.overlaps=i,this.c=0,this.resolution=o,this.ra=this.oa=null,this.a=[],this.coordinates=[],this.T=ms(),this.b=[],this.B=null,this.fa=ms(),this.na=ms()}function U0(t,e,o,i,r,n,s){for(var a=t.coordinates.length,p=t.Sf(),h=(s&&(o+=r),s=[e[o],e[o+1]],[NaN,NaN]),l=!0,u=o+r;u<i;u+=r){h[0]=e[u],h[1]=e[u+1];var c=dt(p,h),l=c!==f?(l&&(t.coordinates[a++]=s[0],t.coordinates[a++]=s[1]),t.coordinates[a++]=h[0],t.coordinates[a++]=h[1],!1):1!==c||(t.coordinates[a++]=h[0],t.coordinates[a++]=h[1],!1),f=(s[0]=h[0],s[1]=h[1],c)}return(n&&l||u===o+r)&&(t.coordinates[a++]=s[0],t.coordinates[a++]=s[1]),a}function G0(t,e){t.oa=[0,e,0],t.a.push(t.oa),t.ra=[0,e,0],t.b.push(t.ra)}function B0(t,e,o,i,r,n,s,a,p){var h;t.B&&Z(i,t.T)?h=t.B:(t.B||(t.B=[]),h=gr(t.coordinates,0,t.coordinates.length,2,i,t.B),Ms(t.T,i)),i=!Zt(n);for(var l,u,c=0,D=s.length,f=0,y=t.fa,g=t.na,d=0,v=0,b=t.a!=s||t.overlaps?0:200;c<D;)switch((N=s[c])[0]){case 0:f=N[1],i&&n[U(f).toString()]||!f.V()?c=N[2]:void 0===p||Ot(p,f.V().G())?++c:c=N[2]+1;break;case 1:b<d&&(t.Va(e,r),d=0),b<v&&(e.stroke(),v=0),d||v||(e.beginPath(),l=u=NaN),++c;break;case 2:m=h[f=N[1]],N=h[f+1],j=h[f+2]-m,f=h[f+3]-N,f=Math.sqrt(j*j+f*f),e.moveTo(m+f,N),e.arc(m,N,f,0,2*Math.PI,!0),++c;break;case 3:e.closePath(),++c;break;case 4:f=N[1];var m=N[2],w=N[3],x=N[4]*o,S=N[5]*o,M=N[6],P=N[7],A=N[8],E=N[9],T=N[10],j=N[11],C=N[12],L=N[13],R=N[14];for(T&&(j+=r);f<m;f+=2){var I,N=h[f]-x,T=h[f+1]-S,F=(L&&(N=Math.round(N),T=Math.round(T)),1==C&&!j||(js(y,I=N+x,F=T+S,C,C,j,-I,-F),e.setTransform.apply(e,y)),I=e.globalAlpha,1!=P&&(e.globalAlpha=I*P),R+A>w.width?w.width-A:R),O=M+E>w.height?w.height-E:M;e.drawImage(w,A,E,F,O,N,T,F*o,O*o),1!=P&&(e.globalAlpha=I),1==C&&!j||e.setTransform.apply(e,g)}++c;break;case 5:for(f=N[1],m=N[2],S=N[3],M=N[4]*o,P=N[5]*o,j=N[6],C=N[7]*o,w=N[8],x=N[9],(T=N[10])&&(j+=r);f<m;f+=2){for(N=h[f]+M,T=h[f+1]+P,1==C&&!j||(js(y,N,T,C,C,j,-N,-T),e.setTransform.apply(e,y)),1<(E=(A=S.split("\n")).length)?T-=(E-1)/2*(L=Math.round(1.5*e.measureText("M").width)):L=0,R=0;R<E;R++)I=A[R],x&&e.strokeText(I,N,T),w&&e.fillText(I,N,T),T+=L;1==C&&!j||e.setTransform.apply(e,g)}++c;break;case 6:if(a&&(f=a(f=N[1])))return f;++c;break;case 7:b?d++:t.Va(e,r),++c;break;case 8:for(f=N[1],m=N[2],N=h[f],C=(T=h[f+1])+.5|0,(j=N+.5|0)===l&&C===u||(e.moveTo(N,T),l=j,u=C),f+=2;f<m;f+=2)j=(N=h[f])+.5|0,C=(T=h[f+1])+.5|0,f!=m-2&&j===l&&C===u||(e.lineTo(N,T),l=j,u=C);++c;break;case 9:t.R=N[2],d&&(t.Va(e,r),d=0,v)&&(e.stroke(),v=0),e.fillStyle=N[1],++c;break;case 10:var f=void 0===N[8]||N[8],k=N[9];m=N[2],v&&(e.stroke(),v=0),e.strokeStyle=N[1],e.lineWidth=f?m*o:m,e.lineCap=N[3],e.lineJoin=N[4],e.miterLimit=N[5],si&&(m=N[6],j=N[7],f&&o!==k&&(m=m.map(function(t){return t*o/k}),j*=o/k,N[6]=m,N[7]=j,N[9]=o),e.lineDashOffset=j,e.setLineDash(m)),++c;break;case 11:e.font=N[1],e.textAlign=N[2],e.textBaseline=N[3],++c;break;case 12:b?v++:e.stroke(),++c;break;default:++c}d&&t.Va(e,r),v&&e.stroke()}function X0(t){var e=t.b;e.reverse();for(var o=e.length,i=-1,r=0;r<o;++r){var n=e[r],s=n[0];if(6==s)i=r;else if(0==s){for(n[2]=r,n=t.b,s=r;i<s;){var a=n[i];n[i]=n[s],n[s]=a,++i,--s}i=-1}}}function V0(t,e){t.oa[2]=t.a.length,t.oa=null,t.ra[2]=t.b.length,t.ra=null,t.a.push(e=[6,e]),t.b.push(e)}function W0(t,e,o,i){O0.call(this,t,e,o,i),this.M=this.I=null,this.C=this.D=this.S=this.u=this.v=this.l=this.o=this.j=this.g=this.f=this.i=void 0}function Z0(t,e,o,i){O0.call(this,t,e,o,i),this.f=null,this.i={Md:void 0,Gd:void 0,Hd:null,Id:void 0,Jd:void 0,Kd:void 0,Ld:void 0,eg:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}function K0(t,e,o,i,r){var n=t.coordinates.length;return e=U0(t,e,o,i,r,!1,!1),t.a.push(n=[8,n,e]),t.b.push(n),i}function z0(t){var e=t.i,o=e.strokeStyle,i=e.lineCap,r=e.lineDash,n=e.lineDashOffset,s=e.lineJoin,a=e.lineWidth,p=e.miterLimit;e.Md==o&&e.Gd==i&&Z(e.Hd,r)&&e.Id==n&&e.Jd==s&&e.Kd==a&&e.Ld==p||(e.eg!=t.coordinates.length&&(t.a.push([12]),e.eg=t.coordinates.length),t.a.push([10,o,a,i,s,p,r,n,!0,1],[1]),e.Md=o,e.Gd=i,e.Hd=r,e.Id=n,e.Jd=s,e.Kd=a,e.Ld=p)}function Y0(t,e,o,i){O0.call(this,t,e,o,i),this.f=null,this.i={oh:void 0,Md:void 0,Gd:void 0,Hd:null,Id:void 0,Jd:void 0,Kd:void 0,Ld:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}function H0(t,e,o,i,r){var n=void 0!==(s=t.i).fillStyle,s=null!=s.strokeStyle,a=i.length,p=[1];for(t.a.push(p),t.b.push(p),p=0;p<a;++p){var h=i[p],l=t.coordinates.length;o=U0(t,e,o,h,r,!0,!s),t.a.push(o=[8,l,o]),t.b.push(o),s&&(t.a.push(o=[3]),t.b.push(o)),o=h}return t.b.push(e=[7]),n&&t.a.push(e),s&&(t.a.push(n=[12]),t.b.push(n)),o}function q0(t,e){var o,i=t.i,r=i.fillStyle,n=i.strokeStyle,s=i.lineCap,a=i.lineDash,p=i.lineDashOffset,h=i.lineJoin,l=i.lineWidth,u=i.miterLimit;void 0===r||"string"==typeof r&&i.oh==r||(o=[9,r],"string"!=typeof r&&(e=e.G(),o.push([e[0],e[3]])),t.a.push(o),i.oh=i.fillStyle),void 0===n||i.Md==n&&i.Gd==s&&Z(i.Hd,a)&&i.Id==p&&i.Jd==h&&i.Kd==l&&i.Ld==u||(t.a.push([10,n,l,s,h,u,a,p,!0,1]),i.Md=n,i.Gd=s,i.Hd=a,i.Id=p,i.Jd=h,i.Kd=l,i.Ld=u)}function J0(t,e,o,i){O0.call(this,t,e,o,i),this.C=this.D=this.S=null,this.Ia="",this.o=this.j=0,this.l=void 0,this.u=this.v=0,this.g=this.f=this.i=null}function _0(t,e,o,i,r){this.v=t,this.c=e,this.o=i,this.l=o,this.f=r,this.a={},this.g=Po(1,1),this.j=ms()}e(I0,Qe),e(N0,Mn),e(O0,Xs),O0.prototype.Va=function(t,e){var o;this.R&&(o=Ps(this.T,this.R.slice()),t.translate(o[0],o[1]),t.rotate(e)),t.fill(),this.R&&t.setTransform.apply(t,this.na)},O0.prototype.La=function(t,e,o,i,r){B0(this,t,e,o,i,r,this.a,void 0,void 0)},O0.prototype.Te=Y,O0.prototype.Sf=function(){return this.Ua},e(W0,O0),W0.prototype.qc=function(t,e){var o,i;this.M&&(G0(this,e),o=t.ga(),i=this.coordinates.length,t=U0(this,o,0,o.length,t.qa(),!1,!1),this.a.push([4,i,t,this.M,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),this.b.push([4,i,t,this.I,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),V0(this,e))},W0.prototype.oc=function(t,e){var o,i;this.M&&(G0(this,e),o=t.ga(),i=this.coordinates.length,t=U0(this,o,0,o.length,t.qa(),!1,!1),this.a.push([4,i,t,this.M,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),this.b.push([4,i,t,this.I,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),V0(this,e))},W0.prototype.Te=function(){X0(this),this.f=this.i=void 0,this.M=this.I=null,this.C=this.D=this.u=this.v=this.l=this.o=this.j=this.S=this.g=void 0},W0.prototype.Ub=function(t){var e=t.Hc(),o=t.ic(),i=t.qg(1),r=t.Y(1),n=t.Oc();this.i=e[0],this.f=e[1],this.I=i,this.M=r,this.g=o[1],this.j=t.f,this.o=n[0],this.l=n[1],this.v=t.l,this.u=t.g,this.S=t.a,this.D=t.v,this.C=o[0]},e(Z0,O0),(r=Z0.prototype).Sf=function(){return this.f||(this.f=ut(this.Ua),0<this.c&<(this.f,this.resolution*(this.c+1)/2,this.f)),this.f},r.mc=function(t,e){var o=this.i,i=o.lineWidth;void 0!==o.strokeStyle&&void 0!==i&&(z0(this),G0(this,e),this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1],[1]),K0(this,o=t.ga(),0,o.length,t.qa()),this.b.push([12]),V0(this,e))},r.nc=function(t,e){var o=this.i,i=o.lineWidth;if(void 0!==o.strokeStyle&&void 0!==i){z0(this),G0(this,e),this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1],[1]),o=t.Bb(),i=t.ga(),t=t.qa();for(var r=0,n=0,s=o.length;n<s;++n)r=K0(this,i,r,o[n],t);this.b.push([12]),V0(this,e)}},r.Te=function(){this.i.eg!=this.coordinates.length&&this.a.push([12]),X0(this),this.i=null},r.Ma=function(t,e){t=e.a,this.i.strokeStyle=Mo(t||Gs),t=e.f,this.i.lineCap=void 0!==t?t:"round",t=e.i,this.i.lineDash=t||Us,t=e.g,this.i.lineDashOffset=t||0,t=e.j,this.i.lineJoin=void 0!==t?t:"round",t=e.c,this.i.lineWidth=void 0!==t?t:1,e=e.o,this.i.miterLimit=void 0!==e?e:10,this.i.lineWidth>this.c&&(this.c=this.i.lineWidth,this.f=null)},e(Y0,O0),(r=Y0.prototype).Zb=function(t,e){var o,i=this.i,r=i.strokeStyle;void 0===i.fillStyle&&void 0===r||(q0(this,t),G0(this,e),this.b.push([9,bo(Os)]),void 0!==i.strokeStyle&&this.b.push([10,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset,!0,1]),o=t.ga(),r=this.coordinates.length,U0(this,o,0,o.length,t.qa(),!1,!1),this.a.push(t=[1],r=[2,r]),this.b.push(t,r),this.b.push(t=[7]),void 0!==i.fillStyle&&this.a.push(t),void 0!==i.strokeStyle&&(this.a.push(i=[12]),this.b.push(i)),V0(this,e))},r.rc=function(t,e){var o=this.i,o=(q0(this,t),G0(this,e),this.b.push([9,bo(Os)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]),t.Bb());H0(this,t.ec(),0,o,t.qa()),V0(this,e)},r.pc=function(t,e){var o=this.i,i=o.strokeStyle;if(void 0!==o.fillStyle||void 0!==i){q0(this,t),G0(this,e),this.b.push([9,bo(Os)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]),o=t.c,i=Il(t),t=t.qa();for(var r=0,n=0,s=o.length;n<s;++n)r=H0(this,i,r,o[n],t);V0(this,e)}},r.Te=function(){X0(this),this.i=null;var t=this.fb;if(t)for(var e=this.coordinates,o=0,i=e.length;o<i;++o)e[o]=t*Math.round(e[o]/t)},r.Sf=function(){return this.f||(this.f=ut(this.Ua),0<this.c&<(this.f,this.resolution*(this.c+1)/2,this.f)),this.f},r.Ma=function(t,e){var o=this.i;t?(t=t.b,o.fillStyle=Mo(t||Os)):o.fillStyle=void 0,e?(t=e.a,o.strokeStyle=Mo(t||Gs),t=e.f,o.lineCap=void 0!==t?t:"round",t=e.i,o.lineDash=t?t.slice():Us,t=e.g,o.lineDashOffset=t||0,t=e.j,o.lineJoin=void 0!==t?t:"round",t=e.c,o.lineWidth=void 0!==t?t:1,e=e.o,o.miterLimit=void 0!==e?e:10,o.lineWidth>this.c&&(this.c=o.lineWidth,this.f=null)):(o.strokeStyle=void 0,o.lineCap=void 0,o.lineDash=null,o.lineDashOffset=void 0,o.lineJoin=void 0,o.lineWidth=void 0,o.miterLimit=void 0)},e(J0,O0),J0.prototype.yc=function(t,e,o,i,r,n){var s,a;""!==this.Ia&&this.g&&(this.i||this.f)&&(this.i&&(r=this.i,(s=this.S)&&s.fillStyle==r.fillStyle||(a=[9,r.fillStyle],this.a.push(a),this.b.push(a),s?s.fillStyle=r.fillStyle:this.S={fillStyle:r.fillStyle})),this.f&&(r=this.f,(s=this.D)&&s.lineCap==r.lineCap&&s.lineDash==r.lineDash&&s.lineDashOffset==r.lineDashOffset&&s.lineJoin==r.lineJoin&&s.lineWidth==r.lineWidth&&s.miterLimit==r.miterLimit&&s.strokeStyle==r.strokeStyle||(a=[10,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset,!1,1],this.a.push(a),this.b.push(a),s?(s.lineCap=r.lineCap,s.lineDash=r.lineDash,s.lineDashOffset=r.lineDashOffset,s.lineJoin=r.lineJoin,s.lineWidth=r.lineWidth,s.miterLimit=r.miterLimit,s.strokeStyle=r.strokeStyle):this.D={lineCap:r.lineCap,lineDash:r.lineDash,lineDashOffset:r.lineDashOffset,lineJoin:r.lineJoin,lineWidth:r.lineWidth,miterLimit:r.miterLimit,strokeStyle:r.strokeStyle})),r=this.g,(s=this.C)&&s.font==r.font&&s.textAlign==r.textAlign&&s.textBaseline==r.textBaseline||(a=[11,r.font,r.textAlign,r.textBaseline],this.a.push(a),this.b.push(a),s?(s.font=r.font,s.textAlign=r.textAlign,s.textBaseline=r.textBaseline):this.C={font:r.font,textAlign:r.textAlign,textBaseline:r.textBaseline}),G0(this,n),t=[5,r=this.coordinates.length,t=U0(this,t,e,o,i,!1,!1),this.Ia,this.j,this.o,this.v,this.u,!!this.i,!!this.f,this.l],this.a.push(t),this.b.push(t),V0(this,n))},J0.prototype.Cb=function(t){var e,o,i,r,n,s,a,p,h;t?((o=t.Fa())?(o=Mo((o=o.b)||Os),this.i?this.i.fillStyle=o:this.i={fillStyle:o}):this.i=null,(s=t.Ga())?(o=s.a,i=s.f,r=s.i,a=s.g,p=s.j,n=s.c,s=s.o,i=void 0!==i?i:"round",r=r?r.slice():Us,a=void 0!==a?a:0,p=void 0!==p?p:"round",n=void 0!==n?n:1,s=void 0!==s?s:10,o=Mo(o||Gs),this.f?((h=this.f).lineCap=i,h.lineDash=r,h.lineDashOffset=a,h.lineJoin=p,h.lineWidth=n,h.miterLimit=s,h.strokeStyle=o):this.f={lineCap:i,lineDash:r,lineDashOffset:a,lineJoin:p,lineWidth:n,miterLimit:s,strokeStyle:o}):this.f=null,e=t.a,o=t.i,i=t.c,r=t.o,n=t.f,s=t.b,a=t.Na(),p=t.g,h=t.j,t=void 0!==e?e:"10px sans-serif",p=void 0!==p?p:"center",h=void 0!==h?h:"middle",this.g?((e=this.g).font=t,e.textAlign=p,e.textBaseline=h):this.g={font:t,textAlign:p,textBaseline:h},this.Ia=void 0!==a?a:"",this.j=void 0!==o?o:0,this.o=void 0!==i?i:0,this.l=void 0!==r&&r,this.v=void 0!==n?n:0,this.u=void 0!==s?s:1):this.Ia=""},e(_0,$s);var $0={0:[[!0]]};function Q0(t,e,o){var i,r=Math.floor(t.length/2);if(r<=e)for(i=r;i<e;i++)t[i][o]=!0;else if(e<r)for(i=e+1;i<r;i++)t[i][o]=!0}function tv(t){for(var e in t.a){var o,i=t.a[e];for(o in i)i[o].Te()}}function ev(t,e){var o=t.c,i=(t=o[0],o[1]),r=o[2];return gr(t=[t,i,t,o=o[3],r,o,r,i],0,8,2,e,t),t}_0.prototype.Ea=function(t,e,o,i,r,n){var s,a,p,h=2*(i=Math.round(i))+1,l=js(this.j,i+.5,i+.5,1/e,-1/e,-o,-t[0],-t[1]),u=this.g,c=(u.canvas.width!==h||u.canvas.height!==h?(u.canvas.width=h,u.canvas.height=h):u.clearRect(0,0,h,h),void 0!==this.f&&(Pt(s=vt(),t),lt(s,e*(this.f+i),s)),function(t){if(void 0!==$0[t])return $0[t];for(var e=2*t+1,o=Array(e),i=0;i<e;i++)o[i]=Array(e);for(var e=t,r=i=0;i<=e;)Q0(o,t+e,t+i),Q0(o,t+i,t+e),Q0(o,t-i,t+e),Q0(o,t-e,t+i),Q0(o,t-e,t-i),Q0(o,t-i,t-e),Q0(o,t+i,t-e),Q0(o,t+e,t-i),0<2*((r+=1+2*++i)-e)+1&&(r+=1-2*--e);return $0[t]=o}(i)),f=this,y=u,g=l,d=o,v=r,b=function(t){for(var e=u.getImageData(0,0,h,h).data,o=0;o<h;o++)for(var i=0;i<h;i++)if(c[o][i]&&0<e[4*(i*h+o)+3])return(t=n(t))||void u.clearRect(0,0,h,h)},m=s,w=Object.keys(f.a).map(Number),x=(w.sort(function(t,e){return e-t}),0);for(a=w.length;x<a;++x){var S=f.a[w[x].toString()];for(p=_s.length-1;0<=p;--p){var M=S[_s[p]];if(void 0!==M&&(M=B0(M,y,1,g,d,v,M.b,b,m)))return M}}},_0.prototype.b=function(t,e){var o=void 0!==t?t.toString():"0";return void 0===(t=this.a[o])&&(this.a[o]=t={}),void 0===(o=t[e])&&(o=new ov[e](this.v,this.c,this.l,this.o),t[e]=o),o},_0.prototype.i=function(){return Zt(this.a)},_0.prototype.La=function(t,e,o,i,r,n){var s=Object.keys(this.a).map(Number),a=(s.sort(G),ev(this,o));t.save(),t.beginPath(),t.moveTo(a[0],a[1]),t.lineTo(a[2],a[3]),t.lineTo(a[4],a[5]),t.lineTo(a[6],a[7]),t.clip(),n=n||_s;for(var a=0,p=s.length;a<p;++a)for(var h=this.a[s[a].toString()],l=0,u=n.length;l<u;++l){var c=h[n[l]];void 0!==c&&c.La(t,e,o,i,r)}t.restore()};var ov={Circle:Y0,Image:W0,LineString:Z0,Polygon:Y0,Text:J0};function iv(t){io.call(this),this.a=t}function rv(t,e){var o=e.getState();return 2!=o&&3!=o&&d(e,"change",t.na,t),0==o&&(e.load(),o=e.getState()),2==o}function nv(t){var e=t.a;e.Mb()&&"ready"==e.$f()&&t.s()}function sv(t,e){e.Ki()&&t.postRenderFunctions.push(function(t,e,o){e=U(t).toString(),t.fd(o.viewState.projection,o.usedTiles[e])}.bind(null,e))}function av(t,e){if(e)for(var o=0,i=e.length;o<i;++o){var r=e[o];t[U(r).toString()]=r}}function pv(t,e){void 0!==(e=e.D)&&("string"==typeof e?t.logos[e]="":e&&(O("string"==typeof e.href,44),O("string"==typeof e.src,45),t.logos[e.src]=e.href))}function hv(t,e,o,i){e=U(e).toString(),o=o.toString(),e in t?o in t[e]?(t=t[e][o],i.ca<t.ca&&(t.ca=i.ca),i.$>t.$&&(t.$=i.$),i.da<t.da&&(t.da=i.da),i.ia>t.ia&&(t.ia=i.ia)):t[e][o]=i:(t[e]={},t[e][o]=i)}function lv(t,e,o,i,r,n,s,a,p,h){for(var l,u=U(e).toString(),c=(u in t.wantedTiles||(t.wantedTiles[u]={}),t.wantedTiles[u]),f=(t=t.tileQueue,o.minZoom),y=s;f<=y;--y)for(var g,d=Ie(o,n,y,d),v=o.Da(y),b=d.ca;b<=d.$;++b)for(l=d.da;l<=d.ia;++l)s-y<=a?(0==(g=e.Nc(y,b,l,i,r)).getState()&&(c[g.bb()]=!0,g.bb()in t.a||t.f([g,u,Ne(o,g.ta),v])),p&&p.call(h,g)):e.Ug(y,b,l,r)}function uv(t){iv.call(this,t),this.fa=ms()}function cv(t,e,o){var i=e.pixelRatio,r=e.size[0]*i,n=e.size[1]*i,s=e.viewState.rotation,a=Ft(o),p=kt(o),h=Ct(o);o=jt(o),Ps(e.coordinateToPixelTransform,a),Ps(e.coordinateToPixelTransform,p),Ps(e.coordinateToPixelTransform,h),Ps(e.coordinateToPixelTransform,o),t.save(),Bs(t,-s,r/2,n/2),t.beginPath(),t.moveTo(a[0]*i,a[1]*i),t.lineTo(p[0]*i,p[1]*i),t.lineTo(h[0]*i,h[1]*i),t.lineTo(o[0]*i,o[1]*i),t.clip(),Bs(t,s,r/2,n/2)}function fv(t,e,o,i,r){var n,s,a,p=t.a;oo(p,e)&&(n=i.size[0]*i.pixelRatio,s=i.size[1]*i.pixelRatio,Bs(o,-(a=i.viewState.rotation),n/2,s/2),t=r||yv(t,i,0),p.b(new Ds(e,new Vs(o,i.pixelRatio,i.extent,t,i.viewState.rotation),i,o,null)),Bs(o,a,n/2,s/2))}function yv(t,e,o){var i=e.viewState,r=e.pixelRatio,n=r/i.resolution;return js(t.fa,r*e.size[0]/2,r*e.size[1]/2,n,-n,-i.rotation,-i.center[0]+o,-i.center[1])}function gv(t,e){return U(t)-U(e)}function dv(t,e){return(t=.5*t/e)*t}function vv(t,e,o,i,r,n){var s,a,p=!1;return(s=o.Y())&&(2==(a=s.Ye())||3==a?s.Bj(r,n):(0==a&&s.load(),s.Nh(r,n),p=!0)),(r=(0,o.Za)(e))&&(i=r.Vd(i),(0,bv[i.U()])(t,i,o,e)),p}e(iv,io),iv.prototype.Ea=Y,iv.prototype.Ue=fr,iv.prototype.Nf=function(o,i,r){return function(e,t){return Cm(o,i,e,t,function(t){r[e]||(r[e]={}),r[e][t.ta.toString()]=t})}},iv.prototype.na=function(t){2===t.target.getState()&&nv(this)},e(uv,iv),uv.prototype.u=function(t,e,o,i){if(this.Ea(t,e,0,cr,this))return o.call(i,this.a,null)},uv.prototype.ef=function(t,e,o,i){fv(this,"postcompose",t,e,i)};var bv={Point:function(t,e,o,i){var r=o.Y();if(r){if(2!=r.Ye())return;var n=t.b(o.Ba(),"Image");n.Ub(r),n.qc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),t.yc(e.ga(),0,2,2,e,i))},LineString:function(t,e,o,i){var r,n=o.Ga();n&&((r=t.b(o.Ba(),"LineString")).Ma(null,n),r.mc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(jl(e),0,2,2,e,i))},Polygon:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(n||s)&&((r=t.b(o.Ba(),"Polygon")).Ma(n,s),r.rc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(zr(e),0,2,2,e,i))},MultiPoint:function(t,e,o,i){var r=o.Y();if(r){if(2!=r.Ye())return;var n=t.b(o.Ba(),"Image");n.Ub(r),n.oc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),o=e.ga(),t.yc(o,0,o.length,e.qa(),e,i))},MultiLineString:function(t,e,o,i){var r,n=o.Ga();n&&((r=t.b(o.Ba(),"LineString")).Ma(null,n),r.nc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),o=Cl(e),t.yc(o,0,o.length,2,e,i))},MultiPolygon:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(s||n)&&((r=t.b(o.Ba(),"Polygon")).Ma(n,s),r.pc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),o=Rl(e),t.yc(o,0,o.length,2,e,i))},GeometryCollection:function(t,e,o,i){for(var r=0,n=(e=e.a).length;r<n;++r)(0,bv[e[r].U()])(t,e[r],o,i)},Circle:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(n||s)&&((r=t.b(o.Ba(),"Circle")).Ma(n,s),r.Zb(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(e.wa(),0,2,2,e,i))}};function mv(t){uv.call(this,t),this.c=!1,this.v=-1,this.l=NaN,this.j=vt(),this.f=this.o=null,this.g=Po()}function wv(){this.b="precision mediump float;varying vec2 a;uniform float f;uniform sampler2D g;void main(void){vec4 texColor=texture2D(g,a);gl_FragColor.rgb=texColor.rgb;gl_FragColor.a=texColor.a*f;}"}e(mv,uv),mv.prototype.S=function(t,e,o){var i=t.extent,r=t.pixelRatio,n=e.Je?t.skippedFeatureUids:{},s=(a=t.viewState).projection,a=a.rotation,p=s.G(),h=this.a.ha(),l=yv(this,t,0),u=(fv(this,"precompose",o,t,l),e.extent),c=void 0!==u;if(c&&cv(o,t,u),(u=this.f)&&!u.i()){var f,y,g=0,d=0,v=(f=(y=oo(this.a,"render")?(y=o.canvas.width,f=o.canvas.height,a&&(g=((v=Math.round(Math.sqrt(y*y+f*f)))-y)/2,d=(v-f)/2,y=f=v),this.g.canvas.width=y,this.g.canvas.height=f,this.g):o).globalAlpha,y.globalAlpha=e.opacity,y!=o&&y.translate(g,d),t.size[0]*r),b=t.size[1]*r;if(Bs(y,-a,v/2,b/2),u.La(y,r,l,a,n),h.u&&s.i&&!yt(p,i)){for(var s=i[0],h=Dt(p),m=0;s<p[0];)l=yv(this,t,l=h*--m),u.La(y,r,l,a,n),s+=h;for(m=0,s=i[2];s>p[2];)l=yv(this,t,l=h*++m),u.La(y,r,l,a,n),s-=h;l=yv(this,t,0)}Bs(y,a,v/2,b/2),y!=o&&(fv(this,"render",y,t,l),o.drawImage(y.canvas,-g,-d),y.translate(-g,-d)),y.globalAlpha=f}c&&o.restore(),this.ef(o,t,e,l)},mv.prototype.Ea=function(t,e,o,i,r){var n,s;if(this.f)return n=this.a,s={},this.f.Ea(t,e.viewState.resolution,e.viewState.rotation,o,{},function(t){var e=U(t).toString();if(!(e in s))return s[e]=!0,i.call(r,t,n)})},mv.prototype.D=function(){nv(this)},mv.prototype.sd=function(t){function e(t){var e,o=t.Lc();if(o?e=o.call(t,n):(o=p.f)&&(e=o(t,n)),e){if(o=!1,Array.isArray(e))for(var i=0,r=e.length;i<r;++i)o=vv(a,t,e[i],dv(n,s),this.D,this)||o;else o=vv(a,t,e,dv(n,s),this.D,this)||o;t=o,this.c=this.c||t}}var o,n,s,i,a,r,p=this.a,h=p.ha(),l=(av(t.attributions,h.j),pv(t,h),t.viewHints[0]),u=t.viewHints[1],c=p.T,f=p.na;return!this.c&&!c&&l||!f&&u||(o=t.extent,l=(f=t.viewState).projection,n=f.resolution,s=t.pixelRatio,u=p.i,i=p.c,void 0===(c=p.get(jv))&&(c=gv),o=lt(o,i*n),i=f.projection.G(),h.u&&f.projection.i&&!yt(i,t.extent)&&(t=Math.max(Dt(o)/2,Dt(i)),o[0]=i[0]-t,o[2]=i[2]+t),!this.c&&this.l==n&&this.v==u&&this.o==c&&yt(this.j,o))||(this.f=null,this.c=!1,a=new _0(.5*n/s,o,n,h.T,p.c),h.Yd(o,n,l),c?(r=[],h.$b(o,function(t){r.push(t)},this),r.sort(c),r.forEach(e,this)):h.$b(o,e,this),tv(a),this.l=n,this.v=u,this.o=c,this.j=o,this.f=a),!0},e(wv,ta);var xv=new wv;function Sv(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position=e*vec4(b,0.,1.);a=(d*vec4(c,0.,1.)).st;}"}e(Sv,ea);var Mv=new Sv;function Pv(t,e){this.i=t.getUniformLocation(e,"f"),this.c=t.getUniformLocation(e,"e"),this.g=t.getUniformLocation(e,"d"),this.f=t.getUniformLocation(e,"g"),this.b=t.getAttribLocation(e,"b"),this.a=t.getAttribLocation(e,"c")}function Av(t,e){iv.call(this,e),this.c=t,this.T=new da([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),this.g=this.Ib=null,this.j=void 0,this.v=ms(),this.S=ms(),this.C=aa(),this.u=null}function Ev(t,e,o,i){var r;oo(t=t.a,e)&&(r=i.viewState,t.b(new Ds(e,new sh(o,r.center,r.resolution,r.rotation,i.size,i.extent,i.pixelRatio),i,null,o)))}function Tv(t,e){Av.call(this,t,e),this.l=!1,this.R=-1,this.I=NaN,this.D=vt(),this.o=this.f=this.B=null}function s(t){var e=Xt({},t=t||{});delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,ys.call(this,e),this.c=void 0!==t.renderBuffer?t.renderBuffer:100,this.u=null,this.f=void 0,this.g(t.style),this.T=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.na=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}e(Av,iv),Av.prototype.Gi=function(t,e,o){Ev(this,"precompose",o,t),Ea(o,34962,this.T);var i,r=o.b,n=La(o,xv,Mv);this.u?i=this.u:this.u=i=new Pv(r,n),o.Qc(n)&&(r.enableVertexAttribArray(i.b),r.vertexAttribPointer(i.b,2,5126,!1,16,0),r.enableVertexAttribArray(i.a),r.vertexAttribPointer(i.a,2,5126,!1,16,8),r.uniform1i(i.f,0)),r.uniformMatrix4fv(i.g,!1,pa(this.C,this.v)),r.uniformMatrix4fv(i.c,!1,pa(this.C,this.S)),r.uniform1f(i.i,e.opacity),r.bindTexture(3553,this.Ib),r.drawArrays(5,0,4),Ev(this,"postcompose",o,t)},Av.prototype.mg=function(){this.g=this.Ib=null,this.j=void 0},e(Tv,Av),(r=Tv.prototype).Gi=function(t,e,o){this.o=e;var i=t.viewState,r=this.f,n=t.size,s=t.pixelRatio,a=this.c.i;r&&!r.i()&&(a.enable(a.SCISSOR_TEST),a.scissor(0,0,n[0]*s,n[1]*s),r.La(o,i.center,i.resolution,i.rotation,n,s,e.opacity,e.Je?t.skippedFeatureUids:{}),a.disable(a.SCISSOR_TEST))},r.ka=function(){var t=this.f;t&&(oh(t,this.c.f)(),this.f=null),Av.prototype.ka.call(this)},r.Ea=function(t,e,o,i,r){var n,s;if(this.f&&this.o)return o=e.viewState,n=this.a,s={},this.f.Ea(t,this.c.f,o.center,o.resolution,o.rotation,e.size,e.pixelRatio,this.o.opacity,{},function(t){var e=U(t).toString();if(!(e in s))return s[e]=!0,i.call(r,t,n)})},r.Ue=function(t,e){var o,i,r,n,s,a,p;return!(!this.f||!this.o)&&(n=e.viewState,o=this.f,t=t,i=this.c.f,r=n.resolution,n=n.rotation,s=e.pixelRatio,a=this.o.opacity,e=e.skippedFeatureUids,(p=i.b).bindFramebuffer(p.FRAMEBUFFER,ja(i)),void 0!==ih(o,i,t,r,n,s,a,e,function(){var t=new Uint8Array(4);return p.readPixels(0,0,1,1,p.RGBA,p.UNSIGNED_BYTE,t),0<t[3]},!1))},r.lg=function(t,e,o,i){if(t=Ps(e.pixelToCoordinateTransform,t.slice()),this.Ue(t,e))return o.call(i,this.a,null)},r.Hi=function(){nv(this)},r.ng=function(t,e,o){function i(t){var e,o=t.Lc();if(o?e=o.call(t,h):(o=r.f)&&(e=o(t,h)),e){if(o=!1,Array.isArray(e))for(var i=e.length-1;0<=i;--i)o=vv(y,t,e[i],dv(h,l),this.Hi,this)||o;else o=vv(y,t,e,dv(h,l),this.Hi,this)||o;t=o,this.l=this.l||t}}var r=this.a,n=(e=r.ha(),av(t.attributions,e.j),pv(t,e),t.viewHints[0]),s=t.viewHints[1],a=r.T,p=r.na;if(!(!this.l&&!a&&n||!p&&s)){var s=t.extent,n=(a=t.viewState).projection,h=a.resolution,l=t.pixelRatio,a=r.i,u=r.c,p=r.get(jv);if(void 0===p&&(p=gv),s=lt(s,u*h),this.l||this.I!=h||this.R!=a||this.B!=p||!yt(this.D,s)){this.f&&t.postRenderFunctions.push(oh(this.f,o)),this.l=!1;var c,f,y=new eh(.5*h/l,s,r.c),g=(e.Yd(s,h,n),p?(c=[],e.$b(s,function(t){c.push(t)},this),c.sort(p),c.forEach(i,this)):e.$b(s,i,this),y),d=o;for(f in g.a){var v,b=g.a[f];for(v in b)b[v].Db(d)}this.I=h,this.R=a,this.B=p,this.D=s,this.f=y}}return!0},e(s,ys),s.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new mv(this):"webgl"===o&&(e=new Tv(t,this)),e},s.prototype.D=function(){return this.u},s.prototype.C=function(){return this.f},s.prototype.g=function(t){this.u=void 0!==t?t:$h,this.f=null===t?void 0:Jh(this.u),this.s()};var jv="renderOrder";function Cv(){return[[-1/0,-1/0,1/0,1/0]]}function Lv(t){ro.call(this),this.c=v(t.projection),this.j=Rv(t.attributions),this.D=t.logo,this.na=void 0!==t.state?t.state:"ready",this.u=void 0!==t.wrapX&&t.wrapX}function Rv(t){if("string"==typeof t)return[new Be({html:t})];if(t instanceof Be)return[t];if(Array.isArray(t)){for(var e=t.length,o=Array(e),i=0;i<e;i++){var r=t[i];o[i]="string"==typeof r?new Be({html:r}):r}return o}return null}function Iv(t,e){t.na=e,t.s()}function a(t){Lv.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.B=Y,this.C=t.format,this.T=null==t.overlaps||t.overlaps,this.I=t.url,t.loader?this.B=t.loader:void 0!==this.I&&(O(this.C,7),this.B=ml(this.I,this.C)),this.fa=t.strategy||Cv;var e,o,i,r,n=void 0===t.useSpatialIndex||t.useSpatialIndex;this.a=n?new Fp:null,this.R=new Fp,this.g={},this.o={},this.l={},this.v={},this.f=null,t.features instanceof ho?o=(e=t.features).a:Array.isArray(t.features)&&(o=t.features),n||(e=e||new ho(o)),o&&kv(this,o),e&&(i=e,r=!1,d(t=this,"addfeature",function(t){r||(r=!0,i.push(t.feature),r=!1)}),d(t,"removefeature",function(t){r||(r=!0,i.remove(t.feature),r=!1)}),d(i,"add",function(t){r||(r=!0,this.yb(t.element),r=!1)},t),d(i,"remove",function(t){r||(r=!0,this.Gb(t.element),r=!1)},t),t.f=i)}function Nv(t,e,o){t.v[e]=[d(o,"change",t.Oi,t),d(o,"propertychange",t.Oi,t)]}function Fv(t,e,o){var i=!0,r=o.a;return void 0!==r?r.toString()in t.o?i=!1:t.o[r.toString()]=o:(O(!(e in t.l),30),t.l[e]=o),i}function kv(t,e){for(var o=[],i=[],r=[],n=0,s=e.length;n<s;n++){var a=e[n],p=U(a).toString();Fv(t,p,a)&&i.push(a)}for(n=0,s=i.length;n<s;n++)Nv(t,p=U(a=i[n]).toString(),a),(e=a.V())?(p=e.G(),o.push(p),r.push(a)):t.g[p]=a;for(t.a&&t.a.load(o,r),n=0,s=i.length;n<s;n++)t.b(new Ov("addfeature",i[n]))}function Dv(t,e){for(var o in t.o)if(t.o[o]===e){delete t.o[o];break}}function Ov(t,e){Qe.call(this,t),this.feature=e}function Uv(t){var e;Mn.call(this,{handleDownEvent:Bv,handleEvent:Gv,handleUpEvent:Xv}),this.T=!1,this.fa=null,this.u=!1,this.Yb=t.source||null,this.$a=t.features||null,this.wk=t.snapTolerance||12,this.R=t.type,this.g=("Point"===(n=this.R)||"MultiPoint"===n?e=Hv:"LineString"===n||"MultiLineString"===n?e=qv:"Polygon"===n||"MultiPolygon"===n?e=Jv:"Circle"===n&&(e=_v),e),this.Sa=t.minPoints||(this.g===Jv?3:2),this.va=t.maxPoints||1/0,this.Cf=t.finishCondition||cr;var o,i,r,n=(n=t.geometryFunction)||("Circle"===this.R?function(t,e){return(e=e||new h0([NaN,NaN])).Ng(t[0],Math.sqrt(pr(t[0],t[1]))),e}:((i=this.g)===Hv?o=m:i===qv?o=S:i===Jv&&(o=w),function(t,e){return e?i===Jv?e.ma([t[0].concat([t[0][0]])]):e.ma(t):e=new o(t),e}));this.Za=n,this.I=this.C=this.a=this.B=this.j=this.l=null,this.ad=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,this.pa=new s({source:new a({useSpatialIndex:!1,wrapX:t.wrapX||!1}),style:t.style||(r=Qh(),function(t){return r[t.V().U()]})}),this.xb=t.geometryName,this.vk=t.condition||bn,this.Df=t.freehand?cr:t.freehandCondition||mn,d(this,so("active"),this.ri,this)}function Gv(t){this.u=this.g!==Hv&&this.Df(t);var e=!this.u;return this.u&&"pointerdrag"===t.type&&null!==this.j?(Kv(this,t),e=!1):"pointermove"===t.type?e=Vv(this,t):"dblclick"===t.type&&(e=!1),An.call(this,t)&&e}function Bv(t){return this.T=!this.u,this.u?(this.fa=t.pixel,this.l||Zv(this,t),!0):!!this.vk(t)&&(this.fa=t.pixel,!0)}function Xv(t){var e=!0,o=(Vv(this,t),this.g===_v);return this.T?(this.l?this.u||o?this.Pd():Wv(this,t)?this.Cf(t)&&this.Pd():Kv(this,t):(Zv(this,t),this.g===Hv&&this.Pd()),e=!1):this.u&&(this.l=null,zv(this)),e}function Vv(t,e){var o,i,r;return t.fa&&(!t.u&&t.T||t.u&&!t.T)&&(i=t.fa,o=e.pixel,r=(r=i[0]-o[0])*r+(i=i[1]-o[1])*i,t.T=t.u?r>t.ad:r<=t.ad),t.l?(r=e.coordinate,i=t.j.V(),t.g===Hv?o=t.a:t.g===Jv?(o=(o=t.a[0])[o.length-1],Wv(t,e)&&(r=t.l.slice())):o=(o=t.a)[o.length-1],o[0]=r[0],o[1]=r[1],t.Za(t.a,i),t.B&&t.B.V().ma(r),i instanceof w&&t.g!==Jv?(t.C||(t.C=new x(new S(null))),r=i.Ch(0),(e=t.C.V()).ba(r.ja,r.ga())):t.I&&(e=t.C.V()).ma(t.I),Yv(t)):(e=e.coordinate.slice(),t.B?t.B.V().ma(e):(t.B=new x(new m(e)),Yv(t))),!0}function Wv(t,e){var o=!1;if(t.j){var i=!1,r=[t.l];if(t.g===qv?i=t.a.length>t.Sa:t.g===Jv&&(i=t.a[0].length>t.Sa,r=[t.a[0][0],t.a[0][t.a[0].length-2]]),i)for(var i=e.map,n=0,s=r.length;n<s;n++){var a=r[n],p=i.Ja(a),h=e.pixel,o=h[0]-p[0],p=h[1]-p[1];if(o=Math.sqrt(o*o+p*p)<=(t.u?1:t.wk)){t.l=a;break}}}return o}function Zv(t,e){e=e.coordinate,t.l=e,t.g===Hv?t.a=e.slice():t.g===Jv?(t.a=[[e.slice(),e.slice()]],t.I=t.a[0]):(t.a=[e.slice(),e.slice()],t.g===_v&&(t.I=t.a)),t.I&&(t.C=new x(new S(t.I))),e=t.Za(t.a),t.j=new x,t.xb&&t.j.Tc(t.xb),t.j.Ra(e),Yv(t),t.b(new $v("drawstart",t.j))}function Kv(t,e){e=e.coordinate;var o,i,r=t.j.V();t.g===qv?(t.l=e.slice(),(i=t.a).length>=t.va&&(t.u?i.pop():o=!0),i.push(e.slice()),t.Za(i,r)):t.g===Jv&&((i=t.a[0]).length>=t.va&&(t.u?i.pop():o=!0),i.push(e.slice()),o&&(t.l=i[0]),t.Za(t.a,r)),Yv(t),o&&t.Pd()}function zv(t){t.l=null;var e=t.j;return e&&(t.j=null,t.B=null,t.C=null,t.pa.ha().clear(!0)),e}function Yv(t){var e=[];t.j&&e.push(t.j),t.C&&e.push(t.C),t.B&&e.push(t.B),(t=t.pa.ha()).clear(!0),t.cd(e)}e(Lv,ro),(r=Lv.prototype).Ea=Y,r.ya=function(){return this.j},r.xa=function(){return this.D},r.za=function(){return this.c},r.getState=function(){return this.na},r.sa=function(){this.s()},r.ua=function(t){this.j=Rv(t),this.s()},e(a,Lv),(r=a.prototype).yb=function(t){var e,o=U(t).toString();Fv(this,o,t)&&(Nv(this,o,t),(e=t.V())?(o=e.G(),this.a&&this.a.Ca(o,t)):this.g[o]=t,this.b(new Ov("addfeature",t))),this.s()},r.cd=function(t){kv(this,t),this.s()},r.clear=function(t){if(t){for(var e in this.v)this.v[e].forEach(qe);this.f||(this.v={},this.o={},this.l={})}else if(this.a)for(var o in this.a.forEach(this.Ig,this),this.g)this.Ig(this.g[o]);this.f&&this.f.clear(),this.a&&this.a.clear(),this.R.clear(),this.g={},this.b(new Ov("clear")),this.s()},r.sh=function(t,e){return this.a?this.a.forEach(t,e):this.f?this.f.forEach(t,e):void 0},r.$b=function(t,e,o){return this.a?Up(this.a,t,e,o):this.f?this.f.forEach(e,o):void 0},r.th=function(e,o,i){return this.$b(e,function(t){if(t.V().Xa(e)&&(t=o.call(i,t)))return t})},r.Ah=function(){return this.f},r.Xe=function(){var t;return this.f?t=this.f.a:this.a&&(t=Dp(this.a),Zt(this.g)||X(t,Wt(this.g))),t},r.zh=function(t){var e,o,i=[];return e=t,o=function(t){i.push(t)},this.$b([e[0],e[1],e[0],e[1]],function(t){if(t.V().sb(e))return o.call(void 0,t)}),i},r.Uf=function(t){return Op(this.a,t)},r.vh=function(t,e){var i=t[0],r=t[1],n=null,s=[NaN,NaN],a=1/0,p=[-1/0,-1/0,1/0,1/0],h=e||cr;return Up(this.a,p,function(t){var e,o;h(t)&&(e=t.V(),o=a,(a=e.Kb(i,r,s,a))<o)&&(n=t,t=Math.sqrt(a),p[0]=i-t,p[1]=r-t,p[2]=i+t,p[3]=r+t)}),n},r.G=function(t){return this.a.G(t)},r.yh=function(t){return void 0!==(t=this.o[t.toString()])?t:null},r.Mi=function(){return this.C},r.Ni=function(){return this.I},r.Oi=function(t){var e=U(t=t.target).toString(),o=t.V();o?(o=o.G(),e in this.g?(delete this.g[e],this.a&&this.a.Ca(o,t)):this.a&&kp(this.a,o,t)):e in this.g||(this.a&&this.a.remove(t),this.g[e]=t),void 0!==(o=t.a)?(o=o.toString(),e in this.l?(delete this.l[e],this.o[o]=t):this.o[o]!==t&&(Dv(this,t),this.o[o]=t)):e in this.l||(Dv(this,t),this.l[e]=t),this.s(),this.b(new Ov("changefeature",t))},r.Yd=function(t,e,o){for(var i=this.R,r=0,n=(t=this.fa(t,e)).length;r<n;++r){var s=t[r];Up(i,s,function(t){return yt(t.extent,s)})||(this.B.call(this,s,e,o),i.Ca(s,{extent:s.slice()}))}},r.Gb=function(t){var e=U(t).toString();e in this.g?delete this.g[e]:this.a&&this.a.remove(t),this.Ig(t),this.s()},r.Ig=function(t){var e=U(t).toString(),o=(this.v[e].forEach(qe),delete this.v[e],t.a);void 0!==o?delete this.o[o.toString()]:delete this.l[e],this.b(new Ov("removefeature",t))},e(Ov,Qe),e(Uv,Mn),(r=Uv.prototype).setMap=function(t){Mn.prototype.setMap.call(this,t),this.ri()},r.Op=function(){var t,e;this.j&&(t=this.j.V(),this.g===qv?((e=this.a).splice(-2,1),this.Za(e,t),2<=e.length&&(this.l=e[e.length-2].slice())):this.g===Jv&&((e=this.a[0]).splice(-2,1),this.C.V().ma(e),this.Za(this.a,t)),0===e.length&&(this.l=null),Yv(this))},r.Pd=function(){var t=zv(this),e=this.a,o=t.V();this.g===qv?(e.pop(),this.Za(e,o)):this.g===Jv&&(e[0].pop(),this.Za(e,o),e=o.X()),"MultiPoint"===this.R?t.Ra(new P([e])):"MultiLineString"===this.R?t.Ra(new M([e])):"MultiPolygon"===this.R&&t.Ra(new f([e])),this.b(new $v("drawend",t)),this.$a&&this.$a.push(t),this.Yb&&this.Yb.yb(t)},r.vn=function(t){var e=t.V();this.j=t,this.a=e.X(),t=this.a[this.a.length-1],this.l=t.slice(),this.a.push(t.slice()),Yv(this),this.b(new $v("drawstart",this.j))},r.Xc=fr,r.ri=function(){var t=this.v,e=this.c();t&&e||zv(this),this.pa.setMap(e?t:null)};var Hv="Point",qv="LineString",Jv="Polygon",_v="Circle";function $v(t,e){Qe.call(this,t),this.feature=e}function Qv(t){var e,o;this.a=this.j=null,this.C=!1,this.B=this.l=null,(t=t||{}).extent&&this.g(t.extent),Mn.call(this,{handleDownEvent:eb,handleDragEvent:ob,handleEvent:tb,handleUpEvent:ib}),this.u=new s({source:new a({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.boxStyle||(e=Qh(),function(){return e.Polygon}),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.I=new s({source:new a({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.pointerStyle||(o=Qh(),function(){return o.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0})}function tb(t){var e,o;return!(t instanceof mi&&("pointermove"!=t.type||this.D||ab(this,sb(this,e=t.pixel,o=t.map)||o.Wa(e)),An.call(this,t),1))}function eb(t){function e(t){var e=null,o=null;return t[0]==r[0]?e=r[2]:t[0]==r[2]&&(e=r[0]),t[1]==r[1]?o=r[3]:t[1]==r[3]&&(o=r[1]),null!==e&&null!==o?[e,o]:null}var o=t.pixel,i=t.map,r=this.G();return(t=sb(this,o,i))&&r?(o=t[0]==r[0]||t[0]==r[2]?t[0]:null,i=t[1]==r[1]||t[1]==r[3]?t[1]:null,null!==o&&null!==i?this.a=rb(e(t)):null!==o?this.a=nb(e([o,r[1]]),e([o,r[3]])):null!==i&&(this.a=nb(e([r[0],i]),e([r[2],i])))):(t=i.Wa(o),this.g([t[0],t[1],t[0],t[1]]),this.a=rb(t)),!0}function ob(t){return this.a&&(t=t.coordinate,this.g(this.a(t)),ab(this,t)),!0}function ib(){this.a=null;var t=this.G();return t&&Tt(t)||this.g(null),!1}function rb(e){return function(t){return ht([e,t])}}function nb(e,o){return e[0]==o[0]?function(t){return ht([e,[t[0],o[1]]])}:e[1]==o[1]?function(t){return ht([e,[o[0],t[1]]])}:null}function sb(t,e,o){var i=o.Wa(e);if(r=t.G()){(r=[[[r[0],r[1]],[r[0],r[3]]],[[r[0],r[3]],[r[2],r[3]]],[[r[2],r[3]],[r[2],r[1]]],[[r[2],r[1]],[r[0],r[1]]]]).sort(function(t,e){return lr(i,t)-lr(i,e)});var r=r[0],n=or(i,r),s=o.Ja(n);if(hr(e,s)<=10)return e=o.Ja(r[0]),o=o.Ja(r[1]),e=pr(s,e),o=pr(s,o),t.C=Math.sqrt(Math.min(e,o))<=10,n=t.C?o<e?r[1]:r[0]:n}return null}function ab(t,e){var o=t.B;o?o.V().ma(e):(o=new x(new m(e)),t.B=o,t.I.ha().yb(o))}function pb(t){Qe.call(this,hb),this.b=t}e($v,Qe),e(Qv,Mn),Qv.prototype.setMap=function(t){this.u.setMap(t),this.I.setMap(t),Mn.prototype.setMap.call(this,t)},Qv.prototype.G=function(){return this.j},Qv.prototype.g=function(t){this.j=t||null;var e=this.l;e?t?e.Ra(Hr(t)):e.Ra(void 0):(this.l=e=new x(t?Hr(t):{}),this.u.ha().yb(e)),this.b(new pb(this.j))},e(pb,Qe);var hb="extentchanged";function lb(t){var e;Mn.call(this,{handleDownEvent:gb,handleDragEvent:db,handleEvent:bb,handleUpEvent:vb}),this.ad=t.condition||Sn,this.$a=function(t){return bn(t)&&vn(t)},this.xb=t.deleteCondition||this.$a,this.Yb=t.insertVertexCondition||cr,this.Sa=this.g=null,this.va=[0,0],this.C=this.I=!1,this.a=new Fp,this.fa=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.l=this.pa=!1,this.j=[],this.B=new s({source:new a({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style||(e=Qh(),function(){return e.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.T={Point:this.Dn,LineString:this.ti,LinearRing:this.ti,Polygon:this.En,MultiPoint:this.Bn,MultiLineString:this.An,MultiPolygon:this.Cn,Circle:this.yn,GeometryCollection:this.zn},this.u=t.features,this.u.forEach(this.kg,this),d(this.u,"add",this.wn,this),d(this.u,"remove",this.xn,this),this.R=null}function ub(t,e){t.C||(t.C=!0,t.b(new Mb("modifystart",t.u,e)))}function cb(t,e){var o=t,i=e,r=(o=o.a,[]);o.forEach(function(t){i===t.feature&&r.push(t)});for(var n=r.length-1;0<=n;--n)o.remove(r[n]);t.g&&!t.u.dc()&&(t.B.ha().Gb(t.g),t.g=null),He(e,"change",t.si,t)}function fb(t,e){var o=t.g;o?o.V().ma(e):(o=new x(new m(e)),t.g=o,t.B.ha().yb(o))}function yb(t,e){return t.index-e.index}function gb(t){if(!this.ad(t))return!1;mb(this,t.pixel,t.map);var e=t.map.Wa(t.pixel);if(this.j.length=0,this.C=!1,o=this.g){var o,i=[],r=ht([o=o.V().X()]),n={};(r=Op(this.a,r)).sort(yb);for(var s=0,a=r.length;s<a;++s){var p=r[s],h=p.la,l=U(p.feature),u=p.depth;u&&(l+="-"+u.join("-")),n[l]||(n[l]=Array(2)),"Circle"===p.geometry.U()&&1===p.index?nr(h=xb(e,p),o)&&!n[l][0]&&(this.j.push([p,0]),n[l][0]=p):nr(h[0],o)&&!n[l][0]?(this.j.push([p,0]),n[l][0]=p):nr(h[1],o)&&!n[l][1]?("LineString"===p.geometry.U()||"MultiLineString"===p.geometry.U())&&n[l][0]&&0===n[l][0].index||(this.j.push([p,1]),n[l][1]=p):this.Yb(t)&&U(h)in this.Sa&&!n[l][0]&&!n[l][1]&&i.push([p,o])}for(i.length&&ub(this,t),t=i.length-1;0<=t;--t)this.bm.apply(this,i[t])}return!!this.g}function db(t){this.I=!1,ub(this,t),t=t.coordinate;for(var e=0,o=this.j.length;e<o;++e){for(var i,r=(p=this.j[e])[0],n=r.depth,s=r.geometry,a=r.la,p=p[1];t.length<s.qa();)t.push(a[p][t.length]);switch(s.U()){case"Point":i=t,a[0]=a[1]=t;break;case"MultiPoint":(i=s.X())[r.index]=t,a[0]=a[1]=t;break;case"LineString":(i=s.X())[r.index+p]=t,a[p]=t;break;case"MultiLineString":case"Polygon":(i=s.X())[n[0]][r.index+p]=t,a[p]=t;break;case"MultiPolygon":(i=s.X())[n[1]][n[0]][r.index+p]=t,a[p]=t;break;case"Circle":a[0]=a[1]=t,0===r.index?(this.l=!0,s.ob(t)):(this.l=!0,s.Uc(hr(s.wa(),t))),this.l=!1}i&&(r=s,n=i,this.l=!0,r.ma(n),this.l=!1)}fb(this,t)}function vb(t){for(var e,o,i,r,n=this.j.length-1;0<=n;--n)"Circle"===(e=(r=this.j[n][0]).geometry).U()?(o=e.wa(),i=r.Pf[0],r=r.Pf[1],i.la[0]=i.la[1]=o,r.la[0]=r.la[1]=o,kp(this.a,wt(o),i),kp(this.a,e.G(),r)):kp(this.a,ht(r.la),r);return this.C&&(this.b(new Mb("modifyend",this.u,t)),this.C=!1),!1}function bb(t){var e;return!(t instanceof mi)||(on((this.R=t).map.Z())[1]||"pointermove"!=t.type||this.D||(this.va=t.pixel,mb(this,t.pixel,t.map)),this.g&&this.xb(t)&&(e=!("singleclick"!=t.type||!this.I)||this.hj()),"singleclick"==t.type&&(this.I=!1),An.call(this,t)&&!e)}function mb(t,e,o){var i=o.Wa(e),r=lt(wt(i),o.Z().Pa()*t.fa);if(0<(r=Op(t.a,r)).length){r.sort(function(t,e){return wb(i,t)-wb(i,e)});var n,s=r[0],a=s.la,p=xb(i,s),h=o.Ja(p);if(hr(e,h)<=t.fa){if(e={},"Circle"===s.geometry.U()&&1===s.index)t.pa=!0,fb(t,p);else for(n=o.Ja(a[0]),s=o.Ja(a[1]),o=pr(h,n),h=pr(h,s),n=Math.sqrt(Math.min(o,h)),t.pa=n<=t.fa,fb(t,p=t.pa?h<o?a[1]:a[0]:p),h=1,o=r.length;h<o&&(p=r[h].la,nr(a[0],p[0])&&nr(a[1],p[1])||nr(a[0],p[1])&&nr(a[1],p[0]));++h)e[U(p)]=!0;return e[U(a)]=!0,void(t.Sa=e)}}t.g&&(t.B.ha().Gb(t.g),t.g=null)}function wb(t,e){var o=e.geometry;return"Circle"===o.U()&&1===e.index?(t=pr(o.wa(),t),(o=Math.sqrt(t)-o.pd())*o):lr(t,e.la)}function xb(t,e){var o=e.geometry;return"Circle"===o.U()&&1===e.index?o.Ab(t):or(t,e.la)}function Sb(t,e,o,i,r){Up(t.a,e.G(),function(t){t.geometry===e&&(void 0===i||void 0===t.depth||Z(t.depth,i))&&t.index>o&&(t.index+=r)})}function Mb(t,e,o){Qe.call(this,t),this.features=e,this.mapBrowserEvent=o}function Pb(t){var e,o;pn.call(this,{handleEvent:Ab}),this.C=(t=t||{}).condition||vn,this.D=t.addCondition||fr,this.B=t.removeCondition||fr,this.I=t.toggleCondition||mn,this.l=t.multi||!1,this.o=t.filter||cr,this.j=t.hitTolerance||0,this.g=new s({source:new a({useSpatialIndex:!1,features:t.features,wrapX:t.wrapX}),style:t.style||(X((e=Qh()).Polygon,e.LineString),X(e.GeometryCollection,e.LineString),function(t){return t.V()?e[t.V().U()]:null}),updateWhileAnimating:!0,updateWhileInteracting:!0}),t=t.layers?"function"==typeof t.layers?t.layers:(o=t.layers,function(t){return D(o,t)}):cr,this.u=t,this.a={},d(t=this.g.ha().f,"add",this.Fn,this),d(t,"remove",this.Jn,this)}function Ab(t){if(!this.C(t))return!0;var o=this.D(t),i=this.B(t),r=this.I(t),e=!o&&!i&&!r,n=t.map,s=this.g.ha().f,a=[],p=[];if(e){for(Vt(this.a),n.we(t.pixel,function(t,e){if(this.o(t,e))return p.push(t),t=U(t),this.a[t]=e,!this.l}.bind(this),{layerFilter:this.u,hitTolerance:this.j}),e=s.dc()-1;0<=e;--e){var n=s.item(e),h=p.indexOf(n);-1<h?p.splice(h,1):(s.remove(n),a.push(n))}p.length&&s.fg(p)}else{for(n.we(t.pixel,function(t,e){if(this.o(t,e))return!o&&!r||D(s.a,t)?(i||r)&&D(s.a,t)&&(a.push(t),e=U(t),delete this.a[e]):(p.push(t),t=U(t),this.a[t]=e),!this.l}.bind(this),{layerFilter:this.u,hitTolerance:this.j}),e=a.length-1;0<=e;--e)s.remove(a[e]);s.fg(p)}return(0<p.length||0<a.length)&&this.b(new Eb(Tb,p,a,t)),dn(t)}function Eb(t,e,o,i){Qe.call(this,t),this.selected=e,this.deselected=o,this.mapBrowserEvent=i}e(lb,Mn),(r=lb.prototype).kg=function(t){var e=t.V();e&&e.U()in this.T&&this.T[e.U()].call(this,t,e),(e=this.v)&&e.c&&this.c()&&mb(this,this.va,e),d(t,"change",this.si,this)},r.Ha=function(t){this.g&&!t&&(this.B.ha().Gb(this.g),this.g=null),Mn.prototype.Ha.call(this,t)},r.setMap=function(t){this.B.setMap(t),Mn.prototype.setMap.call(this,t)},r.wn=function(t){this.kg(t.element)},r.si=function(t){this.l||(cb(this,t=t.target),this.kg(t))},r.xn=function(t){cb(this,t.element)},r.Dn=function(t,e){var o=e.X();t={feature:t,geometry:e,la:[o,o]},this.a.Ca(e.G(),t)},r.Bn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i){var n={feature:t,geometry:e,depth:[i],index:i,la:[n=o[i],n]};this.a.Ca(e.G(),n)}},r.ti=function(t,e){for(var o=e.X(),i=0,r=o.length-1;i<r;++i){var n=o.slice(i,i+2),s={feature:t,geometry:e,index:i,la:n};this.a.Ca(ht(n),s)}},r.An=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length-1;s<a;++s){var p=n.slice(s,s+2),h={feature:t,geometry:e,depth:[i],index:s,la:p};this.a.Ca(ht(p),h)}},r.En=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length-1;s<a;++s){var p=n.slice(s,s+2),h={feature:t,geometry:e,depth:[i],index:s,la:p};this.a.Ca(ht(p),h)}},r.Cn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length;s<a;++s)for(var p=n[s],h=0,l=p.length-1;h<l;++h){var u=p.slice(h,h+2),c={feature:t,geometry:e,depth:[s,i],index:h,la:u};this.a.Ca(ht(u),c)}},r.yn=function(t,e){var o=e.wa(),i={feature:t,geometry:e,index:0,la:[o,o]};i.Pf=(t={feature:t,geometry:e,index:1,la:[o,o]}).Pf=[i,t],this.a.Ca(wt(o),i),this.a.Ca(e.G(),t)},r.zn=function(t,e){var o=e.a;for(e=0;e<o.length;++e)this.T[o[e].U()].call(this,t,o[e])},r.bm=function(t,e){for(var o,i=t.la,r=t.feature,n=t.geometry,s=t.depth,a=t.index;e.length<n.qa();)e.push(0);switch(n.U()){case"MultiLineString":case"Polygon":(o=n.X())[s[0]].splice(a+1,0,e);break;case"MultiPolygon":(o=n.X())[s[1]][s[0]].splice(a+1,0,e);break;case"LineString":(o=n.X()).splice(a+1,0,e);break;default:return}this.l=!0,n.ma(o),this.l=!1,(o=this.a).remove(t),Sb(this,n,a,s,1),t={la:[i[0],e],feature:r,geometry:n,depth:s,index:a},o.Ca(ht(t.la),t),this.j.push([t,1]),e={la:[e,i[1]],feature:r,geometry:n,depth:s,index:a+1},o.Ca(ht(e.la),e),this.j.push([e,0]),this.I=!0},r.hj=function(){if(this.R&&"pointerdrag"!=this.R.type){var t,e=this.R,o=(ub(this,e),this.j),i={};for(a=o.length-1;0<=a;--a){var r=o[a],n=r[0],s=U(n.feature);n.depth&&(s+="-"+n.depth.join("-")),s in i||(i[s]={}),0===r[1]?(i[s].right=n,i[s].index=n.index):1==r[1]&&(i[s].left=n,i[s].index=n.index+1)}for(s in i){var a,p=i[s].right,h=i[s].left,l=(a=i[s].index)-1;l<0&&(l=0);var u=t=(r=(n=void 0!==h?h:p).geometry).X(),c=!1;switch(r.U()){case"MultiLineString":2<t[n.depth[0]].length&&(t[n.depth[0]].splice(a,1),c=!0);break;case"LineString":2<t.length&&(t.splice(a,1),c=!0);break;case"MultiPolygon":u=u[n.depth[1]];case"Polygon":4<(u=u[n.depth[0]]).length&&(a==u.length-1&&(a=0),u.splice(a,1),c=!0,0===a)&&(u.pop(),u.push(u[0]),l=u.length-1)}c&&(c=r,this.l=!0,c.ma(t),this.l=!1,t=[],void 0!==h&&(this.a.remove(h),t.push(h.la[0])),void 0!==p&&(this.a.remove(p),t.push(p.la[1])),void 0!==h&&void 0!==p&&(h={depth:n.depth,feature:n.feature,geometry:n.geometry,index:l,la:t},this.a.Ca(ht(h.la),h)),Sb(this,r,a,n.depth,-1),this.g&&(this.B.ha().Gb(this.g),this.g=null),o.length=0)}return this.b(new Mb("modifyend",this.u,e)),!(this.C=!1)}return!1},e(Mb,Qe),e(Pb,pn),(r=Pb.prototype).Gn=function(){return this.g.ha().f},r.Hn=function(){return this.j},r.In=function(t){return t=U(t),this.a[t]},r.Kn=function(t){this.j=t},r.setMap=function(t){var e=this.v,o=this.g.ha().f;e&&o.forEach(e.Cj,e),pn.prototype.setMap.call(this,t),this.g.setMap(t),t&&o.forEach(t.xj,t)},r.Fn=function(t){var e=this.v;e&&e.xj(t.element)},r.Jn=function(t){var e=this.v;e&&e.Cj(t.element)},e(Eb,Qe);var Tb="select";function jb(t){Mn.call(this,{handleEvent:Lb,handleDownEvent:cr,handleUpEvent:Rb}),this.l=(t=t||{}).source||null,this.R=void 0===t.vertex||t.vertex,this.C=void 0===t.edge||t.edge,this.j=t.features||null,this.pa=[],this.B={},this.T={},this.u={},this.I=null,this.g=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.va=function(t,e){return lr(this.I,t.la)-lr(this.I,e.la)}.bind(this),this.a=new Fp,this.fa={Point:this.Rn,LineString:this.wi,LinearRing:this.wi,Polygon:this.Sn,MultiPoint:this.Pn,MultiLineString:this.On,MultiPolygon:this.Qn,GeometryCollection:this.Nn,Circle:this.Mn}}function Cb(t,e,o,i){var r,n,s,a,p,h,l=i.Wa([e[0]-t.g,e[1]+t.g]),u=i.Wa([e[0]+t.g,e[1]-t.g]),l=ht([l,u]),c=Op(t.a,l),f=!1,l=!1,y=u=null;return 0<(c=t.R&&!t.C?c.filter(function(t){return"Circle"!==t.feature.V().U()}):c).length&&(t.I=o,c.sort(t.va),r=c[0].la,f="Circle"===c[0].feature.V().U(),t.R&&!t.C?(o=i.Ja(r[0]),f=i.Ja(r[1]),o=pr(e,o),e=pr(e,f),(f=(f=Math.sqrt(Math.min(o,e)))<=t.g)&&(l=!0,u=e<o?r[1]:r[0],y=i.Ja(u))):t.C&&(u=f?(n=o,c=c[0].feature.V(),s=c.pd(),c=(a=c.wa())[0],a=a[1],p=n[0]-c,n=n[1]-a,p||n||(p=1),h=Math.sqrt(p*p+n*n),[c+s*p/h,a+s*n/h]):or(o,r),hr(e,y=i.Ja(u))<=t.g)&&(l=!0,t.R)&&!f&&(o=i.Ja(r[0]),f=i.Ja(r[1]),o=pr(y,o),e=pr(y,f),f=(f=Math.sqrt(Math.min(o,e)))<=t.g)&&(u=e<o?r[1]:r[0],y=i.Ja(u)),l)&&(y=[Math.round(y[0]),Math.round(y[1])]),{nq:l,vertex:u,wq:y}}function Lb(t){var e=Cb(this,t.pixel,t.coordinate,t.map);return e.nq&&(t.coordinate=e.vertex.slice(0,2),t.pixel=e.wq),An.call(this,t)}function Rb(){var t=Wt(this.u);return t.length&&(t.forEach(this.Dj,this),this.u={}),!1}function Ib(t){var e,o;Mn.call(this,{handleDownEvent:Nb,handleDragEvent:kb,handleMoveEvent:Db,handleUpEvent:Fb}),t=t||{},this.a=null,this.j=void 0!==t.features?t.features:null,o=t.layers?"function"==typeof t.layers?t.layers:(e=t.layers,function(t){return D(e,t)}):cr,this.C=o,this.l=t.hitTolerance||0,this.g=null,d(this,so("active"),this.u,this)}function Nb(t){var e;return this.g=Ob(this,t.pixel,t.map),!(this.a||!this.g||(this.a=t.coordinate,Db.call(this,t),e=this.j||new ho([this.g]),this.b(new Gb("translatestart",e,t.coordinate)),0))}function Fb(t){var e;return!!this.a&&(this.a=null,Db.call(this,t),e=this.j||new ho([this.g]),this.b(new Gb("translateend",e,t.coordinate)),!0)}function kb(t){var o,i,e;this.a&&(o=(t=t.coordinate)[0]-this.a[0],i=t[1]-this.a[1],(e=this.j||new ho([this.g])).forEach(function(t){var e=t.V();e.translate(o,i),t.Ra(e)}),this.a=t,this.b(new Gb("translating",e,t)))}function Db(t){var e=t.map.a;Ob(this,t.pixel,t.map)?(e.classList.remove(this.a?"ol-grab":"ol-grabbing"),e.classList.add(this.a?"ol-grabbing":"ol-grab")):e.classList.remove("ol-grab","ol-grabbing")}function Ob(t,e,o){return o.we(e,function(t){if(!this.j||D(this.j.a,t))return t}.bind(t),{layerFilter:t.C,hitTolerance:t.l})}function Ub(t,e){var o=t.v;t=t.c(),o&&t||(o=o||e).a.classList.remove("ol-grab","ol-grabbing")}function Gb(t,e,o){Qe.call(this,t),this.features=e,this.coordinate=o}function p(t){var e=Xt({},t=t||{}),o=(delete e.gradient,delete e.radius,delete e.blur,delete e.shadow,delete e.weight,s.call(this,e),this.j=null,this.R=void 0!==t.shadow?t.shadow:250,this.I=void 0,this.B=null,d(this,so(Vb),this.Bl,this),this.pj(t.gradient||Bb),this.jj(void 0!==t.blur?t.blur:15),this.Uc(void 0!==t.radius?t.radius:8),d(this,so(Xb),this.cg,this),d(this,so(Wb),this.cg,this),this.cg(),t.weight||"weight"),i="string"==typeof o?function(t){return t.get(o)}:o;this.g(function(t){var e=255*(t=void 0!==(t=i(t))?Q(t,0,1):1)|0,o=this.B[e];return o||(o=[new qh({image:new af({opacity:t,src:this.I})})],this.B[e]=o),o}.bind(this)),this.set(jv,null),d(this,"render",this.Sl,this)}e(jb,Mn),(r=jb.prototype).yb=function(t,e){e=void 0===e||e;var o,i=U(t),r=t.V();r&&(o=this.fa[r.U()])&&(this.T[i]=r.G(vt()),o.call(this,t,r)),e&&(this.B[i]=d(t,"change",this.Ln,this))},r.Ak=function(t){this.yb(t)},r.Bk=function(t){this.Gb(t)},r.ui=function(t){var e;t instanceof Ov?e=t.feature:t instanceof fo&&(e=t.element),this.yb(e)},r.vi=function(t){var e;t instanceof Ov?e=t.feature:t instanceof fo&&(e=t.element),this.Gb(e)},r.Ln=function(t){var e;t=t.target,this.D?(e=U(t))in this.u||(this.u[e]=t):this.Dj(t)},r.Gb=function(e,t){t=void 0===t||t;var o=U(e),i=this.T[o];if(i){var r=this.a,n=[];for(Up(r,i,function(t){e===t.feature&&n.push(t)}),i=n.length-1;0<=i;--i)r.remove(n[i])}t&&(qe(this.B[o]),delete this.B[o])},r.setMap=function(t){var e,o=this.v,i=this.pa;this.j?e=this.j:this.l&&(e=this.l.Xe()),o&&(i.forEach(qe),i.length=0,e.forEach(this.Bk,this)),Mn.prototype.setMap.call(this,t),t&&(this.j?i.push(d(this.j,"add",this.ui,this),d(this.j,"remove",this.vi,this)):this.l&&i.push(d(this.l,"addfeature",this.ui,this),d(this.l,"removefeature",this.vi,this)),e.forEach(this.Ak,this))},r.Xc=fr,r.Dj=function(t){this.Gb(t,!1),this.yb(t,!1)},r.Mn=function(t,e){for(var o=0,i=(e=qr(e).X()[0]).length-1;o<i;++o){var r=e.slice(o,o+2),n={feature:t,la:r};this.a.Ca(ht(r),n)}},r.Nn=function(t,e){var o=e.a;for(e=0;e<o.length;++e){var i=this.fa[o[e].U()];i&&i.call(this,t,o[e])}},r.wi=function(t,e){for(var o=0,i=(e=e.X()).length-1;o<i;++o){var r=e.slice(o,o+2),n={feature:t,la:r};this.a.Ca(ht(r),n)}},r.On=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length-1;n<s;++n){var a=r.slice(n,n+2),p={feature:t,la:a};this.a.Ca(ht(a),p)}},r.Pn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i){var n={feature:t,la:[n=o[i],n]};this.a.Ca(e.G(),n)}},r.Qn=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length;n<s;++n)for(var a=r[n],p=0,h=a.length-1;p<h;++p){var l=a.slice(p,p+2),u={feature:t,la:l};this.a.Ca(ht(l),u)}},r.Rn=function(t,e){var o=e.X();t={feature:t,la:[o,o]},this.a.Ca(e.G(),t)},r.Sn=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length-1;n<s;++n){var a=r.slice(n,n+2),p={feature:t,la:a};this.a.Ca(ht(a),p)}},e(Ib,Mn),Ib.prototype.B=function(){return this.l},Ib.prototype.I=function(t){this.l=t},Ib.prototype.setMap=function(t){var e=this.v;Mn.prototype.setMap.call(this,t),Ub(this,e)},Ib.prototype.u=function(){Ub(this,null)},e(Gb,Qe),e(p,s);var Bb=["#00f","#0ff","#0f0","#ff0","#f00"],Xb=((r=p.prototype).uh=function(){return this.get(Xb)},r.Bh=function(){return this.get(Vb)},r.yi=function(){return this.get(Wb)},r.Bl=function(){for(var t=this.Bh(),e=Po(1,256),o=e.createLinearGradient(0,0,1,256),i=1/(t.length-1),r=0,n=t.length;r<n;++r)o.addColorStop(r*i,t[r]);e.fillStyle=o,e.fillRect(0,0,1,256),this.j=e.getImageData(0,0,1,256).data},r.cg=function(){var t=this.yi(),e=this.uh(),o=t+e+1,i=2*o;(i=Po(i,i)).shadowOffsetX=i.shadowOffsetY=this.R,i.shadowBlur=e,i.shadowColor="#000",i.beginPath(),e=o-this.R,i.arc(e,e,t,0,2*Math.PI,!0),i.fill(),this.I=i.canvas.toDataURL(),this.B=Array(256),this.s()},r.Sl=function(t){for(var e,o=(t=t.context).canvas,i=(o=t.getImageData(0,0,o.width,o.height)).data,r=0,n=i.length;r<n;r+=4)(e=4*i[r+3])&&(i[r]=this.j[e],i[r+1]=this.j[1+e],i[r+2]=this.j[2+e]);t.putImageData(o,0,0)},r.jj=function(t){this.set(Xb,t)},r.pj=function(t){this.set(Vb,t)},r.Uc=function(t){this.set(Wb,t)},"blur"),Vb="gradient",Wb="radius";function Zb(t){uv.call(this,t),this.v=ms(),this.j=null}function Kb(t){Zb.call(this,t),this.M=null,this.c=ms()}function zb(t,e,o,i){var r=Me(o,e,t);return o=ce(e,i,o),void 0!==(e=e.sc())&&(o*=e),void 0!==(e=t.sc())&&(o/=e),t=ce(t,o,r)/o,isFinite(t)&&0<t&&(o/=t),o}function Yb(t,e,o,i){t=o-t,e=i-e;var r=Math.sqrt(t*t+e*e);return[Math.round(o+t/r),Math.round(i+e/r)]}function Hb(t,e,g,d,o,v,i,r,n,s,a){var b,m,p,w,x=Po(Math.round(g*t),Math.round(g*e));return n.length&&(x.scale(g,g),b=vt(),n.forEach(function(t){Mt(b,t.extent)}),m=Po(Math.round(g*Dt(b)/d),Math.round(g*It(b)/d)),p=g/d,n.forEach(function(t){m.drawImage(t.image,s,s,t.image.width-2*s,t.image.height-2*s,(t.extent[0]-b[0])*p,-(t.extent[3]-b[3])*p,Dt(t.extent)*p,It(t.extent)*p)}),w=Ft(i),r.c.forEach(function(t){var e=t.source,o=t.target,i=e[1][0],r=e[1][1],n=e[2][0],s=e[2][1],a=(t=(o[0][0]-w[0])/v,-(o[0][1]-w[1])/v),p=(o[1][0]-w[0])/v,h=-(o[1][1]-w[1])/v,l=(o[2][0]-w[0])/v,u=-(o[2][1]-w[1])/v;t:{for(r=(i=[[i=i-(o=e[0][0]),r=r-(e=e[0][1]),0,0,p-t],[n=n-o,s=s-e,0,0,l-t],[0,0,i,r,h-a],[0,0,n,s,u-a]]).length,n=0;n<r;n++){for(var s=n,c=Math.abs(i[n][n]),f=n+1;f<r;f++){var y=Math.abs(i[f][n]);c<y&&(c=y,s=f)}if(!c){i=null;break t}for(c=i[s],i[s]=i[n],i[n]=c,s=n+1;s<r;s++)for(c=-i[s][n]/i[n][n],f=n;f<r+1;f++)i[s][f]=n==f?0:i[s][f]+c*i[n][f]}for(n=Array(r),s=r-1;0<=s;s--)for(n[s]=i[s][r]/i[s][s],c=s-1;0<=c;c--)i[c][r]-=i[c][s]*n[s];i=n}i&&(x.save(),x.beginPath(),r=Yb(n=(t+p+l)/3,s=(a+h+u)/3,t,a),p=Yb(n,s,p,h),l=Yb(n,s,l,u),x.moveTo(p[0],p[1]),x.lineTo(r[0],r[1]),x.lineTo(l[0],l[1]),x.clip(),x.transform(i[0],i[2],i[1],i[3],t,a),x.translate(b[0]-o,b[3]-e),x.scale(d/g,-d/g),x.drawImage(m.canvas,0,0),x.restore())}),a)&&(x.save(),x.strokeStyle="black",x.lineWidth=1,r.c.forEach(function(t){t=((n=t.target)[0][0]-w[0])/v;var e=-(n[0][1]-w[1])/v,o=(n[1][0]-w[0])/v,i=-(n[1][1]-w[1])/v,r=(n[2][0]-w[0])/v,n=-(n[2][1]-w[1])/v;x.beginPath(),x.moveTo(o,i),x.lineTo(t,e),x.lineTo(r,n),x.closePath(),x.stroke()}),x.restore()),x.canvas}function qb(t,e,o,i,r){this.i=t,this.f=e;var n,s={},a=me(this.f,this.i),p=(this.a=function(t){var e=t[0]+"/"+t[1];return s[e]||(s[e]=a(t)),s[e]},this.g=i,this.v=r*r,this.c=[],this.o=!1,this.l=this.i.i&&!!i&&!!this.i.G()&&Dt(i)==Dt(this.i.G()),this.b=this.i.G()?Dt(this.i.G()):null,this.j=this.f.G()?Dt(this.f.G()):null,t=Ft(o),e=kt(o),i=Ct(o),o=jt(o),r=this.a(t),this.a(e)),h=this.a(i),l=this.a(o);!function t(e,o,i,r,n,s,a,p,h,l){var u=ht([s,a,p,h]),c=e.b?Dt(u)/e.b:null,f=e.b,y=e.i.i&&.5<c&&c<1,g=!1;{var d;0<l&&(e.f.c&&e.j&&(d=ht([o,i,r,n]),g|=.25<Dt(d)/e.j),!y)&&e.i.c&&c&&(g|=.25<c)}if(g||!e.g||Ot(u,e.g)){if(!(g||isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(p[0])&&isFinite(p[1])&&isFinite(h[0])&&isFinite(h[1]))){if(!(0<l))return;g=!0}if(0<l&&(g||(u=e.a([(o[0]+r[0])/2,(o[1]+r[1])/2]),f=y?(rt(s[0],f)+rt(p[0],f))/2-rt(u[0],f):(s[0]+p[0])/2-u[0],u=(s[1]+p[1])/2-u[1],g=f*f+u*u>e.v),g))Math.abs(o[0]-r[0])<=Math.abs(o[1]-r[1])?(y=[(i[0]+r[0])/2,(i[1]+r[1])/2],f=e.a(y),u=[(n[0]+o[0])/2,(n[1]+o[1])/2],c=e.a(u),t(e,o,i,y,u,s,a,f,c,l-1),t(e,u,y,r,n,c,f,p,h,l-1)):(y=[(o[0]+i[0])/2,(o[1]+i[1])/2],f=e.a(y),u=[(r[0]+n[0])/2,(r[1]+n[1])/2],c=e.a(u),t(e,o,y,u,n,s,f,c,h,l-1),t(e,y,i,r,u,f,a,p,c,l-1));else{if(y){if(!e.l)return;e.o=!0}e.c.push({source:[s,p,h],target:[o,r,n]}),e.c.push({source:[s,a,p],target:[o,i,r]})}}}(this,t,e,i,o,r,p,h,l,10),this.o&&(n=1/0,this.c.forEach(function(t){n=Math.min(n,t.source[0][0],t.source[1][0],t.source[2][0])}),this.c.forEach(function(t){var e;Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-n>this.b/2&&((e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]])[0][0]-n>this.b/2&&(e[0][0]-=this.b),e[1][0]-n>this.b/2&&(e[1][0]-=this.b),e[2][0]-n>this.b/2&&(e[2][0]-=this.b),Math.max(e[0][0],e[1][0],e[2][0])-Math.min(e[0][0],e[1][0],e[2][0])<this.b/2)&&(t.source=e)},this)),s={}}function Jb(t){var e=vt();return t.c.forEach(function(t){t=t.source,Pt(e,t[0]),Pt(e,t[1]),Pt(e,t[2])}),e}function _b(t,e,o,i,r,n){this.v=e,this.l=t.G();var s=(a=e.G())?Nt(o,a):o,a=zb(t,e,Lt(s),i);this.j=new qb(t,e,s,this.l,.5*a),this.c=i,this.i=o,t=Jb(this.j),this.o=(this.Hb=n(t,a,r))?this.Hb.a:1,this.ee=this.g=null,r=2,n=[],this.Hb&&(r=0,n=this.Hb.f),v0.call(this,o,i,this.o,r,n)}function $b(t){Lv.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,state:t.state}),this.C=void 0!==t.resolutions?t.resolutions:null,this.a=null,this.fa=0}function Qb(t,e){return e=t.C?t.C[B(t.C,e,0)]:e}function tm(t,e){t.Y().src=e}function em(t,e){Qe.call(this,t),this.image=e}e(Zb,uv),Zb.prototype.S=function(t,e,o){fv(this,"precompose",o,t,void 0);var i,r,n,s=this.Y();s&&((i=void 0!==(r=e.extent)&&!yt(r,t.extent)&&Ot(r,t.extent))&&cv(o,t,r),r=this.C(),n=o.globalAlpha,o.globalAlpha=e.opacity,o.drawImage(s,0,0,+s.width,+s.height,Math.round(r[4]),Math.round(r[5]),Math.round(s.width*r[0]),Math.round(s.height*r[3])),o.globalAlpha=n,i)&&o.restore(),this.ef(o,t,e)},Zb.prototype.Ea=function(t,e,o,i,r){var n=this.a;return n.ha().Ea(t,e.viewState.resolution,e.viewState.rotation,o,e.skippedFeatureUids,function(t){return i.call(r,t,n)})},Zb.prototype.u=function(t,e,o,i){var r;if(this.Y())return this.a.ha().Ea!==Y?uv.prototype.u.apply(this,arguments):(ar(r=Ps(this.v,t.slice()),e.viewState.resolution/this.f),this.j||(this.j=Po(1,1)),this.j.clearRect(0,0,1,1),this.j.drawImage(this.Y(),r[0],r[1],1,1,0,0,1,1),0<(r=this.j.getImageData(0,0,1,1).data)[3]?o.call(i,this.a,r):void 0)},e(Kb,Zb),Kb.prototype.Y=function(){return this.M?this.M.Y():null},Kb.prototype.C=function(){return this.c},Kb.prototype.sd=function(t,e){var o,i=t.pixelRatio,r=t.size,n=t.viewState,s=n.center,a=n.resolution,p=this.a.ha(),h=t.viewHints,l=t.extent;return void 0!==e.extent&&(l=Nt(l,e.extent)),h[0]||h[1]||Ut(l)||(e=p.Y(l,a,i,n.projection))&&rv(this,e)&&(this.M=e),this.M&&(h=(e=this.M).G(),o=i*(l=e.resolution)/(a*(n=e.a)),h=js(this.c,i*r[0]/2,i*r[1]/2,o,o,0,n*(h[0]-s[0])/l,n*(s[1]-h[3])/l),js(this.v,i*r[0]/2-h[4],i*r[1]/2-h[5],i/a,-i/a,0,-s[0],-s[1]),av(t.attributions,e.f),pv(t,p),this.f=a*i/n),!!this.M},e(_b,v0),_b.prototype.ka=function(){1==this.state&&(qe(this.ee),this.ee=null),v0.prototype.ka.call(this)},_b.prototype.Y=function(){return this.g},_b.prototype.de=function(){var t=this.Hb.getState();2==t&&(this.g=Hb(Dt(this.i)/this.c,It(this.i)/this.c,this.o,this.Hb.resolution,0,this.c,this.i,this.j,[{extent:this.Hb.G(),image:this.Hb.Y()}],0)),this.state=t,this.s()},_b.prototype.load=function(){var t;0==this.state&&(this.state=1,this.s(),2==(t=this.Hb.getState())||3==t?this.de():(this.ee=d(this.Hb,"change",function(){var t=this.Hb.getState();2!=t&&3!=t||(qe(this.ee),this.ee=null,this.de())},this),this.Hb.load()))},e($b,Lv),$b.prototype.Y=function(t,e,o,i){var r=this.c;if(r&&i&&!be(r,i)){if(this.a){if(this.fa==this.i&&be(this.a.v,i)&&this.a.resolution==e&&this.a.a==o&&St(this.a.G(),t))return this.a;$e(this.a),this.a=null}return this.a=new _b(r,i,t,e,o,function(t,e,o){return this.Jc(t,e,o,r)}.bind(this)),this.fa=this.i,this.a}return this.Jc(t,e,o,i=r?r:i)},$b.prototype.o=function(t){switch((t=t.target).getState()){case 1:this.b(new em(om,t));break;case 2:this.b(new em(im,t));break;case 3:this.b(new em(rm,t))}},e(em,Qe);var om="imageloadstart",im="imageloadend",rm="imageloaderror";function nm(t){$b.call(this,{attributions:t.attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions,state:t.state}),this.pa=t.canvasFunction,this.R=null,this.T=0,this.va=void 0!==t.ratio?t.ratio:1.5}function sm(t){this.f=t.source,this.$a=ms(),this.g=Po(),this.l=[0,0],this.Sa=null==t.renderBuffer?100:t.renderBuffer,this.B=null,nm.call(this,{attributions:t.attributions,canvasFunction:this.tk.bind(this),logo:t.logo,projection:t.projection,ratio:t.ratio,resolutions:t.resolutions,state:this.f.getState()}),this.I=null,this.v=void 0,this.Ii(t.style),d(this.f,"change",this.ro,this)}function am(t,e){Av.call(this,t,e),this.o=this.f=this.M=null}function pm(t){ys.call(this,t||{})}function hm(t){Zb.call(this,t),this.c=null===this.c?null:Po(),this.o=null,this.g=[],this.l=vt(),this.va=new J(0,0,0,0),this.B=ms(),this.T=0}function lm(t,e){return e=e.getState(),t=t.a.kd(),2==e||4==e||3==e&&!t}function um(){this.b="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor=texture2D(e,a);}"}e(nm,$b),nm.prototype.Jc=function(t,e,o,i){e=Qb(this,e);var r=this.R;return r&&this.T==this.i&&r.resolution==e&&r.a==o&&yt(r.G(),t)||(Gt(t=t.slice(),this.va),(i=this.pa(t,e,o,[Dt(t)/e*o,It(t)/e*o],i))&&(r=new m0(t,e,o,this.j,i)),this.R=r,this.T=this.i),r},e(sm,nm),(r=sm.prototype).tk=function(t,n,s,e,o){var i,r,a=new _0(.5*n/s,t,n,this.f.T,this.Sa),p=(this.f.Yd(t,n,o),!1);return this.f.$b(t,function(t){var e;if(!(i=p))if((i=t.Lc())?e=i.call(t,n):this.v&&(e=this.v(t,n)),e){for(var o=!1,i=0,r=(e=Array.isArray(e)?e:[e]).length;i<r;++i)o=vv(a,t,e[i],dv(n,s),this.qo,this)||o;i=o}else i=!1;p=i},this),tv(a),p?null:(this.l[0]!=e[0]||this.l[1]!=e[1]?(this.g.canvas.width=e[0],this.g.canvas.height=e[1],this.l[0]=e[0],this.l[1]=e[1]):this.g.clearRect(0,0,e[0],e[1]),o=this,i=Lt(t),r=s/(r=n),t=js(o.$a,e[0]/2,e[1]/2,r,-r,0,-i[0],-i[1]),a.La(this.g,s,t,0,{}),this.B=a,this.g.canvas)},r.Ea=function(t,e,o,i,r,n){var s;if(this.B)return s={},this.B.Ea(t,e,0,i,r,function(t){var e=U(t).toString();if(!(e in s))return s[e]=!0,n(t)})},r.no=function(){return this.f},r.oo=function(){return this.I},r.po=function(){return this.v},r.qo=function(){this.s()},r.ro=function(){Iv(this,this.f.getState())},r.Ii=function(t){this.I=void 0!==t?t:$h,this.v=t?Jh(this.I):void 0,this.s()},e(am,Av),am.prototype.Ea=function(t,e,o,i,r){var n=this.a;return n.ha().Ea(t,e.viewState.resolution,e.viewState.rotation,o,e.skippedFeatureUids,function(t){return i.call(r,t,n)})},am.prototype.ng=function(t,e){var o=this.c.i,i=t.pixelRatio,r=t.viewState,n=r.center,s=r.resolution,a=r.rotation,p=this.M,h=this.Ib,l=this.a.ha(),u=t.viewHints,c=t.extent;return void 0!==e.extent&&(c=Nt(c,e.extent)),u[0]||u[1]||Ut(c)||(e=l.Y(c,s,i,r.projection))&&rv(this,e)&&(u=this,c=(c=p=e).Y(),h=Na(u.c.i,c),this.Ib)&&t.postRenderFunctions.push(function(t,e){t.isContextLost()||t.deleteTexture(e)}.bind(null,o,this.Ib)),p&&(o=this.c.f.j,r=this,e=o.width,u=o.height,c=i,o=n,n=s,s=a,a=p.G(),e*=n,u*=n,ws(r=r.S),Es(r,2*c/e,2*c/u),As(r,-s),Ts(r,a[0]-o[0],a[1]-o[1]),Es(r,(a[2]-a[0])/2,(a[3]-a[1])/2),Ts(r,1,1),this.o=null,ws(i=this.v),Es(i,1,-1),Ts(i,0,-1),this.M=p,this.Ib=h,av(t.attributions,p.f),pv(t,l)),!!p},am.prototype.Ue=function(t,e){return void 0!==this.Ea(t,e,0,cr,this)},am.prototype.lg=function(t,e,o,i){if(this.M&&this.M.Y())if(this.a.ha()instanceof sm){var r=Ps(e.pixelToCoordinateTransform,t.slice());if(this.Ea(r,e,0,cr,this))return o.call(i,this.a,null)}else{var n,s,r=[this.M.Y().width,this.M.Y().height];if(this.o||(n=e.size,Ts(e=ms(),-1,-1),Es(e,2/n[0],2/n[1]),Ts(e,0,n[1]),Es(e,1,-1),n=Cs(this.S.slice()),Ts(s=ms(),0,r[1]),Es(s,1,-1),Es(s,r[0]/2,r[1]/2),Ts(s,1,1),xs(s,n),xs(s,e),this.o=s),!((t=Ps(this.o,t.slice()))[0]<0||t[0]>r[0]||t[1]<0||t[1]>r[1])&&(this.f||(this.f=Po(1,1)),this.f.clearRect(0,0,1,1),this.f.drawImage(this.M.Y(),t[0],t[1],1,1,0,0,1,1),0<(r=this.f.getImageData(0,0,1,1).data)[3]))return o.call(i,this.a,r)}},e(pm,ys),pm.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new Kb(this):"webgl"===o&&(e=new am(t,this)),e},e(hm,Zb),hm.prototype.sd=function(t,e){var o=t.pixelRatio,i=t.size,r=(s=t.viewState).projection,n=s.resolution,s=s.center,a=this.a,p=a.ha(),h=p.i,l=p.Ta(r),u=l.tc(n,this.T),c=l.Da(u),f=Math.round(n/c)||1,y=t.extent;if(Ut(y=void 0!==e.extent?Nt(y,e.extent):y))return!1;var g=Re(l,y,c),d=l.Pc(u),v=l.Da(u),b=pt(l.gb(u),l.j),d=bt(d[0]+g.ca*b[0]*v,d[1]+g.da*b[1]*v,d[0]+(g.$+1)*b[0]*v,d[1]+(g.ia+1)*b[1]*v,void 0),v=p.nb(o),m=((b={})[u]={},this.Nf(p,r,b)),w=this.l,x=this.va,S=!1;for(C=g.ca;C<=g.$;++C)for(L=g.da;L<=g.ia;++L){var M=p.Nc(u,C,L,o,r);3!=M.getState()||this.a.kd()||S0(M,2),lm(this,M)||(M=x0(M)),lm(this,M)?2==M.getState()&&(b[u][M.ta.toString()]=M,S||-1!=this.g.indexOf(M)||(S=!0)):Ce(l,M.ta,m,x,w)||(M=Le(l,M.ta,x,w))&&m(u+1,M)}if(C=(C=t.viewHints)[0]||C[1],!(this.f&&16<Date.now()-t.time&&C||!S&&this.o&&yt(this.o,y)&&this.mf==h&&f==this.R&&(C||c*o/v*f==this.f))){(C=this.c)&&(L=p.Xd(u,o,r),M=Math.round((g.$-g.ca+1)*L[0]/f),L=Math.round((g.ia-g.da+1)*L[1]/f),(S=C.canvas).width!=M||S.height!=L?(this.R=f,S.width=M,S.height=L):(C.clearRect(0,0,M,L),f=this.R)),this.g.length=0,(S=Object.keys(b).map(Number)).sort(G);for(var x=0,P=S.length;x<P;++x){C=S[x];var A,m=p.Xd(C,o,r),E=(M=l.Da(C))/c,T=v*p.Wf(r),j=b[C];for(A in j){var M=j[A],C=((L=l.Aa(M.ta,w))[0]-d[0])/c*v/f,L=(d[3]-L[3])/c*v/f,R=m[0]*E/f,I=m[1]*E/f;this.Of(M,t,e,C,L,R,I,T),this.g.push(M)}}this.mf=h,this.f=c*o/v*f,this.o=d}return e=this.f/n,e=js(this.B,o*i[0]/2,o*i[1]/2,e,e,0,(this.o[0]-s[0])/this.f*o,(s[1]-this.o[3])/this.f*o),js(this.v,o*i[0]/2-e[4],o*i[1]/2-e[5],o/n,-o/n,0,-s[0],-s[1]),hv(t.usedTiles,p,u,g),lv(t,p,l,o,r,y,u,a.Ud()),sv(t,p),pv(t,p),0<this.g.length},hm.prototype.Of=function(t,e,o,i,r,n,s,a){this.a.ha().Zf(e.viewState.projection)||this.c.clearRect(i,r,n,s),(t=t.Y())&&this.c.drawImage(t,a,a,t.width-2*a,t.height-2*a,i,r,n,s)},hm.prototype.Y=function(){var t=this.c;return t?t.canvas:null},hm.prototype.C=function(){return this.B},e(um,ta);var cm=new um;function fm(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform vec4 d;void main(void){gl_Position=vec4(b*d.xy+d.zw,0.,1.);a=c;}"}e(fm,ea);var ym=new fm;function gm(t,e){this.i=t.getUniformLocation(e,"e"),this.c=t.getUniformLocation(e,"d"),this.b=t.getAttribLocation(e,"b"),this.a=t.getAttribLocation(e,"c")}function dm(t,e){Av.call(this,t,e),this.I=cm,this.fa=ym,this.f=null,this.B=new da([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),this.D=this.o=null,this.l=-1,this.R=[0,0]}function A(t){var e=Xt({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,ys.call(this,e),this.zi(void 0!==t.preload?t.preload:0),this.Ai(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}function vm(t){this.c=null,hm.call(this,t),this.I=!1,this.D=ms(),this.T="vector"==t.j?1:0}e(dm,Av),(r=dm.prototype).ka=function(){Ta(this.c.f,this.B),Av.prototype.ka.call(this)},r.Nf=function(e,i,r){var n=this.c;return function(o,t){return Cm(e,i,o,t,function(t){var e=n.a.b.hasOwnProperty(t.bb());return e&&(r[o]||(r[o]={}),r[o][t.ta.toString()]=t),e})}},r.mg=function(){Av.prototype.mg.call(this),this.f=null},r.ng=function(t,e,o){var i,r,n,s,a,p,h=this.c,l=o.b,u=t.viewState,c=u.projection,f=this.a,y=f.ha(),g=y.Ta(c),d=g.tc(u.resolution),v=g.Da(d),b=y.Xd(d,t.pixelRatio,c),m=b[0]/pt(g.gb(d),this.R)[0],w=v/m,x=y.nb(m)*y.Wf(c),S=u.center,M=t.extent,P=Re(g,M,v);if(this.o&&(a=this.o,p=P,a.ca==p.ca)&&a.da==p.da&&a.$==p.$&&a.ia==p.ia&&this.l==y.i)w=this.D;else{var A=[P.$-P.ca+1,P.ia-P.da+1];O(0<(a=Math.max(A[0]*b[0],A[1]*b[1])),29);for(var E,A=w*(L=Math.pow(2,Math.ceil(Math.log(a)/Math.LN2))),T=g.Pc(d),w=[R=T[0]+P.ca*b[0]*w,w=T[1]+P.da*b[1]*w,R+A,w+A],j=(p=t,r=L,s=(i=this).c.i,void 0===i.j||i.j!=r?(p.postRenderFunctions.push(function(t,e,o){t.isContextLost()||(t.deleteFramebuffer(e),t.deleteTexture(o))}.bind(null,s,i.g,i.Ib)),p=Ia(s,r,r),n=s.createFramebuffer(),s.bindFramebuffer(36160,n),s.framebufferTexture2D(36160,36064,3553,p,0),i.Ib=p,i.g=n,i.j=r):s.bindFramebuffer(36160,i.g),l.viewport(0,0,L,L),l.clearColor(0,0,0,0),l.clear(16384),l.disable(3042),L=La(o,this.I,this.fa),o.Qc(L),this.f||(this.f=new gm(l,L)),Ea(o,34962,this.B),l.enableVertexAttribArray(this.f.b),l.vertexAttribPointer(this.f.b,2,5126,!1,16,0),l.enableVertexAttribArray(this.f.a),l.vertexAttribPointer(this.f.a,2,5126,!1,16,8),l.uniform1i(this.f.i,0),(o={})[d]={},this.Nf(y,c,o)),C=f.kd(),L=!0,R=vt(),I=new J(0,0,0,0),N=P.ca;N<=P.$;++N)for(E=P.da;E<=P.ia;++E){if(T=y.Nc(d,N,E,m,c),void 0!==e.extent){var F=g.Aa(T.ta,R);if(!Ot(F,e.extent))continue}if(2==(F=(T=(F=2==(F=T.getState())||4==F||3==F&&!C)?T:x0(T)).getState())){if(h.a.b.hasOwnProperty(T.bb())){o[d][T.ta.toString()]=T;continue}}else if(4==F||3==F&&!C)continue;L=!1,(F=Ce(g,T.ta,j,I,R))||(T=Le(g,T.ta,I,R))&&j(d+1,T)}(e=Object.keys(o).map(Number)).sort(G);for(var k,j=new Float32Array(4),C=0,I=e.length;C<I;++C)for(k in N=o[e[C]])T=N[k],F=g.Aa(T.ta,R),j[0]=2*(F[2]-F[0])/A,j[1]=2*(F[3]-F[1])/A,j[2]=2*(F[0]-w[0])/A-1,j[3]=2*(F[1]-w[1])/A-1,l.uniform4fv(this.f.c,j),hh(h,T,b,x*m),l.drawArrays(5,0,4);L?(this.o=P,this.D=w,this.l=y.i):(this.D=this.o=null,this.l=-1,t.animate=!0)}hv(t.usedTiles,y,d,P);var D=h.j;return lv(t,y,g,m,c,M,d,f.Ud(),function(t){2!=t.getState()||h.a.b.hasOwnProperty(t.bb())||t.bb()in D.a||D.f([t,Ne(g,t.ta),g.Da(t.ta[0]),b,x*m])},this),sv(t,y),pv(t,y),ws(l=this.v),Ts(l,(Math.round(S[0]/v)*v-w[0])/(w[2]-w[0]),(Math.round(S[1]/v)*v-w[1])/(w[3]-w[1])),u.rotation&&As(l,u.rotation),Es(l,t.size[0]*u.resolution/(w[2]-w[0]),t.size[1]*u.resolution/(w[3]-w[1])),Ts(l,-.5,-.5),!0},r.lg=function(t,e,o,i){if(this.g){t=[(t=Ps(this.v,[t[0]/e.size[0],(e.size[1]-t[1])/e.size[1]].slice()))[0]*this.j,t[1]*this.j],(e=this.c.f.b).bindFramebuffer(e.FRAMEBUFFER,this.g);var r=new Uint8Array(4);if(e.readPixels(t[0],t[1],1,1,e.RGBA,e.UNSIGNED_BYTE,r),0<r[3])return o.call(i,this.a,r)}},e(A,ys),(r=A.prototype).Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new hm(this):"webgl"===o&&(e=new dm(t,this)),e},r.Ud=function(){return this.get("preload")},r.zi=function(t){this.set("preload",t)},r.kd=function(){return this.get("useInterimTilesOnError")},r.Ai=function(t){this.set("useInterimTilesOnError",t)},e(vm,hm);var bm={image:_s,hybrid:["Polygon","LineString"]},mm={hybrid:["Image","Text"],vector:_s};function E(t){var e=Xt({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,s.call(this,e),this.Bi(t.preload||0),this.Ci(t.useInterimTilesOnError||!0),O(null==t.renderMode||"image"==t.renderMode||"hybrid"==t.renderMode||"vector"==t.renderMode,28),this.j=t.renderMode||"hybrid"}function wm(t,e,o,i){function r(){delete window[s],n.parentNode.removeChild(n)}var n=document.createElement("script"),s="olc_"+U(e),a=(n.async=!0,n.src=t+(-1==t.indexOf("?")?"?":"&")+(i||"callback")+"="+s,setTimeout(function(){r(),o&&o()},1e4));window[s]=function(t){clearTimeout(a),r(),e(t)},document.getElementsByTagName("head")[0].appendChild(n)}function xm(t,e,o,i,r,n,s,a,p,h,l){if(w0.call(this,r,0),this.D=void 0!==l&&l,this.S=s,this.u=a,this.v=null,this.c=e,this.j=i,this.o=n||r,this.a=[],this.yd=null,this.g=0,n=i.Aa(this.o),a=this.j.G(),r=this.c.G(),Tt(n=a?Nt(n,a):n))if((a=t.G())&&(r=r?Nt(r,a):a),i=zb(t,o,Lt(n),i.Da(this.o[0])),!isFinite(i)||i<=0)this.state=4;else if(this.l=new qb(t,o,n,r,i*(void 0!==h?h:.5)),this.l.c.length)if(this.g=e.tc(i),o=Jb(this.l),r&&(t.i?(o[1]=Q(o[1],r[1],r[3]),o[3]=Q(o[3],r[1],r[3])):o=Nt(o,r)),Tt(o)){for(e=(t=Ie(e,o,this.g)).ca;e<=t.$;e++)for(o=t.da;o<=t.ia;o++)(h=p(this.g,e,o,s))&&this.a.push(h);this.a.length||(this.state=4)}else this.state=4;else this.state=4;else this.state=4}function Sm(t,e){for(var o=t.length,i=Array(o),r=0;r<o;++r)i[r]=function(t,o){var i=/\{z\}/g,r=/\{x\}/g,n=/\{y\}/g,s=/\{-y\}/g;return function(e){if(e)return t.replace(i,e[0].toString()).replace(r,e[1].toString()).replace(n,function(){return(-e[2]-1).toString()}).replace(s,function(){var t=o.a?o.a[e[0]]:null;return O(t,55),(t.ia-t.da+1+e[2]).toString()})}}(t[r],e);return Mm(i)}function Mm(i){return 1===i.length?i[0]:function(t,e,o){if(t)return i[rt((t[1]<<t[0])+t[2],i.length)](t,e,o)}}function Pm(){}function Am(t){var e=[],o=/\{([a-z])-([a-z])\}/.exec(t);if(o)for(var i=o[2].charCodeAt(0),r=o[1].charCodeAt(0);r<=i;++r)e.push(t.replace(o[0],String.fromCharCode(r)));else if(o=/\{(\d+)-(\d+)\}/.exec(t))for(i=parseInt(o[2],10),r=parseInt(o[1],10);r<=i;r++)e.push(t.replace(o[0],r.toString()));else e.push(t);return e}function Em(t){ah.call(this),this.highWaterMark=void 0!==t?t:2048}function Tm(t){return t.c>t.highWaterMark}function jm(t){Lv.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,state:t.state,wrapX:t.wrapX}),this.va=void 0!==t.opaque&&t.opaque,this.$a=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null,this.a=new Em(t.cacheSize),this.o=[0,0],this.uc=""}function Cm(t,e,o,i,r){if(!(e=t.Wd(e)))return!1;for(var n,s,a=!0,p=i.ca;p<=i.$;++p)for(var h=i.da;h<=i.ia;++h)n=t.Sb(o,p,h),s=!1,(s=e.b.hasOwnProperty(n)?(s=2===(n=e.get(n)).getState())&&!1!==r(n):s)||(a=!1);return a}function Lm(t,e){t.uc!==e&&(t.uc=e,t.s())}function Rm(t,e,o){var i,r,n=void 0!==o?o:t.c;return o=t.Ta(n),t.u&&n.c&&(e=(i=e)[0],t=Ne(o,i),e=ft(n=Ge(n),t)?i:(i=Dt(n),t[0]+=i*Math.ceil((n[0]-t[0])/i),o.bg(t,e))),i=e[0],n=e[1],t=e[2],(o=!(o.minZoom>i||i>o.maxZoom)&&(!(o=(r=o.G())?Ie(o,r,i):o.a?o.a[i]:null)||_(o,n,t)))?e:null}function Im(t,e){Qe.call(this,t),this.tile=e}function Nm(t){jm.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,extent:t.extent,logo:t.logo,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX}),this.tileLoadFunction=t.tileLoadFunction,this.tileUrlFunction=this.Fc?this.Fc.bind(this):Pm,this.urls=null,t.urls?this.eb(t.urls):t.url&&this.jb(t.url),t.tileUrlFunction&&this.cb(t.tileUrlFunction)}function T(t){Nm.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,extent:t.extent,logo:t.logo,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction||Dm,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX}),this.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,this.tileClass=t.tileClass||M0,this.g={},this.v={},this.Sa=t.reprojectionErrorThreshold,this.I=!1}function Fm(t,e,o,i,r,n,s){return r=(o=Rm(t,e=[e,o,i],n))?t.tileUrlFunction(o,r,n):void 0,(r=new t.tileClass(e,void 0!==r?0:4,void 0!==r?r:"",t.crossOrigin,t.tileLoadFunction)).key=s,d(r,"change",t.Li,t),r}function km(t,e,o,i,r,n){var s=t.Sb(e,o,i),a=t.uc;if(t.a.b.hasOwnProperty(s)){if((h=t.a.get(s)).key!=a){var p=h,h=Fm(t,e,o,i,r,n,a);if(0==p.getState()?h.i=p.i:h.i=p,h.i){e=h.i,o=h;do{if(2==e.getState()){e.i=null;break}}while(1!=e.getState()&&0==e.getState()?o.i=e.i:o=e,e=o.i)}t.a.replace(s,h)}}else h=Fm(t,e,o,i,r,n,a),t.a.set(s,h);return h}function Dm(t,e){t.Y().src=e}function j(t){this.B=void 0!==t.hidpi&&t.hidpi,T.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",opaque:!0,projection:v("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,tilePixelRatio:this.B?2:1,wrapX:void 0===t.wrapX||t.wrapX}),this.R=void 0!==t.culture?t.culture:"en-us",this.C=void 0!==t.maxZoom?t.maxZoom:-1,this.f=t.key,this.l=t.imagerySet,wm("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.l+"?uriScheme=https&include=ImageryProviders&key="+this.f,this.pa.bind(this),void 0,"jsonp")}(r=vm.prototype).sd=function(t,e){var o=this.a,i=o.i;return this.pa!=i&&(this.g.length=0,o=o.j,this.c||"vector"==o||(this.c=Po()),this.c)&&"vector"==o&&(this.c=null),this.pa=i,hm.prototype.sd.apply(this,arguments)},r.Of=function(t,e,o,i,r,n,s,a){var p=t,h=this.a,l=e.pixelRatio,u=e.viewState.projection,c=h.i,f=h.get(jv)||null,y=p.o;if(y.Nd||y.mf!=c||y.Kg!=f){for(var g=0,d=p.a.length;g<d;++g){var v,b,m=p.c[p.a[g]],w=(m.S=null,y.Nd=!1,h.ha()),x=w.tileGrid,S=m.ta,M=m.a,P=(E=w.Ta(u)).Da(p.ta[0]),A=x.Da(m.ta[0]),E=Nt(E=E.Aa(p.v),S=x.Aa(S));for("tile-pixels"==M.a?(v=x=w.nb(),A=Ps(A=js(this.D,0,0,1/A*v,-1/A*v,0,-S[0],-S[3]),[E[0],E[3]]).concat(Ps(A,[E[2],E[1]]))):(x=P,A=E,be(u,M)||(b=!0,m.ig(u))),y.Nd=!1,w=new _0(0,A,x,w.l,h.c),A=dv(x,l),x=m.g,f&&f!==y.Kg&&x.sort(f),S=0,E=x.length;S<E;++S){v=x[S],b&&v.V().tb(M,u);var T=void 0;if((j=v.Lc())?T=j.call(v,P):(j=h.f)&&(T=j(v,P)),T){var j=A,C=w;if(T=Array.isArray(T)?T:[T]){var L=!1;if(Array.isArray(T))for(var R=0,I=T.length;R<I;++R)L=vv(C,v,T[R],j,this.Fi,this)||L;else L=vv(C,v,T,j,this.Fi,this)||L;v=L}else v=!1;this.I=this.I||v,y.Nd=y.Nd||v}}tv(w),m.c[p.ta.toString()]=w}y.mf=c,y.Kg=f}if(this.c){if(g=e,u=this.a,l=p.o,c=u.i,(h=bm[u.j])&&l.Lg!==c)for(l.Lg=c,m=(d=p.v)[0],l=g.pixelRatio,u=(P=u.ha()).tileGrid,c=(M=P.Ta(g.viewState.projection)).Da(m),f=P.nb(),p.j||(p.j=Po()),y=p.j,g=P.Xd(m,l,g.viewState.projection),y.canvas.width=g[0],y.canvas.height=g[1],g=M.Aa(d),d=0,m=p.a.length;d<m;++d)w=(M=p.c[p.a[d]]).ta,b=l/c,P=ws(this.D),"tile-pixels"==M.a.a?(b=u.Aa(w,this.l),Es(P,A=l/f*(w=u.Da(w[0]))/c,A),Ts(P,Math.round((b[0]-g[0])/w*f),Math.round((g[3]-b[3])/w*f))):(Es(P,b,-b),Ts(P,-g[0],-g[3])),M.c[p.ta.toString()].La(y,l,P,0,{},h);hm.prototype.Of.apply(this,arguments)}},r.Ea=function(t,e,o,i,r){for(var n=e.viewState.resolution,s=e.viewState.rotation,a=(o=null==o?0:o,this.a),p={},h=this.g,l=a.ha(),u=(e=l.Ta(e.viewState.projection),l.tileGrid),c=0,f=h.length;c<f;++c){var y=h[c],g=y.ta,d=lt(g=e.Aa(g,this.l),o*n,d);if(ft(d,t))for(var g=0,v=y.a.length;g<v;++g)var b,m="tile-pixels"===(w=y.c[y.a[g]]).a.a?(b=w.ta,m=Ft(n=u.Aa(b,this.l)),n=l.nb(),b=u.Da(b[0])/n,[(t[0]-m[0])/b,(m[1]-t[1])/b]):t,w=w.c[y.ta],x=x||w.Ea(m,n,s,o,{},function(t){var e=U(t).toString();if(!(e in p))return p[e]=!0,i.call(r,t,a)})}return x},r.Fi=function(){nv(this)},r.ef=function(t,e,o){var i=(l=this.a).ha(),r=mm[l.j];if(r)for(var n=e.pixelRatio,s=e.viewState.rotation,a=e.size,p=Math.round(n*a[0]/2),a=Math.round(n*a[1]/2),h=this.g,l=l.ha().nb(),u=i.tileGrid,i=i.Ta(e.viewState.projection),c=[],f=[],y=h.length-1;0<=y;--y){var g=h[y];if(5!=g.getState())for(var d=g.ta,v=i.Aa(d)[0]-i.Aa(g.v)[0],b=0,m=g.a.length;b<m;++b){var w,x,S,M,P,A=g.c[g.a[b]],E=A.ta[0],T=u.Da(E),j=A,C=e;for(Ts(C="tile-pixels"==j.a.a?(M=(w=this.a.ha()).tileGrid,P=j.ta,w=M.Da(P[0])/w.nb(),j=C.viewState,x=C.pixelRatio,S=j.resolution/x,P=M.Aa(P,this.l),M=j.center,P=Ft(P),C=C.size,js(this.D,Math.round(x*C[0]/2),Math.round(x*C[1]/2),w/S,w/S,j.rotation,(P[0]-M[0])/w,(M[1]-P[1])/w)):yv(this,C,0),v*l/T,0),T=ev(A=A.c[d.toString()],C),t.save(),t.globalAlpha=o.opacity,Bs(t,-s,p,a),w=0,j=c.length;w<j;++w)x=c[w],E<f[w]&&(t.beginPath(),t.moveTo(T[0],T[1]),t.lineTo(T[2],T[3]),t.lineTo(T[4],T[5]),t.lineTo(T[6],T[7]),t.moveTo(x[6],x[7]),t.lineTo(x[4],x[5]),t.lineTo(x[2],x[3]),t.lineTo(x[0],x[1]),t.clip());A.La(t,n,C,s,{},r),t.restore(),c.push(T),f.push(E)}}hm.prototype.ef.apply(this,arguments)},e(E,s),(r=E.prototype).Fd=function(t){var e=null;return e="canvas"===t.U()?new vm(this):e},r.Ud=function(){return this.get("preload")},r.kd=function(){return this.get("useInterimTilesOnError")},r.Bi=function(t){this.set("preload",t)},r.Ci=function(t){this.set("useInterimTilesOnError",t)},e(xm,w0),xm.prototype.ka=function(){1==this.state&&(this.yd.forEach(qe),this.yd=null),w0.prototype.ka.call(this)},xm.prototype.Y=function(){return this.v},xm.prototype.de=function(){var t,e,o,i,r,n=[];this.a.forEach(function(t){t&&2==t.getState()&&n.push({extent:this.c.Aa(t.ta),image:t.Y()})},this),this.a.length=0,n.length?(o=this.o[0],t="number"==typeof(e=this.j.gb(o))?e:e[0],e="number"==typeof e?e:e[1],o=this.j.Da(o),i=this.c.Da(this.g),r=this.j.Aa(this.o),this.v=Hb(t,e,this.S,i,this.c.G(),o,r,this.l,n,this.u,this.D),this.state=2):this.state=3,this.s()},xm.prototype.load=function(){var i;0==this.state&&(this.state=1,this.s(),i=0,this.yd=[],this.a.forEach(function(e){var o,t=e.getState();0!=t&&1!=t||(i++,o=d(e,"change",function(){var t=e.getState();2!=t&&3!=t&&4!=t||(qe(o),--i)||(this.yd.forEach(qe),this.yd=null,this.de())},this),this.yd.push(o))},this),this.a.forEach(function(t){0==t.getState()&&t.load()}),i||setTimeout(this.de.bind(this),0))},e(Em,ah),Em.prototype.fd=function(t){for(var e,o,i;Tm(this);){if((e=(i=(o=this.a.Yc).ta[0].toString())in t)&&(o=o.ta,e=_(t[i],o[1],o[2])),e)break;$e(this.pop())}},e(jm,Lv),(r=jm.prototype).Ki=function(){return Tm(this.a)},r.fd=function(t,e){(t=this.Wd(t))&&t.fd(e)},r.Wf=function(){return 0},r.Sb=function(t,e,o){return t+"/"+e+"/"+o},r.Zf=function(){return this.va},r.ab=function(){return this.tileGrid},r.Ta=function(t){return this.tileGrid||ke(t)},r.Wd=function(t){var e=this.c;return e&&!be(e,t)?null:this.a},r.nb=function(){return this.$a},r.Xd=function(t,e,o){return o=this.Ta(o),e=this.nb(e),t=pt(o.gb(t),this.o),1==e?t:at(t,e,this.o)},r.sa=function(){this.a.clear(),this.s()},r.Ug=Y,e(Im,Qe),e(Nm,jm),(r=Nm.prototype).pb=function(){return this.tileLoadFunction},r.qb=function(){return this.tileUrlFunction},r.rb=function(){return this.urls},r.Li=function(t){switch((t=t.target).getState()){case 1:this.b(new Im("tileloadstart",t));break;case 2:this.b(new Im("tileloadend",t));break;case 3:this.b(new Im("tileloaderror",t))}},r.vb=function(t){this.a.clear(),this.tileLoadFunction=t,this.s()},r.cb=function(t,e){this.tileUrlFunction=t,void 0!==e?Lm(this,e):this.s()},r.jb=function(t){var e=this.urls=Am(t);this.cb(this.Fc?this.Fc.bind(this):Sm(e,this.tileGrid),t)},r.eb=function(t){var e=(this.urls=t).join("\n");this.cb(this.Fc?this.Fc.bind(this):Sm(t,this.tileGrid),e)},r.Ug=function(t,e,o){t=this.Sb(t,e,o),this.a.b.hasOwnProperty(t)&&this.a.get(t)},e(T,Nm),(r=T.prototype).Ki=function(){if(Tm(this.a))return!0;for(var t in this.g)if(Tm(this.g[t]))return!0;return!1},r.fd=function(t,e){for(var o in t=this.Wd(t),this.a.fd(this.a==t?e:{}),this.g){o=this.g[o];o.fd(o==t?e:{})}},r.Wf=function(t){return this.c&&t&&!be(this.c,t)?0:this.Xf()},r.Xf=function(){return 0},r.Zf=function(t){return!(this.c&&t&&!be(this.c,t))&&Nm.prototype.Zf.call(this,t)},r.Ta=function(t){var e=this.c;return!this.tileGrid||e&&!be(e,t)?((e=U(t).toString())in this.v||(this.v[e]=ke(t)),this.v[e]):this.tileGrid},r.Wd=function(t){var e=this.c;return!e||be(e,t)?this.a:((t=U(t).toString())in this.g||(this.g[t]=new Em(this.a.highWaterMark)),this.g[t])},r.Nc=function(t,e,o,i,r){var n,s,a,p,h,l;return this.c&&r&&!be(this.c,r)?(n=this.Wd(r),t=this.Sb.apply(this,o=[t,e,o]),n.b.hasOwnProperty(t)&&(s=n.get(t)),e=this.uc,s&&s.key==e?s:(a=this.c,p=this.Ta(a),h=this.Ta(r),l=Rm(this,o,r),(i=new xm(a,p,r,h,o,l,this.nb(i),this.Xf(),function(t,e,o,i){return km(this,t,e,o,i,a)}.bind(this),this.Sa,this.I)).key=e,s?(i.i=s,n.replace(t,i)):n.set(t,i),i)):km(this,t,e,o,i,r)},r.Pb=function(t){if(this.I!=t){for(var e in this.I=t,this.g)this.g[e].clear();this.s()}},r.Qb=function(t,e){(t=v(t))&&((t=U(t).toString())in this.v||(this.v[t]=e))},e(j,T);var Om=new Be({html:'<a class="ol-attribution-bing-tos" href="http://www.microsoft.com/maps/product/terms.html">Terms of Use</a>'});function Um(t){var e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",o=void 0!==t.tileGrid?t.tileGrid:De({extent:Ge(e),maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});T.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:o,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX})}function C(t){this.C=t.account,this.B=t.map||"",this.f=t.config||{},this.l={},Um.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,maxZoom:void 0!==t.maxZoom?t.maxZoom:18,minZoom:t.minZoom,projection:t.projection,state:"loading",wrapX:t.wrapX}),Gm(this)}function Gm(t){var e,o,i=JSON.stringify(t.f);t.l[i]?Bm(t,t.l[i]):(e="https://"+t.C+".cartodb.com/api/v1/map",t.B&&(e+="/named/"+t.B),(o=new XMLHttpRequest).addEventListener("load",t.Dl.bind(t,i)),o.addEventListener("error",t.Cl.bind(t)),o.open("POST",e),o.setRequestHeader("Content-type","application/json"),o.send(JSON.stringify(t.f)))}function Bm(t,e){t.jb("https://"+e.cdn_url.https+"/"+t.C+"/api/v1/map/"+e.layergroupid+"/{z}/{x}/{y}.png")}function L(t){a.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,wrapX:t.wrapX}),this.resolution=void 0,this.distance=void 0!==t.distance?t.distance:20,this.features=[],this.geometryFunction=t.geometryFunction||function(t){return O((t=t.V())instanceof m,10),t},this.source=t.source,this.source.J("change",L.prototype.sa,this)}function Xm(t){if(void 0!==t.resolution){t.features.length=0;for(var e=vt(),o=t.distance*t.resolution,i=t.source.Xe(),r={},n=0,s=i.length;n<s;n++){var a=i[n];U(a).toString()in r||!(a=t.geometryFunction(a))||(wt(a=a.X(),e),lt(e,o,e),a=(a=t.source.Uf(e)).filter(function(t){return!((t=U(t).toString())in r)&&(r[t]=!0)}),t.features.push(function(t,e){for(var o=[0,0],i=e.length-1;0<=i;--i){var r=t.geometryFunction(e[i]);r?er(o,r.X()):e.splice(i,1)}return ar(o,1/e.length),(t=new x(new m(o))).set("features",e),t}(t,a)))}}}function Vm(t,e){var o=[],i=(Object.keys(e).forEach(function(t){null!==e[t]&&void 0!==e[t]&&o.push(t+"="+encodeURIComponent(e[t]))}),o.join("&"));return(t=-1===(t=t.replace(/[?&]$/,"")).indexOf("?")?t+"?":t+"&")+i}function Wm(t){$b.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions}),this.R=void 0!==t.crossOrigin?t.crossOrigin:null,this.T=void 0===t.hidpi||t.hidpi,this.f=t.url,this.g=t.imageLoadFunction||tm,this.v=t.params||{},this.M=null,this.l=[0,0],this.I=0,this.B=void 0!==t.ratio?t.ratio:1.5}function Zm(t){$b.call(this,{projection:t.projection,resolutions:t.resolutions}),this.R=void 0!==t.crossOrigin?t.crossOrigin:null,this.l=void 0!==t.displayDpi?t.displayDpi:96,this.g=t.params||{},this.I=t.url,this.f=t.imageLoadFunction||tm,this.T=void 0===t.hidpi||t.hidpi,this.pa=void 0!==t.metersPerUnit?t.metersPerUnit:1,this.v=void 0!==t.ratio?t.ratio:1,this.va=void 0!==t.useOverlay&&t.useOverlay,this.M=null,this.B=0}function Km(t){var e=t.imageExtent,o=void 0!==t.crossOrigin?t.crossOrigin:null,i=t.imageLoadFunction||tm;$b.call(this,{attributions:t.attributions,logo:t.logo,projection:v(t.projection)}),this.M=new b0(e,void 0,1,this.j,t.url,o,i),this.f=t.imageSize||null,d(this.M,"change",this.o,this)}function zm(t){$b.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions}),this.pa=void 0!==t.crossOrigin?t.crossOrigin:null,this.g=t.url,this.v=t.imageLoadFunction||tm,this.f=t.params||{},this.l=!0,qm(this),this.T=t.serverType,this.va=void 0===t.hidpi||t.hidpi,this.M=null,this.B=[0,0],this.R=0,this.I=void 0!==t.ratio?t.ratio:1.5}j.prototype.T=function(){return this.f},j.prototype.fa=function(){return this.l},j.prototype.pa=function(t){var e,i,s,a,r,n,p;200!=t.statusCode||"OK"!=t.statusDescription||"ValidCredentials"!=t.authenticationResultCode||1!=t.resourceSets.length||1!=t.resourceSets[0].resources.length?Iv(this,"error"):(-1==(e=t.brandLogoUri).indexOf("https")&&(e=e.replace("http","https")),i=t.resourceSets[0].resources[0],s=-1==this.C?i.zoomMax:this.C,a=De({extent:t=Ge(this.c),minZoom:i.zoomMin,maxZoom:s,tileSize:(i.imageWidth==i.imageHeight?i.imageWidth:[i.imageWidth,i.imageHeight])/this.nb()}),this.tileGrid=a,r=this.R,n=this.B,this.tileUrlFunction=Mm(i.imageUrlSubdomains.map(function(t){var e=[0,0,0],o=i.imageUrl.replace("{subdomain}",t).replace("{culture}",r);return function(t){if(t)return Ee(t[0],t[1],-t[2]-1,e),t=o,n&&(t+="&dpi=d1&device=mobile"),t.replace("{quadkey}",function(t){for(var e=t[0],o=Array(e),i=1<<e-1,r=0;r<e;++r){var n=48;t[1]&i&&(n+=1),t[2]&i&&(n+=2),o[r]=String.fromCharCode(n),i>>=1}return o.join("")}(e))}})),i.imageryProviders&&(p=we(v("EPSG:4326"),this.c),(t=i.imageryProviders.map(function(t){var e=t.attribution,n={};return t.coverageAreas.forEach(function(t){var e,o=t.zoomMin,i=Math.min(t.zoomMax,s);for(t=Bt([(t=t.bbox)[1],t[0],t[3],t[2]],p),e=o;e<=i;++e){var r=e.toString(),o=Ie(a,t,e);r in n?n[r].push(o):n[r]=[o]}}),new Be({html:e,tileRanges:n})})).push(Om),this.ua(t)),this.D=e,Iv(this,"ready"))},e(Um,T),e(C,Um),(r=C.prototype).Kk=function(){return this.f},r.tq=function(t){Xt(this.f,t),Gm(this)},r.Xp=function(t){this.f=t||{},Gm(this)},r.Dl=function(t,e){if(!(e=e.target).status||200<=e.status&&e.status<300){try{var o=JSON.parse(e.responseText)}catch(t){return void Iv(this,"error")}Bm(this,o),this.l[t]=o,Iv(this,"ready")}else Iv(this,"error")},r.Cl=function(){Iv(this,"error")},e(L,a),(r=L.prototype).$n=function(){return this.distance},r.ao=function(){return this.source},r.Yd=function(t,e,o){this.source.Yd(t,e,o),e!==this.resolution&&(this.clear(),this.resolution=e,Xm(this),this.cd(this.features))},r.Yp=function(t){this.distance=t,this.sa()},r.sa=function(){this.clear(),Xm(this),this.cd(this.features),a.prototype.sa.call(this)},e(Wm,$b),(r=Wm.prototype).co=function(){return this.v},r.Jc=function(t,e,o,i){if(void 0===this.f)return null;e=Qb(this,e),o=this.T?o:1;var r=this.M;if(r&&this.I==this.i&&r.resolution==e&&r.a==o&&yt(r.G(),t))return r;Xt(r={F:"image",FORMAT:"PNG32",TRANSPARENT:!0},this.v);var n=((t=t.slice())[0]+t[2])/2,s=(t[1]+t[3])/2,a=(1!=this.B&&(a=this.B*Dt(t)/2,p=this.B*It(t)/2,t[0]=n-a,t[1]=s-p,t[2]=n+a,t[3]=s+p),e/o),p=Math.ceil(Dt(t)/a),h=Math.ceil(It(t)/a);return t[0]=n-a*p/2,t[2]=n+a*p/2,t[1]=s-a*h/2,t[3]=s+a*h/2,this.l[0]=p,this.l[1]=h,n=t,s=this.l,a=o,i=i.mb.split(":").pop(),r.SIZE=s[0]+","+s[1],r.BBOX=n.join(","),r.BBOXSR=i,r.IMAGESR=i,r.DPI=Math.round(90*a),(n=(i=this.f).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"))==i&&O(!1,50),r=Vm(n,r),this.M=new b0(t,e,o,this.j,r,this.R,this.g),this.I=this.i,d(this.M,"change",this.o,this),this.M},r.bo=function(){return this.g},r.eo=function(){return this.f},r.fo=function(t){this.M=null,this.g=t,this.s()},r.ho=function(t){t!=this.f&&(this.f=t,this.M=null,this.s())},r.io=function(t){Xt(this.v,t),this.M=null,this.s()},e(Zm,$b),(r=Zm.prototype).ko=function(){return this.g},r.Jc=function(t,e,o){e=Qb(this,e),o=this.T?o:1;var i,r,n,s,a,p,h,l,u=this.M;return u&&this.B==this.i&&u.resolution==e&&u.a==o&&yt(u.G(),t)||(1!=this.v&&Gt(t=t.slice(),this.v),l=[Dt(t)/e*o,It(t)/e*o],void 0!==this.I?(u=this.I,i=Lt(t),r=this.pa,n=Dt(t),s=It(t),a=l[0],p=l[1],h=.0254/this.l,l={OPERATION:this.va?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.l,SETDISPLAYWIDTH:Math.round(l[0]),SETDISPLAYHEIGHT:Math.round(l[1]),SETVIEWSCALE:a*s<p*n?n*r/(a*h):s*r/(p*h),SETVIEWCENTERX:i[0],SETVIEWCENTERY:i[1]},Xt(l,this.g),u=Vm(u,l),d(u=new b0(t,e,o,this.j,u,this.R,this.f),"change",this.o,this)):u=null,this.M=u,this.B=this.i),u},r.jo=function(){return this.f},r.mo=function(t){Xt(this.g,t),this.s()},r.lo=function(t){this.M=null,this.f=t,this.s()},e(Km,$b),Km.prototype.Jc=function(t){return Ot(t,this.M.G())?this.M:null},Km.prototype.o=function(t){var e,o,i,r,n;2==this.M.getState()&&(i=this.M.G(),e=this.M.Y(),n=this.f?(o=this.f[0],this.f[1]):(o=e.width,e.height),(i=Math.ceil(Dt(i)/(It(i)/n)))!=o)&&(r=(i=Po(i,n)).canvas,i.drawImage(e,0,0,o,n,0,0,r.width,r.height),this.M.Og(r)),$b.prototype.o.call(this,t)},e(zm,$b);var Ym=[101,101];function Hm(t,e,o,i,r,n){if(O(void 0!==t.g,9),n[t.l?"CRS":"SRS"]=r.mb,"STYLES"in t.f||(n.STYLES=""),1!=i)switch(t.T){case"geoserver":i=90*i+.5|0,n.FORMAT_OPTIONS="FORMAT_OPTIONS"in n?n.FORMAT_OPTIONS+";dpi:"+i:"dpi:"+i;break;case"mapserver":n.MAP_RESOLUTION=90*i;break;case"carmentaserver":case"qgis":n.DPI=90*i;break;default:O(!1,8)}return n.WIDTH=o[0],n.HEIGHT=o[1],o=r.b,r=t.l&&"ne"==o.substr(0,2)?[e[1],e[0],e[3],e[2]]:e,n.BBOX=r.join(","),Vm(t.g,n)}function qm(t){t.l=0<=tr(t.f.VERSION||"1.3.0")}function Jm(t){var e=void 0!==(t=t||{}).attributions?t.attributions:[_m];Um.call(this,{attributions:e,cacheSize:t.cacheSize,crossOrigin:void 0!==t.crossOrigin?t.crossOrigin:"anonymous",opaque:void 0===t.opaque||t.opaque,maxZoom:void 0!==t.maxZoom?t.maxZoom:19,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,url:void 0!==t.url?t.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:t.wrapX})}(r=zm.prototype).so=function(t,e,o,i){var r,n;if(void 0!==this.g)return r=Rt(t,e,0,Ym),n={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS},Xt(n,this.f,i),i=Math.floor((r[3]-t[1])/e),n[this.l?"I":"X"]=Math.floor((t[0]-r[0])/e),n[this.l?"J":"Y"]=i,Hm(this,r,Ym,1,v(o),n)},r.uo=function(){return this.f},r.Jc=function(t,e,o,i){var r,n,s;return void 0===this.g?null:(r=(e=Qb(this,e))/(o=1==o||this.va&&void 0!==this.T?o:1),s=Rt(n=Lt(t),r,0,[Math.ceil(Dt(t)/r),Math.ceil(It(t)/r)]),t=Rt(n,r,0,[Math.ceil(this.I*Dt(t)/r),Math.ceil(this.I*It(t)/r)]),(n=this.M)&&this.R==this.i&&n.resolution==e&&n.a==o&&yt(n.G(),s)?n:(Xt(s={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},this.f),this.B[0]=Math.round(Dt(t)/r),this.B[1]=Math.round(It(t)/r),i=Hm(this,t,this.B,o,i,s),this.M=new b0(t,e,o,this.j,i,this.pa,this.v),this.R=this.i,d(this.M,"change",this.o,this),this.M))},r.to=function(){return this.v},r.vo=function(){return this.g},r.wo=function(t){this.M=null,this.v=t,this.s()},r.xo=function(t){t!=this.g&&(this.g=t,this.M=null,this.s())},r.yo=function(t){Xt(this.f,t),qm(this),this.M=null,this.s()},e(Jm,Um);var _m=new Be({html:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.'}),fi=(mp.df={},mp.df.Af=function(){},mp.df=mp.df||{});function $m(u){var c=!0;try{new ImageData(10,10)}catch(t){c=!1}return function(t){var e=t.buffers,o=t.meta,i=t.width,r=t.height,n=e.length,s=e[0].byteLength;if(t.imageOps){for(s=Array(n),t=0;t<n;++t){var a=t,p=new Uint8ClampedArray(e[t]),h=i,l=r,p=c?new ImageData(p,h,l):{data:p,width:h,height:l};s[a]=p}i=u(s,o).data}else{for(i=new Uint8ClampedArray(s),r=Array(n),a=Array(n),t=0;t<n;++t)r[t]=new Uint8ClampedArray(e[t]),a[t]=[0,0,0,0];for(e=0;e<s;e+=4){for(t=0;t<n;++t)p=r[t],a[t][0]=p[e],a[t][1]=p[e+1],a[t][2]=p[e+2],a[t][3]=p[e+3];t=u(a,o),i[e]=t[0],i[e+1]=t[1],i[e+2]=t[2],i[e+3]=t[3]}}return i.buffer}}function Qm(t){this.Ff=!!t.$l;var e,o,i,r,n=[];if(e=0===t.threads?0:!this.Ff&&t.threads||1)for(var s=0;s<e;++s)n[s]=function(e,t){var o=Object.keys(e.lib||{}).map(function(t){return"var "+t+" = "+e.lib[t].toString()+";"}).concat(["var __minion__ = ("+$m.toString()+")(",e.operation.toString(),");",'self.addEventListener("message", function(event) {'," var buffer = __minion__(event.data);"," self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),o=URL.createObjectURL(new Blob(o,{type:"text/javascript"}));return(o=new Worker(o)).addEventListener("message",t),o}(t,this.gh.bind(this,s));else n[0]=(o=t,i=this.gh.bind(this,0),r=$m(o.operation),{postMessage:function(t){setTimeout(function(){i({data:{buffer:r(t),meta:t.meta}})},0)}});this.qe=n,this.Ed=[],this.fk=t.rp||1/0,this.oe=0,this.bd={},this.Gf=null}var t1=!0;try{new ImageData(10,10)}catch(t){t1=!1}var e1=document.createElement("canvas").getContext("2d");function o1(t){this.B=null,this.va=void 0!==t.operationType?t.operationType:"pixel",this.Sa=void 0!==t.threads?t.threads:1,this.g=function(t){for(var e=t.length,o=Array(e),i=0;i<e;++i){var r=i,n=t[i],s=null;n instanceof jm?(n=new A({source:n}),s=new hm(n)):n instanceof $b&&(n=new pm({source:n}),s=new Kb(n)),o[r]=s}return o}(t.sources);for(var e=0,o=this.g.length;e<o;++e)d(this.g[e],"change",this.s,this);this.T=new qi(function(){return 1},this.s.bind(this));for(var o={},i=0,r=(e=this.g.map(function(t){return us(t.a)})).length;i<r;++i)o[U(e[i].layer)]=e[i];this.f=null,this.I={animate:!1,attributions:{},coordinateToPixelTransform:ms(),extent:null,focus:null,index:0,layerStates:o,layerStatesArray:e,logos:{},pixelRatio:1,pixelToCoordinateTransform:ms(),postRenderFunctions:[],size:[0,0],skippedFeatureUids:{},tileQueue:this.T,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{}},$b.call(this,{}),t.operation&&this.v(t.operation,t.lib)}Qm.prototype.pp=function(t,e,o){this.dk({inputs:t,Qh:e,callback:o}),this.dh()},Qm.prototype.dk=function(t){for(this.Ed.push(t);this.Ed.length>this.fk;)this.Ed.shift().callback(null,null)},Qm.prototype.dh=function(){if(0===this.oe&&0<this.Ed.length){var t=this.Gf=this.Ed.shift(),e=t.inputs[0].width,o=t.inputs[0].height,i=t.inputs.map(function(t){return t.data.buffer}),r=this.qe.length;if(1===(this.oe=r))this.qe[0].postMessage({buffers:i,meta:t.Qh,imageOps:this.Ff,width:e,height:o},i);else for(var n=4*Math.ceil(t.inputs[0].data.length/4/r),s=0;s<r;++s){for(var a=s*n,p=[],h=0,l=i.length;h<l;++h)p.push(i[s].slice(a,a+n));this.qe[s].postMessage({buffers:p,meta:t.Qh,imageOps:this.Ff,width:e,height:o},p)}}},Qm.prototype.gh=function(t,e){this.Jq||(this.bd[t]=e.data,--this.oe,0===this.oe&&this.gk())},Qm.prototype.gk=function(){var t,e,o=this.Gf,i=this.qe.length;if(1===i)var r=new Uint8ClampedArray(this.bd[0].buffer),n=this.bd[0].meta;else for(var s=o.inputs[0].data.length,r=new Uint8ClampedArray(s),n=Array(s),s=4*Math.ceil(s/4/i),a=0;a<i;++a){var p=a*s;r.set(new Uint8ClampedArray(this.bd[a].buffer),p),n[a]=this.bd[a].meta}this.Gf=null,this.bd={},o.callback(null,(t=r,e=o.inputs[0].width,o=o.inputs[0].height,t1?new ImageData(t,e,o):((e=e1.createImageData(e,o)).data.set(t),e)),n),this.dh()},fi.default={Af:Qm},fi.Af=Qm,e(o1,$b),o1.prototype.v=function(t,e){this.B=new mp.df.Af({operation:t,$l:"image"===this.va,rp:1,lib:e,threads:this.Sa}),this.s()},o1.prototype.Y=function(t,e,o,i){o=!0;for(var r=0,n=this.g.length;r<n;++r)if("ready"!==(h=this.g[r].a.ha()).getState()){o=!1;break}if(!o)return null;if((o=Xt({},this.I)).viewState=Xt({},o.viewState),h=Lt(t),o.extent=t.slice(),o.focus=h,o.size[0]=Math.round(Dt(t)/e),o.size[1]=Math.round(It(t)/e),(r=o.viewState).center=h,r.projection=i,r.resolution=e,Ji((this.l=o).tileQueue,16,16),this.f&&(i=this.f.resolution,o=this.f.G(),e===i&&St(t,o)||(this.f=null)),!this.f||this.i!==this.R)t:{for(t=this.l,i=this.g.length,e=Array(i),o=0;o<i;++o){var s,a,p,h=this.g[o],r=t,n=t.layerStatesArray[o];if(!(h=h.sd(r,n)?(s=r.size[0],a=r.size[1],!i1||(p=i1.canvas).width!==s||p.height!==a?i1=Po(s,a):i1.clearRect(0,0,s,a),h.S(r,n,i1),i1.getImageData(0,0,s,a)):null))break t;e[o]=h}this.b(new r1(n1,t,i={})),this.B.pp(e,i,this.pa.bind(this,t))}return this.f},o1.prototype.pa=function(t,e,o,i){var r,n;!e&&o&&(e=t.extent,(r=t.viewState.resolution)===this.l.viewState.resolution)&&St(e,this.l.extent)&&(this.f?n=this.f.Y().getContext("2d"):(n=Po(Math.round(Dt(e)/r),Math.round(It(e)/r)),this.f=new m0(e,r,1,this.j,n.canvas)),n.putImageData(o,0,0),this.s(),this.R=this.i,this.b(new r1(s1,t,i)))};var i1=null;function r1(t,e,o){Qe.call(this,t),this.extent=e.extent,this.resolution=e.viewState.resolution/e.pixelRatio,this.data=o}e(r1,Qe),o1.prototype.Jc=function(){return null};var n1="beforeoperations",s1="afteroperations";function a1(t){var e=t.layer.indexOf("-"),e=l1[-1==e?t.layer:t.layer.slice(0,e)],o=h1[t.layer];Um.call(this,{attributions:p1,cacheSize:t.cacheSize,crossOrigin:"anonymous",maxZoom:(null!=t.maxZoom?t:e).maxZoom,minZoom:(null!=t.minZoom?t:e).minZoom,opaque:o.opaque,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,url:void 0!==t.url?t.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+t.layer+"/{z}/{x}/{y}."+o.Lb,wrapX:t.wrapX})}e(a1,Um);var p1=[new Be({html:'Map tiles by <a href="http://stamen.com/">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.'}),_m],h1={terrain:{Lb:"jpg",opaque:!0},"terrain-background":{Lb:"jpg",opaque:!0},"terrain-labels":{Lb:"png",opaque:!1},"terrain-lines":{Lb:"png",opaque:!1},"toner-background":{Lb:"png",opaque:!0},toner:{Lb:"png",opaque:!0},"toner-hybrid":{Lb:"png",opaque:!1},"toner-labels":{Lb:"png",opaque:!1},"toner-lines":{Lb:"png",opaque:!1},"toner-lite":{Lb:"png",opaque:!0},watercolor:{Lb:"jpg",opaque:!0}},l1={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:1,maxZoom:16}};function R(t){T.call(this,{attributions:(t=t||{}).attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.f=t.params||{},this.l=vt(),Lm(this,u1(this))}function u1(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function c1(t){jm.call(this,{opaque:!1,projection:t.projection,tileGrid:t.tileGrid,wrapX:void 0===t.wrapX||t.wrapX})}function f1(t,e,o){w0.call(this,t,2),this.c=e,this.Ia=o,this.a=null}function y1(t){var e;this.f=null,T.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,projection:v("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,wrapX:void 0===t.wrapX||t.wrapX}),t.url?t.jsonp?wm(t.url,this.og.bind(this),this.Ve.bind(this)):((e=new XMLHttpRequest).addEventListener("load",this.Ao.bind(this)),e.addEventListener("error",this.zo.bind(this)),e.open("GET",t.url),e.send()):t.tileJSON?this.og(t.tileJSON):O(!1,51)}function g1(t){var e;jm.call(this,{projection:v("EPSG:3857"),state:"loading"}),this.v=void 0===t.preemptive||t.preemptive,this.l=Pm,this.g=void 0,this.f=t.jsonp||!1,t.url?this.f?wm(t.url,this.pg.bind(this),this.We.bind(this)):((e=new XMLHttpRequest).addEventListener("load",this.Eo.bind(this)),e.addEventListener("error",this.Do.bind(this)),e.open("GET",t.url),e.send()):t.tileJSON?this.pg(t.tileJSON):O(!1,51)}function d1(t,e,o,i,r,n){w0.call(this,t,e),this.o=o,this.a=i,this.v=r,this.c=this.j=this.g=null,this.l=n}function v1(t){var e;0==t.state&&(t.state=1,t.l?wm(t.o,t.Ji.bind(t),t.De.bind(t)):((e=new XMLHttpRequest).addEventListener("load",t.Co.bind(t)),e.addEventListener("error",t.Bo.bind(t)),e.open("GET",t.o),e.send()))}function I(t){var e=(t=t||{}).params||{};T.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,opaque:!(!("TRANSPARENT"in e)||e.TRANSPARENT),projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.C=void 0!==t.gutter?t.gutter:0,this.f=e,this.l=!0,this.B=t.serverType,this.T=void 0===t.hidpi||t.hidpi,this.R="",m1(this),this.fa=vt(),x1(this),Lm(this,w1(this))}function b1(t,e,o,i,r,n,s){var a=t.urls;if(a){if(s.WIDTH=o[0],s.HEIGHT=o[1],s[t.l?"CRS":"SRS"]=n.mb,"STYLES"in t.f||(s.STYLES=""),1!=r)switch(t.B){case"geoserver":o=90*r+.5|0,s.FORMAT_OPTIONS="FORMAT_OPTIONS"in s?s.FORMAT_OPTIONS+";dpi:"+o:"dpi:"+o;break;case"mapserver":s.MAP_RESOLUTION=90*r;break;case"carmentaserver":case"qgis":s.DPI=90*r;break;default:O(!1,52)}return n=n.b,t.l&&"ne"==n.substr(0,2)&&(t=i[0],i[0]=i[1],i[1]=t,t=i[2],i[2]=i[3],i[3]=t),s.BBOX=i.join(","),Vm(1==a.length?a[0]:a[rt((e[1]<<e[0])+e[2],a.length)],s)}}function m1(t){var e=0,o=[];if(t.urls)for(var i=0,r=t.urls.length;i<r;++i)o[e++]=t.urls[i];t.R=o.join("#")}function w1(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function x1(t){t.l=0<=tr(t.f.VERSION||"1.3.0")}function S1(t,e,o,i,r,n,s,a,p,h,l,u,c,f){var y,g;w0.call(this,t,e),this.j=null,this.o={Nd:!1,Kg:null,mf:-1,Lg:-1},this.c=h,this.a=[],this.u=o,this.v=n,this.g=[],this.l=[],n&&(y=p.Aa(n),g=p.Da(t[0]),a.Rf(y,a.tc(g),function(t){var e,o=Nt(y,a.Aa(t));.5<=Dt(o)/g&&.5<=It(o)/g&&(o=t.toString(),(e=h[o])||(e=s(t,l,u),e=h[o]=new c(t,null==e?4:0,null==e?"":e,i,r),this.l.push(d(e,"change",f))),e.j++,this.a.push(o))}.bind(this)))}function M1(t,e){t.Pg(bl(e,t.o,t.$o.bind(t),t.Zo.bind(t)))}function P1(t,e,o,i,r){w0.call(this,t,e),this.j=0,this.o=i,this.g=null,this.c={},this.u=r,this.l=o}function A1(t){Nm.call(this,{attributions:t.attributions,cacheSize:void 0!==t.cacheSize?t.cacheSize:128,extent:t.extent,logo:t.logo,opaque:!1,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction||M1,tileUrlFunction:t.tileUrlFunction,tilePixelRatio:t.tilePixelRatio,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.g=t.format||null,this.v={},this.l=null==t.overlaps||t.overlaps,this.tileClass=t.tileClass||P1,this.f={},this.tileGrid||(this.tileGrid=this.Ta(v(t.projection||"EPSG:3857")))}function E1(t){this.o=t.matrixIds,Te.call(this,{extent:t.extent,origin:t.origin,origins:t.origins,resolutions:t.resolutions,tileSize:t.tileSize,tileSizes:t.tileSizes,sizes:t.sizes})}function T1(t,e,o){var r=[],n=[],s=[],a=[],p=[],h=void 0!==o?o:[],l=(o=v(t.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))).sc(),u="ne"==o.b.substr(0,2);return t.TileMatrix.sort(function(t,e){return e.ScaleDenominator-t.ScaleDenominator}),t.TileMatrix.forEach(function(e){var t,o,i;(t=!(0<h.length)||W(h,function(t){return e.Identifier==t.TileMatrix}))&&(n.push(e.Identifier),t=28e-5*e.ScaleDenominator/l,o=e.TileWidth,i=e.TileHeight,s.push(u?[e.TopLeftCorner[1],e.TopLeftCorner[0]]:e.TopLeftCorner),r.push(t),a.push(o==i?o:[o,i]),p.push([e.MatrixWidth,-e.MatrixHeight]))}),new E1({extent:e,origins:s,resolutions:r,matrixIds:n,tileSizes:a,sizes:p})}function N(t){this.fa=void 0!==t.version?t.version:"1.0.0",this.C=void 0!==t.format?t.format:"image/jpeg",this.f=t.dimensions||{},this.B=t.layer,this.l=t.matrixSet,this.R=t.style;var e=t.urls,i=(void 0===e&&void 0!==t.url&&(e=Am(t.url)),this.T=void 0!==t.requestEncoding?t.requestEncoding:"KVP"),r=t.tileGrid,o={layer:this.B,style:this.R,tilematrixset:this.l},n=("KVP"==i&&Xt(o,{Service:"WMTS",Request:"GetTile",Version:this.fa,Format:this.C}),this.f),s=e&&0<e.length?Mm(e.map(function(e){return e="KVP"==i?Vm(e,o):e.replace(/\{(\w+?)\}/g,function(t,e){return e.toLowerCase()in o?o[e.toLowerCase()]:t}),function(t){var o;if(t)return o={TileMatrix:r.o[t[0]],TileCol:t[1],TileRow:-t[2]-1},Xt(o,n),t=e,"KVP"==i?Vm(t,o):t.replace(/\{(\w+?)\}/g,function(t,e){return o[e]})}})):Pm;T.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:r,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:s,urls:e,wrapX:void 0!==t.wrapX&&t.wrapX}),Lm(this,j1(this))}function j1(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function C1(t){var e=(t=t||{}).size,o=e[0],i=e[1],n=[],r=256;switch(void 0!==t.tierSizeCalculation?t.tierSizeCalculation:R1){case R1:for(;r<o||r<i;)n.push([Math.ceil(o/r),Math.ceil(i/r)]),r+=r;break;case I1:for(;r<o||r<i;)n.push([Math.ceil(o/r),Math.ceil(i/r)]),o>>=1,i>>=1;break;default:O(!1,53)}n.push([1,1]),n.reverse();for(var r=[1],s=[0],i=1,o=n.length;i<o;i++)r.push(1<<i),s.push(n[i-1][0]*n[i-1][1]+s[i-1]);r.reverse(),e=new Te({extent:e=[0,-e[1],e[0],0],origin:Ft(e),resolutions:r}),(r=t.url)&&-1==r.indexOf("{TileGroup}")&&(r+="{TileGroup}/{z}-{x}-{y}.jpg"),r=Mm((r=Am(r)).map(function(r){return function(t){var e,o,i;if(t)return e=t[0],o=t[1],i={z:e,x:o,y:t=-t[2]-1,TileGroup:"TileGroup"+((o+t*n[e][0]+s[e])/256|0)},r.replace(/\{(\w+?)\}/g,function(t,e){return i[e]})}})),T.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:L1,tileGrid:e,tileUrlFunction:r})}function L1(t,e,o,i,r){M0.call(this,t,e,o,i,r),this.a=null}e(R,T),R.prototype.C=function(){return this.f},R.prototype.nb=function(t){return t},R.prototype.Fc=function(t,e,o){var i,r,n,s=this.tileGrid;if(!((s=s||this.Ta(o)).b.length<=t[0]))return i=s.Aa(t,this.l),r=pt(s.gb(t[0]),this.o),1!=e&&(r=at(r,e,this.o)),Xt(s={F:"image",FORMAT:"PNG32",TRANSPARENT:!0},this.f),(n=this.urls)?(o=o.mb.split(":").pop(),s.SIZE=r[0]+","+r[1],s.BBOX=i.join(","),s.BBOXSR=o,s.IMAGESR=o,s.DPI=Math.round(s.DPI?s.DPI*e:90*e),Vm(t=(1==n.length?n[0]:n[rt((t[1]<<t[0])+t[2],n.length)]).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"),s)):void 0},R.prototype.B=function(t){Xt(this.f,t),Lm(this,u1(this))},e(c1,jm),c1.prototype.Nc=function(t,e,o){var i,r=this.Sb(t,e,o);return this.a.b.hasOwnProperty(r)?this.a.get(r):(i=pt(this.tileGrid.gb(t)),i=new f1(t=[t,e,o],i,e=(e=Rm(this,t))?Rm(this,e).toString():""),this.a.set(r,i),i)},e(f1,w0),f1.prototype.Y=function(){var t,e;return this.a||((e=Po((t=this.c)[0],t[1])).strokeStyle="black",e.strokeRect(.5,.5,t[0]+.5,t[1]+.5),e.fillStyle="black",e.textAlign="center",e.textBaseline="middle",e.font="24px sans-serif",e.fillText(this.Ia,t[0]/2,t[1]/2),this.a=e.canvas)},f1.prototype.load=function(){},e(y1,T),(r=y1.prototype).Ao=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.Ve()}this.og(e)}else this.Ve()},r.zo=function(){this.Ve()},r.pl=function(){return this.f},r.og=function(t){var e,o=v("EPSG:4326"),i=this.c,r=(t.bounds&&(n=we(o,i),e=Bt(t.bounds,n)),t.minzoom||0),n=t.maxzoom||22;if(this.tileGrid=i=De({extent:Ge(i),maxZoom:n,minZoom:r}),this.tileUrlFunction=Sm(t.tiles,i),void 0!==t.attribution&&!this.j){o=void 0!==e?e:o.G(),e={};for(;r<=n;++r)e[r.toString()]=[Ie(i,o,r)];this.ua([new Be({html:t.attribution,tileRanges:e})])}this.f=t,Iv(this,"ready")},r.Ve=function(){Iv(this,"error")},e(g1,jm),(r=g1.prototype).Eo=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.We()}this.pg(e)}else this.We()},r.Do=function(){this.We()},r.ml=function(){return this.g},r.zk=function(t,e,o,i,r){var n,s,a;this.tileGrid?(e=this.tileGrid.Be(t,e),e=this.Nc(e[0],e[1],e[2],1,this.c),n=t,s=o,a=i,t=r,0==e.state&&!0===t?(Ye(e,"change",function(){s.call(a,this.getData(n))},e),v1(e)):!0===t?setTimeout(function(){s.call(a,this.getData(n))}.bind(e),0):s.call(a,e.getData(n))):!0===r?setTimeout(function(){o.call(i,null)},0):o.call(i,null)},r.We=function(){Iv(this,"error")},r.pg=function(t){var e,o=v("EPSG:4326"),i=this.c,r=(t.bounds&&(n=we(o,i),e=Bt(t.bounds,n)),t.minzoom||0),n=t.maxzoom||22,s=(this.tileGrid=i=De({extent:Ge(i),maxZoom:n,minZoom:r}),this.g=t.template,t.grids);if(s){if(this.l=Sm(s,i),void 0!==t.attribution){for(o=void 0!==e?e:o.G(),e={};r<=n;++r)e[s=r.toString()]=[Ie(i,o,r)];this.ua([new Be({html:t.attribution,tileRanges:e})])}Iv(this,"ready")}else Iv(this,"error")},r.Nc=function(t,e,o,i,r){var n=this.Sb(t,e,o);return this.a.b.hasOwnProperty(n)?this.a.get(n):(e=Rm(this,t=[t,e,o],r),i=new d1(t,void 0!==(i=this.l(e,i,r))?0:4,void 0!==i?i:"",this.tileGrid.Aa(t),this.v,this.f),this.a.set(n,i),i)},r.Ug=function(t,e,o){t=this.Sb(t,e,o),this.a.b.hasOwnProperty(t)&&this.a.get(t)},e(d1,w0),(r=d1.prototype).Y=function(){return null},r.getData=function(t){var e;return!this.g||!this.j||"string"!=typeof(e=this.g[Math.floor((1-(t[1]-this.a[1])/(this.a[3]-this.a[1]))*this.g.length)])?null:(93<=(e=e.charCodeAt(Math.floor((t[0]-this.a[0])/(this.a[2]-this.a[0])*e.length)))&&e--,35<=e&&e--,t=null,(e-=32)in this.j&&(e=this.j[e],t=this.c&&e in this.c?this.c[e]:e),t)},r.bb=function(){return this.o},r.De=function(){this.state=3,this.s()},r.Ji=function(t){this.g=t.grid,this.j=t.keys,this.c=t.data,this.state=4,this.s()},r.Co=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.De()}this.Ji(e)}else this.De()},r.Bo=function(){this.De()},r.load=function(){this.v&&v1(this)},e(I,T),(r=I.prototype).Fo=function(t,e,o,i){o=v(o);var r,n,s,a=this.tileGrid;if(e=(a=a||this.Ta(o)).Be(t,e),!(a.b.length<=e[0]))return r=a.Da(e[0]),n=a.Aa(e,this.fa),a=pt(a.gb(e[0]),this.o),(s=this.C)&&(a=st(a,s,this.o),n=lt(n,r*s,n)),s={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS},Xt(s,this.f,i),i=Math.floor((n[3]-t[1])/r),s[this.l?"I":"X"]=Math.floor((t[0]-n[0])/r),s[this.l?"J":"Y"]=i,b1(this,e,a,n,1,o,s)},r.Xf=function(){return this.C},r.Sb=function(t,e,o){return this.R+T.prototype.Sb.call(this,t,e,o)},r.Go=function(){return this.f},r.nb=function(t){return this.T&&void 0!==this.B?t:1},r.Fc=function(t,e,o){var i,r,n,s=this.tileGrid;if(!((s=s||this.Ta(o)).b.length<=t[0]))return 1==e||this.T&&void 0!==this.B||(e=1),i=s.Da(t[0]),r=s.Aa(t,this.fa),s=pt(s.gb(t[0]),this.o),(n=this.C)&&(s=st(s,n,this.o),r=lt(r,i*n,r)),1!=e&&(s=at(s,e,this.o)),Xt(i={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},this.f),b1(this,t,s,r,e,o,i)},r.eb=function(t){T.prototype.eb.call(this,t),m1(this)},r.Ho=function(t){Xt(this.f,t),m1(this),x1(this),Lm(this,w1(this))},e(S1,w0),S1.prototype.ka=function(){for(var t=0,e=this.a.length;t<e;++t){var o=this.a[t],i=this.c[o];i.j--,i.j||(delete this.c[o],$e(i))}this.a.length=0,this.c=null,1==this.state&&(this.g.forEach(qe),this.g.length=0),this.i&&$e(this.i),this.state=5,this.s(),this.l.forEach(qe),this.l.length=0,w0.prototype.ka.call(this)},S1.prototype.Y=function(){return-1==this.o.Lg?null:this.j.canvas},S1.prototype.bb=function(){return this.a.join("/")+"/"+this.u},S1.prototype.load=function(){var r=0,n=!1;0==this.state&&S0(this,1),1==this.state&&this.a.forEach(function(e){var o,i=this.c[e];0==i.state?(i.Pg(this.S),i.load()):3==i.state?n=!0:4==i.state&&V(this.a,e),1==i.state&&(o=d(i,"change",function(){var t=i.getState();2!=t&&3!=t||(--r,qe(o),V(this.g,o),3==t&&(V(this.a,e),n=!0),r)||S0(this,0<this.a.length?2:3)}.bind(this)),this.g.push(o),++r)}.bind(this)),r||setTimeout(function(){S0(this,0<this.a.length?2:n?3:4)}.bind(this),0)},e(P1,w0),(r=P1.prototype).ka=function(){this.g=null,this.c={},this.state=5,this.s(),w0.prototype.ka.call(this)},r.Lm=function(){return this.o},r.Km=function(){return this.g},r.bb=function(){return this.l},r.Mm=function(){return this.a},r.load=function(){0==this.state&&(S0(this,1),this.u(this,this.l),this.v(null,NaN,null))},r.$o=function(t,e){this.ig(e),this.mj(t)},r.Zo=function(){S0(this,3)},r.mj=function(t){this.g=t,S0(this,2)},r.ig=function(t){this.a=t},r.Pg=function(t){this.v=t},e(A1,Nm),A1.prototype.Nc=function(t,e,o,i,r){var n=this.Sb(t,e,o);return this.a.b.hasOwnProperty(n)?this.a.get(n):(i=new S1(t=[t,e,o],void 0!==(o=(e=Rm(this,t,r))?this.tileUrlFunction(e,i,r):void 0)?0:4,void 0!==o?o:"",this.g,this.tileLoadFunction,e,this.tileUrlFunction,this.tileGrid,this.Ta(r),this.v,i,r,this.tileClass,this.Li.bind(this)),this.a.set(n,i),i)},A1.prototype.Ta=function(t){var e=t.mb,o=this.f[e];return o||(o=this.tileGrid,o=this.f[e]=Ue(t,void 0,o?o.gb(o.minZoom):void 0)),o},A1.prototype.nb=function(t){return null==t?Nm.prototype.nb.call(this,t):t},A1.prototype.Xd=function(t,e,o){return t=pt(this.Ta(o).gb(t)),[Math.round(t[0]*e),Math.round(t[1]*e)]},e(E1,Te),E1.prototype.l=function(){return this.o},e(N,T),(r=N.prototype).Mk=function(){return this.f},r.Io=function(){return this.C},r.Jo=function(){return this.B},r.$k=function(){return this.l},r.kl=function(){return this.T},r.Ko=function(){return this.R},r.rl=function(){return this.fa},r.uq=function(t){Xt(this.f,t),Lm(this,j1(this))},e(C1,T),e(L1,M0),L1.prototype.Y=function(){var t,e;return this.a||(t=M0.prototype.Y.call(this),2==this.state?256==t.width&&256==t.height?this.a=t:((e=Po(256,256)).drawImage(t,0,0),this.a=e.canvas):t)};var R1="default",I1="truncated";function N1(t,e){this.b=e,this.a=[{x:0,y:0,width:t,height:t}],this.c={},this.i=Po(t,t),this.f=this.i.canvas}function F1(t,e,o,i){e=[e,1],0<o.width&&0<o.height&&e.push(o),0<i.width&&0<i.height&&e.push(i),t.a.splice.apply(t.a,e)}function k1(t){this.a=void 0!==(t=t||{}).initialSize?t.initialSize:256,this.i=void 0!==t.maxSize?t.maxSize:void 0!==vi?vi:2048,this.b=void 0!==t.space?t.space:1,this.f=[new N1(this.a,this.b)],this.c=this.a,this.g=[new N1(this.c,this.b)]}function D1(t,e,o,i,r,n,s){for(var a=e?t.g:t.f,p=0,h=a.length;p<h;++p){var l=a[p];if(l=l.add(o,i,r,n,s))return l;l||p!==h-1||(e?(l=Math.min(2*t.c,t.i),t.c=l):(l=Math.min(2*t.a,t.i),t.a=l),l=new N1(l,t.b),a.push(l),++h)}return null}return N1.prototype.get=function(t){return this.c[t]||null},N1.prototype.add=function(t,e,o,i,r){for(var n=0,s=this.a.length;n<s;++n){var a=this.a[n];if(a.width>=e+this.b&&a.height>=o+this.b)return s={offsetX:a.x+this.b,offsetY:a.y+this.b,image:this.f},this.c[t]=s,i.call(r,this.i,a.x+this.b,a.y+this.b),t=n,e+=this.b,i=o+this.b,e=a.width-e>a.height-i?(o={x:a.x+e,y:a.y,width:a.width-e,height:a.height},{x:a.x,y:a.y+i,width:e,height:a.height-i}):(o={x:a.x+e,y:a.y,width:a.width-e,height:i},{x:a.x,y:a.y+i,width:a.width,height:a.height-i}),F1(this,t,o,e),s}return null},k1.prototype.add=function(t,e,o,i,r,n){return!(e+this.b>this.i||o+this.b>this.i)&&(i=D1(this,!1,t,e,o,i,n))?(t=D1(this,!0,t,e,o,r||Y,n),{offsetX:i.offsetX,offsetY:i.offsetY,image:i.image,Zl:t.image}):null},t("ol.Attribution",Be),Be.prototype.getHTML=Be.prototype.i,t("ol.Collection",ho),ho.prototype.extend=ho.prototype.fg,ho.prototype.getArray=ho.prototype.tm,ho.prototype.getLength=ho.prototype.dc,ho.prototype.insertAt=ho.prototype.He,ho.prototype.removeAt=ho.prototype.Hg,ho.prototype.setAt=ho.prototype.Wp,t("ol.color.asArray",vo),t("ol.color.asString",bo),t("ol.colorlike.asColorLike",Mo),t("ol.control.defaults",Uo),t("ol.coordinate.add",er),t("ol.coordinate.createStringXY",function(e){return function(t){return ur(t,e)}}),t("ol.coordinate.format",rr),t("ol.coordinate.rotate",sr),t("ol.coordinate.toStringHDMS",function(t,e){return t?ir("NS",t[1],e)+" "+ir("EW",t[0],e):""}),t("ol.coordinate.toStringXY",ur),t("ol.DeviceOrientation",Uh),Uh.prototype.getAlpha=Uh.prototype.Fk,Uh.prototype.getBeta=Uh.prototype.Ik,Uh.prototype.getGamma=Uh.prototype.Ok,Uh.prototype.getHeading=Uh.prototype.um,Uh.prototype.getTracking=Uh.prototype.Th,Uh.prototype.setTracking=Uh.prototype.gg,t("ol.easing.easeIn",Ro),t("ol.easing.easeOut",Io),t("ol.easing.inAndOut",No),t("ol.easing.linear",Fo),t("ol.easing.upAndDown",function(t){return t<.5?No(2*t):1-No(2*(t-.5))}),t("ol.extent.boundingExtent",ht),t("ol.extent.buffer",lt),t("ol.extent.containsCoordinate",ft),t("ol.extent.containsExtent",yt),t("ol.extent.containsXY",gt),t("ol.extent.createEmpty",vt),t("ol.extent.equals",St),t("ol.extent.extend",Mt),t("ol.extent.getArea",Tt),t("ol.extent.getBottomLeft",jt),t("ol.extent.getBottomRight",Ct),t("ol.extent.getCenter",Lt),t("ol.extent.getHeight",It),t("ol.extent.getIntersection",Nt),t("ol.extent.getSize",function(t){return[t[2]-t[0],t[3]-t[1]]}),t("ol.extent.getTopLeft",Ft),t("ol.extent.getTopRight",kt),t("ol.extent.getWidth",Dt),t("ol.extent.intersects",Ot),t("ol.extent.isEmpty",Ut),t("ol.extent.applyTransform",Bt),t("ol.Feature",x),x.prototype.getGeometry=x.prototype.V,x.prototype.getId=x.prototype.wm,x.prototype.getGeometryName=x.prototype.Qk,x.prototype.getStyle=x.prototype.xm,x.prototype.getStyleFunction=x.prototype.Lc,x.prototype.setGeometry=x.prototype.Ra,x.prototype.setStyle=x.prototype.hg,x.prototype.setId=x.prototype.jc,x.prototype.setGeometryName=x.prototype.Tc,t("ol.featureloader.xhr",ml),t("ol.Geolocation",p0),p0.prototype.getAccuracy=p0.prototype.Dk,p0.prototype.getAccuracyGeometry=p0.prototype.Ek,p0.prototype.getAltitude=p0.prototype.Gk,p0.prototype.getAltitudeAccuracy=p0.prototype.Hk,p0.prototype.getHeading=p0.prototype.ym,p0.prototype.getPosition=p0.prototype.zm,p0.prototype.getProjection=p0.prototype.Uh,p0.prototype.getSpeed=p0.prototype.ll,p0.prototype.getTracking=p0.prototype.Vh,p0.prototype.getTrackingOptions=p0.prototype.Gh,p0.prototype.setProjection=p0.prototype.Wh,p0.prototype.setTracking=p0.prototype.Ke,p0.prototype.setTrackingOptions=p0.prototype.wj,t("ol.Graticule",c0),c0.prototype.getMap=c0.prototype.Cm,c0.prototype.getMeridians=c0.prototype.al,c0.prototype.getParallels=c0.prototype.hl,t("ol.has.DEVICE_PIXEL_RATIO",ni),t("ol.has.CANVAS",ai),t("ol.has.DEVICE_ORIENTATION",pi),t("ol.has.GEOLOCATION",hi),t("ol.has.TOUCH",li),t("ol.has.WEBGL",gi),b0.prototype.getImage=b0.prototype.Y,M0.prototype.getImage=M0.prototype.Y,t("ol.inherits",e),t("ol.interaction.defaults",hs),t("ol.Kinetic",sn),t("ol.loadingstrategy.all",Cv),t("ol.loadingstrategy.bbox",function(t){return[t]}),t("ol.loadingstrategy.tile",function(i){return function(t,e){e=i.tc(e),t=Ie(i,t,e);var o=[];for((e=[e,0,0])[1]=t.ca;e[1]<=t.$;++e[1])for(e[2]=t.da;e[2]<=t.ia;++e[2])o.push(i.Aa(e));return o}}),t("ol.Map",u),u.prototype.addControl=u.prototype.kk,u.prototype.addInteraction=u.prototype.lk,u.prototype.addLayer=u.prototype.ih,u.prototype.addOverlay=u.prototype.jh,u.prototype.forEachFeatureAtPixel=u.prototype.we,u.prototype.forEachLayerAtPixel=u.prototype.Im,u.prototype.hasFeatureAtPixel=u.prototype.Yl,u.prototype.getEventCoordinate=u.prototype.Tf,u.prototype.getEventPixel=u.prototype.xe,u.prototype.getTarget=u.prototype.ag,u.prototype.getTargetElement=u.prototype.jd,u.prototype.getCoordinateFromPixel=u.prototype.Wa,u.prototype.getControls=u.prototype.Lk,u.prototype.getOverlays=u.prototype.fl,u.prototype.getOverlayById=u.prototype.el,u.prototype.getInteractions=u.prototype.Sk,u.prototype.getLayerGroup=u.prototype.Kc,u.prototype.getLayers=u.prototype.Xh,u.prototype.getPixelFromCoordinate=u.prototype.Ja,u.prototype.getSize=u.prototype.Ob,u.prototype.getView=u.prototype.Z,u.prototype.getViewport=u.prototype.sl,u.prototype.renderSync=u.prototype.Tp,u.prototype.removeControl=u.prototype.Mp,u.prototype.removeInteraction=u.prototype.Np,u.prototype.removeLayer=u.prototype.Pp,u.prototype.removeOverlay=u.prototype.Qp,u.prototype.setLayerGroup=u.prototype.qj,u.prototype.setSize=u.prototype.Qg,u.prototype.setTarget=u.prototype.Le,u.prototype.setView=u.prototype.iq,u.prototype.updateSize=u.prototype.Ad,t("ol.Object",ro),ro.prototype.getKeys=ro.prototype.O,ro.prototype.getProperties=ro.prototype.N,ro.prototype.setProperties=ro.prototype.H,ro.prototype.unset=ro.prototype.P,t("ol.Observable",io),t("ol.Observable.unByKey",function(t){if(Array.isArray(t))for(var e=0,o=t.length;e<o;++e)qe(t[e]);else qe(t)}),io.prototype.changed=io.prototype.s,io.prototype.dispatchEvent=io.prototype.b,io.prototype.getRevision=io.prototype.L,io.prototype.on=io.prototype.J,io.prototype.un=io.prototype.K,t("ol.Overlay",fh),fh.prototype.getElement=fh.prototype.Rd,fh.prototype.getId=fh.prototype.Jm,fh.prototype.getMap=fh.prototype.Me,fh.prototype.getOffset=fh.prototype.Dh,fh.prototype.getPosition=fh.prototype.Yh,fh.prototype.getPositioning=fh.prototype.Eh,fh.prototype.setElement=fh.prototype.lj,fh.prototype.setOffset=fh.prototype.rj,fh.prototype.setPosition=fh.prototype.Ne,fh.prototype.setPositioning=fh.prototype.uj,t("ol.proj.METERS_PER_UNIT",Yt),t("ol.proj.setProj4",function(t){Ht=t}),t("ol.proj.getPointResolution",ce),t("ol.proj.addEquivalentProjections",fe),t("ol.proj.addProjection",ye),t("ol.proj.addCoordinateTransforms",de),t("ol.proj.fromLonLat",function(t,e){return Me(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}),t("ol.proj.toLonLat",function(t,e){return Me(t,void 0!==e?e:"EPSG:3857","EPSG:4326")}),t("ol.proj.get",v),t("ol.proj.equivalent",be),t("ol.proj.getTransform",me),t("ol.proj.transform",Me),t("ol.proj.transformExtent",Pe),t("ol.render.toContext",function(t,e){var o=t.canvas,i=e||{};return e=i.pixelRatio||ni,(i=i.size)&&(o.width=i[0]*e,o.height=i[1]*e,o.style.width=i[0]+"px",o.style.height=i[1]+"px"),new Vs(t,e,o=[0,0,o.width,o.height],Es(ms(),e,e),0)}),t("ol.size.toSize",pt),t("ol.Sphere",Kt),Kt.prototype.geodesicArea=Kt.prototype.a,Kt.prototype.haversineDistance=Kt.prototype.b,w0.prototype.getTileCoord=w0.prototype.f,t("ol.tilegrid.createXYZ",De),P1.prototype.getFormat=P1.prototype.Lm,P1.prototype.getFeatures=P1.prototype.Km,P1.prototype.getProjection=P1.prototype.Mm,P1.prototype.setFeatures=P1.prototype.mj,P1.prototype.setProjection=P1.prototype.ig,P1.prototype.setLoader=P1.prototype.Pg,t("ol.View",h),h.prototype.getAnimating=h.prototype.Ic,h.prototype.getInteracting=h.prototype.Rk,h.prototype.cancelAnimations=h.prototype.ed,h.prototype.constrainCenter=h.prototype.Ec,h.prototype.getCenter=h.prototype.wa,h.prototype.calculateExtent=h.prototype.dd,h.prototype.getMaxResolution=h.prototype.Nm,h.prototype.getMinResolution=h.prototype.Pm,h.prototype.getMaxZoom=h.prototype.Om,h.prototype.setMaxZoom=h.prototype.eq,h.prototype.getMinZoom=h.prototype.Qm,h.prototype.setMinZoom=h.prototype.fq,h.prototype.getProjection=h.prototype.Rm,h.prototype.getResolution=h.prototype.Pa,h.prototype.getResolutions=h.prototype.Sm,h.prototype.getResolutionForExtent=h.prototype.ze,h.prototype.getRotation=h.prototype.Qa,h.prototype.getZoom=h.prototype.Hh,h.prototype.getZoomForResolution=h.prototype.Ce,h.prototype.fit=h.prototype.Qf,h.prototype.centerOn=h.prototype.uk,h.prototype.setCenter=h.prototype.ob,h.prototype.setResolution=h.prototype.Vc,h.prototype.setRotation=h.prototype.Oe,h.prototype.setZoom=h.prototype.lq,t("ol.xml.getAllTextContent",il),t("ol.xml.parse",sl),Aa.prototype.getGL=Aa.prototype.Wo,Aa.prototype.useProgram=Aa.prototype.Qc,t("ol.tilegrid.TileGrid",Te),Te.prototype.forEachTileCoord=Te.prototype.Rf,Te.prototype.getMaxZoom=Te.prototype.Ti,Te.prototype.getMinZoom=Te.prototype.Ui,Te.prototype.getOrigin=Te.prototype.Pc,Te.prototype.getResolution=Te.prototype.Da,Te.prototype.getResolutions=Te.prototype.Vi,Te.prototype.getTileCoordExtent=Te.prototype.Aa,Te.prototype.getTileCoordForCoordAndResolution=Te.prototype.Be,Te.prototype.getTileCoordForCoordAndZ=Te.prototype.bg,Te.prototype.getTileSize=Te.prototype.gb,Te.prototype.getZForResolution=Te.prototype.tc,t("ol.tilegrid.WMTS",E1),E1.prototype.getMatrixIds=E1.prototype.l,t("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",T1),t("ol.style.AtlasManager",k1),t("ol.style.Circle",Yh),Yh.prototype.setRadius=Yh.prototype.Uc,t("ol.style.Fill",Hh),Hh.prototype.getColor=Hh.prototype.i,Hh.prototype.setColor=Hh.prototype.c,t("ol.style.Icon",af),af.prototype.getAnchor=af.prototype.Hc,af.prototype.getColor=af.prototype.Lo,af.prototype.getImage=af.prototype.Y,af.prototype.getOrigin=af.prototype.Oc,af.prototype.getSrc=af.prototype.Mo,af.prototype.getSize=af.prototype.ic,t("ol.style.Image",Zh),Zh.prototype.getOpacity=Zh.prototype.Ze,Zh.prototype.getRotateWithView=Zh.prototype.$e,Zh.prototype.getRotation=Zh.prototype.af,Zh.prototype.getScale=Zh.prototype.bf,Zh.prototype.getSnapToPixel=Zh.prototype.Ae,Zh.prototype.setOpacity=Zh.prototype.td,Zh.prototype.setRotation=Zh.prototype.cf,Zh.prototype.setScale=Zh.prototype.ud,t("ol.style.RegularShape",Kh),Kh.prototype.getAnchor=Kh.prototype.Hc,Kh.prototype.getAngle=Kh.prototype.Pi,Kh.prototype.getFill=Kh.prototype.Fa,Kh.prototype.getImage=Kh.prototype.Y,Kh.prototype.getOrigin=Kh.prototype.Oc,Kh.prototype.getPoints=Kh.prototype.Qi,Kh.prototype.getRadius=Kh.prototype.Ri,Kh.prototype.getRadius2=Kh.prototype.Fh,Kh.prototype.getSize=Kh.prototype.ic,Kh.prototype.getStroke=Kh.prototype.Ga,t("ol.style.Stroke",hp),hp.prototype.getColor=hp.prototype.No,hp.prototype.getLineCap=hp.prototype.Vk,hp.prototype.getLineDash=hp.prototype.Oo,hp.prototype.getLineDashOffset=hp.prototype.Wk,hp.prototype.getLineJoin=hp.prototype.Xk,hp.prototype.getMiterLimit=hp.prototype.bl,hp.prototype.getWidth=hp.prototype.Po,hp.prototype.setColor=hp.prototype.Qo,hp.prototype.setLineCap=hp.prototype.aq,hp.prototype.setLineDashOffset=hp.prototype.bq,hp.prototype.setLineJoin=hp.prototype.cq,hp.prototype.setMiterLimit=hp.prototype.gq,hp.prototype.setWidth=hp.prototype.jq,t("ol.style.Style",qh),qh.prototype.getGeometry=qh.prototype.V,qh.prototype.getGeometryFunction=qh.prototype.Pk,qh.prototype.getFill=qh.prototype.Fa,qh.prototype.setFill=qh.prototype.pf,qh.prototype.getImage=qh.prototype.Y,qh.prototype.setImage=qh.prototype.Og,qh.prototype.getStroke=qh.prototype.Ga,qh.prototype.setStroke=qh.prototype.qf,qh.prototype.getText=qh.prototype.Na,qh.prototype.setText=qh.prototype.xd,qh.prototype.getZIndex=qh.prototype.Ba,qh.prototype.setGeometry=qh.prototype.Ra,qh.prototype.setZIndex=qh.prototype.Vb,t("ol.style.Text",pf),pf.prototype.getFont=pf.prototype.Nk,pf.prototype.getOffsetX=pf.prototype.cl,pf.prototype.getOffsetY=pf.prototype.dl,pf.prototype.getFill=pf.prototype.Fa,pf.prototype.getRotateWithView=pf.prototype.Ro,pf.prototype.getRotation=pf.prototype.So,pf.prototype.getScale=pf.prototype.To,pf.prototype.getStroke=pf.prototype.Ga,pf.prototype.getText=pf.prototype.Na,pf.prototype.getTextAlign=pf.prototype.nl,pf.prototype.getTextBaseline=pf.prototype.ol,pf.prototype.setFont=pf.prototype.nj,pf.prototype.setOffsetX=pf.prototype.sj,pf.prototype.setOffsetY=pf.prototype.tj,pf.prototype.setFill=pf.prototype.pf,pf.prototype.setRotation=pf.prototype.Uo,pf.prototype.setScale=pf.prototype.Si,pf.prototype.setStroke=pf.prototype.qf,pf.prototype.setText=pf.prototype.xd,pf.prototype.setTextAlign=pf.prototype.vj,pf.prototype.setTextBaseline=pf.prototype.hq,t("ol.source.BingMaps",j),t("ol.source.BingMaps.TOS_ATTRIBUTION",Om),j.prototype.getApiKey=j.prototype.T,j.prototype.getImagerySet=j.prototype.fa,t("ol.source.CartoDB",C),C.prototype.getConfig=C.prototype.Kk,C.prototype.updateConfig=C.prototype.tq,C.prototype.setConfig=C.prototype.Xp,t("ol.source.Cluster",L),L.prototype.getDistance=L.prototype.$n,L.prototype.getSource=L.prototype.ao,L.prototype.setDistance=L.prototype.Yp,t("ol.source.Image",$b),t("ol.source.ImageArcGISRest",Wm),Wm.prototype.getParams=Wm.prototype.co,Wm.prototype.getImageLoadFunction=Wm.prototype.bo,Wm.prototype.getUrl=Wm.prototype.eo,Wm.prototype.setImageLoadFunction=Wm.prototype.fo,Wm.prototype.setUrl=Wm.prototype.ho,Wm.prototype.updateParams=Wm.prototype.io,t("ol.source.ImageCanvas",nm),t("ol.source.ImageMapGuide",Zm),Zm.prototype.getParams=Zm.prototype.ko,Zm.prototype.getImageLoadFunction=Zm.prototype.jo,Zm.prototype.updateParams=Zm.prototype.mo,Zm.prototype.setImageLoadFunction=Zm.prototype.lo,t("ol.source.ImageStatic",Km),t("ol.source.ImageVector",sm),sm.prototype.getSource=sm.prototype.no,sm.prototype.getStyle=sm.prototype.oo,sm.prototype.getStyleFunction=sm.prototype.po,sm.prototype.setStyle=sm.prototype.Ii,t("ol.source.ImageWMS",zm),zm.prototype.getGetFeatureInfoUrl=zm.prototype.so,zm.prototype.getParams=zm.prototype.uo,zm.prototype.getImageLoadFunction=zm.prototype.to,zm.prototype.getUrl=zm.prototype.vo,zm.prototype.setImageLoadFunction=zm.prototype.wo,zm.prototype.setUrl=zm.prototype.xo,zm.prototype.updateParams=zm.prototype.yo,t("ol.source.OSM",Jm),t("ol.source.OSM.ATTRIBUTION",_m),t("ol.source.Raster",o1),o1.prototype.setOperation=o1.prototype.v,t("ol.source.Source",Lv),Lv.prototype.getAttributions=Lv.prototype.ya,Lv.prototype.getLogo=Lv.prototype.xa,Lv.prototype.getProjection=Lv.prototype.za,Lv.prototype.refresh=Lv.prototype.sa,Lv.prototype.setAttributions=Lv.prototype.ua,t("ol.source.Stamen",a1),t("ol.source.Tile",jm),jm.prototype.getTileGrid=jm.prototype.ab,t("ol.source.TileArcGISRest",R),R.prototype.getParams=R.prototype.C,R.prototype.updateParams=R.prototype.B,t("ol.source.TileDebug",c1),t("ol.source.TileImage",T),T.prototype.setRenderReprojectionEdges=T.prototype.Pb,T.prototype.setTileGridForProjection=T.prototype.Qb,t("ol.source.TileJSON",y1),y1.prototype.getTileJSON=y1.prototype.pl,t("ol.source.TileUTFGrid",g1),g1.prototype.getTemplate=g1.prototype.ml,g1.prototype.forDataAtCoordinateAndResolution=g1.prototype.zk,t("ol.source.TileWMS",I),I.prototype.getGetFeatureInfoUrl=I.prototype.Fo,I.prototype.getParams=I.prototype.Go,I.prototype.updateParams=I.prototype.Ho,Nm.prototype.getTileLoadFunction=Nm.prototype.pb,Nm.prototype.getTileUrlFunction=Nm.prototype.qb,Nm.prototype.getUrls=Nm.prototype.rb,Nm.prototype.setTileLoadFunction=Nm.prototype.vb,Nm.prototype.setTileUrlFunction=Nm.prototype.cb,Nm.prototype.setUrl=Nm.prototype.jb,Nm.prototype.setUrls=Nm.prototype.eb,t("ol.source.Vector",a),a.prototype.addFeature=a.prototype.yb,a.prototype.addFeatures=a.prototype.cd,a.prototype.forEachFeature=a.prototype.sh,a.prototype.forEachFeatureInExtent=a.prototype.$b,a.prototype.forEachFeatureIntersectingExtent=a.prototype.th,a.prototype.getFeaturesCollection=a.prototype.Ah,a.prototype.getFeatures=a.prototype.Xe,a.prototype.getFeaturesAtCoordinate=a.prototype.zh,a.prototype.getFeaturesInExtent=a.prototype.Uf,a.prototype.getClosestFeatureToCoordinate=a.prototype.vh,a.prototype.getExtent=a.prototype.G,a.prototype.getFeatureById=a.prototype.yh,a.prototype.getFormat=a.prototype.Mi,a.prototype.getUrl=a.prototype.Ni,a.prototype.removeFeature=a.prototype.Gb,t("ol.source.VectorTile",A1),t("ol.source.WMTS",N),N.prototype.getDimensions=N.prototype.Mk,N.prototype.getFormat=N.prototype.Io,N.prototype.getLayer=N.prototype.Jo,N.prototype.getMatrixSet=N.prototype.$k,N.prototype.getRequestEncoding=N.prototype.kl,N.prototype.getStyle=N.prototype.Ko,N.prototype.getVersion=N.prototype.rl,N.prototype.updateDimensions=N.prototype.uq,t("ol.source.WMTS.optionsFromCapabilities",function(t,r){var e=W(t.Contents.Layer,function(t){return t.Identifier==r.layer});if(null===e)return null;var o,i,n=t.Contents.TileMatrixSet,s=1<e.TileMatrixSetLink.length?"projection"in r?z(e.TileMatrixSetLink,function(e){var t=W(n,function(t){return t.Identifier==e.TileMatrixSet}).SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"),o=v(t),i=v(r.projection);return o&&i?be(o,i):t==r.projection}):z(e.TileMatrixSetLink,function(t){return t.TileMatrixSet==r.matrixSet}):0,a=e.TileMatrixSetLink[s=s<0?0:s].TileMatrixSet,p=e.TileMatrixSetLink[s].TileMatrixSetLimits,h=e.Format[0],l=("format"in r&&(h=r.format),s=z(e.Style,function(t){return"style"in r?t.Title==r.style:t.isDefault}),s=e.Style[s=s<0?0:s].Identifier,{}),u=("Dimension"in e&&e.Dimension.forEach(function(t){var e=t.Identifier,o=t.Default;void 0===o&&(o=t.Value[0]),l[e]=o}),W(t.Contents.TileMatrixSet,function(t){return t.Identifier==a})),c="projection"in r?v(r.projection):v(u.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3")),f=e.WGS84BoundingBox,y=(p=T1(u,i=void 0!==f&&(o=v("EPSG:4326").G(),o=f[0]==o[0]&&f[2]==o[2],i=Pe(f,"EPSG:4326",c),f=c.G())&&!yt(f,i)?void 0:i,p),[]),u=void 0!==(u=r.requestEncoding)?u:"";if("OperationsMetadata"in t&&"GetTile"in t.OperationsMetadata)for(i=0,f=(t=t.OperationsMetadata.GetTile.DCP.HTTP.Get).length;i<f;++i){var g=W(t[i].Constraint,function(t){return"GetEncoding"==t.name}).AllowedValues.Value;if("KVP"!==(u=""===u?g[0]:u))break;D(g,"KVP")&&y.push(t[i].href)}return y.length||(u="REST",e.ResourceURL.forEach(function(t){"tile"===t.resourceType&&(h=t.format,y.push(t.template))})),{urls:y,layer:r.layer,matrixSet:a,format:h,projection:c,requestEncoding:u,tileGrid:p,style:s,dimensions:l,wrapX:o,crossOrigin:r.crossOrigin}}),t("ol.source.XYZ",Um),t("ol.source.Zoomify",C1),sg.prototype.getExtent=sg.prototype.G,sg.prototype.getId=sg.prototype.Wn,sg.prototype.getGeometry=sg.prototype.V,sg.prototype.getProperties=sg.prototype.Xn,sg.prototype.getType=sg.prototype.U,t("ol.render.VectorContext",Xs),sh.prototype.setStyle=sh.prototype.rd,sh.prototype.drawGeometry=sh.prototype.zb,sh.prototype.drawFeature=sh.prototype.te,Vs.prototype.drawCircle=Vs.prototype.Zb,Vs.prototype.setStyle=Vs.prototype.rd,Vs.prototype.drawGeometry=Vs.prototype.zb,Vs.prototype.drawFeature=Vs.prototype.te,t("ol.proj.common.add",Ae),t("ol.proj.Projection",qt),qt.prototype.getCode=qt.prototype.Jk,qt.prototype.getExtent=qt.prototype.G,qt.prototype.getUnits=qt.prototype.Un,qt.prototype.getMetersPerUnit=qt.prototype.sc,qt.prototype.getWorldExtent=qt.prototype.tl,qt.prototype.isGlobal=qt.prototype.dm,qt.prototype.setGlobal=qt.prototype.$p,qt.prototype.setExtent=qt.prototype.Vn,qt.prototype.setWorldExtent=qt.prototype.kq,qt.prototype.setGetPointResolution=qt.prototype.Zp,t("ol.proj.Units.METERS_PER_UNIT",Yt),t("ol.layer.Base",ls),ls.prototype.getExtent=ls.prototype.G,ls.prototype.getMaxResolution=ls.prototype.fc,ls.prototype.getMinResolution=ls.prototype.gc,ls.prototype.getOpacity=ls.prototype.hc,ls.prototype.getVisible=ls.prototype.Mb,ls.prototype.getZIndex=ls.prototype.Ba,ls.prototype.setExtent=ls.prototype.vc,ls.prototype.setMaxResolution=ls.prototype.Ac,ls.prototype.setMinResolution=ls.prototype.Bc,ls.prototype.setOpacity=ls.prototype.wc,ls.prototype.setVisible=ls.prototype.xc,ls.prototype.setZIndex=ls.prototype.Vb,t("ol.layer.Group",cs),cs.prototype.getLayers=cs.prototype.qd,cs.prototype.setLayers=cs.prototype.xi,t("ol.layer.Heatmap",p),p.prototype.getBlur=p.prototype.uh,p.prototype.getGradient=p.prototype.Bh,p.prototype.getRadius=p.prototype.yi,p.prototype.setBlur=p.prototype.jj,p.prototype.setGradient=p.prototype.pj,p.prototype.setRadius=p.prototype.Uc,t("ol.layer.Image",pm),pm.prototype.getSource=pm.prototype.ha,t("ol.layer.Layer",ys),ys.prototype.getSource=ys.prototype.ha,ys.prototype.setSource=ys.prototype.Wc,t("ol.layer.Tile",A),A.prototype.getPreload=A.prototype.Ud,A.prototype.getSource=A.prototype.ha,A.prototype.setPreload=A.prototype.zi,A.prototype.getUseInterimTilesOnError=A.prototype.kd,A.prototype.setUseInterimTilesOnError=A.prototype.Ai,t("ol.layer.Vector",s),s.prototype.getSource=s.prototype.ha,s.prototype.getStyle=s.prototype.D,s.prototype.getStyleFunction=s.prototype.C,s.prototype.setStyle=s.prototype.g,t("ol.layer.VectorTile",E),E.prototype.getPreload=E.prototype.Ud,E.prototype.getUseInterimTilesOnError=E.prototype.kd,E.prototype.setPreload=E.prototype.Bi,E.prototype.setUseInterimTilesOnError=E.prototype.Ci,t("ol.interaction.DoubleClickZoom",cn),t("ol.interaction.DoubleClickZoom.handleEvent",fn),t("ol.interaction.DragAndDrop",E0),t("ol.interaction.DragAndDrop.handleEvent",cr),t("ol.interaction.DragBox",On),On.prototype.getGeometry=On.prototype.V,t("ol.interaction.DragPan",En),t("ol.interaction.DragRotate",Ln),t("ol.interaction.DragRotateAndZoom",N0),t("ol.interaction.DragZoom",zn),t("ol.interaction.Draw",Uv),t("ol.interaction.Draw.handleEvent",Gv),Uv.prototype.removeLastPoint=Uv.prototype.Op,Uv.prototype.finishDrawing=Uv.prototype.Pd,Uv.prototype.extend=Uv.prototype.vn,t("ol.interaction.Draw.createRegularPolygon",function(r,n){return function(t,e){var o=t[0],i=(t=t[1],Math.sqrt(pr(o,t)));return Jr(e=e||qr(new h0(o),r),o,i,n||Math.atan((t[1]-o[1])/(t[0]-o[0]))),e}}),t("ol.interaction.Draw.createBox",function(){return function(t,e){return t=ht(t),(e=e||new w(null)).ma([[jt(t),Ct(t),kt(t),Ft(t),jt(t)]]),e}}),t("ol.interaction.Extent",Qv),Qv.prototype.getExtent=Qv.prototype.G,Qv.prototype.setExtent=Qv.prototype.g,pb.prototype.extent_=pb.prototype.b,t("ol.interaction.Interaction",pn),pn.prototype.getActive=pn.prototype.c,pn.prototype.getMap=pn.prototype.f,pn.prototype.setActive=pn.prototype.Ha,t("ol.interaction.KeyboardPan",Yn),t("ol.interaction.KeyboardPan.handleEvent",Hn),t("ol.interaction.KeyboardZoom",qn),t("ol.interaction.KeyboardZoom.handleEvent",Jn),t("ol.interaction.Modify",lb),t("ol.interaction.Modify.handleEvent",bb),lb.prototype.removePoint=lb.prototype.hj,t("ol.interaction.MouseWheelZoom",_n),t("ol.interaction.MouseWheelZoom.handleEvent",$n),_n.prototype.setMouseAnchor=_n.prototype.T,t("ol.interaction.PinchRotate",es),t("ol.interaction.PinchZoom",ns),t("ol.interaction.Pointer",Mn),t("ol.interaction.Pointer.handleEvent",An),t("ol.interaction.Select",Pb),Pb.prototype.getFeatures=Pb.prototype.Gn,Pb.prototype.getHitTolerance=Pb.prototype.Hn,Pb.prototype.getLayer=Pb.prototype.In,t("ol.interaction.Select.handleEvent",Ab),Pb.prototype.setHitTolerance=Pb.prototype.Kn,t("ol.interaction.Snap",jb),jb.prototype.addFeature=jb.prototype.yb,jb.prototype.removeFeature=jb.prototype.Gb,t("ol.interaction.Translate",Ib),Ib.prototype.getHitTolerance=Ib.prototype.B,Ib.prototype.setHitTolerance=Ib.prototype.I,t("ol.geom.Circle",h0),h0.prototype.getCenter=h0.prototype.wa,h0.prototype.getRadius=h0.prototype.pd,h0.prototype.getType=h0.prototype.U,h0.prototype.intersectsExtent=h0.prototype.Xa,h0.prototype.setCenter=h0.prototype.ob,h0.prototype.setCenterAndRadius=h0.prototype.Ng,h0.prototype.setRadius=h0.prototype.Uc,h0.prototype.transform=h0.prototype.tb,t("ol.geom.Geometry",yr),yr.prototype.getClosestPoint=yr.prototype.Ab,yr.prototype.intersectsCoordinate=yr.prototype.sb,yr.prototype.getExtent=yr.prototype.G,yr.prototype.simplify=yr.prototype.Rb,yr.prototype.transform=yr.prototype.tb,t("ol.geom.GeometryCollection",uu),uu.prototype.getGeometries=uu.prototype.Vf,uu.prototype.getType=uu.prototype.U,uu.prototype.intersectsExtent=uu.prototype.Xa,uu.prototype.setGeometries=uu.prototype.oj,uu.prototype.applyTransform=uu.prototype.Dc,t("ol.geom.LinearRing",Fr),Fr.prototype.getArea=Fr.prototype.qn,Fr.prototype.getCoordinates=Fr.prototype.X,Fr.prototype.getType=Fr.prototype.U,Fr.prototype.setCoordinates=Fr.prototype.ma,t("ol.geom.LineString",S),S.prototype.appendCoordinate=S.prototype.mk,S.prototype.forEachSegment=S.prototype.Ck,S.prototype.getCoordinateAtM=S.prototype.nn,S.prototype.getCoordinates=S.prototype.X,S.prototype.getCoordinateAt=S.prototype.wh,S.prototype.getLength=S.prototype.pn,S.prototype.getType=S.prototype.U,S.prototype.intersectsExtent=S.prototype.Xa,S.prototype.setCoordinates=S.prototype.ma,t("ol.geom.MultiLineString",M),M.prototype.appendLineString=M.prototype.nk,M.prototype.getCoordinateAtM=M.prototype.rn,M.prototype.getCoordinates=M.prototype.X,M.prototype.getLineString=M.prototype.Yk,M.prototype.getLineStrings=M.prototype.gd,M.prototype.getType=M.prototype.U,M.prototype.intersectsExtent=M.prototype.Xa,M.prototype.setCoordinates=M.prototype.ma,t("ol.geom.MultiPoint",P),P.prototype.appendPoint=P.prototype.qk,P.prototype.getCoordinates=P.prototype.X,P.prototype.getPoint=P.prototype.il,P.prototype.getPoints=P.prototype.Zd,P.prototype.getType=P.prototype.U,P.prototype.intersectsExtent=P.prototype.Xa,P.prototype.setCoordinates=P.prototype.ma,t("ol.geom.MultiPolygon",f),f.prototype.appendPolygon=f.prototype.rk,f.prototype.getArea=f.prototype.sn,f.prototype.getCoordinates=f.prototype.X,f.prototype.getInteriorPoints=f.prototype.Uk,f.prototype.getPolygon=f.prototype.jl,f.prototype.getPolygons=f.prototype.Td,f.prototype.getType=f.prototype.U,f.prototype.intersectsExtent=f.prototype.Xa,f.prototype.setCoordinates=f.prototype.ma,t("ol.geom.Point",m),m.prototype.getCoordinates=m.prototype.X,m.prototype.getType=m.prototype.U,m.prototype.intersectsExtent=m.prototype.Xa,m.prototype.setCoordinates=m.prototype.ma,t("ol.geom.Polygon",w),w.prototype.appendLinearRing=w.prototype.pk,w.prototype.getArea=w.prototype.tn,w.prototype.getCoordinates=w.prototype.X,w.prototype.getInteriorPoint=w.prototype.Tk,w.prototype.getLinearRingCount=w.prototype.Zk,w.prototype.getLinearRing=w.prototype.Ch,w.prototype.getLinearRings=w.prototype.Sd,w.prototype.getType=w.prototype.U,w.prototype.intersectsExtent=w.prototype.Xa,w.prototype.setCoordinates=w.prototype.ma,t("ol.geom.Polygon.circular",Yr),t("ol.geom.Polygon.fromExtent",Hr),t("ol.geom.Polygon.fromCircle",qr),t("ol.geom.SimpleGeometry",b),b.prototype.getFirstCoordinate=b.prototype.ac,b.prototype.getLastCoordinate=b.prototype.bc,b.prototype.getLayout=b.prototype.cc,b.prototype.applyTransform=b.prototype.Dc,t("ol.format.EsriJSON",kl),kl.prototype.readFeature=kl.prototype.Tb,kl.prototype.readFeatures=kl.prototype.Oa,kl.prototype.readGeometry=kl.prototype.Sc,kl.prototype.readProjection=kl.prototype.kb,kl.prototype.writeGeometry=kl.prototype.$c,kl.prototype.writeGeometryObject=kl.prototype.je,kl.prototype.writeFeature=kl.prototype.Bd,kl.prototype.writeFeatureObject=kl.prototype.Zc,kl.prototype.writeFeatures=kl.prototype.Wb,kl.prototype.writeFeaturesObject=kl.prototype.he,t("ol.format.Feature",wl),t("ol.format.filter.and",hu),t("ol.format.filter.or",function(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(au,e))}),t("ol.format.filter.not",function(t){return new nu(t)}),t("ol.format.filter.bbox",lu),t("ol.format.filter.intersects",function(t,e,o){return new Ql(t,e,o)}),t("ol.format.filter.within",function(t,e,o){return new pu(t,e,o)}),t("ol.format.filter.equalTo",function(t,e,o){return new ql(t,e,o)}),t("ol.format.filter.notEqualTo",function(t,e,o){return new su(t,e,o)}),t("ol.format.filter.lessThan",function(t,e){return new iu(t,e)}),t("ol.format.filter.lessThanOrEqualTo",function(t,e){return new ru(t,e)}),t("ol.format.filter.greaterThan",function(t,e){return new Jl(t,e)}),t("ol.format.filter.greaterThanOrEqualTo",function(t,e){return new _l(t,e)}),t("ol.format.filter.isNull",function(t){return new ou(t)}),t("ol.format.filter.between",function(t,e,o){return new tu(t,e,o)}),t("ol.format.filter.like",function(t,e,o,i,r,n){return new eu(t,e,o,i,r,n)}),t("ol.format.filter.during",function(t,e,o){return new Yl(t,e,o)}),t("ol.format.GeoJSON",gu),gu.prototype.readFeature=gu.prototype.Tb,gu.prototype.readFeatures=gu.prototype.Oa,gu.prototype.readGeometry=gu.prototype.Sc,gu.prototype.readProjection=gu.prototype.kb,gu.prototype.writeFeature=gu.prototype.Bd,gu.prototype.writeFeatureObject=gu.prototype.Zc,gu.prototype.writeFeatures=gu.prototype.Wb,gu.prototype.writeFeaturesObject=gu.prototype.he,gu.prototype.writeGeometry=gu.prototype.$c,gu.prototype.writeGeometryObject=gu.prototype.je,t("ol.format.GML",y),y.prototype.writeFeatures=y.prototype.Wb,y.prototype.writeFeaturesNode=y.prototype.Xb,t("ol.format.GML2",Zu),t("ol.format.GML3",y),y.prototype.writeGeometryNode=y.prototype.ie,y.prototype.writeFeatures=y.prototype.Wb,y.prototype.writeFeaturesNode=y.prototype.Xb,Mu.prototype.readFeatures=Mu.prototype.Oa,t("ol.format.GPX",ec),ec.prototype.readFeature=ec.prototype.Tb,ec.prototype.readFeatures=ec.prototype.Oa,ec.prototype.readProjection=ec.prototype.kb,ec.prototype.writeFeatures=ec.prototype.Wb,ec.prototype.writeFeaturesNode=ec.prototype.Xb,t("ol.format.IGC",Uc),Uc.prototype.readFeature=Uc.prototype.Tb,Uc.prototype.readFeatures=Uc.prototype.Oa,Uc.prototype.readProjection=Uc.prototype.kb,t("ol.format.KML",hf),hf.prototype.readFeature=hf.prototype.Tb,hf.prototype.readFeatures=hf.prototype.Oa,hf.prototype.readName=hf.prototype.Cp,hf.prototype.readNetworkLinks=hf.prototype.Dp,hf.prototype.readRegion=hf.prototype.Gp,hf.prototype.readRegionFromNode=hf.prototype.lf,hf.prototype.readProjection=hf.prototype.kb,hf.prototype.writeFeatures=hf.prototype.Wb,hf.prototype.writeFeaturesNode=hf.prototype.Xb,t("ol.format.MVT",ag),ag.prototype.readFeatures=ag.prototype.Oa,ag.prototype.readProjection=ag.prototype.kb,ag.prototype.setLayers=ag.prototype.mn,t("ol.format.OSMXML",hg),hg.prototype.readFeatures=hg.prototype.Oa,hg.prototype.readProjection=hg.prototype.kb,t("ol.format.Polyline",Ig),t("ol.format.Polyline.encodeDeltas",Ng),t("ol.format.Polyline.decodeDeltas",Fg),t("ol.format.Polyline.encodeFloats",kg),t("ol.format.Polyline.decodeFloats",Dg),Ig.prototype.readFeature=Ig.prototype.Tb,Ig.prototype.readFeatures=Ig.prototype.Oa,Ig.prototype.readGeometry=Ig.prototype.Sc,Ig.prototype.readProjection=Ig.prototype.kb,Ig.prototype.writeGeometry=Ig.prototype.$c,t("ol.format.TopoJSON",Og),Og.prototype.readFeatures=Og.prototype.Oa,Og.prototype.readProjection=Og.prototype.kb,t("ol.format.WFS",Vg),Vg.prototype.readFeatures=Vg.prototype.Oa,Vg.prototype.readTransactionResponse=Vg.prototype.j,Vg.prototype.readFeatureCollectionMetadata=Vg.prototype.g,t("ol.format.WFS.writeFilter",function(t){var e=ol("http://www.opengis.net/ogc","Filter");return vl({node:e},pd,cl(t.kc),[t],[]),e}),Vg.prototype.writeGetFeature=Vg.prototype.l,Vg.prototype.writeTransaction=Vg.prototype.v,Vg.prototype.readProjection=Vg.prototype.kb,t("ol.format.WKT",hd),hd.prototype.readFeature=hd.prototype.Tb,hd.prototype.readFeatures=hd.prototype.Oa,hd.prototype.readGeometry=hd.prototype.Sc,hd.prototype.writeFeature=hd.prototype.Bd,hd.prototype.writeFeatures=hd.prototype.Wb,hd.prototype.writeGeometry=hd.prototype.$c,t("ol.format.WMSCapabilities",Ed),t("ol.format.WMSGetFeatureInfo",Hd),Hd.prototype.readFeatures=Hd.prototype.Oa,t("ol.format.WMTSCapabilities",qd),t("ol.format.filter.And",Zl),t("ol.format.filter.Bbox",Kl),t("ol.format.filter.Comparison",zl),t("ol.format.filter.ComparisonBinary",Hl),t("ol.format.filter.During",Yl),t("ol.format.filter.EqualTo",ql),t("ol.format.filter.Filter",Vl),t("ol.format.filter.GreaterThan",Jl),t("ol.format.filter.GreaterThanOrEqualTo",_l),t("ol.format.filter.Intersects",Ql),t("ol.format.filter.IsBetween",tu),t("ol.format.filter.IsLike",eu),t("ol.format.filter.IsNull",ou),t("ol.format.filter.LessThan",iu),t("ol.format.filter.LessThanOrEqualTo",ru),t("ol.format.filter.Not",nu),t("ol.format.filter.NotEqualTo",su),t("ol.format.filter.Or",au),t("ol.format.filter.Spatial",$l),t("ol.format.filter.Within",pu),t("ol.events.condition.altKeyOnly",function(t){return(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}),t("ol.events.condition.altShiftKeysOnly",yn),t("ol.events.condition.always",cr),t("ol.events.condition.click",function(t){return"click"==t.type}),t("ol.events.condition.never",fr),t("ol.events.condition.pointerMove",dn),t("ol.events.condition.singleClick",vn),t("ol.events.condition.doubleClick",function(t){return"dblclick"==t.type}),t("ol.events.condition.noModifierKeys",bn),t("ol.events.condition.platformModifierKeyOnly",function(t){return!(t=t.originalEvent).altKey&&(ri?t.metaKey:t.ctrlKey)&&!t.shiftKey}),t("ol.events.condition.shiftKeyOnly",mn),t("ol.events.condition.targetNotEditable",wn),t("ol.events.condition.mouseOnly",xn),t("ol.events.condition.primaryAction",Sn),t("ol.control.Attribution",jo),t("ol.control.Attribution.render",Co),jo.prototype.getCollapsible=jo.prototype.Um,jo.prototype.setCollapsible=jo.prototype.Xm,jo.prototype.setCollapsed=jo.prototype.Wm,jo.prototype.getCollapsed=jo.prototype.Tm,t("ol.control.Control",To),To.prototype.getMap=To.prototype.g,To.prototype.setTarget=To.prototype.f,t("ol.control.FullScreen",Go),t("ol.control.MousePosition",Ko),t("ol.control.MousePosition.render",zo),Ko.prototype.getCoordinateFormat=Ko.prototype.xh,Ko.prototype.getProjection=Ko.prototype.Zh,Ko.prototype.setCoordinateFormat=Ko.prototype.kj,Ko.prototype.setProjection=Ko.prototype.$h,t("ol.control.OverviewMap",Sh),t("ol.control.OverviewMap.render",Mh),Sh.prototype.getCollapsible=Sh.prototype.$m,Sh.prototype.setCollapsible=Sh.prototype.cn,Sh.prototype.setCollapsed=Sh.prototype.bn,Sh.prototype.getCollapsed=Sh.prototype.Zm,Sh.prototype.getOverviewMap=Sh.prototype.gl,t("ol.control.Rotate",ko),t("ol.control.Rotate.render",Do),t("ol.control.ScaleLine",Th),Th.prototype.getUnits=Th.prototype.C,t("ol.control.ScaleLine.render",Ch),Th.prototype.setUnits=Th.prototype.I,t("ol.control.Zoom",Oo),t("ol.control.ZoomSlider",Ih),t("ol.control.ZoomSlider.render",Fh),t("ol.control.ZoomToExtent",Oh),ro.prototype.changed=ro.prototype.s,ro.prototype.dispatchEvent=ro.prototype.b,ro.prototype.getRevision=ro.prototype.L,ro.prototype.on=ro.prototype.J,ro.prototype.un=ro.prototype.K,ho.prototype.getKeys=ho.prototype.O,ho.prototype.getProperties=ho.prototype.N,ho.prototype.setProperties=ho.prototype.H,ho.prototype.unset=ho.prototype.P,ho.prototype.changed=ho.prototype.s,ho.prototype.dispatchEvent=ho.prototype.b,ho.prototype.getRevision=ho.prototype.L,ho.prototype.on=ho.prototype.J,ho.prototype.un=ho.prototype.K,Uh.prototype.getKeys=Uh.prototype.O,Uh.prototype.getProperties=Uh.prototype.N,Uh.prototype.setProperties=Uh.prototype.H,Uh.prototype.unset=Uh.prototype.P,Uh.prototype.changed=Uh.prototype.s,Uh.prototype.dispatchEvent=Uh.prototype.b,Uh.prototype.getRevision=Uh.prototype.L,Uh.prototype.on=Uh.prototype.J,Uh.prototype.un=Uh.prototype.K,x.prototype.getKeys=x.prototype.O,x.prototype.getProperties=x.prototype.N,x.prototype.setProperties=x.prototype.H,x.prototype.unset=x.prototype.P,x.prototype.changed=x.prototype.s,x.prototype.dispatchEvent=x.prototype.b,x.prototype.getRevision=x.prototype.L,x.prototype.on=x.prototype.J,x.prototype.un=x.prototype.K,p0.prototype.getKeys=p0.prototype.O,p0.prototype.getProperties=p0.prototype.N,p0.prototype.setProperties=p0.prototype.H,p0.prototype.unset=p0.prototype.P,p0.prototype.changed=p0.prototype.s,p0.prototype.dispatchEvent=p0.prototype.b,p0.prototype.getRevision=p0.prototype.L,p0.prototype.on=p0.prototype.J,p0.prototype.un=p0.prototype.K,M0.prototype.getTileCoord=M0.prototype.f,u.prototype.getKeys=u.prototype.O,u.prototype.getProperties=u.prototype.N,u.prototype.setProperties=u.prototype.H,u.prototype.unset=u.prototype.P,u.prototype.changed=u.prototype.s,u.prototype.dispatchEvent=u.prototype.b,u.prototype.getRevision=u.prototype.L,u.prototype.on=u.prototype.J,u.prototype.un=u.prototype.K,fh.prototype.getKeys=fh.prototype.O,fh.prototype.getProperties=fh.prototype.N,fh.prototype.setProperties=fh.prototype.H,fh.prototype.unset=fh.prototype.P,fh.prototype.changed=fh.prototype.s,fh.prototype.dispatchEvent=fh.prototype.b,fh.prototype.getRevision=fh.prototype.L,fh.prototype.on=fh.prototype.J,fh.prototype.un=fh.prototype.K,S1.prototype.getTileCoord=S1.prototype.f,P1.prototype.getTileCoord=P1.prototype.f,h.prototype.getKeys=h.prototype.O,h.prototype.getProperties=h.prototype.N,h.prototype.setProperties=h.prototype.H,h.prototype.unset=h.prototype.P,h.prototype.changed=h.prototype.s,h.prototype.dispatchEvent=h.prototype.b,h.prototype.getRevision=h.prototype.L,h.prototype.on=h.prototype.J,h.prototype.un=h.prototype.K,E1.prototype.forEachTileCoord=E1.prototype.Rf,E1.prototype.getMaxZoom=E1.prototype.Ti,E1.prototype.getMinZoom=E1.prototype.Ui,E1.prototype.getOrigin=E1.prototype.Pc,E1.prototype.getResolution=E1.prototype.Da,E1.prototype.getResolutions=E1.prototype.Vi,E1.prototype.getTileCoordExtent=E1.prototype.Aa,E1.prototype.getTileCoordForCoordAndResolution=E1.prototype.Be,E1.prototype.getTileCoordForCoordAndZ=E1.prototype.bg,E1.prototype.getTileSize=E1.prototype.gb,E1.prototype.getZForResolution=E1.prototype.tc,Kh.prototype.getOpacity=Kh.prototype.Ze,Kh.prototype.getRotateWithView=Kh.prototype.$e,Kh.prototype.getRotation=Kh.prototype.af,Kh.prototype.getScale=Kh.prototype.bf,Kh.prototype.getSnapToPixel=Kh.prototype.Ae,Kh.prototype.setOpacity=Kh.prototype.td,Kh.prototype.setRotation=Kh.prototype.cf,Kh.prototype.setScale=Kh.prototype.ud,Yh.prototype.getAngle=Yh.prototype.Pi,Yh.prototype.getFill=Yh.prototype.Fa,Yh.prototype.getPoints=Yh.prototype.Qi,Yh.prototype.getRadius=Yh.prototype.Ri,Yh.prototype.getRadius2=Yh.prototype.Fh,Yh.prototype.getStroke=Yh.prototype.Ga,Yh.prototype.getOpacity=Yh.prototype.Ze,Yh.prototype.getRotateWithView=Yh.prototype.$e,Yh.prototype.getRotation=Yh.prototype.af,Yh.prototype.getScale=Yh.prototype.bf,Yh.prototype.getSnapToPixel=Yh.prototype.Ae,Yh.prototype.setOpacity=Yh.prototype.td,Yh.prototype.setRotation=Yh.prototype.cf,Yh.prototype.setScale=Yh.prototype.ud,af.prototype.getOpacity=af.prototype.Ze,af.prototype.getRotateWithView=af.prototype.$e,af.prototype.getRotation=af.prototype.af,af.prototype.getScale=af.prototype.bf,af.prototype.getSnapToPixel=af.prototype.Ae,af.prototype.setOpacity=af.prototype.td,af.prototype.setRotation=af.prototype.cf,af.prototype.setScale=af.prototype.ud,Lv.prototype.getKeys=Lv.prototype.O,Lv.prototype.getProperties=Lv.prototype.N,Lv.prototype.setProperties=Lv.prototype.H,Lv.prototype.unset=Lv.prototype.P,Lv.prototype.changed=Lv.prototype.s,Lv.prototype.dispatchEvent=Lv.prototype.b,Lv.prototype.getRevision=Lv.prototype.L,Lv.prototype.on=Lv.prototype.J,Lv.prototype.un=Lv.prototype.K,jm.prototype.getAttributions=jm.prototype.ya,jm.prototype.getLogo=jm.prototype.xa,jm.prototype.getProjection=jm.prototype.za,jm.prototype.refresh=jm.prototype.sa,jm.prototype.setAttributions=jm.prototype.ua,jm.prototype.getKeys=jm.prototype.O,jm.prototype.getProperties=jm.prototype.N,jm.prototype.setProperties=jm.prototype.H,jm.prototype.unset=jm.prototype.P,jm.prototype.changed=jm.prototype.s,jm.prototype.dispatchEvent=jm.prototype.b,jm.prototype.getRevision=jm.prototype.L,jm.prototype.on=jm.prototype.J,jm.prototype.un=jm.prototype.K,Nm.prototype.getTileGrid=Nm.prototype.ab,Nm.prototype.refresh=Nm.prototype.sa,Nm.prototype.getAttributions=Nm.prototype.ya,Nm.prototype.getLogo=Nm.prototype.xa,Nm.prototype.getProjection=Nm.prototype.za,Nm.prototype.setAttributions=Nm.prototype.ua,Nm.prototype.getKeys=Nm.prototype.O,Nm.prototype.getProperties=Nm.prototype.N,Nm.prototype.setProperties=Nm.prototype.H,Nm.prototype.unset=Nm.prototype.P,Nm.prototype.changed=Nm.prototype.s,Nm.prototype.dispatchEvent=Nm.prototype.b,Nm.prototype.getRevision=Nm.prototype.L,Nm.prototype.on=Nm.prototype.J,Nm.prototype.un=Nm.prototype.K,T.prototype.getTileLoadFunction=T.prototype.pb,T.prototype.getTileUrlFunction=T.prototype.qb,T.prototype.getUrls=T.prototype.rb,T.prototype.setTileLoadFunction=T.prototype.vb,T.prototype.setTileUrlFunction=T.prototype.cb,T.prototype.setUrl=T.prototype.jb,T.prototype.setUrls=T.prototype.eb,T.prototype.getTileGrid=T.prototype.ab,T.prototype.refresh=T.prototype.sa,T.prototype.getAttributions=T.prototype.ya,T.prototype.getLogo=T.prototype.xa,T.prototype.getProjection=T.prototype.za,T.prototype.setAttributions=T.prototype.ua,T.prototype.getKeys=T.prototype.O,T.prototype.getProperties=T.prototype.N,T.prototype.setProperties=T.prototype.H,T.prototype.unset=T.prototype.P,T.prototype.changed=T.prototype.s,T.prototype.dispatchEvent=T.prototype.b,T.prototype.getRevision=T.prototype.L,T.prototype.on=T.prototype.J,T.prototype.un=T.prototype.K,j.prototype.setRenderReprojectionEdges=j.prototype.Pb,j.prototype.setTileGridForProjection=j.prototype.Qb,j.prototype.getTileLoadFunction=j.prototype.pb,j.prototype.getTileUrlFunction=j.prototype.qb,j.prototype.getUrls=j.prototype.rb,j.prototype.setTileLoadFunction=j.prototype.vb,j.prototype.setTileUrlFunction=j.prototype.cb,j.prototype.setUrl=j.prototype.jb,j.prototype.setUrls=j.prototype.eb,j.prototype.getTileGrid=j.prototype.ab,j.prototype.refresh=j.prototype.sa,j.prototype.getAttributions=j.prototype.ya,j.prototype.getLogo=j.prototype.xa,j.prototype.getProjection=j.prototype.za,j.prototype.setAttributions=j.prototype.ua,j.prototype.getKeys=j.prototype.O,j.prototype.getProperties=j.prototype.N,j.prototype.setProperties=j.prototype.H,j.prototype.unset=j.prototype.P,j.prototype.changed=j.prototype.s,j.prototype.dispatchEvent=j.prototype.b,j.prototype.getRevision=j.prototype.L,j.prototype.on=j.prototype.J,j.prototype.un=j.prototype.K,Um.prototype.setRenderReprojectionEdges=Um.prototype.Pb,Um.prototype.setTileGridForProjection=Um.prototype.Qb,Um.prototype.getTileLoadFunction=Um.prototype.pb,Um.prototype.getTileUrlFunction=Um.prototype.qb,Um.prototype.getUrls=Um.prototype.rb,Um.prototype.setTileLoadFunction=Um.prototype.vb,Um.prototype.setTileUrlFunction=Um.prototype.cb,Um.prototype.setUrl=Um.prototype.jb,Um.prototype.setUrls=Um.prototype.eb,Um.prototype.getTileGrid=Um.prototype.ab,Um.prototype.refresh=Um.prototype.sa,Um.prototype.getAttributions=Um.prototype.ya,Um.prototype.getLogo=Um.prototype.xa,Um.prototype.getProjection=Um.prototype.za,Um.prototype.setAttributions=Um.prototype.ua,Um.prototype.getKeys=Um.prototype.O,Um.prototype.getProperties=Um.prototype.N,Um.prototype.setProperties=Um.prototype.H,Um.prototype.unset=Um.prototype.P,Um.prototype.changed=Um.prototype.s,Um.prototype.dispatchEvent=Um.prototype.b,Um.prototype.getRevision=Um.prototype.L,Um.prototype.on=Um.prototype.J,Um.prototype.un=Um.prototype.K,C.prototype.setRenderReprojectionEdges=C.prototype.Pb,C.prototype.setTileGridForProjection=C.prototype.Qb,C.prototype.getTileLoadFunction=C.prototype.pb,C.prototype.getTileUrlFunction=C.prototype.qb,C.prototype.getUrls=C.prototype.rb,C.prototype.setTileLoadFunction=C.prototype.vb,C.prototype.setTileUrlFunction=C.prototype.cb,C.prototype.setUrl=C.prototype.jb,C.prototype.setUrls=C.prototype.eb,C.prototype.getTileGrid=C.prototype.ab,C.prototype.refresh=C.prototype.sa,C.prototype.getAttributions=C.prototype.ya,C.prototype.getLogo=C.prototype.xa,C.prototype.getProjection=C.prototype.za,C.prototype.setAttributions=C.prototype.ua,C.prototype.getKeys=C.prototype.O,C.prototype.getProperties=C.prototype.N,C.prototype.setProperties=C.prototype.H,C.prototype.unset=C.prototype.P,C.prototype.changed=C.prototype.s,C.prototype.dispatchEvent=C.prototype.b,C.prototype.getRevision=C.prototype.L,C.prototype.on=C.prototype.J,C.prototype.un=C.prototype.K,a.prototype.getAttributions=a.prototype.ya,a.prototype.getLogo=a.prototype.xa,a.prototype.getProjection=a.prototype.za,a.prototype.refresh=a.prototype.sa,a.prototype.setAttributions=a.prototype.ua,a.prototype.getKeys=a.prototype.O,a.prototype.getProperties=a.prototype.N,a.prototype.setProperties=a.prototype.H,a.prototype.unset=a.prototype.P,a.prototype.changed=a.prototype.s,a.prototype.dispatchEvent=a.prototype.b,a.prototype.getRevision=a.prototype.L,a.prototype.on=a.prototype.J,a.prototype.un=a.prototype.K,L.prototype.addFeature=L.prototype.yb,L.prototype.addFeatures=L.prototype.cd,L.prototype.forEachFeature=L.prototype.sh,L.prototype.forEachFeatureInExtent=L.prototype.$b,L.prototype.forEachFeatureIntersectingExtent=L.prototype.th,L.prototype.getFeaturesCollection=L.prototype.Ah,L.prototype.getFeatures=L.prototype.Xe,L.prototype.getFeaturesAtCoordinate=L.prototype.zh,L.prototype.getFeaturesInExtent=L.prototype.Uf,L.prototype.getClosestFeatureToCoordinate=L.prototype.vh,L.prototype.getExtent=L.prototype.G,L.prototype.getFeatureById=L.prototype.yh,L.prototype.getFormat=L.prototype.Mi,L.prototype.getUrl=L.prototype.Ni,L.prototype.removeFeature=L.prototype.Gb,L.prototype.getAttributions=L.prototype.ya,L.prototype.getLogo=L.prototype.xa,L.prototype.getProjection=L.prototype.za,L.prototype.refresh=L.prototype.sa,L.prototype.setAttributions=L.prototype.ua,L.prototype.getKeys=L.prototype.O,L.prototype.getProperties=L.prototype.N,L.prototype.setProperties=L.prototype.H,L.prototype.unset=L.prototype.P,L.prototype.changed=L.prototype.s,L.prototype.dispatchEvent=L.prototype.b,L.prototype.getRevision=L.prototype.L,L.prototype.on=L.prototype.J,L.prototype.un=L.prototype.K,$b.prototype.getAttributions=$b.prototype.ya,$b.prototype.getLogo=$b.prototype.xa,$b.prototype.getProjection=$b.prototype.za,$b.prototype.refresh=$b.prototype.sa,$b.prototype.setAttributions=$b.prototype.ua,$b.prototype.getKeys=$b.prototype.O,$b.prototype.getProperties=$b.prototype.N,$b.prototype.setProperties=$b.prototype.H,$b.prototype.unset=$b.prototype.P,$b.prototype.changed=$b.prototype.s,$b.prototype.dispatchEvent=$b.prototype.b,$b.prototype.getRevision=$b.prototype.L,$b.prototype.on=$b.prototype.J,$b.prototype.un=$b.prototype.K,Wm.prototype.getAttributions=Wm.prototype.ya,Wm.prototype.getLogo=Wm.prototype.xa,Wm.prototype.getProjection=Wm.prototype.za,Wm.prototype.refresh=Wm.prototype.sa,Wm.prototype.setAttributions=Wm.prototype.ua,Wm.prototype.getKeys=Wm.prototype.O,Wm.prototype.getProperties=Wm.prototype.N,Wm.prototype.setProperties=Wm.prototype.H,Wm.prototype.unset=Wm.prototype.P,Wm.prototype.changed=Wm.prototype.s,Wm.prototype.dispatchEvent=Wm.prototype.b,Wm.prototype.getRevision=Wm.prototype.L,Wm.prototype.on=Wm.prototype.J,Wm.prototype.un=Wm.prototype.K,nm.prototype.getAttributions=nm.prototype.ya,nm.prototype.getLogo=nm.prototype.xa,nm.prototype.getProjection=nm.prototype.za,nm.prototype.refresh=nm.prototype.sa,nm.prototype.setAttributions=nm.prototype.ua,nm.prototype.getKeys=nm.prototype.O,nm.prototype.getProperties=nm.prototype.N,nm.prototype.setProperties=nm.prototype.H,nm.prototype.unset=nm.prototype.P,nm.prototype.changed=nm.prototype.s,nm.prototype.dispatchEvent=nm.prototype.b,nm.prototype.getRevision=nm.prototype.L,nm.prototype.on=nm.prototype.J,nm.prototype.un=nm.prototype.K,Zm.prototype.getAttributions=Zm.prototype.ya,Zm.prototype.getLogo=Zm.prototype.xa,Zm.prototype.getProjection=Zm.prototype.za,Zm.prototype.refresh=Zm.prototype.sa,Zm.prototype.setAttributions=Zm.prototype.ua,Zm.prototype.getKeys=Zm.prototype.O,Zm.prototype.getProperties=Zm.prototype.N,Zm.prototype.setProperties=Zm.prototype.H,Zm.prototype.unset=Zm.prototype.P,Zm.prototype.changed=Zm.prototype.s,Zm.prototype.dispatchEvent=Zm.prototype.b,Zm.prototype.getRevision=Zm.prototype.L,Zm.prototype.on=Zm.prototype.J,Zm.prototype.un=Zm.prototype.K,Km.prototype.getAttributions=Km.prototype.ya,Km.prototype.getLogo=Km.prototype.xa,Km.prototype.getProjection=Km.prototype.za,Km.prototype.refresh=Km.prototype.sa,Km.prototype.setAttributions=Km.prototype.ua,Km.prototype.getKeys=Km.prototype.O,Km.prototype.getProperties=Km.prototype.N,Km.prototype.setProperties=Km.prototype.H,Km.prototype.unset=Km.prototype.P,Km.prototype.changed=Km.prototype.s,Km.prototype.dispatchEvent=Km.prototype.b,Km.prototype.getRevision=Km.prototype.L,Km.prototype.on=Km.prototype.J,Km.prototype.un=Km.prototype.K,sm.prototype.getAttributions=sm.prototype.ya,sm.prototype.getLogo=sm.prototype.xa,sm.prototype.getProjection=sm.prototype.za,sm.prototype.refresh=sm.prototype.sa,sm.prototype.setAttributions=sm.prototype.ua,sm.prototype.getKeys=sm.prototype.O,sm.prototype.getProperties=sm.prototype.N,sm.prototype.setProperties=sm.prototype.H,sm.prototype.unset=sm.prototype.P,sm.prototype.changed=sm.prototype.s,sm.prototype.dispatchEvent=sm.prototype.b,sm.prototype.getRevision=sm.prototype.L,sm.prototype.on=sm.prototype.J,sm.prototype.un=sm.prototype.K,zm.prototype.getAttributions=zm.prototype.ya,zm.prototype.getLogo=zm.prototype.xa,zm.prototype.getProjection=zm.prototype.za,zm.prototype.refresh=zm.prototype.sa,zm.prototype.setAttributions=zm.prototype.ua,zm.prototype.getKeys=zm.prototype.O,zm.prototype.getProperties=zm.prototype.N,zm.prototype.setProperties=zm.prototype.H,zm.prototype.unset=zm.prototype.P,zm.prototype.changed=zm.prototype.s,zm.prototype.dispatchEvent=zm.prototype.b,zm.prototype.getRevision=zm.prototype.L,zm.prototype.on=zm.prototype.J,zm.prototype.un=zm.prototype.K,Jm.prototype.setRenderReprojectionEdges=Jm.prototype.Pb,Jm.prototype.setTileGridForProjection=Jm.prototype.Qb,Jm.prototype.getTileLoadFunction=Jm.prototype.pb,Jm.prototype.getTileUrlFunction=Jm.prototype.qb,Jm.prototype.getUrls=Jm.prototype.rb,Jm.prototype.setTileLoadFunction=Jm.prototype.vb,Jm.prototype.setTileUrlFunction=Jm.prototype.cb,Jm.prototype.setUrl=Jm.prototype.jb,Jm.prototype.setUrls=Jm.prototype.eb,Jm.prototype.getTileGrid=Jm.prototype.ab,Jm.prototype.refresh=Jm.prototype.sa,Jm.prototype.getAttributions=Jm.prototype.ya,Jm.prototype.getLogo=Jm.prototype.xa,Jm.prototype.getProjection=Jm.prototype.za,Jm.prototype.setAttributions=Jm.prototype.ua,Jm.prototype.getKeys=Jm.prototype.O,Jm.prototype.getProperties=Jm.prototype.N,Jm.prototype.setProperties=Jm.prototype.H,Jm.prototype.unset=Jm.prototype.P,Jm.prototype.changed=Jm.prototype.s,Jm.prototype.dispatchEvent=Jm.prototype.b,Jm.prototype.getRevision=Jm.prototype.L,Jm.prototype.on=Jm.prototype.J,Jm.prototype.un=Jm.prototype.K,o1.prototype.getAttributions=o1.prototype.ya,o1.prototype.getLogo=o1.prototype.xa,o1.prototype.getProjection=o1.prototype.za,o1.prototype.refresh=o1.prototype.sa,o1.prototype.setAttributions=o1.prototype.ua,o1.prototype.getKeys=o1.prototype.O,o1.prototype.getProperties=o1.prototype.N,o1.prototype.setProperties=o1.prototype.H,o1.prototype.unset=o1.prototype.P,o1.prototype.changed=o1.prototype.s,o1.prototype.dispatchEvent=o1.prototype.b,o1.prototype.getRevision=o1.prototype.L,o1.prototype.on=o1.prototype.J,o1.prototype.un=o1.prototype.K,a1.prototype.setRenderReprojectionEdges=a1.prototype.Pb,a1.prototype.setTileGridForProjection=a1.prototype.Qb,a1.prototype.getTileLoadFunction=a1.prototype.pb,a1.prototype.getTileUrlFunction=a1.prototype.qb,a1.prototype.getUrls=a1.prototype.rb,a1.prototype.setTileLoadFunction=a1.prototype.vb,a1.prototype.setTileUrlFunction=a1.prototype.cb,a1.prototype.setUrl=a1.prototype.jb,a1.prototype.setUrls=a1.prototype.eb,a1.prototype.getTileGrid=a1.prototype.ab,a1.prototype.refresh=a1.prototype.sa,a1.prototype.getAttributions=a1.prototype.ya,a1.prototype.getLogo=a1.prototype.xa,a1.prototype.getProjection=a1.prototype.za,a1.prototype.setAttributions=a1.prototype.ua,a1.prototype.getKeys=a1.prototype.O,a1.prototype.getProperties=a1.prototype.N,a1.prototype.setProperties=a1.prototype.H,a1.prototype.unset=a1.prototype.P,a1.prototype.changed=a1.prototype.s,a1.prototype.dispatchEvent=a1.prototype.b,a1.prototype.getRevision=a1.prototype.L,a1.prototype.on=a1.prototype.J,a1.prototype.un=a1.prototype.K,R.prototype.setRenderReprojectionEdges=R.prototype.Pb,R.prototype.setTileGridForProjection=R.prototype.Qb,R.prototype.getTileLoadFunction=R.prototype.pb,R.prototype.getTileUrlFunction=R.prototype.qb,R.prototype.getUrls=R.prototype.rb,R.prototype.setTileLoadFunction=R.prototype.vb,R.prototype.setTileUrlFunction=R.prototype.cb,R.prototype.setUrl=R.prototype.jb,R.prototype.setUrls=R.prototype.eb,R.prototype.getTileGrid=R.prototype.ab,R.prototype.refresh=R.prototype.sa,R.prototype.getAttributions=R.prototype.ya,R.prototype.getLogo=R.prototype.xa,R.prototype.getProjection=R.prototype.za,R.prototype.setAttributions=R.prototype.ua,R.prototype.getKeys=R.prototype.O,R.prototype.getProperties=R.prototype.N,R.prototype.setProperties=R.prototype.H,R.prototype.unset=R.prototype.P,R.prototype.changed=R.prototype.s,R.prototype.dispatchEvent=R.prototype.b,R.prototype.getRevision=R.prototype.L,R.prototype.on=R.prototype.J,R.prototype.un=R.prototype.K,c1.prototype.getTileGrid=c1.prototype.ab,c1.prototype.refresh=c1.prototype.sa,c1.prototype.getAttributions=c1.prototype.ya,c1.prototype.getLogo=c1.prototype.xa,c1.prototype.getProjection=c1.prototype.za,c1.prototype.setAttributions=c1.prototype.ua,c1.prototype.getKeys=c1.prototype.O,c1.prototype.getProperties=c1.prototype.N,c1.prototype.setProperties=c1.prototype.H,c1.prototype.unset=c1.prototype.P,c1.prototype.changed=c1.prototype.s,c1.prototype.dispatchEvent=c1.prototype.b,c1.prototype.getRevision=c1.prototype.L,c1.prototype.on=c1.prototype.J,c1.prototype.un=c1.prototype.K,y1.prototype.setRenderReprojectionEdges=y1.prototype.Pb,y1.prototype.setTileGridForProjection=y1.prototype.Qb,y1.prototype.getTileLoadFunction=y1.prototype.pb,y1.prototype.getTileUrlFunction=y1.prototype.qb,y1.prototype.getUrls=y1.prototype.rb,y1.prototype.setTileLoadFunction=y1.prototype.vb,y1.prototype.setTileUrlFunction=y1.prototype.cb,y1.prototype.setUrl=y1.prototype.jb,y1.prototype.setUrls=y1.prototype.eb,y1.prototype.getTileGrid=y1.prototype.ab,y1.prototype.refresh=y1.prototype.sa,y1.prototype.getAttributions=y1.prototype.ya,y1.prototype.getLogo=y1.prototype.xa,y1.prototype.getProjection=y1.prototype.za,y1.prototype.setAttributions=y1.prototype.ua,y1.prototype.getKeys=y1.prototype.O,y1.prototype.getProperties=y1.prototype.N,y1.prototype.setProperties=y1.prototype.H,y1.prototype.unset=y1.prototype.P,y1.prototype.changed=y1.prototype.s,y1.prototype.dispatchEvent=y1.prototype.b,y1.prototype.getRevision=y1.prototype.L,y1.prototype.on=y1.prototype.J,y1.prototype.un=y1.prototype.K,g1.prototype.getTileGrid=g1.prototype.ab,g1.prototype.refresh=g1.prototype.sa,g1.prototype.getAttributions=g1.prototype.ya,g1.prototype.getLogo=g1.prototype.xa,g1.prototype.getProjection=g1.prototype.za,g1.prototype.setAttributions=g1.prototype.ua,g1.prototype.getKeys=g1.prototype.O,g1.prototype.getProperties=g1.prototype.N,g1.prototype.setProperties=g1.prototype.H,g1.prototype.unset=g1.prototype.P,g1.prototype.changed=g1.prototype.s,g1.prototype.dispatchEvent=g1.prototype.b,g1.prototype.getRevision=g1.prototype.L,g1.prototype.on=g1.prototype.J,g1.prototype.un=g1.prototype.K,I.prototype.setRenderReprojectionEdges=I.prototype.Pb,I.prototype.setTileGridForProjection=I.prototype.Qb,I.prototype.getTileLoadFunction=I.prototype.pb,I.prototype.getTileUrlFunction=I.prototype.qb,I.prototype.getUrls=I.prototype.rb,I.prototype.setTileLoadFunction=I.prototype.vb,I.prototype.setTileUrlFunction=I.prototype.cb,I.prototype.setUrl=I.prototype.jb,I.prototype.setUrls=I.prototype.eb,I.prototype.getTileGrid=I.prototype.ab,I.prototype.refresh=I.prototype.sa,I.prototype.getAttributions=I.prototype.ya,I.prototype.getLogo=I.prototype.xa,I.prototype.getProjection=I.prototype.za,I.prototype.setAttributions=I.prototype.ua,I.prototype.getKeys=I.prototype.O,I.prototype.getProperties=I.prototype.N,I.prototype.setProperties=I.prototype.H,I.prototype.unset=I.prototype.P,I.prototype.changed=I.prototype.s,I.prototype.dispatchEvent=I.prototype.b,I.prototype.getRevision=I.prototype.L,I.prototype.on=I.prototype.J,I.prototype.un=I.prototype.K,A1.prototype.getTileLoadFunction=A1.prototype.pb,A1.prototype.getTileUrlFunction=A1.prototype.qb,A1.prototype.getUrls=A1.prototype.rb,A1.prototype.setTileLoadFunction=A1.prototype.vb,A1.prototype.setTileUrlFunction=A1.prototype.cb,A1.prototype.setUrl=A1.prototype.jb,A1.prototype.setUrls=A1.prototype.eb,A1.prototype.getTileGrid=A1.prototype.ab,A1.prototype.refresh=A1.prototype.sa,A1.prototype.getAttributions=A1.prototype.ya,A1.prototype.getLogo=A1.prototype.xa,A1.prototype.getProjection=A1.prototype.za,A1.prototype.setAttributions=A1.prototype.ua,A1.prototype.getKeys=A1.prototype.O,A1.prototype.getProperties=A1.prototype.N,A1.prototype.setProperties=A1.prototype.H,A1.prototype.unset=A1.prototype.P,A1.prototype.changed=A1.prototype.s,A1.prototype.dispatchEvent=A1.prototype.b,A1.prototype.getRevision=A1.prototype.L,A1.prototype.on=A1.prototype.J,A1.prototype.un=A1.prototype.K,N.prototype.setRenderReprojectionEdges=N.prototype.Pb,N.prototype.setTileGridForProjection=N.prototype.Qb,N.prototype.getTileLoadFunction=N.prototype.pb,N.prototype.getTileUrlFunction=N.prototype.qb,N.prototype.getUrls=N.prototype.rb,N.prototype.setTileLoadFunction=N.prototype.vb,N.prototype.setTileUrlFunction=N.prototype.cb,N.prototype.setUrl=N.prototype.jb,N.prototype.setUrls=N.prototype.eb,N.prototype.getTileGrid=N.prototype.ab,N.prototype.refresh=N.prototype.sa,N.prototype.getAttributions=N.prototype.ya,N.prototype.getLogo=N.prototype.xa,N.prototype.getProjection=N.prototype.za,N.prototype.setAttributions=N.prototype.ua,N.prototype.getKeys=N.prototype.O,N.prototype.getProperties=N.prototype.N,N.prototype.setProperties=N.prototype.H,N.prototype.unset=N.prototype.P,N.prototype.changed=N.prototype.s,N.prototype.dispatchEvent=N.prototype.b,N.prototype.getRevision=N.prototype.L,N.prototype.on=N.prototype.J,N.prototype.un=N.prototype.K,C1.prototype.setRenderReprojectionEdges=C1.prototype.Pb,C1.prototype.setTileGridForProjection=C1.prototype.Qb,C1.prototype.getTileLoadFunction=C1.prototype.pb,C1.prototype.getTileUrlFunction=C1.prototype.qb,C1.prototype.getUrls=C1.prototype.rb,C1.prototype.setTileLoadFunction=C1.prototype.vb,C1.prototype.setTileUrlFunction=C1.prototype.cb,C1.prototype.setUrl=C1.prototype.jb,C1.prototype.setUrls=C1.prototype.eb,C1.prototype.getTileGrid=C1.prototype.ab,C1.prototype.refresh=C1.prototype.sa,C1.prototype.getAttributions=C1.prototype.ya,C1.prototype.getLogo=C1.prototype.xa,C1.prototype.getProjection=C1.prototype.za,C1.prototype.setAttributions=C1.prototype.ua,C1.prototype.getKeys=C1.prototype.O,C1.prototype.getProperties=C1.prototype.N,C1.prototype.setProperties=C1.prototype.H,C1.prototype.unset=C1.prototype.P,C1.prototype.changed=C1.prototype.s,C1.prototype.dispatchEvent=C1.prototype.b,C1.prototype.getRevision=C1.prototype.L,C1.prototype.on=C1.prototype.J,C1.prototype.un=C1.prototype.K,xm.prototype.getTileCoord=xm.prototype.f,iv.prototype.changed=iv.prototype.s,iv.prototype.dispatchEvent=iv.prototype.b,iv.prototype.getRevision=iv.prototype.L,iv.prototype.on=iv.prototype.J,iv.prototype.un=iv.prototype.K,Av.prototype.changed=Av.prototype.s,Av.prototype.dispatchEvent=Av.prototype.b,Av.prototype.getRevision=Av.prototype.L,Av.prototype.on=Av.prototype.J,Av.prototype.un=Av.prototype.K,am.prototype.changed=am.prototype.s,am.prototype.dispatchEvent=am.prototype.b,am.prototype.getRevision=am.prototype.L,am.prototype.on=am.prototype.J,am.prototype.un=am.prototype.K,dm.prototype.changed=dm.prototype.s,dm.prototype.dispatchEvent=dm.prototype.b,dm.prototype.getRevision=dm.prototype.L,dm.prototype.on=dm.prototype.J,dm.prototype.un=dm.prototype.K,Tv.prototype.changed=Tv.prototype.s,Tv.prototype.dispatchEvent=Tv.prototype.b,Tv.prototype.getRevision=Tv.prototype.L,Tv.prototype.on=Tv.prototype.J,Tv.prototype.un=Tv.prototype.K,uv.prototype.changed=uv.prototype.s,uv.prototype.dispatchEvent=uv.prototype.b,uv.prototype.getRevision=uv.prototype.L,uv.prototype.on=uv.prototype.J,uv.prototype.un=uv.prototype.K,Zb.prototype.changed=Zb.prototype.s,Zb.prototype.dispatchEvent=Zb.prototype.b,Zb.prototype.getRevision=Zb.prototype.L,Zb.prototype.on=Zb.prototype.J,Zb.prototype.un=Zb.prototype.K,Kb.prototype.changed=Kb.prototype.s,Kb.prototype.dispatchEvent=Kb.prototype.b,Kb.prototype.getRevision=Kb.prototype.L,Kb.prototype.on=Kb.prototype.J,Kb.prototype.un=Kb.prototype.K,hm.prototype.changed=hm.prototype.s,hm.prototype.dispatchEvent=hm.prototype.b,hm.prototype.getRevision=hm.prototype.L,hm.prototype.on=hm.prototype.J,hm.prototype.un=hm.prototype.K,mv.prototype.changed=mv.prototype.s,mv.prototype.dispatchEvent=mv.prototype.b,mv.prototype.getRevision=mv.prototype.L,mv.prototype.on=mv.prototype.J,mv.prototype.un=mv.prototype.K,vm.prototype.changed=vm.prototype.s,vm.prototype.dispatchEvent=vm.prototype.b,vm.prototype.getRevision=vm.prototype.L,vm.prototype.on=vm.prototype.J,vm.prototype.un=vm.prototype.K,ls.prototype.getKeys=ls.prototype.O,ls.prototype.getProperties=ls.prototype.N,ls.prototype.setProperties=ls.prototype.H,ls.prototype.unset=ls.prototype.P,ls.prototype.changed=ls.prototype.s,ls.prototype.dispatchEvent=ls.prototype.b,ls.prototype.getRevision=ls.prototype.L,ls.prototype.on=ls.prototype.J,ls.prototype.un=ls.prototype.K,cs.prototype.getExtent=cs.prototype.G,cs.prototype.getMaxResolution=cs.prototype.fc,cs.prototype.getMinResolution=cs.prototype.gc,cs.prototype.getOpacity=cs.prototype.hc,cs.prototype.getVisible=cs.prototype.Mb,cs.prototype.getZIndex=cs.prototype.Ba,cs.prototype.setExtent=cs.prototype.vc,cs.prototype.setMaxResolution=cs.prototype.Ac,cs.prototype.setMinResolution=cs.prototype.Bc,cs.prototype.setOpacity=cs.prototype.wc,cs.prototype.setVisible=cs.prototype.xc,cs.prototype.setZIndex=cs.prototype.Vb,cs.prototype.getKeys=cs.prototype.O,cs.prototype.getProperties=cs.prototype.N,cs.prototype.setProperties=cs.prototype.H,cs.prototype.unset=cs.prototype.P,cs.prototype.changed=cs.prototype.s,cs.prototype.dispatchEvent=cs.prototype.b,cs.prototype.getRevision=cs.prototype.L,cs.prototype.on=cs.prototype.J,cs.prototype.un=cs.prototype.K,ys.prototype.getExtent=ys.prototype.G,ys.prototype.getMaxResolution=ys.prototype.fc,ys.prototype.getMinResolution=ys.prototype.gc,ys.prototype.getOpacity=ys.prototype.hc,ys.prototype.getVisible=ys.prototype.Mb,ys.prototype.getZIndex=ys.prototype.Ba,ys.prototype.setExtent=ys.prototype.vc,ys.prototype.setMaxResolution=ys.prototype.Ac,ys.prototype.setMinResolution=ys.prototype.Bc,ys.prototype.setOpacity=ys.prototype.wc,ys.prototype.setVisible=ys.prototype.xc,ys.prototype.setZIndex=ys.prototype.Vb,ys.prototype.getKeys=ys.prototype.O,ys.prototype.getProperties=ys.prototype.N,ys.prototype.setProperties=ys.prototype.H,ys.prototype.unset=ys.prototype.P,ys.prototype.changed=ys.prototype.s,ys.prototype.dispatchEvent=ys.prototype.b,ys.prototype.getRevision=ys.prototype.L,ys.prototype.on=ys.prototype.J,ys.prototype.un=ys.prototype.K,s.prototype.setSource=s.prototype.Wc,s.prototype.getExtent=s.prototype.G,s.prototype.getMaxResolution=s.prototype.fc,s.prototype.getMinResolution=s.prototype.gc,s.prototype.getOpacity=s.prototype.hc,s.prototype.getVisible=s.prototype.Mb,s.prototype.getZIndex=s.prototype.Ba,s.prototype.setExtent=s.prototype.vc,s.prototype.setMaxResolution=s.prototype.Ac,s.prototype.setMinResolution=s.prototype.Bc,s.prototype.setOpacity=s.prototype.wc,s.prototype.setVisible=s.prototype.xc,s.prototype.setZIndex=s.prototype.Vb,s.prototype.getKeys=s.prototype.O,s.prototype.getProperties=s.prototype.N,s.prototype.setProperties=s.prototype.H,s.prototype.unset=s.prototype.P,s.prototype.changed=s.prototype.s,s.prototype.dispatchEvent=s.prototype.b,s.prototype.getRevision=s.prototype.L,s.prototype.on=s.prototype.J,s.prototype.un=s.prototype.K,p.prototype.getSource=p.prototype.ha,p.prototype.getStyle=p.prototype.D,p.prototype.getStyleFunction=p.prototype.C,p.prototype.setStyle=p.prototype.g,p.prototype.setSource=p.prototype.Wc,p.prototype.getExtent=p.prototype.G,p.prototype.getMaxResolution=p.prototype.fc,p.prototype.getMinResolution=p.prototype.gc,p.prototype.getOpacity=p.prototype.hc,p.prototype.getVisible=p.prototype.Mb,p.prototype.getZIndex=p.prototype.Ba,p.prototype.setExtent=p.prototype.vc,p.prototype.setMaxResolution=p.prototype.Ac,p.prototype.setMinResolution=p.prototype.Bc,p.prototype.setOpacity=p.prototype.wc,p.prototype.setVisible=p.prototype.xc,p.prototype.setZIndex=p.prototype.Vb,p.prototype.getKeys=p.prototype.O,p.prototype.getProperties=p.prototype.N,p.prototype.setProperties=p.prototype.H,p.prototype.unset=p.prototype.P,p.prototype.changed=p.prototype.s,p.prototype.dispatchEvent=p.prototype.b,p.prototype.getRevision=p.prototype.L,p.prototype.on=p.prototype.J,p.prototype.un=p.prototype.K,pm.prototype.setSource=pm.prototype.Wc,pm.prototype.getExtent=pm.prototype.G,pm.prototype.getMaxResolution=pm.prototype.fc,pm.prototype.getMinResolution=pm.prototype.gc,pm.prototype.getOpacity=pm.prototype.hc,pm.prototype.getVisible=pm.prototype.Mb,pm.prototype.getZIndex=pm.prototype.Ba,pm.prototype.setExtent=pm.prototype.vc,pm.prototype.setMaxResolution=pm.prototype.Ac,pm.prototype.setMinResolution=pm.prototype.Bc,pm.prototype.setOpacity=pm.prototype.wc,pm.prototype.setVisible=pm.prototype.xc,pm.prototype.setZIndex=pm.prototype.Vb,pm.prototype.getKeys=pm.prototype.O,pm.prototype.getProperties=pm.prototype.N,pm.prototype.setProperties=pm.prototype.H,pm.prototype.unset=pm.prototype.P,pm.prototype.changed=pm.prototype.s,pm.prototype.dispatchEvent=pm.prototype.b,pm.prototype.getRevision=pm.prototype.L,pm.prototype.on=pm.prototype.J,pm.prototype.un=pm.prototype.K,A.prototype.setSource=A.prototype.Wc,A.prototype.getExtent=A.prototype.G,A.prototype.getMaxResolution=A.prototype.fc,A.prototype.getMinResolution=A.prototype.gc,A.prototype.getOpacity=A.prototype.hc,A.prototype.getVisible=A.prototype.Mb,A.prototype.getZIndex=A.prototype.Ba,A.prototype.setExtent=A.prototype.vc,A.prototype.setMaxResolution=A.prototype.Ac,A.prototype.setMinResolution=A.prototype.Bc,A.prototype.setOpacity=A.prototype.wc,A.prototype.setVisible=A.prototype.xc,A.prototype.setZIndex=A.prototype.Vb,A.prototype.getKeys=A.prototype.O,A.prototype.getProperties=A.prototype.N,A.prototype.setProperties=A.prototype.H,A.prototype.unset=A.prototype.P,A.prototype.changed=A.prototype.s,A.prototype.dispatchEvent=A.prototype.b,A.prototype.getRevision=A.prototype.L,A.prototype.on=A.prototype.J,A.prototype.un=A.prototype.K,E.prototype.getSource=E.prototype.ha,E.prototype.getStyle=E.prototype.D,E.prototype.getStyleFunction=E.prototype.C,E.prototype.setStyle=E.prototype.g,E.prototype.setSource=E.prototype.Wc,E.prototype.getExtent=E.prototype.G,E.prototype.getMaxResolution=E.prototype.fc,E.prototype.getMinResolution=E.prototype.gc,E.prototype.getOpacity=E.prototype.hc,E.prototype.getVisible=E.prototype.Mb,E.prototype.getZIndex=E.prototype.Ba,E.prototype.setExtent=E.prototype.vc,E.prototype.setMaxResolution=E.prototype.Ac,E.prototype.setMinResolution=E.prototype.Bc,E.prototype.setOpacity=E.prototype.wc,E.prototype.setVisible=E.prototype.xc,E.prototype.setZIndex=E.prototype.Vb,E.prototype.getKeys=E.prototype.O,E.prototype.getProperties=E.prototype.N,E.prototype.setProperties=E.prototype.H,E.prototype.unset=E.prototype.P,E.prototype.changed=E.prototype.s,E.prototype.dispatchEvent=E.prototype.b,E.prototype.getRevision=E.prototype.L,E.prototype.on=E.prototype.J,E.prototype.un=E.prototype.K,pn.prototype.getKeys=pn.prototype.O,pn.prototype.getProperties=pn.prototype.N,pn.prototype.setProperties=pn.prototype.H,pn.prototype.unset=pn.prototype.P,pn.prototype.changed=pn.prototype.s,pn.prototype.dispatchEvent=pn.prototype.b,pn.prototype.getRevision=pn.prototype.L,pn.prototype.on=pn.prototype.J,pn.prototype.un=pn.prototype.K,cn.prototype.getActive=cn.prototype.c,cn.prototype.getMap=cn.prototype.f,cn.prototype.setActive=cn.prototype.Ha,cn.prototype.getKeys=cn.prototype.O,cn.prototype.getProperties=cn.prototype.N,cn.prototype.setProperties=cn.prototype.H,cn.prototype.unset=cn.prototype.P,cn.prototype.changed=cn.prototype.s,cn.prototype.dispatchEvent=cn.prototype.b,cn.prototype.getRevision=cn.prototype.L,cn.prototype.on=cn.prototype.J,cn.prototype.un=cn.prototype.K,E0.prototype.getActive=E0.prototype.c,E0.prototype.getMap=E0.prototype.f,E0.prototype.setActive=E0.prototype.Ha,E0.prototype.getKeys=E0.prototype.O,E0.prototype.getProperties=E0.prototype.N,E0.prototype.setProperties=E0.prototype.H,E0.prototype.unset=E0.prototype.P,E0.prototype.changed=E0.prototype.s,E0.prototype.dispatchEvent=E0.prototype.b,E0.prototype.getRevision=E0.prototype.L,E0.prototype.on=E0.prototype.J,E0.prototype.un=E0.prototype.K,Mn.prototype.getActive=Mn.prototype.c,Mn.prototype.getMap=Mn.prototype.f,Mn.prototype.setActive=Mn.prototype.Ha,Mn.prototype.getKeys=Mn.prototype.O,Mn.prototype.getProperties=Mn.prototype.N,Mn.prototype.setProperties=Mn.prototype.H,Mn.prototype.unset=Mn.prototype.P,Mn.prototype.changed=Mn.prototype.s,Mn.prototype.dispatchEvent=Mn.prototype.b,Mn.prototype.getRevision=Mn.prototype.L,Mn.prototype.on=Mn.prototype.J,Mn.prototype.un=Mn.prototype.K,On.prototype.getActive=On.prototype.c,On.prototype.getMap=On.prototype.f,On.prototype.setActive=On.prototype.Ha,On.prototype.getKeys=On.prototype.O,On.prototype.getProperties=On.prototype.N,On.prototype.setProperties=On.prototype.H,On.prototype.unset=On.prototype.P,On.prototype.changed=On.prototype.s,On.prototype.dispatchEvent=On.prototype.b,On.prototype.getRevision=On.prototype.L,On.prototype.on=On.prototype.J,On.prototype.un=On.prototype.K,En.prototype.getActive=En.prototype.c,En.prototype.getMap=En.prototype.f,En.prototype.setActive=En.prototype.Ha,En.prototype.getKeys=En.prototype.O,En.prototype.getProperties=En.prototype.N,En.prototype.setProperties=En.prototype.H,En.prototype.unset=En.prototype.P,En.prototype.changed=En.prototype.s,En.prototype.dispatchEvent=En.prototype.b,En.prototype.getRevision=En.prototype.L,En.prototype.on=En.prototype.J,En.prototype.un=En.prototype.K,Ln.prototype.getActive=Ln.prototype.c,Ln.prototype.getMap=Ln.prototype.f,Ln.prototype.setActive=Ln.prototype.Ha,Ln.prototype.getKeys=Ln.prototype.O,Ln.prototype.getProperties=Ln.prototype.N,Ln.prototype.setProperties=Ln.prototype.H,Ln.prototype.unset=Ln.prototype.P,Ln.prototype.changed=Ln.prototype.s,Ln.prototype.dispatchEvent=Ln.prototype.b,Ln.prototype.getRevision=Ln.prototype.L,Ln.prototype.on=Ln.prototype.J,Ln.prototype.un=Ln.prototype.K,N0.prototype.getActive=N0.prototype.c,N0.prototype.getMap=N0.prototype.f,N0.prototype.setActive=N0.prototype.Ha,N0.prototype.getKeys=N0.prototype.O,N0.prototype.getProperties=N0.prototype.N,N0.prototype.setProperties=N0.prototype.H,N0.prototype.unset=N0.prototype.P,N0.prototype.changed=N0.prototype.s,N0.prototype.dispatchEvent=N0.prototype.b,N0.prototype.getRevision=N0.prototype.L,N0.prototype.on=N0.prototype.J,N0.prototype.un=N0.prototype.K,zn.prototype.getGeometry=zn.prototype.V,zn.prototype.getActive=zn.prototype.c,zn.prototype.getMap=zn.prototype.f,zn.prototype.setActive=zn.prototype.Ha,zn.prototype.getKeys=zn.prototype.O,zn.prototype.getProperties=zn.prototype.N,zn.prototype.setProperties=zn.prototype.H,zn.prototype.unset=zn.prototype.P,zn.prototype.changed=zn.prototype.s,zn.prototype.dispatchEvent=zn.prototype.b,zn.prototype.getRevision=zn.prototype.L,zn.prototype.on=zn.prototype.J,zn.prototype.un=zn.prototype.K,Uv.prototype.getActive=Uv.prototype.c,Uv.prototype.getMap=Uv.prototype.f,Uv.prototype.setActive=Uv.prototype.Ha,Uv.prototype.getKeys=Uv.prototype.O,Uv.prototype.getProperties=Uv.prototype.N,Uv.prototype.setProperties=Uv.prototype.H,Uv.prototype.unset=Uv.prototype.P,Uv.prototype.changed=Uv.prototype.s,Uv.prototype.dispatchEvent=Uv.prototype.b,Uv.prototype.getRevision=Uv.prototype.L,Uv.prototype.on=Uv.prototype.J,Uv.prototype.un=Uv.prototype.K,Qv.prototype.getActive=Qv.prototype.c,Qv.prototype.getMap=Qv.prototype.f,Qv.prototype.setActive=Qv.prototype.Ha,Qv.prototype.getKeys=Qv.prototype.O,Qv.prototype.getProperties=Qv.prototype.N,Qv.prototype.setProperties=Qv.prototype.H,Qv.prototype.unset=Qv.prototype.P,Qv.prototype.changed=Qv.prototype.s,Qv.prototype.dispatchEvent=Qv.prototype.b,Qv.prototype.getRevision=Qv.prototype.L,Qv.prototype.on=Qv.prototype.J,Qv.prototype.un=Qv.prototype.K,Yn.prototype.getActive=Yn.prototype.c,Yn.prototype.getMap=Yn.prototype.f,Yn.prototype.setActive=Yn.prototype.Ha,Yn.prototype.getKeys=Yn.prototype.O,Yn.prototype.getProperties=Yn.prototype.N,Yn.prototype.setProperties=Yn.prototype.H,Yn.prototype.unset=Yn.prototype.P,Yn.prototype.changed=Yn.prototype.s,Yn.prototype.dispatchEvent=Yn.prototype.b,Yn.prototype.getRevision=Yn.prototype.L,Yn.prototype.on=Yn.prototype.J,Yn.prototype.un=Yn.prototype.K,qn.prototype.getActive=qn.prototype.c,qn.prototype.getMap=qn.prototype.f,qn.prototype.setActive=qn.prototype.Ha,qn.prototype.getKeys=qn.prototype.O,qn.prototype.getProperties=qn.prototype.N,qn.prototype.setProperties=qn.prototype.H,qn.prototype.unset=qn.prototype.P,qn.prototype.changed=qn.prototype.s,qn.prototype.dispatchEvent=qn.prototype.b,qn.prototype.getRevision=qn.prototype.L,qn.prototype.on=qn.prototype.J,qn.prototype.un=qn.prototype.K,lb.prototype.getActive=lb.prototype.c,lb.prototype.getMap=lb.prototype.f,lb.prototype.setActive=lb.prototype.Ha,lb.prototype.getKeys=lb.prototype.O,lb.prototype.getProperties=lb.prototype.N,lb.prototype.setProperties=lb.prototype.H,lb.prototype.unset=lb.prototype.P,lb.prototype.changed=lb.prototype.s,lb.prototype.dispatchEvent=lb.prototype.b,lb.prototype.getRevision=lb.prototype.L,lb.prototype.on=lb.prototype.J,lb.prototype.un=lb.prototype.K,_n.prototype.getActive=_n.prototype.c,_n.prototype.getMap=_n.prototype.f,_n.prototype.setActive=_n.prototype.Ha,_n.prototype.getKeys=_n.prototype.O,_n.prototype.getProperties=_n.prototype.N,_n.prototype.setProperties=_n.prototype.H,_n.prototype.unset=_n.prototype.P,_n.prototype.changed=_n.prototype.s,_n.prototype.dispatchEvent=_n.prototype.b,_n.prototype.getRevision=_n.prototype.L,_n.prototype.on=_n.prototype.J,_n.prototype.un=_n.prototype.K,es.prototype.getActive=es.prototype.c,es.prototype.getMap=es.prototype.f,es.prototype.setActive=es.prototype.Ha,es.prototype.getKeys=es.prototype.O,es.prototype.getProperties=es.prototype.N,es.prototype.setProperties=es.prototype.H,es.prototype.unset=es.prototype.P,es.prototype.changed=es.prototype.s,es.prototype.dispatchEvent=es.prototype.b,es.prototype.getRevision=es.prototype.L,es.prototype.on=es.prototype.J,es.prototype.un=es.prototype.K,ns.prototype.getActive=ns.prototype.c,ns.prototype.getMap=ns.prototype.f,ns.prototype.setActive=ns.prototype.Ha,ns.prototype.getKeys=ns.prototype.O,ns.prototype.getProperties=ns.prototype.N,ns.prototype.setProperties=ns.prototype.H,ns.prototype.unset=ns.prototype.P,ns.prototype.changed=ns.prototype.s,ns.prototype.dispatchEvent=ns.prototype.b,ns.prototype.getRevision=ns.prototype.L,ns.prototype.on=ns.prototype.J,ns.prototype.un=ns.prototype.K,Pb.prototype.getActive=Pb.prototype.c,Pb.prototype.getMap=Pb.prototype.f,Pb.prototype.setActive=Pb.prototype.Ha,Pb.prototype.getKeys=Pb.prototype.O,Pb.prototype.getProperties=Pb.prototype.N,Pb.prototype.setProperties=Pb.prototype.H,Pb.prototype.unset=Pb.prototype.P,Pb.prototype.changed=Pb.prototype.s,Pb.prototype.dispatchEvent=Pb.prototype.b,Pb.prototype.getRevision=Pb.prototype.L,Pb.prototype.on=Pb.prototype.J,Pb.prototype.un=Pb.prototype.K,jb.prototype.getActive=jb.prototype.c,jb.prototype.getMap=jb.prototype.f,jb.prototype.setActive=jb.prototype.Ha,jb.prototype.getKeys=jb.prototype.O,jb.prototype.getProperties=jb.prototype.N,jb.prototype.setProperties=jb.prototype.H,jb.prototype.unset=jb.prototype.P,jb.prototype.changed=jb.prototype.s,jb.prototype.dispatchEvent=jb.prototype.b,jb.prototype.getRevision=jb.prototype.L,jb.prototype.on=jb.prototype.J,jb.prototype.un=jb.prototype.K,Ib.prototype.getActive=Ib.prototype.c,Ib.prototype.getMap=Ib.prototype.f,Ib.prototype.setActive=Ib.prototype.Ha,Ib.prototype.getKeys=Ib.prototype.O,Ib.prototype.getProperties=Ib.prototype.N,Ib.prototype.setProperties=Ib.prototype.H,Ib.prototype.unset=Ib.prototype.P,Ib.prototype.changed=Ib.prototype.s,Ib.prototype.dispatchEvent=Ib.prototype.b,Ib.prototype.getRevision=Ib.prototype.L,Ib.prototype.on=Ib.prototype.J,Ib.prototype.un=Ib.prototype.K,yr.prototype.getKeys=yr.prototype.O,yr.prototype.getProperties=yr.prototype.N,yr.prototype.setProperties=yr.prototype.H,yr.prototype.unset=yr.prototype.P,yr.prototype.changed=yr.prototype.s,yr.prototype.dispatchEvent=yr.prototype.b,yr.prototype.getRevision=yr.prototype.L,yr.prototype.on=yr.prototype.J,yr.prototype.un=yr.prototype.K,b.prototype.getClosestPoint=b.prototype.Ab,b.prototype.intersectsCoordinate=b.prototype.sb,b.prototype.getExtent=b.prototype.G,b.prototype.simplify=b.prototype.Rb,b.prototype.transform=b.prototype.tb,b.prototype.getKeys=b.prototype.O,b.prototype.getProperties=b.prototype.N,b.prototype.setProperties=b.prototype.H,b.prototype.unset=b.prototype.P,b.prototype.changed=b.prototype.s,b.prototype.dispatchEvent=b.prototype.b,b.prototype.getRevision=b.prototype.L,b.prototype.on=b.prototype.J,b.prototype.un=b.prototype.K,h0.prototype.getFirstCoordinate=h0.prototype.ac,h0.prototype.getLastCoordinate=h0.prototype.bc,h0.prototype.getLayout=h0.prototype.cc,h0.prototype.getClosestPoint=h0.prototype.Ab,h0.prototype.intersectsCoordinate=h0.prototype.sb,h0.prototype.getExtent=h0.prototype.G,h0.prototype.simplify=h0.prototype.Rb,h0.prototype.getKeys=h0.prototype.O,h0.prototype.getProperties=h0.prototype.N,h0.prototype.setProperties=h0.prototype.H,h0.prototype.unset=h0.prototype.P,h0.prototype.changed=h0.prototype.s,h0.prototype.dispatchEvent=h0.prototype.b,h0.prototype.getRevision=h0.prototype.L,h0.prototype.on=h0.prototype.J,h0.prototype.un=h0.prototype.K,uu.prototype.getClosestPoint=uu.prototype.Ab,uu.prototype.intersectsCoordinate=uu.prototype.sb,uu.prototype.getExtent=uu.prototype.G,uu.prototype.simplify=uu.prototype.Rb,uu.prototype.transform=uu.prototype.tb,uu.prototype.getKeys=uu.prototype.O,uu.prototype.getProperties=uu.prototype.N,uu.prototype.setProperties=uu.prototype.H,uu.prototype.unset=uu.prototype.P,uu.prototype.changed=uu.prototype.s,uu.prototype.dispatchEvent=uu.prototype.b,uu.prototype.getRevision=uu.prototype.L,uu.prototype.on=uu.prototype.J,uu.prototype.un=uu.prototype.K,Fr.prototype.getFirstCoordinate=Fr.prototype.ac,Fr.prototype.getLastCoordinate=Fr.prototype.bc,Fr.prototype.getLayout=Fr.prototype.cc,Fr.prototype.getClosestPoint=Fr.prototype.Ab,Fr.prototype.intersectsCoordinate=Fr.prototype.sb,Fr.prototype.getExtent=Fr.prototype.G,Fr.prototype.simplify=Fr.prototype.Rb,Fr.prototype.transform=Fr.prototype.tb,Fr.prototype.getKeys=Fr.prototype.O,Fr.prototype.getProperties=Fr.prototype.N,Fr.prototype.setProperties=Fr.prototype.H,Fr.prototype.unset=Fr.prototype.P,Fr.prototype.changed=Fr.prototype.s,Fr.prototype.dispatchEvent=Fr.prototype.b,Fr.prototype.getRevision=Fr.prototype.L,Fr.prototype.on=Fr.prototype.J,Fr.prototype.un=Fr.prototype.K,S.prototype.getFirstCoordinate=S.prototype.ac,S.prototype.getLastCoordinate=S.prototype.bc,S.prototype.getLayout=S.prototype.cc,S.prototype.getClosestPoint=S.prototype.Ab,S.prototype.intersectsCoordinate=S.prototype.sb,S.prototype.getExtent=S.prototype.G,S.prototype.simplify=S.prototype.Rb,S.prototype.transform=S.prototype.tb,S.prototype.getKeys=S.prototype.O,S.prototype.getProperties=S.prototype.N,S.prototype.setProperties=S.prototype.H,S.prototype.unset=S.prototype.P,S.prototype.changed=S.prototype.s,S.prototype.dispatchEvent=S.prototype.b,S.prototype.getRevision=S.prototype.L,S.prototype.on=S.prototype.J,S.prototype.un=S.prototype.K,M.prototype.getFirstCoordinate=M.prototype.ac,M.prototype.getLastCoordinate=M.prototype.bc,M.prototype.getLayout=M.prototype.cc,M.prototype.getClosestPoint=M.prototype.Ab,M.prototype.intersectsCoordinate=M.prototype.sb,M.prototype.getExtent=M.prototype.G,M.prototype.simplify=M.prototype.Rb,M.prototype.transform=M.prototype.tb,M.prototype.getKeys=M.prototype.O,M.prototype.getProperties=M.prototype.N,M.prototype.setProperties=M.prototype.H,M.prototype.unset=M.prototype.P,M.prototype.changed=M.prototype.s,M.prototype.dispatchEvent=M.prototype.b,M.prototype.getRevision=M.prototype.L,M.prototype.on=M.prototype.J,M.prototype.un=M.prototype.K,P.prototype.getFirstCoordinate=P.prototype.ac,P.prototype.getLastCoordinate=P.prototype.bc,P.prototype.getLayout=P.prototype.cc,P.prototype.getClosestPoint=P.prototype.Ab,P.prototype.intersectsCoordinate=P.prototype.sb,P.prototype.getExtent=P.prototype.G,P.prototype.simplify=P.prototype.Rb,P.prototype.transform=P.prototype.tb,P.prototype.getKeys=P.prototype.O,P.prototype.getProperties=P.prototype.N,P.prototype.setProperties=P.prototype.H,P.prototype.unset=P.prototype.P,P.prototype.changed=P.prototype.s,P.prototype.dispatchEvent=P.prototype.b,P.prototype.getRevision=P.prototype.L,P.prototype.on=P.prototype.J,P.prototype.un=P.prototype.K,f.prototype.getFirstCoordinate=f.prototype.ac,f.prototype.getLastCoordinate=f.prototype.bc,f.prototype.getLayout=f.prototype.cc,f.prototype.getClosestPoint=f.prototype.Ab,f.prototype.intersectsCoordinate=f.prototype.sb,f.prototype.getExtent=f.prototype.G,f.prototype.simplify=f.prototype.Rb,f.prototype.transform=f.prototype.tb,f.prototype.getKeys=f.prototype.O,f.prototype.getProperties=f.prototype.N,f.prototype.setProperties=f.prototype.H,f.prototype.unset=f.prototype.P,f.prototype.changed=f.prototype.s,f.prototype.dispatchEvent=f.prototype.b,f.prototype.getRevision=f.prototype.L,f.prototype.on=f.prototype.J,f.prototype.un=f.prototype.K,m.prototype.getFirstCoordinate=m.prototype.ac,m.prototype.getLastCoordinate=m.prototype.bc,m.prototype.getLayout=m.prototype.cc,m.prototype.getClosestPoint=m.prototype.Ab,m.prototype.intersectsCoordinate=m.prototype.sb,m.prototype.getExtent=m.prototype.G,m.prototype.simplify=m.prototype.Rb,m.prototype.transform=m.prototype.tb,m.prototype.getKeys=m.prototype.O,m.prototype.getProperties=m.prototype.N,m.prototype.setProperties=m.prototype.H,m.prototype.unset=m.prototype.P,m.prototype.changed=m.prototype.s,m.prototype.dispatchEvent=m.prototype.b,m.prototype.getRevision=m.prototype.L,m.prototype.on=m.prototype.J,m.prototype.un=m.prototype.K,w.prototype.getFirstCoordinate=w.prototype.ac,w.prototype.getLastCoordinate=w.prototype.bc,w.prototype.getLayout=w.prototype.cc,w.prototype.getClosestPoint=w.prototype.Ab,w.prototype.intersectsCoordinate=w.prototype.sb,w.prototype.getExtent=w.prototype.G,w.prototype.simplify=w.prototype.Rb,w.prototype.transform=w.prototype.tb,w.prototype.getKeys=w.prototype.O,w.prototype.getProperties=w.prototype.N,w.prototype.setProperties=w.prototype.H,w.prototype.unset=w.prototype.P,w.prototype.changed=w.prototype.s,w.prototype.dispatchEvent=w.prototype.b,w.prototype.getRevision=w.prototype.L,w.prototype.on=w.prototype.J,w.prototype.un=w.prototype.K,y.prototype.readFeatures=y.prototype.Oa,Zu.prototype.readFeatures=Zu.prototype.Oa,y.prototype.readFeatures=y.prototype.Oa,To.prototype.getKeys=To.prototype.O,To.prototype.getProperties=To.prototype.N,To.prototype.setProperties=To.prototype.H,To.prototype.unset=To.prototype.P,To.prototype.changed=To.prototype.s,To.prototype.dispatchEvent=To.prototype.b,To.prototype.getRevision=To.prototype.L,To.prototype.on=To.prototype.J,To.prototype.un=To.prototype.K,jo.prototype.getMap=jo.prototype.g,jo.prototype.setTarget=jo.prototype.f,jo.prototype.getKeys=jo.prototype.O,jo.prototype.getProperties=jo.prototype.N,jo.prototype.setProperties=jo.prototype.H,jo.prototype.unset=jo.prototype.P,jo.prototype.changed=jo.prototype.s,jo.prototype.dispatchEvent=jo.prototype.b,jo.prototype.getRevision=jo.prototype.L,jo.prototype.on=jo.prototype.J,jo.prototype.un=jo.prototype.K,Go.prototype.getMap=Go.prototype.g,Go.prototype.setTarget=Go.prototype.f,Go.prototype.getKeys=Go.prototype.O,Go.prototype.getProperties=Go.prototype.N,Go.prototype.setProperties=Go.prototype.H,Go.prototype.unset=Go.prototype.P,Go.prototype.changed=Go.prototype.s,Go.prototype.dispatchEvent=Go.prototype.b,Go.prototype.getRevision=Go.prototype.L,Go.prototype.on=Go.prototype.J,Go.prototype.un=Go.prototype.K,Ko.prototype.getMap=Ko.prototype.g,Ko.prototype.setTarget=Ko.prototype.f,Ko.prototype.getKeys=Ko.prototype.O,Ko.prototype.getProperties=Ko.prototype.N,Ko.prototype.setProperties=Ko.prototype.H,Ko.prototype.unset=Ko.prototype.P,Ko.prototype.changed=Ko.prototype.s,Ko.prototype.dispatchEvent=Ko.prototype.b,Ko.prototype.getRevision=Ko.prototype.L,Ko.prototype.on=Ko.prototype.J,Ko.prototype.un=Ko.prototype.K,Sh.prototype.getMap=Sh.prototype.g,Sh.prototype.setTarget=Sh.prototype.f,Sh.prototype.getKeys=Sh.prototype.O,Sh.prototype.getProperties=Sh.prototype.N,Sh.prototype.setProperties=Sh.prototype.H,Sh.prototype.unset=Sh.prototype.P,Sh.prototype.changed=Sh.prototype.s,Sh.prototype.dispatchEvent=Sh.prototype.b,Sh.prototype.getRevision=Sh.prototype.L,Sh.prototype.on=Sh.prototype.J,Sh.prototype.un=Sh.prototype.K,ko.prototype.getMap=ko.prototype.g,ko.prototype.setTarget=ko.prototype.f,ko.prototype.getKeys=ko.prototype.O,ko.prototype.getProperties=ko.prototype.N,ko.prototype.setProperties=ko.prototype.H,ko.prototype.unset=ko.prototype.P,ko.prototype.changed=ko.prototype.s,ko.prototype.dispatchEvent=ko.prototype.b,ko.prototype.getRevision=ko.prototype.L,ko.prototype.on=ko.prototype.J,ko.prototype.un=ko.prototype.K,Th.prototype.getMap=Th.prototype.g,Th.prototype.setTarget=Th.prototype.f,Th.prototype.getKeys=Th.prototype.O,Th.prototype.getProperties=Th.prototype.N,Th.prototype.setProperties=Th.prototype.H,Th.prototype.unset=Th.prototype.P,Th.prototype.changed=Th.prototype.s,Th.prototype.dispatchEvent=Th.prototype.b,Th.prototype.getRevision=Th.prototype.L,Th.prototype.on=Th.prototype.J,Th.prototype.un=Th.prototype.K,Oo.prototype.getMap=Oo.prototype.g,Oo.prototype.setMap,Oo.prototype.setTarget=Oo.prototype.f,Oo.prototype.get,Oo.prototype.getKeys=Oo.prototype.O,Oo.prototype.getProperties=Oo.prototype.N,Oo.prototype.set,Oo.prototype.setProperties=Oo.prototype.H,Oo.prototype.unset=Oo.prototype.P,Oo.prototype.changed=Oo.prototype.s,Oo.prototype.dispatchEvent=Oo.prototype.b,Oo.prototype.getRevision=Oo.prototype.L,Oo.prototype.on=Oo.prototype.J,Oo.prototype.once,Oo.prototype.un=Oo.prototype.K,Ih.prototype.getMap=Ih.prototype.g,Ih.prototype.setTarget=Ih.prototype.f,Ih.prototype.getKeys=Ih.prototype.O,Ih.prototype.getProperties=Ih.prototype.N,Ih.prototype.setProperties=Ih.prototype.H,Ih.prototype.unset=Ih.prototype.P,Ih.prototype.changed=Ih.prototype.s,Ih.prototype.dispatchEvent=Ih.prototype.b,Ih.prototype.getRevision=Ih.prototype.L,Ih.prototype.on=Ih.prototype.J,Ih.prototype.un=Ih.prototype.K,Oh.prototype.getMap=Oh.prototype.g,Oh.prototype.setTarget=Oh.prototype.f,Oh.prototype.getKeys=Oh.prototype.O,Oh.prototype.getProperties=Oh.prototype.N,Oh.prototype.setProperties=Oh.prototype.H,Oh.prototype.unset=Oh.prototype.P,Oh.prototype.changed=Oh.prototype.s,Oh.prototype.dispatchEvent=Oh.prototype.b,Oh.prototype.getRevision=Oh.prototype.L,Oh.prototype.on=Oh.prototype.J,Oh.prototype.un=Oh.prototype.K,F.ol})
\ No newline at end of file
public/scripts/xterm-addon-fit-min.js
+1
-1
@@ -1 +1 @@
1
-!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FitAddon=t():e.FitAddon=t()}(window,function(){return r=[function(e,t,r){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0}),n.prototype.activate=function(e){this._terminal=e},n.prototype.dispose=function(){},n.prototype.fit=function(){var e,t=this.proposeDimensions();t&&this._terminal&&(e=this._terminal._core,this._terminal.rows===t.rows&&this._terminal.cols===t.cols||(e._renderService.clear(),this._terminal.resize(t.cols,t.rows)))},n.prototype.proposeDimensions=function(){var e,t,r,n;if(this._terminal&&this._terminal.element&&this._terminal.element.parentElement)return e=this._terminal._core,n=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(n.getPropertyValue("height")),n=Math.max(0,parseInt(n.getPropertyValue("width"))),t=window.getComputedStyle(this._terminal.element),r=r-(parseInt(t.getPropertyValue("padding-top"))+parseInt(t.getPropertyValue("padding-bottom"))),n=n-(parseInt(t.getPropertyValue("padding-right"))+parseInt(t.getPropertyValue("padding-left")))-e.viewport.scrollBarWidth,{cols:Math.max(2,Math.floor(n/e._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(r/e._renderService.dimensions.actualCellHeight))}},t.FitAddon=n}],n={},o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0);function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var r,n})
\ No newline at end of file
1
+!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FitAddon=t():e.FitAddon=t()}(window,function(){return r=[function(e,t,r){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0}),n.prototype.activate=function(e){this._terminal=e},n.prototype.dispose=function(){},n.prototype.fit=function(){var e,t=this.proposeDimensions();t&&this._terminal&&(e=this._terminal._core,this._terminal.rows===t.rows&&this._terminal.cols===t.cols||(e._renderService.clear(),this._terminal.resize(t.cols,t.rows)))},n.prototype.proposeDimensions=function(){var e,t,r,n;if(this._terminal&&this._terminal.element&&this._terminal.element.parentElement)return e=this._terminal._core,n=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(n.getPropertyValue("height")),n=Math.max(0,parseInt(n.getPropertyValue("width"))),t=window.getComputedStyle(this._terminal.element),r=r-(parseInt(t.getPropertyValue("padding-top"))+parseInt(t.getPropertyValue("padding-bottom"))),n=n-(parseInt(t.getPropertyValue("padding-right"))+parseInt(t.getPropertyValue("padding-left")))-e.viewport.scrollBarWidth,{cols:Math.max(2,Math.floor(n/e._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(r/e._renderService.dimensions.actualCellHeight))}},t.FitAddon=n}],n={},o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0);function o(e){var t;return(n[e]||(t=n[e]={i:e,l:!1,exports:{}},r[e].call(t.exports,t,t.exports,o),t.l=!0,t)).exports}var r,n})
\ No newline at end of file
public/scripts/xterm-min.js
+1
-1
@@ -1 +1 @@
1
-!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i,s=t();for(i in s)("object"==typeof exports?exports:e)[i]=s[i]}}(self,function(){return(()=>{"use strict";var i={4567:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;const s=i(9042),r=i(6114),n=i(9924),o=i(3656),a=i(844),h=i(5596),l=i(9631);class c extends a.Disposable{constructor(e,t){super(),this._terminal=e,this._renderService=t,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityTreeRoot=document.createElement("div"),this._accessibilityTreeRoot.classList.add("xterm-accessibility"),this._accessibilityTreeRoot.tabIndex=0,this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let e=0;e<this._terminal.rows;e++)this._rowElements[e]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[e]);if(this._topBoundaryFocusListener=e=>this._onBoundaryFocus(e,0),this._bottomBoundaryFocusListener=e=>this._onBoundaryFocus(e,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityTreeRoot.appendChild(this._rowContainer),this._renderRowsDebouncer=new n.TimeBasedDebouncer(this._renderRows.bind(this)),this._refreshRows(),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityTreeRoot.appendChild(this._liveRegion),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityTreeRoot),this.register(this._renderRowsDebouncer),this.register(this._terminal.onResize(e=>this._onResize(e.rows))),this.register(this._terminal.onRender(e=>this._refreshRows(e.start,e.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(e=>this._onChar(e))),this.register(this._terminal.onLineFeed(()=>this._onChar("\n"))),this.register(this._terminal.onA11yTab(e=>this._onTab(e))),this.register(this._terminal.onKey(e=>this._onKey(e.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new h.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,o.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions()))}dispose(){super.dispose(),(0,l.removeElementFromParent)(this._accessibilityTreeRoot),this._rowElements.length=0}_onBoundaryFocus(i,s){const r=i.target,e=this._rowElements[0===s?1:this._rowElements.length-2];if(r.getAttribute("aria-posinset")!==(0===s?"1":""+this._terminal.buffer.lines.length)&&i.relatedTarget===e){let e,t;if(0===s?(e=r,t=this._rowElements.pop(),this._rowContainer.removeChild(t)):(e=this._rowElements.shift(),t=r,this._rowContainer.removeChild(e)),e.removeEventListener("focus",this._topBoundaryFocusListener),t.removeEventListener("focus",this._bottomBoundaryFocusListener),0===s){const i=this._createAccessibilityTreeNode();this._rowElements.unshift(i),this._rowContainer.insertAdjacentElement("afterbegin",i)}else{const i=this._createAccessibilityTreeNode();this._rowElements.push(i),this._rowContainer.appendChild(i)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===s?-1:1),this._rowElements[0===s?1:this._rowElements.length-2].focus(),i.preventDefault(),i.stopImmediatePropagation()}}_onResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let e=this._rowContainer.children.length;e<this._terminal.rows;e++)this._rowElements[e]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[e]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_onTab(t){for(let e=0;e<t;e++)this._onChar(" ")}_onChar(e){this._liveRegionLineCount<21&&(0<this._charsToConsume.length&&this._charsToConsume.shift()===e||(this._charsToAnnounce+=e),"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=s.tooMuchOutput)),r.isMac&&this._liveRegion.textContent&&0<this._liveRegion.textContent.length&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityTreeRoot.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,r.isMac&&(0,l.removeElementFromParent)(this._liveRegion)}_onKey(e){this._clearLiveRegion(),this._charsToConsume.push(e)}_refreshRows(e,t){this._renderRowsDebouncer.refresh(e,t,this._terminal.rows)}_renderRows(t,i){const s=this._terminal.buffer,r=s.lines.length.toString();for(let e=t;e<=i;e++){const t=s.translateBufferLineToString(s.ydisp+e,!0),i=(s.ydisp+e+1).toString(),n=this._rowElements[e];n&&(0===t.length?n.innerText=" ":n.textContent=t,n.setAttribute("aria-posinset",i),n.setAttribute("aria-setsize",r))}this._announceCharacters()}_refreshRowsDimensions(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(let e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}}_refreshRowDimensions(e){e.style.height=this._renderService.dimensions.actualCellHeight+"px"}_announceCharacters(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}}t.AccessibilityManager=c},3614:(e,t)=>{function s(e){return e.replace(/\r?\n/g,"\r")}function r(e,t){return t?"[200~"+e+"[201~":e}function n(e,t,i){e=r(e=s(e),i.decPrivateModes.bracketedPasteMode),i.triggerDataEvent(e,!0),t.value=""}function o(e,t,i){var i=i.getBoundingClientRect(),s=e.clientX-i.left-10,e=e.clientY-i.top-10;t.style.width="20px",t.style.height="20px",t.style.left=s+"px",t.style.top=e+"px",t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=s,t.bracketTextForPaste=r,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,i){e.stopPropagation(),e.clipboardData&&n(e.clipboardData.getData("text/plain"),t,i)},t.paste=n,t.moveTextAreaUnderMouseCursor=o,t.rightClickHandler=function(e,t,i,s,r){o(e,t,i),r&&s.rightClickSelect(e),t.value=s.selectionText,t.select()}},7239:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;const s=i(1505);t.ColorContrastCache=class{constructor(){this._color=new s.TwoKeyMap,this._css=new s.TwoKeyMap}setCss(e,t,i){this._css.set(e,t,i)}getCss(e,t){return this._css.get(e,t)}setColor(e,t,i){this._color.set(e,t,i)}getColor(e,t){return this._color.get(e,t)}clear(){this._color.clear(),this._css.clear()}}},5680:(e,s,t)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ColorManager=s.DEFAULT_ANSI_COLORS=void 0;const h=t(8055),r=t(7239),n=h.css.toColor("#ffffff"),o=h.css.toColor("#000000"),a=h.css.toColor("#ffffff"),l=h.css.toColor("#000000"),c={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};s.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const t=[h.css.toColor("#2e3436"),h.css.toColor("#cc0000"),h.css.toColor("#4e9a06"),h.css.toColor("#c4a000"),h.css.toColor("#3465a4"),h.css.toColor("#75507b"),h.css.toColor("#06989a"),h.css.toColor("#d3d7cf"),h.css.toColor("#555753"),h.css.toColor("#ef2929"),h.css.toColor("#8ae234"),h.css.toColor("#fce94f"),h.css.toColor("#729fcf"),h.css.toColor("#ad7fa8"),h.css.toColor("#34e2e2"),h.css.toColor("#eeeeec")],i=[0,95,135,175,215,255];for(let e=0;e<216;e++){var s=i[e/36%6|0],r=i[e/6%6|0],n=i[e%6];t.push({css:h.channels.toCss(s,r,n),rgba:h.channels.toRgba(s,r,n)})}for(let e=0;e<24;e++){var o=8+10*e;t.push({css:h.channels.toCss(o,o,o),rgba:h.channels.toRgba(o,o,o)})}return t})()),s.ColorManager=class{constructor(e,t){this.allowTransparency=t;const i=e.createElement("canvas");i.width=1,i.height=1;t=i.getContext("2d");if(!t)throw new Error("Could not get rendering context");this._ctx=t,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new r.ColorContrastCache,this.colors={foreground:n,background:o,cursor:a,cursorAccent:l,selectionForeground:void 0,selectionBackgroundTransparent:c,selectionBackgroundOpaque:h.color.blend(o,c),selectionInactiveBackgroundTransparent:c,selectionInactiveBackgroundOpaque:h.color.blend(o,c),ansi:s.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}onOptionsChange(e,t){switch(e){case"minimumContrastRatio":this._contrastCache.clear();break;case"allowTransparency":this.allowTransparency=t}}setTheme(t={}){this.colors.foreground=this._parseColor(t.foreground,n),this.colors.background=this._parseColor(t.background,o),this.colors.cursor=this._parseColor(t.cursor,a,!0),this.colors.cursorAccent=this._parseColor(t.cursorAccent,l,!0),this.colors.selectionBackgroundTransparent=this._parseColor(t.selectionBackground,c,!0),this.colors.selectionBackgroundOpaque=h.color.blend(this.colors.background,this.colors.selectionBackgroundTransparent),this.colors.selectionInactiveBackgroundTransparent=this._parseColor(t.selectionInactiveBackground,this.colors.selectionBackgroundTransparent,!0),this.colors.selectionInactiveBackgroundOpaque=h.color.blend(this.colors.background,this.colors.selectionInactiveBackgroundTransparent);const i={css:"",rgba:0};if(this.colors.selectionForeground=t.selectionForeground?this._parseColor(t.selectionForeground,i):void 0,this.colors.selectionForeground===i&&(this.colors.selectionForeground=void 0),h.color.isOpaque(this.colors.selectionBackgroundTransparent)){const t=.3;this.colors.selectionBackgroundTransparent=h.color.opacity(this.colors.selectionBackgroundTransparent,.3)}if(h.color.isOpaque(this.colors.selectionInactiveBackgroundTransparent)){const t=.3;this.colors.selectionInactiveBackgroundTransparent=h.color.opacity(this.colors.selectionInactiveBackgroundTransparent,.3)}if(this.colors.ansi=s.DEFAULT_ANSI_COLORS.slice(),this.colors.ansi[0]=this._parseColor(t.black,s.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(t.red,s.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(t.green,s.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(t.yellow,s.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(t.blue,s.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(t.magenta,s.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(t.cyan,s.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(t.white,s.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(t.brightBlack,s.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(t.brightRed,s.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(t.brightGreen,s.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(t.brightYellow,s.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(t.brightBlue,s.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(t.brightMagenta,s.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(t.brightCyan,s.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(t.brightWhite,s.DEFAULT_ANSI_COLORS[15]),t.extendedAnsi){const i=Math.min(this.colors.ansi.length-16,t.extendedAnsi.length);for(let e=0;e<i;e++)this.colors.ansi[e+16]=this._parseColor(t.extendedAnsi[e],s.DEFAULT_ANSI_COLORS[e+16])}this._contrastCache.clear(),this._updateRestoreColors()}restoreColor(e){if(void 0!==e)switch(e){case 256:this.colors.foreground=this._restoreColors.foreground;break;case 257:this.colors.background=this._restoreColors.background;break;case 258:this.colors.cursor=this._restoreColors.cursor;break;default:this.colors.ansi[e]=this._restoreColors.ansi[e]}else for(let e=0;e<this._restoreColors.ansi.length;++e)this.colors.ansi[e]=this._restoreColors.ansi[e]}_updateRestoreColors(){this._restoreColors={foreground:this.colors.foreground,background:this.colors.background,cursor:this.colors.cursor,ansi:this.colors.ansi.slice()}}_parseColor(e,t,i=this.allowTransparency){if(void 0===e)return t;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,"string"!=typeof this._ctx.fillStyle)return console.warn(`Color: ${e} is invalid using fallback `+t.css),t;this._ctx.fillRect(0,0,1,1);const s=this._ctx.getImageData(0,0,1,1).data;if(255===s[3])return{css:this._ctx.fillStyle,rgba:h.channels.toRgba(s[0],s[1],s[2],s[3])};{if(!i)return console.warn(`Color: ${e} is using transparency, but allowTransparency is false. Using fallback ${t.css}.`),t;const[s,r,n,o]=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(e=>Number(e)),a=Math.round(255*o);return{rgba:h.channels.toRgba(s,r,n,a),css:e}}}}},9631:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.removeElementFromParent=void 0,t.removeElementFromParent=function(...e){var t;for(const i of e)null!=(t=null==i?void 0:i.parentElement)&&t.removeChild(i)}},3656:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,i,s){e.addEventListener(t,i,s);let r=!1;return{dispose:()=>{r||(r=!0,e.removeEventListener(t,i,s))}}}},6465:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;const n=i(2585),o=i(8460),a=i(844),h=i(3656);i=class extends a.Disposable{constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._activeLine=-1,this._onShowLinkUnderline=this.register(new o.EventEmitter),this._onHideLinkUnderline=this.register(new o.EventEmitter),this.register((0,a.getDisposeArrayDisposable)(this._linkCacheDisposables))}get currentLink(){return this._currentLink}get onShowLinkUnderline(){return this._onShowLinkUnderline.event}get onHideLinkUnderline(){return this._onHideLinkUnderline.event}dispose(){super.dispose(),this._lastMouseEvent=void 0}registerLinkProvider(t){return this._linkProviders.push(t),{dispose:()=>{var e=this._linkProviders.indexOf(t);-1!==e&&this._linkProviders.splice(e,1)}}}attachToDom(e,t,i){this._element=e,this._mouseService=t,this._renderService=i,this.register((0,h.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,h.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_onMouseMove(e){if(this._lastMouseEvent=e,this._element&&this._mouseService){const i=this._positionFromMouseEvent(e,this._element,this._mouseService);if(i){this._isMouseOut=!1;var t=e.composedPath();for(let e=0;e<t.length;e++){const i=t[e];if(i.classList.contains("xterm"))break;if(i.classList.contains("xterm-hover"))return}this._lastBufferCell&&i.x===this._lastBufferCell.x&&i.y===this._lastBufferCell.y||(this._onHover(i),this._lastBufferCell=i)}}}_onHover(e){if(this._activeLine!==e.y)return this._clearCurrentLink(),void this._askForLink(e,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))}_askForLink(i,e){var s,t;this._activeProviderReplies&&e||(null!=(s=this._activeProviderReplies)&&s.forEach(e=>{null!=e&&e.forEach(e=>{e.link.dispose&&e.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=i.y);let r=!1;for(const[s,n]of this._linkProviders.entries())e?null!=(t=this._activeProviderReplies)&&t.get(s)&&(r=this._checkLinkProviderResult(s,i,r)):n.provideLinks(i.y,e=>{var t;this._isMouseOut||(e=null==e?void 0:e.map(e=>({link:e})),null!=(t=this._activeProviderReplies)&&t.set(s,e),r=this._checkLinkProviderResult(s,i,r),(null==(t=this._activeProviderReplies)?void 0:t.size)===this._linkProviders.length&&this._removeIntersectingLinks(i.y,this._activeProviderReplies))})}_removeIntersectingLinks(i,t){const s=new Set;for(let e=0;e<t.size;e++){const a=t.get(e);if(a)for(let t=0;t<a.length;t++){var r=a[t],n=r.link.range.start.y<i?0:r.link.range.start.x,o=r.link.range.end.y>i?this._bufferService.cols:r.link.range.end.x;for(let e=n;e<=o;e++){if(s.has(e)){a.splice(t--,1);break}s.add(e)}}}}_checkLinkProviderResult(i,s,r){var n;if(this._activeProviderReplies){const o=this._activeProviderReplies.get(i);let t=!1;for(let e=0;e<i;e++)this._activeProviderReplies.has(e)&&!this._activeProviderReplies.get(e)||(t=!0);if(!t&&o){const i=o.find(e=>this._linkAtPosition(e.link,s));i&&(r=!0,this._handleNewLink(i))}if(this._activeProviderReplies.size===this._linkProviders.length&&!r)for(let e=0;e<this._activeProviderReplies.size;e++){const o=null==(n=this._activeProviderReplies.get(e))?void 0:n.find(e=>this._linkAtPosition(e.link,s));if(o){r=!0,this._handleNewLink(o);break}}}return r}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){var t;this._element&&this._mouseService&&this._currentLink&&((t=this._positionFromMouseEvent(e,this._element,this._mouseService))&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text))}_clearCurrentLink(e,t){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),(this._currentLink=void 0,a.disposeArray)(this._linkCacheDisposables))}_handleNewLink(i){var e;this._element&&this._lastMouseEvent&&this._mouseService&&((e=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService))&&this._linkAtPosition(i.link,e)&&(this._currentLink=i,this._currentLink.state={decorations:{underline:void 0===i.link.decorations||i.link.decorations.underline,pointerCursor:void 0===i.link.decorations||i.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,i.link,this._lastMouseEvent),i.link.decorations={},Object.defineProperties(i.link.decorations,{pointerCursor:{get:()=>{var e;return null==(e=null==(e=this._currentLink)?void 0:e.state)?void 0:e.decorations.pointerCursor},set:e=>{var t;null!=(t=this._currentLink)&&t.state&&this._currentLink.state.decorations.pointerCursor!==e&&(this._currentLink.state.decorations.pointerCursor=e,this._currentLink.state.isHovered&&null!=(t=this._element)&&t.classList.toggle("xterm-cursor-pointer",e))}},underline:{get:()=>{var e;return null==(e=null==(e=this._currentLink)?void 0:e.state)?void 0:e.decorations.underline},set:e=>{var t;null!=(t=this._currentLink)&&t.state&&(null==(t=null==(t=this._currentLink)?void 0:t.state)?void 0:t.decorations.underline)!==e&&(this._currentLink.state.decorations.underline=e,this._currentLink.state.isHovered&&this._fireUnderlineEvent(i.link,e))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(e=>{var t=0===e.start?0:e.start+1+this._bufferService.buffer.ydisp;this._clearCurrentLink(t,e.end+1+this._bufferService.buffer.ydisp)}))))}_linkHover(e,t,i){var s;null!=(s=this._currentLink)&&s.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(i,t.text)}_fireUnderlineEvent(e,t){var e=e.range,i=this._bufferService.buffer.ydisp,e=this._createLinkUnderlineEvent(e.start.x-1,e.start.y-i-1,e.end.x,e.end.y-i-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(e)}_linkLeave(e,t,i){var s;null!=(s=this._currentLink)&&s.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(i,t.text)}_linkAtPosition(e,t){var i=e.range.start.y===e.range.end.y,s=e.range.start.y<t.y,r=e.range.end.y>t.y;return(i&&e.range.start.x<=t.x&&e.range.end.x>=t.x||s&&e.range.end.x>=t.x||r&&e.range.start.x<=t.x||s&&r)&&e.range.start.y<=t.y&&e.range.end.y>=t.y}_positionFromMouseEvent(e,t,i){i=i.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(i)return{x:i[0],y:i[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,t,i,s,r){return{x1:e,y1:t,x2:i,y2:s,cols:this._bufferService.cols,fg:r}}},i=s([r(0,n.IBufferService)],i);t.Linkifier2=i},9042:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},2962:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkProvider=void 0;const _=i(511),n=i(2585);i=class{constructor(e,t,i){this._bufferService=e,this._optionsService=t,this._oscLinkService=i}provideLinks(r,e){var n;const o=this._bufferService.buffer.lines.get(r-1);if(o){const a=[],h=this._optionsService.rawOptions.linkHandler,l=new _.CellData,c=o.getTrimmedLength();let t=-1,i=-1,s=!1;for(let e=0;e<c;e++)if(-1!==i||o.hasContent(e)){if(o.loadCell(e,l),l.hasExtendedAttrs()&&l.extended.urlId){if(-1===i){i=e,t=l.extended.urlId;continue}s=l.extended.urlId!==t}else-1!==i&&(s=!0);if(s||-1!==i&&e===c-1){const o=null==(n=this._oscLinkService.getLinkData(t))?void 0:n.uri;if(o){const n={start:{x:i+1,y:r},end:{x:e+(s||e!==c-1?0:1),y:r}};a.push({text:o,range:n,activate:(e,t)=>{if(h)return h.activate(e,t,n);e=t;if(confirm(`Do you want to navigate to ${e}?`)){const i=window.open();if(i){try{i.opener=null}catch(i){}i.location.href=e}else console.warn("Opening link blocked as opener could not be cleared")}},hover:(e,t)=>{var i;return null==(i=null==h?void 0:h.hover)?void 0:i.call(h,e,t,n)},leave:(e,t)=>{var i;return null==(i=null==h?void 0:h.leave)?void 0:i.call(h,e,t,n)}})}s=!1,t=l.hasExtendedAttrs()&&l.extended.urlId?(i=e,l.extended.urlId):i=-1}}e(a)}else e(void 0)}};i=s([r(0,n.IBufferService),r(1,n.IOptionsService),r(2,n.IOscLinkService)],i),t.OscLinkProvider=i},6193:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0,t.RenderDebouncer=class{constructor(e,t){this._parentWindow=e,this._renderCallback=t,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._parentWindow.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(e){return this._refreshCallbacks.push(e),this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(e,t,i){this._rowCount=i,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){var e,t;(this._animationFrame=void 0)!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount&&(e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1),this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const e of this._refreshCallbacks)e(0);this._refreshCallbacks=[]}}},5596:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenDprMonitor=void 0;class s extends i(844).Disposable{constructor(e){super(),this._parentWindow=e,this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio}setListener(e){this._listener&&this.clearListener(),this._listener=e,this._outerListener=()=>{this._listener&&(this._listener(this._parentWindow.devicePixelRatio,this._currentDevicePixelRatio),this._updateDpr())},this._updateDpr()}dispose(){super.dispose(),this.clearListener()}_updateDpr(){var e;this._outerListener&&(null!=(e=this._resolutionMediaMatchList)&&e.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)}}t.ScreenDprMonitor=s},3236:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;const s=i(2950),r=i(1680),n=i(3614),o=i(2584),a=i(5435),h=i(9312),l=i(6114),c=i(3656),_=i(9042),d=i(4567),u=i(1296),f=i(7399),v=i(8460),g=i(8437),p=i(5680),S=i(3230),m=i(4725),C=i(428),b=i(8934),y=i(6465),w=i(5114),E=i(8969),L=i(8055),R=i(4269),k=i(5941),D=i(3107),A=i(5744),x=i(9074),B=i(2585),T=i(2962),M="undefined"!=typeof window?window.document:null;class O extends E.CoreTerminal{constructor(e={}){super(e),this.browser=l,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._onCursorMove=new v.EventEmitter,this._onKey=new v.EventEmitter,this._onRender=new v.EventEmitter,this._onSelectionChange=new v.EventEmitter,this._onTitleChange=new v.EventEmitter,this._onBell=new v.EventEmitter,this._onFocus=new v.EventEmitter,this._onBlur=new v.EventEmitter,this._onA11yCharEmitter=new v.EventEmitter,this._onA11yTabEmitter=new v.EventEmitter,this._setup(),this.linkifier2=this.register(this._instantiationService.createInstance(y.Linkifier2)),this.linkifier2.registerLinkProvider(this._instantiationService.createInstance(T.OscLinkProvider)),this._decorationService=this._instantiationService.createInstance(x.DecorationService),this._instantiationService.setService(B.IDecorationService,this._decorationService),this.register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this.register(this._inputHandler.onRequestRefreshRows((e,t)=>this.refresh(e,t))),this.register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this.register(this._inputHandler.onRequestReset(()=>this.reset())),this.register(this._inputHandler.onRequestWindowsOptionsReport(e=>this._reportWindowsOptions(e))),this.register(this._inputHandler.onColor(e=>this._handleColorEvent(e))),this.register((0,v.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,v.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,v.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,v.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize(e=>this._afterResize(e.cols,e.rows)))}get onCursorMove(){return this._onCursorMove.event}get onKey(){return this._onKey.event}get onRender(){return this._onRender.event}get onSelectionChange(){return this._onSelectionChange.event}get onTitleChange(){return this._onTitleChange.event}get onBell(){return this._onBell.event}get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}_handleColorEvent(e){var i;if(this._colorManager){for(const i of e){let e,t="";switch(i.index){case 256:e="foreground",t="10";break;case 257:e="background",t="11";break;case 258:e="cursor",t="12";break;default:e="ansi",t="4;"+i.index}switch(i.type){case 0:var s=L.color.toColorRGB("ansi"===e?this._colorManager.colors.ansi[i.index]:this._colorManager.colors[e]);this.coreService.triggerDataEvent(`${o.C0.ESC}]${t};`+(0,k.toRgbString)(s)+o.C1_ESCAPED.ST);break;case 1:"ansi"===e?this._colorManager.colors.ansi[i.index]=L.rgba.toColor(...i.color):this._colorManager.colors[e]=L.rgba.toColor(...i.color);break;case 2:this._colorManager.restoreColor(i.index)}}null!=(i=this._renderService)&&i.setColors(this._colorManager.colors),null!=(e=this.viewport)&&e.onThemeChange(this._colorManager.colors)}}dispose(){var e;this._isDisposed||(super.dispose(),null!=(e=this._renderService)&&e.dispose(),this._customKeyEventHandler=void 0,this.write=()=>{},null!=(e=null==(e=this.element)?void 0:e.parentNode)&&e.removeChild(this.element))}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_updateOptions(e){var t;switch(super._updateOptions(e),e){case"fontFamily":case"fontSize":null!=(t=this._renderService)&&t.clear(),null!=(t=this._charSizeService)&&t.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"customGlyphs":case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"scrollback":null!=(t=this.viewport)&&t.syncScrollArea();break;case"screenReaderMode":this.optionsService.rawOptions.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new d.AccessibilityManager(this,this._renderService)):(null!=(t=this._accessibilityManager)&&t.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.rawOptions.theme)}}_onTextAreaFocus(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(o.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var e;return null==(e=this.textarea)?void 0:e.blur()}_onTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(o.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService){const r=this.buffer.ybase+this.buffer.y,n=this.buffer.lines.get(r);var e,t,i,s;n&&(s=Math.min(this.buffer.x,this.cols-1),e=this._renderService.dimensions.actualCellHeight,t=n.getWidth(s),t=this._renderService.dimensions.actualCellWidth*t,i=this.buffer.y*this._renderService.dimensions.actualCellHeight,s=s*this._renderService.dimensions.actualCellWidth,this.textarea.style.left=s+"px",this.textarea.style.top=i+"px",this.textarea.style.width=t+"px",this.textarea.style.height=e+"px",this.textarea.style.lineHeight=e+"px",this.textarea.style.zIndex="-5")}}_initGlobal(){this._bindKeys(),this.register((0,c.addDisposableDomListener)(this.element,"copy",e=>{this.hasSelection()&&(0,n.copyHandler)(e,this._selectionService)}));var e=e=>(0,n.handlePasteEvent)(e,this.textarea,this.coreService);this.register((0,c.addDisposableDomListener)(this.textarea,"paste",e)),this.register((0,c.addDisposableDomListener)(this.element,"paste",e)),l.isFirefox?this.register((0,c.addDisposableDomListener)(this.element,"mousedown",e=>{2===e.button&&(0,n.rightClickHandler)(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this.register((0,c.addDisposableDomListener)(this.element,"contextmenu",e=>{(0,n.rightClickHandler)(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),l.isLinux&&this.register((0,c.addDisposableDomListener)(this.element,"auxclick",e=>{1===e.button&&(0,n.moveTextAreaUnderMouseCursor)(e,this.textarea,this.screenElement)}))}_bindKeys(){this.register((0,c.addDisposableDomListener)(this.textarea,"keyup",e=>this._keyUp(e),!0)),this.register((0,c.addDisposableDomListener)(this.textarea,"keydown",e=>this._keyDown(e),!0)),this.register((0,c.addDisposableDomListener)(this.textarea,"keypress",e=>this._keyPress(e),!0)),this.register((0,c.addDisposableDomListener)(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this.register((0,c.addDisposableDomListener)(this.textarea,"compositionupdate",e=>this._compositionHelper.compositionupdate(e))),this.register((0,c.addDisposableDomListener)(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this.register((0,c.addDisposableDomListener)(this.textarea,"input",e=>this._inputEvent(e),!0)),this.register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(e){if(!e)throw new Error("Terminal requires a parent element.");e.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=e.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),e.appendChild(this.element);const t=M.createDocumentFragment();this._viewportElement=M.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),t.appendChild(this._viewportElement),this._viewportScrollArea=M.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=M.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=M.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),t.appendChild(this.screenElement),this.textarea=M.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",_.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register((0,c.addDisposableDomListener)(this.textarea,"focus",e=>this._onTextAreaFocus(e))),this.register((0,c.addDisposableDomListener)(this.textarea,"blur",()=>this._onTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._coreBrowserService=this._instantiationService.createInstance(w.CoreBrowserService,this.textarea,null!=(e=this._document.defaultView)?e:window),this._instantiationService.setService(m.ICoreBrowserService,this._coreBrowserService),this._charSizeService=this._instantiationService.createInstance(C.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(m.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new p.ColorManager(M,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(e=>this._colorManager.onOptionsChange(e,this.optionsService.rawOptions[e]))),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(R.CharacterJoinerService),this._instantiationService.setService(m.ICharacterJoinerService,this._characterJoinerService);e=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(S.RenderService,e,this.rows,this.screenElement)),this._instantiationService.setService(m.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(e=>this._onRender.fire(e))),this.onResize(e=>this._renderService.resize(e.cols,e.rows)),this._compositionView=M.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(s.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(t),this._mouseService=this._instantiationService.createInstance(b.MouseService),this._instantiationService.setService(m.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(r.Viewport,e=>this.scrollLines(e,!0,1),this._viewportElement,this._viewportScrollArea,this.element),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(()=>this.viewport.syncScrollArea())),this.register(this.viewport),this.register(this.onCursorMove(()=>{this._renderService.onCursorMove(),this._syncTextArea()})),this.register(this.onResize(()=>this._renderService.onResize(this.cols,this.rows))),this.register(this.onBlur(()=>this._renderService.onBlur())),this.register(this.onFocus(()=>this._renderService.onFocus())),this.register(this._renderService.onDimensionsChange(()=>this.viewport.syncScrollArea())),this._selectionService=this.register(this._instantiationService.createInstance(h.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(m.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(e=>this.scrollLines(e.amount,e.suppressScrollEvent))),this.register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this.register(this._selectionService.onRequestRedraw(e=>this._renderService.onSelectionChanged(e.start,e.end,e.columnSelectMode))),this.register(this._selectionService.onLinuxMouseSelection(e=>{this.textarea.value=e,this.textarea.focus(),this.textarea.select()})),this.register(this._onScroll.event(e=>{this.viewport.syncScrollArea(),this._selectionService.refresh()})),this.register((0,c.addDisposableDomListener)(this._viewportElement,"scroll",()=>this._selectionService.refresh())),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(D.BufferDecorationRenderer,this.screenElement)),this.register((0,c.addDisposableDomListener)(this.element,"mousedown",e=>this._selectionService.onMouseDown(e))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new d.AccessibilityManager(this,this._renderService)),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(A.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onOptionChange(()=>{!this._overviewRulerRenderer&&this.options.overviewRulerWidth&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(A.OverviewRulerRenderer,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(u.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier2)}_setTheme(e){var t;this._theme=e,null!=(t=this._colorManager)&&t.setTheme(e),null!=(t=this._renderService)&&t.setColors(this._colorManager.colors),null!=(e=this.viewport)&&e.onThemeChange(this._colorManager.colors)}bindMouse(){const r=this,t=this.element;function i(i){var s=r._mouseService.getMouseReportCoords(i,r.screenElement);if(s){let e,t;switch(i.overrideType||i.type){case"mousemove":t=32,void 0===i.buttons?(e=3,void 0!==i.button&&(e=i.button<3?i.button:3)):e=1&i.buttons?0:4&i.buttons?1:2&i.buttons?2:3;break;case"mouseup":t=0,e=i.button<3?i.button:3;break;case"mousedown":t=1,e=i.button<3?i.button:3;break;case"wheel":if(0===r.viewport.getLinesScrolled(i))return;t=i.deltaY<0?0:1,e=4;break;default:return}void 0===t||void 0===e||4<e||r.coreMouseService.triggerMouseEvent({col:s.col,row:s.row,x:s.x,y:s.y,button:e,action:t,ctrl:i.ctrlKey,alt:i.altKey,shift:i.shiftKey})}}const n={mouseup:null,wheel:null,mousedrag:null,mousemove:null},s={mouseup:e=>(i(e),e.buttons||(this._document.removeEventListener("mouseup",n.mouseup),n.mousedrag&&this._document.removeEventListener("mousemove",n.mousedrag)),this.cancel(e)),wheel:e=>(i(e),this.cancel(e,!0)),mousedrag:e=>{e.buttons&&i(e)},mousemove:e=>{e.buttons||i(e)}};this.register(this.coreMouseService.onProtocolChange(e=>{e?("debug"===this.optionsService.rawOptions.logLevel&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(e)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&e?n.mousemove||(t.addEventListener("mousemove",s.mousemove),n.mousemove=s.mousemove):(t.removeEventListener("mousemove",n.mousemove),n.mousemove=null),16&e?n.wheel||(t.addEventListener("wheel",s.wheel,{passive:!1}),n.wheel=s.wheel):(t.removeEventListener("wheel",n.wheel),n.wheel=null),2&e?n.mouseup||(n.mouseup=s.mouseup):(this._document.removeEventListener("mouseup",n.mouseup),n.mouseup=null),4&e?n.mousedrag||(n.mousedrag=s.mousedrag):(this._document.removeEventListener("mousemove",n.mousedrag),n.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,c.addDisposableDomListener)(t,"mousedown",e=>{if(e.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(e))return i(e),n.mouseup&&this._document.addEventListener("mouseup",n.mouseup),n.mousedrag&&this._document.addEventListener("mousemove",n.mousedrag),this.cancel(e)})),this.register((0,c.addDisposableDomListener)(t,"wheel",e=>{if(!n.wheel){if(this.buffer.hasScrollback)return this.viewport.onWheel(e)?this.cancel(e):void 0;{var i=this.viewport.getLinesScrolled(e);if(0===i)return;var s=o.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(e.deltaY<0?"A":"B");let t="";for(let e=0;e<Math.abs(i);e++)t+=s;return this.coreService.triggerDataEvent(t,!0),this.cancel(e,!0)}}},{passive:!1})),this.register((0,c.addDisposableDomListener)(t,"touchstart",e=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.onTouchStart(e),this.cancel(e)},{passive:!0})),this.register((0,c.addDisposableDomListener)(t,"touchmove",e=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.onTouchMove(e)?void 0:this.cancel(e)},{passive:!1}))}refresh(e,t){var i;null!=(i=this._renderService)&&i.refreshRows(e,t)}updateCursorStyle(e){var t;null!=(t=this._selectionService)&&t.shouldColumnSelect(e)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(e,t,i=0){super.scrollLines(e,t,i),this.refresh(0,this.rows-1)}paste(e){(0,n.paste)(e,this.textarea,this.coreService)}attachCustomKeyEventHandler(e){this._customKeyEventHandler=e}registerLinkProvider(e){return this.linkifier2.registerLinkProvider(e)}registerCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");e=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),e}deregisterCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}addMarker(e){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)}registerDecoration(e){return this._decorationService.registerDecoration(e)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(e,t,i){this._selectionService.setSelection(e,t,i)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var e;null!=(e=this._selectionService)&&e.clearSelection()}selectAll(){var e;null!=(e=this._selectionService)&&e.selectAll()}selectLines(e,t){var i;null!=(i=this._selectionService)&&i.selectLines(e,t)}_keyDown(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;const t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;t||"Dead"!==e.key&&"AltGraph"!==e.key||(this._unprocessedDeadKey=!0);var i=(0,f.evaluateKeyboardEvent)(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3!==i.type&&2!==i.type)return 1===i.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(i.cancel&&this.cancel(e,!0),!i.key||!!(e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&1===e.key.length&&65<=e.key.charCodeAt(0)&&e.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?!(this._unprocessedDeadKey=!1):(i.key!==o.C0.ETX&&i.key!==o.C0.CR||(this.textarea.value=""),this._onKey.fire({key:i.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(i.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(e,!0))));{const t=this.rows-1;return this.scrollLines(2===i.type?-t:t),this.cancel(e,!0)}}_isThirdLevelShift(e,t){e=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return"keypress"===t.type?e:e&&(!t.keyCode||47<t.keyCode)}_keyUp(e){this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(16!==e.keyCode&&17!==e.keyCode&&18!==e.keyCode&&this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)}_keyPress(e){let t;if(this._keyPressHandled=!1,this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1))}_inputEvent(e){if(!e.data||"insertText"!==e.inputType||e.composed&&this._keyDownSeen||this.optionsService.rawOptions.screenReaderMode)return!1;if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}resize(e,t){e!==this.cols||t!==this.rows?super.resize(e,t):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(e,t){var i;null!=(i=this._charSizeService)&&i.measure(),null!=(i=this.viewport)&&i.syncScrollArea(!0)}clear(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(g.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}}reset(){this.options.rows=this.rows,this.options.cols=this.cols;var e,t=this._customKeyEventHandler;this._setup(),super.reset(),null!=(e=this._selectionService)&&e.reset(),this._decorationService.reset(),this._customKeyEventHandler=t,this.refresh(0,this.rows-1),null!=(e=this.viewport)&&e.syncScrollArea()}clearTextureAtlas(){var e;null!=(e=this._renderService)&&e.clearTextureAtlas()}_reportFocus(){var e;null!=(e=this.element)&&e.classList.contains("focus")?this.coreService.triggerDataEvent(o.C0.ESC+"[I"):this.coreService.triggerDataEvent(o.C0.ESC+"[O")}_reportWindowsOptions(e){if(this._renderService)switch(e){case a.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:const e=this._renderService.dimensions.canvasWidth.toFixed(0),s=this._renderService.dimensions.canvasHeight.toFixed(0);this.coreService.triggerDataEvent(`${o.C0.ESC}[4;${s};${e}t`);break;case a.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var t=this._renderService.dimensions.actualCellWidth.toFixed(0),i=this._renderService.dimensions.actualCellHeight.toFixed(0);this.coreService.triggerDataEvent(o.C0.ESC+`[6;${i};${t}t`)}}cancel(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1}}t.Terminal=O},9924:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeBasedDebouncer=void 0,t.TimeBasedDebouncer=class{constructor(e,t=1e3){this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(e,t,i){this._rowCount=i,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t;i=Date.now();if(i-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=i,this._innerRefresh();else if(!this._additionalRefreshRequested){const e=i-this._lastRefreshMs,t=this._debounceThresholdMS-e;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},t)}}_innerRefresh(){var e,t;void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount&&(e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1),this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t))}}},1680:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;const n=i(844),l=i(3656),o=i(4725),a=i(2585);i=class extends n.Disposable{constructor(e,t,i,s,r,n,o,a,h){super(),this._scrollLines=e,this._viewportElement=t,this._scrollArea=i,this._element=s,this._bufferService=r,this._optionsService=n,this._charSizeService=o,this._renderService=a,this._coreBrowserService=h,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentScaledCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,l.addDisposableDomListener)(this._viewportElement,"scroll",this._onScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(e=>this._activeBuffer=e.activeBuffer)),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange(e=>this._renderDimensions=e)),setTimeout(()=>this.syncScrollArea(),0)}onThemeChange(e){this._viewportElement.style.backgroundColor=e.background.css}_refresh(e){if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(0<this._charSizeService.height){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/this._coreBrowserService.dpr,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const e=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==e&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=e),this._refreshAnimationFrame=null}syncScrollArea(e=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight||this._refresh(e)}_onScroll(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t)}}_smoothScroll(){var e;this._isDisposed||-1===this._smoothScrollState.origin||-1===this._smoothScrollState.target||(e=this._smoothScrollPercent(),this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(e*(this._smoothScrollState.target-this._smoothScrollState.origin)),e<1?this._coreBrowserService.window.requestAnimationFrame(()=>this._smoothScroll()):this._clearSmoothScrollState())}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(e,t){var i=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||0<t&&i<this._lastRecordedBufferHeight)||(e.cancelable&&e.preventDefault(),!1)}onWheel(e){var t=this._getPixelsScrolled(e);return 0!==t&&(this._optionsService.rawOptions.smoothScrollDuration?(this._smoothScrollState.startTime=Date.now(),this._smoothScrollPercent()<1?(this._smoothScrollState.origin=this._viewportElement.scrollTop,-1===this._smoothScrollState.target?this._smoothScrollState.target=this._viewportElement.scrollTop+t:this._smoothScrollState.target+=t,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()):this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))}_getPixelsScrolled(e){if(0===e.deltaY||e.shiftKey)return 0;let t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._currentRowHeight*this._bufferService.rows),t}getLinesScrolled(e){if(0===e.deltaY||e.shiftKey)return 0;let t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(0<this._wheelPartialScroll?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t}_applyScrollModifier(e,t){var i=this._optionsService.rawOptions.fastScrollModifier;return"alt"===i&&t.altKey||"ctrl"===i&&t.ctrlKey||"shift"===i&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity}onTouchStart(e){this._lastTouchY=e.touches[0].pageY}onTouchMove(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!=t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))}},i=s([r(4,a.IBufferService),r(5,a.IOptionsService),r(6,o.ICharSizeService),r(7,o.IRenderService),r(8,o.ICoreBrowserService)],i);t.Viewport=i},3107:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferDecorationRenderer=void 0;const n=i(3656),o=i(4725),a=i(844),h=i(2585);i=class extends a.Disposable{constructor(e,t,i,s){super(),this._screenElement=e,this._bufferService=t,this._decorationService=i,this._renderService=s,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this.register(this._renderService.onDimensionsChange(()=>{this._dimensionsChanged=!0,this._queueRefresh()})),this.register((0,n.addDisposableDomListener)(window,"resize",()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt})),this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh())),this.register(this._decorationService.onDecorationRemoved(e=>this._removeDecoration(e)))}dispose(){this._container.remove(),this._decorationElements.clear(),super.dispose()}_queueRefresh(){void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this.refreshDecorations(),this._animationFrame=void 0}))}refreshDecorations(){for(const e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){const t=document.createElement("div");t.classList.add("xterm-decoration"),t.style.width=Math.round((e.options.width||1)*this._renderService.dimensions.actualCellWidth)+"px",t.style.height=(e.options.height||1)*this._renderService.dimensions.actualCellHeight+"px",t.style.top=(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.actualCellHeight+"px",t.style.lineHeight=this._renderService.dimensions.actualCellHeight+"px";var i=null!=(i=e.options.x)?i:0;return i&&i>this._bufferService.cols&&(t.style.display="none"),this._refreshXPosition(e,t),t}_refreshStyle(t){var i=t.marker.line-this._bufferService.buffers.active.ydisp;if(i<0||i>=this._bufferService.rows)t.element&&(t.element.style.display="none",t.onRenderEmitter.fire(t.element));else{let e=this._decorationElements.get(t);e||(t.onDispose(()=>this._removeDecoration(t)),e=this._createElement(t),t.element=e,this._decorationElements.set(t,e),this._container.appendChild(e)),e.style.top=i*this._renderService.dimensions.actualCellHeight+"px",e.style.display=this._altBufferIsActive?"none":"block",t.onRenderEmitter.fire(e)}}_refreshXPosition(e,t=e.element){var i;t&&(i=null!=(i=e.options.x)?i:0,"right"===(e.options.anchor||"left")?t.style.right=i?i*this._renderService.dimensions.actualCellWidth+"px":"":t.style.left=i?i*this._renderService.dimensions.actualCellWidth+"px":"")}_removeDecoration(e){var t;null!=(t=this._decorationElements.get(e))&&t.remove(),this._decorationElements.delete(e)}},i=s([r(1,h.IBufferService),r(2,h.IDecorationService),r(3,o.IRenderService)],i);t.BufferDecorationRenderer=i},5871:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorZoneStore=void 0,t.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(e){if(e.options.overviewRulerOptions){for(const t of this._zones)if(t.color===e.options.overviewRulerOptions.color&&t.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(t,e.marker.line))return;if(this._lineAdjacentToZone(t,e.marker.line,e.options.overviewRulerOptions.position))return void this._addLineToZone(t,e.marker.line)}if(this._zonePoolIndex<this._zonePool.length)return this._zonePool[this._zonePoolIndex].color=e.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=e.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=e.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=e.marker.line,void this._zones.push(this._zonePool[this._zonePoolIndex++]);this._zones.push({color:e.options.overviewRulerOptions.color,position:e.options.overviewRulerOptions.position,startBufferLine:e.marker.line,endBufferLine:e.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}}setPadding(e){this._linePadding=e}_lineIntersectsZone(e,t){return t>=e.startBufferLine&&t<=e.endBufferLine}_lineAdjacentToZone(e,t,i){return t>=e.startBufferLine-this._linePadding[i||"full"]&&t<=e.endBufferLine+this._linePadding[i||"full"]}_addLineToZone(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)}}},5744:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OverviewRulerRenderer=void 0;const a=i(5871),n=i(3656),o=i(4725),h=i(844),l=i(2585),c={full:0,left:0,center:0,right:0},_={full:0,left:0,center:0,right:0},d={full:0,left:0,center:0,right:0};i=class extends h.Disposable{constructor(e,t,i,s,r,n,o){super(),this._viewportElement=e,this._screenElement=t,this._bufferService=i,this._decorationService=s,this._renderService=r,this._optionsService=n,this._coreBrowseService=o,this._colorZoneStore=new a.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),null!=(e=this._viewportElement.parentElement)&&e.insertBefore(this._canvas,this._viewportElement);t=this._canvas.getContext("2d");if(!t)throw new Error("Ctx cannot be null");this._ctx=t,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners()}get _width(){return this._optionsService.options.overviewRulerWidth||0}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this.register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0)))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())}))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender(()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this.register(this._optionsService.onOptionChange(e=>{"overviewRulerWidth"===e&&this._queueRefresh(!0)})),this.register((0,n.addDisposableDomListener)(this._coreBrowseService.window,"resize",()=>{this._queueRefresh(!0)})),this._queueRefresh(!0)}dispose(){var e;null!=(e=this._canvas)&&e.remove(),super.dispose()}_refreshDrawConstants(){var e=Math.floor(this._canvas.width/3),t=Math.ceil(this._canvas.width/3);_.full=this._canvas.width,_.left=e,_.center=t,_.right=e,this._refreshDrawHeightConstants(),d.full=0,d.left=0,d.center=_.left,d.right=_.left+_.center}_refreshDrawHeightConstants(){c.full=Math.round(2*this._coreBrowseService.dpr);var e=this._canvas.height/this._bufferService.buffer.lines.length,e=Math.round(Math.max(Math.min(e,12),6)*this._coreBrowseService.dpr);c.left=e,c.center=e,c.right=e}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*c.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*c.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*c.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*c.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=this._width+"px",this._canvas.width=Math.round(this._width*this._coreBrowseService.dpr),this._canvas.style.height=this._screenElement.clientHeight+"px",this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowseService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(const e of this._decorationService.decorations)this._colorZoneStore.addDecoration(e);this._ctx.lineWidth=1;const e=this._colorZoneStore.zones;for(const t of e)"full"!==t.position&&this._renderColorZone(t);for(const i of e)"full"===i.position&&this._renderColorZone(i);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(d[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-c[e.position||"full"]/2),_[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+c[e.position||"full"]))}_queueRefresh(e,t){this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=this._coreBrowseService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}},i=s([r(2,l.IBufferService),r(3,l.IDecorationService),r(4,o.IRenderService),r(5,l.IOptionsService),r(6,o.ICoreBrowserService)],i);t.OverviewRulerRenderer=i},2950:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;const n=i(4725),o=i(2585),a=i(2584);i=class{constructor(e,t,i,s,r,n){this._textarea=e,this._compositionView=t,this._bufferService=i,this._optionsService=s,this._coreService=r,this._renderService=n,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}get isComposing(){return this._isComposing}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(e){this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(t){if(this._compositionView.classList.remove("active"),this._isComposing=!1,t){const t={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{var e;this._isSendingComposition&&(this._isSendingComposition=!1,t.start+=this._dataAlreadySent.length,0<(e=this._isComposing?this._textarea.value.substring(t.start,t.end):this._textarea.value.substring(t.start)).length&&this._coreService.triggerDataEvent(e,!0))},0)}else{this._isSendingComposition=!1;const t=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(t,!0)}}_handleAnyTextareaChanges(){const i=this._textarea.value;setTimeout(()=>{if(!this._isComposing){const e=this._textarea.value,t=e.replace(i,"");this._dataAlreadySent=t,e.length>i.length?this._coreService.triggerDataEvent(t,!0):e.length<i.length?this._coreService.triggerDataEvent(""+a.C0.DEL,!0):e.length===i.length&&e!==i&&this._coreService.triggerDataEvent(e,!0)}},0)}updateCompositionElements(e){if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){const e=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),i=this._renderService.dimensions.actualCellHeight,s=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,r=e*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=r+"px",this._compositionView.style.top=s+"px",this._compositionView.style.height=i+"px",this._compositionView.style.lineHeight=i+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var t=this._compositionView.getBoundingClientRect();this._textarea.style.left=r+"px",this._textarea.style.top=s+"px",this._textarea.style.width=Math.max(t.width,1)+"px",this._textarea.style.height=Math.max(t.height,1)+"px",this._textarea.style.lineHeight=t.height+"px"}e||setTimeout(()=>this.updateCompositionElements(!0),0)}}},i=s([r(2,o.IBufferService),r(3,o.IOptionsService),r(4,o.ICoreService),r(5,n.IRenderService)],i);t.CompositionHelper=i},9806:(e,t)=>{function c(e,t,i){const s=i.getBoundingClientRect(),r=e.getComputedStyle(i),n=parseInt(r.getPropertyValue("padding-left")),o=parseInt(r.getPropertyValue("padding-top"));return[t.clientX-s.left-n,t.clientY-s.top-o]}Object.defineProperty(t,"__esModule",{value:!0}),t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=c,t.getCoords=function(e,t,i,s,r,n,o,a,h){if(n){const l=c(e,t,i);return l?(l[0]=Math.ceil((l[0]+(h?o/2:0))/o),l[1]=Math.ceil(l[1]/a),l[0]=Math.min(Math.max(l[0],1),s+(h?1:0)),l[1]=Math.min(Math.max(l[1],1),r),l):void 0}}},9504:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;const s=i(2584);function f(e,t,i,s){var r=e-v(i,e),n=t-v(i,t);return S(Math.abs(r-n)-function(t,i,s){let r=0;const n=t-v(s,t),o=i-v(s,i);for(let e=0;e<Math.abs(n-o);e++){const o="A"===h(t,i)?-1:1,a=s.buffer.lines.get(n+o*e);null!=a&&a.isWrapped&&r++}return r}(e,t,i),p(h(e,t),s))}function v(e,t){let i=0,s=e.buffer.lines.get(t),r=null==s?void 0:s.isWrapped;for(;r&&0<=t&&t<e.rows;)i++,s=e.buffer.lines.get(--t),r=null==s?void 0:s.isWrapped;return i}function h(e,t){return t<e?"A":"B"}function g(e,t,i,s,r,n){let o=e,a=t,h="";for(;o!==i||a!==s;)o+=r?1:-1,r&&o>n.cols-1?(h+=n.buffer.translateBufferLineToString(a,!1,e,o),e=o=0,a++):!r&&o<0&&(h+=n.buffer.translateBufferLineToString(a,!1,0,e+1),e=o=n.cols-1,a--);return h+n.buffer.translateBufferLineToString(a,!1,e,o)}function p(e,t){t=t?"O":"[";return s.C0.ESC+t+e}function S(t,i){t=Math.floor(t);let s="";for(let e=0;e<t;e++)s+=i;return s}t.moveToCellSequence=function(e,t,i,s){var r,n,o,a,h,l,c=i.buffer.x,_=i.buffer.y;if(!i.buffer.hasScrollback)return u=c,(0===f(a=_,t,h=i,l=s).length?"":S(g(u,a,u,a-v(h,a),!1,h).length,p("D",l)))+f(_,t,i,s)+(u=c,a=e,o=0<f(h=_,l=t,r=i,n=s).length?l-v(r,l):h,h=function(e,t,i,s,r){r=0<f(i,s,r,n).length?s-v(r,s):t;return e<i&&r<=s||i<=e&&r<s?"C":"D"}(u,h,a,l=l,r),S(g(u,o,a,l,"C"===h,r).length,p(h,n)));let d;if(_===t)return d=e<c?"D":"C",S(Math.abs(c-e),p(d,s));d=t<_?"D":"C";var u=Math.abs(_-t);return S(i.cols-(t<_?e:c)+(u-1)*i.cols+1+((t<_?c:e)-1),p(d,s))}},8036:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;i=i(6114);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=i.isFirefox||i.isLegacyEdge?"bottom":"ideographic"},1752:(e,t)=>{function i(e){return 57508<=e&&e<=57558}Object.defineProperty(t,"__esModule",{value:!0}),t.excludeFromContrastRatioDemands=t.isRestrictedPowerlineGlyph=t.isPowerlineGlyph=t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(e)return e;throw new Error("value must not be falsy")},t.isPowerlineGlyph=i,t.isRestrictedPowerlineGlyph=function(e){return 57520<=e&&e<=57527},t.excludeFromContrastRatioDemands=function(e){return i(e)||9472<=e&&e<=9631}},1296:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;const c=i(3787),n=i(8036),o=i(844),a=i(4725),h=i(2585),l=i(8460),_=i(8055),d=i(9631),u="xterm-dom-renderer-owner-",f="xterm-focus";let v=1,g=class extends o.Disposable{constructor(e,t,i,s,r,n,o,a,h,l){super(),this._colors=e,this._element=t,this._screenElement=i,this._viewportElement=s,this._linkifier2=r,this._charSizeService=o,this._optionsService=a,this._bufferService=h,this._coreBrowserService=l,this._terminalClass=v++,this._rowElements=[],this._rowContainer=document.createElement("div"),this._rowContainer.classList.add("xterm-rows"),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=document.createElement("div"),this._selectionContainer.classList.add("xterm-selection"),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},this._updateDimensions(),this._injectCss(),this._rowFactory=n.createInstance(c.DomRendererRowFactory,document,this._colors),this._element.classList.add(u+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline(e=>this._onLinkHover(e))),this.register(this._linkifier2.onHideLinkUnderline(e=>this._onLinkLeave(e)))}get onRequestRedraw(){return(new l.EventEmitter).event}dispose(){this._element.classList.remove(u+this._terminalClass),(0,d.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),super.dispose()}_updateDimensions(){const e=this._coreBrowserService.dpr;this.dimensions.scaledCharWidth=this._charSizeService.width*e,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*e),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/e),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/e),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(const e of this._rowElements)e.style.width=this.dimensions.canvasWidth+"px",e.style.height=this.dimensions.actualCellHeight+"px",e.style.lineHeight=this.dimensions.actualCellHeight+"px",e.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var t=`${this._terminalSelector} .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: ${this.dimensions.actualCellWidth}px}`;this._dimensionsStyleElement.textContent=t,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"}setColors(e){this._colors=e,this._injectCss()}_injectCss(){this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let i=`${this._terminalSelector} .xterm-rows { color: ${this._colors.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px;}`;i=(i=(i=(i=(i+=`${this._terminalSelector} span:not(.${c.BOLD_CLASS}) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.${c.BOLD_CLASS} { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.${c.ITALIC_CLASS} { font-style: italic;}`)+"@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}")+"@keyframes blink_block_"+this._terminalClass+" { 0% {"+` background-color: ${this._colors.cursor.css};`+` color: ${this._colors.cursorAccent.css}; } 50% {`+` background-color: ${this._colors.cursorAccent.css};`+` color: ${this._colors.cursor.css}; }}`)+`${this._terminalSelector} .xterm-rows:not(.xterm-focus) .${c.CURSOR_CLASS}.${c.CURSOR_STYLE_BLOCK_CLASS} { outline: 1px solid ${this._colors.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .xterm-rows.xterm-focus .${c.CURSOR_CLASS}.${c.CURSOR_BLINK_CLASS}:not(.${c.CURSOR_STYLE_BLOCK_CLASS}) { animation: blink_box_shadow_`+this._terminalClass+" 1s step-end infinite;}"+`${this._terminalSelector} .xterm-rows.xterm-focus .${c.CURSOR_CLASS}.${c.CURSOR_BLINK_CLASS}.${c.CURSOR_STYLE_BLOCK_CLASS} { animation: blink_block_`+this._terminalClass+" 1s step-end infinite;}"+`${this._terminalSelector} .xterm-rows.xterm-focus .${c.CURSOR_CLASS}.${c.CURSOR_STYLE_BLOCK_CLASS} {`+` background-color: ${this._colors.cursor.css};`+` color: ${this._colors.cursorAccent.css};}`+`${this._terminalSelector} .xterm-rows .${c.CURSOR_CLASS}.${c.CURSOR_STYLE_BAR_CLASS} {`+` box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${this._colors.cursor.css} inset;}`+`${this._terminalSelector} .xterm-rows .${c.CURSOR_CLASS}.${c.CURSOR_STYLE_UNDERLINE_CLASS} {`+` box-shadow: 0 -1px 0 ${this._colors.cursor.css} inset;}`)+`${this._terminalSelector} .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .xterm-selection div { position: absolute; background-color: ${this._colors.selectionBackgroundOpaque.css};}${this._terminalSelector} .xterm-selection div { position: absolute; background-color: ${this._colors.selectionInactiveBackgroundOpaque.css};}`,this._colors.ansi.forEach((e,t)=>{i+=`${this._terminalSelector} .xterm-fg-${t} { color: ${e.css}; }${this._terminalSelector} .xterm-bg-${t} { background-color: ${e.css}; }`}),i+=`${this._terminalSelector} .xterm-fg-${n.INVERTED_DEFAULT_COLOR} { color: ${_.color.opaque(this._colors.background).css}; }${this._terminalSelector} .xterm-bg-${n.INVERTED_DEFAULT_COLOR} { background-color: ${this._colors.foreground.css}; }`,this._themeStyleElement.textContent=i}onDevicePixelRatioChange(){this._updateDimensions()}_refreshRowElements(t,i){for(let e=this._rowElements.length;e<=i;e++){const t=document.createElement("div");this._rowContainer.appendChild(t),this._rowElements.push(t)}for(;this._rowElements.length>i;)this._rowContainer.removeChild(this._rowElements.pop())}onResize(e,t){this._refreshRowElements(e,t),this._updateDimensions()}onCharSizeChanged(){this._updateDimensions()}onBlur(){this._rowContainer.classList.remove(f)}onFocus(){this._rowContainer.classList.add(f)}onSelectionChanged(e,t,i){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.onSelectionChanged(e,t,i),this.renderRows(0,this._bufferService.rows-1),e&&t){var s=e[1]-this._bufferService.buffer.ydisp,r=t[1]-this._bufferService.buffer.ydisp,n=Math.max(s,0),o=Math.min(r,this._bufferService.rows-1);if(!(n>=this._bufferService.rows||o<0)){const a=document.createDocumentFragment();if(i){const i=e[0]>t[0];a.appendChild(this._createSelectionElement(n,(i?t:e)[0],(i?e:t)[0],o-n+1))}else{const i=s===n?e[0]:0,h=n===r?t[0]:this._bufferService.cols;if(a.appendChild(this._createSelectionElement(n,i,h)),a.appendChild(this._createSelectionElement(n+1,0,this._bufferService.cols,o-n-1)),n!==o){const e=r===o?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(o,0,e))}}this._selectionContainer.appendChild(a)}}}_createSelectionElement(e,t,i,s=1){const r=document.createElement("div");return r.style.height=s*this.dimensions.actualCellHeight+"px",r.style.top=e*this.dimensions.actualCellHeight+"px",r.style.left=t*this.dimensions.actualCellWidth+"px",r.style.width=this.dimensions.actualCellWidth*(i-t)+"px",r}onCursorMove(){}onOptionsChanged(){this._updateDimensions(),this._injectCss()}clear(){for(const e of this._rowElements)e.innerText=""}renderRows(t,i){var s=this._bufferService.buffer.ybase+this._bufferService.buffer.y,r=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),n=this._optionsService.rawOptions.cursorBlink;for(let e=t;e<=i;e++){const t=this._rowElements[e],i=(t.innerText="",e+this._bufferService.buffer.ydisp),o=this._bufferService.buffer.lines.get(i),a=this._optionsService.rawOptions.cursorStyle;t.appendChild(this._rowFactory.createRow(o,i,i===s,a,r,n,this.dimensions.actualCellWidth,this._bufferService.cols))}}get _terminalSelector(){return"."+u+this._terminalClass}_onLinkHover(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)}_onLinkLeave(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)}_setCellUnderline(e,t,i,s,r,n){for(;e!==t||i!==s;){const t=this._rowElements[i];if(!t)return;const s=t.children[e];s&&(s.style.textDecoration=n?"underline":"none"),++e>=r&&(e=0,i++)}}};g=s([r(5,h.IInstantiationService),r(6,a.ICharSizeService),r(7,h.IOptionsService),r(8,h.IBufferService),r(9,a.ICoreBrowserService)],g),t.DomRenderer=g},3787:function(e,L,t){var i=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(L,"__esModule",{value:!0}),L.DomRendererRowFactory=L.CURSOR_STYLE_UNDERLINE_CLASS=L.CURSOR_STYLE_BAR_CLASS=L.CURSOR_STYLE_BLOCK_CLASS=L.CURSOR_BLINK_CLASS=L.CURSOR_CLASS=L.STRIKETHROUGH_CLASS=L.UNDERLINE_CLASS=L.ITALIC_CLASS=L.DIM_CLASS=L.BOLD_CLASS=void 0;const R=t(8036),k=t(643),a=t(511),r=t(2585),D=t(8055),n=t(4725),A=t(4269),h=t(1752),x=t(3734);L.BOLD_CLASS="xterm-bold",L.DIM_CLASS="xterm-dim",L.ITALIC_CLASS="xterm-italic",L.UNDERLINE_CLASS="xterm-underline",L.STRIKETHROUGH_CLASS="xterm-strikethrough",L.CURSOR_CLASS="xterm-cursor",L.CURSOR_BLINK_CLASS="xterm-cursor-blink",L.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",L.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",L.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";t=class{constructor(e,t,i,s,r,n,o){this._document=e,this._colors=t,this._characterJoinerService=i,this._optionsService=s,this._coreBrowserService=r,this._coreService=n,this._decorationService=o,this._workCell=new a.CellData,this._columnSelectMode=!1}setColors(e){this._colors=e}onSelectionChanged(e,t,i){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=i}createRow(u,f,v,g,p,S,m,t){const C=this._document.createDocumentFragment(),b=this._characterJoinerService.getJoinedCharacters(f);let i=0;for(let e=Math.min(u.length,t)-1;0<=e;e--)if(u.loadCell(e,this._workCell).getCode()!==k.NULL_CELL_CODE||v&&e===p){i=e+1;break}for(let d=0;d<i;d++){u.loadCell(d,this._workCell);let _=this._workCell.getWidth();if(0!==_){let e=!1,t=d,i=this._workCell;if(0<b.length&&d===b[0][0]){e=!0;const L=b.shift();i=new A.JoinedCellData(this._workCell,u.translateToString(!0,L[0],L[1]),L[1]-L[0]),t=L[1]-1,_=i.getWidth()}const E=this._document.createElement("span");if(1<_&&(E.style.width=m*_+"px"),e&&(E.style.display="inline",p>=d&&p<=t&&(p=d)),!this._coreService.isCursorHidden&&v&&d===p)switch(E.classList.add(L.CURSOR_CLASS),S&&E.classList.add(L.CURSOR_BLINK_CLASS),g){case"bar":E.classList.add(L.CURSOR_STYLE_BAR_CLASS);break;case"underline":E.classList.add(L.CURSOR_STYLE_UNDERLINE_CLASS);break;default:E.classList.add(L.CURSOR_STYLE_BLOCK_CLASS)}if(i.isBold()&&E.classList.add(L.BOLD_CLASS),i.isItalic()&&E.classList.add(L.ITALIC_CLASS),i.isDim()&&E.classList.add(L.DIM_CLASS),i.isInvisible()?E.textContent=k.WHITESPACE_CELL_CHAR:E.textContent=i.getChars()||k.WHITESPACE_CELL_CHAR,i.isUnderline()&&(E.classList.add(L.UNDERLINE_CLASS+"-"+i.extended.underlineStyle)," "===E.textContent&&(E.innerHTML=" "),!i.isUnderlineColorDefault()))if(i.isUnderlineColorRGB())E.style.textDecorationColor=`rgb(${x.AttributeData.toColorRGB(i.getUnderlineColor()).join(",")})`;else{let e=i.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&i.isBold()&&e<8&&(e+=8),E.style.textDecorationColor=this._colors.ansi[e].css}i.isStrikethrough()&&E.classList.add(L.STRIKETHROUGH_CLASS);let s=i.getFgColor(),r=i.getFgColorMode(),n=i.getBgColor(),o=i.getBgColorMode();var y=!!i.isInverse();if(y){const u=s,L=(s=n,n=u,r);r=o,o=L}let a,h,l=!1;this._decorationService.forEachDecorationAtCell(d,f,void 0,e=>{"top"!==e.options.layer&&l||(e.backgroundColorRGB&&(o=50331648,n=e.backgroundColorRGB.rgba>>8&16777215,a=e.backgroundColorRGB),e.foregroundColorRGB&&(r=50331648,s=e.foregroundColorRGB.rgba>>8&16777215,h=e.foregroundColorRGB),l="top"===e.options.layer)});var w=this._isCellInSelection(d,f);let c;switch(l||this._colors.selectionForeground&&w&&(r=50331648,s=this._colors.selectionForeground.rgba>>8&16777215,h=this._colors.selectionForeground),w&&(a=this._coreBrowserService.isFocused?this._colors.selectionBackgroundOpaque:this._colors.selectionInactiveBackgroundOpaque,l=!0),l&&E.classList.add("xterm-decoration-top"),o){case 16777216:case 33554432:c=this._colors.ansi[n],E.classList.add("xterm-bg-"+n);break;case 50331648:c=D.rgba.toColor(n>>16,n>>8&255,255&n),this._addStyle(E,"background-color:#"+B((n>>>0).toString(16),"0",6));break;default:y?(c=this._colors.foreground,E.classList.add("xterm-bg-"+R.INVERTED_DEFAULT_COLOR)):c=this._colors.background}switch(a||i.isDim()&&(a=D.color.multiplyOpacity(c,.5)),r){case 16777216:case 33554432:i.isBold()&&s<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(s+=8),this._applyMinimumContrast(E,c,this._colors.ansi[s],i,a,void 0)||E.classList.add("xterm-fg-"+s);break;case 50331648:const u=D.rgba.toColor(s>>16&255,s>>8&255,255&s);this._applyMinimumContrast(E,c,u,i,a,h)||this._addStyle(E,"color:#"+B(s.toString(16),"0",6));break;default:this._applyMinimumContrast(E,c,this._colors.foreground,i,a,void 0)||y&&E.classList.add("xterm-fg-"+R.INVERTED_DEFAULT_COLOR)}C.appendChild(E),d=t}}return C}_applyMinimumContrast(e,t,i,s,r,n){if(1===this._optionsService.rawOptions.minimumContrastRatio||(0,h.excludeFromContrastRatioDemands)(s.getCode()))return!1;let o;return void 0===(o=r||n?o:this._colors.contrastCache.getColor(t.rgba,i.rgba))&&(o=D.color.ensureContrastRatio(r||t,n||i,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor((r||t).rgba,(n||i).rgba,null!=o?o:null)),!!o&&(this._addStyle(e,"color:"+o.css),!0)}_addStyle(e,t){e.setAttribute("style",`${e.getAttribute("style")||""}${t};`)}_isCellInSelection(e,t){var i=this._selectionStart,s=this._selectionEnd;return!(!i||!s)&&(this._columnSelectMode?i[0]<=s[0]?e>=i[0]&&t>=i[1]&&e<s[0]&&t<=s[1]:e<i[0]&&t>=i[1]&&e>=s[0]&&t<=s[1]:t>i[1]&&t<s[1]||i[1]===s[1]&&t===i[1]&&e>=i[0]&&e<s[0]||i[1]<s[1]&&t===s[1]&&e<s[0]||i[1]<s[1]&&t===i[1]&&e>=i[0])}};function B(e,t,i){for(;e.length<i;)e=t+e;return e}t=i([s(2,n.ICharacterJoinerService),s(3,r.IOptionsService),s(4,n.ICoreBrowserService),s(5,r.ICoreService),s(6,r.IDecorationService)],t),L.DomRendererRowFactory=t},456:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0,t.SelectionModel=class{constructor(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){return this.isSelectAllActive?[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?(e=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?e%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?(e=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[Math.max(e,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:void 0;var e}areSelectionValuesReversed(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])}onTrim(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;const n=i(2585),o=i(8460);i=class{constructor(e,t,i){this._optionsService=i,this.width=0,this.height=0,this._onCharSizeChange=new o.EventEmitter,this._measureStrategy=new a(e,t,this._optionsService)}get hasValidSize(){return 0<this.width&&0<this.height}get onCharSizeChange(){return this._onCharSizeChange.event}measure(){var e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}},i=s([r(2,n.IOptionsService)],i);t.CharSizeService=i;class a{constructor(e,t,i){this._document=e,this._parentElement=t,this._optionsService=i,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}measure(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var e=this._measureElement.getBoundingClientRect();return 0!==e.width&&0!==e.height&&(this._result.width=e.width,this._result.height=Math.ceil(e.height)),this._result}}},4269:function(a,e,t){var i=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(e,"__esModule",{value:!0}),e.CharacterJoinerService=e.JoinedCellData=void 0;const r=t(3734),c=t(643),n=t(511),o=t(2585);class h extends r.AttributeData{constructor(e,t,i){super(),this.content=0,this.combinedData="",this.fg=e.fg,this.bg=e.bg,this.combinedData=t,this._width=i}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(e){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}e.JoinedCellData=h;t=class a{constructor(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new n.CellData}register(e){e={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(e),e.id}deregister(t){for(let e=0;e<this._characterJoiners.length;e++)if(this._characterJoiners[e].id===t)return this._characterJoiners.splice(e,1),!0;return!1}getJoinedCharacters(t){if(0===this._characterJoiners.length)return[];const i=this._bufferService.buffer.lines.get(t);if(!i||0===i.length)return[];const s=[],r=i.translateToString(!0);let n=0,o=0,a=0,h=i.getFg(0),l=i.getBg(0);for(let e=0;e<i.getTrimmedLength();e++)if(i.loadCell(e,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==h||this._workCell.bg!==l){if(1<e-n){const t=this._getJoinedRanges(r,a,o,i,n);for(let e=0;e<t.length;e++)s.push(t[e])}n=e,a=o,h=this._workCell.fg,l=this._workCell.bg}o+=this._workCell.getChars().length||c.WHITESPACE_CELL_CHAR.length}if(1<this._bufferService.cols-n){const t=this._getJoinedRanges(r,a,o,i,n);for(let e=0;e<t.length;e++)s.push(t[e])}return s}_getJoinedRanges(e,t,i,s,r){var n=e.substring(t,i);let o=[];try{o=this._characterJoiners[0].handler(n)}catch(e){console.error(e)}for(let e=1;e<this._characterJoiners.length;e++)try{const t=this._characterJoiners[e].handler(n);for(let e=0;e<t.length;e++)a._mergeRanges(o,t[e])}catch(e){console.error(e)}return this._stringRangesToCellRanges(o,s,r),o}_stringRangesToCellRanges(t,i,s){let r=0,n=!1,o=0,a=t[r];if(a){for(let e=s;e<this._bufferService.cols;e++){const s=i.getWidth(e),h=i.getString(e).length||c.WHITESPACE_CELL_CHAR.length;if(0!==s){if(!n&&a[0]<=o&&(a[0]=e,n=!0),a[1]<=o){if(a[1]=e,!(a=t[++r]))break;n=a[0]<=o&&(a[0]=e,!0)}o+=h}}a&&(a[1]=this._bufferService.cols)}}static _mergeRanges(t,i){let s=!1;for(let e=0;e<t.length;e++){const r=t[e];if(s){if(i[1]<=r[0])return t[e-1][1]=i[1],t;if(i[1]<=r[1])return t[e-1][1]=Math.max(i[1],r[1]),t.splice(e,1),t;t.splice(e,1),e--}else{if(i[1]<=r[0])return t.splice(e,0,i),t;if(i[1]<=r[1])return r[0]=Math.min(i[0],r[0]),t;i[0]<r[1]&&(r[0]=Math.min(i[0],r[0]),s=!0)}}return s?t[t.length-1][1]=i[1]:t.push(i),t}},t=i([s(0,o.IBufferService)],t);e.CharacterJoinerService=t},5114:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0,t.CoreBrowserService=class{constructor(e,t){this._textarea=e,this.window=t}get dpr(){return this.window.devicePixelRatio}get isFocused(){return(this._textarea.getRootNode?this._textarea.getRootNode():this._textarea.ownerDocument).activeElement===this._textarea&&this._textarea.ownerDocument.hasFocus()}}},8934:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;const n=i(4725),o=i(9806);i=class{constructor(e,t){this._renderService=e,this._charSizeService=t}getCoords(e,t,i,s,r){return(0,o.getCoords)(window,e,t,i,s,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,r)}getMouseReportCoords(e,t){e=(0,o.getCoordsRelativeToElement)(window,e,t);if(!(!this._charSizeService.hasValidSize||e[0]<0||e[1]<0||e[0]>=this._renderService.dimensions.canvasWidth||e[1]>=this._renderService.dimensions.canvasHeight))return{col:Math.floor(e[0]/this._renderService.dimensions.actualCellWidth),row:Math.floor(e[1]/this._renderService.dimensions.actualCellHeight),x:Math.floor(e[0]),y:Math.floor(e[1])}}},i=s([r(0,n.IRenderService),r(1,n.ICharSizeService)],i);t.MouseService=i},3230:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;const h=i(6193),l=i(8460),n=i(844),c=i(5596),_=i(3656),o=i(2585),a=i(4725);i=class extends n.Disposable{constructor(e,t,i,s,r,n,o,a){if(super(),this._renderer=e,this._rowCount=t,this._charSizeService=r,this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=new l.EventEmitter,this._onRenderedViewportChange=new l.EventEmitter,this._onRender=new l.EventEmitter,this._onRefreshRequest=new l.EventEmitter,this.register({dispose:()=>this._renderer.dispose()}),this._renderDebouncer=new h.RenderDebouncer(a.window,(e,t)=>this._renderRows(e,t)),this.register(this._renderDebouncer),this._screenDprMonitor=new c.ScreenDprMonitor(a.window),this._screenDprMonitor.setListener(()=>this.onDevicePixelRatioChange()),this.register(this._screenDprMonitor),this.register(o.onResize(()=>this._fullRefresh())),this.register(o.buffers.onBufferActivate(()=>{var e;return null==(e=this._renderer)?void 0:e.clear()})),this.register(s.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._charSizeService.onCharSizeChange(()=>this.onCharSizeChanged())),this.register(n.onDecorationRegistered(()=>this._fullRefresh())),this.register(n.onDecorationRemoved(()=>this._fullRefresh())),this._renderer.onRequestRedraw(e=>this.refreshRows(e.start,e.end,!0)),this.register((0,_.addDisposableDomListener)(a.window,"resize",()=>this.onDevicePixelRatioChange())),"IntersectionObserver"in a.window){const e=new a.window.IntersectionObserver(e=>this._onIntersectionChange(e[e.length-1]),{threshold:0});e.observe(i),this.register({dispose:()=>e.disconnect()})}}get onDimensionsChange(){return this._onDimensionsChange.event}get onRenderedViewportChange(){return this._onRenderedViewportChange.event}get onRender(){return this._onRender.event}get onRefreshRequest(){return this._onRefreshRequest.event}get dimensions(){return this._renderer.dimensions}_onIntersectionChange(e){this._isPaused=void 0===e.isIntersecting?0===e.intersectionRatio:!e.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(e,t,i=!1){this._isPaused?this._needsFullRefresh=!0:(i||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount))}_renderRows(e,t){this._renderer.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0}resize(e,t){this._rowCount=t,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()}_fireOnCanvasResize(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)}dispose(){super.dispose()}setRenderer(e){this._renderer.dispose(),this._renderer=e,this._renderer.onRequestRedraw(e=>this.refreshRows(e.start,e.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh()}addRefreshCallback(e){return this._renderDebouncer.addRefreshCallback(e)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var e,t;null!=(t=null==(e=this._renderer)?void 0:e.clearTextureAtlas)&&t.call(e),this._fullRefresh()}setColors(e){this._renderer.setColors(e),this._fullRefresh()}onDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)}onResize(e,t){this._renderer.onResize(e,t),this._fullRefresh()}onCharSizeChanged(){this._renderer.onCharSizeChanged()}onBlur(){this._renderer.onBlur()}onFocus(){this._renderer.onFocus()}onSelectionChanged(e,t,i){this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=i,this._renderer.onSelectionChanged(e,t,i)}onCursorMove(){this._renderer.onCursorMove()}clear(){this._renderer.clear()}},i=s([r(3,o.IOptionsService),r(4,a.ICharSizeService),r(5,o.IDecorationService),r(6,o.IBufferService),r(7,a.ICoreBrowserService)],i);t.RenderService=i},9312:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;const a=i(6114),l=i(456),c=i(511),_=i(8460),n=i(4725),o=i(2585),h=i(9806),d=i(9504),u=i(844),f=i(4841),v=String.fromCharCode(160),g=new RegExp(v,"g");i=class extends u.Disposable{constructor(e,t,i,s,r,n,o,a,h){super(),this._element=e,this._screenElement=t,this._linkifier=i,this._bufferService=s,this._coreService=r,this._mouseService=n,this._optionsService=o,this._renderService=a,this._coreBrowserService=h,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new c.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new _.EventEmitter),this._onRedrawRequest=this.register(new _.EventEmitter),this._onSelectionChange=this.register(new _.EventEmitter),this._onRequestScrollLines=this.register(new _.EventEmitter),this._mouseMoveListener=e=>this._onMouseMove(e),this._mouseUpListener=e=>this._onMouseUp(e),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(e=>this._onTrim(e)),this.register(this._bufferService.buffers.onBufferActivate(e=>this._onBufferActivate(e))),this.enable(),this._model=new l.SelectionModel(this._bufferService),this._activeSelectionMode=0}get onLinuxMouseSelection(){return this._onLinuxMouseSelection.event}get onRequestRedraw(){return this._onRedrawRequest.event}get onSelectionChange(){return this._onSelectionChange.event}get onRequestScrollLines(){return this._onRequestScrollLines.event}dispose(){this._removeMouseDownListeners()}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])}get selectionText(){const t=this._model.finalSelectionStart,i=this._model.finalSelectionEnd;if(!t||!i)return"";const s=this._bufferService.buffer,r=[];if(3===this._activeSelectionMode){if(t[0]===i[0])return"";const n=(t[0]<i[0]?t:i)[0],a=(t[0]<i[0]?i:t)[0];for(let e=t[1];e<=i[1];e++){const t=s.translateBufferLineToString(e,!0,n,a);r.push(t)}}else{var e=t[1]===i[1]?i[0]:void 0;r.push(s.translateBufferLineToString(t[1],!0,t[0],e));for(let e=t[1]+1;e<=i[1]-1;e++){const t=s.lines.get(e),i=s.translateBufferLineToString(e,!0);null!=t&&t.isWrapped?r[r.length-1]+=i:r.push(i)}if(t[1]!==i[1]){const t=s.lines.get(i[1]),o=s.translateBufferLineToString(i[1],!0,0,i[0]);t&&t.isWrapped?r[r.length-1]+=o:r.push(o)}}return r.map(e=>e.replace(g," ")).join(a.isWindows?"\r\n":"\n")}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(e){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),a.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})}_isClickInSelection(e){var e=this._getMouseBufferCoords(e),t=this._model.finalSelectionStart,i=this._model.finalSelectionEnd;return!!(t&&i&&e)&&this._areCoordsInSelection(e,t,i)}isCellInSelection(e,t){var i=this._model.finalSelectionStart,s=this._model.finalSelectionEnd;return!(!i||!s)&&this._areCoordsInSelection([e,t],i,s)}_areCoordsInSelection(e,t,i){return e[1]>t[1]&&e[1]<i[1]||t[1]===i[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<i[0]||t[1]<i[1]&&e[1]===i[1]&&e[0]<i[0]||t[1]<i[1]&&e[1]===t[1]&&e[0]>=t[0]}_selectWordAtCursor(e,t){var i=null==(i=null==(i=this._linkifier.currentLink)?void 0:i.link)?void 0:i.range;if(i)return this._model.selectionStart=[i.start.x-1,i.start.y-1],this._model.selectionStartLength=(0,f.getRangeLength)(i,this._bufferService.cols),!(this._model.selectionEnd=void 0);i=this._getMouseBufferCoords(e);return!!i&&(this._selectWordAt(i,t),!(this._model.selectionEnd=void 0))}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}_onTrim(e){this._model.onTrim(e)&&this.refresh()}_getMouseBufferCoords(e){const t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t}_getMouseEventScrollAmount(e){let t=(0,h.getCoordsRelativeToElement)(this._coreBrowserService.window,e,this._screenElement)[1];e=this._renderService.dimensions.canvasHeight;return 0<=t&&t<=e?0:(t>e&&(t-=e),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))}shouldForceSelection(e){return a.isMac?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey}onMouseDown(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_onIncrementalClick(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))}_onSingleClick(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart){this._model.selectionEnd=void 0;const t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&0===t.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}}_onDoubleClick(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)}_onTripleClick(e){e=this._getMouseBufferCoords(e);e&&(this._activeSelectionMode=2,this._selectLineAt(e[1]))}shouldColumnSelect(e){return e.altKey&&!(a.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_onMouseMove(e){if(e.stopImmediatePropagation(),this._model.selectionStart){var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),3!==this._activeSelectionMode&&(0<this._dragScrollAmount?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const i=this._bufferService.buffer;if(this._model.selectionEnd[1]<i.lines.length){const e=i.lines.get(this._model.selectionEnd[1]);e&&0===e.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}t&&t[0]===this._model.selectionEnd[0]&&t[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}}_dragScroll(){var e;this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount&&(this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1}),e=this._bufferService.buffer,0<this._dragScrollAmount?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh())}_onMouseUp(e){const t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const t=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(t&&void 0!==t[0]&&void 0!==t[1]){const e=(0,d.moveToCellSequence)(t[0]-1,t[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(e,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,i=!(!e||!t||e[0]===t[0]&&e[1]===t[1]);i?e&&t&&(this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,i)):this._oldHasSelection&&this._fireOnSelectionChange(e,t,i)}_fireOnSelectionChange(e,t,i){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=i,this._onSelectionChange.fire()}_onBufferActivate(e){this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(e=>this._onTrim(e))}_convertViewportColToCharacterIndex(t,i){let s=i[0];for(let e=0;i[0]>=e;e++){var r=t.loadCell(e,this._workCell).getChars().length;0===this._workCell.getWidth()?s--:1<r&&i[0]!==e&&(s+=r-1)}return s}setSelection(e,t,i){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=i,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(h,l,c=!0,_=!0){if(!(h[0]>=this._bufferService.cols)){const u=this._bufferService.buffer,f=u.lines.get(h[1]);if(f){const v=u.translateBufferLineToString(h[1],!1);let i=this._convertViewportColToCharacterIndex(f,h),s=i;var d=h[0]-i;let r=0,n=0,o=0,a=0;if(" "===v.charAt(i)){for(;0<i&&" "===v.charAt(i-1);)i--;for(;s<v.length&&" "===v.charAt(s+1);)s++}else{let e=h[0],t=h[0];0===f.getWidth(e)&&(r++,e--),2===f.getWidth(t)&&(n++,t++);const _=f.getString(t).length;for(1<_&&(a+=_-1,s+=_-1);0<e&&0<i&&!this._isCharWordSeparator(f.loadCell(e-1,this._workCell));){f.loadCell(e-1,this._workCell);const h=this._workCell.getChars().length;0===this._workCell.getWidth()?(r++,e--):1<h&&(o+=h-1,i-=h-1),i--,e--}for(;t<f.length&&s+1<v.length&&!this._isCharWordSeparator(f.loadCell(t+1,this._workCell));){f.loadCell(t+1,this._workCell);const h=this._workCell.getChars().length;2===this._workCell.getWidth()?(n++,t++):1<h&&(a+=h-1,s+=h-1),s++,t++}}s++;let e=i+d-r+o,t=Math.min(this._bufferService.cols,s-i+r+n-o-a);if(l||""!==v.slice(i,s).trim()){if(c&&0===e&&32!==f.getCodePoint(0)){const l=u.lines.get(h[1]-1);if(l&&f.isWrapped&&32!==l.getCodePoint(this._bufferService.cols-1)){const l=this._getWordAt([this._bufferService.cols-1,h[1]-1],!1,!0,!1);if(l){const h=this._bufferService.cols-l.start;e-=h,t+=h}}}if(_&&e+t===this._bufferService.cols&&32!==f.getCodePoint(this._bufferService.cols-1)){const l=u.lines.get(h[1]+1);if(null!=l&&l.isWrapped&&32!==l.getCodePoint(0)){const l=this._getWordAt([0,h[1]+1],!1,!1,!0);l&&(t+=l.length)}}return{start:e,length:t}}}}}_selectWordAt(e,t){const i=this._getWordAt(e,t);if(i){for(;i.start<0;)i.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[i.start,e[1]],this._model.selectionStartLength=i.length}}_selectToWordAt(t){const i=this._getWordAt(t,!0);if(i){let e=t[1];for(;i.start<0;)i.start+=this._bufferService.cols,e--;if(!this._model.areSelectionValuesReversed())for(;i.start+i.length>this._bufferService.cols;)i.length-=this._bufferService.cols,e++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?i.start:i.start+i.length,e]}}_isCharWordSeparator(e){return 0!==e.getWidth()&&0<=this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())}_selectLineAt(e){var e=this._bufferService.buffer.getWrappedRangeForLine(e),t={start:{x:0,y:e.first},end:{x:this._bufferService.cols-1,y:e.last}};this._model.selectionStart=[0,e.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,f.getRangeLength)(t,this._bufferService.cols)}},i=s([r(3,o.IBufferService),r(4,o.ICoreService),r(5,n.IMouseService),r(6,o.IOptionsService),r(7,n.IRenderService),r(8,n.ICoreBrowserService)],i);t.SelectionService=i},4725:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ICharacterJoinerService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;const s=i(8343);t.ICharSizeService=(0,s.createDecorator)("CharSizeService"),t.ICoreBrowserService=(0,s.createDecorator)("CoreBrowserService"),t.IMouseService=(0,s.createDecorator)("MouseService"),t.IRenderService=(0,s.createDecorator)("RenderService"),t.ISelectionService=(0,s.createDecorator)("SelectionService"),t.ICharacterJoinerService=(0,s.createDecorator)("CharacterJoinerService")},6349:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;const s=i(8460);t.CircularList=class{constructor(e){this._maxLength=e,this.onDeleteEmitter=new s.EventEmitter,this.onInsertEmitter=new s.EventEmitter,this.onTrimEmitter=new s.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get onDelete(){return this.onDeleteEmitter.event}get onInsert(){return this.onInsertEmitter.event}get onTrim(){return this.onTrimEmitter.event}get maxLength(){return this._maxLength}set maxLength(t){if(this._maxLength!==t){const i=new Array(t);for(let e=0;e<Math.min(t,this.length);e++)i[e]=this._array[this._getCyclicIndex(e)];this._array=i,this._maxLength=t,this._startIndex=0}}get length(){return this._length}set length(t){if(t>this._length)for(let e=this._length;e<t;e++)this._array[e]=void 0;this._length=t}get(e){return this._array[this._getCyclicIndex(e)]}set(e,t){this._array[this._getCyclicIndex(e)]=t}push(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(t,i,...s){if(i){for(let e=t;e<this._length-i;e++)this._array[this._getCyclicIndex(e)]=this._array[this._getCyclicIndex(e+i)];this._length-=i,this.onDeleteEmitter.fire({index:t,amount:i})}for(let e=this._length-1;e>=t;e--)this._array[this._getCyclicIndex(e+s.length)]=this._array[this._getCyclicIndex(e)];for(let e=0;e<s.length;e++)this._array[this._getCyclicIndex(t+e)]=s[e];if(s.length&&this.onInsertEmitter.fire({index:t,amount:s.length}),this._length+s.length>this._maxLength){const t=this._length+s.length-this._maxLength;this._startIndex+=t,this._length=this._maxLength,this.onTrimEmitter.fire(t)}else this._length+=s.length}trimStart(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}shiftElements(t,i,s){if(!(i<=0)){if(t<0||t>=this._length)throw new Error("start argument out of range");if(t+s<0)throw new Error("Cannot shift elements in list beyond index 0");if(0<s){for(let e=i-1;0<=e;e--)this.set(t+e+s,this.get(t+e));var e=t+i+s-this._length;if(0<e)for(this._length+=e;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let e=0;e<i;e++)this.set(t+e+s,this.get(t+e))}}_getCyclicIndex(e){return(this._startIndex+e)%this._maxLength}}},1439:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t,i=5){if("object"!=typeof t)return t;const s=Array.isArray(t)?[]:{};for(const r in t)s[r]=i<=1?t[r]:t[r]&&e(t[r],i-1);return s}},8055:(e,t)=>{var a,c,_,i;function r(e){e=e.toString(16);return e.length<2?"0"+e:e}function d(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}function h(e,t,i){var s=e>>24&255,r=e>>16&255,n=e>>8&255;let o=t>>24&255,a=t>>16&255,h=t>>8&255,l=d(c.relativeLuminance2(o,a,h),c.relativeLuminance2(s,r,n));for(;l<i&&(0<o||0<a||0<h);)o-=Math.max(0,Math.ceil(.1*o)),a-=Math.max(0,Math.ceil(.1*a)),h-=Math.max(0,Math.ceil(.1*h)),l=d(c.relativeLuminance2(o,a,h),c.relativeLuminance2(s,r,n));return(o<<24|a<<16|h<<8|255)>>>0}function l(e,t,i){var s=e>>24&255,r=e>>16&255,n=e>>8&255;let o=t>>24&255,a=t>>16&255,h=t>>8&255,l=d(c.relativeLuminance2(o,a,h),c.relativeLuminance2(s,r,n));for(;l<i&&(o<255||a<255||h<255);)o=Math.min(255,o+Math.ceil(.1*(255-o))),a=Math.min(255,a+Math.ceil(.1*(255-a))),h=Math.min(255,h+Math.ceil(.1*(255-h))),l=d(c.relativeLuminance2(o,a,h),c.relativeLuminance2(s,r,n));return(o<<24|a<<16|h<<8|255)>>>0}function s(e,t,i){e/=255,t/=255,i/=255;return.2126*(e<=.03928?e/12.92:Math.pow((.055+e)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((.055+t)/1.055,2.4))+.0722*(i<=.03928?i/12.92:Math.pow((.055+i)/1.055,2.4))}function n(e,t){var t=Math.round(255*t),[e,i,s]=_.toChannels(e.rgba);return{css:a.toCss(e,i,s,t),rgba:a.toRgba(e,i,s,t)}}Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=void 0,(i=a=t.channels||(t.channels={})).toCss=function(e,t,i,s){return void 0!==s?"#"+r(e)+r(t)+r(i)+r(s):"#"+r(e)+r(t)+r(i)},i.toRgba=function(e,t,i,s=255){return(e<<24|t<<16|i<<8|s)>>>0},(i=t.color||(t.color={})).blend=function(e,t){var i=(255&t.rgba)/255;if(1==i)return{css:t.css,rgba:t.rgba};var s=t.rgba>>24&255,r=t.rgba>>16&255,t=t.rgba>>8&255,n=e.rgba>>24&255,o=e.rgba>>16&255,e=e.rgba>>8&255,s=n+Math.round((s-n)*i),n=o+Math.round((r-o)*i),r=e+Math.round((t-e)*i);return{css:a.toCss(s,n,r),rgba:a.toRgba(s,n,r)}},i.isOpaque=function(e){return 255==(255&e.rgba)},i.ensureContrastRatio=function(e,t,i){e=_.ensureContrastRatio(e.rgba,t.rgba,i);if(e)return _.toColor(e>>24&255,e>>16&255,e>>8&255)},i.opaque=function(e){var e=(255|e.rgba)>>>0,[t,i,s]=_.toChannels(e);return{css:a.toCss(t,i,s),rgba:e}},i.opacity=n,i.multiplyOpacity=function(e,t){return n(e,(255&e.rgba)*t/255)},i.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]},(t.css||(t.css={})).toColor=function(e){if(e.match(/#[0-9a-f]{3,8}/i))switch(e.length){case 4:{const t=parseInt(e.slice(1,2).repeat(2),16),i=parseInt(e.slice(2,3).repeat(2),16),s=parseInt(e.slice(3,4).repeat(2),16);return _.toColor(t,i,s)}case 5:{const t=parseInt(e.slice(1,2).repeat(2),16),r=parseInt(e.slice(2,3).repeat(2),16),n=parseInt(e.slice(3,4).repeat(2),16),o=parseInt(e.slice(4,5).repeat(2),16);return _.toColor(t,r,n,o)}case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}const t=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(t){const e=parseInt(t[1]),a=parseInt(t[2]),h=parseInt(t[3]),l=Math.round(255*(void 0===t[5]?1:parseFloat(t[5])));return _.toColor(e,a,h,l)}throw new Error("css.toColor: Unsupported css format")},(i=c=t.rgb||(t.rgb={})).relativeLuminance=function(e){return s(e>>16&255,e>>8&255,255&e)},i.relativeLuminance2=s,(i=_=t.rgba||(t.rgba={})).ensureContrastRatio=function(e,t,i){const s=c.relativeLuminance(e>>8),r=c.relativeLuminance(t>>8);if(d(s,r)<i){if(r<s){const r=h(e,t,i),a=d(s,c.relativeLuminance(r>>8));if(a<i){const h=l(e,t,i);return a>d(s,c.relativeLuminance(h>>8))?r:h}return r}var n=l(e,t,i),o=d(s,c.relativeLuminance(n>>8));if(o<i){const l=h(e,t,i);return o>d(s,c.relativeLuminance(l>>8))?n:l}return n}},i.reduceLuminance=h,i.increaseLuminance=l,i.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},i.toColor=function(e,t,i,s){return{css:a.toCss(e,t,i,s),rgba:a.toRgba(e,t,i,s)}},t.toPaddedHex=r,t.contrastRatio=d},8969:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;const s=i(844),r=i(2585),n=i(4348),o=i(7866),a=i(744),h=i(7302),l=i(6975),c=i(8460),_=i(1753),d=i(3730),u=i(1480),f=i(7994),v=i(9282),g=i(5435),p=i(5981),S=i(2660);let m=!1;class C extends s.Disposable{constructor(e){super(),this._onBinary=new c.EventEmitter,this._onData=new c.EventEmitter,this._onLineFeed=new c.EventEmitter,this._onResize=new c.EventEmitter,this._onScroll=new c.EventEmitter,this._onWriteParsed=new c.EventEmitter,this._instantiationService=new n.InstantiationService,this.optionsService=new h.OptionsService(e),this._instantiationService.setService(r.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(a.BufferService)),this._instantiationService.setService(r.IBufferService,this._bufferService),this._logService=this._instantiationService.createInstance(o.LogService),this._instantiationService.setService(r.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(l.CoreService,()=>this.scrollToBottom())),this._instantiationService.setService(r.ICoreService,this.coreService),this.coreMouseService=this._instantiationService.createInstance(_.CoreMouseService),this._instantiationService.setService(r.ICoreMouseService,this.coreMouseService),this._dirtyRowService=this._instantiationService.createInstance(d.DirtyRowService),this._instantiationService.setService(r.IDirtyRowService,this._dirtyRowService),this.unicodeService=this._instantiationService.createInstance(u.UnicodeService),this._instantiationService.setService(r.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(f.CharsetService),this._instantiationService.setService(r.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(S.OscLinkService),this._instantiationService.setService(r.IOscLinkService,this._oscLinkService),this._inputHandler=new g.InputHandler(this._bufferService,this._charsetService,this.coreService,this._dirtyRowService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService),this.register((0,c.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,c.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,c.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,c.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.optionsService.onOptionChange(e=>this._updateOptions(e))),this.register(this._bufferService.onScroll(e=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._dirtyRowService.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this.register(this._inputHandler.onScroll(e=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._dirtyRowService.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=new p.WriteBuffer((e,t)=>this._inputHandler.parse(e,t)),this.register((0,c.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}get onBinary(){return this._onBinary.event}get onData(){return this._onData.event}get onLineFeed(){return this._onLineFeed.event}get onResize(){return this._onResize.event}get onWriteParsed(){return this._onWriteParsed.event}get onScroll(){return this._onScrollApi||(this._onScrollApi=new c.EventEmitter,this.register(this._onScroll.event(e=>{var t;null!=(t=this._onScrollApi)&&t.fire(e.position)}))),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(e){for(const t in e)this.optionsService.options[t]=e[t]}dispose(){var e;this._isDisposed||(super.dispose(),null!=(e=this._windowsMode)&&e.dispose(),this._windowsMode=void 0)}write(e,t){this._writeBuffer.write(e,t)}writeSync(e,t){this._logService.logLevel<=r.LogLevelEnum.WARN&&!m&&(this._logService.warn("writeSync is unreliable and will be removed soon."),m=!0),this._writeBuffer.writeSync(e,t)}resize(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,a.MINIMUM_COLS),t=Math.max(t,a.MINIMUM_ROWS),this._bufferService.resize(e,t))}scroll(e,t=!1){this._bufferService.scroll(e,t)}scrollLines(e,t,i){this._bufferService.scrollLines(e,t,i)}scrollPages(e){this._bufferService.scrollPages(e)}scrollToTop(){this._bufferService.scrollToTop()}scrollToBottom(){this._bufferService.scrollToBottom()}scrollToLine(e){this._bufferService.scrollToLine(e)}registerEscHandler(e,t){return this._inputHandler.registerEscHandler(e,t)}registerDcsHandler(e,t){return this._inputHandler.registerDcsHandler(e,t)}registerCsiHandler(e,t){return this._inputHandler.registerCsiHandler(e,t)}registerOscHandler(e,t){return this._inputHandler.registerOscHandler(e,t)}_setup(){this.optionsService.rawOptions.windowsMode&&this._enableWindowsMode()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_updateOptions(e){var t;switch(e){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.rawOptions.windowsMode?this._enableWindowsMode():(null!=(t=this._windowsMode)&&t.dispose(),this._windowsMode=void 0)}}_enableWindowsMode(){if(!this._windowsMode){const t=[];t.push(this.onLineFeed(v.updateWindowsModeWrappedState.bind(null,this._bufferService))),t.push(this.registerCsiHandler({final:"H"},()=>((0,v.updateWindowsModeWrappedState)(this._bufferService),!1))),this._windowsMode={dispose:()=>{for(const e of t)e.dispose()}}}}}t.CoreTerminal=C},8460:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=t=>(this._listeners.push(t),{dispose:()=>{if(!this._disposed)for(let e=0;e<this._listeners.length;e++)if(this._listeners[e]===t)return void this._listeners.splice(e,1)}})),this._event}fire(t,i){const s=[];for(let e=0;e<this._listeners.length;e++)s.push(this._listeners[e]);for(let e=0;e<s.length;e++)s[e].call(void 0,t,i)}dispose(){this._listeners&&(this._listeners.length=0),this._disposed=!0}},t.forwardEvent=function(e,t){return e(e=>t.fire(e))}},5435:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InputHandler=t.WindowsOptionsReportType=void 0;const f=i(2584),c=i(7116),_=i(2015),s=i(844),u=i(482),d=i(8437),v=i(8460),g=i(643),p=i(511),n=i(3734),a=i(2585),S=i(6242),m=i(6351),r=i(5941),o={"(":0,")":1,"*":2,"+":3,"-":1,".":2},h=131072;function l(e,t){if(24<e)return t.setWinLines;switch(e){case 1:return t.restoreWin;case 2:return t.minimizeWin;case 3:return t.setWinPosition;case 4:return t.setWinSizePixels;case 5:return t.raiseWin;case 6:return t.lowerWin;case 7:return t.refreshWin;case 8:return t.setWinSizeChars;case 9:return t.maximizeWin;case 10:return t.fullscreenWin;case 11:return t.getWinState;case 13:return t.getWinPosition;case 14:return t.getWinSizePixels;case 15:return t.getScreenSizePixels;case 16:return t.getCellSizePixels;case 18:return t.getWinSizeChars;case 19:return t.getScreenSizeChars;case 20:return t.getIconTitle;case 21:return t.getWinTitle;case 22:return t.pushTitle;case 23:return t.popTitle;case 24:return t.setWinLines}}var C;(i=C=t.WindowsOptionsReportType||(t.WindowsOptionsReportType={}))[i.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",i[i.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS";class b extends s.Disposable{constructor(e,t,i,s,r,n,o,a,h,l=new _.EscapeSequenceParser){super(),this._bufferService=e,this._charsetService=t,this._coreService=i,this._dirtyRowService=s,this._logService=r,this._optionsService=n,this._oscLinkService=o,this._coreMouseService=a,this._unicodeService=h,this._parser=l,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new u.StringToUtf32,this._utf8Decoder=new u.Utf8ToUtf32,this._workCell=new p.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=d.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=d.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=new v.EventEmitter,this._onRequestRefreshRows=new v.EventEmitter,this._onRequestReset=new v.EventEmitter,this._onRequestSendFocus=new v.EventEmitter,this._onRequestSyncScrollBar=new v.EventEmitter,this._onRequestWindowsOptionsReport=new v.EventEmitter,this._onA11yChar=new v.EventEmitter,this._onA11yTab=new v.EventEmitter,this._onCursorMove=new v.EventEmitter,this._onLineFeed=new v.EventEmitter,this._onScroll=new v.EventEmitter,this._onTitleChange=new v.EventEmitter,this._onColor=new v.EventEmitter,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(e=>this._activeBuffer=e.activeBuffer)),this._parser.setCsiHandlerFallback((e,t)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(e),params:t.toArray()})}),this._parser.setEscHandlerFallback(e=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(e)})}),this._parser.setExecuteHandlerFallback(e=>{this._logService.debug("Unknown EXECUTE code: ",{code:e})}),this._parser.setOscHandlerFallback((e,t,i)=>{this._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:i})}),this._parser.setDcsHandlerFallback((e,t,i)=>{"HOOK"===t&&(i=i.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(e),action:t,payload:i})}),this._parser.setPrintHandler((e,t,i)=>this.print(e,t,i)),this._parser.registerCsiHandler({final:"@"},e=>this.insertChars(e)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},e=>this.scrollLeft(e)),this._parser.registerCsiHandler({final:"A"},e=>this.cursorUp(e)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},e=>this.scrollRight(e)),this._parser.registerCsiHandler({final:"B"},e=>this.cursorDown(e)),this._parser.registerCsiHandler({final:"C"},e=>this.cursorForward(e)),this._parser.registerCsiHandler({final:"D"},e=>this.cursorBackward(e)),this._parser.registerCsiHandler({final:"E"},e=>this.cursorNextLine(e)),this._parser.registerCsiHandler({final:"F"},e=>this.cursorPrecedingLine(e)),this._parser.registerCsiHandler({final:"G"},e=>this.cursorCharAbsolute(e)),this._parser.registerCsiHandler({final:"H"},e=>this.cursorPosition(e)),this._parser.registerCsiHandler({final:"I"},e=>this.cursorForwardTab(e)),this._parser.registerCsiHandler({final:"J"},e=>this.eraseInDisplay(e,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},e=>this.eraseInDisplay(e,!0)),this._parser.registerCsiHandler({final:"K"},e=>this.eraseInLine(e,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},e=>this.eraseInLine(e,!0)),this._parser.registerCsiHandler({final:"L"},e=>this.insertLines(e)),this._parser.registerCsiHandler({final:"M"},e=>this.deleteLines(e)),this._parser.registerCsiHandler({final:"P"},e=>this.deleteChars(e)),this._parser.registerCsiHandler({final:"S"},e=>this.scrollUp(e)),this._parser.registerCsiHandler({final:"T"},e=>this.scrollDown(e)),this._parser.registerCsiHandler({final:"X"},e=>this.eraseChars(e)),this._parser.registerCsiHandler({final:"Z"},e=>this.cursorBackwardTab(e)),this._parser.registerCsiHandler({final:"`"},e=>this.charPosAbsolute(e)),this._parser.registerCsiHandler({final:"a"},e=>this.hPositionRelative(e)),this._parser.registerCsiHandler({final:"b"},e=>this.repeatPrecedingCharacter(e)),this._parser.registerCsiHandler({final:"c"},e=>this.sendDeviceAttributesPrimary(e)),this._parser.registerCsiHandler({prefix:">",final:"c"},e=>this.sendDeviceAttributesSecondary(e)),this._parser.registerCsiHandler({final:"d"},e=>this.linePosAbsolute(e)),this._parser.registerCsiHandler({final:"e"},e=>this.vPositionRelative(e)),this._parser.registerCsiHandler({final:"f"},e=>this.hVPosition(e)),this._parser.registerCsiHandler({final:"g"},e=>this.tabClear(e)),this._parser.registerCsiHandler({final:"h"},e=>this.setMode(e)),this._parser.registerCsiHandler({prefix:"?",final:"h"},e=>this.setModePrivate(e)),this._parser.registerCsiHandler({final:"l"},e=>this.resetMode(e)),this._parser.registerCsiHandler({prefix:"?",final:"l"},e=>this.resetModePrivate(e)),this._parser.registerCsiHandler({final:"m"},e=>this.charAttributes(e)),this._parser.registerCsiHandler({final:"n"},e=>this.deviceStatus(e)),this._parser.registerCsiHandler({prefix:"?",final:"n"},e=>this.deviceStatusPrivate(e)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},e=>this.softReset(e)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},e=>this.setCursorStyle(e)),this._parser.registerCsiHandler({final:"r"},e=>this.setScrollRegion(e)),this._parser.registerCsiHandler({final:"s"},e=>this.saveCursor(e)),this._parser.registerCsiHandler({final:"t"},e=>this.windowOptions(e)),this._parser.registerCsiHandler({final:"u"},e=>this.restoreCursor(e)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},e=>this.insertColumns(e)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},e=>this.deleteColumns(e)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},e=>this.selectProtected(e)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},e=>this.requestMode(e,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},e=>this.requestMode(e,!1)),this._parser.setExecuteHandler(f.C0.BEL,()=>this.bell()),this._parser.setExecuteHandler(f.C0.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(f.C0.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(f.C0.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(f.C0.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(f.C0.BS,()=>this.backspace()),this._parser.setExecuteHandler(f.C0.HT,()=>this.tab()),this._parser.setExecuteHandler(f.C0.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(f.C0.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(f.C1.IND,()=>this.index()),this._parser.setExecuteHandler(f.C1.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(f.C1.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new S.OscHandler(e=>(this.setTitle(e),this.setIconName(e),!0))),this._parser.registerOscHandler(1,new S.OscHandler(e=>this.setIconName(e))),this._parser.registerOscHandler(2,new S.OscHandler(e=>this.setTitle(e))),this._parser.registerOscHandler(4,new S.OscHandler(e=>this.setOrReportIndexedColor(e))),this._parser.registerOscHandler(8,new S.OscHandler(e=>this.setHyperlink(e))),this._parser.registerOscHandler(10,new S.OscHandler(e=>this.setOrReportFgColor(e))),this._parser.registerOscHandler(11,new S.OscHandler(e=>this.setOrReportBgColor(e))),this._parser.registerOscHandler(12,new S.OscHandler(e=>this.setOrReportCursorColor(e))),this._parser.registerOscHandler(104,new S.OscHandler(e=>this.restoreIndexedColor(e))),this._parser.registerOscHandler(110,new S.OscHandler(e=>this.restoreFgColor(e))),this._parser.registerOscHandler(111,new S.OscHandler(e=>this.restoreBgColor(e))),this._parser.registerOscHandler(112,new S.OscHandler(e=>this.restoreCursorColor(e))),this._parser.registerEscHandler({final:"7"},()=>this.saveCursor()),this._parser.registerEscHandler({final:"8"},()=>this.restoreCursor()),this._parser.registerEscHandler({final:"D"},()=>this.index()),this._parser.registerEscHandler({final:"E"},()=>this.nextLine()),this._parser.registerEscHandler({final:"H"},()=>this.tabSet()),this._parser.registerEscHandler({final:"M"},()=>this.reverseIndex()),this._parser.registerEscHandler({final:"="},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:">"},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:"c"},()=>this.fullReset()),this._parser.registerEscHandler({final:"n"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"o"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"|"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"}"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"~"},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:"%",final:"@"},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:"%",final:"G"},()=>this.selectDefaultCharset());for(const e in c.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:e},()=>this.selectCharset("("+e)),this._parser.registerEscHandler({intermediates:")",final:e},()=>this.selectCharset(")"+e)),this._parser.registerEscHandler({intermediates:"*",final:e},()=>this.selectCharset("*"+e)),this._parser.registerEscHandler({intermediates:"+",final:e},()=>this.selectCharset("+"+e)),this._parser.registerEscHandler({intermediates:"-",final:e},()=>this.selectCharset("-"+e)),this._parser.registerEscHandler({intermediates:".",final:e},()=>this.selectCharset("."+e)),this._parser.registerEscHandler({intermediates:"/",final:e},()=>this.selectCharset("/"+e));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(e=>(this._logService.error("Parsing error: ",e),e)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new m.DcsHandler((e,t)=>this.requestStatusString(e,t)))}getAttrData(){return this._curAttrData}get onRequestBell(){return this._onRequestBell.event}get onRequestRefreshRows(){return this._onRequestRefreshRows.event}get onRequestReset(){return this._onRequestReset.event}get onRequestSendFocus(){return this._onRequestSendFocus.event}get onRequestSyncScrollBar(){return this._onRequestSyncScrollBar.event}get onRequestWindowsOptionsReport(){return this._onRequestWindowsOptionsReport.event}get onA11yChar(){return this._onA11yChar.event}get onA11yTab(){return this._onA11yTab.event}get onCursorMove(){return this._onCursorMove.event}get onLineFeed(){return this._onLineFeed.event}get onScroll(){return this._onScroll.event}get onTitleChange(){return this._onTitleChange.event}get onColor(){return this._onColor.event}dispose(){super.dispose()}_preserveStack(e,t,i,s){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=i,this._parseStack.position=s}_logSlowResolvingAsync(e){this._logService.logLevel<=a.LogLevelEnum.WARN&&Promise.race([e,new Promise((e,t)=>setTimeout(()=>t("#SLOW_TIMEOUT"),5e3))]).catch(e=>{if("#SLOW_TIMEOUT"!==e)throw e;console.warn("async parser handler taking longer than 5000 ms")})}parse(t,e){let i,s=this._activeBuffer.x,r=this._activeBuffer.y,n=0;const o=this._parseStack.paused;if(o){if(i=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,e))return this._logSlowResolvingAsync(i),i;s=this._parseStack.cursorStartX,r=this._parseStack.cursorStartY,this._parseStack.paused=!1,t.length>h&&(n=this._parseStack.position+h)}if(this._logService.logLevel<=a.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof t?` "${t}"`:` "${Array.prototype.map.call(t,e=>String.fromCharCode(e)).join("")}"`),"string"==typeof t?t.split("").map(e=>e.charCodeAt(0)):t),this._parseBuffer.length<t.length&&this._parseBuffer.length<h&&(this._parseBuffer=new Uint32Array(Math.min(t.length,h))),o||this._dirtyRowService.clearRange(),t.length>h)for(let e=n;e<t.length;e+=h){const n=e+h<t.length?e+h:t.length,o="string"==typeof t?this._stringDecoder.decode(t.substring(e,n),this._parseBuffer):this._utf8Decoder.decode(t.subarray(e,n),this._parseBuffer);if(i=this._parser.parse(this._parseBuffer,o))return this._preserveStack(s,r,o,e),this._logSlowResolvingAsync(i),i}else if(!o){const e=("string"==typeof t?this._stringDecoder:this._utf8Decoder).decode(t,this._parseBuffer);if(i=this._parser.parse(this._parseBuffer,e))return this._preserveStack(s,r,e,0),this._logSlowResolvingAsync(i),i}this._activeBuffer.x===s&&this._activeBuffer.y===r||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)}print(t,i,s){let r,n;var o=this._charsetService.charset,a=this._optionsService.rawOptions.screenReaderMode,h=this._bufferService.cols,l=this._coreService.decPrivateModes.wraparound,c=this._coreService.modes.insertMode,_=this._curAttrData;let d=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowService.markDirty(this._activeBuffer.y),this._activeBuffer.x&&0<s-i&&2===d.getWidth(this._activeBuffer.x-1)&&d.setCellFromCodePoint(this._activeBuffer.x-1,0,1,_.fg,_.bg,_.extended);for(let e=i;e<s;++e){if(r=t[e],n=this._unicodeService.wcwidth(r),r<127&&o){const t=o[String.fromCharCode(r)];t&&(r=t.charCodeAt(0))}if(a&&this._onA11yChar.fire((0,u.stringFromCodePoint)(r)),void 0!==this._currentLinkId&&this._oscLinkService.addLineToLink(this._currentLinkId,this._activeBuffer.ybase+this._activeBuffer.y),n||!this._activeBuffer.x){if(this._activeBuffer.x+n-1>=h)if(l){for(;this._activeBuffer.x<h;)d.setCellFromCodePoint(this._activeBuffer.x++,0,1,_.fg,_.bg,_.extended);this._activeBuffer.x=0,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),d=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=h-1,2===n)continue;if(c&&(d.insertCells(this._activeBuffer.x,n,this._activeBuffer.getNullCell(_),_),2===d.getWidth(h-1)&&d.setCellFromCodePoint(h-1,g.NULL_CELL_CODE,g.NULL_CELL_WIDTH,_.fg,_.bg,_.extended)),d.setCellFromCodePoint(this._activeBuffer.x++,r,n,_.fg,_.bg,_.extended),0<n)for(;--n;)d.setCellFromCodePoint(this._activeBuffer.x++,0,0,_.fg,_.bg,_.extended)}else d.getWidth(this._activeBuffer.x-1)?d.addCodepointToCell(this._activeBuffer.x-1,r):d.addCodepointToCell(this._activeBuffer.x-2,r)}0<s-i&&(d.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||65535<this._workCell.getCode()?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x<h&&0<s-i&&0===d.getWidth(this._activeBuffer.x)&&!d.hasContent(this._activeBuffer.x)&&d.setCellFromCodePoint(this._activeBuffer.x,0,1,_.fg,_.bg,_.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)}registerCsiHandler(e,t){return"t"!==e.final||e.prefix||e.intermediates?this._parser.registerCsiHandler(e,t):this._parser.registerCsiHandler(e,e=>!l(e.params[0],this._optionsService.rawOptions.windowOptions)||t(e))}registerDcsHandler(e,t){return this._parser.registerDcsHandler(e,new m.DcsHandler(t))}registerEscHandler(e,t){return this._parser.registerEscHandler(e,t)}registerOscHandler(e,t){return this._parser.registerOscHandler(e,new S.OscHandler(t))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowService.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowService.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return!(this._activeBuffer.x=0)}backspace(){var e;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),0<this._activeBuffer.x&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),0<this._activeBuffer.x)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&null!=(e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))&&e.isWrapped){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);e.hasWidth(this._activeBuffer.x)&&!e.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(e=this._bufferService.cols-1){this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowService.markDirty(this._activeBuffer.y)}_setCursor(e,t){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)}_moveCursor(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)}cursorUp(e){var t=this._activeBuffer.y-this._activeBuffer.scrollTop;return 0<=t?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0}cursorDown(e){var t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return 0<=t?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0}cursorForward(e){return this._moveCursor(e.params[0]||1,0),!0}cursorBackward(e){return this._moveCursor(-(e.params[0]||1),0),!0}cursorNextLine(e){return this.cursorDown(e),!(this._activeBuffer.x=0)}cursorPrecedingLine(e){return this.cursorUp(e),!(this._activeBuffer.x=0)}cursorCharAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(e){return this._setCursor(2<=e.length?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0}charPosAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(e){return this._moveCursor(e.params[0]||1,0),!0}linePosAbsolute(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0}vPositionRelative(e){return this._moveCursor(0,e.params[0]||1),!0}hVPosition(e){return this.cursorPosition(e),!0}tabClear(e){e=e.params[0];return 0===e?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===e&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(t){if(!(this._activeBuffer.x>=this._bufferService.cols)){let e=t.params[0]||1;for(;e--;)this._activeBuffer.x=this._activeBuffer.nextStop()}return!0}cursorBackwardTab(t){if(!(this._activeBuffer.x>=this._bufferService.cols)){let e=t.params[0]||1;for(;e--;)this._activeBuffer.x=this._activeBuffer.prevStop()}return!0}selectProtected(e){e=e.params[0];return 1===e&&(this._curAttrData.bg|=536870912),2!==e&&0!==e||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(e,t,i,s=!1,r=!1){const n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n.replaceCells(t,i,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),r),s&&(n.isWrapped=!1)}_resetBufferLine(e,t=!1){const i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),i.isWrapped=!1}eraseInDisplay(e,t=!1){let i;switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:for(i=this._activeBuffer.y,this._dirtyRowService.markDirty(i),this._eraseInBufferLine(i++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,t);i<this._bufferService.rows;i++)this._resetBufferLine(i,t);this._dirtyRowService.markDirty(i);break;case 1:for(i=this._activeBuffer.y,this._dirtyRowService.markDirty(i),this._eraseInBufferLine(i,0,this._activeBuffer.x+1,!0,t),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(i+1).isWrapped=!1);i--;)this._resetBufferLine(i,t);this._dirtyRowService.markDirty(0);break;case 2:for(i=this._bufferService.rows,this._dirtyRowService.markDirty(i-1);i--;)this._resetBufferLine(i,t);this._dirtyRowService.markDirty(0);break;case 3:const e=this._activeBuffer.lines.length-this._bufferService.rows;0<e&&(this._activeBuffer.lines.trimStart(e),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-e,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-e,0),this._onScroll.fire(0))}return!0}eraseInLine(e,t=!1){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,t);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,t);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,t)}return this._dirtyRowService.markDirty(this._activeBuffer.y),!0}insertLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var i=this._activeBuffer.ybase+this._activeBuffer.y,e=this._bufferService.rows-1-this._activeBuffer.scrollBottom,s=this._bufferService.rows-1+this._activeBuffer.ybase-e+1;t--;)this._activeBuffer.lines.splice(s-1,1),this._activeBuffer.lines.splice(i,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),!(this._activeBuffer.x=0)}deleteLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;var i=this._activeBuffer.ybase+this._activeBuffer.y,s=this._bufferService.rows-1-this._activeBuffer.scrollBottom;for(s=this._bufferService.rows-1+this._activeBuffer.ybase-s;t--;)this._activeBuffer.lines.splice(i,1),this._activeBuffer.lines.splice(s,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),!(this._activeBuffer.x=0)}insertChars(e){this._restrictCursor();const t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.insertCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0}deleteChars(e){this._restrictCursor();const t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.deleteCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0}scrollUp(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollDown(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(d.DEFAULT_ATTR_DATA));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollLeft(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;var t=e.params[0]||1;for(let e=this._activeBuffer.scrollTop;e<=this._activeBuffer.scrollBottom;++e){const i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i.deleteCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollRight(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;var t=e.params[0]||1;for(let e=this._activeBuffer.scrollTop;e<=this._activeBuffer.scrollBottom;++e){const i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i.insertCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}insertColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;var t=e.params[0]||1;for(let e=this._activeBuffer.scrollTop;e<=this._activeBuffer.scrollBottom;++e){const i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i.insertCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}deleteColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;var t=e.params[0]||1;for(let e=this._activeBuffer.scrollTop;e<=this._activeBuffer.scrollBottom;++e){const i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i.deleteCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(e){this._restrictCursor();const t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(e.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0}repeatPrecedingCharacter(e){if(!this._parser.precedingCodepoint)return!0;const t=e.params[0]||1,i=new Uint32Array(t);for(let e=0;e<t;++e)i[e]=this._parser.precedingCodepoint;return this.print(i,0,i.length),!0}sendDeviceAttributesPrimary(e){return 0<e.params[0]||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(f.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(f.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(e){return 0<e.params[0]||(this._is("xterm")?this._coreService.triggerDataEvent(f.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(f.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(f.C0.ESC+"[>83;40003;0c")),!0}_is(e){return 0===(this._optionsService.rawOptions.termName+"").indexOf(e)}setMode(t){for(let e=0;e<t.length;e++)switch(t.params[e]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0}return!0}setModePrivate(t){for(let e=0;e<t.length;e++)switch(t.params[e]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,c.DEFAULT_CHARSET),this._charsetService.setgCharset(1,c.DEFAULT_CHARSET),this._charsetService.setgCharset(2,c.DEFAULT_CHARSET),this._charsetService.setgCharset(3,c.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="SGR_PIXELS";break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0}resetMode(t){for(let e=0;e<t.length;e++)switch(t.params[e]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1}return!0}resetModePrivate(t){for(let e=0;e<t.length;e++)switch(t.params[e]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:case 1016:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),1049===t.params[e]&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0}requestMode(e,t){const i=this._coreService.decPrivateModes,{activeProtocol:s,activeEncoding:r}=this._coreMouseService,n=this._coreService,{buffers:o,cols:a}=this._bufferService,{active:h,alt:l}=o,c=this._optionsService.rawOptions,_=e=>e?1:2,d=e.params[0];return e=d,u=t?2===d?3:4===d?_(n.modes.insertMode):12===d?4:20===d?_(c.convertEol):0:1===d?_(i.applicationCursorKeys):3===d?c.windowOptions.setWinLines?80===a?2:132===a?1:0:0:6===d?_(i.origin):7===d?_(i.wraparound):8===d?3:9===d?"X10"===s?1:2:12===d?_(c.cursorBlink):25===d?_(!n.isCursorHidden):45===d?_(i.reverseWraparound):66===d?_(i.applicationKeypad):1e3===d?"VT200"===s?1:2:1002===d?"DRAG"===s?1:2:1003===d?"ANY"===s?1:2:1004===d?_(i.sendFocus):1005===d?4:1006===d?"SGR"===r?1:2:1015===d?4:1016===d?"SGR_PIXELS"===r?1:2:1048===d?1:47===d||1047===d||1049===d?h===l?1:2:2004===d?_(i.bracketedPasteMode):0,n.triggerDataEvent(f.C0.ESC+`[${t?"":"?"}${e};${u}$y`),!0;var u}_updateAttrColor(e,t,i,s,r){return 2===t?e=(e=(e|50331648)&-16777216)|n.AttributeData.fromColorRGB([i,s,r]):5===t&&(e=e&-50331904|(33554432|255&i)),e}_extractColor(t,i,s){const r=[0,0,-1,0,0,0];let n=0,o=0;do{if(r[o+n]=t.params[i+o],t.hasSubParams(i+o)){const s=t.getSubParams(i+o);let e=0;for(;5===r[1]&&(n=1),r[o+e+1+n]=s[e],++e<s.length&&e+o+1+n<r.length;);break}}while(!(5===r[1]&&2<=o+n||2===r[1]&&5<=o+n)&&(r[1]&&(n=1),++o+i<t.length&&o+n<r.length));for(let e=2;e<r.length;++e)-1===r[e]&&(r[e]=0);switch(r[0]){case 38:s.fg=this._updateAttrColor(s.fg,r[1],r[3],r[4],r[5]);break;case 48:s.bg=this._updateAttrColor(s.bg,r[1],r[3],r[4],r[5]);break;case 58:s.extended=s.extended.clone(),s.extended.underlineColor=this._updateAttrColor(s.extended.underlineColor,r[1],r[3],r[4],r[5])}return o}_processUnderline(e,t){t.extended=t.extended.clone(),t.extended.underlineStyle=e=!~e||5<e?1:e,t.fg|=268435456,0===e&&(t.fg&=-268435457),t.updateExtended()}charAttributes(t){if(1===t.length&&0===t.params[0])return this._curAttrData.fg=d.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=d.DEFAULT_ATTR_DATA.bg,!0;var i,s=t.length;const r=this._curAttrData;for(let e=0;e<s;e++)30<=(i=t.params[e])&&i<=37?(r.fg&=-50331904,r.fg|=16777216|i-30):40<=i&&i<=47?(r.bg&=-50331904,r.bg|=16777216|i-40):90<=i&&i<=97?(r.fg&=-50331904,r.fg|=16777224|i-90):100<=i&&i<=107?(r.bg&=-50331904,r.bg|=16777224|i-100):0===i?(r.fg=d.DEFAULT_ATTR_DATA.fg,r.bg=d.DEFAULT_ATTR_DATA.bg):1===i?r.fg|=134217728:3===i?r.bg|=67108864:4===i?(r.fg|=268435456,this._processUnderline(t.hasSubParams(e)?t.getSubParams(e)[0]:1,r)):5===i?r.fg|=536870912:7===i?r.fg|=67108864:8===i?r.fg|=1073741824:9===i?r.fg|=2147483648:2===i?r.bg|=134217728:21===i?this._processUnderline(2,r):22===i?(r.fg&=-134217729,r.bg&=-134217729):23===i?r.bg&=-67108865:24===i?(r.fg&=-268435457,this._processUnderline(0,r)):25===i?r.fg&=-536870913:27===i?r.fg&=-67108865:28===i?r.fg&=-1073741825:29===i?r.fg&=2147483647:39===i?(r.fg&=-67108864,r.fg|=16777215&d.DEFAULT_ATTR_DATA.fg):49===i?(r.bg&=-67108864,r.bg|=16777215&d.DEFAULT_ATTR_DATA.bg):38===i||48===i||58===i?e+=this._extractColor(t,e,r):59===i?(r.extended=r.extended.clone(),r.extended.underlineColor=-1,r.updateExtended()):100===i?(r.fg&=-67108864,r.fg|=16777215&d.DEFAULT_ATTR_DATA.fg,r.bg&=-67108864,r.bg|=16777215&d.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",i);return!0}deviceStatus(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(f.C0.ESC+"[0n");break;case 6:const e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${f.C0.ESC}[${e};${t}R`)}return!0}deviceStatusPrivate(e){if(6===e.params[0]){const e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${f.C0.ESC}[?${e};${t}R`)}return!0}softReset(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=d.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!(this._coreService.decPrivateModes.origin=!1)}setCursorStyle(e){e=e.params[0]||1;switch(e){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}return this._optionsService.options.cursorBlink=e%2==1,!0}setScrollRegion(e){var t=e.params[0]||1;let i;return(i=e.length<2||(i=e.params[1])>this._bufferService.rows||0===i?this._bufferService.rows:i)>t&&(this._activeBuffer.scrollTop=t-1,this._activeBuffer.scrollBottom=i-1,this._setCursor(0,0)),!0}windowOptions(e){if(l(e.params[0],this._optionsService.rawOptions.windowOptions)){var t=1<e.length?e.params[1]:0;switch(e.params[0]){case 14:2!==t&&this._onRequestWindowsOptionsReport.fire(C.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(C.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${f.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:0!==t&&2!==t||(this._windowTitleStack.push(this._windowTitle),10<this._windowTitleStack.length&&this._windowTitleStack.shift()),0!==t&&1!==t||(this._iconNameStack.push(this._iconName),10<this._iconNameStack.length&&this._iconNameStack.shift());break;case 23:0!==t&&2!==t||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==t&&1!==t||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}return!0}saveCursor(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0}setIconName(e){return this._iconName=e,!0}setOrReportIndexedColor(e){const t=[],i=e.split(";");for(;1<i.length;){const e=i.shift(),s=i.shift();if(/^\d+$/.exec(e)){const i=parseInt(e);if(0<=i&&i<256)if("?"===s)t.push({type:0,index:i});else{const e=(0,r.parseColor)(s);e&&t.push({type:1,index:i,color:e})}}}return t.length&&this._onColor.fire(t),!0}setHyperlink(e){e=e.split(";");return!(e.length<2)&&(e[1]?this._createHyperlink(e[0],e[1]):!e[0]&&this._finishHyperlink())}_createHyperlink(e,t){void 0!==this._currentLinkId&&this._finishHyperlink();const i=e.split(":");let s;e=i.findIndex(e=>e.startsWith("id="));return-1!==e&&(s=i[e].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._currentLinkId=this._oscLinkService.registerLink({id:s,uri:t}),this._curAttrData.extended.urlId=this._currentLinkId,this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!(this._currentLinkId=void 0)}_setOrReportSpecialColor(e,t){var i,s=e.split(";");for(let e=0;e<s.length&&!(t>=this._specialColors.length);++e,++t)"?"===s[e]?this._onColor.fire([{type:0,index:this._specialColors[t]}]):(i=(0,r.parseColor)(s[e]))&&this._onColor.fire([{type:1,index:this._specialColors[t],color:i}]);return!0}setOrReportFgColor(e){return this._setOrReportSpecialColor(e,0)}setOrReportBgColor(e){return this._setOrReportSpecialColor(e,1)}setOrReportCursorColor(e){return this._setOrReportSpecialColor(e,2)}restoreIndexedColor(e){if(!e)return this._onColor.fire([{type:2}]),!0;const t=[],i=e.split(";");for(let e=0;e<i.length;++e){var s;!/^\d+$/.exec(i[e])||0<=(s=parseInt(i[e]))&&s<256&&t.push({type:2,index:s})}return t.length&&this._onColor.fire(t),!0}restoreFgColor(e){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(e){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(e){return this._onColor.fire([{type:2,index:258}]),!0}nextLine(){return this._activeBuffer.x=0,this.index(),!0}keypadApplicationMode(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}keypadNumericMode(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}selectDefaultCharset(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,c.DEFAULT_CHARSET),!0}selectCharset(e){return 2!==e.length?this.selectDefaultCharset():"/"!==e[0]&&this._charsetService.setgCharset(o[e[0]],c.CHARSETS[e[1]]||c.DEFAULT_CHARSET),!0}index(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0}reverseIndex(){var e;return this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop?(e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop,this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)):(this._activeBuffer.y--,this._restrictCursor()),!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=d.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=d.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(e){return this._charsetService.setgLevel(e),!0}screenAlignmentPattern(){const t=new p.CellData;t.content=1<<22|"E".charCodeAt(0),t.fg=this._curAttrData.fg,t.bg=this._curAttrData.bg,this._setCursor(0,0);for(let e=0;e<this._bufferService.rows;++e){const i=this._activeBuffer.ybase+this._activeBuffer.y+e,s=this._activeBuffer.lines.get(i);s&&(s.fill(t),s.isWrapped=!1)}return this._dirtyRowService.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(e,t){var i=this._bufferService.buffer,s=this._optionsService.rawOptions;return i='"q'===e?`P1$r${this._curAttrData.isProtected()?1:0}"q`:'"p'===e?'P1$r61;1"p':"r"===e?`P1$r${i.scrollTop+1};${i.scrollBottom+1}r`:"m"===e?"P1$r0m":" q"===e?`P1$r${{block:2,underline:4,bar:6}[s.cursorStyle]-(s.cursorBlink?1:0)} q`:"P0$r",this._coreService.triggerDataEvent(f.C0.ESC+i+f.C0.ESC+"\\"),!0}}t.InputHandler=b},844:(e,t)=>{function i(e){for(const t of e)t.dispose();e.length=0}Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.toDisposable=t.Disposable=void 0,t.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const e of this._disposables)e.dispose();this._disposables.length=0}register(e){return this._disposables.push(e),e}unregister(e){e=this._disposables.indexOf(e);-1!==e&&this._disposables.splice(e,1)}},t.toDisposable=function(e){return{dispose:e}},t.disposeArray=i,t.getDisposeArrayDisposable=function(e){return{dispose:()=>i(e)}}},1505:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FourKeyMap=t.TwoKeyMap=void 0;class n{constructor(){this._data={}}set(e,t,i){this._data[e]||(this._data[e]={}),this._data[e][t]=i}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}}t.TwoKeyMap=n,t.FourKeyMap=class{constructor(){this._data=new n}set(e,t,i,s,r){this._data.get(e,t)||this._data.set(e,t,new n),this._data.get(e,t).set(i,s,r)}get(e,t,i,s){return null==(e=this._data.get(e,t))?void 0:e.get(i,s)}clear(){this._data.clear()}}},6114:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.isSafari=t.isLegacyEdge=t.isFirefox=void 0;const i="undefined"==typeof navigator,s=i?"node":navigator.userAgent,r=i?"node":navigator.platform;t.isFirefox=s.includes("Firefox"),t.isLegacyEdge=s.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(s),t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(r),t.isIpad="iPad"===r,t.isIphone="iPhone"===r,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(r),t.isLinux=0<=r.indexOf("Linux")},6106:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SortedList=void 0;let i=0;t.SortedList=class{constructor(e){this._getKey=e,this._array=[]}clear(){this._array.length=0}insert(e){0!==this._array.length?(i=this._search(this._getKey(e),0,this._array.length-1),this._array.splice(i,0,e)):this._array.push(e)}delete(e){if(0!==this._array.length){var t=this._getKey(e);if(void 0!==t&&-1!==(i=this._search(t,0,this._array.length-1))&&this._getKey(this._array[i])===t)do{if(this._array[i]===e)return this._array.splice(i,1),!0}while(++i<this._array.length&&this._getKey(this._array[i])===t)}return!1}*getKeyIterator(e){if(0!==this._array.length&&(!((i=this._search(e,0,this._array.length-1))<0||i>=this._array.length)&&this._getKey(this._array[i])===e))for(;yield this._array[i],++i<this._array.length&&this._getKey(this._array[i])===e;);}forEachByKey(e,t){if(0!==this._array.length&&(!((i=this._search(e,0,this._array.length-1))<0||i>=this._array.length)&&this._getKey(this._array[i])===e))for(;t(this._array[i]),++i<this._array.length&&this._getKey(this._array[i])===e;);}values(){return this._array.values()}_search(e,t,i){if(i<t)return t;let s=Math.floor((t+i)/2);var r=this._getKey(this._array[s]);if(e<r)return this._search(e,t,s-1);if(r<e)return this._search(e,s+1,i);for(;0<s&&this._getKey(this._array[s-1])===e;)s--;return s}}},8273:(e,t)=>{function r(t,i,s=0,r=t.length){if(!(s>=t.length)){s=(t.length+s)%t.length,r=r>=t.length?t.length:(t.length+r)%t.length;for(let e=s;e<r;++e)t[e]=i}return t}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=t.fillFallback=t.fill=void 0,t.fill=function(e,t,i,s){return e.fill?e.fill(t,i,s):r(e,t,i,s)},t.fillFallback=r,t.concat=function(e,t){const i=new e.constructor(e.length+t.length);return i.set(e),i.set(t,e.length),i}},9282:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;const r=i(643);t.updateWindowsModeWrappedState=function(e){const t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1),i=null==t?void 0:t.get(e.cols-1),s=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);s&&i&&(s.isWrapped=i[r.CHAR_DATA_CODE_INDEX]!==r.NULL_CELL_CODE&&i[r.CHAR_DATA_CODE_INDEX]!==r.WHITESPACE_CELL_CODE)}},3734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;t.AttributeData=class s{constructor(){this.fg=0,this.bg=0,this.extended=new i}static toColorRGB(e){return[e>>>16&255,e>>>8&255,255&e]}static fromColorRGB(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]}clone(){const e=new s;return e.fg=this.fg,e.bg=this.bg,e.extended=this.extended.clone(),e}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&0!==this.extended.underlineStyle?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return 50331648==(50331648&this.fg)}isBgRGB(){return 50331648==(50331648&this.bg)}isFgPalette(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)}isBgPalette(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)}isFgDefault(){return 0==(50331648&this.fg)}isBgDefault(){return 0==(50331648&this.bg)}isAttributeDefault(){return 0===this.fg&&0===this.bg}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}};class i{constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(e){this._ext&=-67108864,this._ext|=67108863&e}get urlId(){return this._urlId}set urlId(e){this._urlId=e}clone(){return new i(this._ext,this._urlId)}isEmpty(){return 0===this.underlineStyle&&0===this._urlId}}t.ExtendedAttrs=i},9092:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferStringIterator=t.Buffer=t.MAX_BUFFER_SIZE=void 0;const s=i(6349),p=i(8437),r=i(511),n=i(643),S=i(4634),o=i(4863),a=i(7116),h=i(3734);t.MAX_BUFFER_SIZE=4294967295,t.Buffer=class{constructor(e,t,i){this._hasScrollback=e,this._optionsService=t,this._bufferService=i,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=p.DEFAULT_ATTR_DATA.clone(),this.savedCharset=a.DEFAULT_CHARSET,this.markers=[],this._nullCell=r.CellData.fromCharData([0,n.NULL_CELL_CHAR,n.NULL_CELL_WIDTH,n.NULL_CELL_CODE]),this._whitespaceCell=r.CellData.fromCharData([0,n.WHITESPACE_CELL_CHAR,n.WHITESPACE_CELL_WIDTH,n.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new s.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new h.ExtendedAttrs),this._nullCell}getWhitespaceCell(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new h.ExtendedAttrs),this._whitespaceCell}getBlankLine(e,t){return new p.BufferLine(this._bufferService.cols,this.getNullCell(e),t)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){var e=this.ybase+this.y-this.ydisp;return 0<=e&&e<this._rows}_getCorrectBufferLength(e){if(!this._hasScrollback)return e;e+=this._optionsService.rawOptions.scrollback;return e>t.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:e}fillViewportRows(t){if(0===this.lines.length){void 0===t&&(t=p.DEFAULT_ATTR_DATA);let e=this._rows;for(;e--;)this.lines.push(this.getBlankLine(t))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new s.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(i,s){var r=this.getNullCell(p.DEFAULT_ATTR_DATA),e=this._getCorrectBufferLength(s);if(e>this.lines.maxLength&&(this.lines.maxLength=e),0<this.lines.length){if(this._cols<i)for(let e=0;e<this.lines.length;e++)this.lines.get(e).resize(i,r);let t=0;if(this._rows<s)for(let e=this._rows;e<s;e++)this.lines.length<s+this.ybase&&(!this._optionsService.rawOptions.windowsMode&&0<this.ybase&&this.lines.length<=this.ybase+this.y+t+1?(this.ybase--,t++,0<this.ydisp&&this.ydisp--):this.lines.push(new p.BufferLine(i,r)));else for(let e=this._rows;e>s;e--)this.lines.length>s+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(e<this.lines.maxLength){const i=this.lines.length-e;0<i&&(this.lines.trimStart(i),this.ybase=Math.max(this.ybase-i,0),this.ydisp=Math.max(this.ydisp-i,0),this.savedY=Math.max(this.savedY-i,0)),this.lines.maxLength=e}this.x=Math.min(this.x,i-1),this.y=Math.min(this.y,s-1),t&&(this.y+=t),this.savedX=Math.min(this.savedX,i-1),this.scrollTop=0}if(this.scrollBottom=s-1,this._isReflowEnabled&&(this._reflow(i,s),this._cols>i))for(let e=0;e<this.lines.length;e++)this.lines.get(e).resize(i,r);this._cols=i,this._rows=s}get _isReflowEnabled(){return this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}_reflowLarger(e,t){var i=(0,S.reflowLargerGetLinesToRemove)(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(p.DEFAULT_ATTR_DATA));0<i.length&&(i=(0,S.reflowLargerCreateNewLayout)(this.lines,i),(0,S.reflowLargerApplyNewLayout)(this.lines,i.layout),this._reflowLargerAdjustViewport(e,t,i.countRemoved))}_reflowLargerAdjustViewport(e,t,i){var s=this.getNullCell(p.DEFAULT_ATTR_DATA);let r=i;for(;0<r--;)0===this.ybase?(0<this.y&&this.y--,this.lines.length<t&&this.lines.push(new p.BufferLine(e,s))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-i,0)}_reflowSmaller(o,a){const h=this.getNullCell(p.DEFAULT_ATTR_DATA),l=[];let c=0;for(let n=this.lines.length-1;0<=n;n--){let e=this.lines.get(n);if(!(!e||!e.isWrapped&&e.getTrimmedLength()<=o)){const v=[e];for(;e.isWrapped&&0<n;)e=this.lines.get(--n),v.unshift(e);var _=this.ybase+this.y;if(!(_>=n&&_<n+v.length)){var _=v[v.length-1].getTrimmedLength(),d=(0,S.reflowSmallerGetNewLineLengths)(v,this._cols,o),u=d.length-v.length,f=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+u):Math.max(0,this.lines.length-this.lines.maxLength+u);const g=[];for(let e=0;e<u;e++){const o=this.getBlankLine(p.DEFAULT_ATTR_DATA,!0);g.push(o)}0<g.length&&(l.push({start:n+v.length+c,newLines:g}),c+=g.length),v.push(...g);let e=d.length-1,t=d[e],i=(0===t&&(e--,t=d[e]),v.length-u-1),s=_;for(;0<=i;){const o=Math.min(s,t);if(void 0===v[e])break;if(v[e].copyCellsFrom(v[i],s-o,t-o,o,!0),0===(t-=o)&&(e--,t=d[e]),0===(s-=o)){i--;const o=Math.max(i,0);s=(0,S.getWrappedLineTrimmedLength)(v,o,this._cols)}}for(let e=0;e<v.length;e++)d[e]<o&&v[e].setCell(d[e],h);let r=u-f;for(;0<r--;)0===this.ybase?this.y<a-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+c)-a&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+u,this.ybase+a-1)}}}if(0<l.length){const o=[],a=[];for(let e=0;e<this.lines.length;e++)a.push(this.lines.get(e));const h=this.lines.length;let e=h-1,i=0,s=l[i],r=(this.lines.length=Math.min(this.lines.maxLength,this.lines.length+c),0);for(let t=Math.min(this.lines.maxLength-1,h+c-1);0<=t;t--)if(s&&s.start>e+r){for(let e=s.newLines.length-1;0<=e;e--)this.lines.set(t--,s.newLines[e]);t++,o.push({index:e+1,amount:s.newLines.length}),r+=s.newLines.length,s=l[++i]}else this.lines.set(t,a[e--]);let t=0;for(let e=o.length-1;0<=e;e--)o[e].index+=t,this.lines.onInsertEmitter.fire(o[e]),t+=o[e].amount;var n=Math.max(0,h+c-this.lines.maxLength);0<n&&this.lines.onTrimEmitter.fire(n)}}stringIndexToBufferIndex(t,i,e=!1){for(;i;){const r=this.lines.get(t);if(!r)return[-1,-1];var s=e?r.getTrimmedLength():r.length;for(let e=0;e<s;++e)if(r.get(e)[n.CHAR_DATA_WIDTH_INDEX]&&(i-=r.get(e)[n.CHAR_DATA_CHAR_INDEX].length||1),i<0)return[t,e];t++}return[t,0]}translateBufferLineToString(e,t,i=0,s){const r=this.lines.get(e);return r?r.translateToString(t,i,s):""}getWrappedRangeForLine(e){let t=e,i=e;for(;0<t&&this.lines.get(t).isWrapped;)t--;for(;i+1<this.lines.length&&this.lines.get(i+1).isWrapped;)i++;return{first:t,last:i}}setupTabStops(e){for(null!=e?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.rawOptions.tabStopWidth)this.tabs[e]=!0}prevStop(e){for(null==e&&(e=this.x);!this.tabs[--e]&&0<e;);return e>=this._cols?this._cols-1:e<0?0:e}nextStop(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e}clearMarkers(t){this._isClearing=!0;for(let e=0;e<this.markers.length;e++)this.markers[e].line===t&&(this.markers[e].dispose(),this.markers.splice(e--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let e=0;e<this.markers.length;e++)this.markers[e].dispose(),this.markers.splice(e--,1);this._isClearing=!1}addMarker(e){const t=new o.Marker(e);return this.markers.push(t),t.register(this.lines.onTrim(e=>{t.line-=e,t.line<0&&t.dispose()})),t.register(this.lines.onInsert(e=>{t.line>=e.index&&(t.line+=e.amount)})),t.register(this.lines.onDelete(e=>{t.line>=e.index&&t.line<e.index+e.amount&&t.dispose(),t.line>e.index&&(t.line-=e.amount)})),t.register(t.onDispose(()=>this._removeMarker(t))),t}_removeMarker(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}iterator(e,t,i,s,r){return new l(this,e,t,i,s,r)}};class l{constructor(e,t,i=0,s=e.lines.length,r=0,n=0){this._buffer=e,this._trimRight=t,this._startIndex=i,this._endIndex=s,this._startOverscan=r,this._endOverscan=n,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}hasNext(){return this._current<this._endIndex}next(){const t=this._buffer.getWrappedRangeForLine(this._current);t.first<this._startIndex-this._startOverscan&&(t.first=this._startIndex-this._startOverscan),t.last>this._endIndex+this._endOverscan&&(t.last=this._endIndex+this._endOverscan),t.first=Math.max(t.first,0),t.last=Math.min(t.last,this._buffer.lines.length);let i="";for(let e=t.first;e<=t.last;++e)i+=this._buffer.translateBufferLineToString(e,this._trimRight);return this._current=t.last+1,{range:t,content:i}}}t.BufferStringIterator=l},8437:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;const r=i(482),n=i(643),o=i(511),a=i(3734),s=(t.DEFAULT_ATTR_DATA=Object.freeze(new a.AttributeData),{startIndex:0});t.BufferLine=class h{constructor(t,e,i=!1){this.isWrapped=i,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*t);var s=e||o.CellData.fromCharData([0,n.NULL_CELL_CHAR,n.NULL_CELL_WIDTH,n.NULL_CELL_CODE]);for(let e=0;e<t;++e)this.setCell(e,s);this.length=t}get(e){var t=this._data[3*e+0],i=2097151&t;return[this._data[3*e+1],2097152&t?this._combined[e]:i?(0,r.stringFromCodePoint)(i):"",t>>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):i]}set(e,t){this._data[3*e+1]=t[n.CHAR_DATA_ATTR_INDEX],1<t[n.CHAR_DATA_CHAR_INDEX].length?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[n.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[n.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[n.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(e){return this._data[3*e+0]>>22}hasWidth(e){return 12582912&this._data[3*e+0]}getFg(e){return this._data[3*e+1]}getBg(e){return this._data[3*e+2]}hasContent(e){return 4194303&this._data[3*e+0]}getCodePoint(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t}isCombined(e){return 2097152&this._data[3*e+0]}getString(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?(0,r.stringFromCodePoint)(2097151&t):""}isProtected(e){return 536870912&this._data[3*e+2]}loadCell(e,t){return s.startIndex=3*e,t.content=this._data[s.startIndex+0],t.fg=this._data[s.startIndex+1],t.bg=this._data[s.startIndex+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t}setCell(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg}setCellFromCodePoint(e,t,i,s,r,n){268435456&r&&(this._extendedAttrs[e]=n),this._data[3*e+0]=t|i<<22,this._data[3*e+1]=s,this._data[3*e+2]=r}addCodepointToCell(e,t){let i=this._data[3*e+0];2097152&i?this._combined[e]+=(0,r.stringFromCodePoint)(t):(i=2097151&i?(this._combined[e]=(0,r.stringFromCodePoint)(2097151&i)+(0,r.stringFromCodePoint)(t),-2097152&i|2097152):t|1<<22,this._data[3*e+0]=i)}insertCells(t,i,s,r){if((t%=this.length)&&2===this.getWidth(t-1)&&this.setCellFromCodePoint(t-1,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs),i<this.length-t){const r=new o.CellData;for(let e=this.length-t-i-1;0<=e;--e)this.setCell(t+i+e,this.loadCell(t+e,r));for(let e=0;e<i;++e)this.setCell(t+e,s)}else for(let e=t;e<this.length;++e)this.setCell(e,s);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs)}deleteCells(t,i,s,r){if(t%=this.length,i<this.length-t){const r=new o.CellData;for(let e=0;e<this.length-t-i;++e)this.setCell(t+e,this.loadCell(t+i+e,r));for(let e=this.length-i;e<this.length;++e)this.setCell(e,s)}else for(let e=t;e<this.length;++e)this.setCell(e,s);t&&2===this.getWidth(t-1)&&this.setCellFromCodePoint(t-1,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs),0!==this.getWidth(t)||this.hasContent(t)||this.setCellFromCodePoint(t,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs)}replaceCells(e,t,i,s,r=!1){if(r)for(e&&2===this.getWidth(e-1)&&!this.isProtected(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==s?void 0:s.fg)||0,(null==s?void 0:s.bg)||0,(null==s?void 0:s.extended)||new a.ExtendedAttrs),t<this.length&&2===this.getWidth(t-1)&&!this.isProtected(t)&&this.setCellFromCodePoint(t,0,1,(null==s?void 0:s.fg)||0,(null==s?void 0:s.bg)||0,(null==s?void 0:s.extended)||new a.ExtendedAttrs);e<t&&e<this.length;)this.isProtected(e)||this.setCell(e,i),e++;else for(e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==s?void 0:s.fg)||0,(null==s?void 0:s.bg)||0,(null==s?void 0:s.extended)||new a.ExtendedAttrs),t<this.length&&2===this.getWidth(t-1)&&this.setCellFromCodePoint(t,0,1,(null==s?void 0:s.fg)||0,(null==s?void 0:s.bg)||0,(null==s?void 0:s.extended)||new a.ExtendedAttrs);e<t&&e<this.length;)this.setCell(e++,i)}resize(t,i){if(t!==this.length){if(t>this.length){const e=new Uint32Array(3*t);this.length&&(3*t<this._data.length?e.set(this._data.subarray(0,3*t)):e.set(this._data)),this._data=e;for(let e=this.length;e<t;++e)this.setCell(e,i)}else if(t){const i=new Uint32Array(3*t);i.set(this._data.subarray(0,3*t)),this._data=i;var s=Object.keys(this._combined);for(let e=0;e<s.length;e++){var r=parseInt(s[e],10);t<=r&&delete this._combined[r]}}else this._data=new Uint32Array(0),this._combined={};this.length=t}}fill(t,e=!1){if(e)for(let e=0;e<this.length;++e)this.isProtected(e)||this.setCell(e,t);else{this._combined={},this._extendedAttrs={};for(let e=0;e<this.length;++e)this.setCell(e,t)}}copyFrom(e){this.length!==e.length?this._data=new Uint32Array(e._data):this._data.set(e._data),this.length=e.length,this._combined={};for(const t in e._combined)this._combined[t]=e._combined[t];this._extendedAttrs={};for(const i in e._extendedAttrs)this._extendedAttrs[i]=e._extendedAttrs[i];this.isWrapped=e.isWrapped}clone(){const e=new h(0);e._data=new Uint32Array(this._data),e.length=this.length;for(const t in this._combined)e._combined[t]=this._combined[t];for(const i in this._extendedAttrs)e._extendedAttrs[i]=this._extendedAttrs[i];return e.isWrapped=this.isWrapped,e}getTrimmedLength(){for(let e=this.length-1;0<=e;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0}copyCellsFrom(i,s,r,e,t){var n=i._data;if(t)for(let t=e-1;0<=t;t--){for(let e=0;e<3;e++)this._data[3*(r+t)+e]=n[3*(s+t)+e];268435456&n[3*(s+t)+2]&&(this._extendedAttrs[r+t]=i._extendedAttrs[s+t])}else for(let t=0;t<e;t++){for(let e=0;e<3;e++)this._data[3*(r+t)+e]=n[3*(s+t)+e];268435456&n[3*(s+t)+2]&&(this._extendedAttrs[r+t]=i._extendedAttrs[s+t])}var o=Object.keys(i._combined);for(let e=0;e<o.length;e++){const t=parseInt(o[e],10);t>=s&&(this._combined[t-s+r]=i._combined[t])}}translateToString(e=!1,t=0,i=this.length){e&&(i=Math.min(i,this.getTrimmedLength()));let s="";for(;t<i;){const e=this._data[3*t+0],i=2097151&e;s+=2097152&e?this._combined[t]:i?(0,r.stringFromCodePoint)(i):n.WHITESPACE_CELL_CHAR,t+=e>>22||1}return s}}},4841:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(e,t){if(e.start.y>e.end.y)throw new Error(`Buffer range end (${e.end.x}, ${e.end.y}) cannot be before start (${e.start.x}, ${e.start.y})`);return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}},4634:(e,t)=>{function f(e,t,i){if(t===e.length-1)return e[t].getTrimmedLength();var s=!e[t].hasContent(i-1)&&1===e[t].getWidth(i-1),e=2===e[t+1].getWidth(0);return s&&e?i-1:i}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(o,a,h,l,c){const _=[];for(let n=0;n<o.length-1;n++){let e=n,t=o.get(++e);if(t.isWrapped){const d=[o.get(n)];for(;e<o.length&&t.isWrapped;)d.push(t),t=o.get(++e);if(l>=n&&l<e)n+=d.length-1;else{let t=0,e=f(d,t,a),i=1,s=0;for(;i<d.length;){const o=f(d,i,a),l=o-s,_=h-e,u=Math.min(l,_);d[t].copyCellsFrom(d[i],s,e,u,!1),(e+=u)===h&&(t++,e=0),(s+=u)===o&&(i++,s=0),0===e&&0!==t&&2===d[t-1].getWidth(h-1)&&(d[t].copyCellsFrom(d[t-1],h-1,e++,1,!1),d[t-1].setCell(h-1,c))}d[t].replaceCells(e,h,c);let r=0;for(let e=d.length-1;0<e&&(e>t||0===d[e].getTrimmedLength());e--)r++;0<r&&(_.push(n+d.length-r),_.push(r)),n+=d.length-1}}}return _},t.reflowLargerCreateNewLayout=function(t,i){const s=[];let r=0,n=i[r],o=0;for(let e=0;e<t.length;e++)if(n===e){const s=i[++r];t.onDeleteEmitter.fire({index:e-o,amount:s}),e+=s-1,o+=s,n=i[++r]}else s.push(e);return{layout:s,countRemoved:o}},t.reflowLargerApplyNewLayout=function(t,i){const s=[];for(let e=0;e<i.length;e++)s.push(t.get(i[e]));for(let e=0;e<s.length;e++)t.set(e,s[e]);t.length=i.length},t.reflowSmallerGetNewLineLengths=function(i,s,e){const t=[],r=i.map((e,t)=>f(i,t,s)).reduce((e,t)=>e+t);let n=0,o=0,a=0;for(;a<r;){if(r-a<e){t.push(r-a);break}n+=e;var h=f(i,o,s),h=(n>h&&(n-=h,o++),2===i[o].getWidth(n-1)),h=(h&&n--,h?e-1:e);t.push(h),a+=h}return t},t.getWrappedLineTrimmedLength=f},5295:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;const s=i(9092),r=i(8460),n=i(844);class o extends n.Disposable{constructor(e,t){super(),this._optionsService=e,this._bufferService=t,this._onBufferActivate=this.register(new r.EventEmitter),this.reset()}get onBufferActivate(){return this._onBufferActivate.event}reset(){this._normal=new s.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new s.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(e,t){this._normal.resize(e,t),this._alt.resize(e,t)}setupTabStops(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)}}t.BufferSet=o},511:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;const s=i(482),r=i(643),n=i(3734);class o extends n.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new n.ExtendedAttrs,this.combinedData=""}static fromCharData(e){const t=new o;return t.setFromCharData(e),t}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,s.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(e){this.fg=e[r.CHAR_DATA_ATTR_INDEX],this.bg=0;let t=!1;var i,s;2<e[r.CHAR_DATA_CHAR_INDEX].length?t=!0:2===e[r.CHAR_DATA_CHAR_INDEX].length?55296<=(i=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0))&&i<=56319&&56320<=(s=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(1))&&s<=57343?this.content=1024*(i-55296)+s-56320+65536|e[r.CHAR_DATA_WIDTH_INDEX]<<22:t=!0:this.content=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[r.CHAR_DATA_WIDTH_INDEX]<<22,t&&(this.combinedData=e[r.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[r.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.CellData=o},643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_EXT=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=256,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.DEFAULT_EXT=0,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},4863:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;const s=i(8460),r=i(844);class n extends r.Disposable{constructor(e){super(),this.line=e,this._id=n._nextId++,this.isDisposed=!1,this._onDispose=new s.EventEmitter}get id(){return this._id}get onDispose(){return this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),super.dispose())}}(t.Marker=n)._nextId=1},7116:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(e,t)=>{var i,s;Object.defineProperty(t,"__esModule",{value:!0}),t.C1_ESCAPED=t.C1=t.C0=void 0,(s=i=t.C0||(t.C0={})).NUL="\0",s.SOH="",s.STX="",s.ETX="",s.EOT="",s.ENQ="",s.ACK="",s.BEL="",s.BS="\b",s.HT="\t",s.LF="\n",s.VT="\v",s.FF="\f",s.CR="\r",s.SO="",s.SI="",s.DLE="",s.DC1="",s.DC2="",s.DC3="",s.DC4="",s.NAK="",s.SYN="",s.ETB="",s.CAN="",s.EM="",s.SUB="",s.ESC="",s.FS="",s.GS="",s.RS="",s.US="",s.SP=" ",s.DEL="",(s=t.C1||(t.C1={})).PAD="",s.HOP="",s.BPH="",s.NBH="",s.IND="",s.NEL="
",s.SSA="",s.ESA="",s.HTS="",s.HTJ="",s.VTS="",s.PLD="",s.PLU="",s.RI="",s.SS2="",s.SS3="",s.DCS="",s.PU1="",s.PU2="",s.STS="",s.CCH="",s.MW="",s.SPA="",s.EPA="",s.SOS="",s.SGCI="",s.SCI="",s.CSI="",s.ST="",s.OSC="",s.PM="",s.APC="",(t.C1_ESCAPED||(t.C1_ESCAPED={})).ST=i.ESC+"\\"},7399:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;const o=i(2584),a={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(t,i,e,s){const r={type:0,cancel:!1,key:void 0},n=(t.shiftKey?1:0)|(t.altKey?2:0)|(t.ctrlKey?4:0)|(t.metaKey?8:0);switch(t.keyCode){case 0:"UIKeyInputUpArrow"===t.key?r.key=i?o.C0.ESC+"OA":o.C0.ESC+"[A":"UIKeyInputLeftArrow"===t.key?r.key=i?o.C0.ESC+"OD":o.C0.ESC+"[D":"UIKeyInputRightArrow"===t.key?r.key=i?o.C0.ESC+"OC":o.C0.ESC+"[C":"UIKeyInputDownArrow"===t.key&&(r.key=i?o.C0.ESC+"OB":o.C0.ESC+"[B");break;case 8:if(t.altKey){r.key=o.C0.ESC+o.C0.DEL;break}r.key=o.C0.DEL;break;case 9:if(t.shiftKey){r.key=o.C0.ESC+"[Z";break}r.key=o.C0.HT,r.cancel=!0;break;case 13:r.key=t.altKey?o.C0.ESC+o.C0.CR:o.C0.CR,r.cancel=!0;break;case 27:r.key=o.C0.ESC,t.altKey&&(r.key=o.C0.ESC+o.C0.ESC),r.cancel=!0;break;case 37:if(t.metaKey)break;n?(r.key=o.C0.ESC+"[1;"+(1+n)+"D",r.key===o.C0.ESC+"[1;3D"&&(r.key=o.C0.ESC+(e?"b":"[1;5D"))):r.key=i?o.C0.ESC+"OD":o.C0.ESC+"[D";break;case 39:if(t.metaKey)break;n?(r.key=o.C0.ESC+"[1;"+(1+n)+"C",r.key===o.C0.ESC+"[1;3C"&&(r.key=o.C0.ESC+(e?"f":"[1;5C"))):r.key=i?o.C0.ESC+"OC":o.C0.ESC+"[C";break;case 38:if(t.metaKey)break;n?(r.key=o.C0.ESC+"[1;"+(1+n)+"A",e||r.key!==o.C0.ESC+"[1;3A"||(r.key=o.C0.ESC+"[1;5A")):r.key=i?o.C0.ESC+"OA":o.C0.ESC+"[A";break;case 40:if(t.metaKey)break;n?(r.key=o.C0.ESC+"[1;"+(1+n)+"B",e||r.key!==o.C0.ESC+"[1;3B"||(r.key=o.C0.ESC+"[1;5B")):r.key=i?o.C0.ESC+"OB":o.C0.ESC+"[B";break;case 45:t.shiftKey||t.ctrlKey||(r.key=o.C0.ESC+"[2~");break;case 46:r.key=n?o.C0.ESC+"[3;"+(1+n)+"~":o.C0.ESC+"[3~";break;case 36:r.key=n?o.C0.ESC+"[1;"+(1+n)+"H":i?o.C0.ESC+"OH":o.C0.ESC+"[H";break;case 35:r.key=n?o.C0.ESC+"[1;"+(1+n)+"F":i?o.C0.ESC+"OF":o.C0.ESC+"[F";break;case 33:t.shiftKey?r.type=2:t.ctrlKey?r.key=o.C0.ESC+"[5;"+(1+n)+"~":r.key=o.C0.ESC+"[5~";break;case 34:t.shiftKey?r.type=3:t.ctrlKey?r.key=o.C0.ESC+"[6;"+(1+n)+"~":r.key=o.C0.ESC+"[6~";break;case 112:r.key=n?o.C0.ESC+"[1;"+(1+n)+"P":o.C0.ESC+"OP";break;case 113:r.key=n?o.C0.ESC+"[1;"+(1+n)+"Q":o.C0.ESC+"OQ";break;case 114:r.key=n?o.C0.ESC+"[1;"+(1+n)+"R":o.C0.ESC+"OR";break;case 115:r.key=n?o.C0.ESC+"[1;"+(1+n)+"S":o.C0.ESC+"OS";break;case 116:r.key=n?o.C0.ESC+"[15;"+(1+n)+"~":o.C0.ESC+"[15~";break;case 117:r.key=n?o.C0.ESC+"[17;"+(1+n)+"~":o.C0.ESC+"[17~";break;case 118:r.key=n?o.C0.ESC+"[18;"+(1+n)+"~":o.C0.ESC+"[18~";break;case 119:r.key=n?o.C0.ESC+"[19;"+(1+n)+"~":o.C0.ESC+"[19~";break;case 120:r.key=n?o.C0.ESC+"[20;"+(1+n)+"~":o.C0.ESC+"[20~";break;case 121:r.key=n?o.C0.ESC+"[21;"+(1+n)+"~":o.C0.ESC+"[21~";break;case 122:r.key=n?o.C0.ESC+"[23;"+(1+n)+"~":o.C0.ESC+"[23~";break;case 123:r.key=n?o.C0.ESC+"[24;"+(1+n)+"~":o.C0.ESC+"[24~";break;default:if(!t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)if(e&&!s||!t.altKey||t.metaKey)!e||t.altKey||t.ctrlKey||t.shiftKey||!t.metaKey?t.key&&!t.ctrlKey&&!t.altKey&&!t.metaKey&&48<=t.keyCode&&1===t.key.length?r.key=t.key:t.key&&t.ctrlKey&&("_"===t.key&&(r.key=o.C0.US),"@"===t.key&&(r.key=o.C0.NUL)):65===t.keyCode&&(r.type=1);else{const i=a[t.keyCode],e=null==i?void 0:i[t.shiftKey?1:0];if(e)r.key=o.C0.ESC+e;else if(65<=t.keyCode&&t.keyCode<=90){const i=t.ctrlKey?t.keyCode-64:t.keyCode+32;let e=String.fromCharCode(i);t.shiftKey&&(e=e.toUpperCase()),r.key=o.C0.ESC+e}else if("Dead"===t.key&&t.code.startsWith("Key")){let e=t.code.slice(3,4);t.shiftKey||(e=e.toLowerCase()),r.key=o.C0.ESC+e,r.cancel=!0}}else 65<=t.keyCode&&t.keyCode<=90?r.key=String.fromCharCode(t.keyCode-64):32===t.keyCode?r.key=o.C0.NUL:51<=t.keyCode&&t.keyCode<=55?r.key=String.fromCharCode(t.keyCode-51+27):56===t.keyCode?r.key=o.C0.DEL:219===t.keyCode?r.key=o.C0.ESC:220===t.keyCode?r.key=o.C0.FS:221===t.keyCode&&(r.key=o.C0.GS)}return r}},482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return 65535<e?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(i,e=0,s=i.length){let r="";for(let t=e;t<s;++t){let e=i[t];65535<e?(e-=65536,r+=String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):r+=String.fromCharCode(e)}return r},t.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(t,i){const s=t.length;if(!s)return 0;let r=0,n=0;if(this._interim){const s=t.charCodeAt(n++);56320<=s&&s<=57343?i[r++]=1024*(this._interim-55296)+s-56320+65536:(i[r++]=this._interim,i[r++]=s),this._interim=0}for(let e=n;e<s;++e){const n=t.charCodeAt(e);if(55296<=n&&n<=56319){if(++e>=s)return this._interim=n,r;var o=t.charCodeAt(e);56320<=o&&o<=57343?i[r++]=1024*(n-55296)+o-56320+65536:(i[r++]=n,i[r++]=o)}else 65279!==n&&(i[r++]=n)}return r}},t.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(r,n){var o=r.length;if(!o)return 0;let e,t,i,s,a=0,h=0,l=0;if(this.interim[0]){let e=!1,t=this.interim[0];t&=192==(224&t)?31:224==(240&t)?15:7;let i,s=0;for(;(i=63&this.interim[++s])&&s<4;)t=(t<<=6)|i;const h=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,c=h-s;for(;l<c;){if(l>=o)return 0;if(128!=(192&(i=r[l++]))){l--,e=!0;break}this.interim[s++]=i,t=(t<<=6)|63&i}e||(2==h?t<128?l--:n[a++]=t:3==h?t<2048||55296<=t&&t<=57343||65279===t||(n[a++]=t):t<65536||1114111<t||(n[a++]=t)),this.interim.fill(0)}const c=o-4;let _=l;for(;_<o;){for(;!(!(_<c)||128&(e=r[_])||128&(t=r[_+1])||128&(i=r[_+2])||128&(s=r[_+3]));)n[a++]=e,n[a++]=t,n[a++]=i,n[a++]=s,_+=4;if((e=r[_++])<128)n[a++]=e;else if(192==(224&e)){if(_>=o)return this.interim[0]=e,a;128!=(192&(t=r[_++]))?_--:(h=(31&e)<<6|63&t)<128?_--:n[a++]=h}else if(224==(240&e)){if(_>=o)return this.interim[0]=e,a;if(128!=(192&(t=r[_++])))_--;else{if(_>=o)return this.interim[0]=e,this.interim[1]=t,a;128!=(192&(i=r[_++]))?_--:(h=(15&e)<<12|(63&t)<<6|63&i)<2048||55296<=h&&h<=57343||65279===h||(n[a++]=h)}}else if(240==(248&e)){if(_>=o)return this.interim[0]=e,a;if(128!=(192&(t=r[_++])))_--;else{if(_>=o)return this.interim[0]=e,this.interim[1]=t,a;if(128!=(192&(i=r[_++])))_--;else{if(_>=o)return this.interim[0]=e,this.interim[1]=t,this.interim[2]=i,a;128!=(192&(s=r[_++]))?_--:(h=(7&e)<<18|(63&t)<<12|(63&i)<<6|63&s)<65536||1114111<h||(n[a++]=h)}}}}return a}}},225:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;const s=i(8273),r=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],n=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let o;t.UnicodeV6=class{constructor(){if(this.version="6",!o){o=new Uint8Array(65536),(0,s.fill)(o,1),(o[0]=0,s.fill)(o,0,1,32),(0,s.fill)(o,0,127,160),(0,s.fill)(o,2,4352,4448),o[9001]=2,o[9002]=2,(0,s.fill)(o,2,11904,42192),o[12351]=1,(0,s.fill)(o,2,44032,55204),(0,s.fill)(o,2,63744,64256),(0,s.fill)(o,2,65040,65050),(0,s.fill)(o,2,65072,65136),(0,s.fill)(o,2,65280,65377),(0,s.fill)(o,2,65504,65511);for(let e=0;e<r.length;++e)(0,s.fill)(o,0,r[e][0],r[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?o[e]:function(e,t){let i,s=0,r=t.length-1;if(!(e<t[0][0]||e>t[r][1]))for(;r>=s;)if(e>t[i=s+r>>1][1])s=1+i;else{if(!(e<t[i][0]))return 1;r=i-1}}(e,n)?0:131072<=e&&e<=196605||196608<=e&&e<=262141?2:1}}},5981:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;const s=i(8460),n="undefined"==typeof queueMicrotask?e=>{Promise.resolve().then(e)}:queueMicrotask;t.WriteBuffer=class{constructor(e){this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._onWriteParsed=new s.EventEmitter}get onWriteParsed(){return this._onWriteParsed.event}writeSync(e,t){if(void 0!==t&&this._syncCalls>t)this._syncCalls=0;else if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var i;for(this._isSyncWriting=!0;i=this._writeBuffer.shift();){this._action(i);const e=this._callbacks.shift();e&&e()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}}write(e,t){if(5e7<this._pendingData)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(()=>this._innerWrite())),this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)}_innerWrite(e=0,t=!0){const i=e||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const e=this._writeBuffer[this._bufferOffset],s=this._action(e,t);if(s){const e=e=>12<=Date.now()-i?setTimeout(()=>this._innerWrite(0,e)):this._innerWrite(i,e);return void s.catch(e=>(n(()=>{throw e}),Promise.resolve(!1))).then(e)}const r=this._callbacks[this._bufferOffset];if(r&&r(),this._bufferOffset++,this._pendingData-=e.length,12<=Date.now()-i)break}this._writeBuffer.length>this._bufferOffset?(50<this._bufferOffset&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}},5941:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbString=t.parseColor=void 0;const r=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,n=/^[\da-f]+$/;function o(e,t){var i=e.toString(16),s=i.length<2?"0"+i:i;switch(t){case 4:return i[0];case 8:return s;case 12:return(s+s).slice(0,3);default:return s+s}}t.parseColor=function(i){if(i){let t=i.toLowerCase();if(0===t.indexOf("rgb:")){t=t.slice(4);const i=r.exec(t);if(i){const e=i[1]?15:i[4]?255:i[7]?4095:65535;return[Math.round(parseInt(i[1]||i[4]||i[7]||i[10],16)/e*255),Math.round(parseInt(i[2]||i[5]||i[8]||i[11],16)/e*255),Math.round(parseInt(i[3]||i[6]||i[9]||i[12],16)/e*255)]}}else if(0===t.indexOf("#")&&(t=t.slice(1),n.exec(t)&&[3,6,9,12].includes(t.length))){const i=t.length/3,r=[0,0,0];for(let e=0;e<3;++e){var s=parseInt(t.slice(i*e,i*e+i),16);r[e]=1==i?s<<4:2==i?s:3==i?s>>4:s>>8}return r}}},t.toRgbString=function(e,t=16){var[e,i,s]=e;return`rgb:${o(e,t)}/${o(i,t)}/`+o(s,t)}},5770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;const r=i(482),s=i(8742),n=i(5770),o=[],a=(t.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=o,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=o}registerHandler(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);const i=this._handlers[e];return i.push(t),{dispose:()=>{var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}reset(){if(this._active.length)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;0<=e;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=o,this._ident=0}hook(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||o,this._active.length)for(let e=this._active.length-1;0<=e;e--)this._active[e].hook(t);else this._handlerFb(this._ident,"HOOK",t)}put(t,i,s){if(this._active.length)for(let e=this._active.length-1;0<=e;e--)this._active[e].put(t,i,s);else this._handlerFb(this._ident,"PUT",(0,r.utf32ToString)(t,i,s))}unhook(s,r=!0){if(this._active.length){let e=!1,t=this._active.length-1,i=!1;if(this._stack.paused&&(t=this._stack.loopPosition-1,e=r,i=this._stack.fallThrough,this._stack.paused=!1),!i&&!1===e){for(;0<=t&&!0!==(e=this._active[t].unhook(s));t--)if(e instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=t,this._stack.fallThrough=!1,e;t--}for(;0<=t;t--)if((e=this._active[t].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=t,this._stack.fallThrough=!0,e}else this._handlerFb(this._ident,"UNHOOK",s);this._active=o,this._ident=0}},new s.Params);a.addParam(0),t.DcsHandler=class{constructor(e){this._handler=e,this._data="",this._params=a,this._hitLimit=!1}hook(e){this._params=1<e.length||e.params[0]?e.clone():a,this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=(0,r.utf32ToString)(e,t,i),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data,this._params))instanceof Promise)return t.then(e=>(this._params=a,this._data="",this._hitLimit=!1,e));return this._params=a,this._data="",this._hitLimit=!1,t}}},2015:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;const s=i(844),r=i(8273),n=i(8742),o=i(6242),a=i(6351);class h{constructor(e){this.table=new Uint8Array(e)}setDefault(e,t){(0,r.fill)(this.table,e<<4|t)}add(e,t,i,s){this.table[t<<8|e]=i<<4|s}addMany(t,i,s,r){for(let e=0;e<t.length;e++)this.table[i<<8|t[e]]=s<<4|r}}t.TransitionTable=h;const c=160;t.VT500_TRANSITION_TABLE=function(){const e=new h(4095),i=Array.apply(null,Array(256)).map((e,t)=>t),t=(e,t)=>i.slice(e,t),s=t(32,127),r=t(0,24);r.push(25),r.push.apply(r,t(28,32));var n=t(0,14);let o;for(o in e.setDefault(1,0),e.addMany(s,0,2,0),n)e.addMany([24,26,153,154],o,3,0),e.addMany(t(128,144),o,3,0),e.addMany(t(144,152),o,3,0),e.add(156,o,0,0),e.add(27,o,11,1),e.add(157,o,4,8),e.addMany([152,158,159],o,0,7),e.add(155,o,11,3),e.add(144,o,11,9);return e.addMany(r,0,3,0),e.addMany(r,1,3,1),e.add(127,1,0,1),e.addMany(r,8,0,8),e.addMany(r,3,3,3),e.add(127,3,0,3),e.addMany(r,4,3,4),e.add(127,4,0,4),e.addMany(r,6,3,6),e.addMany(r,5,3,5),e.add(127,5,0,5),e.addMany(r,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(s,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(t(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(s,7,0,7),e.addMany(r,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(t(64,127),3,7,0),e.addMany(t(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(t(48,60),4,8,4),e.addMany(t(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(t(32,64),6,0,6),e.add(127,6,0,6),e.addMany(t(64,127),6,0,0),e.addMany(t(32,48),3,9,5),e.addMany(t(32,48),5,9,5),e.addMany(t(48,64),5,0,6),e.addMany(t(64,127),5,7,0),e.addMany(t(32,48),4,9,5),e.addMany(t(32,48),1,9,2),e.addMany(t(32,48),2,9,2),e.addMany(t(48,127),2,10,0),e.addMany(t(48,80),1,10,0),e.addMany(t(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(t(96,127),1,10,0),e.add(80,1,11,9),e.addMany(r,9,0,9),e.add(127,9,0,9),e.addMany(t(28,32),9,0,9),e.addMany(t(32,48),9,9,12),e.addMany(t(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(r,11,0,11),e.addMany(t(32,128),11,0,11),e.addMany(t(28,32),11,0,11),e.addMany(r,10,0,10),e.add(127,10,0,10),e.addMany(t(28,32),10,0,10),e.addMany(t(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(t(32,48),10,9,12),e.addMany(r,12,0,12),e.add(127,12,0,12),e.addMany(t(28,32),12,0,12),e.addMany(t(32,48),12,9,12),e.addMany(t(48,64),12,0,11),e.addMany(t(64,127),12,12,13),e.addMany(t(64,127),10,12,13),e.addMany(t(64,127),9,12,13),e.addMany(r,13,13,13),e.addMany(s,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(c,0,2,0),e.add(c,8,5,8),e.add(c,6,0,6),e.add(c,11,0,11),e.add(c,13,13,13),e}();class l extends s.Disposable{constructor(e=t.VT500_TRANSITION_TABLE){super(),this._transitions=e,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new n.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(e,t,i)=>{},this._executeHandlerFb=e=>{},this._csiHandlerFb=(e,t)=>{},this._escHandlerFb=e=>{},this._errorHandlerFb=e=>e,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser=new o.OscParser,this._dcsParser=new a.DcsParser,this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(t,e=[64,126]){let i=0;if(t.prefix){if(1<t.prefix.length)throw new Error("only one byte as prefix supported");if((i=t.prefix.charCodeAt(0))&&i<60||63<i)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(t.intermediates){if(2<t.intermediates.length)throw new Error("only two bytes as intermediates are supported");for(let e=0;e<t.intermediates.length;++e){const s=t.intermediates.charCodeAt(e);if(s<32||47<s)throw new Error("intermediate must be in range 0x20 .. 0x2f");i=i<<8|s}}if(1!==t.final.length)throw new Error("final must be a single byte");const s=t.final.charCodeAt(0);if(e[0]>s||s>e[1])throw new Error(`final must be in range ${e[0]} .. `+e[1]);return i=(i<<=8)|s}identToString(e){const t=[];for(;e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")}dispose(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()}setPrintHandler(e){this._printHandler=e}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(e,t){e=this._identifier(e,[48,126]);void 0===this._escHandlers[e]&&(this._escHandlers[e]=[]);const i=this._escHandlers[e];return i.push(t),{dispose:()=>{var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearEscHandler(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}setEscHandlerFallback(e){this._escHandlerFb=e}setExecuteHandler(e,t){this._executeHandlers[e.charCodeAt(0)]=t}clearExecuteHandler(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}setExecuteHandlerFallback(e){this._executeHandlerFb=e}registerCsiHandler(e,t){e=this._identifier(e);void 0===this._csiHandlers[e]&&(this._csiHandlers[e]=[]);const i=this._csiHandlers[e];return i.push(t),{dispose:()=>{var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearCsiHandler(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}setCsiHandlerFallback(e){this._csiHandlerFb=e}registerDcsHandler(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)}clearDcsHandler(e){this._dcsParser.clearHandler(this._identifier(e))}setDcsHandlerFallback(e){this._dcsParser.setHandlerFallback(e)}registerOscHandler(e,t){return this._oscParser.registerHandler(e,t)}clearOscHandler(e){this._oscParser.clearHandler(e)}setOscHandlerFallback(e){this._oscParser.setHandlerFallback(e)}setErrorHandler(e){this._errorHandler=e}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,(this.precedingCodepoint=0)!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(e,t,i,s,r){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=i,this._parseStack.transition=s,this._parseStack.chunkPos=r}parse(s,r,t){let n,o=0,a=0,h=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,h=this._parseStack.chunkPos+1;else{if(void 0===t||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const r=this._parseStack.handlers;let e=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===t&&-1<e)for(;0<=e&&!0!==(n=r[e](this._params));e--)if(n instanceof Promise)return this._parseStack.handlerPos=e,n;this._parseStack.handlers=[];break;case 4:if(!1===t&&-1<e)for(;0<=e&&!0!==(n=r[e]());e--)if(n instanceof Promise)return this._parseStack.handlerPos=e,n;this._parseStack.handlers=[];break;case 6:if(o=s[this._parseStack.chunkPos],n=this._dcsParser.unhook(24!==o&&26!==o,t))return n;27===o&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(o=s[this._parseStack.chunkPos],n=this._oscParser.end(24!==o&&26!==o,t))return n;27===o&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,h=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(let i=h;i<r;++i){switch(o=s[i],(a=this._transitions.table[this.currentState<<8|(o<160?o:c)])>>4){case 2:for(let e=i+1;;++e){if(e>=r||(o=s[e])<32||126<o&&o<c){this._printHandler(s,i,e),i=e-1;break}if(++e>=r||(o=s[e])<32||126<o&&o<c){this._printHandler(s,i,e),i=e-1;break}if(++e>=r||(o=s[e])<32||126<o&&o<c){this._printHandler(s,i,e),i=e-1;break}if(++e>=r||(o=s[e])<32||126<o&&o<c){this._printHandler(s,i,e),i=e-1;break}}break;case 3:this._executeHandlers[o]?this._executeHandlers[o]():this._executeHandlerFb(o),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:i,code:o,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:const h=this._csiHandlers[this._collect<<8|o];let e=h?h.length-1:-1;for(;0<=e&&!0!==(n=h[e](this._params));e--)if(n instanceof Promise)return this._preserveStack(3,h,e,a,i),n;e<0&&this._csiHandlerFb(this._collect<<8|o,this._params),this.precedingCodepoint=0;break;case 8:do{switch(o){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(o-48)}}while(++i<r&&47<(o=s[i])&&o<60);i--;break;case 9:this._collect<<=8,this._collect|=o;break;case 10:const l=this._escHandlers[this._collect<<8|o];let t=l?l.length-1:-1;for(;0<=t&&!0!==(n=l[t]());t--)if(n instanceof Promise)return this._preserveStack(4,l,t,a,i),n;t<0&&this._escHandlerFb(this._collect<<8|o),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|o,this._params);break;case 13:for(let e=i+1;;++e)if(e>=r||24===(o=s[e])||26===o||27===o||127<o&&o<c){this._dcsParser.put(s,i,e),i=e-1;break}break;case 14:if(n=this._dcsParser.unhook(24!==o&&26!==o))return this._preserveStack(6,[],0,a,i),n;27===o&&(a|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(let e=i+1;;e++)if(e>=r||(o=s[e])<32||127<o&&o<c){this._oscParser.put(s,i,e),i=e-1;break}break;case 6:if(n=this._oscParser.end(24!==o&&26!==o))return this._preserveStack(5,[],0,a,i),n;27===o&&(a|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&a}}}t.EscapeSequenceParser=l},6242:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;const s=i(5770),r=i(482),n=[];t.OscParser=class{constructor(){this._state=0,this._active=n,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);const i=this._handlers[e];return i.push(t),{dispose:()=>{var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=n}reset(){if(2===this._state)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;0<=e;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=n,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||n,this._active.length)for(let e=this._active.length-1;0<=e;e--)this._active[e].start();else this._handlerFb(this._id,"START")}_put(t,i,s){if(this._active.length)for(let e=this._active.length-1;0<=e;e--)this._active[e].put(t,i,s);else this._handlerFb(this._id,"PUT",(0,r.utf32ToString)(t,i,s))}start(){this.reset(),this._state=1}put(e,t,i){if(3!==this._state){if(1===this._state)for(;t<i;){const i=e[t++];if(59===i){this._state=2,this._start();break}if(i<48||57<i)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+i-48}2===this._state&&0<i-t&&this._put(e,t,i)}}end(s,r=!0){if(0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){let e=!1,t=this._active.length-1,i=!1;if(this._stack.paused&&(t=this._stack.loopPosition-1,e=r,i=this._stack.fallThrough,this._stack.paused=!1),!i&&!1===e){for(;0<=t&&!0!==(e=this._active[t].end(s));t--)if(e instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=t,this._stack.fallThrough=!1,e;t--}for(;0<=t;t--)if((e=this._active[t].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=t,this._stack.fallThrough=!0,e}else this._handlerFb(this._id,"END",s);this._active=n,this._id=-1,this._state=0}}},t.OscHandler=class{constructor(e){this._handler=e,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=(0,r.utf32ToString)(e,t,i),this._data.length>s.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data))instanceof Promise)return t.then(e=>(this._data="",this._hitLimit=!1,e));return this._data="",this._hitLimit=!1,t}}},8742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;const r=2147483647;class s{constructor(e=32,t=32){if(this.maxLength=e,256<(this.maxSubParamsLength=t))throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}static fromArray(t){const i=new s;if(t.length)for(let e=Array.isArray(t[0])?1:0;e<t.length;++e){const s=t[e];if(Array.isArray(s))for(let e=0;e<s.length;++e)i.addSubParam(s[e]);else i.addParam(s)}return i}clone(){const e=new s(this.maxLength,this.maxSubParamsLength);return e.params.set(this.params),e.length=this.length,e._subParams.set(this._subParams),e._subParamsLength=this._subParamsLength,e._subParamsIdx.set(this._subParamsIdx),e._rejectDigits=this._rejectDigits,e._rejectSubDigits=this._rejectSubDigits,e._digitIsSub=this._digitIsSub,e}toArray(){const t=[];for(let e=0;e<this.length;++e){t.push(this.params[e]);var i=this._subParamsIdx[e]>>8,s=255&this._subParamsIdx[e];0<s-i&&t.push(Array.prototype.slice.call(this._subParams,i,s))}return t}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>r?r:e}}addSubParam(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>r?r:e,this._subParamsIdx[this.length-1]++}}hasSubParams(e){return 0<(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)}getSubParams(e){var t=this._subParamsIdx[e]>>8,e=255&this._subParamsIdx[e];return 0<e-t?this._subParams.subarray(t,e):null}getSubParamsAll(){const t={};for(let e=0;e<this.length;++e){var i=this._subParamsIdx[e]>>8,s=255&this._subParamsIdx[e];0<s-i&&(t[e]=this._subParams.slice(i,s))}return t}addDigit(e){let t;if(!(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){const i=this._digitIsSub?this._subParams:this.params,s=i[t-1];i[t-1]=~s?Math.min(10*s+e,r):e}}}t.Params=s},5741:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0,t.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let e=this._addons.length-1;0<=e;e--)this._addons[e].instance.dispose()}loadAddon(e,t){const i={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(i),t.dispose=()=>this._wrappedAddonDispose(i),t.activate(e)}_wrappedAddonDispose(i){if(!i.isDisposed){let t=-1;for(let e=0;e<this._addons.length;e++)if(this._addons[e]===i){t=e;break}if(-1===t)throw new Error("Could not dispose an addon that has not been loaded");i.isDisposed=!0,i.dispose.apply(i.instance),this._addons.splice(t,1)}}}},8771:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferApiView=void 0;const s=i(3785),r=i(511);t.BufferApiView=class{constructor(e,t){this._buffer=e,this.type=t}init(e){return this._buffer=e,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(e){e=this._buffer.lines.get(e);if(e)return new s.BufferLineApiView(e)}getNullCell(){return new r.CellData}}},3785:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLineApiView=void 0;const s=i(511);t.BufferLineApiView=class{constructor(e){this._line=e}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new s.CellData)}translateToString(e,t,i){return this._line.translateToString(e,t,i)}}},8285:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferNamespaceApi=void 0;const s=i(8771),r=i(8460);t.BufferNamespaceApi=class{constructor(e){this._core=e,this._onBufferChange=new r.EventEmitter,this._normal=new s.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new s.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get onBufferChange(){return this._onBufferChange.event}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}},7975:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParserApi=void 0,t.ParserApi=class{constructor(e){this._core=e}registerCsiHandler(e,t){return this._core.registerCsiHandler(e,e=>t(e.toArray()))}addCsiHandler(e,t){return this.registerCsiHandler(e,t)}registerDcsHandler(e,i){return this._core.registerDcsHandler(e,(e,t)=>i(e,t.toArray()))}addDcsHandler(e,t){return this.registerDcsHandler(e,t)}registerEscHandler(e,t){return this._core.registerEscHandler(e,t)}addEscHandler(e,t){return this.registerEscHandler(e,t)}registerOscHandler(e,t){return this._core.registerOscHandler(e,t)}addOscHandler(e,t){return this.registerOscHandler(e,t)}}},7090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeApi=void 0,t.UnicodeApi=class{constructor(e){this._core=e}register(e){this._core.unicodeService.register(e)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(e){this._core.unicodeService.activeVersion=e}}},744:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;const n=i(2585),o=i(5295),a=i(8460),h=i(844);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;i=class extends h.Disposable{constructor(e){super(),this.isUserScrolling=!1,this._onResize=new a.EventEmitter,this._onScroll=new a.EventEmitter,this.cols=Math.max(e.rawOptions.cols||0,t.MINIMUM_COLS),this.rows=Math.max(e.rawOptions.rows||0,t.MINIMUM_ROWS),this.buffers=new o.BufferSet(e,this)}get onResize(){return this._onResize.event}get onScroll(){return this._onScroll.event}get buffer(){return this.buffers.active}dispose(){super.dispose(),this.buffers.dispose()}resize(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:e,rows:t})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,t=!1){const i=this.buffer;let s;(s=this._cachedBlankLine)&&s.length===this.cols&&s.getFg(0)===e.fg&&s.getBg(0)===e.bg||(s=i.getBlankLine(e,t),this._cachedBlankLine=s),s.isWrapped=t;var t=i.ybase+i.scrollTop,r=i.ybase+i.scrollBottom;if(0===i.scrollTop){const e=i.lines.isFull;r===i.lines.length-1?e?i.lines.recycle().copyFrom(s):i.lines.push(s.clone()):i.lines.splice(r+1,0,s.clone()),e?this.isUserScrolling&&(i.ydisp=Math.max(i.ydisp-1,0)):(i.ybase++,this.isUserScrolling||i.ydisp++)}else{const e=r-t+1;i.lines.shiftElements(t+1,e-1,-1),i.lines.set(r,s.clone())}this.isUserScrolling||(i.ydisp=i.ybase),this._onScroll.fire(i.ydisp)}scrollLines(e,t,i){const s=this.buffer;if(e<0){if(0===s.ydisp)return;this.isUserScrolling=!0}else e+s.ydisp>=s.ybase&&(this.isUserScrolling=!1);var r=s.ydisp;s.ydisp=Math.max(Math.min(s.ydisp+e,s.ybase),0),r===s.ydisp||t||this._onScroll.fire(s.ydisp)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this.buffer.ydisp)}scrollToBottom(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)}scrollToLine(e){e-=this.buffer.ydisp;0!=e&&this.scrollLines(e)}},i=s([r(0,n.IOptionsService)],i);t.BufferService=i},7994:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0,t.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(e){this.glevel=e,this.charset=this._charsets[e]}setgCharset(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)}}},1753:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;const n=i(2585),o=i(8460),a={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:e=>4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,!(e.shift=!1))},VT200:{events:19,restrict:e=>32!==e.action},DRAG:{events:23,restrict:e=>32!==e.action||3!==e.button},ANY:{events:31,restrict:e=>!0}};function h(e,t){let i=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?i=(i|=64)|e.action:(i|=3&e.button,4&e.button&&(i|=64),8&e.button&&(i|=128),32===e.action?i|=32:0!==e.action||t||(i|=3)),i}const l=String.fromCharCode,c={DEFAULT:e=>{e=[h(e,!1)+32,e.col+32,e.row+32];return 255<e[0]||255<e[1]||255<e[2]?"":"[M"+l(e[0])+l(e[1])+l(e[2])},SGR:e=>{var t=0===e.action&&4!==e.button?"m":"M";return`[<${h(e,!0)};${e.col};`+e.row+t},SGR_PIXELS:e=>{var t=0===e.action&&4!==e.button?"m":"M";return`[<${h(e,!0)};${e.x};`+e.y+t}};i=class{constructor(e,t){this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new o.EventEmitter,this._lastEvent=null;for(const e of Object.keys(a))this.addProtocol(e,a[e]);for(const e of Object.keys(c))this.addEncoding(e,c[e]);this.reset()}addProtocol(e,t){this._protocols[e]=t}addEncoding(e,t){this._encodings[e]=t}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return 0!==this._protocols[this._activeProtocol].events}set activeProtocol(e){if(!this._protocols[e])throw new Error(`unknown protocol "${e}"`);this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(e){if(!this._encodings[e])throw new Error(`unknown encoding "${e}"`);this._activeEncoding=e}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}get onProtocolChange(){return this._onProtocolChange.event}triggerMouseEvent(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._equalEvents(this._lastEvent,e,"SGR_PIXELS"===this._activeEncoding))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;var t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0}explainEvents(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}}_equalEvents(e,t,i){if(i){if(e.x!==t.x)return!1;if(e.y!==t.y)return!1}else{if(e.col!==t.col)return!1;if(e.row!==t.row)return!1}return e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift}},i=s([r(0,n.IBufferService),r(1,n.ICoreService)],i);t.CoreMouseService=i},6975:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;const n=i(2585),o=i(8460),a=i(1439),h=i(844),l=Object.freeze({insertMode:!1}),c=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});i=class extends h.Disposable{constructor(e,t,i,s){super(),this._bufferService=t,this._logService=i,this._optionsService=s,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new o.EventEmitter),this._onUserInput=this.register(new o.EventEmitter),this._onBinary=this.register(new o.EventEmitter),this._scrollToBottom=e,this.register({dispose:()=>this._scrollToBottom=void 0}),this.modes=(0,a.clone)(l),this.decPrivateModes=(0,a.clone)(c)}get onData(){return this._onData.event}get onUserInput(){return this._onUserInput.event}get onBinary(){return this._onBinary.event}reset(){this.modes=(0,a.clone)(l),this.decPrivateModes=(0,a.clone)(c)}triggerDataEvent(e,t=!1){var i;this._optionsService.rawOptions.disableStdin||((i=this._bufferService.buffer).ybase!==i.ydisp&&this._scrollToBottom(),t&&this._onUserInput.fire(),this._logService.debug(`sending data "${e}"`,()=>e.split("").map(e=>e.charCodeAt(0))),this._onData.fire(e))}triggerBinaryEvent(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${e}"`,()=>e.split("").map(e=>e.charCodeAt(0))),this._onBinary.fire(e))}},i=s([r(1,n.IBufferService),r(2,n.ILogService),r(3,n.IOptionsService)],i);t.CoreService=i},9074:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationService=void 0;const s=i(8055),r=i(8460),n=i(844),o=i(6106),a={xmin:0,xmax:0};class h extends n.Disposable{constructor(){super(...arguments),this._decorations=new o.SortedList(e=>null==e?void 0:e.marker.line),this._onDecorationRegistered=this.register(new r.EventEmitter),this._onDecorationRemoved=this.register(new r.EventEmitter)}get onDecorationRegistered(){return this._onDecorationRegistered.event}get onDecorationRemoved(){return this._onDecorationRemoved.event}get decorations(){return this._decorations.values()}registerDecoration(e){if(!e.marker.isDisposed){const t=new l(e);if(t){const e=t.marker.onDispose(()=>t.dispose());t.onDispose(()=>{t&&(this._decorations.delete(t)&&this._onDecorationRemoved.fire(t),e.dispose())}),this._decorations.insert(t),this._onDecorationRegistered.fire(t)}return t}}reset(){for(const e of this._decorations.values())e.dispose();this._decorations.clear()}*getDecorationsAtCell(e,t,i){var s,r;for(const n of this._decorations.getKeyIterator(t))s=null!=(s=n.options.x)?s:0,r=s+(null!=(r=n.options.width)?r:1),s<=e&&e<r&&(!i||(null!=(s=n.options.layer)?s:"bottom")===i)&&(yield n)}forEachDecorationAtCell(i,e,s,r){this._decorations.forEachByKey(e,e=>{var t;a.xmin=null!=(t=e.options.x)?t:0,a.xmax=a.xmin+(null!=(t=e.options.width)?t:1),i>=a.xmin&&i<a.xmax&&(!s||(null!=(t=e.options.layer)?t:"bottom")===s)&&r(e)})}dispose(){for(const e of this._decorations.values())this._onDecorationRemoved.fire(e);this.reset()}}t.DecorationService=h;class l extends n.Disposable{constructor(e){super(),this.options=e,this.isDisposed=!1,this.onRenderEmitter=this.register(new r.EventEmitter),this.onRender=this.onRenderEmitter.event,this._onDispose=this.register(new r.EventEmitter),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=e.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position="full")}get backgroundColorRGB(){return null===this._cachedBg&&(this.options.backgroundColor?this._cachedBg=s.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return null===this._cachedFg&&(this.options.foregroundColor?this._cachedFg=s.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}dispose(){this._isDisposed||(this._isDisposed=!0,this._onDispose.fire(),super.dispose())}}},3730:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}},i=(Object.defineProperty(t,"__esModule",{value:!0}),t.DirtyRowService=void 0,i(2585)),n=class{constructor(e){this._bufferService=e,this.clearRange()}get start(){return this._start}get end(){return this._end}clearRange(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y}markDirty(e){e<this._start?this._start=e:e>this._end&&(this._end=e)}markRangeDirty(e,t){var i;t<e&&(i=e,e=t,t=i),e<this._start&&(this._start=e),t>this._end&&(this._end=t)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}},n=s([r(0,i.IBufferService)],n);t.DirtyRowService=n},4348:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiationService=t.ServiceCollection=void 0;const s=i(2585),n=i(8343);class r{constructor(...e){this._entries=new Map;for(var[t,i]of e)this.set(t,i)}set(e,t){var i=this._entries.get(e);return this._entries.set(e,t),i}forEach(i){this._entries.forEach((e,t)=>i(t,e))}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}}t.ServiceCollection=r,t.InstantiationService=class{constructor(){this._services=new r,this._services.set(s.IInstantiationService,this)}setService(e,t){this._services.set(e,t)}getService(e){return this._services.get(e)}createInstance(e,...t){const i=(0,n.getServiceDependencies)(e).sort((e,t)=>e.index-t.index),s=[];for(const t of i){const i=this._services.get(t.id);if(!i)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${t.id}.`);s.push(i)}var r=0<i.length?i[0].index:t.length;if(t.length!==r)throw new Error(`[createInstance] First service dependency of ${e.name} at position ${r+1} conflicts with ${t.length} static arguments`);return new e(...t,...s)}}},7866:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=void 0;const n=i(2585),o={debug:n.LogLevelEnum.DEBUG,info:n.LogLevelEnum.INFO,warn:n.LogLevelEnum.WARN,error:n.LogLevelEnum.ERROR,off:n.LogLevelEnum.OFF};i=class{constructor(e){this._optionsService=e,this.logLevel=n.LogLevelEnum.OFF,this._updateLogLevel(),this._optionsService.onOptionChange(e=>{"logLevel"===e&&this._updateLogLevel()})}_updateLogLevel(){this.logLevel=o[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(t){for(let e=0;e<t.length;e++)"function"==typeof t[e]&&(t[e]=t[e]())}_log(e,t,i){this._evalLazyOptionalParams(i),e.call(console,"xterm.js: "+t,...i)}debug(e,...t){this.logLevel<=n.LogLevelEnum.DEBUG&&this._log(console.log,e,t)}info(e,...t){this.logLevel<=n.LogLevelEnum.INFO&&this._log(console.info,e,t)}warn(e,...t){this.logLevel<=n.LogLevelEnum.WARN&&this._log(console.warn,e,t)}error(e,...t){this.logLevel<=n.LogLevelEnum.ERROR&&this._log(console.error,e,t)}},i=s([r(0,n.IOptionsService)],i);t.LogService=i},7302:(e,s,t)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.OptionsService=s.DEFAULT_OPTIONS=void 0;const i=t(8460),r=t(6114),n=(s.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:r.isMac,windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0},["normal","bold","100","200","300","400","500","600","700","800","900"]);s.OptionsService=class{constructor(e){this._onOptionChange=new i.EventEmitter;const t=Object.assign({},s.DEFAULT_OPTIONS);for(const s in e)if(s in t)try{const i=e[s];t[s]=this._sanitizeAndValidateOption(s,i)}catch(e){console.error(e)}this.rawOptions=t,this.options=Object.assign({},t),this._setupOptions()}get onOptionChange(){return this._onOptionChange.event}_setupOptions(){var e=e=>{if(e in s.DEFAULT_OPTIONS)return this.rawOptions[e];throw new Error(`No option with key "${e}"`)},t=(e,t)=>{if(!(e in s.DEFAULT_OPTIONS))throw new Error(`No option with key "${e}"`);t=this._sanitizeAndValidateOption(e,t),this.rawOptions[e]!==t&&(this.rawOptions[e]=t,this._onOptionChange.fire(e))};for(const s in this.rawOptions){var i={get:e.bind(this,s),set:t.bind(this,s)};Object.defineProperty(this.options,s,i)}}_sanitizeAndValidateOption(e,t){switch(e){case"cursorStyle":if("block"!==(t=t||s.DEFAULT_OPTIONS[e])&&"underline"!==t&&"bar"!==t)throw new Error(`"${t}" is not a valid value for `+e);break;case"wordSeparator":t=t||s.DEFAULT_OPTIONS[e];break;case"fontWeight":case"fontWeightBold":if("number"==typeof t&&1<=t&&t<=1e3)break;t=n.includes(t)?t:s.DEFAULT_OPTIONS[e];break;case"cursorWidth":t=Math.floor(t);case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(e+" cannot be less than 1, value: "+t);break;case"minimumContrastRatio":t=Math.max(1,Math.min(21,Math.round(10*t)/10));break;case"scrollback":if((t=Math.min(t,4294967295))<0)throw new Error(e+" cannot be less than 0, value: "+t);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(e+" cannot be less than or equal to 0, value: "+t);case"rows":case"cols":if(!t&&0!==t)throw new Error(e+" must be numeric, value: "+t)}return t}}},2660:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}},i=(Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkService=void 0,i(2585)),n=class{constructor(e){this._bufferService=e,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(e){const t=this._bufferService.buffer;if(void 0===e.id){const i=t.addMarker(t.ybase+t.y),s={data:e,id:this._nextId++,lines:[i]};return i.onDispose(()=>this._removeMarkerFromLink(s,i)),this._dataByLinkId.set(s.id,s),s.id}const i=e,s=this._getEntryIdKey(i),r=this._entriesWithId.get(s);if(r)return this.addLineToLink(r.id,t.ybase+t.y),r.id;const n=t.addMarker(t.ybase+t.y),o={id:this._nextId++,key:this._getEntryIdKey(i),data:i,lines:[n]};return n.onDispose(()=>this._removeMarkerFromLink(o,n)),this._entriesWithId.set(o.key,o),this._dataByLinkId.set(o.id,o),o.id}addLineToLink(e,t){const i=this._dataByLinkId.get(e);if(i&&i.lines.every(e=>e.line!==t)){const e=this._bufferService.buffer.addMarker(t);i.lines.push(e),e.onDispose(()=>this._removeMarkerFromLink(i,e))}}getLinkData(e){return null==(e=this._dataByLinkId.get(e))?void 0:e.data}_getEntryIdKey(e){return e.id+";;"+e.uri}_removeMarkerFromLink(e,t){t=e.lines.indexOf(t);-1!==t&&(e.lines.splice(t,1),0===e.lines.length&&(void 0!==e.data.id&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id)))}},n=s([r(0,i.IBufferService)],n);t.OscLinkService=n},8343:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0,t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e.di$dependencies||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);function r(e,t,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");var s;s=r,i=i,(e=e).di$target===e?e.di$dependencies.push({id:s,index:i}):(e.di$dependencies=[{id:s,index:i}],e.di$target=e)}return r.toString=()=>e,t.serviceRegistry.set(e,r),r}},2585:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOscLinkService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.IDirtyRowService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;const s=i(8343);t.IBufferService=(0,s.createDecorator)("BufferService"),t.ICoreMouseService=(0,s.createDecorator)("CoreMouseService"),t.ICoreService=(0,s.createDecorator)("CoreService"),t.ICharsetService=(0,s.createDecorator)("CharsetService"),t.IDirtyRowService=(0,s.createDecorator)("DirtyRowService"),t.IInstantiationService=(0,s.createDecorator)("InstantiationService"),(i=t.LogLevelEnum||(t.LogLevelEnum={}))[i.DEBUG=0]="DEBUG",i[i.INFO=1]="INFO",i[i.WARN=2]="WARN",i[i.ERROR=3]="ERROR",i[i.OFF=4]="OFF",t.ILogService=(0,s.createDecorator)("LogService"),t.IOptionsService=(0,s.createDecorator)("OptionsService"),t.IOscLinkService=(0,s.createDecorator)("OscLinkService"),t.IUnicodeService=(0,s.createDecorator)("UnicodeService"),t.IDecorationService=(0,s.createDecorator)("DecorationService")},1480:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;const s=i(8460),r=i(225);t.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new s.EventEmitter;var e=new r.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}get onChange(){return this._onChange.event}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(e){if(!this._providers[e])throw new Error(`unknown Unicode version "${e}"`);this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)}register(e){this._providers[e.version]=e}wcwidth(e){return this._activeProvider.wcwidth(e)}getStringCellWidth(i){let s=0;var r=i.length;for(let t=0;t<r;++t){let e=i.charCodeAt(t);if(55296<=e&&e<=56319){if(++t>=r)return s+this.wcwidth(e);var n=i.charCodeAt(t);56320<=n&&n<=57343?e=1024*(e-55296)+n-56320+65536:s+=this.wcwidth(n)}s+=this.wcwidth(e)}return s}}}},s={};function r(e){var t=s[e];if(void 0!==t)return t.exports;t=s[e]={exports:{}};return i[e].call(t.exports,t,t.exports,r),t.exports}var e={};{var t=e;Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;const n=r(3236),o=r(9042),a=r(7975),h=r(7090),l=r(5741),c=r(8285),_=["cols","rows"];t.Terminal=class{constructor(e){this._core=new n.Terminal(e),this._addonManager=new l.AddonManager,this._publicOptions=Object.assign({},this._core.options);var t=e=>this._core.options[e],i=(e,t)=>{this._checkReadonlyOptions(e),this._core.options[e]=t};for(const e in this._core.options){const n={get:t.bind(this,e),set:i.bind(this,e)};Object.defineProperty(this._publicOptions,e,n)}}_checkReadonlyOptions(e){if(_.includes(e))throw new Error(`Option "${e}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._checkProposedApi(),this._parser||(this._parser=new a.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new h.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._checkProposedApi(),this._buffer||(this._buffer=new c.BufferNamespaceApi(this._core)),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){var e=this._core.coreService.decPrivateModes;let t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}}get options(){return this._publicOptions}set options(e){for(const t in e)this._publicOptions[t]=e[t]}blur(){this._core.blur()}focus(){this._core.focus()}resize(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}open(e){this._core.open(e)}attachCustomKeyEventHandler(e){this._core.attachCustomKeyEventHandler(e)}registerLinkProvider(e){return this._checkProposedApi(),this._core.registerLinkProvider(e)}registerCharacterJoiner(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}deregisterCharacterJoiner(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}registerMarker(e=0){return this._verifyIntegers(e),this._core.addMarker(e)}registerDecoration(e){var t;return this._checkProposedApi(),this._verifyPositiveIntegers(null!=(t=e.x)?t:0,null!=(t=e.width)?t:0,null!=(t=e.height)?t:0),this._core.registerDecoration(e)}hasSelection(){return this._core.hasSelection()}select(e,t,i){this._verifyIntegers(e,t,i),this._core.select(e,t,i)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}dispose(){this._addonManager.dispose(),this._core.dispose()}scrollLines(e){this._verifyIntegers(e),this._core.scrollLines(e)}scrollPages(e){this._verifyIntegers(e),this._core.scrollPages(e)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(e){this._verifyIntegers(e),this._core.scrollToLine(e)}clear(){this._core.clear()}write(e,t){this._core.write(e,t)}writeln(e,t){this._core.write(e),this._core.write("\r\n",t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){return this._addonManager.loadAddon(this,e)}static get strings(){return o}_verifyIntegers(...e){for(const t of e)if(t===1/0||isNaN(t)||t%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...e){for(const t of e)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw new Error("This API only accepts positive integers")}}}return e})()})
\ No newline at end of file
1
+!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i,s=t();for(i in s)("object"==typeof exports?exports:e)[i]=s[i]}}(self,function(){return(()=>{"use strict";var i={4567:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;const s=i(9042),r=i(6114),n=i(9924),o=i(3656),a=i(844),h=i(5596),l=i(9631);class c extends a.Disposable{constructor(e,t){super(),this._terminal=e,this._renderService=t,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityTreeRoot=document.createElement("div"),this._accessibilityTreeRoot.classList.add("xterm-accessibility"),this._accessibilityTreeRoot.tabIndex=0,this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let e=0;e<this._terminal.rows;e++)this._rowElements[e]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[e]);if(this._topBoundaryFocusListener=e=>this._onBoundaryFocus(e,0),this._bottomBoundaryFocusListener=e=>this._onBoundaryFocus(e,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityTreeRoot.appendChild(this._rowContainer),this._renderRowsDebouncer=new n.TimeBasedDebouncer(this._renderRows.bind(this)),this._refreshRows(),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityTreeRoot.appendChild(this._liveRegion),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityTreeRoot),this.register(this._renderRowsDebouncer),this.register(this._terminal.onResize(e=>this._onResize(e.rows))),this.register(this._terminal.onRender(e=>this._refreshRows(e.start,e.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(e=>this._onChar(e))),this.register(this._terminal.onLineFeed(()=>this._onChar("\n"))),this.register(this._terminal.onA11yTab(e=>this._onTab(e))),this.register(this._terminal.onKey(e=>this._onKey(e.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new h.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,o.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions()))}dispose(){super.dispose(),(0,l.removeElementFromParent)(this._accessibilityTreeRoot),this._rowElements.length=0}_onBoundaryFocus(i,s){var r=i.target,e=this._rowElements[0===s?1:this._rowElements.length-2];if(r.getAttribute("aria-posinset")!==(0===s?"1":""+this._terminal.buffer.lines.length)&&i.relatedTarget===e){let e,t;if(0===s?(e=r,t=this._rowElements.pop(),this._rowContainer.removeChild(t)):(e=this._rowElements.shift(),t=r,this._rowContainer.removeChild(e)),e.removeEventListener("focus",this._topBoundaryFocusListener),t.removeEventListener("focus",this._bottomBoundaryFocusListener),0===s){const i=this._createAccessibilityTreeNode();this._rowElements.unshift(i),this._rowContainer.insertAdjacentElement("afterbegin",i)}else{const i=this._createAccessibilityTreeNode();this._rowElements.push(i),this._rowContainer.appendChild(i)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===s?-1:1),this._rowElements[0===s?1:this._rowElements.length-2].focus(),i.preventDefault(),i.stopImmediatePropagation()}}_onResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let e=this._rowContainer.children.length;e<this._terminal.rows;e++)this._rowElements[e]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[e]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_onTab(t){for(let e=0;e<t;e++)this._onChar(" ")}_onChar(e){this._liveRegionLineCount<21&&(0<this._charsToConsume.length&&this._charsToConsume.shift()===e||(this._charsToAnnounce+=e),"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount)&&(this._liveRegion.textContent+=s.tooMuchOutput),r.isMac)&&this._liveRegion.textContent&&0<this._liveRegion.textContent.length&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityTreeRoot.appendChild(this._liveRegion)},0)}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,r.isMac&&(0,l.removeElementFromParent)(this._liveRegion)}_onKey(e){this._clearLiveRegion(),this._charsToConsume.push(e)}_refreshRows(e,t){this._renderRowsDebouncer.refresh(e,t,this._terminal.rows)}_renderRows(t,i){var s=this._terminal.buffer,r=s.lines.length.toString();for(let e=t;e<=i;e++){const t=s.translateBufferLineToString(s.ydisp+e,!0),i=(s.ydisp+e+1).toString(),n=this._rowElements[e];n&&(0===t.length?n.innerText=" ":n.textContent=t,n.setAttribute("aria-posinset",i),n.setAttribute("aria-setsize",r))}this._announceCharacters()}_refreshRowsDimensions(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(let e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}}_refreshRowDimensions(e){e.style.height=this._renderService.dimensions.actualCellHeight+"px"}_announceCharacters(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}}t.AccessibilityManager=c},3614:(e,t)=>{function s(e){return e.replace(/\r?\n/g,"\r")}function r(e,t){return t?"[200~"+e+"[201~":e}function n(e,t,i){e=r(e=s(e),i.decPrivateModes.bracketedPasteMode),i.triggerDataEvent(e,!0),t.value=""}function o(e,t,i){var i=i.getBoundingClientRect(),s=e.clientX-i.left-10,e=e.clientY-i.top-10;t.style.width="20px",t.style.height="20px",t.style.left=s+"px",t.style.top=e+"px",t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=s,t.bracketTextForPaste=r,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,i){e.stopPropagation(),e.clipboardData&&n(e.clipboardData.getData("text/plain"),t,i)},t.paste=n,t.moveTextAreaUnderMouseCursor=o,t.rightClickHandler=function(e,t,i,s,r){o(e,t,i),r&&s.rightClickSelect(e),t.value=s.selectionText,t.select()}},7239:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;const s=i(1505);t.ColorContrastCache=class{constructor(){this._color=new s.TwoKeyMap,this._css=new s.TwoKeyMap}setCss(e,t,i){this._css.set(e,t,i)}getCss(e,t){return this._css.get(e,t)}setColor(e,t,i){this._color.set(e,t,i)}getColor(e,t){return this._color.get(e,t)}clear(){this._color.clear(),this._css.clear()}}},5680:(e,s,t)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ColorManager=s.DEFAULT_ANSI_COLORS=void 0;const h=t(8055),i=t(7239),r=h.css.toColor("#ffffff"),n=h.css.toColor("#000000"),o=h.css.toColor("#ffffff"),a=h.css.toColor("#000000"),l={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};s.DEFAULT_ANSI_COLORS=Object.freeze((()=>{var t=[h.css.toColor("#2e3436"),h.css.toColor("#cc0000"),h.css.toColor("#4e9a06"),h.css.toColor("#c4a000"),h.css.toColor("#3465a4"),h.css.toColor("#75507b"),h.css.toColor("#06989a"),h.css.toColor("#d3d7cf"),h.css.toColor("#555753"),h.css.toColor("#ef2929"),h.css.toColor("#8ae234"),h.css.toColor("#fce94f"),h.css.toColor("#729fcf"),h.css.toColor("#ad7fa8"),h.css.toColor("#34e2e2"),h.css.toColor("#eeeeec")],i=[0,95,135,175,215,255];for(let e=0;e<216;e++){var s=i[e/36%6|0],r=i[e/6%6|0],n=i[e%6];t.push({css:h.channels.toCss(s,r,n),rgba:h.channels.toRgba(s,r,n)})}for(let e=0;e<24;e++){var o=8+10*e;t.push({css:h.channels.toCss(o,o,o),rgba:h.channels.toRgba(o,o,o)})}return t})()),s.ColorManager=class{constructor(e,t){this.allowTransparency=t;t=e.createElement("canvas"),t.width=1,t.height=1,e=t.getContext("2d");if(!e)throw new Error("Could not get rendering context");this._ctx=e,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new i.ColorContrastCache,this.colors={foreground:r,background:n,cursor:o,cursorAccent:a,selectionForeground:void 0,selectionBackgroundTransparent:l,selectionBackgroundOpaque:h.color.blend(n,l),selectionInactiveBackgroundTransparent:l,selectionInactiveBackgroundOpaque:h.color.blend(n,l),ansi:s.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}onOptionsChange(e,t){switch(e){case"minimumContrastRatio":this._contrastCache.clear();break;case"allowTransparency":this.allowTransparency=t}}setTheme(t={}){this.colors.foreground=this._parseColor(t.foreground,r),this.colors.background=this._parseColor(t.background,n),this.colors.cursor=this._parseColor(t.cursor,o,!0),this.colors.cursorAccent=this._parseColor(t.cursorAccent,a,!0),this.colors.selectionBackgroundTransparent=this._parseColor(t.selectionBackground,l,!0),this.colors.selectionBackgroundOpaque=h.color.blend(this.colors.background,this.colors.selectionBackgroundTransparent),this.colors.selectionInactiveBackgroundTransparent=this._parseColor(t.selectionInactiveBackground,this.colors.selectionBackgroundTransparent,!0),this.colors.selectionInactiveBackgroundOpaque=h.color.blend(this.colors.background,this.colors.selectionInactiveBackgroundTransparent);const i={css:"",rgba:0};if(this.colors.selectionForeground=t.selectionForeground?this._parseColor(t.selectionForeground,i):void 0,this.colors.selectionForeground===i&&(this.colors.selectionForeground=void 0),h.color.isOpaque(this.colors.selectionBackgroundTransparent)){const t=.3;this.colors.selectionBackgroundTransparent=h.color.opacity(this.colors.selectionBackgroundTransparent,.3)}if(h.color.isOpaque(this.colors.selectionInactiveBackgroundTransparent)){const t=.3;this.colors.selectionInactiveBackgroundTransparent=h.color.opacity(this.colors.selectionInactiveBackgroundTransparent,.3)}if(this.colors.ansi=s.DEFAULT_ANSI_COLORS.slice(),this.colors.ansi[0]=this._parseColor(t.black,s.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(t.red,s.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(t.green,s.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(t.yellow,s.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(t.blue,s.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(t.magenta,s.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(t.cyan,s.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(t.white,s.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(t.brightBlack,s.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(t.brightRed,s.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(t.brightGreen,s.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(t.brightYellow,s.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(t.brightBlue,s.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(t.brightMagenta,s.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(t.brightCyan,s.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(t.brightWhite,s.DEFAULT_ANSI_COLORS[15]),t.extendedAnsi){const i=Math.min(this.colors.ansi.length-16,t.extendedAnsi.length);for(let e=0;e<i;e++)this.colors.ansi[e+16]=this._parseColor(t.extendedAnsi[e],s.DEFAULT_ANSI_COLORS[e+16])}this._contrastCache.clear(),this._updateRestoreColors()}restoreColor(e){if(void 0!==e)switch(e){case 256:this.colors.foreground=this._restoreColors.foreground;break;case 257:this.colors.background=this._restoreColors.background;break;case 258:this.colors.cursor=this._restoreColors.cursor;break;default:this.colors.ansi[e]=this._restoreColors.ansi[e]}else for(let e=0;e<this._restoreColors.ansi.length;++e)this.colors.ansi[e]=this._restoreColors.ansi[e]}_updateRestoreColors(){this._restoreColors={foreground:this.colors.foreground,background:this.colors.background,cursor:this.colors.cursor,ansi:this.colors.ansi.slice()}}_parseColor(e,t,i=this.allowTransparency){if(void 0===e)return t;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,"string"!=typeof this._ctx.fillStyle)return console.warn(`Color: ${e} is invalid using fallback `+t.css),t;this._ctx.fillRect(0,0,1,1);const s=this._ctx.getImageData(0,0,1,1).data;if(255===s[3])return{css:this._ctx.fillStyle,rgba:h.channels.toRgba(s[0],s[1],s[2],s[3])};{if(!i)return console.warn(`Color: ${e} is using transparency, but allowTransparency is false. Using fallback ${t.css}.`),t;const[s,r,n,o]=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(e=>Number(e)),a=Math.round(255*o);return{rgba:h.channels.toRgba(s,r,n,a),css:e}}}}},9631:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.removeElementFromParent=void 0,t.removeElementFromParent=function(...e){var t;for(const i of e)null!=(t=null==i?void 0:i.parentElement)&&t.removeChild(i)}},3656:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,i,s){e.addEventListener(t,i,s);let r=!1;return{dispose:()=>{r||(r=!0,e.removeEventListener(t,i,s))}}}},6465:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;const n=i(2585),o=i(8460),a=i(844),h=i(3656);i=class extends a.Disposable{constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._activeLine=-1,this._onShowLinkUnderline=this.register(new o.EventEmitter),this._onHideLinkUnderline=this.register(new o.EventEmitter),this.register((0,a.getDisposeArrayDisposable)(this._linkCacheDisposables))}get currentLink(){return this._currentLink}get onShowLinkUnderline(){return this._onShowLinkUnderline.event}get onHideLinkUnderline(){return this._onHideLinkUnderline.event}dispose(){super.dispose(),this._lastMouseEvent=void 0}registerLinkProvider(t){return this._linkProviders.push(t),{dispose:()=>{var e=this._linkProviders.indexOf(t);-1!==e&&this._linkProviders.splice(e,1)}}}attachToDom(e,t,i){this._element=e,this._mouseService=t,this._renderService=i,this.register((0,h.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,h.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_onMouseMove(e){if(this._lastMouseEvent=e,this._element&&this._mouseService){const i=this._positionFromMouseEvent(e,this._element,this._mouseService);if(i){this._isMouseOut=!1;var t=e.composedPath();for(let e=0;e<t.length;e++){const i=t[e];if(i.classList.contains("xterm"))break;if(i.classList.contains("xterm-hover"))return}this._lastBufferCell&&i.x===this._lastBufferCell.x&&i.y===this._lastBufferCell.y||(this._onHover(i),this._lastBufferCell=i)}}}_onHover(e){this._activeLine!==e.y?(this._clearCurrentLink(),this._askForLink(e,!1)):this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))}_askForLink(i,e){var s,t;this._activeProviderReplies&&e||(null!=(s=this._activeProviderReplies)&&s.forEach(e=>{null!=e&&e.forEach(e=>{e.link.dispose&&e.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=i.y);let r=!1;for(const[s,n]of this._linkProviders.entries())e?null!=(t=this._activeProviderReplies)&&t.get(s)&&(r=this._checkLinkProviderResult(s,i,r)):n.provideLinks(i.y,e=>{var t;this._isMouseOut||(e=null==e?void 0:e.map(e=>({link:e})),null!=(t=this._activeProviderReplies)&&t.set(s,e),r=this._checkLinkProviderResult(s,i,r),(null==(t=this._activeProviderReplies)?void 0:t.size)===this._linkProviders.length&&this._removeIntersectingLinks(i.y,this._activeProviderReplies))})}_removeIntersectingLinks(i,t){var s=new Set;for(let e=0;e<t.size;e++){var r=t.get(e);if(r)for(let t=0;t<r.length;t++){var n=r[t],o=n.link.range.start.y<i?0:n.link.range.start.x,a=n.link.range.end.y>i?this._bufferService.cols:n.link.range.end.x;for(let e=o;e<=a;e++){if(s.has(e)){r.splice(t--,1);break}s.add(e)}}}}_checkLinkProviderResult(i,s,r){var n;if(this._activeProviderReplies){const o=this._activeProviderReplies.get(i);let t=!1;for(let e=0;e<i;e++)this._activeProviderReplies.has(e)&&!this._activeProviderReplies.get(e)||(t=!0);if(!t&&o){const i=o.find(e=>this._linkAtPosition(e.link,s));i&&(r=!0,this._handleNewLink(i))}if(this._activeProviderReplies.size===this._linkProviders.length&&!r)for(let e=0;e<this._activeProviderReplies.size;e++){const o=null==(n=this._activeProviderReplies.get(e))?void 0:n.find(e=>this._linkAtPosition(e.link,s));if(o){r=!0,this._handleNewLink(o);break}}}return r}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){var t;this._element&&this._mouseService&&this._currentLink&&(t=this._positionFromMouseEvent(e,this._element,this._mouseService))&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,t){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),(this._currentLink=void 0,a.disposeArray)(this._linkCacheDisposables))}_handleNewLink(i){var e;this._element&&this._lastMouseEvent&&this._mouseService&&(e=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService))&&this._linkAtPosition(i.link,e)&&(this._currentLink=i,this._currentLink.state={decorations:{underline:void 0===i.link.decorations||i.link.decorations.underline,pointerCursor:void 0===i.link.decorations||i.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,i.link,this._lastMouseEvent),i.link.decorations={},Object.defineProperties(i.link.decorations,{pointerCursor:{get:()=>{var e;return null==(e=null==(e=this._currentLink)?void 0:e.state)?void 0:e.decorations.pointerCursor},set:e=>{var t;null!=(t=this._currentLink)&&t.state&&this._currentLink.state.decorations.pointerCursor!==e&&(this._currentLink.state.decorations.pointerCursor=e,this._currentLink.state.isHovered)&&(null!=(t=this._element)&&t.classList.toggle("xterm-cursor-pointer",e))}},underline:{get:()=>{var e;return null==(e=null==(e=this._currentLink)?void 0:e.state)?void 0:e.decorations.underline},set:e=>{var t;null!=(t=this._currentLink)&&t.state&&(null==(t=null==(t=this._currentLink)?void 0:t.state)?void 0:t.decorations.underline)!==e&&(this._currentLink.state.decorations.underline=e,this._currentLink.state.isHovered)&&this._fireUnderlineEvent(i.link,e)}}}),this._renderService)&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(e=>{var t=0===e.start?0:e.start+1+this._bufferService.buffer.ydisp;this._clearCurrentLink(t,e.end+1+this._bufferService.buffer.ydisp)}))}_linkHover(e,t,i){var s;null!=(s=this._currentLink)&&s.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor)&&e.classList.add("xterm-cursor-pointer"),t.hover&&t.hover(i,t.text)}_fireUnderlineEvent(e,t){var e=e.range,i=this._bufferService.buffer.ydisp,e=this._createLinkUnderlineEvent(e.start.x-1,e.start.y-i-1,e.end.x,e.end.y-i-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(e)}_linkLeave(e,t,i){var s;null!=(s=this._currentLink)&&s.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor)&&e.classList.remove("xterm-cursor-pointer"),t.leave&&t.leave(i,t.text)}_linkAtPosition(e,t){var i=e.range.start.y===e.range.end.y,s=e.range.start.y<t.y,r=e.range.end.y>t.y;return(i&&e.range.start.x<=t.x&&e.range.end.x>=t.x||s&&e.range.end.x>=t.x||r&&e.range.start.x<=t.x||s&&r)&&e.range.start.y<=t.y&&e.range.end.y>=t.y}_positionFromMouseEvent(e,t,i){i=i.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(i)return{x:i[0],y:i[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,t,i,s,r){return{x1:e,y1:t,x2:i,y2:s,cols:this._bufferService.cols,fg:r}}},i=s([r(0,n.IBufferService)],i);t.Linkifier2=i},9042:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},2962:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkProvider=void 0;const _=i(511),n=i(2585);i=class{constructor(e,t,i){this._bufferService=e,this._optionsService=t,this._oscLinkService=i}provideLinks(r,e){var n;const o=this._bufferService.buffer.lines.get(r-1);if(o){const a=[],h=this._optionsService.rawOptions.linkHandler,l=new _.CellData,c=o.getTrimmedLength();let t=-1,i=-1,s=!1;for(let e=0;e<c;e++)if(-1!==i||o.hasContent(e)){if(o.loadCell(e,l),l.hasExtendedAttrs()&&l.extended.urlId){if(-1===i){i=e,t=l.extended.urlId;continue}s=l.extended.urlId!==t}else-1!==i&&(s=!0);if(s||-1!==i&&e===c-1){const o=null==(n=this._oscLinkService.getLinkData(t))?void 0:n.uri;if(o){const n={start:{x:i+1,y:r},end:{x:e+(s||e!==c-1?0:1),y:r}};a.push({text:o,range:n,activate:(e,t)=>{if(h)return h.activate(e,t,n);e=t;if(confirm(`Do you want to navigate to ${e}?`)){const i=window.open();if(i){try{i.opener=null}catch(i){}i.location.href=e}else console.warn("Opening link blocked as opener could not be cleared")}},hover:(e,t)=>{var i;return null==(i=null==h?void 0:h.hover)?void 0:i.call(h,e,t,n)},leave:(e,t)=>{var i;return null==(i=null==h?void 0:h.leave)?void 0:i.call(h,e,t,n)}})}s=!1,t=l.hasExtendedAttrs()&&l.extended.urlId?(i=e,l.extended.urlId):i=-1}}e(a)}else e(void 0)}};i=s([r(0,n.IBufferService),r(1,n.IOptionsService),r(2,n.IOscLinkService)],i),t.OscLinkProvider=i},6193:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0,t.RenderDebouncer=class{constructor(e,t){this._parentWindow=e,this._renderCallback=t,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._parentWindow.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(e){return this._refreshCallbacks.push(e),this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(e,t,i){this._rowCount=i,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){var e,t;(this._animationFrame=void 0)!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount&&(e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1),this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const e of this._refreshCallbacks)e(0);this._refreshCallbacks=[]}}},5596:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenDprMonitor=void 0;class s extends i(844).Disposable{constructor(e){super(),this._parentWindow=e,this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio}setListener(e){this._listener&&this.clearListener(),this._listener=e,this._outerListener=()=>{this._listener&&(this._listener(this._parentWindow.devicePixelRatio,this._currentDevicePixelRatio),this._updateDpr())},this._updateDpr()}dispose(){super.dispose(),this.clearListener()}_updateDpr(){var e;this._outerListener&&(null!=(e=this._resolutionMediaMatchList)&&e.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)}}t.ScreenDprMonitor=s},3236:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;const s=i(2950),r=i(1680),n=i(3614),o=i(2584),a=i(5435),h=i(9312),l=i(6114),c=i(3656),_=i(9042),d=i(4567),u=i(1296),f=i(7399),v=i(8460),g=i(8437),p=i(5680),S=i(3230),m=i(4725),C=i(428),b=i(8934),y=i(6465),w=i(5114),E=i(8969),L=i(8055),R=i(4269),k=i(5941),D=i(3107),A=i(5744),x=i(9074),B=i(2585),T=i(2962),M="undefined"!=typeof window?window.document:null;class O extends E.CoreTerminal{constructor(e={}){super(e),this.browser=l,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._onCursorMove=new v.EventEmitter,this._onKey=new v.EventEmitter,this._onRender=new v.EventEmitter,this._onSelectionChange=new v.EventEmitter,this._onTitleChange=new v.EventEmitter,this._onBell=new v.EventEmitter,this._onFocus=new v.EventEmitter,this._onBlur=new v.EventEmitter,this._onA11yCharEmitter=new v.EventEmitter,this._onA11yTabEmitter=new v.EventEmitter,this._setup(),this.linkifier2=this.register(this._instantiationService.createInstance(y.Linkifier2)),this.linkifier2.registerLinkProvider(this._instantiationService.createInstance(T.OscLinkProvider)),this._decorationService=this._instantiationService.createInstance(x.DecorationService),this._instantiationService.setService(B.IDecorationService,this._decorationService),this.register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this.register(this._inputHandler.onRequestRefreshRows((e,t)=>this.refresh(e,t))),this.register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this.register(this._inputHandler.onRequestReset(()=>this.reset())),this.register(this._inputHandler.onRequestWindowsOptionsReport(e=>this._reportWindowsOptions(e))),this.register(this._inputHandler.onColor(e=>this._handleColorEvent(e))),this.register((0,v.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,v.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,v.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,v.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize(e=>this._afterResize(e.cols,e.rows)))}get onCursorMove(){return this._onCursorMove.event}get onKey(){return this._onKey.event}get onRender(){return this._onRender.event}get onSelectionChange(){return this._onSelectionChange.event}get onTitleChange(){return this._onTitleChange.event}get onBell(){return this._onBell.event}get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}_handleColorEvent(e){var i;if(this._colorManager){for(const i of e){let e,t="";switch(i.index){case 256:e="foreground",t="10";break;case 257:e="background",t="11";break;case 258:e="cursor",t="12";break;default:e="ansi",t="4;"+i.index}switch(i.type){case 0:var s=L.color.toColorRGB("ansi"===e?this._colorManager.colors.ansi[i.index]:this._colorManager.colors[e]);this.coreService.triggerDataEvent(`${o.C0.ESC}]${t};`+(0,k.toRgbString)(s)+o.C1_ESCAPED.ST);break;case 1:"ansi"===e?this._colorManager.colors.ansi[i.index]=L.rgba.toColor(...i.color):this._colorManager.colors[e]=L.rgba.toColor(...i.color);break;case 2:this._colorManager.restoreColor(i.index)}}null!=(i=this._renderService)&&i.setColors(this._colorManager.colors),null!=(e=this.viewport)&&e.onThemeChange(this._colorManager.colors)}}dispose(){var e;this._isDisposed||(super.dispose(),null!=(e=this._renderService)&&e.dispose(),this._customKeyEventHandler=void 0,this.write=()=>{},null==(e=null==(e=this.element)?void 0:e.parentNode))||e.removeChild(this.element)}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_updateOptions(e){var t;switch(super._updateOptions(e),e){case"fontFamily":case"fontSize":null!=(t=this._renderService)&&t.clear(),null!=(t=this._charSizeService)&&t.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"customGlyphs":case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"scrollback":null!=(t=this.viewport)&&t.syncScrollArea();break;case"screenReaderMode":this.optionsService.rawOptions.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new d.AccessibilityManager(this,this._renderService)):(null!=(t=this._accessibilityManager)&&t.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.rawOptions.theme)}}_onTextAreaFocus(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(o.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var e;return null==(e=this.textarea)?void 0:e.blur()}_onTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(o.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){var e,t,i,s;this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService&&(t=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(t))&&(s=Math.min(this.buffer.x,this.cols-1),e=this._renderService.dimensions.actualCellHeight,t=t.getWidth(s),t=this._renderService.dimensions.actualCellWidth*t,i=this.buffer.y*this._renderService.dimensions.actualCellHeight,s=s*this._renderService.dimensions.actualCellWidth,this.textarea.style.left=s+"px",this.textarea.style.top=i+"px",this.textarea.style.width=t+"px",this.textarea.style.height=e+"px",this.textarea.style.lineHeight=e+"px",this.textarea.style.zIndex="-5")}_initGlobal(){this._bindKeys(),this.register((0,c.addDisposableDomListener)(this.element,"copy",e=>{this.hasSelection()&&(0,n.copyHandler)(e,this._selectionService)}));var e=e=>(0,n.handlePasteEvent)(e,this.textarea,this.coreService);this.register((0,c.addDisposableDomListener)(this.textarea,"paste",e)),this.register((0,c.addDisposableDomListener)(this.element,"paste",e)),l.isFirefox?this.register((0,c.addDisposableDomListener)(this.element,"mousedown",e=>{2===e.button&&(0,n.rightClickHandler)(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this.register((0,c.addDisposableDomListener)(this.element,"contextmenu",e=>{(0,n.rightClickHandler)(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),l.isLinux&&this.register((0,c.addDisposableDomListener)(this.element,"auxclick",e=>{1===e.button&&(0,n.moveTextAreaUnderMouseCursor)(e,this.textarea,this.screenElement)}))}_bindKeys(){this.register((0,c.addDisposableDomListener)(this.textarea,"keyup",e=>this._keyUp(e),!0)),this.register((0,c.addDisposableDomListener)(this.textarea,"keydown",e=>this._keyDown(e),!0)),this.register((0,c.addDisposableDomListener)(this.textarea,"keypress",e=>this._keyPress(e),!0)),this.register((0,c.addDisposableDomListener)(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this.register((0,c.addDisposableDomListener)(this.textarea,"compositionupdate",e=>this._compositionHelper.compositionupdate(e))),this.register((0,c.addDisposableDomListener)(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this.register((0,c.addDisposableDomListener)(this.textarea,"input",e=>this._inputEvent(e),!0)),this.register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(e){if(!e)throw new Error("Terminal requires a parent element.");e.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=e.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),e.appendChild(this.element);var e=M.createDocumentFragment(),t=(this._viewportElement=M.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),e.appendChild(this._viewportElement),this._viewportScrollArea=M.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=M.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=M.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),e.appendChild(this.screenElement),this.textarea=M.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",_.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register((0,c.addDisposableDomListener)(this.textarea,"focus",e=>this._onTextAreaFocus(e))),this.register((0,c.addDisposableDomListener)(this.textarea,"blur",()=>this._onTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._coreBrowserService=this._instantiationService.createInstance(w.CoreBrowserService,this.textarea,null!=(t=this._document.defaultView)?t:window),this._instantiationService.setService(m.ICoreBrowserService,this._coreBrowserService),this._charSizeService=this._instantiationService.createInstance(C.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(m.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new p.ColorManager(M,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(e=>this._colorManager.onOptionsChange(e,this.optionsService.rawOptions[e]))),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(R.CharacterJoinerService),this._instantiationService.setService(m.ICharacterJoinerService,this._characterJoinerService),this._createRenderer());this._renderService=this.register(this._instantiationService.createInstance(S.RenderService,t,this.rows,this.screenElement)),this._instantiationService.setService(m.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(e=>this._onRender.fire(e))),this.onResize(e=>this._renderService.resize(e.cols,e.rows)),this._compositionView=M.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(s.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(e),this._mouseService=this._instantiationService.createInstance(b.MouseService),this._instantiationService.setService(m.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(r.Viewport,e=>this.scrollLines(e,!0,1),this._viewportElement,this._viewportScrollArea,this.element),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(()=>this.viewport.syncScrollArea())),this.register(this.viewport),this.register(this.onCursorMove(()=>{this._renderService.onCursorMove(),this._syncTextArea()})),this.register(this.onResize(()=>this._renderService.onResize(this.cols,this.rows))),this.register(this.onBlur(()=>this._renderService.onBlur())),this.register(this.onFocus(()=>this._renderService.onFocus())),this.register(this._renderService.onDimensionsChange(()=>this.viewport.syncScrollArea())),this._selectionService=this.register(this._instantiationService.createInstance(h.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(m.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(e=>this.scrollLines(e.amount,e.suppressScrollEvent))),this.register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this.register(this._selectionService.onRequestRedraw(e=>this._renderService.onSelectionChanged(e.start,e.end,e.columnSelectMode))),this.register(this._selectionService.onLinuxMouseSelection(e=>{this.textarea.value=e,this.textarea.focus(),this.textarea.select()})),this.register(this._onScroll.event(e=>{this.viewport.syncScrollArea(),this._selectionService.refresh()})),this.register((0,c.addDisposableDomListener)(this._viewportElement,"scroll",()=>this._selectionService.refresh())),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(D.BufferDecorationRenderer,this.screenElement)),this.register((0,c.addDisposableDomListener)(this.element,"mousedown",e=>this._selectionService.onMouseDown(e))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new d.AccessibilityManager(this,this._renderService)),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(A.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onOptionChange(()=>{!this._overviewRulerRenderer&&this.options.overviewRulerWidth&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(A.OverviewRulerRenderer,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(u.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier2)}_setTheme(e){var t;this._theme=e,null!=(t=this._colorManager)&&t.setTheme(e),null!=(t=this._renderService)&&t.setColors(this._colorManager.colors),null!=(e=this.viewport)&&e.onThemeChange(this._colorManager.colors)}bindMouse(){const r=this,t=this.element;function i(i){var s=r._mouseService.getMouseReportCoords(i,r.screenElement);if(s){let e,t;switch(i.overrideType||i.type){case"mousemove":t=32,void 0===i.buttons?(e=3,void 0!==i.button&&(e=i.button<3?i.button:3)):e=1&i.buttons?0:4&i.buttons?1:2&i.buttons?2:3;break;case"mouseup":t=0,e=i.button<3?i.button:3;break;case"mousedown":t=1,e=i.button<3?i.button:3;break;case"wheel":if(0===r.viewport.getLinesScrolled(i))return;t=i.deltaY<0?0:1,e=4;break;default:return}void 0===t||void 0===e||4<e||r.coreMouseService.triggerMouseEvent({col:s.col,row:s.row,x:s.x,y:s.y,button:e,action:t,ctrl:i.ctrlKey,alt:i.altKey,shift:i.shiftKey})}}const n={mouseup:null,wheel:null,mousedrag:null,mousemove:null},s={mouseup:e=>(i(e),e.buttons||(this._document.removeEventListener("mouseup",n.mouseup),n.mousedrag&&this._document.removeEventListener("mousemove",n.mousedrag)),this.cancel(e)),wheel:e=>(i(e),this.cancel(e,!0)),mousedrag:e=>{e.buttons&&i(e)},mousemove:e=>{e.buttons||i(e)}};this.register(this.coreMouseService.onProtocolChange(e=>{e?("debug"===this.optionsService.rawOptions.logLevel&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(e)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&e?n.mousemove||(t.addEventListener("mousemove",s.mousemove),n.mousemove=s.mousemove):(t.removeEventListener("mousemove",n.mousemove),n.mousemove=null),16&e?n.wheel||(t.addEventListener("wheel",s.wheel,{passive:!1}),n.wheel=s.wheel):(t.removeEventListener("wheel",n.wheel),n.wheel=null),2&e?n.mouseup||(n.mouseup=s.mouseup):(this._document.removeEventListener("mouseup",n.mouseup),n.mouseup=null),4&e?n.mousedrag||(n.mousedrag=s.mousedrag):(this._document.removeEventListener("mousemove",n.mousedrag),n.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,c.addDisposableDomListener)(t,"mousedown",e=>{if(e.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(e))return i(e),n.mouseup&&this._document.addEventListener("mouseup",n.mouseup),n.mousedrag&&this._document.addEventListener("mousemove",n.mousedrag),this.cancel(e)})),this.register((0,c.addDisposableDomListener)(t,"wheel",e=>{if(!n.wheel){if(this.buffer.hasScrollback)return this.viewport.onWheel(e)?this.cancel(e):void 0;{var i=this.viewport.getLinesScrolled(e);if(0===i)return;var s=o.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(e.deltaY<0?"A":"B");let t="";for(let e=0;e<Math.abs(i);e++)t+=s;return this.coreService.triggerDataEvent(t,!0),this.cancel(e,!0)}}},{passive:!1})),this.register((0,c.addDisposableDomListener)(t,"touchstart",e=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.onTouchStart(e),this.cancel(e)},{passive:!0})),this.register((0,c.addDisposableDomListener)(t,"touchmove",e=>this.coreMouseService.areMouseEventsActive||this.viewport.onTouchMove(e)?void 0:this.cancel(e),{passive:!1}))}refresh(e,t){var i;null!=(i=this._renderService)&&i.refreshRows(e,t)}updateCursorStyle(e){var t;null!=(t=this._selectionService)&&t.shouldColumnSelect(e)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(e,t,i=0){super.scrollLines(e,t,i),this.refresh(0,this.rows-1)}paste(e){(0,n.paste)(e,this.textarea,this.coreService)}attachCustomKeyEventHandler(e){this._customKeyEventHandler=e}registerLinkProvider(e){return this.linkifier2.registerLinkProvider(e)}registerCharacterJoiner(e){if(this._characterJoinerService)return e=this._characterJoinerService.register(e),this.refresh(0,this.rows-1),e;throw new Error("Terminal must be opened first")}deregisterCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}addMarker(e){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)}registerDecoration(e){return this._decorationService.registerDecoration(e)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(e,t,i){this._selectionService.setSelection(e,t,i)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var e;null!=(e=this._selectionService)&&e.clearSelection()}selectAll(){var e;null!=(e=this._selectionService)&&e.selectAll()}selectLines(e,t){var i;null!=(i=this._selectionService)&&i.selectLines(e,t)}_keyDown(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;const t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;t||"Dead"!==e.key&&"AltGraph"!==e.key||(this._unprocessedDeadKey=!0);var i=(0,f.evaluateKeyboardEvent)(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3!==i.type&&2!==i.type)return 1===i.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(i.cancel&&this.cancel(e,!0),!i.key)||!!(e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&1===e.key.length&&65<=e.key.charCodeAt(0)&&e.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?!(this._unprocessedDeadKey=!1):(i.key!==o.C0.ETX&&i.key!==o.C0.CR||(this.textarea.value=""),this._onKey.fire({key:i.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(i.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(e,!0)));{const t=this.rows-1;return this.scrollLines(2===i.type?-t:t),this.cancel(e,!0)}}_isThirdLevelShift(e,t){e=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return"keypress"===t.type?e:e&&(!t.keyCode||47<t.keyCode)}_keyUp(e){this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(16!==e.keyCode&&17!==e.keyCode&&18!==e.keyCode&&this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)}_keyPress(e){let t;if(this._keyPressHandled=!1,this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1))}_inputEvent(e){if(!e.data||"insertText"!==e.inputType||e.composed&&this._keyDownSeen||this.optionsService.rawOptions.screenReaderMode)return!1;if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}resize(e,t){e!==this.cols||t!==this.rows?super.resize(e,t):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(e,t){var i;null!=(i=this._charSizeService)&&i.measure(),null!=(i=this.viewport)&&i.syncScrollArea(!0)}clear(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(g.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}}reset(){this.options.rows=this.rows,this.options.cols=this.cols;var e,t=this._customKeyEventHandler;this._setup(),super.reset(),null!=(e=this._selectionService)&&e.reset(),this._decorationService.reset(),this._customKeyEventHandler=t,this.refresh(0,this.rows-1),null!=(e=this.viewport)&&e.syncScrollArea()}clearTextureAtlas(){var e;null!=(e=this._renderService)&&e.clearTextureAtlas()}_reportFocus(){var e;null!=(e=this.element)&&e.classList.contains("focus")?this.coreService.triggerDataEvent(o.C0.ESC+"[I"):this.coreService.triggerDataEvent(o.C0.ESC+"[O")}_reportWindowsOptions(e){if(this._renderService)switch(e){case a.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:const e=this._renderService.dimensions.canvasWidth.toFixed(0),s=this._renderService.dimensions.canvasHeight.toFixed(0);this.coreService.triggerDataEvent(`${o.C0.ESC}[4;${s};${e}t`);break;case a.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var t=this._renderService.dimensions.actualCellWidth.toFixed(0),i=this._renderService.dimensions.actualCellHeight.toFixed(0);this.coreService.triggerDataEvent(o.C0.ESC+`[6;${i};${t}t`)}}cancel(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1}}t.Terminal=O},9924:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeBasedDebouncer=void 0,t.TimeBasedDebouncer=class{constructor(e,t=1e3){this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(e,t,i){this._rowCount=i,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t;i=Date.now();if(i-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=i,this._innerRefresh();else if(!this._additionalRefreshRequested){const e=i-this._lastRefreshMs,t=this._debounceThresholdMS-e;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},t)}}_innerRefresh(){var e,t;void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount&&(e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1),this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t))}}},1680:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;const n=i(844),l=i(3656),o=i(4725),a=i(2585);i=class extends n.Disposable{constructor(e,t,i,s,r,n,o,a,h){super(),this._scrollLines=e,this._viewportElement=t,this._scrollArea=i,this._element=s,this._bufferService=r,this._optionsService=n,this._charSizeService=o,this._renderService=a,this._coreBrowserService=h,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentScaledCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,l.addDisposableDomListener)(this._viewportElement,"scroll",this._onScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(e=>this._activeBuffer=e.activeBuffer)),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange(e=>this._renderDimensions=e)),setTimeout(()=>this.syncScrollArea(),0)}onThemeChange(e){this._viewportElement.style.backgroundColor=e.background.css}_refresh(e){e?(this._innerRefresh(),null!==this._refreshAnimationFrame&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame)):null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(0<this._charSizeService.height){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/this._coreBrowserService.dpr,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const e=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==e&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=e),this._refreshAnimationFrame=null}syncScrollArea(e=!1){this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length?(this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,this._refresh(e)):this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight||this._refresh(e)}_onScroll(e){var t;this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent&&(this._ignoreNextScrollEvent?(this._ignoreNextScrollEvent=!1,this._scrollLines(0)):(t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp,this._scrollLines(t)))}_smoothScroll(){var e;this._isDisposed||-1===this._smoothScrollState.origin||-1===this._smoothScrollState.target||(e=this._smoothScrollPercent(),this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(e*(this._smoothScrollState.target-this._smoothScrollState.origin)),e<1?this._coreBrowserService.window.requestAnimationFrame(()=>this._smoothScroll()):this._clearSmoothScrollState())}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(e,t){var i=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||0<t&&i<this._lastRecordedBufferHeight)||(e.cancelable&&e.preventDefault(),!1)}onWheel(e){var t=this._getPixelsScrolled(e);return 0!==t&&(this._optionsService.rawOptions.smoothScrollDuration?(this._smoothScrollState.startTime=Date.now(),this._smoothScrollPercent()<1?(this._smoothScrollState.origin=this._viewportElement.scrollTop,-1===this._smoothScrollState.target?this._smoothScrollState.target=this._viewportElement.scrollTop+t:this._smoothScrollState.target+=t,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()):this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))}_getPixelsScrolled(e){if(0===e.deltaY||e.shiftKey)return 0;let t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._currentRowHeight*this._bufferService.rows),t}getLinesScrolled(e){if(0===e.deltaY||e.shiftKey)return 0;let t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(0<this._wheelPartialScroll?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t}_applyScrollModifier(e,t){var i=this._optionsService.rawOptions.fastScrollModifier;return"alt"===i&&t.altKey||"ctrl"===i&&t.ctrlKey||"shift"===i&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity}onTouchStart(e){this._lastTouchY=e.touches[0].pageY}onTouchMove(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!=t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))}},i=s([r(4,a.IBufferService),r(5,a.IOptionsService),r(6,o.ICharSizeService),r(7,o.IRenderService),r(8,o.ICoreBrowserService)],i);t.Viewport=i},3107:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferDecorationRenderer=void 0;const n=i(3656),o=i(4725),a=i(844),h=i(2585);i=class extends a.Disposable{constructor(e,t,i,s){super(),this._screenElement=e,this._bufferService=t,this._decorationService=i,this._renderService=s,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this.register(this._renderService.onDimensionsChange(()=>{this._dimensionsChanged=!0,this._queueRefresh()})),this.register((0,n.addDisposableDomListener)(window,"resize",()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt})),this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh())),this.register(this._decorationService.onDecorationRemoved(e=>this._removeDecoration(e)))}dispose(){this._container.remove(),this._decorationElements.clear(),super.dispose()}_queueRefresh(){void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this.refreshDecorations(),this._animationFrame=void 0}))}refreshDecorations(){for(const e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){var t=document.createElement("div"),i=(t.classList.add("xterm-decoration"),t.style.width=Math.round((e.options.width||1)*this._renderService.dimensions.actualCellWidth)+"px",t.style.height=(e.options.height||1)*this._renderService.dimensions.actualCellHeight+"px",t.style.top=(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.actualCellHeight+"px",t.style.lineHeight=this._renderService.dimensions.actualCellHeight+"px",null!=(i=e.options.x)?i:0);return i&&i>this._bufferService.cols&&(t.style.display="none"),this._refreshXPosition(e,t),t}_refreshStyle(t){var i=t.marker.line-this._bufferService.buffers.active.ydisp;if(i<0||i>=this._bufferService.rows)t.element&&(t.element.style.display="none",t.onRenderEmitter.fire(t.element));else{let e=this._decorationElements.get(t);e||(t.onDispose(()=>this._removeDecoration(t)),e=this._createElement(t),t.element=e,this._decorationElements.set(t,e),this._container.appendChild(e)),e.style.top=i*this._renderService.dimensions.actualCellHeight+"px",e.style.display=this._altBufferIsActive?"none":"block",t.onRenderEmitter.fire(e)}}_refreshXPosition(e,t=e.element){var i;t&&(i=null!=(i=e.options.x)?i:0,"right"===(e.options.anchor||"left")?t.style.right=i?i*this._renderService.dimensions.actualCellWidth+"px":"":t.style.left=i?i*this._renderService.dimensions.actualCellWidth+"px":"")}_removeDecoration(e){var t;null!=(t=this._decorationElements.get(e))&&t.remove(),this._decorationElements.delete(e)}},i=s([r(1,h.IBufferService),r(2,h.IDecorationService),r(3,o.IRenderService)],i);t.BufferDecorationRenderer=i},5871:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorZoneStore=void 0,t.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(e){if(e.options.overviewRulerOptions){for(const t of this._zones)if(t.color===e.options.overviewRulerOptions.color&&t.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(t,e.marker.line))return;if(this._lineAdjacentToZone(t,e.marker.line,e.options.overviewRulerOptions.position))return void this._addLineToZone(t,e.marker.line)}this._zonePoolIndex<this._zonePool.length?(this._zonePool[this._zonePoolIndex].color=e.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=e.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=e.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=e.marker.line,this._zones.push(this._zonePool[this._zonePoolIndex++])):(this._zones.push({color:e.options.overviewRulerOptions.color,position:e.options.overviewRulerOptions.position,startBufferLine:e.marker.line,endBufferLine:e.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++)}}setPadding(e){this._linePadding=e}_lineIntersectsZone(e,t){return t>=e.startBufferLine&&t<=e.endBufferLine}_lineAdjacentToZone(e,t,i){return t>=e.startBufferLine-this._linePadding[i||"full"]&&t<=e.endBufferLine+this._linePadding[i||"full"]}_addLineToZone(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)}}},5744:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OverviewRulerRenderer=void 0;const a=i(5871),n=i(3656),o=i(4725),h=i(844),l=i(2585),c={full:0,left:0,center:0,right:0},_={full:0,left:0,center:0,right:0},d={full:0,left:0,center:0,right:0};i=class extends h.Disposable{constructor(e,t,i,s,r,n,o){super(),this._viewportElement=e,this._screenElement=t,this._bufferService=i,this._decorationService=s,this._renderService=r,this._optionsService=n,this._coreBrowseService=o,this._colorZoneStore=new a.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),null!=(e=this._viewportElement.parentElement)&&e.insertBefore(this._canvas,this._viewportElement);t=this._canvas.getContext("2d");if(!t)throw new Error("Ctx cannot be null");this._ctx=t,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners()}get _width(){return this._optionsService.options.overviewRulerWidth||0}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this.register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0)))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())}))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender(()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this.register(this._optionsService.onOptionChange(e=>{"overviewRulerWidth"===e&&this._queueRefresh(!0)})),this.register((0,n.addDisposableDomListener)(this._coreBrowseService.window,"resize",()=>{this._queueRefresh(!0)})),this._queueRefresh(!0)}dispose(){var e;null!=(e=this._canvas)&&e.remove(),super.dispose()}_refreshDrawConstants(){var e=Math.floor(this._canvas.width/3),t=Math.ceil(this._canvas.width/3);_.full=this._canvas.width,_.left=e,_.center=t,_.right=e,this._refreshDrawHeightConstants(),d.full=0,d.left=0,d.center=_.left,d.right=_.left+_.center}_refreshDrawHeightConstants(){c.full=Math.round(2*this._coreBrowseService.dpr);var e=this._canvas.height/this._bufferService.buffer.lines.length,e=Math.round(Math.max(Math.min(e,12),6)*this._coreBrowseService.dpr);c.left=e,c.center=e,c.right=e}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*c.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*c.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*c.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*c.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=this._width+"px",this._canvas.width=Math.round(this._width*this._coreBrowseService.dpr),this._canvas.style.height=this._screenElement.clientHeight+"px",this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowseService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(const e of this._decorationService.decorations)this._colorZoneStore.addDecoration(e);this._ctx.lineWidth=1;const e=this._colorZoneStore.zones;for(const t of e)"full"!==t.position&&this._renderColorZone(t);for(const i of e)"full"===i.position&&this._renderColorZone(i);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(d[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-c[e.position||"full"]/2),_[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+c[e.position||"full"]))}_queueRefresh(e,t){this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=this._coreBrowseService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}},i=s([r(2,l.IBufferService),r(3,l.IDecorationService),r(4,o.IRenderService),r(5,l.IOptionsService),r(6,o.ICoreBrowserService)],i);t.OverviewRulerRenderer=i},2950:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;const n=i(4725),o=i(2585),a=i(2584);i=class{constructor(e,t,i,s,r,n){this._textarea=e,this._compositionView=t,this._bufferService=i,this._optionsService=s,this._coreService=r,this._renderService=n,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}get isComposing(){return this._isComposing}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(e){this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(t){if(this._compositionView.classList.remove("active"),this._isComposing=!1,t){const t={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{var e;this._isSendingComposition&&(this._isSendingComposition=!1,t.start+=this._dataAlreadySent.length,0<(e=this._isComposing?this._textarea.value.substring(t.start,t.end):this._textarea.value.substring(t.start)).length)&&this._coreService.triggerDataEvent(e,!0)},0)}else{this._isSendingComposition=!1;const t=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(t,!0)}}_handleAnyTextareaChanges(){const i=this._textarea.value;setTimeout(()=>{var e,t;this._isComposing||(t=(e=this._textarea.value).replace(i,""),this._dataAlreadySent=t,e.length>i.length?this._coreService.triggerDataEvent(t,!0):e.length<i.length?this._coreService.triggerDataEvent(""+a.C0.DEL,!0):e.length===i.length&&e!==i&&this._coreService.triggerDataEvent(e,!0))},0)}updateCompositionElements(e){if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){const e=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),i=this._renderService.dimensions.actualCellHeight,s=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,r=e*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=r+"px",this._compositionView.style.top=s+"px",this._compositionView.style.height=i+"px",this._compositionView.style.lineHeight=i+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var t=this._compositionView.getBoundingClientRect();this._textarea.style.left=r+"px",this._textarea.style.top=s+"px",this._textarea.style.width=Math.max(t.width,1)+"px",this._textarea.style.height=Math.max(t.height,1)+"px",this._textarea.style.lineHeight=t.height+"px"}e||setTimeout(()=>this.updateCompositionElements(!0),0)}}},i=s([r(2,o.IBufferService),r(3,o.IOptionsService),r(4,o.ICoreService),r(5,n.IRenderService)],i);t.CompositionHelper=i},9806:(e,t)=>{function l(e,t,i){var s=i.getBoundingClientRect(),e=e.getComputedStyle(i),i=parseInt(e.getPropertyValue("padding-left")),e=parseInt(e.getPropertyValue("padding-top"));return[t.clientX-s.left-i,t.clientY-s.top-e]}Object.defineProperty(t,"__esModule",{value:!0}),t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=l,t.getCoords=function(e,t,i,s,r,n,o,a,h){return(n=n&&l(e,t,i))?(n[0]=Math.ceil((n[0]+(h?o/2:0))/o),n[1]=Math.ceil(n[1]/a),n[0]=Math.min(Math.max(n[0],1),s+(h?1:0)),n[1]=Math.min(Math.max(n[1],1),r),n):void 0}},9504:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;const s=i(2584);function f(e,t,i,s){var r=e-v(i,e),n=t-v(i,t);return S(Math.abs(r-n)-function(t,i,s){let r=0;const n=t-v(s,t),o=i-v(s,i);for(let e=0;e<Math.abs(n-o);e++){const o="A"===h(t,i)?-1:1,a=s.buffer.lines.get(n+o*e);null!=a&&a.isWrapped&&r++}return r}(e,t,i),p(h(e,t),s))}function v(e,t){let i=0,s=e.buffer.lines.get(t),r=null==s?void 0:s.isWrapped;for(;r&&0<=t&&t<e.rows;)i++,s=e.buffer.lines.get(--t),r=null==s?void 0:s.isWrapped;return i}function h(e,t){return t<e?"A":"B"}function g(e,t,i,s,r,n){let o=e,a=t,h="";for(;o!==i||a!==s;)o+=r?1:-1,r&&o>n.cols-1?(h+=n.buffer.translateBufferLineToString(a,!1,e,o),e=o=0,a++):!r&&o<0&&(h+=n.buffer.translateBufferLineToString(a,!1,0,e+1),e=o=n.cols-1,a--);return h+n.buffer.translateBufferLineToString(a,!1,e,o)}function p(e,t){t=t?"O":"[";return s.C0.ESC+t+e}function S(t,i){t=Math.floor(t);let s="";for(let e=0;e<t;e++)s+=i;return s}t.moveToCellSequence=function(e,t,i,s){var r,n,o,a,h,l,c=i.buffer.x,_=i.buffer.y;if(!i.buffer.hasScrollback)return u=c,(0===f(a=_,t,h=i,l=s).length?"":S(g(u,a,u,a-v(h,a),!1,h).length,p("D",l)))+f(_,t,i,s)+(u=c,a=e,o=0<f(h=_,l=t,r=i,n=s).length?l-v(r,l):h,h=function(e,t,i,s,r){r=0<f(i,s,r,n).length?s-v(r,s):t;return e<i&&r<=s||i<=e&&r<s?"C":"D"}(u,h,a,l=l,r),S(g(u,o,a,l,"C"===h,r).length,p(h,n)));let d;if(_===t)return d=e<c?"D":"C",S(Math.abs(c-e),p(d,s));d=t<_?"D":"C";var u=Math.abs(_-t);return S(i.cols-(t<_?e:c)+(u-1)*i.cols+1+((t<_?c:e)-1),p(d,s))}},8036:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;i=i(6114);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=i.isFirefox||i.isLegacyEdge?"bottom":"ideographic"},1752:(e,t)=>{function i(e){return 57508<=e&&e<=57558}Object.defineProperty(t,"__esModule",{value:!0}),t.excludeFromContrastRatioDemands=t.isRestrictedPowerlineGlyph=t.isPowerlineGlyph=t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(e)return e;throw new Error("value must not be falsy")},t.isPowerlineGlyph=i,t.isRestrictedPowerlineGlyph=function(e){return 57520<=e&&e<=57527},t.excludeFromContrastRatioDemands=function(e){return i(e)||9472<=e&&e<=9631}},1296:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;const c=i(3787),n=i(8036),o=i(844),a=i(4725),h=i(2585),l=i(8460),_=i(8055),d=i(9631),u="xterm-dom-renderer-owner-",f="xterm-focus";let v=1,g=class extends o.Disposable{constructor(e,t,i,s,r,n,o,a,h,l){super(),this._colors=e,this._element=t,this._screenElement=i,this._viewportElement=s,this._linkifier2=r,this._charSizeService=o,this._optionsService=a,this._bufferService=h,this._coreBrowserService=l,this._terminalClass=v++,this._rowElements=[],this._rowContainer=document.createElement("div"),this._rowContainer.classList.add("xterm-rows"),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=document.createElement("div"),this._selectionContainer.classList.add("xterm-selection"),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},this._updateDimensions(),this._injectCss(),this._rowFactory=n.createInstance(c.DomRendererRowFactory,document,this._colors),this._element.classList.add(u+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline(e=>this._onLinkHover(e))),this.register(this._linkifier2.onHideLinkUnderline(e=>this._onLinkLeave(e)))}get onRequestRedraw(){return(new l.EventEmitter).event}dispose(){this._element.classList.remove(u+this._terminalClass),(0,d.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),super.dispose()}_updateDimensions(){const e=this._coreBrowserService.dpr;this.dimensions.scaledCharWidth=this._charSizeService.width*e,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*e),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/e),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/e),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(const e of this._rowElements)e.style.width=this.dimensions.canvasWidth+"px",e.style.height=this.dimensions.actualCellHeight+"px",e.style.lineHeight=this.dimensions.actualCellHeight+"px",e.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var t=`${this._terminalSelector} .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: ${this.dimensions.actualCellWidth}px}`;this._dimensionsStyleElement.textContent=t,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"}setColors(e){this._colors=e,this._injectCss()}_injectCss(){this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let i=`${this._terminalSelector} .xterm-rows { color: ${this._colors.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px;}`;i=(i=(i=(i=(i+=`${this._terminalSelector} span:not(.${c.BOLD_CLASS}) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.${c.BOLD_CLASS} { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.${c.ITALIC_CLASS} { font-style: italic;}`)+"@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}")+"@keyframes blink_block_"+this._terminalClass+" { 0% {"+` background-color: ${this._colors.cursor.css};`+` color: ${this._colors.cursorAccent.css}; } 50% {`+` background-color: ${this._colors.cursorAccent.css};`+` color: ${this._colors.cursor.css}; }}`)+`${this._terminalSelector} .xterm-rows:not(.xterm-focus) .${c.CURSOR_CLASS}.${c.CURSOR_STYLE_BLOCK_CLASS} { outline: 1px solid ${this._colors.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .xterm-rows.xterm-focus .${c.CURSOR_CLASS}.${c.CURSOR_BLINK_CLASS}:not(.${c.CURSOR_STYLE_BLOCK_CLASS}) { animation: blink_box_shadow_`+this._terminalClass+" 1s step-end infinite;}"+`${this._terminalSelector} .xterm-rows.xterm-focus .${c.CURSOR_CLASS}.${c.CURSOR_BLINK_CLASS}.${c.CURSOR_STYLE_BLOCK_CLASS} { animation: blink_block_`+this._terminalClass+" 1s step-end infinite;}"+`${this._terminalSelector} .xterm-rows.xterm-focus .${c.CURSOR_CLASS}.${c.CURSOR_STYLE_BLOCK_CLASS} {`+` background-color: ${this._colors.cursor.css};`+` color: ${this._colors.cursorAccent.css};}`+`${this._terminalSelector} .xterm-rows .${c.CURSOR_CLASS}.${c.CURSOR_STYLE_BAR_CLASS} {`+` box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${this._colors.cursor.css} inset;}`+`${this._terminalSelector} .xterm-rows .${c.CURSOR_CLASS}.${c.CURSOR_STYLE_UNDERLINE_CLASS} {`+` box-shadow: 0 -1px 0 ${this._colors.cursor.css} inset;}`)+`${this._terminalSelector} .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .xterm-selection div { position: absolute; background-color: ${this._colors.selectionBackgroundOpaque.css};}${this._terminalSelector} .xterm-selection div { position: absolute; background-color: ${this._colors.selectionInactiveBackgroundOpaque.css};}`,this._colors.ansi.forEach((e,t)=>{i+=`${this._terminalSelector} .xterm-fg-${t} { color: ${e.css}; }${this._terminalSelector} .xterm-bg-${t} { background-color: ${e.css}; }`}),i+=`${this._terminalSelector} .xterm-fg-${n.INVERTED_DEFAULT_COLOR} { color: ${_.color.opaque(this._colors.background).css}; }${this._terminalSelector} .xterm-bg-${n.INVERTED_DEFAULT_COLOR} { background-color: ${this._colors.foreground.css}; }`,this._themeStyleElement.textContent=i}onDevicePixelRatioChange(){this._updateDimensions()}_refreshRowElements(t,i){for(let e=this._rowElements.length;e<=i;e++){const t=document.createElement("div");this._rowContainer.appendChild(t),this._rowElements.push(t)}for(;this._rowElements.length>i;)this._rowContainer.removeChild(this._rowElements.pop())}onResize(e,t){this._refreshRowElements(e,t),this._updateDimensions()}onCharSizeChanged(){this._updateDimensions()}onBlur(){this._rowContainer.classList.remove(f)}onFocus(){this._rowContainer.classList.add(f)}onSelectionChanged(e,t,i){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.onSelectionChanged(e,t,i),this.renderRows(0,this._bufferService.rows-1),e&&t){var s=e[1]-this._bufferService.buffer.ydisp,r=t[1]-this._bufferService.buffer.ydisp,n=Math.max(s,0),o=Math.min(r,this._bufferService.rows-1);if(!(n>=this._bufferService.rows||o<0)){var a=document.createDocumentFragment();if(i){const i=e[0]>t[0];a.appendChild(this._createSelectionElement(n,(i?t:e)[0],(i?e:t)[0],o-n+1))}else{const i=s===n?e[0]:0,h=n===r?t[0]:this._bufferService.cols;if(a.appendChild(this._createSelectionElement(n,i,h)),a.appendChild(this._createSelectionElement(n+1,0,this._bufferService.cols,o-n-1)),n!==o){const e=r===o?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(o,0,e))}}this._selectionContainer.appendChild(a)}}}_createSelectionElement(e,t,i,s=1){var r=document.createElement("div");return r.style.height=s*this.dimensions.actualCellHeight+"px",r.style.top=e*this.dimensions.actualCellHeight+"px",r.style.left=t*this.dimensions.actualCellWidth+"px",r.style.width=this.dimensions.actualCellWidth*(i-t)+"px",r}onCursorMove(){}onOptionsChanged(){this._updateDimensions(),this._injectCss()}clear(){for(const e of this._rowElements)e.innerText=""}renderRows(t,i){var s=this._bufferService.buffer.ybase+this._bufferService.buffer.y,r=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),n=this._optionsService.rawOptions.cursorBlink;for(let e=t;e<=i;e++){const t=this._rowElements[e],i=(t.innerText="",e+this._bufferService.buffer.ydisp),o=this._bufferService.buffer.lines.get(i),a=this._optionsService.rawOptions.cursorStyle;t.appendChild(this._rowFactory.createRow(o,i,i===s,a,r,n,this.dimensions.actualCellWidth,this._bufferService.cols))}}get _terminalSelector(){return"."+u+this._terminalClass}_onLinkHover(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)}_onLinkLeave(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)}_setCellUnderline(e,t,i,s,r,n){for(;e!==t||i!==s;){const t=this._rowElements[i];if(!t)return;const s=t.children[e];s&&(s.style.textDecoration=n?"underline":"none"),++e>=r&&(e=0,i++)}}};g=s([r(5,h.IInstantiationService),r(6,a.ICharSizeService),r(7,h.IOptionsService),r(8,h.IBufferService),r(9,a.ICoreBrowserService)],g),t.DomRenderer=g},3787:function(e,L,t){var i=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(L,"__esModule",{value:!0}),L.DomRendererRowFactory=L.CURSOR_STYLE_UNDERLINE_CLASS=L.CURSOR_STYLE_BAR_CLASS=L.CURSOR_STYLE_BLOCK_CLASS=L.CURSOR_BLINK_CLASS=L.CURSOR_CLASS=L.STRIKETHROUGH_CLASS=L.UNDERLINE_CLASS=L.ITALIC_CLASS=L.DIM_CLASS=L.BOLD_CLASS=void 0;const R=t(8036),k=t(643),a=t(511),r=t(2585),D=t(8055),n=t(4725),A=t(4269),h=t(1752),x=t(3734);L.BOLD_CLASS="xterm-bold",L.DIM_CLASS="xterm-dim",L.ITALIC_CLASS="xterm-italic",L.UNDERLINE_CLASS="xterm-underline",L.STRIKETHROUGH_CLASS="xterm-strikethrough",L.CURSOR_CLASS="xterm-cursor",L.CURSOR_BLINK_CLASS="xterm-cursor-blink",L.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",L.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",L.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";t=class{constructor(e,t,i,s,r,n,o){this._document=e,this._colors=t,this._characterJoinerService=i,this._optionsService=s,this._coreBrowserService=r,this._coreService=n,this._decorationService=o,this._workCell=new a.CellData,this._columnSelectMode=!1}setColors(e){this._colors=e}onSelectionChanged(e,t,i){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=i}createRow(u,f,v,g,p,S,m,t){var C=this._document.createDocumentFragment(),b=this._characterJoinerService.getJoinedCharacters(f);let i=0;for(let e=Math.min(u.length,t)-1;0<=e;e--)if(u.loadCell(e,this._workCell).getCode()!==k.NULL_CELL_CODE||v&&e===p){i=e+1;break}for(let d=0;d<i;d++){u.loadCell(d,this._workCell);let _=this._workCell.getWidth();if(0!==_){let e=!1,t=d,i=this._workCell;if(0<b.length&&d===b[0][0]){e=!0;const L=b.shift();i=new A.JoinedCellData(this._workCell,u.translateToString(!0,L[0],L[1]),L[1]-L[0]),t=L[1]-1,_=i.getWidth()}var y=this._document.createElement("span");if(1<_&&(y.style.width=m*_+"px"),e&&(y.style.display="inline",p>=d)&&p<=t&&(p=d),!this._coreService.isCursorHidden&&v&&d===p)switch(y.classList.add(L.CURSOR_CLASS),S&&y.classList.add(L.CURSOR_BLINK_CLASS),g){case"bar":y.classList.add(L.CURSOR_STYLE_BAR_CLASS);break;case"underline":y.classList.add(L.CURSOR_STYLE_UNDERLINE_CLASS);break;default:y.classList.add(L.CURSOR_STYLE_BLOCK_CLASS)}if(i.isBold()&&y.classList.add(L.BOLD_CLASS),i.isItalic()&&y.classList.add(L.ITALIC_CLASS),i.isDim()&&y.classList.add(L.DIM_CLASS),i.isInvisible()?y.textContent=k.WHITESPACE_CELL_CHAR:y.textContent=i.getChars()||k.WHITESPACE_CELL_CHAR,i.isUnderline()&&(y.classList.add(L.UNDERLINE_CLASS+"-"+i.extended.underlineStyle)," "===y.textContent&&(y.innerHTML=" "),!i.isUnderlineColorDefault()))if(i.isUnderlineColorRGB())y.style.textDecorationColor=`rgb(${x.AttributeData.toColorRGB(i.getUnderlineColor()).join(",")})`;else{let e=i.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&i.isBold()&&e<8&&(e+=8),y.style.textDecorationColor=this._colors.ansi[e].css}i.isStrikethrough()&&y.classList.add(L.STRIKETHROUGH_CLASS);let s=i.getFgColor(),r=i.getFgColorMode(),n=i.getBgColor(),o=i.getBgColorMode();var w=!!i.isInverse();if(w){const u=s,L=(s=n,n=u,r);r=o,o=L}let a,h,l=!1;this._decorationService.forEachDecorationAtCell(d,f,void 0,e=>{"top"!==e.options.layer&&l||(e.backgroundColorRGB&&(o=50331648,n=e.backgroundColorRGB.rgba>>8&16777215,a=e.backgroundColorRGB),e.foregroundColorRGB&&(r=50331648,s=e.foregroundColorRGB.rgba>>8&16777215,h=e.foregroundColorRGB),l="top"===e.options.layer)});var E=this._isCellInSelection(d,f);let c;switch(l||this._colors.selectionForeground&&E&&(r=50331648,s=this._colors.selectionForeground.rgba>>8&16777215,h=this._colors.selectionForeground),E&&(a=this._coreBrowserService.isFocused?this._colors.selectionBackgroundOpaque:this._colors.selectionInactiveBackgroundOpaque,l=!0),l&&y.classList.add("xterm-decoration-top"),o){case 16777216:case 33554432:c=this._colors.ansi[n],y.classList.add("xterm-bg-"+n);break;case 50331648:c=D.rgba.toColor(n>>16,n>>8&255,255&n),this._addStyle(y,"background-color:#"+B((n>>>0).toString(16),"0",6));break;default:w?(c=this._colors.foreground,y.classList.add("xterm-bg-"+R.INVERTED_DEFAULT_COLOR)):c=this._colors.background}switch(a||i.isDim()&&(a=D.color.multiplyOpacity(c,.5)),r){case 16777216:case 33554432:i.isBold()&&s<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(s+=8),this._applyMinimumContrast(y,c,this._colors.ansi[s],i,a,void 0)||y.classList.add("xterm-fg-"+s);break;case 50331648:const u=D.rgba.toColor(s>>16&255,s>>8&255,255&s);this._applyMinimumContrast(y,c,u,i,a,h)||this._addStyle(y,"color:#"+B(s.toString(16),"0",6));break;default:this._applyMinimumContrast(y,c,this._colors.foreground,i,a,void 0)||w&&y.classList.add("xterm-fg-"+R.INVERTED_DEFAULT_COLOR)}C.appendChild(y),d=t}}return C}_applyMinimumContrast(e,t,i,s,r,n){if(1===this._optionsService.rawOptions.minimumContrastRatio||(0,h.excludeFromContrastRatioDemands)(s.getCode()))return!1;let o;return void 0===(o=r||n?o:this._colors.contrastCache.getColor(t.rgba,i.rgba))&&(o=D.color.ensureContrastRatio(r||t,n||i,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor((r||t).rgba,(n||i).rgba,null!=o?o:null)),!!o&&(this._addStyle(e,"color:"+o.css),!0)}_addStyle(e,t){e.setAttribute("style",`${e.getAttribute("style")||""}${t};`)}_isCellInSelection(e,t){var i=this._selectionStart,s=this._selectionEnd;return!(!i||!s)&&(this._columnSelectMode?i[0]<=s[0]?e>=i[0]&&t>=i[1]&&e<s[0]&&t<=s[1]:e<i[0]&&t>=i[1]&&e>=s[0]&&t<=s[1]:t>i[1]&&t<s[1]||i[1]===s[1]&&t===i[1]&&e>=i[0]&&e<s[0]||i[1]<s[1]&&t===s[1]&&e<s[0]||i[1]<s[1]&&t===i[1]&&e>=i[0])}};function B(e,t,i){for(;e.length<i;)e=t+e;return e}t=i([s(2,n.ICharacterJoinerService),s(3,r.IOptionsService),s(4,n.ICoreBrowserService),s(5,r.ICoreService),s(6,r.IDecorationService)],t),L.DomRendererRowFactory=t},456:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0,t.SelectionModel=class{constructor(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){var e;return this.isSelectAllActive?[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?(e=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?e%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?(e=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[Math.max(e,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:void 0}areSelectionValuesReversed(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])}onTrim(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;const n=i(2585),o=i(8460);i=class{constructor(e,t,i){this._optionsService=i,this.width=0,this.height=0,this._onCharSizeChange=new o.EventEmitter,this._measureStrategy=new a(e,t,this._optionsService)}get hasValidSize(){return 0<this.width&&0<this.height}get onCharSizeChange(){return this._onCharSizeChange.event}measure(){var e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}},i=s([r(2,n.IOptionsService)],i);t.CharSizeService=i;class a{constructor(e,t,i){this._document=e,this._parentElement=t,this._optionsService=i,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}measure(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var e=this._measureElement.getBoundingClientRect();return 0!==e.width&&0!==e.height&&(this._result.width=e.width,this._result.height=Math.ceil(e.height)),this._result}}},4269:function(a,e,t){var i=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(e,"__esModule",{value:!0}),e.CharacterJoinerService=e.JoinedCellData=void 0;const r=t(3734),c=t(643),n=t(511),o=t(2585);class h extends r.AttributeData{constructor(e,t,i){super(),this.content=0,this.combinedData="",this.fg=e.fg,this.bg=e.bg,this.combinedData=t,this._width=i}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(e){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}e.JoinedCellData=h;t=class a{constructor(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new n.CellData}register(e){e={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(e),e.id}deregister(t){for(let e=0;e<this._characterJoiners.length;e++)if(this._characterJoiners[e].id===t)return this._characterJoiners.splice(e,1),!0;return!1}getJoinedCharacters(t){if(0===this._characterJoiners.length)return[];var i=this._bufferService.buffer.lines.get(t);if(!i||0===i.length)return[];var s=[],r=i.translateToString(!0);let n=0,o=0,a=0,h=i.getFg(0),l=i.getBg(0);for(let e=0;e<i.getTrimmedLength();e++)if(i.loadCell(e,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==h||this._workCell.bg!==l){if(1<e-n){const t=this._getJoinedRanges(r,a,o,i,n);for(let e=0;e<t.length;e++)s.push(t[e])}n=e,a=o,h=this._workCell.fg,l=this._workCell.bg}o+=this._workCell.getChars().length||c.WHITESPACE_CELL_CHAR.length}if(1<this._bufferService.cols-n){const t=this._getJoinedRanges(r,a,o,i,n);for(let e=0;e<t.length;e++)s.push(t[e])}return s}_getJoinedRanges(e,t,i,s,r){var n=e.substring(t,i);let o=[];try{o=this._characterJoiners[0].handler(n)}catch(e){console.error(e)}for(let e=1;e<this._characterJoiners.length;e++)try{const t=this._characterJoiners[e].handler(n);for(let e=0;e<t.length;e++)a._mergeRanges(o,t[e])}catch(e){console.error(e)}return this._stringRangesToCellRanges(o,s,r),o}_stringRangesToCellRanges(t,i,s){let r=0,n=!1,o=0,a=t[r];if(a){for(let e=s;e<this._bufferService.cols;e++){const s=i.getWidth(e),h=i.getString(e).length||c.WHITESPACE_CELL_CHAR.length;if(0!==s){if(!n&&a[0]<=o&&(a[0]=e,n=!0),a[1]<=o){if(a[1]=e,!(a=t[++r]))break;n=a[0]<=o&&(a[0]=e,!0)}o+=h}}a&&(a[1]=this._bufferService.cols)}}static _mergeRanges(t,i){let s=!1;for(let e=0;e<t.length;e++){var r=t[e];if(s){if(i[1]<=r[0])return t[e-1][1]=i[1],t;if(i[1]<=r[1])return t[e-1][1]=Math.max(i[1],r[1]),t.splice(e,1),t;t.splice(e,1),e--}else{if(i[1]<=r[0])return t.splice(e,0,i),t;if(i[1]<=r[1])return r[0]=Math.min(i[0],r[0]),t;i[0]<r[1]&&(r[0]=Math.min(i[0],r[0]),s=!0)}}return s?t[t.length-1][1]=i[1]:t.push(i),t}},t=i([s(0,o.IBufferService)],t);e.CharacterJoinerService=t},5114:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0,t.CoreBrowserService=class{constructor(e,t){this._textarea=e,this.window=t}get dpr(){return this.window.devicePixelRatio}get isFocused(){return(this._textarea.getRootNode?this._textarea.getRootNode():this._textarea.ownerDocument).activeElement===this._textarea&&this._textarea.ownerDocument.hasFocus()}}},8934:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;const n=i(4725),o=i(9806);i=class{constructor(e,t){this._renderService=e,this._charSizeService=t}getCoords(e,t,i,s,r){return(0,o.getCoords)(window,e,t,i,s,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,r)}getMouseReportCoords(e,t){e=(0,o.getCoordsRelativeToElement)(window,e,t);if(!(!this._charSizeService.hasValidSize||e[0]<0||e[1]<0||e[0]>=this._renderService.dimensions.canvasWidth||e[1]>=this._renderService.dimensions.canvasHeight))return{col:Math.floor(e[0]/this._renderService.dimensions.actualCellWidth),row:Math.floor(e[1]/this._renderService.dimensions.actualCellHeight),x:Math.floor(e[0]),y:Math.floor(e[1])}}},i=s([r(0,n.IRenderService),r(1,n.ICharSizeService)],i);t.MouseService=i},3230:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;const h=i(6193),l=i(8460),n=i(844),c=i(5596),_=i(3656),o=i(2585),a=i(4725);i=class extends n.Disposable{constructor(e,t,i,s,r,n,o,a){if(super(),this._renderer=e,this._rowCount=t,this._charSizeService=r,this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=new l.EventEmitter,this._onRenderedViewportChange=new l.EventEmitter,this._onRender=new l.EventEmitter,this._onRefreshRequest=new l.EventEmitter,this.register({dispose:()=>this._renderer.dispose()}),this._renderDebouncer=new h.RenderDebouncer(a.window,(e,t)=>this._renderRows(e,t)),this.register(this._renderDebouncer),this._screenDprMonitor=new c.ScreenDprMonitor(a.window),this._screenDprMonitor.setListener(()=>this.onDevicePixelRatioChange()),this.register(this._screenDprMonitor),this.register(o.onResize(()=>this._fullRefresh())),this.register(o.buffers.onBufferActivate(()=>{var e;return null==(e=this._renderer)?void 0:e.clear()})),this.register(s.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._charSizeService.onCharSizeChange(()=>this.onCharSizeChanged())),this.register(n.onDecorationRegistered(()=>this._fullRefresh())),this.register(n.onDecorationRemoved(()=>this._fullRefresh())),this._renderer.onRequestRedraw(e=>this.refreshRows(e.start,e.end,!0)),this.register((0,_.addDisposableDomListener)(a.window,"resize",()=>this.onDevicePixelRatioChange())),"IntersectionObserver"in a.window){const e=new a.window.IntersectionObserver(e=>this._onIntersectionChange(e[e.length-1]),{threshold:0});e.observe(i),this.register({dispose:()=>e.disconnect()})}}get onDimensionsChange(){return this._onDimensionsChange.event}get onRenderedViewportChange(){return this._onRenderedViewportChange.event}get onRender(){return this._onRender.event}get onRefreshRequest(){return this._onRefreshRequest.event}get dimensions(){return this._renderer.dimensions}_onIntersectionChange(e){this._isPaused=void 0===e.isIntersecting?0===e.intersectionRatio:!e.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(e,t,i=!1){this._isPaused?this._needsFullRefresh=!0:(i||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount))}_renderRows(e,t){this._renderer.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0}resize(e,t){this._rowCount=t,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()}_fireOnCanvasResize(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)}dispose(){super.dispose()}setRenderer(e){this._renderer.dispose(),this._renderer=e,this._renderer.onRequestRedraw(e=>this.refreshRows(e.start,e.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh()}addRefreshCallback(e){return this._renderDebouncer.addRefreshCallback(e)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var e,t;null!=(t=null==(e=this._renderer)?void 0:e.clearTextureAtlas)&&t.call(e),this._fullRefresh()}setColors(e){this._renderer.setColors(e),this._fullRefresh()}onDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)}onResize(e,t){this._renderer.onResize(e,t),this._fullRefresh()}onCharSizeChanged(){this._renderer.onCharSizeChanged()}onBlur(){this._renderer.onBlur()}onFocus(){this._renderer.onFocus()}onSelectionChanged(e,t,i){this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=i,this._renderer.onSelectionChanged(e,t,i)}onCursorMove(){this._renderer.onCursorMove()}clear(){this._renderer.clear()}},i=s([r(3,o.IOptionsService),r(4,a.ICharSizeService),r(5,o.IDecorationService),r(6,o.IBufferService),r(7,a.ICoreBrowserService)],i);t.RenderService=i},9312:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;const a=i(6114),l=i(456),c=i(511),_=i(8460),n=i(4725),o=i(2585),h=i(9806),d=i(9504),u=i(844),f=i(4841),v=String.fromCharCode(160),g=new RegExp(v,"g");i=class extends u.Disposable{constructor(e,t,i,s,r,n,o,a,h){super(),this._element=e,this._screenElement=t,this._linkifier=i,this._bufferService=s,this._coreService=r,this._mouseService=n,this._optionsService=o,this._renderService=a,this._coreBrowserService=h,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new c.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new _.EventEmitter),this._onRedrawRequest=this.register(new _.EventEmitter),this._onSelectionChange=this.register(new _.EventEmitter),this._onRequestScrollLines=this.register(new _.EventEmitter),this._mouseMoveListener=e=>this._onMouseMove(e),this._mouseUpListener=e=>this._onMouseUp(e),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(e=>this._onTrim(e)),this.register(this._bufferService.buffers.onBufferActivate(e=>this._onBufferActivate(e))),this.enable(),this._model=new l.SelectionModel(this._bufferService),this._activeSelectionMode=0}get onLinuxMouseSelection(){return this._onLinuxMouseSelection.event}get onRequestRedraw(){return this._onRedrawRequest.event}get onSelectionChange(){return this._onSelectionChange.event}get onRequestScrollLines(){return this._onRequestScrollLines.event}dispose(){this._removeMouseDownListeners()}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])}get selectionText(){const t=this._model.finalSelectionStart,i=this._model.finalSelectionEnd;if(!t||!i)return"";var s=this._bufferService.buffer,r=[];if(3===this._activeSelectionMode){if(t[0]===i[0])return"";const n=(t[0]<i[0]?t:i)[0],a=(t[0]<i[0]?i:t)[0];for(let e=t[1];e<=i[1];e++){const t=s.translateBufferLineToString(e,!0,n,a);r.push(t)}}else{var e=t[1]===i[1]?i[0]:void 0;r.push(s.translateBufferLineToString(t[1],!0,t[0],e));for(let e=t[1]+1;e<=i[1]-1;e++){const t=s.lines.get(e),i=s.translateBufferLineToString(e,!0);null!=t&&t.isWrapped?r[r.length-1]+=i:r.push(i)}if(t[1]!==i[1]){const t=s.lines.get(i[1]),o=s.translateBufferLineToString(i[1],!0,0,i[0]);t&&t.isWrapped?r[r.length-1]+=o:r.push(o)}}return r.map(e=>e.replace(g," ")).join(a.isWindows?"\r\n":"\n")}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(e){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),a.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})}_isClickInSelection(e){var e=this._getMouseBufferCoords(e),t=this._model.finalSelectionStart,i=this._model.finalSelectionEnd;return!!(t&&i&&e)&&this._areCoordsInSelection(e,t,i)}isCellInSelection(e,t){var i=this._model.finalSelectionStart,s=this._model.finalSelectionEnd;return!(!i||!s)&&this._areCoordsInSelection([e,t],i,s)}_areCoordsInSelection(e,t,i){return e[1]>t[1]&&e[1]<i[1]||t[1]===i[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<i[0]||t[1]<i[1]&&e[1]===i[1]&&e[0]<i[0]||t[1]<i[1]&&e[1]===t[1]&&e[0]>=t[0]}_selectWordAtCursor(e,t){var i=null==(i=null==(i=this._linkifier.currentLink)?void 0:i.link)?void 0:i.range;return i?(this._model.selectionStart=[i.start.x-1,i.start.y-1],this._model.selectionStartLength=(0,f.getRangeLength)(i,this._bufferService.cols),!(this._model.selectionEnd=void 0)):!!(i=this._getMouseBufferCoords(e))&&(this._selectWordAt(i,t),!(this._model.selectionEnd=void 0))}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}_onTrim(e){this._model.onTrim(e)&&this.refresh()}_getMouseBufferCoords(e){e=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(e)return e[0]--,e[1]--,e[1]+=this._bufferService.buffer.ydisp,e}_getMouseEventScrollAmount(e){let t=(0,h.getCoordsRelativeToElement)(this._coreBrowserService.window,e,this._screenElement)[1];e=this._renderService.dimensions.canvasHeight;return 0<=t&&t<=e?0:(t>e&&(t-=e),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))}shouldForceSelection(e){return a.isMac?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey}onMouseDown(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_onIncrementalClick(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))}_onSingleClick(e){this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart&&(this._model.selectionEnd=void 0,e=this._bufferService.buffer.lines.get(this._model.selectionStart[1]))&&e.length!==this._model.selectionStart[0]&&0===e.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}_onDoubleClick(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)}_onTripleClick(e){e=this._getMouseBufferCoords(e);e&&(this._activeSelectionMode=2,this._selectLineAt(e[1]))}shouldColumnSelect(e){return e.altKey&&!(a.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_onMouseMove(e){if(e.stopImmediatePropagation(),this._model.selectionStart){var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),3!==this._activeSelectionMode&&(0<this._dragScrollAmount?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var i=this._bufferService.buffer;if(this._model.selectionEnd[1]<i.lines.length){const e=i.lines.get(this._model.selectionEnd[1]);e&&0===e.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}t&&t[0]===this._model.selectionEnd[0]&&t[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}}_dragScroll(){var e;this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount&&(this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1}),e=this._bufferService.buffer,0<this._dragScrollAmount?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh())}_onMouseUp(e){const t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const t=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(t&&void 0!==t[0]&&void 0!==t[1]){const e=(0,d.moveToCellSequence)(t[0]-1,t[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(e,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,i=!(!e||!t||e[0]===t[0]&&e[1]===t[1]);i?e&&t&&(this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,i)):this._oldHasSelection&&this._fireOnSelectionChange(e,t,i)}_fireOnSelectionChange(e,t,i){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=i,this._onSelectionChange.fire()}_onBufferActivate(e){this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(e=>this._onTrim(e))}_convertViewportColToCharacterIndex(t,i){let s=i[0];for(let e=0;i[0]>=e;e++){var r=t.loadCell(e,this._workCell).getChars().length;0===this._workCell.getWidth()?s--:1<r&&i[0]!==e&&(s+=r-1)}return s}setSelection(e,t,i){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=i,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(h,l,c=!0,_=!0){if(!(h[0]>=this._bufferService.cols)){var d=this._bufferService.buffer,u=d.lines.get(h[1]);if(u){var f=d.translateBufferLineToString(h[1],!1);let i=this._convertViewportColToCharacterIndex(u,h),s=i;var v=h[0]-i;let r=0,n=0,o=0,a=0;if(" "===f.charAt(i)){for(;0<i&&" "===f.charAt(i-1);)i--;for(;s<f.length&&" "===f.charAt(s+1);)s++}else{let e=h[0],t=h[0];0===u.getWidth(e)&&(r++,e--),2===u.getWidth(t)&&(n++,t++);const _=u.getString(t).length;for(1<_&&(a+=_-1,s+=_-1);0<e&&0<i&&!this._isCharWordSeparator(u.loadCell(e-1,this._workCell));){u.loadCell(e-1,this._workCell);const h=this._workCell.getChars().length;0===this._workCell.getWidth()?(r++,e--):1<h&&(o+=h-1,i-=h-1),i--,e--}for(;t<u.length&&s+1<f.length&&!this._isCharWordSeparator(u.loadCell(t+1,this._workCell));){u.loadCell(t+1,this._workCell);const h=this._workCell.getChars().length;2===this._workCell.getWidth()?(n++,t++):1<h&&(a+=h-1,s+=h-1),s++,t++}}s++;let e=i+v-r+o,t=Math.min(this._bufferService.cols,s-i+r+n-o-a);if(l||""!==f.slice(i,s).trim()){if(c&&0===e&&32!==u.getCodePoint(0)){const l=d.lines.get(h[1]-1);if(l&&u.isWrapped&&32!==l.getCodePoint(this._bufferService.cols-1)){const l=this._getWordAt([this._bufferService.cols-1,h[1]-1],!1,!0,!1);if(l){const h=this._bufferService.cols-l.start;e-=h,t+=h}}}if(_&&e+t===this._bufferService.cols&&32!==u.getCodePoint(this._bufferService.cols-1)){const l=d.lines.get(h[1]+1);if(null!=l&&l.isWrapped&&32!==l.getCodePoint(0)){const l=this._getWordAt([0,h[1]+1],!1,!1,!0);l&&(t+=l.length)}}return{start:e,length:t}}}}}_selectWordAt(e,t){var i=this._getWordAt(e,t);if(i){for(;i.start<0;)i.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[i.start,e[1]],this._model.selectionStartLength=i.length}}_selectToWordAt(t){var i=this._getWordAt(t,!0);if(i){let e=t[1];for(;i.start<0;)i.start+=this._bufferService.cols,e--;if(!this._model.areSelectionValuesReversed())for(;i.start+i.length>this._bufferService.cols;)i.length-=this._bufferService.cols,e++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?i.start:i.start+i.length,e]}}_isCharWordSeparator(e){return 0!==e.getWidth()&&0<=this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())}_selectLineAt(e){var e=this._bufferService.buffer.getWrappedRangeForLine(e),t={start:{x:0,y:e.first},end:{x:this._bufferService.cols-1,y:e.last}};this._model.selectionStart=[0,e.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,f.getRangeLength)(t,this._bufferService.cols)}},i=s([r(3,o.IBufferService),r(4,o.ICoreService),r(5,n.IMouseService),r(6,o.IOptionsService),r(7,n.IRenderService),r(8,n.ICoreBrowserService)],i);t.SelectionService=i},4725:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ICharacterJoinerService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;i=i(8343);t.ICharSizeService=(0,i.createDecorator)("CharSizeService"),t.ICoreBrowserService=(0,i.createDecorator)("CoreBrowserService"),t.IMouseService=(0,i.createDecorator)("MouseService"),t.IRenderService=(0,i.createDecorator)("RenderService"),t.ISelectionService=(0,i.createDecorator)("SelectionService"),t.ICharacterJoinerService=(0,i.createDecorator)("CharacterJoinerService")},6349:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;const s=i(8460);t.CircularList=class{constructor(e){this._maxLength=e,this.onDeleteEmitter=new s.EventEmitter,this.onInsertEmitter=new s.EventEmitter,this.onTrimEmitter=new s.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get onDelete(){return this.onDeleteEmitter.event}get onInsert(){return this.onInsertEmitter.event}get onTrim(){return this.onTrimEmitter.event}get maxLength(){return this._maxLength}set maxLength(t){if(this._maxLength!==t){var i=new Array(t);for(let e=0;e<Math.min(t,this.length);e++)i[e]=this._array[this._getCyclicIndex(e)];this._array=i,this._maxLength=t,this._startIndex=0}}get length(){return this._length}set length(t){if(t>this._length)for(let e=this._length;e<t;e++)this._array[e]=void 0;this._length=t}get(e){return this._array[this._getCyclicIndex(e)]}set(e,t){this._array[this._getCyclicIndex(e)]=t}push(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(t,i,...s){if(i){for(let e=t;e<this._length-i;e++)this._array[this._getCyclicIndex(e)]=this._array[this._getCyclicIndex(e+i)];this._length-=i,this.onDeleteEmitter.fire({index:t,amount:i})}for(let e=this._length-1;e>=t;e--)this._array[this._getCyclicIndex(e+s.length)]=this._array[this._getCyclicIndex(e)];for(let e=0;e<s.length;e++)this._array[this._getCyclicIndex(t+e)]=s[e];if(s.length&&this.onInsertEmitter.fire({index:t,amount:s.length}),this._length+s.length>this._maxLength){const t=this._length+s.length-this._maxLength;this._startIndex+=t,this._length=this._maxLength,this.onTrimEmitter.fire(t)}else this._length+=s.length}trimStart(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}shiftElements(t,i,s){if(!(i<=0)){if(t<0||t>=this._length)throw new Error("start argument out of range");if(t+s<0)throw new Error("Cannot shift elements in list beyond index 0");if(0<s){for(let e=i-1;0<=e;e--)this.set(t+e+s,this.get(t+e));var e=t+i+s-this._length;if(0<e)for(this._length+=e;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let e=0;e<i;e++)this.set(t+e+s,this.get(t+e))}}_getCyclicIndex(e){return(this._startIndex+e)%this._maxLength}}},1439:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t,i=5){if("object"!=typeof t)return t;var s=Array.isArray(t)?[]:{};for(const r in t)s[r]=i<=1?t[r]:t[r]&&e(t[r],i-1);return s}},8055:(e,t)=>{var a,c,_,i;function r(e){e=e.toString(16);return e.length<2?"0"+e:e}function d(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}function h(e,t,i){var s=e>>24&255,r=e>>16&255,n=e>>8&255;let o=t>>24&255,a=t>>16&255,h=t>>8&255,l=d(c.relativeLuminance2(o,a,h),c.relativeLuminance2(s,r,n));for(;l<i&&(0<o||0<a||0<h);)o-=Math.max(0,Math.ceil(.1*o)),a-=Math.max(0,Math.ceil(.1*a)),h-=Math.max(0,Math.ceil(.1*h)),l=d(c.relativeLuminance2(o,a,h),c.relativeLuminance2(s,r,n));return(o<<24|a<<16|h<<8|255)>>>0}function l(e,t,i){var s=e>>24&255,r=e>>16&255,n=e>>8&255;let o=t>>24&255,a=t>>16&255,h=t>>8&255,l=d(c.relativeLuminance2(o,a,h),c.relativeLuminance2(s,r,n));for(;l<i&&(o<255||a<255||h<255);)o=Math.min(255,o+Math.ceil(.1*(255-o))),a=Math.min(255,a+Math.ceil(.1*(255-a))),h=Math.min(255,h+Math.ceil(.1*(255-h))),l=d(c.relativeLuminance2(o,a,h),c.relativeLuminance2(s,r,n));return(o<<24|a<<16|h<<8|255)>>>0}function s(e,t,i){e/=255,t/=255,i/=255;return.2126*(e<=.03928?e/12.92:Math.pow((.055+e)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((.055+t)/1.055,2.4))+.0722*(i<=.03928?i/12.92:Math.pow((.055+i)/1.055,2.4))}function n(e,t){var t=Math.round(255*t),[e,i,s]=_.toChannels(e.rgba);return{css:a.toCss(e,i,s,t),rgba:a.toRgba(e,i,s,t)}}Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=void 0,(i=a=t.channels||(t.channels={})).toCss=function(e,t,i,s){return void 0!==s?"#"+r(e)+r(t)+r(i)+r(s):"#"+r(e)+r(t)+r(i)},i.toRgba=function(e,t,i,s=255){return(e<<24|t<<16|i<<8|s)>>>0},(i=t.color||(t.color={})).blend=function(e,t){var i,s,r,n,o=(255&t.rgba)/255;return 1==o?{css:t.css,rgba:t.rgba}:(s=t.rgba>>24&255,n=t.rgba>>16&255,t=t.rgba>>8&255,r=e.rgba>>24&255,i=e.rgba>>16&255,e=e.rgba>>8&255,s=r+Math.round((s-r)*o),r=i+Math.round((n-i)*o),n=e+Math.round((t-e)*o),{css:a.toCss(s,r,n),rgba:a.toRgba(s,r,n)})},i.isOpaque=function(e){return 255==(255&e.rgba)},i.ensureContrastRatio=function(e,t,i){e=_.ensureContrastRatio(e.rgba,t.rgba,i);if(e)return _.toColor(e>>24&255,e>>16&255,e>>8&255)},i.opaque=function(e){var e=(255|e.rgba)>>>0,[t,i,s]=_.toChannels(e);return{css:a.toCss(t,i,s),rgba:e}},i.opacity=n,i.multiplyOpacity=function(e,t){return n(e,(255&e.rgba)*t/255)},i.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]},(t.css||(t.css={})).toColor=function(e){if(e.match(/#[0-9a-f]{3,8}/i))switch(e.length){case 4:{const t=parseInt(e.slice(1,2).repeat(2),16),i=parseInt(e.slice(2,3).repeat(2),16),s=parseInt(e.slice(3,4).repeat(2),16);return _.toColor(t,i,s)}case 5:{const t=parseInt(e.slice(1,2).repeat(2),16),r=parseInt(e.slice(2,3).repeat(2),16),n=parseInt(e.slice(3,4).repeat(2),16),o=parseInt(e.slice(4,5).repeat(2),16);return _.toColor(t,r,n,o)}case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}const t=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(t){const e=parseInt(t[1]),a=parseInt(t[2]),h=parseInt(t[3]),l=Math.round(255*(void 0===t[5]?1:parseFloat(t[5])));return _.toColor(e,a,h,l)}throw new Error("css.toColor: Unsupported css format")},(i=c=t.rgb||(t.rgb={})).relativeLuminance=function(e){return s(e>>16&255,e>>8&255,255&e)},i.relativeLuminance2=s,(i=_=t.rgba||(t.rgba={})).ensureContrastRatio=function(e,t,i){const s=c.relativeLuminance(e>>8),r=c.relativeLuminance(t>>8);if(d(s,r)<i){if(r<s){const r=h(e,t,i),a=d(s,c.relativeLuminance(r>>8));if(a<i){const h=l(e,t,i);return a>d(s,c.relativeLuminance(h>>8))?r:h}return r}var n=l(e,t,i),o=d(s,c.relativeLuminance(n>>8));if(o<i){const l=h(e,t,i);return o>d(s,c.relativeLuminance(l>>8))?n:l}return n}},i.reduceLuminance=h,i.increaseLuminance=l,i.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},i.toColor=function(e,t,i,s){return{css:a.toCss(e,t,i,s),rgba:a.toRgba(e,t,i,s)}},t.toPaddedHex=r,t.contrastRatio=d},8969:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;const s=i(844),r=i(2585),n=i(4348),o=i(7866),a=i(744),h=i(7302),l=i(6975),c=i(8460),_=i(1753),d=i(3730),u=i(1480),f=i(7994),v=i(9282),g=i(5435),p=i(5981),S=i(2660);let m=!1;class C extends s.Disposable{constructor(e){super(),this._onBinary=new c.EventEmitter,this._onData=new c.EventEmitter,this._onLineFeed=new c.EventEmitter,this._onResize=new c.EventEmitter,this._onScroll=new c.EventEmitter,this._onWriteParsed=new c.EventEmitter,this._instantiationService=new n.InstantiationService,this.optionsService=new h.OptionsService(e),this._instantiationService.setService(r.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(a.BufferService)),this._instantiationService.setService(r.IBufferService,this._bufferService),this._logService=this._instantiationService.createInstance(o.LogService),this._instantiationService.setService(r.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(l.CoreService,()=>this.scrollToBottom())),this._instantiationService.setService(r.ICoreService,this.coreService),this.coreMouseService=this._instantiationService.createInstance(_.CoreMouseService),this._instantiationService.setService(r.ICoreMouseService,this.coreMouseService),this._dirtyRowService=this._instantiationService.createInstance(d.DirtyRowService),this._instantiationService.setService(r.IDirtyRowService,this._dirtyRowService),this.unicodeService=this._instantiationService.createInstance(u.UnicodeService),this._instantiationService.setService(r.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(f.CharsetService),this._instantiationService.setService(r.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(S.OscLinkService),this._instantiationService.setService(r.IOscLinkService,this._oscLinkService),this._inputHandler=new g.InputHandler(this._bufferService,this._charsetService,this.coreService,this._dirtyRowService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService),this.register((0,c.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,c.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,c.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,c.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.optionsService.onOptionChange(e=>this._updateOptions(e))),this.register(this._bufferService.onScroll(e=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._dirtyRowService.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this.register(this._inputHandler.onScroll(e=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._dirtyRowService.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=new p.WriteBuffer((e,t)=>this._inputHandler.parse(e,t)),this.register((0,c.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}get onBinary(){return this._onBinary.event}get onData(){return this._onData.event}get onLineFeed(){return this._onLineFeed.event}get onResize(){return this._onResize.event}get onWriteParsed(){return this._onWriteParsed.event}get onScroll(){return this._onScrollApi||(this._onScrollApi=new c.EventEmitter,this.register(this._onScroll.event(e=>{var t;null!=(t=this._onScrollApi)&&t.fire(e.position)}))),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(e){for(const t in e)this.optionsService.options[t]=e[t]}dispose(){var e;this._isDisposed||(super.dispose(),null!=(e=this._windowsMode)&&e.dispose(),this._windowsMode=void 0)}write(e,t){this._writeBuffer.write(e,t)}writeSync(e,t){this._logService.logLevel<=r.LogLevelEnum.WARN&&!m&&(this._logService.warn("writeSync is unreliable and will be removed soon."),m=!0),this._writeBuffer.writeSync(e,t)}resize(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,a.MINIMUM_COLS),t=Math.max(t,a.MINIMUM_ROWS),this._bufferService.resize(e,t))}scroll(e,t=!1){this._bufferService.scroll(e,t)}scrollLines(e,t,i){this._bufferService.scrollLines(e,t,i)}scrollPages(e){this._bufferService.scrollPages(e)}scrollToTop(){this._bufferService.scrollToTop()}scrollToBottom(){this._bufferService.scrollToBottom()}scrollToLine(e){this._bufferService.scrollToLine(e)}registerEscHandler(e,t){return this._inputHandler.registerEscHandler(e,t)}registerDcsHandler(e,t){return this._inputHandler.registerDcsHandler(e,t)}registerCsiHandler(e,t){return this._inputHandler.registerCsiHandler(e,t)}registerOscHandler(e,t){return this._inputHandler.registerOscHandler(e,t)}_setup(){this.optionsService.rawOptions.windowsMode&&this._enableWindowsMode()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_updateOptions(e){var t;switch(e){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.rawOptions.windowsMode?this._enableWindowsMode():(null!=(t=this._windowsMode)&&t.dispose(),this._windowsMode=void 0)}}_enableWindowsMode(){if(!this._windowsMode){const t=[];t.push(this.onLineFeed(v.updateWindowsModeWrappedState.bind(null,this._bufferService))),t.push(this.registerCsiHandler({final:"H"},()=>((0,v.updateWindowsModeWrappedState)(this._bufferService),!1))),this._windowsMode={dispose:()=>{for(const e of t)e.dispose()}}}}}t.CoreTerminal=C},8460:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=t=>(this._listeners.push(t),{dispose:()=>{if(!this._disposed)for(let e=0;e<this._listeners.length;e++)if(this._listeners[e]===t)return void this._listeners.splice(e,1)}})),this._event}fire(t,i){var s=[];for(let e=0;e<this._listeners.length;e++)s.push(this._listeners[e]);for(let e=0;e<s.length;e++)s[e].call(void 0,t,i)}dispose(){this._listeners&&(this._listeners.length=0),this._disposed=!0}},t.forwardEvent=function(e,t){return e(e=>t.fire(e))}},5435:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InputHandler=t.WindowsOptionsReportType=void 0;const d=i(2584),c=i(7116),_=i(2015),s=i(844),u=i(482),f=i(8437),v=i(8460),g=i(643),p=i(511),n=i(3734),a=i(2585),S=i(6242),m=i(6351),r=i(5941),o={"(":0,")":1,"*":2,"+":3,"-":1,".":2},h=131072;function l(e,t){if(24<e)return t.setWinLines;switch(e){case 1:return t.restoreWin;case 2:return t.minimizeWin;case 3:return t.setWinPosition;case 4:return t.setWinSizePixels;case 5:return t.raiseWin;case 6:return t.lowerWin;case 7:return t.refreshWin;case 8:return t.setWinSizeChars;case 9:return t.maximizeWin;case 10:return t.fullscreenWin;case 11:return t.getWinState;case 13:return t.getWinPosition;case 14:return t.getWinSizePixels;case 15:return t.getScreenSizePixels;case 16:return t.getCellSizePixels;case 18:return t.getWinSizeChars;case 19:return t.getScreenSizeChars;case 20:return t.getIconTitle;case 21:return t.getWinTitle;case 22:return t.pushTitle;case 23:return t.popTitle;case 24:return t.setWinLines}}var C;(i=C=t.WindowsOptionsReportType||(t.WindowsOptionsReportType={}))[i.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",i[i.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS";class b extends s.Disposable{constructor(e,t,i,s,r,n,o,a,h,l=new _.EscapeSequenceParser){super(),this._bufferService=e,this._charsetService=t,this._coreService=i,this._dirtyRowService=s,this._logService=r,this._optionsService=n,this._oscLinkService=o,this._coreMouseService=a,this._unicodeService=h,this._parser=l,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new u.StringToUtf32,this._utf8Decoder=new u.Utf8ToUtf32,this._workCell=new p.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=f.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=f.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=new v.EventEmitter,this._onRequestRefreshRows=new v.EventEmitter,this._onRequestReset=new v.EventEmitter,this._onRequestSendFocus=new v.EventEmitter,this._onRequestSyncScrollBar=new v.EventEmitter,this._onRequestWindowsOptionsReport=new v.EventEmitter,this._onA11yChar=new v.EventEmitter,this._onA11yTab=new v.EventEmitter,this._onCursorMove=new v.EventEmitter,this._onLineFeed=new v.EventEmitter,this._onScroll=new v.EventEmitter,this._onTitleChange=new v.EventEmitter,this._onColor=new v.EventEmitter,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(e=>this._activeBuffer=e.activeBuffer)),this._parser.setCsiHandlerFallback((e,t)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(e),params:t.toArray()})}),this._parser.setEscHandlerFallback(e=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(e)})}),this._parser.setExecuteHandlerFallback(e=>{this._logService.debug("Unknown EXECUTE code: ",{code:e})}),this._parser.setOscHandlerFallback((e,t,i)=>{this._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:i})}),this._parser.setDcsHandlerFallback((e,t,i)=>{"HOOK"===t&&(i=i.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(e),action:t,payload:i})}),this._parser.setPrintHandler((e,t,i)=>this.print(e,t,i)),this._parser.registerCsiHandler({final:"@"},e=>this.insertChars(e)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},e=>this.scrollLeft(e)),this._parser.registerCsiHandler({final:"A"},e=>this.cursorUp(e)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},e=>this.scrollRight(e)),this._parser.registerCsiHandler({final:"B"},e=>this.cursorDown(e)),this._parser.registerCsiHandler({final:"C"},e=>this.cursorForward(e)),this._parser.registerCsiHandler({final:"D"},e=>this.cursorBackward(e)),this._parser.registerCsiHandler({final:"E"},e=>this.cursorNextLine(e)),this._parser.registerCsiHandler({final:"F"},e=>this.cursorPrecedingLine(e)),this._parser.registerCsiHandler({final:"G"},e=>this.cursorCharAbsolute(e)),this._parser.registerCsiHandler({final:"H"},e=>this.cursorPosition(e)),this._parser.registerCsiHandler({final:"I"},e=>this.cursorForwardTab(e)),this._parser.registerCsiHandler({final:"J"},e=>this.eraseInDisplay(e,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},e=>this.eraseInDisplay(e,!0)),this._parser.registerCsiHandler({final:"K"},e=>this.eraseInLine(e,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},e=>this.eraseInLine(e,!0)),this._parser.registerCsiHandler({final:"L"},e=>this.insertLines(e)),this._parser.registerCsiHandler({final:"M"},e=>this.deleteLines(e)),this._parser.registerCsiHandler({final:"P"},e=>this.deleteChars(e)),this._parser.registerCsiHandler({final:"S"},e=>this.scrollUp(e)),this._parser.registerCsiHandler({final:"T"},e=>this.scrollDown(e)),this._parser.registerCsiHandler({final:"X"},e=>this.eraseChars(e)),this._parser.registerCsiHandler({final:"Z"},e=>this.cursorBackwardTab(e)),this._parser.registerCsiHandler({final:"`"},e=>this.charPosAbsolute(e)),this._parser.registerCsiHandler({final:"a"},e=>this.hPositionRelative(e)),this._parser.registerCsiHandler({final:"b"},e=>this.repeatPrecedingCharacter(e)),this._parser.registerCsiHandler({final:"c"},e=>this.sendDeviceAttributesPrimary(e)),this._parser.registerCsiHandler({prefix:">",final:"c"},e=>this.sendDeviceAttributesSecondary(e)),this._parser.registerCsiHandler({final:"d"},e=>this.linePosAbsolute(e)),this._parser.registerCsiHandler({final:"e"},e=>this.vPositionRelative(e)),this._parser.registerCsiHandler({final:"f"},e=>this.hVPosition(e)),this._parser.registerCsiHandler({final:"g"},e=>this.tabClear(e)),this._parser.registerCsiHandler({final:"h"},e=>this.setMode(e)),this._parser.registerCsiHandler({prefix:"?",final:"h"},e=>this.setModePrivate(e)),this._parser.registerCsiHandler({final:"l"},e=>this.resetMode(e)),this._parser.registerCsiHandler({prefix:"?",final:"l"},e=>this.resetModePrivate(e)),this._parser.registerCsiHandler({final:"m"},e=>this.charAttributes(e)),this._parser.registerCsiHandler({final:"n"},e=>this.deviceStatus(e)),this._parser.registerCsiHandler({prefix:"?",final:"n"},e=>this.deviceStatusPrivate(e)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},e=>this.softReset(e)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},e=>this.setCursorStyle(e)),this._parser.registerCsiHandler({final:"r"},e=>this.setScrollRegion(e)),this._parser.registerCsiHandler({final:"s"},e=>this.saveCursor(e)),this._parser.registerCsiHandler({final:"t"},e=>this.windowOptions(e)),this._parser.registerCsiHandler({final:"u"},e=>this.restoreCursor(e)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},e=>this.insertColumns(e)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},e=>this.deleteColumns(e)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},e=>this.selectProtected(e)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},e=>this.requestMode(e,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},e=>this.requestMode(e,!1)),this._parser.setExecuteHandler(d.C0.BEL,()=>this.bell()),this._parser.setExecuteHandler(d.C0.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(d.C0.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(d.C0.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(d.C0.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(d.C0.BS,()=>this.backspace()),this._parser.setExecuteHandler(d.C0.HT,()=>this.tab()),this._parser.setExecuteHandler(d.C0.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(d.C0.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(d.C1.IND,()=>this.index()),this._parser.setExecuteHandler(d.C1.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(d.C1.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new S.OscHandler(e=>(this.setTitle(e),this.setIconName(e),!0))),this._parser.registerOscHandler(1,new S.OscHandler(e=>this.setIconName(e))),this._parser.registerOscHandler(2,new S.OscHandler(e=>this.setTitle(e))),this._parser.registerOscHandler(4,new S.OscHandler(e=>this.setOrReportIndexedColor(e))),this._parser.registerOscHandler(8,new S.OscHandler(e=>this.setHyperlink(e))),this._parser.registerOscHandler(10,new S.OscHandler(e=>this.setOrReportFgColor(e))),this._parser.registerOscHandler(11,new S.OscHandler(e=>this.setOrReportBgColor(e))),this._parser.registerOscHandler(12,new S.OscHandler(e=>this.setOrReportCursorColor(e))),this._parser.registerOscHandler(104,new S.OscHandler(e=>this.restoreIndexedColor(e))),this._parser.registerOscHandler(110,new S.OscHandler(e=>this.restoreFgColor(e))),this._parser.registerOscHandler(111,new S.OscHandler(e=>this.restoreBgColor(e))),this._parser.registerOscHandler(112,new S.OscHandler(e=>this.restoreCursorColor(e))),this._parser.registerEscHandler({final:"7"},()=>this.saveCursor()),this._parser.registerEscHandler({final:"8"},()=>this.restoreCursor()),this._parser.registerEscHandler({final:"D"},()=>this.index()),this._parser.registerEscHandler({final:"E"},()=>this.nextLine()),this._parser.registerEscHandler({final:"H"},()=>this.tabSet()),this._parser.registerEscHandler({final:"M"},()=>this.reverseIndex()),this._parser.registerEscHandler({final:"="},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:">"},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:"c"},()=>this.fullReset()),this._parser.registerEscHandler({final:"n"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"o"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"|"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"}"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"~"},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:"%",final:"@"},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:"%",final:"G"},()=>this.selectDefaultCharset());for(const e in c.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:e},()=>this.selectCharset("("+e)),this._parser.registerEscHandler({intermediates:")",final:e},()=>this.selectCharset(")"+e)),this._parser.registerEscHandler({intermediates:"*",final:e},()=>this.selectCharset("*"+e)),this._parser.registerEscHandler({intermediates:"+",final:e},()=>this.selectCharset("+"+e)),this._parser.registerEscHandler({intermediates:"-",final:e},()=>this.selectCharset("-"+e)),this._parser.registerEscHandler({intermediates:".",final:e},()=>this.selectCharset("."+e)),this._parser.registerEscHandler({intermediates:"/",final:e},()=>this.selectCharset("/"+e));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(e=>(this._logService.error("Parsing error: ",e),e)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new m.DcsHandler((e,t)=>this.requestStatusString(e,t)))}getAttrData(){return this._curAttrData}get onRequestBell(){return this._onRequestBell.event}get onRequestRefreshRows(){return this._onRequestRefreshRows.event}get onRequestReset(){return this._onRequestReset.event}get onRequestSendFocus(){return this._onRequestSendFocus.event}get onRequestSyncScrollBar(){return this._onRequestSyncScrollBar.event}get onRequestWindowsOptionsReport(){return this._onRequestWindowsOptionsReport.event}get onA11yChar(){return this._onA11yChar.event}get onA11yTab(){return this._onA11yTab.event}get onCursorMove(){return this._onCursorMove.event}get onLineFeed(){return this._onLineFeed.event}get onScroll(){return this._onScroll.event}get onTitleChange(){return this._onTitleChange.event}get onColor(){return this._onColor.event}dispose(){super.dispose()}_preserveStack(e,t,i,s){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=i,this._parseStack.position=s}_logSlowResolvingAsync(e){this._logService.logLevel<=a.LogLevelEnum.WARN&&Promise.race([e,new Promise((e,t)=>setTimeout(()=>t("#SLOW_TIMEOUT"),5e3))]).catch(e=>{if("#SLOW_TIMEOUT"!==e)throw e;console.warn("async parser handler taking longer than 5000 ms")})}parse(t,e){let i,s=this._activeBuffer.x,r=this._activeBuffer.y,n=0;const o=this._parseStack.paused;if(o){if(i=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,e))return this._logSlowResolvingAsync(i),i;s=this._parseStack.cursorStartX,r=this._parseStack.cursorStartY,this._parseStack.paused=!1,t.length>h&&(n=this._parseStack.position+h)}if(this._logService.logLevel<=a.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof t?` "${t}"`:` "${Array.prototype.map.call(t,e=>String.fromCharCode(e)).join("")}"`),"string"==typeof t?t.split("").map(e=>e.charCodeAt(0)):t),this._parseBuffer.length<t.length&&this._parseBuffer.length<h&&(this._parseBuffer=new Uint32Array(Math.min(t.length,h))),o||this._dirtyRowService.clearRange(),t.length>h)for(let e=n;e<t.length;e+=h){const n=e+h<t.length?e+h:t.length,o="string"==typeof t?this._stringDecoder.decode(t.substring(e,n),this._parseBuffer):this._utf8Decoder.decode(t.subarray(e,n),this._parseBuffer);if(i=this._parser.parse(this._parseBuffer,o))return this._preserveStack(s,r,o,e),this._logSlowResolvingAsync(i),i}else if(!o){const e=("string"==typeof t?this._stringDecoder:this._utf8Decoder).decode(t,this._parseBuffer);if(i=this._parser.parse(this._parseBuffer,e))return this._preserveStack(s,r,e,0),this._logSlowResolvingAsync(i),i}this._activeBuffer.x===s&&this._activeBuffer.y===r||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)}print(t,i,s){let r,n;var o=this._charsetService.charset,a=this._optionsService.rawOptions.screenReaderMode,h=this._bufferService.cols,l=this._coreService.decPrivateModes.wraparound,c=this._coreService.modes.insertMode,_=this._curAttrData;let d=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowService.markDirty(this._activeBuffer.y),this._activeBuffer.x&&0<s-i&&2===d.getWidth(this._activeBuffer.x-1)&&d.setCellFromCodePoint(this._activeBuffer.x-1,0,1,_.fg,_.bg,_.extended);for(let e=i;e<s;++e){if(r=t[e],n=this._unicodeService.wcwidth(r),r<127&&o){const t=o[String.fromCharCode(r)];t&&(r=t.charCodeAt(0))}if(a&&this._onA11yChar.fire((0,u.stringFromCodePoint)(r)),void 0!==this._currentLinkId&&this._oscLinkService.addLineToLink(this._currentLinkId,this._activeBuffer.ybase+this._activeBuffer.y),n||!this._activeBuffer.x){if(this._activeBuffer.x+n-1>=h)if(l){for(;this._activeBuffer.x<h;)d.setCellFromCodePoint(this._activeBuffer.x++,0,1,_.fg,_.bg,_.extended);this._activeBuffer.x=0,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),d=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=h-1,2===n)continue;if(c&&(d.insertCells(this._activeBuffer.x,n,this._activeBuffer.getNullCell(_),_),2===d.getWidth(h-1))&&d.setCellFromCodePoint(h-1,g.NULL_CELL_CODE,g.NULL_CELL_WIDTH,_.fg,_.bg,_.extended),d.setCellFromCodePoint(this._activeBuffer.x++,r,n,_.fg,_.bg,_.extended),0<n)for(;--n;)d.setCellFromCodePoint(this._activeBuffer.x++,0,0,_.fg,_.bg,_.extended)}else d.getWidth(this._activeBuffer.x-1)?d.addCodepointToCell(this._activeBuffer.x-1,r):d.addCodepointToCell(this._activeBuffer.x-2,r)}0<s-i&&(d.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||65535<this._workCell.getCode()?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x<h&&0<s-i&&0===d.getWidth(this._activeBuffer.x)&&!d.hasContent(this._activeBuffer.x)&&d.setCellFromCodePoint(this._activeBuffer.x,0,1,_.fg,_.bg,_.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)}registerCsiHandler(e,t){return"t"!==e.final||e.prefix||e.intermediates?this._parser.registerCsiHandler(e,t):this._parser.registerCsiHandler(e,e=>!l(e.params[0],this._optionsService.rawOptions.windowOptions)||t(e))}registerDcsHandler(e,t){return this._parser.registerDcsHandler(e,new m.DcsHandler(t))}registerEscHandler(e,t){return this._parser.registerEscHandler(e,t)}registerOscHandler(e,t){return this._parser.registerOscHandler(e,new S.OscHandler(t))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowService.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowService.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return!(this._activeBuffer.x=0)}backspace(){var e;if(this._coreService.decPrivateModes.reverseWraparound){if(this._restrictCursor(this._bufferService.cols),0<this._activeBuffer.x)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&null!=(e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))&&e.isWrapped){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);e.hasWidth(this._activeBuffer.x)&&!e.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}this._restrictCursor()}else this._restrictCursor(),0<this._activeBuffer.x&&this._activeBuffer.x--;return!0}tab(){var e;return this._activeBuffer.x>=this._bufferService.cols||(e=this._activeBuffer.x,this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e)),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(e=this._bufferService.cols-1){this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowService.markDirty(this._activeBuffer.y)}_setCursor(e,t){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)}_moveCursor(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)}cursorUp(e){var t=this._activeBuffer.y-this._activeBuffer.scrollTop;return 0<=t?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0}cursorDown(e){var t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return 0<=t?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0}cursorForward(e){return this._moveCursor(e.params[0]||1,0),!0}cursorBackward(e){return this._moveCursor(-(e.params[0]||1),0),!0}cursorNextLine(e){return this.cursorDown(e),!(this._activeBuffer.x=0)}cursorPrecedingLine(e){return this.cursorUp(e),!(this._activeBuffer.x=0)}cursorCharAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(e){return this._setCursor(2<=e.length?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0}charPosAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(e){return this._moveCursor(e.params[0]||1,0),!0}linePosAbsolute(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0}vPositionRelative(e){return this._moveCursor(0,e.params[0]||1),!0}hVPosition(e){return this.cursorPosition(e),!0}tabClear(e){e=e.params[0];return 0===e?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===e&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(t){if(!(this._activeBuffer.x>=this._bufferService.cols)){let e=t.params[0]||1;for(;e--;)this._activeBuffer.x=this._activeBuffer.nextStop()}return!0}cursorBackwardTab(t){if(!(this._activeBuffer.x>=this._bufferService.cols)){let e=t.params[0]||1;for(;e--;)this._activeBuffer.x=this._activeBuffer.prevStop()}return!0}selectProtected(e){e=e.params[0];return 1===e&&(this._curAttrData.bg|=536870912),2!==e&&0!==e||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(e,t,i,s=!1,r=!1){e=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);e.replaceCells(t,i,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),r),s&&(e.isWrapped=!1)}_resetBufferLine(e,t=!1){var i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),i.isWrapped=!1}eraseInDisplay(e,t=!1){let i;switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:for(i=this._activeBuffer.y,this._dirtyRowService.markDirty(i),this._eraseInBufferLine(i++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,t);i<this._bufferService.rows;i++)this._resetBufferLine(i,t);this._dirtyRowService.markDirty(i);break;case 1:for(i=this._activeBuffer.y,this._dirtyRowService.markDirty(i),this._eraseInBufferLine(i,0,this._activeBuffer.x+1,!0,t),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(i+1).isWrapped=!1);i--;)this._resetBufferLine(i,t);this._dirtyRowService.markDirty(0);break;case 2:for(i=this._bufferService.rows,this._dirtyRowService.markDirty(i-1);i--;)this._resetBufferLine(i,t);this._dirtyRowService.markDirty(0);break;case 3:const e=this._activeBuffer.lines.length-this._bufferService.rows;0<e&&(this._activeBuffer.lines.trimStart(e),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-e,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-e,0),this._onScroll.fire(0))}return!0}eraseInLine(e,t=!1){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,t);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,t);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,t)}return this._dirtyRowService.markDirty(this._activeBuffer.y),!0}insertLines(e){this._restrictCursor();let t=e.params[0]||1;if(!(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)){for(var i=this._activeBuffer.ybase+this._activeBuffer.y,e=this._bufferService.rows-1-this._activeBuffer.scrollBottom,s=this._bufferService.rows-1+this._activeBuffer.ybase-e+1;t--;)this._activeBuffer.lines.splice(s-1,1),this._activeBuffer.lines.splice(i,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0}return!0}deleteLines(e){this._restrictCursor();let t=e.params[0]||1;if(!(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)){var i=this._activeBuffer.ybase+this._activeBuffer.y,s=this._bufferService.rows-1-this._activeBuffer.scrollBottom;for(s=this._bufferService.rows-1+this._activeBuffer.ybase-s;t--;)this._activeBuffer.lines.splice(i,1),this._activeBuffer.lines.splice(s,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0}return!0}insertChars(e){this._restrictCursor();var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.insertCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0}deleteChars(e){this._restrictCursor();var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.deleteCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0}scrollUp(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollDown(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(f.DEFAULT_ATTR_DATA));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollLeft(e){if(!(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)){var t=e.params[0]||1;for(let e=this._activeBuffer.scrollTop;e<=this._activeBuffer.scrollBottom;++e){var i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i.deleteCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i.isWrapped=!1}this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}return!0}scrollRight(e){if(!(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)){var t=e.params[0]||1;for(let e=this._activeBuffer.scrollTop;e<=this._activeBuffer.scrollBottom;++e){var i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i.insertCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i.isWrapped=!1}this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}return!0}insertColumns(e){if(!(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)){var t=e.params[0]||1;for(let e=this._activeBuffer.scrollTop;e<=this._activeBuffer.scrollBottom;++e){var i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i.insertCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i.isWrapped=!1}this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}return!0}deleteColumns(e){if(!(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)){var t=e.params[0]||1;for(let e=this._activeBuffer.scrollTop;e<=this._activeBuffer.scrollBottom;++e){var i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i.deleteCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i.isWrapped=!1}this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}return!0}eraseChars(e){this._restrictCursor();var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(e.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0}repeatPrecedingCharacter(e){if(this._parser.precedingCodepoint){var t=e.params[0]||1,i=new Uint32Array(t);for(let e=0;e<t;++e)i[e]=this._parser.precedingCodepoint;this.print(i,0,i.length)}return!0}sendDeviceAttributesPrimary(e){return 0<e.params[0]||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(d.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(d.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(e){return 0<e.params[0]||(this._is("xterm")?this._coreService.triggerDataEvent(d.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(d.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(d.C0.ESC+"[>83;40003;0c")),!0}_is(e){return 0===(this._optionsService.rawOptions.termName+"").indexOf(e)}setMode(t){for(let e=0;e<t.length;e++)switch(t.params[e]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0}return!0}setModePrivate(t){for(let e=0;e<t.length;e++)switch(t.params[e]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,c.DEFAULT_CHARSET),this._charsetService.setgCharset(1,c.DEFAULT_CHARSET),this._charsetService.setgCharset(2,c.DEFAULT_CHARSET),this._charsetService.setgCharset(3,c.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="SGR_PIXELS";break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0}resetMode(t){for(let e=0;e<t.length;e++)switch(t.params[e]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1}return!0}resetModePrivate(t){for(let e=0;e<t.length;e++)switch(t.params[e]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:case 1016:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),1049===t.params[e]&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0}requestMode(e,t){var i=this._coreService.decPrivateModes,{activeProtocol:s,activeEncoding:r}=this._coreMouseService,n=this._coreService,{buffers:o,cols:a}=this._bufferService,{active:o,alt:h}=o,l=this._optionsService.rawOptions,c=e=>e?1:2,e=e.params[0],_=e,a=t?2===e?3:4===e?c(n.modes.insertMode):12===e?4:20===e?c(l.convertEol):0:1===e?c(i.applicationCursorKeys):3===e?l.windowOptions.setWinLines?80===a?2:132===a?1:0:0:6===e?c(i.origin):7===e?c(i.wraparound):8===e?3:9===e?"X10"===s?1:2:12===e?c(l.cursorBlink):25===e?c(!n.isCursorHidden):45===e?c(i.reverseWraparound):66===e?c(i.applicationKeypad):1e3===e?"VT200"===s?1:2:1002===e?"DRAG"===s?1:2:1003===e?"ANY"===s?1:2:1004===e?c(i.sendFocus):1005===e?4:1006===e?"SGR"===r?1:2:1015===e?4:1016===e?"SGR_PIXELS"===r?1:2:1048===e?1:47===e||1047===e||1049===e?o===h?1:2:2004===e?c(i.bracketedPasteMode):0;return n.triggerDataEvent(d.C0.ESC+`[${t?"":"?"}${_};${a}$y`),!0}_updateAttrColor(e,t,i,s,r){return 2===t?e=(e=(e|50331648)&-16777216)|n.AttributeData.fromColorRGB([i,s,r]):5===t&&(e=e&-50331904|(33554432|255&i)),e}_extractColor(t,i,s){var r=[0,0,-1,0,0,0];let n=0,o=0;do{if(r[o+n]=t.params[i+o],t.hasSubParams(i+o)){const s=t.getSubParams(i+o);let e=0;for(;5===r[1]&&(n=1),r[o+e+1+n]=s[e],++e<s.length&&e+o+1+n<r.length;);break}}while(!(5===r[1]&&2<=o+n||2===r[1]&&5<=o+n)&&(r[1]&&(n=1),++o+i<t.length&&o+n<r.length));for(let e=2;e<r.length;++e)-1===r[e]&&(r[e]=0);switch(r[0]){case 38:s.fg=this._updateAttrColor(s.fg,r[1],r[3],r[4],r[5]);break;case 48:s.bg=this._updateAttrColor(s.bg,r[1],r[3],r[4],r[5]);break;case 58:s.extended=s.extended.clone(),s.extended.underlineColor=this._updateAttrColor(s.extended.underlineColor,r[1],r[3],r[4],r[5])}return o}_processUnderline(e,t){t.extended=t.extended.clone(),t.extended.underlineStyle=e=!~e||5<e?1:e,t.fg|=268435456,0===e&&(t.fg&=-268435457),t.updateExtended()}charAttributes(t){if(1===t.length&&0===t.params[0])this._curAttrData.fg=f.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=f.DEFAULT_ATTR_DATA.bg;else{var i,s=t.length,r=this._curAttrData;for(let e=0;e<s;e++)30<=(i=t.params[e])&&i<=37?(r.fg&=-50331904,r.fg|=16777216|i-30):40<=i&&i<=47?(r.bg&=-50331904,r.bg|=16777216|i-40):90<=i&&i<=97?(r.fg&=-50331904,r.fg|=16777224|i-90):100<=i&&i<=107?(r.bg&=-50331904,r.bg|=16777224|i-100):0===i?(r.fg=f.DEFAULT_ATTR_DATA.fg,r.bg=f.DEFAULT_ATTR_DATA.bg):1===i?r.fg|=134217728:3===i?r.bg|=67108864:4===i?(r.fg|=268435456,this._processUnderline(t.hasSubParams(e)?t.getSubParams(e)[0]:1,r)):5===i?r.fg|=536870912:7===i?r.fg|=67108864:8===i?r.fg|=1073741824:9===i?r.fg|=2147483648:2===i?r.bg|=134217728:21===i?this._processUnderline(2,r):22===i?(r.fg&=-134217729,r.bg&=-134217729):23===i?r.bg&=-67108865:24===i?(r.fg&=-268435457,this._processUnderline(0,r)):25===i?r.fg&=-536870913:27===i?r.fg&=-67108865:28===i?r.fg&=-1073741825:29===i?r.fg&=2147483647:39===i?(r.fg&=-67108864,r.fg|=16777215&f.DEFAULT_ATTR_DATA.fg):49===i?(r.bg&=-67108864,r.bg|=16777215&f.DEFAULT_ATTR_DATA.bg):38===i||48===i||58===i?e+=this._extractColor(t,e,r):59===i?(r.extended=r.extended.clone(),r.extended.underlineColor=-1,r.updateExtended()):100===i?(r.fg&=-67108864,r.fg|=16777215&f.DEFAULT_ATTR_DATA.fg,r.bg&=-67108864,r.bg|=16777215&f.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",i)}return!0}deviceStatus(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(d.C0.ESC+"[0n");break;case 6:const e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${d.C0.ESC}[${e};${t}R`)}return!0}deviceStatusPrivate(e){if(6===e.params[0]){const e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${d.C0.ESC}[?${e};${t}R`)}return!0}softReset(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=f.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!(this._coreService.decPrivateModes.origin=!1)}setCursorStyle(e){e=e.params[0]||1;switch(e){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}return this._optionsService.options.cursorBlink=e%2==1,!0}setScrollRegion(e){var t=e.params[0]||1;let i;return(i=e.length<2||(i=e.params[1])>this._bufferService.rows||0===i?this._bufferService.rows:i)>t&&(this._activeBuffer.scrollTop=t-1,this._activeBuffer.scrollBottom=i-1,this._setCursor(0,0)),!0}windowOptions(e){if(l(e.params[0],this._optionsService.rawOptions.windowOptions)){var t=1<e.length?e.params[1]:0;switch(e.params[0]){case 14:2!==t&&this._onRequestWindowsOptionsReport.fire(C.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(C.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${d.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:0!==t&&2!==t||(this._windowTitleStack.push(this._windowTitle),10<this._windowTitleStack.length&&this._windowTitleStack.shift()),0!==t&&1!==t||(this._iconNameStack.push(this._iconName),10<this._iconNameStack.length&&this._iconNameStack.shift());break;case 23:0!==t&&2!==t||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==t&&1!==t||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}return!0}saveCursor(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0}setIconName(e){return this._iconName=e,!0}setOrReportIndexedColor(e){const t=[],i=e.split(";");for(;1<i.length;){const e=i.shift(),s=i.shift();if(/^\d+$/.exec(e)){const i=parseInt(e);if(0<=i&&i<256)if("?"===s)t.push({type:0,index:i});else{const e=(0,r.parseColor)(s);e&&t.push({type:1,index:i,color:e})}}}return t.length&&this._onColor.fire(t),!0}setHyperlink(e){e=e.split(";");return!(e.length<2)&&(e[1]?this._createHyperlink(e[0],e[1]):!e[0]&&this._finishHyperlink())}_createHyperlink(e,t){void 0!==this._currentLinkId&&this._finishHyperlink();e=e.split(":");let i;var s=e.findIndex(e=>e.startsWith("id="));return-1!==s&&(i=e[s].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._currentLinkId=this._oscLinkService.registerLink({id:i,uri:t}),this._curAttrData.extended.urlId=this._currentLinkId,this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!(this._currentLinkId=void 0)}_setOrReportSpecialColor(e,t){var i,s=e.split(";");for(let e=0;e<s.length&&!(t>=this._specialColors.length);++e,++t)"?"===s[e]?this._onColor.fire([{type:0,index:this._specialColors[t]}]):(i=(0,r.parseColor)(s[e]))&&this._onColor.fire([{type:1,index:this._specialColors[t],color:i}]);return!0}setOrReportFgColor(e){return this._setOrReportSpecialColor(e,0)}setOrReportBgColor(e){return this._setOrReportSpecialColor(e,1)}setOrReportCursorColor(e){return this._setOrReportSpecialColor(e,2)}restoreIndexedColor(e){if(e){var t,i=[],s=e.split(";");for(let e=0;e<s.length;++e)/^\d+$/.exec(s[e])&&0<=(t=parseInt(s[e]))&&t<256&&i.push({type:2,index:t});i.length&&this._onColor.fire(i)}else this._onColor.fire([{type:2}]);return!0}restoreFgColor(e){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(e){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(e){return this._onColor.fire([{type:2,index:258}]),!0}nextLine(){return this._activeBuffer.x=0,this.index(),!0}keypadApplicationMode(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}keypadNumericMode(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}selectDefaultCharset(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,c.DEFAULT_CHARSET),!0}selectCharset(e){return 2!==e.length?this.selectDefaultCharset():"/"!==e[0]&&this._charsetService.setgCharset(o[e[0]],c.CHARSETS[e[1]]||c.DEFAULT_CHARSET),!0}index(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0}reverseIndex(){var e;return this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop?(e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop,this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)):(this._activeBuffer.y--,this._restrictCursor()),!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=f.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=f.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(e){return this._charsetService.setgLevel(e),!0}screenAlignmentPattern(){var t=new p.CellData;t.content=1<<22|"E".charCodeAt(0),t.fg=this._curAttrData.fg,t.bg=this._curAttrData.bg,this._setCursor(0,0);for(let e=0;e<this._bufferService.rows;++e){var i=this._activeBuffer.ybase+this._activeBuffer.y+e,i=this._activeBuffer.lines.get(i);i&&(i.fill(t),i.isWrapped=!1)}return this._dirtyRowService.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(e,t){var i=this._bufferService.buffer,s=this._optionsService.rawOptions;return i='"q'===e?`P1$r${this._curAttrData.isProtected()?1:0}"q`:'"p'===e?'P1$r61;1"p':"r"===e?`P1$r${i.scrollTop+1};${i.scrollBottom+1}r`:"m"===e?"P1$r0m":" q"===e?`P1$r${{block:2,underline:4,bar:6}[s.cursorStyle]-(s.cursorBlink?1:0)} q`:"P0$r",this._coreService.triggerDataEvent(d.C0.ESC+i+d.C0.ESC+"\\"),!0}}t.InputHandler=b},844:(e,t)=>{function i(e){for(const t of e)t.dispose();e.length=0}Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.toDisposable=t.Disposable=void 0,t.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const e of this._disposables)e.dispose();this._disposables.length=0}register(e){return this._disposables.push(e),e}unregister(e){e=this._disposables.indexOf(e);-1!==e&&this._disposables.splice(e,1)}},t.toDisposable=function(e){return{dispose:e}},t.disposeArray=i,t.getDisposeArrayDisposable=function(e){return{dispose:()=>i(e)}}},1505:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FourKeyMap=t.TwoKeyMap=void 0;class n{constructor(){this._data={}}set(e,t,i){this._data[e]||(this._data[e]={}),this._data[e][t]=i}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}}t.TwoKeyMap=n,t.FourKeyMap=class{constructor(){this._data=new n}set(e,t,i,s,r){this._data.get(e,t)||this._data.set(e,t,new n),this._data.get(e,t).set(i,s,r)}get(e,t,i,s){return null==(e=this._data.get(e,t))?void 0:e.get(i,s)}clear(){this._data.clear()}}},6114:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.isSafari=t.isLegacyEdge=t.isFirefox=void 0;var i="undefined"==typeof navigator,s=i?"node":navigator.userAgent,i=i?"node":navigator.platform;t.isFirefox=s.includes("Firefox"),t.isLegacyEdge=s.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(s),t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(i),t.isIpad="iPad"===i,t.isIphone="iPhone"===i,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(i),t.isLinux=0<=i.indexOf("Linux")},6106:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SortedList=void 0;let i=0;t.SortedList=class{constructor(e){this._getKey=e,this._array=[]}clear(){this._array.length=0}insert(e){0!==this._array.length?(i=this._search(this._getKey(e),0,this._array.length-1),this._array.splice(i,0,e)):this._array.push(e)}delete(e){if(0!==this._array.length){var t=this._getKey(e);if(void 0!==t&&-1!==(i=this._search(t,0,this._array.length-1))&&this._getKey(this._array[i])===t)do{if(this._array[i]===e)return this._array.splice(i,1),!0}while(++i<this._array.length&&this._getKey(this._array[i])===t)}return!1}*getKeyIterator(e){if(0!==this._array.length&&!((i=this._search(e,0,this._array.length-1))<0||i>=this._array.length)&&this._getKey(this._array[i])===e)for(;yield this._array[i],++i<this._array.length&&this._getKey(this._array[i])===e;);}forEachByKey(e,t){if(0!==this._array.length&&!((i=this._search(e,0,this._array.length-1))<0||i>=this._array.length)&&this._getKey(this._array[i])===e)for(;t(this._array[i]),++i<this._array.length&&this._getKey(this._array[i])===e;);}values(){return this._array.values()}_search(e,t,i){if(i<t)return t;let s=Math.floor((t+i)/2);var r=this._getKey(this._array[s]);if(e<r)return this._search(e,t,s-1);if(r<e)return this._search(e,s+1,i);for(;0<s&&this._getKey(this._array[s-1])===e;)s--;return s}}},8273:(e,t)=>{function r(t,i,s=0,r=t.length){if(!(s>=t.length)){s=(t.length+s)%t.length,r=r>=t.length?t.length:(t.length+r)%t.length;for(let e=s;e<r;++e)t[e]=i}return t}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=t.fillFallback=t.fill=void 0,t.fill=function(e,t,i,s){return e.fill?e.fill(t,i,s):r(e,t,i,s)},t.fillFallback=r,t.concat=function(e,t){var i=new e.constructor(e.length+t.length);return i.set(e),i.set(t,e.length),i}},9282:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;const s=i(643);t.updateWindowsModeWrappedState=function(e){var t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1),t=null==t?void 0:t.get(e.cols-1),e=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);e&&t&&(e.isWrapped=t[s.CHAR_DATA_CODE_INDEX]!==s.NULL_CELL_CODE&&t[s.CHAR_DATA_CODE_INDEX]!==s.WHITESPACE_CELL_CODE)}},3734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;t.AttributeData=class s{constructor(){this.fg=0,this.bg=0,this.extended=new i}static toColorRGB(e){return[e>>>16&255,e>>>8&255,255&e]}static fromColorRGB(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]}clone(){var e=new s;return e.fg=this.fg,e.bg=this.bg,e.extended=this.extended.clone(),e}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&0!==this.extended.underlineStyle?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return 50331648==(50331648&this.fg)}isBgRGB(){return 50331648==(50331648&this.bg)}isFgPalette(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)}isBgPalette(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)}isFgDefault(){return 0==(50331648&this.fg)}isBgDefault(){return 0==(50331648&this.bg)}isAttributeDefault(){return 0===this.fg&&0===this.bg}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}};class i{constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(e){this._ext&=-67108864,this._ext|=67108863&e}get urlId(){return this._urlId}set urlId(e){this._urlId=e}clone(){return new i(this._ext,this._urlId)}isEmpty(){return 0===this.underlineStyle&&0===this._urlId}}t.ExtendedAttrs=i},9092:(e,i,t)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferStringIterator=i.Buffer=i.MAX_BUFFER_SIZE=void 0;const s=t(6349),p=t(8437),r=t(511),n=t(643),S=t(4634),o=t(4863),a=t(7116),h=t(3734);i.MAX_BUFFER_SIZE=4294967295,i.Buffer=class{constructor(e,t,i){this._hasScrollback=e,this._optionsService=t,this._bufferService=i,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=p.DEFAULT_ATTR_DATA.clone(),this.savedCharset=a.DEFAULT_CHARSET,this.markers=[],this._nullCell=r.CellData.fromCharData([0,n.NULL_CELL_CHAR,n.NULL_CELL_WIDTH,n.NULL_CELL_CODE]),this._whitespaceCell=r.CellData.fromCharData([0,n.WHITESPACE_CELL_CHAR,n.WHITESPACE_CELL_WIDTH,n.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new s.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new h.ExtendedAttrs),this._nullCell}getWhitespaceCell(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new h.ExtendedAttrs),this._whitespaceCell}getBlankLine(e,t){return new p.BufferLine(this._bufferService.cols,this.getNullCell(e),t)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){var e=this.ybase+this.y-this.ydisp;return 0<=e&&e<this._rows}_getCorrectBufferLength(e){var t;return this._hasScrollback?(t=e+this._optionsService.rawOptions.scrollback)>i.MAX_BUFFER_SIZE?i.MAX_BUFFER_SIZE:t:e}fillViewportRows(t){if(0===this.lines.length){void 0===t&&(t=p.DEFAULT_ATTR_DATA);let e=this._rows;for(;e--;)this.lines.push(this.getBlankLine(t))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new s.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(i,s){var r=this.getNullCell(p.DEFAULT_ATTR_DATA),e=this._getCorrectBufferLength(s);if(e>this.lines.maxLength&&(this.lines.maxLength=e),0<this.lines.length){if(this._cols<i)for(let e=0;e<this.lines.length;e++)this.lines.get(e).resize(i,r);let t=0;if(this._rows<s)for(let e=this._rows;e<s;e++)this.lines.length<s+this.ybase&&(!this._optionsService.rawOptions.windowsMode&&0<this.ybase&&this.lines.length<=this.ybase+this.y+t+1?(this.ybase--,t++,0<this.ydisp&&this.ydisp--):this.lines.push(new p.BufferLine(i,r)));else for(let e=this._rows;e>s;e--)this.lines.length>s+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(e<this.lines.maxLength){const i=this.lines.length-e;0<i&&(this.lines.trimStart(i),this.ybase=Math.max(this.ybase-i,0),this.ydisp=Math.max(this.ydisp-i,0),this.savedY=Math.max(this.savedY-i,0)),this.lines.maxLength=e}this.x=Math.min(this.x,i-1),this.y=Math.min(this.y,s-1),t&&(this.y+=t),this.savedX=Math.min(this.savedX,i-1),this.scrollTop=0}if(this.scrollBottom=s-1,this._isReflowEnabled&&(this._reflow(i,s),this._cols>i))for(let e=0;e<this.lines.length;e++)this.lines.get(e).resize(i,r);this._cols=i,this._rows=s}get _isReflowEnabled(){return this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}_reflowLarger(e,t){var i=(0,S.reflowLargerGetLinesToRemove)(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(p.DEFAULT_ATTR_DATA));0<i.length&&(i=(0,S.reflowLargerCreateNewLayout)(this.lines,i),(0,S.reflowLargerApplyNewLayout)(this.lines,i.layout),this._reflowLargerAdjustViewport(e,t,i.countRemoved))}_reflowLargerAdjustViewport(e,t,i){var s=this.getNullCell(p.DEFAULT_ATTR_DATA);let r=i;for(;0<r--;)0===this.ybase?(0<this.y&&this.y--,this.lines.length<t&&this.lines.push(new p.BufferLine(e,s))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-i,0)}_reflowSmaller(o,a){const h=this.getNullCell(p.DEFAULT_ATTR_DATA),l=[];let c=0;for(let n=this.lines.length-1;0<=n;n--){let e=this.lines.get(n);if(!(!e||!e.isWrapped&&e.getTrimmedLength()<=o)){for(var _=[e];e.isWrapped&&0<n;)e=this.lines.get(--n),_.unshift(e);var d=this.ybase+this.y;if(!(d>=n&&d<n+_.length)){var d=_[_.length-1].getTrimmedLength(),u=(0,S.reflowSmallerGetNewLineLengths)(_,this._cols,o),f=u.length-_.length,v=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+f):Math.max(0,this.lines.length-this.lines.maxLength+f),g=[];for(let e=0;e<f;e++){const o=this.getBlankLine(p.DEFAULT_ATTR_DATA,!0);g.push(o)}0<g.length&&(l.push({start:n+_.length+c,newLines:g}),c+=g.length),_.push(...g);let e=u.length-1,t=u[e],i=(0===t&&(e--,t=u[e]),_.length-f-1),s=d;for(;0<=i;){const o=Math.min(s,t);if(void 0===_[e])break;if(_[e].copyCellsFrom(_[i],s-o,t-o,o,!0),0===(t-=o)&&(e--,t=u[e]),0===(s-=o)){i--;const o=Math.max(i,0);s=(0,S.getWrappedLineTrimmedLength)(_,o,this._cols)}}for(let e=0;e<_.length;e++)u[e]<o&&_[e].setCell(u[e],h);let r=f-v;for(;0<r--;)0===this.ybase?this.y<a-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+c)-a&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+f,this.ybase+a-1)}}}if(0<l.length){const o=[],a=[];for(let e=0;e<this.lines.length;e++)a.push(this.lines.get(e));const h=this.lines.length;let e=h-1,i=0,s=l[i],r=(this.lines.length=Math.min(this.lines.maxLength,this.lines.length+c),0);for(let t=Math.min(this.lines.maxLength-1,h+c-1);0<=t;t--)if(s&&s.start>e+r){for(let e=s.newLines.length-1;0<=e;e--)this.lines.set(t--,s.newLines[e]);t++,o.push({index:e+1,amount:s.newLines.length}),r+=s.newLines.length,s=l[++i]}else this.lines.set(t,a[e--]);let t=0;for(let e=o.length-1;0<=e;e--)o[e].index+=t,this.lines.onInsertEmitter.fire(o[e]),t+=o[e].amount;var n=Math.max(0,h+c-this.lines.maxLength);0<n&&this.lines.onTrimEmitter.fire(n)}}stringIndexToBufferIndex(t,i,e=!1){for(;i;){var s=this.lines.get(t);if(!s)return[-1,-1];var r=e?s.getTrimmedLength():s.length;for(let e=0;e<r;++e)if(s.get(e)[n.CHAR_DATA_WIDTH_INDEX]&&(i-=s.get(e)[n.CHAR_DATA_CHAR_INDEX].length||1),i<0)return[t,e];t++}return[t,0]}translateBufferLineToString(e,t,i=0,s){e=this.lines.get(e);return e?e.translateToString(t,i,s):""}getWrappedRangeForLine(e){let t=e,i=e;for(;0<t&&this.lines.get(t).isWrapped;)t--;for(;i+1<this.lines.length&&this.lines.get(i+1).isWrapped;)i++;return{first:t,last:i}}setupTabStops(e){for(null!=e?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.rawOptions.tabStopWidth)this.tabs[e]=!0}prevStop(e){for(null==e&&(e=this.x);!this.tabs[--e]&&0<e;);return e>=this._cols?this._cols-1:e<0?0:e}nextStop(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e}clearMarkers(t){this._isClearing=!0;for(let e=0;e<this.markers.length;e++)this.markers[e].line===t&&(this.markers[e].dispose(),this.markers.splice(e--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let e=0;e<this.markers.length;e++)this.markers[e].dispose(),this.markers.splice(e--,1);this._isClearing=!1}addMarker(e){const t=new o.Marker(e);return this.markers.push(t),t.register(this.lines.onTrim(e=>{t.line-=e,t.line<0&&t.dispose()})),t.register(this.lines.onInsert(e=>{t.line>=e.index&&(t.line+=e.amount)})),t.register(this.lines.onDelete(e=>{t.line>=e.index&&t.line<e.index+e.amount&&t.dispose(),t.line>e.index&&(t.line-=e.amount)})),t.register(t.onDispose(()=>this._removeMarker(t))),t}_removeMarker(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}iterator(e,t,i,s,r){return new l(this,e,t,i,s,r)}};class l{constructor(e,t,i=0,s=e.lines.length,r=0,n=0){this._buffer=e,this._trimRight=t,this._startIndex=i,this._endIndex=s,this._startOverscan=r,this._endOverscan=n,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}hasNext(){return this._current<this._endIndex}next(){var t=this._buffer.getWrappedRangeForLine(this._current);t.first<this._startIndex-this._startOverscan&&(t.first=this._startIndex-this._startOverscan),t.last>this._endIndex+this._endOverscan&&(t.last=this._endIndex+this._endOverscan),t.first=Math.max(t.first,0),t.last=Math.min(t.last,this._buffer.lines.length);let i="";for(let e=t.first;e<=t.last;++e)i+=this._buffer.translateBufferLineToString(e,this._trimRight);return this._current=t.last+1,{range:t,content:i}}}i.BufferStringIterator=l},8437:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;const r=i(482),n=i(643),o=i(511),a=i(3734),s=(t.DEFAULT_ATTR_DATA=Object.freeze(new a.AttributeData),{startIndex:0});t.BufferLine=class h{constructor(t,e,i=!1){this.isWrapped=i,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*t);var s=e||o.CellData.fromCharData([0,n.NULL_CELL_CHAR,n.NULL_CELL_WIDTH,n.NULL_CELL_CODE]);for(let e=0;e<t;++e)this.setCell(e,s);this.length=t}get(e){var t=this._data[3*e+0],i=2097151&t;return[this._data[3*e+1],2097152&t?this._combined[e]:i?(0,r.stringFromCodePoint)(i):"",t>>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):i]}set(e,t){this._data[3*e+1]=t[n.CHAR_DATA_ATTR_INDEX],1<t[n.CHAR_DATA_CHAR_INDEX].length?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[n.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[n.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[n.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(e){return this._data[3*e+0]>>22}hasWidth(e){return 12582912&this._data[3*e+0]}getFg(e){return this._data[3*e+1]}getBg(e){return this._data[3*e+2]}hasContent(e){return 4194303&this._data[3*e+0]}getCodePoint(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t}isCombined(e){return 2097152&this._data[3*e+0]}getString(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?(0,r.stringFromCodePoint)(2097151&t):""}isProtected(e){return 536870912&this._data[3*e+2]}loadCell(e,t){return s.startIndex=3*e,t.content=this._data[s.startIndex+0],t.fg=this._data[s.startIndex+1],t.bg=this._data[s.startIndex+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t}setCell(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg}setCellFromCodePoint(e,t,i,s,r,n){268435456&r&&(this._extendedAttrs[e]=n),this._data[3*e+0]=t|i<<22,this._data[3*e+1]=s,this._data[3*e+2]=r}addCodepointToCell(e,t){let i=this._data[3*e+0];2097152&i?this._combined[e]+=(0,r.stringFromCodePoint)(t):(i=2097151&i?(this._combined[e]=(0,r.stringFromCodePoint)(2097151&i)+(0,r.stringFromCodePoint)(t),-2097152&i|2097152):t|1<<22,this._data[3*e+0]=i)}insertCells(t,i,s,r){if((t%=this.length)&&2===this.getWidth(t-1)&&this.setCellFromCodePoint(t-1,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs),i<this.length-t){const r=new o.CellData;for(let e=this.length-t-i-1;0<=e;--e)this.setCell(t+i+e,this.loadCell(t+e,r));for(let e=0;e<i;++e)this.setCell(t+e,s)}else for(let e=t;e<this.length;++e)this.setCell(e,s);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs)}deleteCells(t,i,s,r){if(t%=this.length,i<this.length-t){const r=new o.CellData;for(let e=0;e<this.length-t-i;++e)this.setCell(t+e,this.loadCell(t+i+e,r));for(let e=this.length-i;e<this.length;++e)this.setCell(e,s)}else for(let e=t;e<this.length;++e)this.setCell(e,s);t&&2===this.getWidth(t-1)&&this.setCellFromCodePoint(t-1,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs),0!==this.getWidth(t)||this.hasContent(t)||this.setCellFromCodePoint(t,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs)}replaceCells(e,t,i,s,r=!1){if(r)for(e&&2===this.getWidth(e-1)&&!this.isProtected(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==s?void 0:s.fg)||0,(null==s?void 0:s.bg)||0,(null==s?void 0:s.extended)||new a.ExtendedAttrs),t<this.length&&2===this.getWidth(t-1)&&!this.isProtected(t)&&this.setCellFromCodePoint(t,0,1,(null==s?void 0:s.fg)||0,(null==s?void 0:s.bg)||0,(null==s?void 0:s.extended)||new a.ExtendedAttrs);e<t&&e<this.length;)this.isProtected(e)||this.setCell(e,i),e++;else for(e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==s?void 0:s.fg)||0,(null==s?void 0:s.bg)||0,(null==s?void 0:s.extended)||new a.ExtendedAttrs),t<this.length&&2===this.getWidth(t-1)&&this.setCellFromCodePoint(t,0,1,(null==s?void 0:s.fg)||0,(null==s?void 0:s.bg)||0,(null==s?void 0:s.extended)||new a.ExtendedAttrs);e<t&&e<this.length;)this.setCell(e++,i)}resize(t,i){if(t!==this.length){if(t>this.length){var e=new Uint32Array(3*t);this.length&&(3*t<this._data.length?e.set(this._data.subarray(0,3*t)):e.set(this._data)),this._data=e;for(let e=this.length;e<t;++e)this.setCell(e,i)}else if(t){const i=new Uint32Array(3*t);i.set(this._data.subarray(0,3*t)),this._data=i;var s=Object.keys(this._combined);for(let e=0;e<s.length;e++){var r=parseInt(s[e],10);t<=r&&delete this._combined[r]}}else this._data=new Uint32Array(0),this._combined={};this.length=t}}fill(t,e=!1){if(e)for(let e=0;e<this.length;++e)this.isProtected(e)||this.setCell(e,t);else{this._combined={},this._extendedAttrs={};for(let e=0;e<this.length;++e)this.setCell(e,t)}}copyFrom(e){this.length!==e.length?this._data=new Uint32Array(e._data):this._data.set(e._data),this.length=e.length,this._combined={};for(const t in e._combined)this._combined[t]=e._combined[t];this._extendedAttrs={};for(const i in e._extendedAttrs)this._extendedAttrs[i]=e._extendedAttrs[i];this.isWrapped=e.isWrapped}clone(){var e=new h(0);e._data=new Uint32Array(this._data),e.length=this.length;for(const t in this._combined)e._combined[t]=this._combined[t];for(const i in this._extendedAttrs)e._extendedAttrs[i]=this._extendedAttrs[i];return e.isWrapped=this.isWrapped,e}getTrimmedLength(){for(let e=this.length-1;0<=e;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0}copyCellsFrom(i,s,r,e,t){var n=i._data;if(t)for(let t=e-1;0<=t;t--){for(let e=0;e<3;e++)this._data[3*(r+t)+e]=n[3*(s+t)+e];268435456&n[3*(s+t)+2]&&(this._extendedAttrs[r+t]=i._extendedAttrs[s+t])}else for(let t=0;t<e;t++){for(let e=0;e<3;e++)this._data[3*(r+t)+e]=n[3*(s+t)+e];268435456&n[3*(s+t)+2]&&(this._extendedAttrs[r+t]=i._extendedAttrs[s+t])}var o=Object.keys(i._combined);for(let e=0;e<o.length;e++){const t=parseInt(o[e],10);t>=s&&(this._combined[t-s+r]=i._combined[t])}}translateToString(e=!1,t=0,i=this.length){e&&(i=Math.min(i,this.getTrimmedLength()));let s="";for(;t<i;){const e=this._data[3*t+0],i=2097151&e;s+=2097152&e?this._combined[t]:i?(0,r.stringFromCodePoint)(i):n.WHITESPACE_CELL_CHAR,t+=e>>22||1}return s}}},4841:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(e,t){if(e.start.y>e.end.y)throw new Error(`Buffer range end (${e.end.x}, ${e.end.y}) cannot be before start (${e.start.x}, ${e.start.y})`);return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}},4634:(e,t)=>{function f(e,t,i){var s;return t===e.length-1?e[t].getTrimmedLength():(s=!e[t].hasContent(i-1)&&1===e[t].getWidth(i-1),e=2===e[t+1].getWidth(0),s&&e?i-1:i)}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(o,a,h,l,c){const _=[];for(let n=0;n<o.length-1;n++){let e=n,t=o.get(++e);if(t.isWrapped){for(var d=[o.get(n)];e<o.length&&t.isWrapped;)d.push(t),t=o.get(++e);if(!(l>=n&&l<e)){let t=0,e=f(d,t,a),i=1,s=0;for(;i<d.length;){const o=f(d,i,a),l=o-s,_=h-e,u=Math.min(l,_);d[t].copyCellsFrom(d[i],s,e,u,!1),(e+=u)===h&&(t++,e=0),(s+=u)===o&&(i++,s=0),0===e&&0!==t&&2===d[t-1].getWidth(h-1)&&(d[t].copyCellsFrom(d[t-1],h-1,e++,1,!1),d[t-1].setCell(h-1,c))}d[t].replaceCells(e,h,c);let r=0;for(let e=d.length-1;0<e&&(e>t||0===d[e].getTrimmedLength());e--)r++;0<r&&(_.push(n+d.length-r),_.push(r))}n+=d.length-1}}return _},t.reflowLargerCreateNewLayout=function(t,i){const s=[];let r=0,n=i[r],o=0;for(let e=0;e<t.length;e++)if(n===e){const s=i[++r];t.onDeleteEmitter.fire({index:e-o,amount:s}),e+=s-1,o+=s,n=i[++r]}else s.push(e);return{layout:s,countRemoved:o}},t.reflowLargerApplyNewLayout=function(t,i){var s=[];for(let e=0;e<i.length;e++)s.push(t.get(i[e]));for(let e=0;e<s.length;e++)t.set(e,s[e]);t.length=i.length},t.reflowSmallerGetNewLineLengths=function(i,s,e){var t=[],r=i.map((e,t)=>f(i,t,s)).reduce((e,t)=>e+t);let n=0,o=0,a=0;for(;a<r;){if(r-a<e){t.push(r-a);break}n+=e;var h=f(i,o,s),h=(n>h&&(n-=h,o++),2===i[o].getWidth(n-1)),h=(h&&n--,h?e-1:e);t.push(h),a+=h}return t},t.getWrappedLineTrimmedLength=f},5295:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;const s=i(9092),r=i(8460),n=i(844);class o extends n.Disposable{constructor(e,t){super(),this._optionsService=e,this._bufferService=t,this._onBufferActivate=this.register(new r.EventEmitter),this.reset()}get onBufferActivate(){return this._onBufferActivate.event}reset(){this._normal=new s.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new s.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(e,t){this._normal.resize(e,t),this._alt.resize(e,t)}setupTabStops(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)}}t.BufferSet=o},511:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;const s=i(482),r=i(643),n=i(3734);class o extends n.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new n.ExtendedAttrs,this.combinedData=""}static fromCharData(e){var t=new o;return t.setFromCharData(e),t}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,s.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(e){this.fg=e[r.CHAR_DATA_ATTR_INDEX],this.bg=0;let t=!1;var i,s;2<e[r.CHAR_DATA_CHAR_INDEX].length?t=!0:2===e[r.CHAR_DATA_CHAR_INDEX].length?55296<=(i=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0))&&i<=56319&&56320<=(s=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(1))&&s<=57343?this.content=1024*(i-55296)+s-56320+65536|e[r.CHAR_DATA_WIDTH_INDEX]<<22:t=!0:this.content=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[r.CHAR_DATA_WIDTH_INDEX]<<22,t&&(this.combinedData=e[r.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[r.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.CellData=o},643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_EXT=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=256,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.DEFAULT_EXT=0,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},4863:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;const s=i(8460),r=i(844);class n extends r.Disposable{constructor(e){super(),this.line=e,this._id=n._nextId++,this.isDisposed=!1,this._onDispose=new s.EventEmitter}get id(){return this._id}get onDispose(){return this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),super.dispose())}}(t.Marker=n)._nextId=1},7116:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(e,t)=>{var i,s;Object.defineProperty(t,"__esModule",{value:!0}),t.C1_ESCAPED=t.C1=t.C0=void 0,(s=i=t.C0||(t.C0={})).NUL="\0",s.SOH="",s.STX="",s.ETX="",s.EOT="",s.ENQ="",s.ACK="",s.BEL="",s.BS="\b",s.HT="\t",s.LF="\n",s.VT="\v",s.FF="\f",s.CR="\r",s.SO="",s.SI="",s.DLE="",s.DC1="",s.DC2="",s.DC3="",s.DC4="",s.NAK="",s.SYN="",s.ETB="",s.CAN="",s.EM="",s.SUB="",s.ESC="",s.FS="",s.GS="",s.RS="",s.US="",s.SP=" ",s.DEL="",(s=t.C1||(t.C1={})).PAD="",s.HOP="",s.BPH="",s.NBH="",s.IND="",s.NEL="
",s.SSA="",s.ESA="",s.HTS="",s.HTJ="",s.VTS="",s.PLD="",s.PLU="",s.RI="",s.SS2="",s.SS3="",s.DCS="",s.PU1="",s.PU2="",s.STS="",s.CCH="",s.MW="",s.SPA="",s.EPA="",s.SOS="",s.SGCI="",s.SCI="",s.CSI="",s.ST="",s.OSC="",s.PM="",s.APC="",(t.C1_ESCAPED||(t.C1_ESCAPED={})).ST=i.ESC+"\\"},7399:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;const o=i(2584),a={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(t,i,e,s){var r={type:0,cancel:!1,key:void 0},n=(t.shiftKey?1:0)|(t.altKey?2:0)|(t.ctrlKey?4:0)|(t.metaKey?8:0);switch(t.keyCode){case 0:"UIKeyInputUpArrow"===t.key?r.key=i?o.C0.ESC+"OA":o.C0.ESC+"[A":"UIKeyInputLeftArrow"===t.key?r.key=i?o.C0.ESC+"OD":o.C0.ESC+"[D":"UIKeyInputRightArrow"===t.key?r.key=i?o.C0.ESC+"OC":o.C0.ESC+"[C":"UIKeyInputDownArrow"===t.key&&(r.key=i?o.C0.ESC+"OB":o.C0.ESC+"[B");break;case 8:t.altKey?r.key=o.C0.ESC+o.C0.DEL:r.key=o.C0.DEL;break;case 9:t.shiftKey?r.key=o.C0.ESC+"[Z":(r.key=o.C0.HT,r.cancel=!0);break;case 13:r.key=t.altKey?o.C0.ESC+o.C0.CR:o.C0.CR,r.cancel=!0;break;case 27:r.key=o.C0.ESC,t.altKey&&(r.key=o.C0.ESC+o.C0.ESC),r.cancel=!0;break;case 37:t.metaKey||(n?(r.key=o.C0.ESC+"[1;"+(1+n)+"D",r.key===o.C0.ESC+"[1;3D"&&(r.key=o.C0.ESC+(e?"b":"[1;5D"))):r.key=i?o.C0.ESC+"OD":o.C0.ESC+"[D");break;case 39:t.metaKey||(n?(r.key=o.C0.ESC+"[1;"+(1+n)+"C",r.key===o.C0.ESC+"[1;3C"&&(r.key=o.C0.ESC+(e?"f":"[1;5C"))):r.key=i?o.C0.ESC+"OC":o.C0.ESC+"[C");break;case 38:t.metaKey||(n?(r.key=o.C0.ESC+"[1;"+(1+n)+"A",e||r.key!==o.C0.ESC+"[1;3A"||(r.key=o.C0.ESC+"[1;5A")):r.key=i?o.C0.ESC+"OA":o.C0.ESC+"[A");break;case 40:t.metaKey||(n?(r.key=o.C0.ESC+"[1;"+(1+n)+"B",e||r.key!==o.C0.ESC+"[1;3B"||(r.key=o.C0.ESC+"[1;5B")):r.key=i?o.C0.ESC+"OB":o.C0.ESC+"[B");break;case 45:t.shiftKey||t.ctrlKey||(r.key=o.C0.ESC+"[2~");break;case 46:r.key=n?o.C0.ESC+"[3;"+(1+n)+"~":o.C0.ESC+"[3~";break;case 36:r.key=n?o.C0.ESC+"[1;"+(1+n)+"H":i?o.C0.ESC+"OH":o.C0.ESC+"[H";break;case 35:r.key=n?o.C0.ESC+"[1;"+(1+n)+"F":i?o.C0.ESC+"OF":o.C0.ESC+"[F";break;case 33:t.shiftKey?r.type=2:t.ctrlKey?r.key=o.C0.ESC+"[5;"+(1+n)+"~":r.key=o.C0.ESC+"[5~";break;case 34:t.shiftKey?r.type=3:t.ctrlKey?r.key=o.C0.ESC+"[6;"+(1+n)+"~":r.key=o.C0.ESC+"[6~";break;case 112:r.key=n?o.C0.ESC+"[1;"+(1+n)+"P":o.C0.ESC+"OP";break;case 113:r.key=n?o.C0.ESC+"[1;"+(1+n)+"Q":o.C0.ESC+"OQ";break;case 114:r.key=n?o.C0.ESC+"[1;"+(1+n)+"R":o.C0.ESC+"OR";break;case 115:r.key=n?o.C0.ESC+"[1;"+(1+n)+"S":o.C0.ESC+"OS";break;case 116:r.key=n?o.C0.ESC+"[15;"+(1+n)+"~":o.C0.ESC+"[15~";break;case 117:r.key=n?o.C0.ESC+"[17;"+(1+n)+"~":o.C0.ESC+"[17~";break;case 118:r.key=n?o.C0.ESC+"[18;"+(1+n)+"~":o.C0.ESC+"[18~";break;case 119:r.key=n?o.C0.ESC+"[19;"+(1+n)+"~":o.C0.ESC+"[19~";break;case 120:r.key=n?o.C0.ESC+"[20;"+(1+n)+"~":o.C0.ESC+"[20~";break;case 121:r.key=n?o.C0.ESC+"[21;"+(1+n)+"~":o.C0.ESC+"[21~";break;case 122:r.key=n?o.C0.ESC+"[23;"+(1+n)+"~":o.C0.ESC+"[23~";break;case 123:r.key=n?o.C0.ESC+"[24;"+(1+n)+"~":o.C0.ESC+"[24~";break;default:if(!t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)if(e&&!s||!t.altKey||t.metaKey)!e||t.altKey||t.ctrlKey||t.shiftKey||!t.metaKey?t.key&&!t.ctrlKey&&!t.altKey&&!t.metaKey&&48<=t.keyCode&&1===t.key.length?r.key=t.key:t.key&&t.ctrlKey&&("_"===t.key&&(r.key=o.C0.US),"@"===t.key)&&(r.key=o.C0.NUL):65===t.keyCode&&(r.type=1);else{const i=a[t.keyCode],e=null==i?void 0:i[t.shiftKey?1:0];if(e)r.key=o.C0.ESC+e;else if(65<=t.keyCode&&t.keyCode<=90){const i=t.ctrlKey?t.keyCode-64:t.keyCode+32;let e=String.fromCharCode(i);t.shiftKey&&(e=e.toUpperCase()),r.key=o.C0.ESC+e}else if("Dead"===t.key&&t.code.startsWith("Key")){let e=t.code.slice(3,4);t.shiftKey||(e=e.toLowerCase()),r.key=o.C0.ESC+e,r.cancel=!0}}else 65<=t.keyCode&&t.keyCode<=90?r.key=String.fromCharCode(t.keyCode-64):32===t.keyCode?r.key=o.C0.NUL:51<=t.keyCode&&t.keyCode<=55?r.key=String.fromCharCode(t.keyCode-51+27):56===t.keyCode?r.key=o.C0.DEL:219===t.keyCode?r.key=o.C0.ESC:220===t.keyCode?r.key=o.C0.FS:221===t.keyCode&&(r.key=o.C0.GS)}return r}},482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return 65535<e?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(i,e=0,s=i.length){let r="";for(let t=e;t<s;++t){let e=i[t];65535<e?(e-=65536,r+=String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):r+=String.fromCharCode(e)}return r},t.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(t,i){const s=t.length;if(!s)return 0;let r=0,n=0;if(this._interim){const s=t.charCodeAt(n++);56320<=s&&s<=57343?i[r++]=1024*(this._interim-55296)+s-56320+65536:(i[r++]=this._interim,i[r++]=s),this._interim=0}for(let e=n;e<s;++e){const n=t.charCodeAt(e);if(55296<=n&&n<=56319){if(++e>=s)return this._interim=n,r;var o=t.charCodeAt(e);56320<=o&&o<=57343?i[r++]=1024*(n-55296)+o-56320+65536:(i[r++]=n,i[r++]=o)}else 65279!==n&&(i[r++]=n)}return r}},t.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(r,n){var o=r.length;if(!o)return 0;let e,t,i,s,a=0,h=0,l=0;if(this.interim[0]){let e=!1,t=this.interim[0];t&=192==(224&t)?31:224==(240&t)?15:7;let i,s=0;for(;(i=63&this.interim[++s])&&s<4;)t=(t<<=6)|i;const h=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,c=h-s;for(;l<c;){if(l>=o)return 0;if(128!=(192&(i=r[l++]))){l--,e=!0;break}this.interim[s++]=i,t=(t<<=6)|63&i}e||(2==h?t<128?l--:n[a++]=t:3==h?t<2048||55296<=t&&t<=57343||65279===t||(n[a++]=t):t<65536||1114111<t||(n[a++]=t)),this.interim.fill(0)}const c=o-4;let _=l;for(;_<o;){for(;!(!(_<c)||128&(e=r[_])||128&(t=r[_+1])||128&(i=r[_+2])||128&(s=r[_+3]));)n[a++]=e,n[a++]=t,n[a++]=i,n[a++]=s,_+=4;if((e=r[_++])<128)n[a++]=e;else if(192==(224&e)){if(_>=o)return this.interim[0]=e,a;128!=(192&(t=r[_++]))?_--:(h=(31&e)<<6|63&t)<128?_--:n[a++]=h}else if(224==(240&e)){if(_>=o)return this.interim[0]=e,a;if(128!=(192&(t=r[_++])))_--;else{if(_>=o)return this.interim[0]=e,this.interim[1]=t,a;128!=(192&(i=r[_++]))?_--:(h=(15&e)<<12|(63&t)<<6|63&i)<2048||55296<=h&&h<=57343||65279===h||(n[a++]=h)}}else if(240==(248&e)){if(_>=o)return this.interim[0]=e,a;if(128!=(192&(t=r[_++])))_--;else{if(_>=o)return this.interim[0]=e,this.interim[1]=t,a;if(128!=(192&(i=r[_++])))_--;else{if(_>=o)return this.interim[0]=e,this.interim[1]=t,this.interim[2]=i,a;128!=(192&(s=r[_++]))?_--:(h=(7&e)<<18|(63&t)<<12|(63&i)<<6|63&s)<65536||1114111<h||(n[a++]=h)}}}}return a}}},225:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;const s=i(8273),r=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],n=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let o;t.UnicodeV6=class{constructor(){if(this.version="6",!o){o=new Uint8Array(65536),(0,s.fill)(o,1),(o[0]=0,s.fill)(o,0,1,32),(0,s.fill)(o,0,127,160),(0,s.fill)(o,2,4352,4448),o[9001]=2,o[9002]=2,(0,s.fill)(o,2,11904,42192),o[12351]=1,(0,s.fill)(o,2,44032,55204),(0,s.fill)(o,2,63744,64256),(0,s.fill)(o,2,65040,65050),(0,s.fill)(o,2,65072,65136),(0,s.fill)(o,2,65280,65377),(0,s.fill)(o,2,65504,65511);for(let e=0;e<r.length;++e)(0,s.fill)(o,0,r[e][0],r[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?o[e]:function(e,t){let i,s=0,r=t.length-1;if(!(e<t[0][0]||e>t[r][1]))for(;r>=s;)if(e>t[i=s+r>>1][1])s=1+i;else{if(!(e<t[i][0]))return 1;r=i-1}}(e,n)?0:131072<=e&&e<=196605||196608<=e&&e<=262141?2:1}}},5981:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;const s=i(8460),n="undefined"==typeof queueMicrotask?e=>{Promise.resolve().then(e)}:queueMicrotask;t.WriteBuffer=class{constructor(e){this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._onWriteParsed=new s.EventEmitter}get onWriteParsed(){return this._onWriteParsed.event}writeSync(e,t){if(void 0!==t&&this._syncCalls>t)this._syncCalls=0;else if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var i;for(this._isSyncWriting=!0;i=this._writeBuffer.shift();){this._action(i);const e=this._callbacks.shift();e&&e()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}}write(e,t){if(5e7<this._pendingData)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(()=>this._innerWrite())),this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)}_innerWrite(e=0,t=!0){const i=e||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const e=this._writeBuffer[this._bufferOffset],r=this._action(e,t);if(r){const e=e=>12<=Date.now()-i?setTimeout(()=>this._innerWrite(0,e)):this._innerWrite(i,e);return void r.catch(e=>(n(()=>{throw e}),Promise.resolve(!1))).then(e)}var s=this._callbacks[this._bufferOffset];if(s&&s(),this._bufferOffset++,this._pendingData-=e.length,12<=Date.now()-i)break}this._writeBuffer.length>this._bufferOffset?(50<this._bufferOffset&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}},5941:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbString=t.parseColor=void 0;const r=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,n=/^[\da-f]+$/;function o(e,t){var i=e.toString(16),s=i.length<2?"0"+i:i;switch(t){case 4:return i[0];case 8:return s;case 12:return(s+s).slice(0,3);default:return s+s}}t.parseColor=function(i){if(i){let t=i.toLowerCase();if(0===t.indexOf("rgb:")){t=t.slice(4);const i=r.exec(t);if(i){const e=i[1]?15:i[4]?255:i[7]?4095:65535;return[Math.round(parseInt(i[1]||i[4]||i[7]||i[10],16)/e*255),Math.round(parseInt(i[2]||i[5]||i[8]||i[11],16)/e*255),Math.round(parseInt(i[3]||i[6]||i[9]||i[12],16)/e*255)]}}else if(0===t.indexOf("#")&&(t=t.slice(1),n.exec(t))&&[3,6,9,12].includes(t.length)){const i=t.length/3,r=[0,0,0];for(let e=0;e<3;++e){var s=parseInt(t.slice(i*e,i*e+i),16);r[e]=1==i?s<<4:2==i?s:3==i?s>>4:s>>8}return r}}},t.toRgbString=function(e,t=16){var[e,i,s]=e;return`rgb:${o(e,t)}/${o(i,t)}/`+o(s,t)}},5770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;const r=i(482),s=i(8742),n=i(5770),o=[],a=(t.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=o,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=o}registerHandler(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);const i=this._handlers[e];return i.push(t),{dispose:()=>{var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}reset(){if(this._active.length)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;0<=e;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=o,this._ident=0}hook(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||o,this._active.length)for(let e=this._active.length-1;0<=e;e--)this._active[e].hook(t);else this._handlerFb(this._ident,"HOOK",t)}put(t,i,s){if(this._active.length)for(let e=this._active.length-1;0<=e;e--)this._active[e].put(t,i,s);else this._handlerFb(this._ident,"PUT",(0,r.utf32ToString)(t,i,s))}unhook(s,r=!0){if(this._active.length){let e=!1,t=this._active.length-1,i=!1;if(this._stack.paused&&(t=this._stack.loopPosition-1,e=r,i=this._stack.fallThrough,this._stack.paused=!1),!i&&!1===e){for(;0<=t&&!0!==(e=this._active[t].unhook(s));t--)if(e instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=t,this._stack.fallThrough=!1,e;t--}for(;0<=t;t--)if((e=this._active[t].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=t,this._stack.fallThrough=!0,e}else this._handlerFb(this._ident,"UNHOOK",s);this._active=o,this._ident=0}},new s.Params);a.addParam(0),t.DcsHandler=class{constructor(e){this._handler=e,this._data="",this._params=a,this._hitLimit=!1}hook(e){this._params=1<e.length||e.params[0]?e.clone():a,this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=(0,r.utf32ToString)(e,t,i),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data,this._params))instanceof Promise)return t.then(e=>(this._params=a,this._data="",this._hitLimit=!1,e));return this._params=a,this._data="",this._hitLimit=!1,t}}},2015:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;const s=i(844),r=i(8273),n=i(8742),o=i(6242),a=i(6351);class h{constructor(e){this.table=new Uint8Array(e)}setDefault(e,t){(0,r.fill)(this.table,e<<4|t)}add(e,t,i,s){this.table[t<<8|e]=i<<4|s}addMany(t,i,s,r){for(let e=0;e<t.length;e++)this.table[i<<8|t[e]]=s<<4|r}}t.TransitionTable=h;const c=160;t.VT500_TRANSITION_TABLE=function(){const e=new h(4095),i=Array.apply(null,Array(256)).map((e,t)=>t),t=(e,t)=>i.slice(e,t),s=t(32,127),r=t(0,24);r.push(25),r.push.apply(r,t(28,32));var n=t(0,14);let o;for(o in e.setDefault(1,0),e.addMany(s,0,2,0),n)e.addMany([24,26,153,154],o,3,0),e.addMany(t(128,144),o,3,0),e.addMany(t(144,152),o,3,0),e.add(156,o,0,0),e.add(27,o,11,1),e.add(157,o,4,8),e.addMany([152,158,159],o,0,7),e.add(155,o,11,3),e.add(144,o,11,9);return e.addMany(r,0,3,0),e.addMany(r,1,3,1),e.add(127,1,0,1),e.addMany(r,8,0,8),e.addMany(r,3,3,3),e.add(127,3,0,3),e.addMany(r,4,3,4),e.add(127,4,0,4),e.addMany(r,6,3,6),e.addMany(r,5,3,5),e.add(127,5,0,5),e.addMany(r,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(s,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(t(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(s,7,0,7),e.addMany(r,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(t(64,127),3,7,0),e.addMany(t(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(t(48,60),4,8,4),e.addMany(t(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(t(32,64),6,0,6),e.add(127,6,0,6),e.addMany(t(64,127),6,0,0),e.addMany(t(32,48),3,9,5),e.addMany(t(32,48),5,9,5),e.addMany(t(48,64),5,0,6),e.addMany(t(64,127),5,7,0),e.addMany(t(32,48),4,9,5),e.addMany(t(32,48),1,9,2),e.addMany(t(32,48),2,9,2),e.addMany(t(48,127),2,10,0),e.addMany(t(48,80),1,10,0),e.addMany(t(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(t(96,127),1,10,0),e.add(80,1,11,9),e.addMany(r,9,0,9),e.add(127,9,0,9),e.addMany(t(28,32),9,0,9),e.addMany(t(32,48),9,9,12),e.addMany(t(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(r,11,0,11),e.addMany(t(32,128),11,0,11),e.addMany(t(28,32),11,0,11),e.addMany(r,10,0,10),e.add(127,10,0,10),e.addMany(t(28,32),10,0,10),e.addMany(t(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(t(32,48),10,9,12),e.addMany(r,12,0,12),e.add(127,12,0,12),e.addMany(t(28,32),12,0,12),e.addMany(t(32,48),12,9,12),e.addMany(t(48,64),12,0,11),e.addMany(t(64,127),12,12,13),e.addMany(t(64,127),10,12,13),e.addMany(t(64,127),9,12,13),e.addMany(r,13,13,13),e.addMany(s,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(c,0,2,0),e.add(c,8,5,8),e.add(c,6,0,6),e.add(c,11,0,11),e.add(c,13,13,13),e}();class l extends s.Disposable{constructor(e=t.VT500_TRANSITION_TABLE){super(),this._transitions=e,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new n.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(e,t,i)=>{},this._executeHandlerFb=e=>{},this._csiHandlerFb=(e,t)=>{},this._escHandlerFb=e=>{},this._errorHandlerFb=e=>e,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser=new o.OscParser,this._dcsParser=new a.DcsParser,this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(t,e=[64,126]){let i=0;if(t.prefix){if(1<t.prefix.length)throw new Error("only one byte as prefix supported");if((i=t.prefix.charCodeAt(0))&&i<60||63<i)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(t.intermediates){if(2<t.intermediates.length)throw new Error("only two bytes as intermediates are supported");for(let e=0;e<t.intermediates.length;++e){const s=t.intermediates.charCodeAt(e);if(s<32||47<s)throw new Error("intermediate must be in range 0x20 .. 0x2f");i=i<<8|s}}if(1!==t.final.length)throw new Error("final must be a single byte");const s=t.final.charCodeAt(0);if(e[0]>s||s>e[1])throw new Error(`final must be in range ${e[0]} .. `+e[1]);return i=(i<<=8)|s}identToString(e){for(var t=[];e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")}dispose(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()}setPrintHandler(e){this._printHandler=e}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(e,t){e=this._identifier(e,[48,126]);void 0===this._escHandlers[e]&&(this._escHandlers[e]=[]);const i=this._escHandlers[e];return i.push(t),{dispose:()=>{var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearEscHandler(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}setEscHandlerFallback(e){this._escHandlerFb=e}setExecuteHandler(e,t){this._executeHandlers[e.charCodeAt(0)]=t}clearExecuteHandler(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}setExecuteHandlerFallback(e){this._executeHandlerFb=e}registerCsiHandler(e,t){e=this._identifier(e);void 0===this._csiHandlers[e]&&(this._csiHandlers[e]=[]);const i=this._csiHandlers[e];return i.push(t),{dispose:()=>{var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearCsiHandler(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}setCsiHandlerFallback(e){this._csiHandlerFb=e}registerDcsHandler(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)}clearDcsHandler(e){this._dcsParser.clearHandler(this._identifier(e))}setDcsHandlerFallback(e){this._dcsParser.setHandlerFallback(e)}registerOscHandler(e,t){return this._oscParser.registerHandler(e,t)}clearOscHandler(e){this._oscParser.clearHandler(e)}setOscHandlerFallback(e){this._oscParser.setHandlerFallback(e)}setErrorHandler(e){this._errorHandler=e}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,(this.precedingCodepoint=0)!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(e,t,i,s,r){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=i,this._parseStack.transition=s,this._parseStack.chunkPos=r}parse(s,r,t){let n,o=0,a=0,h=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,h=this._parseStack.chunkPos+1;else{if(void 0===t||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const r=this._parseStack.handlers;let e=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===t&&-1<e)for(;0<=e&&!0!==(n=r[e](this._params));e--)if(n instanceof Promise)return this._parseStack.handlerPos=e,n;this._parseStack.handlers=[];break;case 4:if(!1===t&&-1<e)for(;0<=e&&!0!==(n=r[e]());e--)if(n instanceof Promise)return this._parseStack.handlerPos=e,n;this._parseStack.handlers=[];break;case 6:if(o=s[this._parseStack.chunkPos],n=this._dcsParser.unhook(24!==o&&26!==o,t))return n;27===o&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(o=s[this._parseStack.chunkPos],n=this._oscParser.end(24!==o&&26!==o,t))return n;27===o&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,h=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(let i=h;i<r;++i){switch(o=s[i],(a=this._transitions.table[this.currentState<<8|(o<160?o:c)])>>4){case 2:for(let e=i+1;;++e){if(e>=r||(o=s[e])<32||126<o&&o<c){this._printHandler(s,i,e),i=e-1;break}if(++e>=r||(o=s[e])<32||126<o&&o<c){this._printHandler(s,i,e),i=e-1;break}if(++e>=r||(o=s[e])<32||126<o&&o<c){this._printHandler(s,i,e),i=e-1;break}if(++e>=r||(o=s[e])<32||126<o&&o<c){this._printHandler(s,i,e),i=e-1;break}}break;case 3:this._executeHandlers[o]?this._executeHandlers[o]():this._executeHandlerFb(o),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:i,code:o,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:const h=this._csiHandlers[this._collect<<8|o];let e=h?h.length-1:-1;for(;0<=e&&!0!==(n=h[e](this._params));e--)if(n instanceof Promise)return this._preserveStack(3,h,e,a,i),n;e<0&&this._csiHandlerFb(this._collect<<8|o,this._params),this.precedingCodepoint=0;break;case 8:do{switch(o){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(o-48)}}while(++i<r&&47<(o=s[i])&&o<60);i--;break;case 9:this._collect<<=8,this._collect|=o;break;case 10:var l=this._escHandlers[this._collect<<8|o];let t=l?l.length-1:-1;for(;0<=t&&!0!==(n=l[t]());t--)if(n instanceof Promise)return this._preserveStack(4,l,t,a,i),n;t<0&&this._escHandlerFb(this._collect<<8|o),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|o,this._params);break;case 13:for(let e=i+1;;++e)if(e>=r||24===(o=s[e])||26===o||27===o||127<o&&o<c){this._dcsParser.put(s,i,e),i=e-1;break}break;case 14:if(n=this._dcsParser.unhook(24!==o&&26!==o))return this._preserveStack(6,[],0,a,i),n;27===o&&(a|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(let e=i+1;;e++)if(e>=r||(o=s[e])<32||127<o&&o<c){this._oscParser.put(s,i,e),i=e-1;break}break;case 6:if(n=this._oscParser.end(24!==o&&26!==o))return this._preserveStack(5,[],0,a,i),n;27===o&&(a|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&a}}}t.EscapeSequenceParser=l},6242:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;const s=i(5770),r=i(482),n=[];t.OscParser=class{constructor(){this._state=0,this._active=n,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);const i=this._handlers[e];return i.push(t),{dispose:()=>{var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=n}reset(){if(2===this._state)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;0<=e;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=n,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||n,this._active.length)for(let e=this._active.length-1;0<=e;e--)this._active[e].start();else this._handlerFb(this._id,"START")}_put(t,i,s){if(this._active.length)for(let e=this._active.length-1;0<=e;e--)this._active[e].put(t,i,s);else this._handlerFb(this._id,"PUT",(0,r.utf32ToString)(t,i,s))}start(){this.reset(),this._state=1}put(e,t,i){if(3!==this._state){if(1===this._state)for(;t<i;){const i=e[t++];if(59===i){this._state=2,this._start();break}if(i<48||57<i)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+i-48}2===this._state&&0<i-t&&this._put(e,t,i)}}end(s,r=!0){if(0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){let e=!1,t=this._active.length-1,i=!1;if(this._stack.paused&&(t=this._stack.loopPosition-1,e=r,i=this._stack.fallThrough,this._stack.paused=!1),!i&&!1===e){for(;0<=t&&!0!==(e=this._active[t].end(s));t--)if(e instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=t,this._stack.fallThrough=!1,e;t--}for(;0<=t;t--)if((e=this._active[t].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=t,this._stack.fallThrough=!0,e}else this._handlerFb(this._id,"END",s);this._active=n,this._id=-1,this._state=0}}},t.OscHandler=class{constructor(e){this._handler=e,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=(0,r.utf32ToString)(e,t,i),this._data.length>s.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data))instanceof Promise)return t.then(e=>(this._data="",this._hitLimit=!1,e));return this._data="",this._hitLimit=!1,t}}},8742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;const r=2147483647;class s{constructor(e=32,t=32){if(this.maxLength=e,256<(this.maxSubParamsLength=t))throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}static fromArray(t){var i=new s;if(t.length)for(let e=Array.isArray(t[0])?1:0;e<t.length;++e){const s=t[e];if(Array.isArray(s))for(let e=0;e<s.length;++e)i.addSubParam(s[e]);else i.addParam(s)}return i}clone(){var e=new s(this.maxLength,this.maxSubParamsLength);return e.params.set(this.params),e.length=this.length,e._subParams.set(this._subParams),e._subParamsLength=this._subParamsLength,e._subParamsIdx.set(this._subParamsIdx),e._rejectDigits=this._rejectDigits,e._rejectSubDigits=this._rejectSubDigits,e._digitIsSub=this._digitIsSub,e}toArray(){var t=[];for(let e=0;e<this.length;++e){t.push(this.params[e]);var i=this._subParamsIdx[e]>>8,s=255&this._subParamsIdx[e];0<s-i&&t.push(Array.prototype.slice.call(this._subParams,i,s))}return t}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>r?r:e}}addSubParam(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>r?r:e,this._subParamsIdx[this.length-1]++}}hasSubParams(e){return 0<(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)}getSubParams(e){var t=this._subParamsIdx[e]>>8,e=255&this._subParamsIdx[e];return 0<e-t?this._subParams.subarray(t,e):null}getSubParamsAll(){var t={};for(let e=0;e<this.length;++e){var i=this._subParamsIdx[e]>>8,s=255&this._subParamsIdx[e];0<s-i&&(t[e]=this._subParams.slice(i,s))}return t}addDigit(e){let t;var i,s;this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits||(s=(i=this._digitIsSub?this._subParams:this.params)[t-1],i[t-1]=~s?Math.min(10*s+e,r):e)}}t.Params=s},5741:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0,t.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let e=this._addons.length-1;0<=e;e--)this._addons[e].instance.dispose()}loadAddon(e,t){const i={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(i),t.dispose=()=>this._wrappedAddonDispose(i),t.activate(e)}_wrappedAddonDispose(i){if(!i.isDisposed){let t=-1;for(let e=0;e<this._addons.length;e++)if(this._addons[e]===i){t=e;break}if(-1===t)throw new Error("Could not dispose an addon that has not been loaded");i.isDisposed=!0,i.dispose.apply(i.instance),this._addons.splice(t,1)}}}},8771:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferApiView=void 0;const s=i(3785),r=i(511);t.BufferApiView=class{constructor(e,t){this._buffer=e,this.type=t}init(e){return this._buffer=e,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(e){e=this._buffer.lines.get(e);if(e)return new s.BufferLineApiView(e)}getNullCell(){return new r.CellData}}},3785:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLineApiView=void 0;const s=i(511);t.BufferLineApiView=class{constructor(e){this._line=e}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new s.CellData)}translateToString(e,t,i){return this._line.translateToString(e,t,i)}}},8285:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferNamespaceApi=void 0;const s=i(8771),r=i(8460);t.BufferNamespaceApi=class{constructor(e){this._core=e,this._onBufferChange=new r.EventEmitter,this._normal=new s.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new s.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get onBufferChange(){return this._onBufferChange.event}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}},7975:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParserApi=void 0,t.ParserApi=class{constructor(e){this._core=e}registerCsiHandler(e,t){return this._core.registerCsiHandler(e,e=>t(e.toArray()))}addCsiHandler(e,t){return this.registerCsiHandler(e,t)}registerDcsHandler(e,i){return this._core.registerDcsHandler(e,(e,t)=>i(e,t.toArray()))}addDcsHandler(e,t){return this.registerDcsHandler(e,t)}registerEscHandler(e,t){return this._core.registerEscHandler(e,t)}addEscHandler(e,t){return this.registerEscHandler(e,t)}registerOscHandler(e,t){return this._core.registerOscHandler(e,t)}addOscHandler(e,t){return this.registerOscHandler(e,t)}}},7090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeApi=void 0,t.UnicodeApi=class{constructor(e){this._core=e}register(e){this._core.unicodeService.register(e)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(e){this._core.unicodeService.activeVersion=e}}},744:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;const n=i(2585),o=i(5295),a=i(8460),h=i(844);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;i=class extends h.Disposable{constructor(e){super(),this.isUserScrolling=!1,this._onResize=new a.EventEmitter,this._onScroll=new a.EventEmitter,this.cols=Math.max(e.rawOptions.cols||0,t.MINIMUM_COLS),this.rows=Math.max(e.rawOptions.rows||0,t.MINIMUM_ROWS),this.buffers=new o.BufferSet(e,this)}get onResize(){return this._onResize.event}get onScroll(){return this._onScroll.event}get buffer(){return this.buffers.active}dispose(){super.dispose(),this.buffers.dispose()}resize(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:e,rows:t})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,t=!1){var i=this.buffer;let s;(s=this._cachedBlankLine)&&s.length===this.cols&&s.getFg(0)===e.fg&&s.getBg(0)===e.bg||(s=i.getBlankLine(e,t),this._cachedBlankLine=s),s.isWrapped=t;var t=i.ybase+i.scrollTop,r=i.ybase+i.scrollBottom;if(0===i.scrollTop){const e=i.lines.isFull;r===i.lines.length-1?e?i.lines.recycle().copyFrom(s):i.lines.push(s.clone()):i.lines.splice(r+1,0,s.clone()),e?this.isUserScrolling&&(i.ydisp=Math.max(i.ydisp-1,0)):(i.ybase++,this.isUserScrolling||i.ydisp++)}else{const e=r-t+1;i.lines.shiftElements(t+1,e-1,-1),i.lines.set(r,s.clone())}this.isUserScrolling||(i.ydisp=i.ybase),this._onScroll.fire(i.ydisp)}scrollLines(e,t,i){var s=this.buffer;if(e<0){if(0===s.ydisp)return;this.isUserScrolling=!0}else e+s.ydisp>=s.ybase&&(this.isUserScrolling=!1);var r=s.ydisp;s.ydisp=Math.max(Math.min(s.ydisp+e,s.ybase),0),r===s.ydisp||t||this._onScroll.fire(s.ydisp)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this.buffer.ydisp)}scrollToBottom(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)}scrollToLine(e){e-=this.buffer.ydisp;0!=e&&this.scrollLines(e)}},i=s([r(0,n.IOptionsService)],i);t.BufferService=i},7994:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0,t.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(e){this.glevel=e,this.charset=this._charsets[e]}setgCharset(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)}}},1753:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;const n=i(2585),o=i(8460),a={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:e=>4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,!(e.shift=!1))},VT200:{events:19,restrict:e=>32!==e.action},DRAG:{events:23,restrict:e=>32!==e.action||3!==e.button},ANY:{events:31,restrict:e=>!0}};function h(e,t){let i=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?i=(i|=64)|e.action:(i|=3&e.button,4&e.button&&(i|=64),8&e.button&&(i|=128),32===e.action?i|=32:0!==e.action||t||(i|=3)),i}const l=String.fromCharCode,c={DEFAULT:e=>{e=[h(e,!1)+32,e.col+32,e.row+32];return 255<e[0]||255<e[1]||255<e[2]?"":"[M"+l(e[0])+l(e[1])+l(e[2])},SGR:e=>{var t=0===e.action&&4!==e.button?"m":"M";return`[<${h(e,!0)};${e.col};`+e.row+t},SGR_PIXELS:e=>{var t=0===e.action&&4!==e.button?"m":"M";return`[<${h(e,!0)};${e.x};`+e.y+t}};i=class{constructor(e,t){this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new o.EventEmitter,this._lastEvent=null;for(const e of Object.keys(a))this.addProtocol(e,a[e]);for(const e of Object.keys(c))this.addEncoding(e,c[e]);this.reset()}addProtocol(e,t){this._protocols[e]=t}addEncoding(e,t){this._encodings[e]=t}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return 0!==this._protocols[this._activeProtocol].events}set activeProtocol(e){if(!this._protocols[e])throw new Error(`unknown protocol "${e}"`);this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(e){if(!this._encodings[e])throw new Error(`unknown encoding "${e}"`);this._activeEncoding=e}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}get onProtocolChange(){return this._onProtocolChange.event}triggerMouseEvent(e){var t;return!(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows||4===e.button&&32===e.action||3===e.button&&32!==e.action||4!==e.button&&(2===e.action||3===e.action)||(e.col++,e.row++,32===e.action&&this._lastEvent&&this._equalEvents(this._lastEvent,e,"SGR_PIXELS"===this._activeEncoding))||!this._protocols[this._activeProtocol].restrict(e)||((t=this._encodings[this._activeEncoding](e))&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,0))}explainEvents(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}}_equalEvents(e,t,i){if(i){if(e.x!==t.x)return!1;if(e.y!==t.y)return!1}else{if(e.col!==t.col)return!1;if(e.row!==t.row)return!1}return e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift}},i=s([r(0,n.IBufferService),r(1,n.ICoreService)],i);t.CoreMouseService=i},6975:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;const n=i(2585),o=i(8460),a=i(1439),h=i(844),l=Object.freeze({insertMode:!1}),c=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});i=class extends h.Disposable{constructor(e,t,i,s){super(),this._bufferService=t,this._logService=i,this._optionsService=s,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new o.EventEmitter),this._onUserInput=this.register(new o.EventEmitter),this._onBinary=this.register(new o.EventEmitter),this._scrollToBottom=e,this.register({dispose:()=>this._scrollToBottom=void 0}),this.modes=(0,a.clone)(l),this.decPrivateModes=(0,a.clone)(c)}get onData(){return this._onData.event}get onUserInput(){return this._onUserInput.event}get onBinary(){return this._onBinary.event}reset(){this.modes=(0,a.clone)(l),this.decPrivateModes=(0,a.clone)(c)}triggerDataEvent(e,t=!1){var i;this._optionsService.rawOptions.disableStdin||((i=this._bufferService.buffer).ybase!==i.ydisp&&this._scrollToBottom(),t&&this._onUserInput.fire(),this._logService.debug(`sending data "${e}"`,()=>e.split("").map(e=>e.charCodeAt(0))),this._onData.fire(e))}triggerBinaryEvent(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${e}"`,()=>e.split("").map(e=>e.charCodeAt(0))),this._onBinary.fire(e))}},i=s([r(1,n.IBufferService),r(2,n.ILogService),r(3,n.IOptionsService)],i);t.CoreService=i},9074:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationService=void 0;const s=i(8055),r=i(8460),n=i(844),o=i(6106),a={xmin:0,xmax:0};class h extends n.Disposable{constructor(){super(...arguments),this._decorations=new o.SortedList(e=>null==e?void 0:e.marker.line),this._onDecorationRegistered=this.register(new r.EventEmitter),this._onDecorationRemoved=this.register(new r.EventEmitter)}get onDecorationRegistered(){return this._onDecorationRegistered.event}get onDecorationRemoved(){return this._onDecorationRemoved.event}get decorations(){return this._decorations.values()}registerDecoration(e){if(!e.marker.isDisposed){const t=new l(e);if(t){const e=t.marker.onDispose(()=>t.dispose());t.onDispose(()=>{t&&(this._decorations.delete(t)&&this._onDecorationRemoved.fire(t),e.dispose())}),this._decorations.insert(t),this._onDecorationRegistered.fire(t)}return t}}reset(){for(const e of this._decorations.values())e.dispose();this._decorations.clear()}*getDecorationsAtCell(e,t,i){var s,r;for(const n of this._decorations.getKeyIterator(t))s=null!=(s=n.options.x)?s:0,r=s+(null!=(r=n.options.width)?r:1),s<=e&&e<r&&(!i||(null!=(s=n.options.layer)?s:"bottom")===i)&&(yield n)}forEachDecorationAtCell(i,e,s,r){this._decorations.forEachByKey(e,e=>{var t;a.xmin=null!=(t=e.options.x)?t:0,a.xmax=a.xmin+(null!=(t=e.options.width)?t:1),i>=a.xmin&&i<a.xmax&&(!s||(null!=(t=e.options.layer)?t:"bottom")===s)&&r(e)})}dispose(){for(const e of this._decorations.values())this._onDecorationRemoved.fire(e);this.reset()}}t.DecorationService=h;class l extends n.Disposable{constructor(e){super(),this.options=e,this.isDisposed=!1,this.onRenderEmitter=this.register(new r.EventEmitter),this.onRender=this.onRenderEmitter.event,this._onDispose=this.register(new r.EventEmitter),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=e.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position="full")}get backgroundColorRGB(){return null===this._cachedBg&&(this.options.backgroundColor?this._cachedBg=s.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return null===this._cachedFg&&(this.options.foregroundColor?this._cachedFg=s.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}dispose(){this._isDisposed||(this._isDisposed=!0,this._onDispose.fire(),super.dispose())}}},3730:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}},i=(Object.defineProperty(t,"__esModule",{value:!0}),t.DirtyRowService=void 0,i(2585)),n=class{constructor(e){this._bufferService=e,this.clearRange()}get start(){return this._start}get end(){return this._end}clearRange(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y}markDirty(e){e<this._start?this._start=e:e>this._end&&(this._end=e)}markRangeDirty(e,t){var i;t<e&&(i=e,e=t,t=i),e<this._start&&(this._start=e),t>this._end&&(this._end=t)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}},n=s([r(0,i.IBufferService)],n);t.DirtyRowService=n},4348:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiationService=t.ServiceCollection=void 0;const s=i(2585),n=i(8343);class r{constructor(...e){this._entries=new Map;for(var[t,i]of e)this.set(t,i)}set(e,t){var i=this._entries.get(e);return this._entries.set(e,t),i}forEach(i){this._entries.forEach((e,t)=>i(t,e))}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}}t.ServiceCollection=r,t.InstantiationService=class{constructor(){this._services=new r,this._services.set(s.IInstantiationService,this)}setService(e,t){this._services.set(e,t)}getService(e){return this._services.get(e)}createInstance(e,...t){const i=(0,n.getServiceDependencies)(e).sort((e,t)=>e.index-t.index),s=[];for(const t of i){const i=this._services.get(t.id);if(!i)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${t.id}.`);s.push(i)}var r=0<i.length?i[0].index:t.length;if(t.length!==r)throw new Error(`[createInstance] First service dependency of ${e.name} at position ${r+1} conflicts with ${t.length} static arguments`);return new e(...t,...s)}}},7866:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=void 0;const n=i(2585),o={debug:n.LogLevelEnum.DEBUG,info:n.LogLevelEnum.INFO,warn:n.LogLevelEnum.WARN,error:n.LogLevelEnum.ERROR,off:n.LogLevelEnum.OFF};i=class{constructor(e){this._optionsService=e,this.logLevel=n.LogLevelEnum.OFF,this._updateLogLevel(),this._optionsService.onOptionChange(e=>{"logLevel"===e&&this._updateLogLevel()})}_updateLogLevel(){this.logLevel=o[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(t){for(let e=0;e<t.length;e++)"function"==typeof t[e]&&(t[e]=t[e]())}_log(e,t,i){this._evalLazyOptionalParams(i),e.call(console,"xterm.js: "+t,...i)}debug(e,...t){this.logLevel<=n.LogLevelEnum.DEBUG&&this._log(console.log,e,t)}info(e,...t){this.logLevel<=n.LogLevelEnum.INFO&&this._log(console.info,e,t)}warn(e,...t){this.logLevel<=n.LogLevelEnum.WARN&&this._log(console.warn,e,t)}error(e,...t){this.logLevel<=n.LogLevelEnum.ERROR&&this._log(console.error,e,t)}},i=s([r(0,n.IOptionsService)],i);t.LogService=i},7302:(e,s,t)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.OptionsService=s.DEFAULT_OPTIONS=void 0;const i=t(8460),r=t(6114),n=(s.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:r.isMac,windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0},["normal","bold","100","200","300","400","500","600","700","800","900"]);s.OptionsService=class{constructor(e){this._onOptionChange=new i.EventEmitter;var t=Object.assign({},s.DEFAULT_OPTIONS);for(const s in e)if(s in t)try{const i=e[s];t[s]=this._sanitizeAndValidateOption(s,i)}catch(e){console.error(e)}this.rawOptions=t,this.options=Object.assign({},t),this._setupOptions()}get onOptionChange(){return this._onOptionChange.event}_setupOptions(){var e=e=>{if(e in s.DEFAULT_OPTIONS)return this.rawOptions[e];throw new Error(`No option with key "${e}"`)},t=(e,t)=>{if(!(e in s.DEFAULT_OPTIONS))throw new Error(`No option with key "${e}"`);t=this._sanitizeAndValidateOption(e,t),this.rawOptions[e]!==t&&(this.rawOptions[e]=t,this._onOptionChange.fire(e))};for(const s in this.rawOptions){var i={get:e.bind(this,s),set:t.bind(this,s)};Object.defineProperty(this.options,s,i)}}_sanitizeAndValidateOption(e,t){switch(e){case"cursorStyle":if("block"!==(t=t||s.DEFAULT_OPTIONS[e])&&"underline"!==t&&"bar"!==t)throw new Error(`"${t}" is not a valid value for `+e);break;case"wordSeparator":t=t||s.DEFAULT_OPTIONS[e];break;case"fontWeight":case"fontWeightBold":"number"==typeof t&&1<=t&&t<=1e3||(t=n.includes(t)?t:s.DEFAULT_OPTIONS[e]);break;case"cursorWidth":t=Math.floor(t);case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(e+" cannot be less than 1, value: "+t);break;case"minimumContrastRatio":t=Math.max(1,Math.min(21,Math.round(10*t)/10));break;case"scrollback":if((t=Math.min(t,4294967295))<0)throw new Error(e+" cannot be less than 0, value: "+t);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(e+" cannot be less than or equal to 0, value: "+t);case"rows":case"cols":if(!t&&0!==t)throw new Error(e+" must be numeric, value: "+t)}return t}}},2660:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(o=(n<3?r(o):3<n?r(t,i,o):r(t,i))||o);return 3<n&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(i,s){return function(e,t){s(e,t,i)}},i=(Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkService=void 0,i(2585)),n=class{constructor(e){this._bufferService=e,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(e){var t=this._bufferService.buffer;if(void 0===e.id){const i=t.addMarker(t.ybase+t.y),s={data:e,id:this._nextId++,lines:[i]};return i.onDispose(()=>this._removeMarkerFromLink(s,i)),this._dataByLinkId.set(s.id,s),s.id}const i=e,s=this._getEntryIdKey(i),r=this._entriesWithId.get(s);if(r)return this.addLineToLink(r.id,t.ybase+t.y),r.id;const n=t.addMarker(t.ybase+t.y),o={id:this._nextId++,key:this._getEntryIdKey(i),data:i,lines:[n]};return n.onDispose(()=>this._removeMarkerFromLink(o,n)),this._entriesWithId.set(o.key,o),this._dataByLinkId.set(o.id,o),o.id}addLineToLink(e,t){const i=this._dataByLinkId.get(e);if(i&&i.lines.every(e=>e.line!==t)){const e=this._bufferService.buffer.addMarker(t);i.lines.push(e),e.onDispose(()=>this._removeMarkerFromLink(i,e))}}getLinkData(e){return null==(e=this._dataByLinkId.get(e))?void 0:e.data}_getEntryIdKey(e){return e.id+";;"+e.uri}_removeMarkerFromLink(e,t){t=e.lines.indexOf(t);-1!==t&&(e.lines.splice(t,1),0===e.lines.length)&&(void 0!==e.data.id&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id))}},n=s([r(0,i.IBufferService)],n);t.OscLinkService=n},8343:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0,t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e.di$dependencies||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);function r(e,t,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");var s;s=r,i=i,(e=e).di$target===e?e.di$dependencies.push({id:s,index:i}):(e.di$dependencies=[{id:s,index:i}],e.di$target=e)}return r.toString=()=>e,t.serviceRegistry.set(e,r),r}},2585:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOscLinkService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.IDirtyRowService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;var s,i=i(8343);t.IBufferService=(0,i.createDecorator)("BufferService"),t.ICoreMouseService=(0,i.createDecorator)("CoreMouseService"),t.ICoreService=(0,i.createDecorator)("CoreService"),t.ICharsetService=(0,i.createDecorator)("CharsetService"),t.IDirtyRowService=(0,i.createDecorator)("DirtyRowService"),t.IInstantiationService=(0,i.createDecorator)("InstantiationService"),(s=t.LogLevelEnum||(t.LogLevelEnum={}))[s.DEBUG=0]="DEBUG",s[s.INFO=1]="INFO",s[s.WARN=2]="WARN",s[s.ERROR=3]="ERROR",s[s.OFF=4]="OFF",t.ILogService=(0,i.createDecorator)("LogService"),t.IOptionsService=(0,i.createDecorator)("OptionsService"),t.IOscLinkService=(0,i.createDecorator)("OscLinkService"),t.IUnicodeService=(0,i.createDecorator)("UnicodeService"),t.IDecorationService=(0,i.createDecorator)("DecorationService")},1480:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;const s=i(8460),r=i(225);t.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new s.EventEmitter;var e=new r.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}get onChange(){return this._onChange.event}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(e){if(!this._providers[e])throw new Error(`unknown Unicode version "${e}"`);this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)}register(e){this._providers[e.version]=e}wcwidth(e){return this._activeProvider.wcwidth(e)}getStringCellWidth(i){let s=0;var r=i.length;for(let t=0;t<r;++t){let e=i.charCodeAt(t);if(55296<=e&&e<=56319){if(++t>=r)return s+this.wcwidth(e);var n=i.charCodeAt(t);56320<=n&&n<=57343?e=1024*(e-55296)+n-56320+65536:s+=this.wcwidth(n)}s+=this.wcwidth(e)}return s}}}},s={};function r(e){var t=s[e];return void 0!==t||(t=s[e]={exports:{}},i[e].call(t.exports,t,t.exports,r)),t.exports}var e={};{var t=e;Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;const n=r(3236),o=r(9042),a=r(7975),h=r(7090),l=r(5741),c=r(8285),_=["cols","rows"];t.Terminal=class{constructor(e){this._core=new n.Terminal(e),this._addonManager=new l.AddonManager,this._publicOptions=Object.assign({},this._core.options);var t=e=>this._core.options[e],i=(e,t)=>{this._checkReadonlyOptions(e),this._core.options[e]=t};for(const e in this._core.options){const n={get:t.bind(this,e),set:i.bind(this,e)};Object.defineProperty(this._publicOptions,e,n)}}_checkReadonlyOptions(e){if(_.includes(e))throw new Error(`Option "${e}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._checkProposedApi(),this._parser||(this._parser=new a.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new h.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._checkProposedApi(),this._buffer||(this._buffer=new c.BufferNamespaceApi(this._core)),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){var e=this._core.coreService.decPrivateModes;let t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}}get options(){return this._publicOptions}set options(e){for(const t in e)this._publicOptions[t]=e[t]}blur(){this._core.blur()}focus(){this._core.focus()}resize(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}open(e){this._core.open(e)}attachCustomKeyEventHandler(e){this._core.attachCustomKeyEventHandler(e)}registerLinkProvider(e){return this._checkProposedApi(),this._core.registerLinkProvider(e)}registerCharacterJoiner(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}deregisterCharacterJoiner(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}registerMarker(e=0){return this._verifyIntegers(e),this._core.addMarker(e)}registerDecoration(e){var t;return this._checkProposedApi(),this._verifyPositiveIntegers(null!=(t=e.x)?t:0,null!=(t=e.width)?t:0,null!=(t=e.height)?t:0),this._core.registerDecoration(e)}hasSelection(){return this._core.hasSelection()}select(e,t,i){this._verifyIntegers(e,t,i),this._core.select(e,t,i)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}dispose(){this._addonManager.dispose(),this._core.dispose()}scrollLines(e){this._verifyIntegers(e),this._core.scrollLines(e)}scrollPages(e){this._verifyIntegers(e),this._core.scrollPages(e)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(e){this._verifyIntegers(e),this._core.scrollToLine(e)}clear(){this._core.clear()}write(e,t){this._core.write(e,t)}writeln(e,t){this._core.write(e),this._core.write("\r\n",t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){return this._addonManager.loadAddon(this,e)}static get strings(){return o}_verifyIntegers(...e){for(const t of e)if(t===1/0||isNaN(t)||t%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...e){for(const t of e)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw new Error("This API only accepts positive integers")}}}return e})()})
\ No newline at end of file
public/scripts/zlib-adler32-min.js
+1
-1
@@ -1 +1 @@
1
-"undefined"==typeof ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-adler32.js"),function(){var s=65521,v=5552;ZLIB.adler32=function(r,e,o,t){if("string"==typeof e){var a,d=r,c=e,C=o,h=t,A=d>>>16&65535;if(d&=65535,1==h)return d+=255&c.charCodeAt(C),s<=d&&(d-=s),s<=(A+=d)&&(A-=s),d|A<<16;if(null===c)return 1;if(h<16){for(;h--;)A+=d+=255&c.charCodeAt(C++);return s<=d&&(d-=s),d|(A%=s)<<16}for(;v<=h;){for(h-=v,a=347;A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A+=d+=255&c.charCodeAt(C++))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)),--a;);d%=s,A%=s}if(h){for(;16<=h;)h-=16,A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A+=d+=255&c.charCodeAt(C++))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++));for(;h--;)A+=d+=255&c.charCodeAt(C++);d%=s,A%=s}return d|A<<16}var f,n=r,i=e,u=o,l=t,b=n>>>16&65535;if(n&=65535,1==l)return n+=i[u],s<=n&&(n-=s),s<=(b+=n)&&(b-=s),n|b<<16;if(null===i)return 1;if(l<16){for(;l--;)b+=n+=i[u++];return s<=n&&(n-=s),n|(b%=s)<<16}for(;v<=l;){for(l-=v,f=347;b=(b=(b=(b=(b=(b=(b=(b=(b=(b=(b=(b=(b=(b=(b=(b+=n+=i[u++])+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]),--f;);n%=s,b%=s}if(l){for(;16<=l;)l-=16,b=(b=(b=(b=(b=(b=(b=(b=(b=(b=(b=(b=(b=(b=(b=(b+=n+=i[u++])+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]);for(;l--;)b+=n+=i[u++];n%=s,b%=s}return n|b<<16},ZLIB.adler32_combine=function(r,e,o){var t,a;return o<0?4294967295:(a=(o%=s)*(t=65535&r),s<=(t+=(65535&e)+s-1)&&(t-=s),s<=t&&(t-=s),s<<1<=(a=a%s+((r>>16&65535)+(e>>16&65535)+s-o))&&(a-=s<<1),s<=a&&(a-=s),t|a<<16)}}()
\ No newline at end of file
1
+"undefined"==typeof ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-adler32.js"),function(){var b=65521,v=5552;ZLIB.adler32=function(r,e,o,t){if("string"==typeof e){var a,d=r,c=e,C=o,h=t,A=d>>>16&65535;if(d&=65535,1==h)d+=255&c.charCodeAt(C),b<=d&&(d-=b),b<=(A+=d)&&(A-=b);else{if(null===c)return 1;if(h<16){for(;h--;)A+=d+=255&c.charCodeAt(C++);return b<=d&&(d-=b),d|(A%=b)<<16}for(;v<=h;){for(h-=v,a=347;A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A+=d+=255&c.charCodeAt(C++))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)),--a;);d%=b,A%=b}if(h){for(;16<=h;)h-=16,A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A+=d+=255&c.charCodeAt(C++))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++));for(;h--;)A+=d+=255&c.charCodeAt(C++);d%=b,A%=b}}return d|A<<16}var f,n=r,i=e,u=o,l=t,s=n>>>16&65535;if(n&=65535,1==l)n+=i[u],b<=n&&(n-=b),b<=(s+=n)&&(s-=b);else{if(null===i)return 1;if(l<16){for(;l--;)s+=n+=i[u++];return b<=n&&(n-=b),n|(s%=b)<<16}for(;v<=l;){for(l-=v,f=347;s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s+=n+=i[u++])+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]),--f;);n%=b,s%=b}if(l){for(;16<=l;)l-=16,s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s+=n+=i[u++])+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]))+(n+=i[u++]);for(;l--;)s+=n+=i[u++];n%=b,s%=b}}return n|s<<16},ZLIB.adler32_combine=function(r,e,o){var t,a;return o<0?4294967295:(a=(o%=b)*(t=65535&r),b<=(t+=(65535&e)+b-1)&&(t-=b),b<=t&&(t-=b),b<<1<=(a=a%b+((r>>16&65535)+(e>>16&65535)+b-o))&&(a-=b<<1),b<=a&&(a-=b),t|a<<16)}}()
\ No newline at end of file
public/scripts/zlib-inflate-min.js
+1
-1
@@ -1 +1 @@
1
-"undefined"==typeof ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-inflate.js"),function(){var Y=11,q=29,z=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],C=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,203,69],T=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],y=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function G(t,a){for(var i,s,o,l,b,e,v,p,n,d,r,h,c,f,u,_,m,k,g,w,x=t.next,Z=2==a?t.distbits:t.lenbits,I=t.work,L=t.lens,R=2==a?t.nlen:0,B=t.codes,E=1==a?t.nlen:2==a?t.ndist:19,A=new Array(16),S=new Array(16),O=0;O<=15;O++)A[O]=0;for(i=0;i<E;i++)A[L[R+i]]++;for(l=Z,o=15;1<=o&&0==A[o];o--);if(o<l&&(l=o),0==o)return B[x++]=f={op:64,bits:1,val:0},B[x++]=f,2==a?t.distbits=1:t.lenbits=1,t.next=x,0;for(s=1;s<o&&0==A[s];s++);for(l<s&&(l=s),O=v=1;O<=15;O++)if((v=(v<<=1)-A[O])<0)return-1;if(0<v&&(0==a||1!=o))return t.next=x,-1;for(S[1]=0,O=1;O<15;O++)S[O+1]=S[O]+A[O];for(i=0;i<E;i++)0!=L[R+i]&&(I[S[L[R+i]]++]=i);switch(a){case 0:_=k=I,g=m=0,w=19;break;case 1:_=z,k=C,g=m=-257,w=256;break;default:_=T,k=y,g=m=0,w=-1}if(O=s,u=x,e=i=n=0,h=-1,c=(p=1<<(b=l))-1,1==a&&852<=p||2==a&&592<=p)return t.next=x,1;for(;;){for(f={op:0,bits:O-e,val:0},I[i]<w?f.val=I[i]:I[i]>w?(f.op=k[g+I[i]],f.val=_[m+I[i]]):f.op=96,d=1<<O-e,s=r=1<<b;B[u+(n>>>e)+(r-=d)]=f,0!=r;);for(d=1<<O-1;n&d;)d>>>=1;if(n=0!=d?(n&d-1)+d:0,i++,0==--A[O]){if(O==o)break;O=L[R+I[i]]}if(l<O&&(n&c)!=h){for(u+=s,v=1<<(b=O-(e=0==e?l:e));b+e<o&&!((v-=A[b+e])<=0);)b++,v<<=1;if(p+=1<<b,1==a&&852<=p||2==a&&592<=p)return t.next=x,1;B[x+(h=n&c)]={op:b,bits:l,val:u-x}}}return 0!=n&&(B[u+n]={op:64,bits:O-e,val:0}),t.next=x+p,2==a?t.distbits=l:t.lenbits=l,0}function i(t){for(var a=new Array(t),i=0;i<t;i++)a[i]=0;return a}function l(t,a,i){return t&&a in t?t[a]:i}function o(){return 0}function s(){this.mode=0,this.last=0,this.wrap=0,this.havedict=0,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=0,this.distcode=0,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=0,this.lens=i(320),this.work=i(288),this.codes=new Array(1444);for(var t={op:0,bits:0,val:0},a=0;a<1444;a++)this.codes[a]=t;this.sane=0,this.back=0,this.was=0}ZLIB.inflate_copyright=" inflate 1.2.6 Copyright 1995-2012 Mark Adler ",ZLIB.inflateResetKeep=function(t){var a;return t&&t.state?(a=t.state,t.total_in=t.total_out=a.total=0,t.msg=null,a.wrap&&(t.adler=1&a.wrap),a.mode=0,a.last=0,a.havedict=0,a.dmax=32768,a.head=null,a.hold=0,a.bits=0,a.lencode=0,a.distcode=0,a.next=0,a.sane=1,a.back=-1,ZLIB.Z_OK):ZLIB.Z_STREAM_ERROR},ZLIB.inflateReset=function(t,a){var i,s;return t&&t.state?(s=t.state,(a=void 0===a?15:a)<0?(i=0,a=-a):(i=1+(a>>>4),a<48&&(a&=15)),1==i&&"function"==typeof ZLIB.adler32?t.checksum_function=ZLIB.adler32:2==i&&"function"==typeof ZLIB.crc32?t.checksum_function=ZLIB.crc32:t.checksum_function=o,a&&(a<8||15<a)?ZLIB.Z_STREAM_ERROR:(s.window&&s.wbits!=a&&(s.window=null),s.wrap=i,s.wbits=a,s.wsize=0,s.whave=0,s.wnext=0,ZLIB.inflateResetKeep(t))):ZLIB.Z_STREAM_ERROR},ZLIB.inflateInit=function(t){var a=new ZLIB.z_stream;return a.state=new s,ZLIB.inflateReset(a,t),a},ZLIB.inflatePrime=function(t,a,i){return t&&t.state?(t=t.state,a<0?(t.hold=0,t.bits=0,ZLIB.Z_OK):16<a||32<t.bits+a?ZLIB.Z_STREAM_ERROR:(t.hold+=(i&=(1<<a)-1)<<t.bits,t.bits+=a,ZLIB.Z_OK)):ZLIB.Z_STREAM_ERROR};var J=null,Q=null;function V(t,a){t.state.check=t.checksum_function(t.state.check,[255&a,a>>>8&255],0,2)}function W(t,a){a.strm=t,a.left=t.avail_out,a.next=t.next_in,a.have=t.avail_in,a.hold=t.state.hold,a.bits=t.state.bits}function X(t){var a=t.strm;a.next_in=t.next,a.avail_out=t.left,a.avail_in=t.have,a.state.hold=t.hold,a.state.bits=t.bits}function $(t){t.hold=0,t.bits=0}function tt(t){return 0!=t.have&&(t.have--,t.hold+=(255&t.strm.input_data.charCodeAt(t.next++))<<t.bits,t.bits+=8,1)}function at(t,a){for(;t.bits<a;)if(!tt(t))return;return 1}function it(t,a){return t.hold&(1<<a)-1}function st(t,a){t.hold>>>=a,t.bits-=a}function ot(t){t.hold>>>=7&t.bits,t.bits-=7&t.bits}function lt(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}var bt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];ZLIB.inflate=function(t,a){var i,s,o,l,b,e,v,p,n,d,r,h,c=-1,f=-1;if(!t||!t.state||!t.input_data&&0!=t.avail_in)return ZLIB.Z_STREAM_ERROR;(i=t.state).mode==Y&&(i.mode=12),W(t,s={}),o=s.have,l=s.left,n=ZLIB.Z_OK;t:for(;;)switch(i.mode){case 0:if(0==i.wrap){i.mode=12;break}if(!at(s,16))break t;if(2&i.wrap&&35615==s.hold){i.check=t.checksum_function(0,null,0,0),V(t,s.hold),$(s),i.mode=1;break}if(i.flags=0,null!==i.head&&(i.head.done=-1),!(1&i.wrap)||((it(s,8)<<8)+(s.hold>>>8))%31){t.msg="incorrect header check",i.mode=q;break}if(it(s,4)!=ZLIB.Z_DEFLATED){t.msg="unknown compression method",i.mode=q;break}if(st(s,4),p=it(s,4)+8,0==i.wbits)i.wbits=p;else if(p>i.wbits){t.msg="invalid window size",i.mode=q;break}i.dmax=1<<p,t.adler=i.check=t.checksum_function(0,null,0,0),i.mode=512&s.hold?9:Y,$(s);break;case 1:if(!at(s,16))break t;if(i.flags=s.hold,(255&i.flags)!=ZLIB.Z_DEFLATED){t.msg="unknown compression method",i.mode=q;break}if(57344&i.flags){t.msg="unknown header flags set",i.mode=q;break}null!==i.head&&(i.head.text=s.hold>>>8&1),512&i.flags&&V(t,s.hold),$(s),i.mode=2;case 2:if(!at(s,32))break t;null!==i.head&&(i.head.time=s.hold),512&i.flags&&(x=s.hold,t.state.check=t.checksum_function(t.state.check,[255&x,x>>>8&255,x>>>16&255,x>>>24&255],0,4)),$(s),i.mode=3;case 3:if(!at(s,16))break t;null!==i.head&&(i.head.xflags=255&s.hold,i.head.os=s.hold>>>8),512&i.flags&&V(t,s.hold),$(s),i.mode=4;case 4:if(1024&i.flags){if(!at(s,16))break t;i.length=s.hold,null!==i.head&&(i.head.extra_len=s.hold),512&i.flags&&V(t,s.hold),$(s),i.head.extra=""}else null!==i.head&&(i.head.extra=null);i.mode=5;case 5:if(1024&i.flags&&((b=(b=i.length)>s.have?s.have:b)&&(null!==i.head&&null!==i.head.extra&&(p=i.head.extra_len-i.length,i.head.extra+=t.input_data.substring(s.next,s.next+(p+b>i.head.extra_max?i.head.extra_max-p:b))),512&i.flags&&(i.check=t.checksum_function(i.check,t.input_data,s.next,b)),s.have-=b,s.next+=b,i.length-=b),i.length))break t;i.length=0,i.mode=6;case 6:if(2048&i.flags){if(0==s.have)break t;for(null!==i.head&&null===i.head.name&&(i.head.name=""),b=0;p=t.input_data.charAt(s.next+b),b++,"\0"!==p&&(null!==i.head&&i.length<i.head.name_max&&(i.head.name+=p,i.length++),b<s.have););if(512&i.flags&&(i.check=t.checksum_function(i.check,t.input_data,s.next,b)),s.have-=b,s.next+=b,"\0"!==p)break t}else null!==i.head&&(i.head.name=null);i.length=0,i.mode=7;case 7:if(4096&i.flags){if(0==s.have)break t;for(b=0,null!==i.head&&null===i.head.comment&&(i.head.comment="");p=t.input_data.charAt(s.next+b),b++,"\0"!==p&&(null!==i.head&&i.length<i.head.comm_max&&(i.head.comment+=p,i.length++),b<s.have););if(512&i.flags&&(i.check=t.checksum_function(i.check,t.input_data,s.next,b)),s.have-=b,s.next+=b,"\0"!==p)break t}else null!==i.head&&(i.head.comment=null);i.mode=8;case 8:if(512&i.flags){if(!at(s,16))break t;if(s.hold!=(65535&i.check)){t.msg="header crc mismatch",i.mode=q;break}$(s)}null!==i.head&&(i.head.hcrc=i.flags>>>9&1,i.head.done=1),t.adler=i.check=t.checksum_function(0,null,0,0),i.mode=Y;break;case 9:if(!at(s,32))break t;t.adler=i.check=lt(s.hold),$(s),i.mode=10;case 10:if(0==i.havedict)return X(s),ZLIB.Z_NEED_DICT;t.adler=i.check=t.checksum_function(0,null,0,0),i.mode=Y;case Y:if(a==ZLIB.Z_BLOCK||a==ZLIB.Z_TREES)break t;case 12:if(i.last){ot(s),i.mode=26;break}if(!at(s,3))break t;switch(i.last=it(s,1),st(s,1),it(s,2)){case 0:i.mode=13;break;case 1:u=_=void 0;var u,_=i;for(J=J||[{op:96,bits:7,val:0},{op:0,bits:8,val:80},{op:0,bits:8,val:16},{op:20,bits:8,val:115},{op:18,bits:7,val:31},{op:0,bits:8,val:112},{op:0,bits:8,val:48},{op:0,bits:9,val:192},{op:16,bits:7,val:10},{op:0,bits:8,val:96},{op:0,bits:8,val:32},{op:0,bits:9,val:160},{op:0,bits:8,val:0},{op:0,bits:8,val:128},{op:0,bits:8,val:64},{op:0,bits:9,val:224},{op:16,bits:7,val:6},{op:0,bits:8,val:88},{op:0,bits:8,val:24},{op:0,bits:9,val:144},{op:19,bits:7,val:59},{op:0,bits:8,val:120},{op:0,bits:8,val:56},{op:0,bits:9,val:208},{op:17,bits:7,val:17},{op:0,bits:8,val:104},{op:0,bits:8,val:40},{op:0,bits:9,val:176},{op:0,bits:8,val:8},{op:0,bits:8,val:136},{op:0,bits:8,val:72},{op:0,bits:9,val:240},{op:16,bits:7,val:4},{op:0,bits:8,val:84},{op:0,bits:8,val:20},{op:21,bits:8,val:227},{op:19,bits:7,val:43},{op:0,bits:8,val:116},{op:0,bits:8,val:52},{op:0,bits:9,val:200},{op:17,bits:7,val:13},{op:0,bits:8,val:100},{op:0,bits:8,val:36},{op:0,bits:9,val:168},{op:0,bits:8,val:4},{op:0,bits:8,val:132},{op:0,bits:8,val:68},{op:0,bits:9,val:232},{op:16,bits:7,val:8},{op:0,bits:8,val:92},{op:0,bits:8,val:28},{op:0,bits:9,val:152},{op:20,bits:7,val:83},{op:0,bits:8,val:124},{op:0,bits:8,val:60},{op:0,bits:9,val:216},{op:18,bits:7,val:23},{op:0,bits:8,val:108},{op:0,bits:8,val:44},{op:0,bits:9,val:184},{op:0,bits:8,val:12},{op:0,bits:8,val:140},{op:0,bits:8,val:76},{op:0,bits:9,val:248},{op:16,bits:7,val:3},{op:0,bits:8,val:82},{op:0,bits:8,val:18},{op:21,bits:8,val:163},{op:19,bits:7,val:35},{op:0,bits:8,val:114},{op:0,bits:8,val:50},{op:0,bits:9,val:196},{op:17,bits:7,val:11},{op:0,bits:8,val:98},{op:0,bits:8,val:34},{op:0,bits:9,val:164},{op:0,bits:8,val:2},{op:0,bits:8,val:130},{op:0,bits:8,val:66},{op:0,bits:9,val:228},{op:16,bits:7,val:7},{op:0,bits:8,val:90},{op:0,bits:8,val:26},{op:0,bits:9,val:148},{op:20,bits:7,val:67},{op:0,bits:8,val:122},{op:0,bits:8,val:58},{op:0,bits:9,val:212},{op:18,bits:7,val:19},{op:0,bits:8,val:106},{op:0,bits:8,val:42},{op:0,bits:9,val:180},{op:0,bits:8,val:10},{op:0,bits:8,val:138},{op:0,bits:8,val:74},{op:0,bits:9,val:244},{op:16,bits:7,val:5},{op:0,bits:8,val:86},{op:0,bits:8,val:22},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:118},{op:0,bits:8,val:54},{op:0,bits:9,val:204},{op:17,bits:7,val:15},{op:0,bits:8,val:102},{op:0,bits:8,val:38},{op:0,bits:9,val:172},{op:0,bits:8,val:6},{op:0,bits:8,val:134},{op:0,bits:8,val:70},{op:0,bits:9,val:236},{op:16,bits:7,val:9},{op:0,bits:8,val:94},{op:0,bits:8,val:30},{op:0,bits:9,val:156},{op:20,bits:7,val:99},{op:0,bits:8,val:126},{op:0,bits:8,val:62},{op:0,bits:9,val:220},{op:18,bits:7,val:27},{op:0,bits:8,val:110},{op:0,bits:8,val:46},{op:0,bits:9,val:188},{op:0,bits:8,val:14},{op:0,bits:8,val:142},{op:0,bits:8,val:78},{op:0,bits:9,val:252},{op:96,bits:7,val:0},{op:0,bits:8,val:81},{op:0,bits:8,val:17},{op:21,bits:8,val:131},{op:18,bits:7,val:31},{op:0,bits:8,val:113},{op:0,bits:8,val:49},{op:0,bits:9,val:194},{op:16,bits:7,val:10},{op:0,bits:8,val:97},{op:0,bits:8,val:33},{op:0,bits:9,val:162},{op:0,bits:8,val:1},{op:0,bits:8,val:129},{op:0,bits:8,val:65},{op:0,bits:9,val:226},{op:16,bits:7,val:6},{op:0,bits:8,val:89},{op:0,bits:8,val:25},{op:0,bits:9,val:146},{op:19,bits:7,val:59},{op:0,bits:8,val:121},{op:0,bits:8,val:57},{op:0,bits:9,val:210},{op:17,bits:7,val:17},{op:0,bits:8,val:105},{op:0,bits:8,val:41},{op:0,bits:9,val:178},{op:0,bits:8,val:9},{op:0,bits:8,val:137},{op:0,bits:8,val:73},{op:0,bits:9,val:242},{op:16,bits:7,val:4},{op:0,bits:8,val:85},{op:0,bits:8,val:21},{op:16,bits:8,val:258},{op:19,bits:7,val:43},{op:0,bits:8,val:117},{op:0,bits:8,val:53},{op:0,bits:9,val:202},{op:17,bits:7,val:13},{op:0,bits:8,val:101},{op:0,bits:8,val:37},{op:0,bits:9,val:170},{op:0,bits:8,val:5},{op:0,bits:8,val:133},{op:0,bits:8,val:69},{op:0,bits:9,val:234},{op:16,bits:7,val:8},{op:0,bits:8,val:93},{op:0,bits:8,val:29},{op:0,bits:9,val:154},{op:20,bits:7,val:83},{op:0,bits:8,val:125},{op:0,bits:8,val:61},{op:0,bits:9,val:218},{op:18,bits:7,val:23},{op:0,bits:8,val:109},{op:0,bits:8,val:45},{op:0,bits:9,val:186},{op:0,bits:8,val:13},{op:0,bits:8,val:141},{op:0,bits:8,val:77},{op:0,bits:9,val:250},{op:16,bits:7,val:3},{op:0,bits:8,val:83},{op:0,bits:8,val:19},{op:21,bits:8,val:195},{op:19,bits:7,val:35},{op:0,bits:8,val:115},{op:0,bits:8,val:51},{op:0,bits:9,val:198},{op:17,bits:7,val:11},{op:0,bits:8,val:99},{op:0,bits:8,val:35},{op:0,bits:9,val:166},{op:0,bits:8,val:3},{op:0,bits:8,val:131},{op:0,bits:8,val:67},{op:0,bits:9,val:230},{op:16,bits:7,val:7},{op:0,bits:8,val:91},{op:0,bits:8,val:27},{op:0,bits:9,val:150},{op:20,bits:7,val:67},{op:0,bits:8,val:123},{op:0,bits:8,val:59},{op:0,bits:9,val:214},{op:18,bits:7,val:19},{op:0,bits:8,val:107},{op:0,bits:8,val:43},{op:0,bits:9,val:182},{op:0,bits:8,val:11},{op:0,bits:8,val:139},{op:0,bits:8,val:75},{op:0,bits:9,val:246},{op:16,bits:7,val:5},{op:0,bits:8,val:87},{op:0,bits:8,val:23},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:119},{op:0,bits:8,val:55},{op:0,bits:9,val:206},{op:17,bits:7,val:15},{op:0,bits:8,val:103},{op:0,bits:8,val:39},{op:0,bits:9,val:174},{op:0,bits:8,val:7},{op:0,bits:8,val:135},{op:0,bits:8,val:71},{op:0,bits:9,val:238},{op:16,bits:7,val:9},{op:0,bits:8,val:95},{op:0,bits:8,val:31},{op:0,bits:9,val:158},{op:20,bits:7,val:99},{op:0,bits:8,val:127},{op:0,bits:8,val:63},{op:0,bits:9,val:222},{op:18,bits:7,val:27},{op:0,bits:8,val:111},{op:0,bits:8,val:47},{op:0,bits:9,val:190},{op:0,bits:8,val:15},{op:0,bits:8,val:143},{op:0,bits:8,val:79},{op:0,bits:9,val:254},{op:96,bits:7,val:0},{op:0,bits:8,val:80},{op:0,bits:8,val:16},{op:20,bits:8,val:115},{op:18,bits:7,val:31},{op:0,bits:8,val:112},{op:0,bits:8,val:48},{op:0,bits:9,val:193},{op:16,bits:7,val:10},{op:0,bits:8,val:96},{op:0,bits:8,val:32},{op:0,bits:9,val:161},{op:0,bits:8,val:0},{op:0,bits:8,val:128},{op:0,bits:8,val:64},{op:0,bits:9,val:225},{op:16,bits:7,val:6},{op:0,bits:8,val:88},{op:0,bits:8,val:24},{op:0,bits:9,val:145},{op:19,bits:7,val:59},{op:0,bits:8,val:120},{op:0,bits:8,val:56},{op:0,bits:9,val:209},{op:17,bits:7,val:17},{op:0,bits:8,val:104},{op:0,bits:8,val:40},{op:0,bits:9,val:177},{op:0,bits:8,val:8},{op:0,bits:8,val:136},{op:0,bits:8,val:72},{op:0,bits:9,val:241},{op:16,bits:7,val:4},{op:0,bits:8,val:84},{op:0,bits:8,val:20},{op:21,bits:8,val:227},{op:19,bits:7,val:43},{op:0,bits:8,val:116},{op:0,bits:8,val:52},{op:0,bits:9,val:201},{op:17,bits:7,val:13},{op:0,bits:8,val:100},{op:0,bits:8,val:36},{op:0,bits:9,val:169},{op:0,bits:8,val:4},{op:0,bits:8,val:132},{op:0,bits:8,val:68},{op:0,bits:9,val:233},{op:16,bits:7,val:8},{op:0,bits:8,val:92},{op:0,bits:8,val:28},{op:0,bits:9,val:153},{op:20,bits:7,val:83},{op:0,bits:8,val:124},{op:0,bits:8,val:60},{op:0,bits:9,val:217},{op:18,bits:7,val:23},{op:0,bits:8,val:108},{op:0,bits:8,val:44},{op:0,bits:9,val:185},{op:0,bits:8,val:12},{op:0,bits:8,val:140},{op:0,bits:8,val:76},{op:0,bits:9,val:249},{op:16,bits:7,val:3},{op:0,bits:8,val:82},{op:0,bits:8,val:18},{op:21,bits:8,val:163},{op:19,bits:7,val:35},{op:0,bits:8,val:114},{op:0,bits:8,val:50},{op:0,bits:9,val:197},{op:17,bits:7,val:11},{op:0,bits:8,val:98},{op:0,bits:8,val:34},{op:0,bits:9,val:165},{op:0,bits:8,val:2},{op:0,bits:8,val:130},{op:0,bits:8,val:66},{op:0,bits:9,val:229},{op:16,bits:7,val:7},{op:0,bits:8,val:90},{op:0,bits:8,val:26},{op:0,bits:9,val:149},{op:20,bits:7,val:67},{op:0,bits:8,val:122},{op:0,bits:8,val:58},{op:0,bits:9,val:213},{op:18,bits:7,val:19},{op:0,bits:8,val:106},{op:0,bits:8,val:42},{op:0,bits:9,val:181},{op:0,bits:8,val:10},{op:0,bits:8,val:138},{op:0,bits:8,val:74},{op:0,bits:9,val:245},{op:16,bits:7,val:5},{op:0,bits:8,val:86},{op:0,bits:8,val:22},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:118},{op:0,bits:8,val:54},{op:0,bits:9,val:205},{op:17,bits:7,val:15},{op:0,bits:8,val:102},{op:0,bits:8,val:38},{op:0,bits:9,val:173},{op:0,bits:8,val:6},{op:0,bits:8,val:134},{op:0,bits:8,val:70},{op:0,bits:9,val:237},{op:16,bits:7,val:9},{op:0,bits:8,val:94},{op:0,bits:8,val:30},{op:0,bits:9,val:157},{op:20,bits:7,val:99},{op:0,bits:8,val:126},{op:0,bits:8,val:62},{op:0,bits:9,val:221},{op:18,bits:7,val:27},{op:0,bits:8,val:110},{op:0,bits:8,val:46},{op:0,bits:9,val:189},{op:0,bits:8,val:14},{op:0,bits:8,val:142},{op:0,bits:8,val:78},{op:0,bits:9,val:253},{op:96,bits:7,val:0},{op:0,bits:8,val:81},{op:0,bits:8,val:17},{op:21,bits:8,val:131},{op:18,bits:7,val:31},{op:0,bits:8,val:113},{op:0,bits:8,val:49},{op:0,bits:9,val:195},{op:16,bits:7,val:10},{op:0,bits:8,val:97},{op:0,bits:8,val:33},{op:0,bits:9,val:163},{op:0,bits:8,val:1},{op:0,bits:8,val:129},{op:0,bits:8,val:65},{op:0,bits:9,val:227},{op:16,bits:7,val:6},{op:0,bits:8,val:89},{op:0,bits:8,val:25},{op:0,bits:9,val:147},{op:19,bits:7,val:59},{op:0,bits:8,val:121},{op:0,bits:8,val:57},{op:0,bits:9,val:211},{op:17,bits:7,val:17},{op:0,bits:8,val:105},{op:0,bits:8,val:41},{op:0,bits:9,val:179},{op:0,bits:8,val:9},{op:0,bits:8,val:137},{op:0,bits:8,val:73},{op:0,bits:9,val:243},{op:16,bits:7,val:4},{op:0,bits:8,val:85},{op:0,bits:8,val:21},{op:16,bits:8,val:258},{op:19,bits:7,val:43},{op:0,bits:8,val:117},{op:0,bits:8,val:53},{op:0,bits:9,val:203},{op:17,bits:7,val:13},{op:0,bits:8,val:101},{op:0,bits:8,val:37},{op:0,bits:9,val:171},{op:0,bits:8,val:5},{op:0,bits:8,val:133},{op:0,bits:8,val:69},{op:0,bits:9,val:235},{op:16,bits:7,val:8},{op:0,bits:8,val:93},{op:0,bits:8,val:29},{op:0,bits:9,val:155},{op:20,bits:7,val:83},{op:0,bits:8,val:125},{op:0,bits:8,val:61},{op:0,bits:9,val:219},{op:18,bits:7,val:23},{op:0,bits:8,val:109},{op:0,bits:8,val:45},{op:0,bits:9,val:187},{op:0,bits:8,val:13},{op:0,bits:8,val:141},{op:0,bits:8,val:77},{op:0,bits:9,val:251},{op:16,bits:7,val:3},{op:0,bits:8,val:83},{op:0,bits:8,val:19},{op:21,bits:8,val:195},{op:19,bits:7,val:35},{op:0,bits:8,val:115},{op:0,bits:8,val:51},{op:0,bits:9,val:199},{op:17,bits:7,val:11},{op:0,bits:8,val:99},{op:0,bits:8,val:35},{op:0,bits:9,val:167},{op:0,bits:8,val:3},{op:0,bits:8,val:131},{op:0,bits:8,val:67},{op:0,bits:9,val:231},{op:16,bits:7,val:7},{op:0,bits:8,val:91},{op:0,bits:8,val:27},{op:0,bits:9,val:151},{op:20,bits:7,val:67},{op:0,bits:8,val:123},{op:0,bits:8,val:59},{op:0,bits:9,val:215},{op:18,bits:7,val:19},{op:0,bits:8,val:107},{op:0,bits:8,val:43},{op:0,bits:9,val:183},{op:0,bits:8,val:11},{op:0,bits:8,val:139},{op:0,bits:8,val:75},{op:0,bits:9,val:247},{op:16,bits:7,val:5},{op:0,bits:8,val:87},{op:0,bits:8,val:23},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:119},{op:0,bits:8,val:55},{op:0,bits:9,val:207},{op:17,bits:7,val:15},{op:0,bits:8,val:103},{op:0,bits:8,val:39},{op:0,bits:9,val:175},{op:0,bits:8,val:7},{op:0,bits:8,val:135},{op:0,bits:8,val:71},{op:0,bits:9,val:239},{op:16,bits:7,val:9},{op:0,bits:8,val:95},{op:0,bits:8,val:31},{op:0,bits:9,val:159},{op:20,bits:7,val:99},{op:0,bits:8,val:127},{op:0,bits:8,val:63},{op:0,bits:9,val:223},{op:18,bits:7,val:27},{op:0,bits:8,val:111},{op:0,bits:8,val:47},{op:0,bits:9,val:191},{op:0,bits:8,val:15},{op:0,bits:8,val:143},{op:0,bits:8,val:79},{op:0,bits:9,val:255}],Q=Q||[{op:16,bits:5,val:1},{op:23,bits:5,val:257},{op:19,bits:5,val:17},{op:27,bits:5,val:4097},{op:17,bits:5,val:5},{op:25,bits:5,val:1025},{op:21,bits:5,val:65},{op:29,bits:5,val:16385},{op:16,bits:5,val:3},{op:24,bits:5,val:513},{op:20,bits:5,val:33},{op:28,bits:5,val:8193},{op:18,bits:5,val:9},{op:26,bits:5,val:2049},{op:22,bits:5,val:129},{op:64,bits:5,val:0},{op:16,bits:5,val:2},{op:23,bits:5,val:385},{op:19,bits:5,val:25},{op:27,bits:5,val:6145},{op:17,bits:5,val:7},{op:25,bits:5,val:1537},{op:21,bits:5,val:97},{op:29,bits:5,val:24577},{op:16,bits:5,val:4},{op:24,bits:5,val:769},{op:20,bits:5,val:49},{op:28,bits:5,val:12289},{op:18,bits:5,val:13},{op:26,bits:5,val:3073},{op:22,bits:5,val:193},{op:64,bits:5,val:0}],_.lencode=0,_.distcode=512,u=0;u<512;u++)_.codes[u]=J[u];for(u=0;u<32;u++)_.codes[u+512]=Q[u];if(_.lenbits=9,_.distbits=5,i.mode=19,a!=ZLIB.Z_TREES)break;st(s,2);break t;case 2:i.mode=16;break;case 3:t.msg="invalid block type",i.mode=q}st(s,2);break;case 13:if(ot(s),!at(s,32))break t;if((65535&s.hold)!=(s.hold>>>16&65535^65535)){t.msg="invalid stored block lengths",i.mode=q;break}if(i.length=65535&s.hold,$(s),i.mode=14,a==ZLIB.Z_TREES)break t;case 14:i.mode=15;case 15:if(b=i.length){if(0==(b=(b=b>s.have?s.have:b)>s.left?s.left:b))break t;t.output_data+=t.input_data.substring(s.next,s.next+b),t.next_out+=b,s.have-=b,s.next+=b,s.left-=b,i.length-=b;break}i.mode=Y;break;case 16:if(!at(s,14))break t;if(i.nlen=it(s,5)+257,st(s,5),i.ndist=it(s,5)+1,st(s,5),i.ncode=it(s,4)+4,st(s,4),286<i.nlen||30<i.ndist){t.msg="too many length or distance symbols",i.mode=q;break}i.have=0,i.mode=17;case 17:for(;i.have<i.ncode;){if(!at(s,3))break t;var M=it(s,3);i.lens[bt[i.have++]]=M,st(s,3)}for(;i.have<19;)i.lens[bt[i.have++]]=0;if(i.next=0,i.lencode=0,i.lenbits=7,n=G(i,0)){t.msg="invalid code lengths set",i.mode=q;break}i.have=0,i.mode=18;case 18:for(;i.have<i.nlen+i.ndist;){for(;!((e=i.codes[i.lencode+it(s,i.lenbits)]).bits<=s.bits);)if(!tt(s))break t;if(e.val<16)st(s,e.bits),i.lens[i.have++]=e.val;else{if(16==e.val){if(!at(s,e.bits+2))break t;if(st(s,e.bits),0==i.have){t.msg="invalid bit length repeat",i.mode=q;break}p=i.lens[i.have-1],b=3+it(s,2),st(s,2)}else if(17==e.val){if(!at(s,e.bits+3))break t;st(s,e.bits),p=0,b=3+it(s,3),st(s,3)}else{if(!at(s,e.bits+7))break t;st(s,e.bits),p=0,b=11+it(s,7),st(s,7)}if(i.have+b>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=q;break}for(;b--;)i.lens[i.have++]=p}}if(i.mode==q)break;if(0==i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=q;break}if(i.next=0,i.lencode=i.next,i.lenbits=9,n=G(i,1)){t.msg="invalid literal/lengths set",i.mode=q;break}if(i.distcode=i.next,i.distbits=6,n=G(i,2)){t.msg="invalid distances set",i.mode=q;break}if(i.mode=19,a==ZLIB.Z_TREES)break t;case 19:i.mode=20;case 20:if(6<=s.have&&258<=s.left){X(s),y=I=Z=y=g=k=m=P=U=j=H=T=C=z=O=N=F=D=S=K=A=E=B=R=L=x=w=void 0;var m,k,g,w=t,x=l,Z=-1,I=-1,L=w.state,R=w.input_data,B=w.next_in,E=B+w.avail_in-5,A=w.next_out,K=A-(x-w.avail_out),S=A+(w.avail_out-257),D=L.wsize,F=L.whave,N=L.wnext,O=L.window,z=L.hold,C=L.bits,T=L.codes,H=L.lencode,j=L.distcode,U=(1<<L.lenbits)-1,P=(1<<L.distbits)-1;a:do{for(C<15&&(z+=(255&R.charCodeAt(B++))<<C,C+=8,z+=(255&R.charCodeAt(B++))<<C,C+=8),m=T[H+(z&U)];;){if(z>>>=k=m.bits,C-=k,0==(k=m.op))w.output_data+=String.fromCharCode(m.val),A++;else{if(!(16&k)){if(0==(64&k)){m=T[H+(m.val+(z&(1<<k)-1))];continue}if(32&k){L.mode=Y;break a}w.msg="invalid literal/length code",L.mode=q;break a}for(g=m.val,(k&=15)&&(C<k&&(z+=(255&R.charCodeAt(B++))<<C,C+=8),g+=z&(1<<k)-1,z>>>=k,C-=k),C<15&&(z+=(255&R.charCodeAt(B++))<<C,C+=8,z+=(255&R.charCodeAt(B++))<<C,C+=8),m=T[j+(z&P)];;){if(z>>>=k=m.bits,C-=k,!(16&(k=m.op))){if(0==(64&k)){m=T[j+(m.val+(z&(1<<k)-1))];continue}w.msg="invalid distance code",L.mode=q;break a}if(y=m.val,C<(k&=15)&&(z+=(255&R.charCodeAt(B++))<<C,(C+=8)<k&&(z+=(255&R.charCodeAt(B++))<<C,C+=8)),y+=z&(1<<k)-1,z>>>=k,C-=k,(k=A-K)<y){if(F<(k=y-k)&&L.sane){w.msg="invalid distance too far back",L.mode=q;break a}I=-1,(Z=0)==N?(Z+=D-k,k<g&&(g-=k,w.output_data+=O.substring(Z,Z+k),A+=k,k=0,Z=-1,I=A-y)):(Z+=N-k,k<g&&(g-=k,w.output_data+=O.substring(Z,Z+k),Z=-1,I=(A+=k)-y))}else Z=-1,I=A-y;if(0<=Z)w.output_data+=O.substring(Z,Z+g),A+=g,Z+=g;else{var y=g;for(A-I<y&&(y=A-I),w.output_data+=w.output_data.substring(I,I+y),I+=y,A=A+y+(g-=y);2<g;)w.output_data+=w.output_data.charAt(I++),w.output_data+=w.output_data.charAt(I++),w.output_data+=w.output_data.charAt(I++),g-=3;g&&(w.output_data+=w.output_data.charAt(I++),1<g&&(w.output_data+=w.output_data.charAt(I++)))}break}}break}}while(B<E&&A<S);z&=(1<<(C-=(g=C>>>3)<<3))-1,w.next_in=B-=g,w.next_out=A,w.avail_in=B<E?E-B+5:5-(B-E),w.avail_out=A<S?S-A+257:257-(A-S),L.hold=z,L.bits=C,W(t,s),i.mode==Y&&(i.back=-1);break}for(i.back=0;!((e=i.codes[i.lencode+it(s,i.lenbits)]).bits<=s.bits);)if(!tt(s))break t;if(e.op&&0==(240&e.op)){for(v=e;e=i.codes[i.lencode+v.val+(it(s,v.bits+v.op)>>>v.bits)],!(v.bits+e.bits<=s.bits);)if(!tt(s))break t;st(s,v.bits),i.back+=v.bits}if(st(s,e.bits),i.back+=e.bits,i.length=e.val,0==e.op){i.mode=25;break}if(32&e.op){i.back=-1,i.mode=Y;break}if(64&e.op){t.msg="invalid literal/length code",i.mode=q;break}i.extra=15&e.op,i.mode=21;case 21:if(i.extra){if(!at(s,i.extra))break t;i.length+=it(s,i.extra),st(s,i.extra),i.back+=i.extra}i.was=i.length,i.mode=22;case 22:for(;!((e=i.codes[i.distcode+it(s,i.distbits)]).bits<=s.bits);)if(!tt(s))break t;if(0==(240&e.op)){for(v=e;e=i.codes[i.distcode+v.val+(it(s,v.bits+v.op)>>>v.bits)],!(v.bits+e.bits<=s.bits);)if(!tt(s))break t;st(s,v.bits),i.back+=v.bits}if(st(s,e.bits),i.back+=e.bits,64&e.op){t.msg="invalid distance code",i.mode=q;break}i.offset=e.val,i.extra=15&e.op,i.mode=23;case 23:if(i.extra){if(!at(s,i.extra))break t;i.offset+=it(s,i.extra),st(s,i.extra),i.back+=i.extra}i.mode=24;case 24:if(0==s.left)break t;if(b=l-s.left,i.offset>b){if((b=i.offset-b)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=q;break}f=(c=b>i.wnext?(b-=i.wnext,i.wsize-b):i.wnext-b,-1),b>i.length&&(b=i.length)}else c=-1,f=t.next_out-i.offset,b=i.length;if(b>s.left&&(b=s.left),s.left-=b,i.length-=b,0<=c)t.output_data+=i.window.substring(c,c+b),t.next_out+=b,b=0;else for(t.next_out+=b;t.output_data+=t.output_data.charAt(f++),--b;);0==i.length&&(i.mode=20);break;case 25:if(0==s.left)break t;t.output_data+=String.fromCharCode(i.length),t.next_out++,s.left--,i.mode=20;break;case 26:if(i.wrap){if(!at(s,32))break t;if(l-=s.left,t.total_out+=l,i.total+=l,l&&(t.adler=i.check=t.checksum_function(i.check,t.output_data,t.output_data.length-l,l)),l=s.left,(i.flags?s.hold:lt(s.hold))!=i.check){t.msg="incorrect data check",i.mode=q;break}$(s)}i.mode=27;case 27:if(i.wrap&&i.flags){if(!at(s,32))break t;if(s.hold!=(4294967295&i.total)){t.msg="incorrect length check",i.mode=q;break}$(s)}i.mode=28;case 28:n=ZLIB.Z_STREAM_END;break t;case q:n=ZLIB.Z_DATA_ERROR;break t;case 30:return ZLIB.Z_MEM_ERROR;default:return ZLIB.Z_STREAM_ERROR}return X(s),(i.wsize||l!=t.avail_out&&i.mode<q&&(i.mode<26||a!=ZLIB.Z_FINISH))&&(r=(d=t).state,h=d.output_data.length,null===r.window&&(r.window=""),0==r.wsize&&(r.wsize=1<<r.wbits),h>=r.wsize?r.window=d.output_data.substring(h-r.wsize):r.whave+h<r.wsize?r.window+=d.output_data:r.window=r.window.substring(r.whave-(r.wsize-h))+d.output_data,r.whave=r.window.length,r.whave<r.wsize?r.wnext=r.whave:r.wnext=0),o-=t.avail_in,l-=t.avail_out,t.total_in+=o,t.total_out+=l,i.total+=l,i.wrap&&l&&(t.adler=i.check=t.checksum_function(i.check,t.output_data,0,t.output_data.length)),t.data_type=i.bits+(i.last?64:0)+(i.mode==Y?128:0)+(19==i.mode||14==i.mode?256:0),n=(0==o&&0==l||a==ZLIB.Z_FINISH)&&n==ZLIB.Z_OK?ZLIB.Z_BUF_ERROR:n},ZLIB.inflateEnd=function(t){return t&&t.state?(t.state.window=null,t.state=null,ZLIB.Z_OK):ZLIB.Z_STREAM_ERROR},ZLIB.z_stream.prototype.inflate=function(t,a){this.input_data=t,this.next_in=l(a,"next_in",0),this.avail_in=l(a,"avail_in",t.length-this.next_in),i=l(a,"flush",ZLIB.Z_SYNC_FLUSH),s=l(a,"avail_out",-1);var i,s,o="";do{if(this.avail_out=0<=s?s:16384,this.output_data="",this.next_out=0,this.error=ZLIB.inflate(this,i),0<=s)return this.output_data}while((o+=this.output_data,!(0<this.avail_out))&&this.error==ZLIB.Z_OK);return o},ZLIB.z_stream.prototype.inflateReset=function(t){return ZLIB.inflateReset(this,t)}}()
\ No newline at end of file
1
+"undefined"==typeof ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-inflate.js"),function(){var Y=11,q=29,C=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],O=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,203,69],T=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],y=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function G(t,a){for(var i,s,o,l,e,b,v,p,n,d,r,h,c,f,u,m,_,k,g,w,x=t.next,Z=2==a?t.distbits:t.lenbits,I=t.work,L=t.lens,B=2==a?t.nlen:0,R=t.codes,E=1==a?t.nlen:2==a?t.ndist:19,A=new Array(16),S=new Array(16),z=0;z<=15;z++)A[z]=0;for(i=0;i<E;i++)A[L[B+i]]++;for(l=Z,o=15;1<=o&&0==A[o];o--);if(o<l&&(l=o),0==o)R[x++]=f={op:64,bits:1,val:0},R[x++]=f,2==a?t.distbits=1:t.lenbits=1,t.next=x;else{for(s=1;s<o&&0==A[s];s++);for(l<s&&(l=s),z=v=1;z<=15;z++)if((v=(v<<=1)-A[z])<0)return-1;if(0<v&&(0==a||1!=o))return t.next=x,-1;for(S[1]=0,z=1;z<15;z++)S[z+1]=S[z]+A[z];for(i=0;i<E;i++)0!=L[B+i]&&(I[S[L[B+i]]++]=i);switch(a){case 0:m=k=I,g=_=0,w=19;break;case 1:m=C,k=O,g=_=-257,w=256;break;default:m=T,k=y,g=_=0,w=-1}if(z=s,u=x,b=i=n=0,h=-1,c=(p=1<<(e=l))-1,1==a&&852<=p||2==a&&592<=p)return t.next=x,1;for(;;){for(f={op:0,bits:z-b,val:0},I[i]<w?f.val=I[i]:I[i]>w?(f.op=k[g+I[i]],f.val=m[_+I[i]]):f.op=96,d=1<<z-b,s=r=1<<e;R[u+(n>>>b)+(r-=d)]=f,0!=r;);for(d=1<<z-1;n&d;)d>>>=1;if(n=0!=d?(n&d-1)+d:0,i++,0==--A[z]){if(z==o)break;z=L[B+I[i]]}if(l<z&&(n&c)!=h){for(u+=s,v=1<<(e=z-(b=0==b?l:b));e+b<o&&!((v-=A[e+b])<=0);)e++,v<<=1;if(p+=1<<e,1==a&&852<=p||2==a&&592<=p)return t.next=x,1;R[x+(h=n&c)]={op:e,bits:l,val:u-x}}}0!=n&&(R[u+n]={op:64,bits:z-b,val:0}),t.next=x+p,2==a?t.distbits=l:t.lenbits=l}return 0}function i(t){for(var a=new Array(t),i=0;i<t;i++)a[i]=0;return a}function l(t,a,i){return t&&a in t?t[a]:i}function o(){return 0}function s(){this.mode=0,this.last=0,this.wrap=0,this.havedict=0,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=0,this.distcode=0,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=0,this.lens=i(320),this.work=i(288),this.codes=new Array(1444);for(var t={op:0,bits:0,val:0},a=0;a<1444;a++)this.codes[a]=t;this.sane=0,this.back=0,this.was=0}ZLIB.inflate_copyright=" inflate 1.2.6 Copyright 1995-2012 Mark Adler ",ZLIB.inflateResetKeep=function(t){var a;return t&&t.state?(a=t.state,t.total_in=t.total_out=a.total=0,t.msg=null,a.wrap&&(t.adler=1&a.wrap),a.mode=0,a.last=0,a.havedict=0,a.dmax=32768,a.head=null,a.hold=0,a.bits=0,a.lencode=0,a.distcode=0,a.next=0,a.sane=1,a.back=-1,ZLIB.Z_OK):ZLIB.Z_STREAM_ERROR},ZLIB.inflateReset=function(t,a){var i,s;return!t||!t.state||(s=t.state,(a=void 0===a?15:a)<0?(i=0,a=-a):(i=1+(a>>>4),a<48&&(a&=15)),1==i&&"function"==typeof ZLIB.adler32?t.checksum_function=ZLIB.adler32:2==i&&"function"==typeof ZLIB.crc32?t.checksum_function=ZLIB.crc32:t.checksum_function=o,a&&(a<8||15<a))?ZLIB.Z_STREAM_ERROR:(s.window&&s.wbits!=a&&(s.window=null),s.wrap=i,s.wbits=a,s.wsize=0,s.whave=0,s.wnext=0,ZLIB.inflateResetKeep(t))},ZLIB.inflateInit=function(t){var a=new ZLIB.z_stream;return a.state=new s,ZLIB.inflateReset(a,t),a},ZLIB.inflatePrime=function(t,a,i){if(!t||!t.state)return ZLIB.Z_STREAM_ERROR;if(t=t.state,a<0)t.hold=0,t.bits=0;else{if(16<a||32<t.bits+a)return ZLIB.Z_STREAM_ERROR;t.hold+=(i&=(1<<a)-1)<<t.bits,t.bits+=a}return ZLIB.Z_OK};var J=null,Q=null;function V(t,a){t.state.check=t.checksum_function(t.state.check,[255&a,a>>>8&255],0,2)}function W(t,a){a.strm=t,a.left=t.avail_out,a.next=t.next_in,a.have=t.avail_in,a.hold=t.state.hold,a.bits=t.state.bits}function X(t){var a=t.strm;a.next_in=t.next,a.avail_out=t.left,a.avail_in=t.have,a.state.hold=t.hold,a.state.bits=t.bits}function $(t){t.hold=0,t.bits=0}function tt(t){return 0!=t.have&&(t.have--,t.hold+=(255&t.strm.input_data.charCodeAt(t.next++))<<t.bits,t.bits+=8,1)}function at(t,a){for(;t.bits<a;)if(!tt(t))return;return 1}function it(t,a){return t.hold&(1<<a)-1}function st(t,a){t.hold>>>=a,t.bits-=a}function ot(t){t.hold>>>=7&t.bits,t.bits-=7&t.bits}function lt(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}var et=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];ZLIB.inflate=function(t,a){var i,s,o,l,e,b,v,p,n,d,r,h,c=-1,f=-1;if(!t||!t.state||!t.input_data&&0!=t.avail_in)return ZLIB.Z_STREAM_ERROR;(i=t.state).mode==Y&&(i.mode=12),W(t,s={}),o=s.have,l=s.left,n=ZLIB.Z_OK;t:for(;;)switch(i.mode){case 0:if(0==i.wrap)i.mode=12;else{if(!at(s,16))break t;if(2&i.wrap&&35615==s.hold)i.check=t.checksum_function(0,null,0,0),V(t,s.hold),$(s),i.mode=1;else if(i.flags=0,null!==i.head&&(i.head.done=-1),!(1&i.wrap)||((it(s,8)<<8)+(s.hold>>>8))%31)t.msg="incorrect header check",i.mode=q;else if(it(s,4)!=ZLIB.Z_DEFLATED)t.msg="unknown compression method",i.mode=q;else{if(st(s,4),p=it(s,4)+8,0==i.wbits)i.wbits=p;else if(p>i.wbits){t.msg="invalid window size",i.mode=q;break}i.dmax=1<<p,t.adler=i.check=t.checksum_function(0,null,0,0),i.mode=512&s.hold?9:Y,$(s)}}break;case 1:if(!at(s,16))break t;if(i.flags=s.hold,(255&i.flags)!=ZLIB.Z_DEFLATED){t.msg="unknown compression method",i.mode=q;break}if(57344&i.flags){t.msg="unknown header flags set",i.mode=q;break}null!==i.head&&(i.head.text=s.hold>>>8&1),512&i.flags&&V(t,s.hold),$(s),i.mode=2;case 2:if(!at(s,32))break t;null!==i.head&&(i.head.time=s.hold),512&i.flags&&(x=s.hold,t.state.check=t.checksum_function(t.state.check,[255&x,x>>>8&255,x>>>16&255,x>>>24&255],0,4)),$(s),i.mode=3;case 3:if(!at(s,16))break t;null!==i.head&&(i.head.xflags=255&s.hold,i.head.os=s.hold>>>8),512&i.flags&&V(t,s.hold),$(s),i.mode=4;case 4:if(1024&i.flags){if(!at(s,16))break t;i.length=s.hold,null!==i.head&&(i.head.extra_len=s.hold),512&i.flags&&V(t,s.hold),$(s),i.head.extra=""}else null!==i.head&&(i.head.extra=null);i.mode=5;case 5:if(1024&i.flags&&((e=(e=i.length)>s.have?s.have:e)&&(null!==i.head&&null!==i.head.extra&&(p=i.head.extra_len-i.length,i.head.extra+=t.input_data.substring(s.next,s.next+(p+e>i.head.extra_max?i.head.extra_max-p:e))),512&i.flags&&(i.check=t.checksum_function(i.check,t.input_data,s.next,e)),s.have-=e,s.next+=e,i.length-=e),i.length))break t;i.length=0,i.mode=6;case 6:if(2048&i.flags){if(0==s.have)break t;for(null!==i.head&&null===i.head.name&&(i.head.name=""),e=0;p=t.input_data.charAt(s.next+e),e++,"\0"!==p&&(null!==i.head&&i.length<i.head.name_max&&(i.head.name+=p,i.length++),e<s.have););if(512&i.flags&&(i.check=t.checksum_function(i.check,t.input_data,s.next,e)),s.have-=e,s.next+=e,"\0"!==p)break t}else null!==i.head&&(i.head.name=null);i.length=0,i.mode=7;case 7:if(4096&i.flags){if(0==s.have)break t;for(e=0,null!==i.head&&null===i.head.comment&&(i.head.comment="");p=t.input_data.charAt(s.next+e),e++,"\0"!==p&&(null!==i.head&&i.length<i.head.comm_max&&(i.head.comment+=p,i.length++),e<s.have););if(512&i.flags&&(i.check=t.checksum_function(i.check,t.input_data,s.next,e)),s.have-=e,s.next+=e,"\0"!==p)break t}else null!==i.head&&(i.head.comment=null);i.mode=8;case 8:if(512&i.flags){if(!at(s,16))break t;if(s.hold!=(65535&i.check)){t.msg="header crc mismatch",i.mode=q;break}$(s)}null!==i.head&&(i.head.hcrc=i.flags>>>9&1,i.head.done=1),t.adler=i.check=t.checksum_function(0,null,0,0),i.mode=Y;break;case 9:if(!at(s,32))break t;t.adler=i.check=lt(s.hold),$(s),i.mode=10;case 10:if(0==i.havedict)return X(s),ZLIB.Z_NEED_DICT;t.adler=i.check=t.checksum_function(0,null,0,0),i.mode=Y;case Y:if(a==ZLIB.Z_BLOCK||a==ZLIB.Z_TREES)break t;case 12:if(i.last)ot(s),i.mode=26;else{if(!at(s,3))break t;switch(i.last=it(s,1),st(s,1),it(s,2)){case 0:i.mode=13;break;case 1:u=m=void 0;var u,m=i;for(J=J||[{op:96,bits:7,val:0},{op:0,bits:8,val:80},{op:0,bits:8,val:16},{op:20,bits:8,val:115},{op:18,bits:7,val:31},{op:0,bits:8,val:112},{op:0,bits:8,val:48},{op:0,bits:9,val:192},{op:16,bits:7,val:10},{op:0,bits:8,val:96},{op:0,bits:8,val:32},{op:0,bits:9,val:160},{op:0,bits:8,val:0},{op:0,bits:8,val:128},{op:0,bits:8,val:64},{op:0,bits:9,val:224},{op:16,bits:7,val:6},{op:0,bits:8,val:88},{op:0,bits:8,val:24},{op:0,bits:9,val:144},{op:19,bits:7,val:59},{op:0,bits:8,val:120},{op:0,bits:8,val:56},{op:0,bits:9,val:208},{op:17,bits:7,val:17},{op:0,bits:8,val:104},{op:0,bits:8,val:40},{op:0,bits:9,val:176},{op:0,bits:8,val:8},{op:0,bits:8,val:136},{op:0,bits:8,val:72},{op:0,bits:9,val:240},{op:16,bits:7,val:4},{op:0,bits:8,val:84},{op:0,bits:8,val:20},{op:21,bits:8,val:227},{op:19,bits:7,val:43},{op:0,bits:8,val:116},{op:0,bits:8,val:52},{op:0,bits:9,val:200},{op:17,bits:7,val:13},{op:0,bits:8,val:100},{op:0,bits:8,val:36},{op:0,bits:9,val:168},{op:0,bits:8,val:4},{op:0,bits:8,val:132},{op:0,bits:8,val:68},{op:0,bits:9,val:232},{op:16,bits:7,val:8},{op:0,bits:8,val:92},{op:0,bits:8,val:28},{op:0,bits:9,val:152},{op:20,bits:7,val:83},{op:0,bits:8,val:124},{op:0,bits:8,val:60},{op:0,bits:9,val:216},{op:18,bits:7,val:23},{op:0,bits:8,val:108},{op:0,bits:8,val:44},{op:0,bits:9,val:184},{op:0,bits:8,val:12},{op:0,bits:8,val:140},{op:0,bits:8,val:76},{op:0,bits:9,val:248},{op:16,bits:7,val:3},{op:0,bits:8,val:82},{op:0,bits:8,val:18},{op:21,bits:8,val:163},{op:19,bits:7,val:35},{op:0,bits:8,val:114},{op:0,bits:8,val:50},{op:0,bits:9,val:196},{op:17,bits:7,val:11},{op:0,bits:8,val:98},{op:0,bits:8,val:34},{op:0,bits:9,val:164},{op:0,bits:8,val:2},{op:0,bits:8,val:130},{op:0,bits:8,val:66},{op:0,bits:9,val:228},{op:16,bits:7,val:7},{op:0,bits:8,val:90},{op:0,bits:8,val:26},{op:0,bits:9,val:148},{op:20,bits:7,val:67},{op:0,bits:8,val:122},{op:0,bits:8,val:58},{op:0,bits:9,val:212},{op:18,bits:7,val:19},{op:0,bits:8,val:106},{op:0,bits:8,val:42},{op:0,bits:9,val:180},{op:0,bits:8,val:10},{op:0,bits:8,val:138},{op:0,bits:8,val:74},{op:0,bits:9,val:244},{op:16,bits:7,val:5},{op:0,bits:8,val:86},{op:0,bits:8,val:22},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:118},{op:0,bits:8,val:54},{op:0,bits:9,val:204},{op:17,bits:7,val:15},{op:0,bits:8,val:102},{op:0,bits:8,val:38},{op:0,bits:9,val:172},{op:0,bits:8,val:6},{op:0,bits:8,val:134},{op:0,bits:8,val:70},{op:0,bits:9,val:236},{op:16,bits:7,val:9},{op:0,bits:8,val:94},{op:0,bits:8,val:30},{op:0,bits:9,val:156},{op:20,bits:7,val:99},{op:0,bits:8,val:126},{op:0,bits:8,val:62},{op:0,bits:9,val:220},{op:18,bits:7,val:27},{op:0,bits:8,val:110},{op:0,bits:8,val:46},{op:0,bits:9,val:188},{op:0,bits:8,val:14},{op:0,bits:8,val:142},{op:0,bits:8,val:78},{op:0,bits:9,val:252},{op:96,bits:7,val:0},{op:0,bits:8,val:81},{op:0,bits:8,val:17},{op:21,bits:8,val:131},{op:18,bits:7,val:31},{op:0,bits:8,val:113},{op:0,bits:8,val:49},{op:0,bits:9,val:194},{op:16,bits:7,val:10},{op:0,bits:8,val:97},{op:0,bits:8,val:33},{op:0,bits:9,val:162},{op:0,bits:8,val:1},{op:0,bits:8,val:129},{op:0,bits:8,val:65},{op:0,bits:9,val:226},{op:16,bits:7,val:6},{op:0,bits:8,val:89},{op:0,bits:8,val:25},{op:0,bits:9,val:146},{op:19,bits:7,val:59},{op:0,bits:8,val:121},{op:0,bits:8,val:57},{op:0,bits:9,val:210},{op:17,bits:7,val:17},{op:0,bits:8,val:105},{op:0,bits:8,val:41},{op:0,bits:9,val:178},{op:0,bits:8,val:9},{op:0,bits:8,val:137},{op:0,bits:8,val:73},{op:0,bits:9,val:242},{op:16,bits:7,val:4},{op:0,bits:8,val:85},{op:0,bits:8,val:21},{op:16,bits:8,val:258},{op:19,bits:7,val:43},{op:0,bits:8,val:117},{op:0,bits:8,val:53},{op:0,bits:9,val:202},{op:17,bits:7,val:13},{op:0,bits:8,val:101},{op:0,bits:8,val:37},{op:0,bits:9,val:170},{op:0,bits:8,val:5},{op:0,bits:8,val:133},{op:0,bits:8,val:69},{op:0,bits:9,val:234},{op:16,bits:7,val:8},{op:0,bits:8,val:93},{op:0,bits:8,val:29},{op:0,bits:9,val:154},{op:20,bits:7,val:83},{op:0,bits:8,val:125},{op:0,bits:8,val:61},{op:0,bits:9,val:218},{op:18,bits:7,val:23},{op:0,bits:8,val:109},{op:0,bits:8,val:45},{op:0,bits:9,val:186},{op:0,bits:8,val:13},{op:0,bits:8,val:141},{op:0,bits:8,val:77},{op:0,bits:9,val:250},{op:16,bits:7,val:3},{op:0,bits:8,val:83},{op:0,bits:8,val:19},{op:21,bits:8,val:195},{op:19,bits:7,val:35},{op:0,bits:8,val:115},{op:0,bits:8,val:51},{op:0,bits:9,val:198},{op:17,bits:7,val:11},{op:0,bits:8,val:99},{op:0,bits:8,val:35},{op:0,bits:9,val:166},{op:0,bits:8,val:3},{op:0,bits:8,val:131},{op:0,bits:8,val:67},{op:0,bits:9,val:230},{op:16,bits:7,val:7},{op:0,bits:8,val:91},{op:0,bits:8,val:27},{op:0,bits:9,val:150},{op:20,bits:7,val:67},{op:0,bits:8,val:123},{op:0,bits:8,val:59},{op:0,bits:9,val:214},{op:18,bits:7,val:19},{op:0,bits:8,val:107},{op:0,bits:8,val:43},{op:0,bits:9,val:182},{op:0,bits:8,val:11},{op:0,bits:8,val:139},{op:0,bits:8,val:75},{op:0,bits:9,val:246},{op:16,bits:7,val:5},{op:0,bits:8,val:87},{op:0,bits:8,val:23},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:119},{op:0,bits:8,val:55},{op:0,bits:9,val:206},{op:17,bits:7,val:15},{op:0,bits:8,val:103},{op:0,bits:8,val:39},{op:0,bits:9,val:174},{op:0,bits:8,val:7},{op:0,bits:8,val:135},{op:0,bits:8,val:71},{op:0,bits:9,val:238},{op:16,bits:7,val:9},{op:0,bits:8,val:95},{op:0,bits:8,val:31},{op:0,bits:9,val:158},{op:20,bits:7,val:99},{op:0,bits:8,val:127},{op:0,bits:8,val:63},{op:0,bits:9,val:222},{op:18,bits:7,val:27},{op:0,bits:8,val:111},{op:0,bits:8,val:47},{op:0,bits:9,val:190},{op:0,bits:8,val:15},{op:0,bits:8,val:143},{op:0,bits:8,val:79},{op:0,bits:9,val:254},{op:96,bits:7,val:0},{op:0,bits:8,val:80},{op:0,bits:8,val:16},{op:20,bits:8,val:115},{op:18,bits:7,val:31},{op:0,bits:8,val:112},{op:0,bits:8,val:48},{op:0,bits:9,val:193},{op:16,bits:7,val:10},{op:0,bits:8,val:96},{op:0,bits:8,val:32},{op:0,bits:9,val:161},{op:0,bits:8,val:0},{op:0,bits:8,val:128},{op:0,bits:8,val:64},{op:0,bits:9,val:225},{op:16,bits:7,val:6},{op:0,bits:8,val:88},{op:0,bits:8,val:24},{op:0,bits:9,val:145},{op:19,bits:7,val:59},{op:0,bits:8,val:120},{op:0,bits:8,val:56},{op:0,bits:9,val:209},{op:17,bits:7,val:17},{op:0,bits:8,val:104},{op:0,bits:8,val:40},{op:0,bits:9,val:177},{op:0,bits:8,val:8},{op:0,bits:8,val:136},{op:0,bits:8,val:72},{op:0,bits:9,val:241},{op:16,bits:7,val:4},{op:0,bits:8,val:84},{op:0,bits:8,val:20},{op:21,bits:8,val:227},{op:19,bits:7,val:43},{op:0,bits:8,val:116},{op:0,bits:8,val:52},{op:0,bits:9,val:201},{op:17,bits:7,val:13},{op:0,bits:8,val:100},{op:0,bits:8,val:36},{op:0,bits:9,val:169},{op:0,bits:8,val:4},{op:0,bits:8,val:132},{op:0,bits:8,val:68},{op:0,bits:9,val:233},{op:16,bits:7,val:8},{op:0,bits:8,val:92},{op:0,bits:8,val:28},{op:0,bits:9,val:153},{op:20,bits:7,val:83},{op:0,bits:8,val:124},{op:0,bits:8,val:60},{op:0,bits:9,val:217},{op:18,bits:7,val:23},{op:0,bits:8,val:108},{op:0,bits:8,val:44},{op:0,bits:9,val:185},{op:0,bits:8,val:12},{op:0,bits:8,val:140},{op:0,bits:8,val:76},{op:0,bits:9,val:249},{op:16,bits:7,val:3},{op:0,bits:8,val:82},{op:0,bits:8,val:18},{op:21,bits:8,val:163},{op:19,bits:7,val:35},{op:0,bits:8,val:114},{op:0,bits:8,val:50},{op:0,bits:9,val:197},{op:17,bits:7,val:11},{op:0,bits:8,val:98},{op:0,bits:8,val:34},{op:0,bits:9,val:165},{op:0,bits:8,val:2},{op:0,bits:8,val:130},{op:0,bits:8,val:66},{op:0,bits:9,val:229},{op:16,bits:7,val:7},{op:0,bits:8,val:90},{op:0,bits:8,val:26},{op:0,bits:9,val:149},{op:20,bits:7,val:67},{op:0,bits:8,val:122},{op:0,bits:8,val:58},{op:0,bits:9,val:213},{op:18,bits:7,val:19},{op:0,bits:8,val:106},{op:0,bits:8,val:42},{op:0,bits:9,val:181},{op:0,bits:8,val:10},{op:0,bits:8,val:138},{op:0,bits:8,val:74},{op:0,bits:9,val:245},{op:16,bits:7,val:5},{op:0,bits:8,val:86},{op:0,bits:8,val:22},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:118},{op:0,bits:8,val:54},{op:0,bits:9,val:205},{op:17,bits:7,val:15},{op:0,bits:8,val:102},{op:0,bits:8,val:38},{op:0,bits:9,val:173},{op:0,bits:8,val:6},{op:0,bits:8,val:134},{op:0,bits:8,val:70},{op:0,bits:9,val:237},{op:16,bits:7,val:9},{op:0,bits:8,val:94},{op:0,bits:8,val:30},{op:0,bits:9,val:157},{op:20,bits:7,val:99},{op:0,bits:8,val:126},{op:0,bits:8,val:62},{op:0,bits:9,val:221},{op:18,bits:7,val:27},{op:0,bits:8,val:110},{op:0,bits:8,val:46},{op:0,bits:9,val:189},{op:0,bits:8,val:14},{op:0,bits:8,val:142},{op:0,bits:8,val:78},{op:0,bits:9,val:253},{op:96,bits:7,val:0},{op:0,bits:8,val:81},{op:0,bits:8,val:17},{op:21,bits:8,val:131},{op:18,bits:7,val:31},{op:0,bits:8,val:113},{op:0,bits:8,val:49},{op:0,bits:9,val:195},{op:16,bits:7,val:10},{op:0,bits:8,val:97},{op:0,bits:8,val:33},{op:0,bits:9,val:163},{op:0,bits:8,val:1},{op:0,bits:8,val:129},{op:0,bits:8,val:65},{op:0,bits:9,val:227},{op:16,bits:7,val:6},{op:0,bits:8,val:89},{op:0,bits:8,val:25},{op:0,bits:9,val:147},{op:19,bits:7,val:59},{op:0,bits:8,val:121},{op:0,bits:8,val:57},{op:0,bits:9,val:211},{op:17,bits:7,val:17},{op:0,bits:8,val:105},{op:0,bits:8,val:41},{op:0,bits:9,val:179},{op:0,bits:8,val:9},{op:0,bits:8,val:137},{op:0,bits:8,val:73},{op:0,bits:9,val:243},{op:16,bits:7,val:4},{op:0,bits:8,val:85},{op:0,bits:8,val:21},{op:16,bits:8,val:258},{op:19,bits:7,val:43},{op:0,bits:8,val:117},{op:0,bits:8,val:53},{op:0,bits:9,val:203},{op:17,bits:7,val:13},{op:0,bits:8,val:101},{op:0,bits:8,val:37},{op:0,bits:9,val:171},{op:0,bits:8,val:5},{op:0,bits:8,val:133},{op:0,bits:8,val:69},{op:0,bits:9,val:235},{op:16,bits:7,val:8},{op:0,bits:8,val:93},{op:0,bits:8,val:29},{op:0,bits:9,val:155},{op:20,bits:7,val:83},{op:0,bits:8,val:125},{op:0,bits:8,val:61},{op:0,bits:9,val:219},{op:18,bits:7,val:23},{op:0,bits:8,val:109},{op:0,bits:8,val:45},{op:0,bits:9,val:187},{op:0,bits:8,val:13},{op:0,bits:8,val:141},{op:0,bits:8,val:77},{op:0,bits:9,val:251},{op:16,bits:7,val:3},{op:0,bits:8,val:83},{op:0,bits:8,val:19},{op:21,bits:8,val:195},{op:19,bits:7,val:35},{op:0,bits:8,val:115},{op:0,bits:8,val:51},{op:0,bits:9,val:199},{op:17,bits:7,val:11},{op:0,bits:8,val:99},{op:0,bits:8,val:35},{op:0,bits:9,val:167},{op:0,bits:8,val:3},{op:0,bits:8,val:131},{op:0,bits:8,val:67},{op:0,bits:9,val:231},{op:16,bits:7,val:7},{op:0,bits:8,val:91},{op:0,bits:8,val:27},{op:0,bits:9,val:151},{op:20,bits:7,val:67},{op:0,bits:8,val:123},{op:0,bits:8,val:59},{op:0,bits:9,val:215},{op:18,bits:7,val:19},{op:0,bits:8,val:107},{op:0,bits:8,val:43},{op:0,bits:9,val:183},{op:0,bits:8,val:11},{op:0,bits:8,val:139},{op:0,bits:8,val:75},{op:0,bits:9,val:247},{op:16,bits:7,val:5},{op:0,bits:8,val:87},{op:0,bits:8,val:23},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:119},{op:0,bits:8,val:55},{op:0,bits:9,val:207},{op:17,bits:7,val:15},{op:0,bits:8,val:103},{op:0,bits:8,val:39},{op:0,bits:9,val:175},{op:0,bits:8,val:7},{op:0,bits:8,val:135},{op:0,bits:8,val:71},{op:0,bits:9,val:239},{op:16,bits:7,val:9},{op:0,bits:8,val:95},{op:0,bits:8,val:31},{op:0,bits:9,val:159},{op:20,bits:7,val:99},{op:0,bits:8,val:127},{op:0,bits:8,val:63},{op:0,bits:9,val:223},{op:18,bits:7,val:27},{op:0,bits:8,val:111},{op:0,bits:8,val:47},{op:0,bits:9,val:191},{op:0,bits:8,val:15},{op:0,bits:8,val:143},{op:0,bits:8,val:79},{op:0,bits:9,val:255}],Q=Q||[{op:16,bits:5,val:1},{op:23,bits:5,val:257},{op:19,bits:5,val:17},{op:27,bits:5,val:4097},{op:17,bits:5,val:5},{op:25,bits:5,val:1025},{op:21,bits:5,val:65},{op:29,bits:5,val:16385},{op:16,bits:5,val:3},{op:24,bits:5,val:513},{op:20,bits:5,val:33},{op:28,bits:5,val:8193},{op:18,bits:5,val:9},{op:26,bits:5,val:2049},{op:22,bits:5,val:129},{op:64,bits:5,val:0},{op:16,bits:5,val:2},{op:23,bits:5,val:385},{op:19,bits:5,val:25},{op:27,bits:5,val:6145},{op:17,bits:5,val:7},{op:25,bits:5,val:1537},{op:21,bits:5,val:97},{op:29,bits:5,val:24577},{op:16,bits:5,val:4},{op:24,bits:5,val:769},{op:20,bits:5,val:49},{op:28,bits:5,val:12289},{op:18,bits:5,val:13},{op:26,bits:5,val:3073},{op:22,bits:5,val:193},{op:64,bits:5,val:0}],m.lencode=0,m.distcode=512,u=0;u<512;u++)m.codes[u]=J[u];for(u=0;u<32;u++)m.codes[u+512]=Q[u];if(m.lenbits=9,m.distbits=5,i.mode=19,a!=ZLIB.Z_TREES)break;st(s,2);break t;case 2:i.mode=16;break;case 3:t.msg="invalid block type",i.mode=q}st(s,2)}break;case 13:if(ot(s),!at(s,32))break t;if((65535&s.hold)!=(s.hold>>>16&65535^65535)){t.msg="invalid stored block lengths",i.mode=q;break}if(i.length=65535&s.hold,$(s),i.mode=14,a==ZLIB.Z_TREES)break t;case 14:i.mode=15;case 15:if(e=i.length){if(0==(e=(e=e>s.have?s.have:e)>s.left?s.left:e))break t;t.output_data+=t.input_data.substring(s.next,s.next+e),t.next_out+=e,s.have-=e,s.next+=e,s.left-=e,i.length-=e}else i.mode=Y;break;case 16:if(!at(s,14))break t;if(i.nlen=it(s,5)+257,st(s,5),i.ndist=it(s,5)+1,st(s,5),i.ncode=it(s,4)+4,st(s,4),286<i.nlen||30<i.ndist){t.msg="too many length or distance symbols",i.mode=q;break}i.have=0,i.mode=17;case 17:for(;i.have<i.ncode;){if(!at(s,3))break t;var M=it(s,3);i.lens[et[i.have++]]=M,st(s,3)}for(;i.have<19;)i.lens[et[i.have++]]=0;if(i.next=0,i.lencode=0,i.lenbits=7,n=G(i,0)){t.msg="invalid code lengths set",i.mode=q;break}i.have=0,i.mode=18;case 18:for(;i.have<i.nlen+i.ndist;){for(;!((b=i.codes[i.lencode+it(s,i.lenbits)]).bits<=s.bits);)if(!tt(s))break t;if(b.val<16)st(s,b.bits),i.lens[i.have++]=b.val;else{if(16==b.val){if(!at(s,b.bits+2))break t;if(st(s,b.bits),0==i.have){t.msg="invalid bit length repeat",i.mode=q;break}p=i.lens[i.have-1],e=3+it(s,2),st(s,2)}else if(17==b.val){if(!at(s,b.bits+3))break t;st(s,b.bits),p=0,e=3+it(s,3),st(s,3)}else{if(!at(s,b.bits+7))break t;st(s,b.bits),p=0,e=11+it(s,7),st(s,7)}if(i.have+e>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=q;break}for(;e--;)i.lens[i.have++]=p}}if(i.mode==q)break;if(0==i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=q;break}if(i.next=0,i.lencode=i.next,i.lenbits=9,n=G(i,1)){t.msg="invalid literal/lengths set",i.mode=q;break}if(i.distcode=i.next,i.distbits=6,n=G(i,2)){t.msg="invalid distances set",i.mode=q;break}if(i.mode=19,a==ZLIB.Z_TREES)break t;case 19:i.mode=20;case 20:if(6<=s.have&&258<=s.left){X(s),I=Z=y=g=k=_=P=U=j=H=T=O=C=z=N=F=D=S=K=A=E=R=B=L=x=w=void 0;var _,k,g,w=t,x=l,Z=-1,I=-1,L=w.state,B=w.input_data,R=w.next_in,E=R+w.avail_in-5,A=w.next_out,K=A-(x-w.avail_out),S=A+(w.avail_out-257),D=L.wsize,F=L.whave,N=L.wnext,z=L.window,C=L.hold,O=L.bits,T=L.codes,H=L.lencode,j=L.distcode,U=(1<<L.lenbits)-1,P=(1<<L.distbits)-1;a:do{for(O<15&&(C+=(255&B.charCodeAt(R++))<<O,O+=8,C+=(255&B.charCodeAt(R++))<<O,O+=8),_=T[H+(C&U)];;){if(C>>>=k=_.bits,O-=k,0==(k=_.op))w.output_data+=String.fromCharCode(_.val),A++;else{if(!(16&k)){if(0==(64&k)){_=T[H+(_.val+(C&(1<<k)-1))];continue}if(32&k){L.mode=Y;break a}w.msg="invalid literal/length code",L.mode=q;break a}for(g=_.val,(k&=15)&&(O<k&&(C+=(255&B.charCodeAt(R++))<<O,O+=8),g+=C&(1<<k)-1,C>>>=k,O-=k),O<15&&(C+=(255&B.charCodeAt(R++))<<O,O+=8,C+=(255&B.charCodeAt(R++))<<O,O+=8),_=T[j+(C&P)];;){if(C>>>=k=_.bits,O-=k,!(16&(k=_.op))){if(0==(64&k)){_=T[j+(_.val+(C&(1<<k)-1))];continue}w.msg="invalid distance code",L.mode=q;break a}if(y=_.val,O<(k&=15)&&(C+=(255&B.charCodeAt(R++))<<O,(O+=8)<k)&&(C+=(255&B.charCodeAt(R++))<<O,O+=8),y+=C&(1<<k)-1,C>>>=k,O-=k,(k=A-K)<y){if(F<(k=y-k)&&L.sane){w.msg="invalid distance too far back",L.mode=q;break a}I=-1,(Z=0)==N?(Z+=D-k,k<g&&(g-=k,w.output_data+=z.substring(Z,Z+k),A+=k,k=0,Z=-1,I=A-y)):(Z+=N-k,k<g&&(g-=k,w.output_data+=z.substring(Z,Z+k),Z=-1,I=(A+=k)-y))}else Z=-1,I=A-y;if(0<=Z)w.output_data+=z.substring(Z,Z+g),A+=g,Z+=g;else{var y=g;for(A-I<y&&(y=A-I),w.output_data+=w.output_data.substring(I,I+y),I+=y,A=A+y+(g-=y);2<g;)w.output_data+=w.output_data.charAt(I++),w.output_data+=w.output_data.charAt(I++),w.output_data+=w.output_data.charAt(I++),g-=3;g&&(w.output_data+=w.output_data.charAt(I++),1<g)&&(w.output_data+=w.output_data.charAt(I++))}break}}break}}while(R<E&&A<S);C&=(1<<(O-=(g=O>>>3)<<3))-1,w.next_in=R-=g,w.next_out=A,w.avail_in=R<E?E-R+5:5-(R-E),w.avail_out=A<S?S-A+257:257-(A-S),L.hold=C,L.bits=O,W(t,s),i.mode==Y&&(i.back=-1);break}for(i.back=0;!((b=i.codes[i.lencode+it(s,i.lenbits)]).bits<=s.bits);)if(!tt(s))break t;if(b.op&&0==(240&b.op)){for(v=b;b=i.codes[i.lencode+v.val+(it(s,v.bits+v.op)>>>v.bits)],!(v.bits+b.bits<=s.bits);)if(!tt(s))break t;st(s,v.bits),i.back+=v.bits}if(st(s,b.bits),i.back+=b.bits,i.length=b.val,0==b.op){i.mode=25;break}if(32&b.op){i.back=-1,i.mode=Y;break}if(64&b.op){t.msg="invalid literal/length code",i.mode=q;break}i.extra=15&b.op,i.mode=21;case 21:if(i.extra){if(!at(s,i.extra))break t;i.length+=it(s,i.extra),st(s,i.extra),i.back+=i.extra}i.was=i.length,i.mode=22;case 22:for(;!((b=i.codes[i.distcode+it(s,i.distbits)]).bits<=s.bits);)if(!tt(s))break t;if(0==(240&b.op)){for(v=b;b=i.codes[i.distcode+v.val+(it(s,v.bits+v.op)>>>v.bits)],!(v.bits+b.bits<=s.bits);)if(!tt(s))break t;st(s,v.bits),i.back+=v.bits}if(st(s,b.bits),i.back+=b.bits,64&b.op){t.msg="invalid distance code",i.mode=q;break}i.offset=b.val,i.extra=15&b.op,i.mode=23;case 23:if(i.extra){if(!at(s,i.extra))break t;i.offset+=it(s,i.extra),st(s,i.extra),i.back+=i.extra}i.mode=24;case 24:if(0==s.left)break t;if(e=l-s.left,i.offset>e){if((e=i.offset-e)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=q;break}f=(c=e>i.wnext?(e-=i.wnext,i.wsize-e):i.wnext-e,-1),e>i.length&&(e=i.length)}else c=-1,f=t.next_out-i.offset,e=i.length;if(e>s.left&&(e=s.left),s.left-=e,i.length-=e,0<=c)t.output_data+=i.window.substring(c,c+e),t.next_out+=e,e=0;else for(t.next_out+=e;t.output_data+=t.output_data.charAt(f++),--e;);0==i.length&&(i.mode=20);break;case 25:if(0==s.left)break t;t.output_data+=String.fromCharCode(i.length),t.next_out++,s.left--,i.mode=20;break;case 26:if(i.wrap){if(!at(s,32))break t;if(l-=s.left,t.total_out+=l,i.total+=l,l&&(t.adler=i.check=t.checksum_function(i.check,t.output_data,t.output_data.length-l,l)),l=s.left,(i.flags?s.hold:lt(s.hold))!=i.check){t.msg="incorrect data check",i.mode=q;break}$(s)}i.mode=27;case 27:if(i.wrap&&i.flags){if(!at(s,32))break t;if(s.hold!=(4294967295&i.total)){t.msg="incorrect length check",i.mode=q;break}$(s)}i.mode=28;case 28:n=ZLIB.Z_STREAM_END;break t;case q:n=ZLIB.Z_DATA_ERROR;break t;case 30:return ZLIB.Z_MEM_ERROR;default:return ZLIB.Z_STREAM_ERROR}return X(s),(i.wsize||l!=t.avail_out&&i.mode<q&&(i.mode<26||a!=ZLIB.Z_FINISH))&&(r=(d=t).state,h=d.output_data.length,null===r.window&&(r.window=""),0==r.wsize&&(r.wsize=1<<r.wbits),h>=r.wsize?r.window=d.output_data.substring(h-r.wsize):r.whave+h<r.wsize?r.window+=d.output_data:r.window=r.window.substring(r.whave-(r.wsize-h))+d.output_data,r.whave=r.window.length,r.whave<r.wsize?r.wnext=r.whave:r.wnext=0),o-=t.avail_in,l-=t.avail_out,t.total_in+=o,t.total_out+=l,i.total+=l,i.wrap&&l&&(t.adler=i.check=t.checksum_function(i.check,t.output_data,0,t.output_data.length)),t.data_type=i.bits+(i.last?64:0)+(i.mode==Y?128:0)+(19==i.mode||14==i.mode?256:0),n=(0==o&&0==l||a==ZLIB.Z_FINISH)&&n==ZLIB.Z_OK?ZLIB.Z_BUF_ERROR:n},ZLIB.inflateEnd=function(t){return t&&t.state?(t.state.window=null,t.state=null,ZLIB.Z_OK):ZLIB.Z_STREAM_ERROR},ZLIB.z_stream.prototype.inflate=function(t,a){this.input_data=t,this.next_in=l(a,"next_in",0),this.avail_in=l(a,"avail_in",t.length-this.next_in),i=l(a,"flush",ZLIB.Z_SYNC_FLUSH),s=l(a,"avail_out",-1);var i,s,o="";do{if(this.avail_out=0<=s?s:16384,this.output_data="",this.next_out=0,this.error=ZLIB.inflate(this,i),0<=s)return this.output_data}while((o+=this.output_data,!(0<this.avail_out))&&this.error==ZLIB.Z_OK);return o},ZLIB.z_stream.prototype.inflateReset=function(t){return ZLIB.inflateReset(this,t)}}()
\ No newline at end of file
public/translate.bat
+3
-3
@@ -1,7 +1,7 @@
1
@ECHO OFF
2
CD ..\translate
3
-%LOCALAPPDATA%\..\Roaming\nvm\v14.16.0\node translate.js minifyall
4
-%LOCALAPPDATA%\..\Roaming\nvm\v14.16.0\node translate.js translateall
5
-%LOCALAPPDATA%\..\Roaming\nvm\v14.16.0\node translate.js extractall
3
+%LOCALAPPDATA%\..\Roaming\nvm\v14.16.0\node64 translate.js minifyall
4
+%LOCALAPPDATA%\..\Roaming\nvm\v14.16.0\node64 translate.js translateall
5
+%LOCALAPPDATA%\..\Roaming\nvm\v14.16.0\node64 translate.js extractall
6
DEL ..\emails\translations\*-min_*
7
Pause
\ No newline at end of file
translate/translate.json
+3008
-2981
@@ -47,8 +47,8 @@
47
"zh-chs": " + CIRA",
48
"zh-cht": " + CIRA",
49
"xloc": [
50
- "default.handlebars->47->1959",
51
- "default.handlebars->47->1961"
50
+ "default.handlebars->47->1964",
51
+ "default.handlebars->47->1966"
52
]
53
},
54
{
@@ -311,7 +311,7 @@
311
"zh-chs": " 可以使用密码提示,但不建议使用。",
312
"zh-cht": " 可以使用密碼提示,但不建議使用。",
313
"xloc": [
314
- "default.handlebars->47->1837"
314
+ "default.handlebars->47->1842"
315
]
316
},
317
{
@@ -337,8 +337,8 @@
337
"zh-chs": " 用户需要先登录到该服务器一次,然后才能将其添加到设备组。",
338
"zh-cht": " 用戶需要先登入到該伺服器一次,然後才能將其新增到裝置群。",
339
"xloc": [
340
- "default.handlebars->47->2083",
341
- "default.handlebars->47->2648"
340
+ "default.handlebars->47->2088",
341
+ "default.handlebars->47->2653"
342
]
343
},
344
{
@@ -462,7 +462,7 @@
462
"zh-chs": " TLS。",
463
"zh-cht": " TLS。",
464
"xloc": [
465
- "default.handlebars->47->260"
465
+ "default.handlebars->47->261"
466
]
467
},
468
{
@@ -488,7 +488,7 @@
488
"zh-chs": " 没有TLS。",
489
"zh-cht": " 沒有TLS。",
490
"xloc": [
491
- "default.handlebars->47->261"
491
+ "default.handlebars->47->262"
492
]
493
},
494
{
@@ -842,7 +842,7 @@
842
"zh-chs": "(可选的)",
843
"zh-cht": "(可選的)",
844
"xloc": [
845
- "default.handlebars->47->530"
845
+ "default.handlebars->47->531"
846
]
847
},
848
{
@@ -888,8 +888,8 @@
888
"zh-chs": "* 8个字符,1个大写,1个小写,1个数字,1个非字母数字。",
889
"zh-cht": "* 8個字符,1個大寫,1個小寫,1個數字,1個非字母數字。",
890
"xloc": [
891
- "default.handlebars->47->2043",
892
- "default.handlebars->47->492"
891
+ "default.handlebars->47->2048",
892
+ "default.handlebars->47->493"
893
]
894
},
895
{
@@ -915,7 +915,7 @@
915
"zh-chs": "*对于BSD,首先运行“ pkg install wget sudo bash ”。",
916
"zh-cht": "*對於BSD,首先運行“ pkg install wget sudo bash ”。",
917
"xloc": [
918
- "default.handlebars->47->583"
918
+ "default.handlebars->47->584"
919
]
920
},
921
{
@@ -988,11 +988,11 @@
988
"default-mobile.handlebars->11->560",
989
"default-mobile.handlebars->11->562",
990
"default-mobile.handlebars->11->702",
991
- "default.handlebars->47->1490",
992
- "default.handlebars->47->1492",
993
- "default.handlebars->47->2157",
994
- "default.handlebars->47->2428",
995
- "default.handlebars->47->920"
991
+ "default.handlebars->47->1491",
992
+ "default.handlebars->47->1493",
993
+ "default.handlebars->47->2162",
994
+ "default.handlebars->47->2433",
995
+ "default.handlebars->47->921"
996
]
997
},
998
{
@@ -1094,7 +1094,7 @@
1094
"zh-cht": ",只適用於Intel®AMT",
1095
"xloc": [
1096
"default-mobile.handlebars->11->186",
1097
- "default.handlebars->47->339"
1097
+ "default.handlebars->47->340"
1098
]
1099
},
1100
{
@@ -1120,7 +1120,7 @@
1120
"zh-chs": ", 本地设备",
1121
"zh-cht": ", 本地設備",
1122
"xloc": [
1123
- "default.handlebars->47->341"
1123
+ "default.handlebars->47->342"
1124
]
1125
},
1126
{
@@ -1147,7 +1147,7 @@
1147
"zh-cht": ",MQTT在線",
1148
"xloc": [
1149
"default-mobile.handlebars->11->606",
1150
- "default.handlebars->47->1537"
1150
+ "default.handlebars->47->1538"
1151
]
1152
},
1153
{
@@ -1173,8 +1173,8 @@
1173
"zh-chs": ", 不同意",
1174
"zh-cht": ", 不同意",
1175
"xloc": [
1176
- "default.handlebars->47->1015",
1177
- "default.handlebars->47->2001"
1176
+ "default.handlebars->47->1016",
1177
+ "default.handlebars->47->2006"
1178
]
1179
},
1180
{
@@ -1200,8 +1200,8 @@
1200
"zh-chs": ",提示同意",
1201
"zh-cht": ",提示同意",
1202
"xloc": [
1203
- "default.handlebars->47->1016",
1204
- "default.handlebars->47->2002"
1203
+ "default.handlebars->47->1017",
1204
+ "default.handlebars->47->2007"
1205
]
1206
},
1207
{
@@ -1227,7 +1227,7 @@
1227
"zh-chs": ", RDP",
1228
"zh-cht": ", RDP",
1229
"xloc": [
1230
- "default.handlebars->47->1279"
1230
+ "default.handlebars->47->1280"
1231
]
1232
},
1233
{
@@ -1253,8 +1253,8 @@
1253
"zh-chs": ", 每天重复",
1254
"zh-cht": ", 每天重複",
1255
"xloc": [
1256
- "default.handlebars->47->1012",
1257
- "default.handlebars->47->1998"
1256
+ "default.handlebars->47->1013",
1257
+ "default.handlebars->47->2003"
1258
]
1259
},
1260
{
@@ -1280,8 +1280,8 @@
1280
"zh-chs": ", 每周重复一次",
1281
"zh-cht": ", 每週重複一次",
1282
"xloc": [
1283
- "default.handlebars->47->1013",
1284
- "default.handlebars->47->1999"
1283
+ "default.handlebars->47->1014",
1284
+ "default.handlebars->47->2004"
1285
]
1286
},
1287
{
@@ -1330,7 +1330,7 @@
1330
"zh-chs": ", 中继设备",
1331
"zh-cht": ", 中繼設備",
1332
"xloc": [
1333
- "default.handlebars->47->340"
1333
+ "default.handlebars->47->341"
1334
]
1335
},
1336
{
@@ -1357,7 +1357,7 @@
1357
"zh-cht": ", SFTP",
1358
"xloc": [
1359
"default-mobile.handlebars->11->470",
1360
- "default.handlebars->47->1387"
1360
+ "default.handlebars->47->1388"
1361
]
1362
},
1363
{
@@ -1383,7 +1383,7 @@
1383
"zh-chs": ", SSH",
1384
"zh-cht": ", SSH",
1385
"xloc": [
1386
- "default.handlebars->47->1355"
1386
+ "default.handlebars->47->1356"
1387
]
1388
},
1389
{
@@ -1409,7 +1409,7 @@
1409
"zh-chs": ",软体KVM",
1410
"zh-cht": ",軟體KVM",
1411
"xloc": [
1412
- "default.handlebars->47->1262",
1412
+ "default.handlebars->47->1263",
1413
"sharing.handlebars->11->12"
1414
]
1415
},
@@ -1436,8 +1436,8 @@
1436
"zh-chs": ", 工具栏",
1437
"zh-cht": ", 工具欄",
1438
"xloc": [
1439
- "default.handlebars->47->1017",
1440
- "default.handlebars->47->2003"
1439
+ "default.handlebars->47->1018",
1440
+ "default.handlebars->47->2008"
1441
]
1442
},
1443
{
@@ -1486,8 +1486,8 @@
1486
"zh-chs": ", 仅查看桌面",
1487
"zh-cht": ", 僅查看桌面",
1488
"xloc": [
1489
- "default.handlebars->47->1014",
1490
- "default.handlebars->47->2000"
1489
+ "default.handlebars->47->1015",
1490
+ "default.handlebars->47->2005"
1491
]
1492
},
1493
{
@@ -1516,9 +1516,9 @@
1516
"default-mobile.handlebars->11->413",
1517
"default-mobile.handlebars->11->448",
1518
"default-mobile.handlebars->11->471",
1519
- "default.handlebars->47->1278",
1520
- "default.handlebars->47->1356",
1521
- "default.handlebars->47->1388",
1519
+ "default.handlebars->47->1279",
1520
+ "default.handlebars->47->1357",
1521
+ "default.handlebars->47->1389",
1522
"sharing.handlebars->11->19",
1523
"sharing.handlebars->11->27",
1524
"sharing.handlebars->11->44",
@@ -1724,7 +1724,7 @@
1724
"zh-chs": ",{0}观看",
1725
"zh-cht": ",{0}觀看",
1726
"xloc": [
1727
- "default.handlebars->47->1273",
1727
+ "default.handlebars->47->1274",
1728
"sharing.handlebars->11->13"
1729
]
1730
},
@@ -1833,9 +1833,9 @@
1833
"xloc": [
1834
"default-mobile.handlebars->11->139",
1835
"default-mobile.handlebars->11->477",
1836
- "default.handlebars->47->1398",
1837
- "default.handlebars->47->2219",
1838
- "default.handlebars->47->2862",
1836
+ "default.handlebars->47->1399",
1837
+ "default.handlebars->47->2224",
1838
+ "default.handlebars->47->2869",
1839
"sharing.handlebars->11->50"
1840
]
1841
},
@@ -2006,7 +2006,7 @@
2006
"zh-chs": "1个活跃时段",
2007
"zh-cht": "1個活躍時段",
2008
"xloc": [
2009
- "default.handlebars->47->2742"
2009
+ "default.handlebars->47->2747"
2010
]
2011
},
2012
{
@@ -2034,7 +2034,7 @@
2034
"xloc": [
2035
"default-mobile.handlebars->11->149",
2036
"default-mobile.handlebars->11->746",
2037
- "default.handlebars->47->2243",
2037
+ "default.handlebars->47->2248",
2038
"download.handlebars->3->1",
2039
"download2.handlebars->5->1",
2040
"sharing.handlebars->11->96"
@@ -2089,7 +2089,7 @@
2089
"zh-chs": "1条连接",
2090
"zh-cht": "1位聯絡文",
2091
"xloc": [
2092
- "default.handlebars->47->1275",
2092
+ "default.handlebars->47->1276",
2093
"sharing.handlebars->11->15"
2094
]
2095
},
@@ -2116,9 +2116,9 @@
2116
"zh-chs": "1天",
2117
"zh-cht": "1天",
2118
"xloc": [
2119
- "default.handlebars->47->268",
2120
- "default.handlebars->47->521",
2121
- "default.handlebars->47->535"
2119
+ "default.handlebars->47->269",
2120
+ "default.handlebars->47->522",
2121
+ "default.handlebars->47->536"
2122
]
2123
},
2124
{
@@ -2144,7 +2144,7 @@
2144
"zh-chs": "1组",
2145
"zh-cht": "1群",
2146
"xloc": [
2147
- "default.handlebars->47->2698"
2147
+ "default.handlebars->47->2703"
2148
]
2149
},
2150
{
@@ -2170,9 +2170,9 @@
2170
"zh-chs": "1小时",
2171
"zh-cht": "1小時",
2172
"xloc": [
2173
- "default.handlebars->47->266",
2174
- "default.handlebars->47->519",
2175
- "default.handlebars->47->533"
2173
+ "default.handlebars->47->267",
2174
+ "default.handlebars->47->520",
2175
+ "default.handlebars->47->534"
2176
]
2177
},
2178
{
@@ -2198,8 +2198,8 @@
2198
"zh-chs": "1分钟",
2199
"zh-cht": "1分鐘",
2200
"xloc": [
2201
- "default.handlebars->47->1099",
2202
- "default.handlebars->47->1802"
2201
+ "default.handlebars->47->1100",
2202
+ "default.handlebars->47->1807"
2203
]
2204
},
2205
{
@@ -2251,9 +2251,9 @@
2251
"zh-chs": "1个月",
2252
"zh-cht": "1個月",
2253
"xloc": [
2254
- "default.handlebars->47->270",
2255
- "default.handlebars->47->523",
2256
- "default.handlebars->47->537"
2254
+ "default.handlebars->47->271",
2255
+ "default.handlebars->47->524",
2256
+ "default.handlebars->47->538"
2257
]
2258
},
2259
{
@@ -2279,7 +2279,7 @@
2279
"zh-chs": "有1个用户没有显示,请使用搜索框查找用户...",
2280
"zh-cht": "有1個用戶沒有顯示,請使用搜尋框搜尋用戶...",
2281
"xloc": [
2282
- "default.handlebars->47->2460"
2282
+ "default.handlebars->47->2465"
2283
]
2284
},
2285
{
@@ -2305,7 +2305,7 @@
2305
"zh-chs": "1个节点",
2306
"zh-cht": "1個節點",
2307
"xloc": [
2308
- "default.handlebars->47->615"
2308
+ "default.handlebars->47->616"
2309
]
2310
},
2311
{
@@ -2378,7 +2378,7 @@
2378
"zh-cht": "1秒",
2379
"xloc": [
2380
"default-mobile.handlebars->11->363",
2381
- "default.handlebars->47->1136"
2381
+ "default.handlebars->47->1137"
2382
]
2383
},
2384
{
@@ -2430,7 +2430,7 @@
2430
"zh-chs": "1 个选定的设备处于离线状态。",
2431
"zh-cht": "1 個選定的設備處於離線狀態。",
2432
"xloc": [
2433
- "default.handlebars->47->681"
2433
+ "default.handlebars->47->682"
2434
]
2435
},
2436
{
@@ -2456,7 +2456,7 @@
2456
"zh-chs": "1 个选定的设备在线。",
2457
"zh-cht": "1 個選定的設備在線。",
2458
"xloc": [
2459
- "default.handlebars->47->679"
2459
+ "default.handlebars->47->680"
2460
]
2461
},
2462
{
@@ -2489,14 +2489,14 @@
2489
"default-mobile.handlebars->11->218",
2490
"default-mobile.handlebars->11->222",
2491
"default-mobile.handlebars->11->226",
2492
- "default.handlebars->47->2464",
2493
- "default.handlebars->47->410",
2494
- "default.handlebars->47->413",
2495
- "default.handlebars->47->417",
2496
- "default.handlebars->47->421",
2497
- "default.handlebars->47->425",
2498
- "default.handlebars->47->429",
2499
- "default.handlebars->47->433"
2492
+ "default.handlebars->47->2469",
2493
+ "default.handlebars->47->411",
2494
+ "default.handlebars->47->414",
2495
+ "default.handlebars->47->418",
2496
+ "default.handlebars->47->422",
2497
+ "default.handlebars->47->426",
2498
+ "default.handlebars->47->430",
2499
+ "default.handlebars->47->434"
2500
]
2501
},
2502
{
@@ -2522,9 +2522,9 @@
2522
"zh-chs": "1周",
2523
"zh-cht": "1週",
2524
"xloc": [
2525
- "default.handlebars->47->269",
2526
- "default.handlebars->47->522",
2527
- "default.handlebars->47->536"
2525
+ "default.handlebars->47->270",
2526
+ "default.handlebars->47->523",
2527
+ "default.handlebars->47->537"
2528
]
2529
},
2530
{
@@ -2684,8 +2684,8 @@
2684
"zh-chs": "10分钟",
2685
"zh-cht": "10分鐘",
2686
"xloc": [
2687
- "default.handlebars->47->1101",
2688
- "default.handlebars->47->1804"
2687
+ "default.handlebars->47->1102",
2688
+ "default.handlebars->47->1809"
2689
]
2690
},
2691
{
@@ -2712,7 +2712,7 @@
2712
"zh-cht": "10 秒",
2713
"xloc": [
2714
"default-mobile.handlebars->11->365",
2715
- "default.handlebars->47->1138"
2715
+ "default.handlebars->47->1139"
2716
]
2717
},
2718
{
@@ -2897,8 +2897,8 @@
2897
"zh-chs": "12小时",
2898
"zh-cht": "12小時",
2899
"xloc": [
2900
- "default.handlebars->47->1109",
2901
- "default.handlebars->47->1812"
2900
+ "default.handlebars->47->1110",
2901
+ "default.handlebars->47->1817"
2902
]
2903
},
2904
{
@@ -3079,8 +3079,8 @@
3079
"zh-chs": "15分钟",
3080
"zh-cht": "15分鐘",
3081
"xloc": [
3082
- "default.handlebars->47->1102",
3083
- "default.handlebars->47->1805"
3082
+ "default.handlebars->47->1103",
3083
+ "default.handlebars->47->1810"
3084
]
3085
},
3086
{
@@ -3106,8 +3106,8 @@
3106
"zh-chs": "16小时",
3107
"zh-cht": "16小時",
3108
"xloc": [
3109
- "default.handlebars->47->1110",
3110
- "default.handlebars->47->1813"
3109
+ "default.handlebars->47->1111",
3110
+ "default.handlebars->47->1818"
3111
]
3112
},
3113
{
@@ -3315,8 +3315,8 @@
3315
"zh-chs": "2天",
3316
"zh-cht": "2天",
3317
"xloc": [
3318
- "default.handlebars->47->1112",
3319
- "default.handlebars->47->1815"
3318
+ "default.handlebars->47->1113",
3319
+ "default.handlebars->47->1820"
3320
]
3321
},
3322
{
@@ -3342,8 +3342,8 @@
3342
"zh-chs": "2小时",
3343
"zh-cht": "2小時",
3344
"xloc": [
3345
- "default.handlebars->47->1106",
3346
- "default.handlebars->47->1809"
3345
+ "default.handlebars->47->1107",
3346
+ "default.handlebars->47->1814"
3347
]
3348
},
3349
{
@@ -3369,7 +3369,7 @@
3369
"zh-chs": "两步登录激活失败。",
3370
"zh-cht": "兩步登入啟用失敗。",
3371
"xloc": [
3372
- "default.handlebars->47->211"
3372
+ "default.handlebars->47->212"
3373
]
3374
},
3375
{
@@ -3395,7 +3395,7 @@
3395
"zh-chs": "两步登录激活删除失败。",
3396
"zh-cht": "兩步登入啟用刪除失敗。",
3397
"xloc": [
3398
- "default.handlebars->47->216"
3398
+ "default.handlebars->47->217"
3399
]
3400
},
3401
{
@@ -3529,8 +3529,8 @@
3529
"zh-chs": "24小时",
3530
"zh-cht": "24小時",
3531
"xloc": [
3532
- "default.handlebars->47->1111",
3533
- "default.handlebars->47->1814"
3532
+ "default.handlebars->47->1112",
3533
+ "default.handlebars->47->1819"
3534
]
3535
},
3536
{
@@ -3607,7 +3607,7 @@
3607
"zh-chs": "2FA备份代码已清除",
3608
"zh-cht": "2FA備份代碼已清除",
3609
"xloc": [
3610
- "default.handlebars->47->2356"
3610
+ "default.handlebars->47->2361"
3611
]
3612
},
3613
{
@@ -3634,7 +3634,7 @@
3634
"zh-cht": "2FA被鎖定",
3635
"xloc": [
3636
"default-mobile.handlebars->11->60",
3637
- "default.handlebars->47->198"
3637
+ "default.handlebars->47->199"
3638
]
3639
},
3640
{
@@ -3660,7 +3660,7 @@
3660
"zh-chs": "第二个因素",
3661
"zh-cht": "第二個因素",
3662
"xloc": [
3663
- "default.handlebars->47->2899"
3663
+ "default.handlebars->47->2906"
3664
]
3665
},
3666
{
@@ -3686,8 +3686,8 @@
3686
"zh-chs": "启用第二因素身份验证",
3687
"zh-cht": "啟用第二因素身份驗證",
3688
"xloc": [
3689
- "default.handlebars->47->2478",
3690
- "default.handlebars->47->2723"
3689
+ "default.handlebars->47->2483",
3690
+ "default.handlebars->47->2728"
3691
]
3692
},
3693
{
@@ -3841,8 +3841,8 @@
3841
"zh-chs": "30分钟",
3842
"zh-cht": "30分鐘",
3843
"xloc": [
3844
- "default.handlebars->47->1103",
3845
- "default.handlebars->47->1806"
3844
+ "default.handlebars->47->1104",
3845
+ "default.handlebars->47->1811"
3846
]
3847
},
3848
{
@@ -3869,7 +3869,7 @@
3869
"zh-cht": "32 位",
3870
"xloc": [
3871
"default-mobile.handlebars->11->514",
3872
- "default.handlebars->47->1451"
3872
+ "default.handlebars->47->1452"
3873
]
3874
},
3875
{
@@ -3895,8 +3895,8 @@
3895
"zh-chs": "MeshAgent的32位版本",
3896
"zh-cht": "MeshAgent的32位版本",
3897
"xloc": [
3898
- "default.handlebars->47->573",
3899
- "default.handlebars->47->601"
3898
+ "default.handlebars->47->574",
3899
+ "default.handlebars->47->602"
3900
]
3901
},
3902
{
@@ -3950,8 +3950,8 @@
3950
"zh-chs": "4天",
3951
"zh-cht": "4天",
3952
"xloc": [
3953
- "default.handlebars->47->1113",
3954
- "default.handlebars->47->1816"
3953
+ "default.handlebars->47->1114",
3954
+ "default.handlebars->47->1821"
3955
]
3956
},
3957
{
@@ -3977,8 +3977,8 @@
3977
"zh-chs": "4个小时",
3978
"zh-cht": "4個小時",
3979
"xloc": [
3980
- "default.handlebars->47->1107",
3981
- "default.handlebars->47->1810"
3980
+ "default.handlebars->47->1108",
3981
+ "default.handlebars->47->1815"
3982
]
3983
},
3984
{
@@ -4111,8 +4111,8 @@
4111
"zh-chs": "45分钟",
4112
"zh-cht": "45分鐘",
4113
"xloc": [
4114
- "default.handlebars->47->1104",
4115
- "default.handlebars->47->1807"
4114
+ "default.handlebars->47->1105",
4115
+ "default.handlebars->47->1812"
4116
]
4117
},
4118
{
@@ -4164,8 +4164,8 @@
4164
"zh-chs": "5分钟",
4165
"zh-cht": "5分鐘",
4166
"xloc": [
4167
- "default.handlebars->47->1100",
4168
- "default.handlebars->47->1803"
4167
+ "default.handlebars->47->1101",
4168
+ "default.handlebars->47->1808"
4169
]
4170
},
4171
{
@@ -4192,7 +4192,7 @@
4192
"zh-cht": "5秒",
4193
"xloc": [
4194
"default-mobile.handlebars->11->364",
4195
- "default.handlebars->47->1137"
4195
+ "default.handlebars->47->1138"
4196
]
4197
},
4198
{
@@ -4354,8 +4354,8 @@
4354
"zh-chs": "60分钟",
4355
"zh-cht": "60分鐘",
4356
"xloc": [
4357
- "default.handlebars->47->1105",
4358
- "default.handlebars->47->1808"
4357
+ "default.handlebars->47->1106",
4358
+ "default.handlebars->47->1813"
4359
]
4360
},
4361
{
@@ -4436,7 +4436,7 @@
4436
"zh-cht": "64 位",
4437
"xloc": [
4438
"default-mobile.handlebars->11->516",
4439
- "default.handlebars->47->1453"
4439
+ "default.handlebars->47->1454"
4440
]
4441
},
4442
{
@@ -4514,7 +4514,7 @@
4514
"zh-chs": "64位版本的macOS Mesh Agent",
4515
"zh-cht": "64位版本的macOS Mesh Agent",
4516
"xloc": [
4517
- "default.handlebars->47->588"
4517
+ "default.handlebars->47->589"
4518
]
4519
},
4520
{
@@ -4540,8 +4540,8 @@
4540
"zh-chs": "MeshAgent的64位版本",
4541
"zh-cht": "MeshAgent的64位版本",
4542
"xloc": [
4543
- "default.handlebars->47->577",
4544
- "default.handlebars->47->604"
4543
+ "default.handlebars->47->578",
4544
+ "default.handlebars->47->605"
4545
]
4546
},
4547
{
@@ -4613,7 +4613,7 @@
4613
"zh-chs": "7天电源状态",
4614
"zh-cht": "7天電源狀態",
4615
"xloc": [
4616
- "default.handlebars->47->1177"
4616
+ "default.handlebars->47->1178"
4617
]
4618
},
4619
{
@@ -4639,7 +4639,7 @@
4639
"zh-chs": "7天",
4640
"zh-cht": "7天",
4641
"xloc": [
4642
- "default.handlebars->47->1817"
4642
+ "default.handlebars->47->1822"
4643
]
4644
},
4645
{
@@ -4720,10 +4720,10 @@
4720
"zh-chs": "8小時",
4721
"zh-cht": "8小時",
4722
"xloc": [
4723
- "default.handlebars->47->1108",
4724
- "default.handlebars->47->1811",
4725
- "default.handlebars->47->520",
4726
- "default.handlebars->47->534"
4723
+ "default.handlebars->47->1109",
4724
+ "default.handlebars->47->1816",
4725
+ "default.handlebars->47->521",
4726
+ "default.handlebars->47->535"
4727
]
4728
},
4729
{
@@ -4882,7 +4882,7 @@
4882
"zh-chs": "<a href=\\\"https://www.yubico.com/\\\" rel=\\\"noreferrer noopener\\\" target=\\\"_blank\\\">硬件密钥</a>用作辅助登录身份验证。",
4883
"zh-cht": "<a href=\\\"https://www.yubico.com/\\\" rel=\\\"noreferrer noopener\\\" target=\\\"_blank\\\">硬件密鑰</a>用作輔助登入身份驗證。",
4884
"xloc": [
4885
- "default.handlebars->47->225"
4885
+ "default.handlebars->47->226"
4886
]
4887
},
4888
{
@@ -5062,8 +5062,8 @@
5062
"zh-cht": "ACM",
5063
"xloc": [
5064
"default-mobile.handlebars->11->297",
5065
- "default.handlebars->47->1979",
5066
- "default.handlebars->47->837"
5065
+ "default.handlebars->47->1984",
5066
+ "default.handlebars->47->838"
5067
]
5068
},
5069
{
@@ -5135,8 +5135,8 @@
5135
"zh-chs": "AMT",
5136
"zh-cht": "AMT",
5137
"xloc": [
5138
- "default.handlebars->47->389",
5139
- "default.handlebars->47->650"
5138
+ "default.handlebars->47->390",
5139
+ "default.handlebars->47->651"
5140
]
5141
},
5142
{
@@ -5162,7 +5162,7 @@
5162
"zh-chs": "操作系统",
5163
"zh-cht": "AMT操作系統",
5164
"xloc": [
5165
- "default.handlebars->47->3044"
5165
+ "default.handlebars->47->3051"
5166
]
5167
},
5168
{
@@ -5188,7 +5188,7 @@
5188
"zh-chs": "AMT-Redir",
5189
"zh-cht": "AMT-Redir",
5190
"xloc": [
5191
- "default.handlebars->47->2906"
5191
+ "default.handlebars->47->2913"
5192
]
5193
},
5194
{
@@ -5214,7 +5214,7 @@
5214
"zh-chs": "AMT-WSMAN",
5215
"zh-cht": "AMT-WSMAN",
5216
"xloc": [
5217
- "default.handlebars->47->2905"
5217
+ "default.handlebars->47->2912"
5218
]
5219
},
5220
{
@@ -5377,8 +5377,8 @@
5377
"xloc": [
5378
"default-mobile.handlebars->11->518",
5379
"default-mobile.handlebars->11->520",
5380
- "default.handlebars->47->856",
5381
- "default.handlebars->47->858"
5380
+ "default.handlebars->47->857",
5381
+ "default.handlebars->47->859"
5382
]
5383
},
5384
{
@@ -5405,7 +5405,7 @@
5405
"zh-cht": "拒絕存取",
5406
"xloc": [
5407
"default-mobile.handlebars->11->607",
5408
- "default.handlebars->47->1538"
5408
+ "default.handlebars->47->1539"
5409
]
5410
},
5411
{
@@ -5485,7 +5485,7 @@
5485
"zh-chs": "访问服务器档案",
5486
"zh-cht": "存取伺服器檔案",
5487
"xloc": [
5488
- "default.handlebars->47->2654"
5488
+ "default.handlebars->47->2659"
5489
]
5490
},
5491
{
@@ -5598,11 +5598,11 @@
5598
"default-mobile.handlebars->11->264",
5599
"default-mobile.handlebars->11->266",
5600
"default-mobile.handlebars->container->page_content->column_l->p3->p3info->3->p3AccountActions->p2AccountSecurity->1->0",
5601
- "default.handlebars->47->1846",
5602
- "default.handlebars->47->1848",
5603
- "default.handlebars->47->3098",
5604
- "default.handlebars->47->797",
5605
- "default.handlebars->47->799"
5601
+ "default.handlebars->47->1851",
5602
+ "default.handlebars->47->1853",
5603
+ "default.handlebars->47->3105",
5604
+ "default.handlebars->47->798",
5605
+ "default.handlebars->47->800"
5606
]
5607
},
5608
{
@@ -5629,7 +5629,7 @@
5629
"zh-cht": "帳號設定",
5630
"xloc": [
5631
"default-mobile.handlebars->11->713",
5632
- "default.handlebars->47->2969"
5632
+ "default.handlebars->47->2976"
5633
]
5634
},
5635
{
@@ -5691,7 +5691,7 @@
5691
"nl": "Account gewijzigd om te synchroniseren met LDAP gegevens.",
5692
"pl": "Konto zmienione di synchronizacji z danymi LDAP.",
5693
"xloc": [
5694
- "default.handlebars->47->2417"
5694
+ "default.handlebars->47->2422"
5695
]
5696
},
5697
{
@@ -5717,7 +5717,7 @@
5717
"zh-chs": "帐户已更改:{0}",
5718
"zh-cht": "帳戶已更改:{0}",
5719
"xloc": [
5720
- "default.handlebars->47->2329"
5720
+ "default.handlebars->47->2334"
5721
]
5722
},
5723
{
@@ -5743,7 +5743,7 @@
5743
"zh-chs": "创建帐户,电子邮件为{0}",
5744
"zh-cht": "創建帳戶,電子郵件為{0}",
5745
"xloc": [
5746
- "default.handlebars->47->2328"
5746
+ "default.handlebars->47->2333"
5747
]
5748
},
5749
{
@@ -5769,7 +5769,7 @@
5769
"zh-chs": "已创建帐户,名称为 {0}。",
5770
"zh-cht": "已創建帳戶,名稱為 {0}。",
5771
"xloc": [
5772
- "default.handlebars->47->2391"
5772
+ "default.handlebars->47->2396"
5773
]
5774
},
5775
{
@@ -5795,7 +5795,7 @@
5795
"zh-chs": "创建帐户,用户名是{0}",
5796
"zh-cht": "帳戶已創建,用戶名是{0}",
5797
"xloc": [
5798
- "default.handlebars->47->2327"
5798
+ "default.handlebars->47->2332"
5799
]
5800
},
5801
{
@@ -5822,9 +5822,9 @@
5822
"zh-cht": "帳戶已被鎖定",
5823
"xloc": [
5824
"default-mobile.handlebars->11->64",
5825
- "default.handlebars->47->202",
5826
- "default.handlebars->47->2480",
5827
- "default.handlebars->47->2651"
5825
+ "default.handlebars->47->203",
5826
+ "default.handlebars->47->2485",
5827
+ "default.handlebars->47->2656"
5828
]
5829
},
5830
{
@@ -5851,7 +5851,7 @@
5851
"zh-cht": "達到帳戶限制。",
5852
"xloc": [
5853
"default-mobile.handlebars->11->725",
5854
- "default.handlebars->47->2981",
5854
+ "default.handlebars->47->2988",
5855
"login-mobile.handlebars->5->6",
5856
"login.handlebars->5->8",
5857
"login2.handlebars->7->9"
@@ -5908,7 +5908,7 @@
5908
"zh-chs": "帐号登录",
5909
"zh-cht": "帳號登錄",
5910
"xloc": [
5911
- "default.handlebars->47->2264"
5911
+ "default.handlebars->47->2269"
5912
]
5913
},
5914
{
@@ -5934,7 +5934,7 @@
5934
"zh-chs": "来自 {0}、{1}、{2} 的帐户登录",
5935
"zh-cht": "從 {0}、{1}、{2} 登錄帳戶",
5936
"xloc": [
5937
- "default.handlebars->47->2370"
5937
+ "default.handlebars->47->2375"
5938
]
5939
},
5940
{
@@ -5943,7 +5943,7 @@
5943
"nl": "Token vermeldingen voor accountaanmelding",
5944
"pl": "Zapisy logowania tokenami użytkownika",
5945
"xloc": [
5946
- "default.handlebars->47->2948"
5946
+ "default.handlebars->47->2955"
5947
]
5948
},
5949
{
@@ -5969,7 +5969,7 @@
5969
"zh-chs": "帐户登出",
5970
"zh-cht": "帳戶登出",
5971
"xloc": [
5972
- "default.handlebars->47->2265"
5972
+ "default.handlebars->47->2270"
5973
]
5974
},
5975
{
@@ -6023,7 +6023,7 @@
6023
"zh-chs": "帐户密码已更改:{0}",
6024
"zh-cht": "帳戶密碼已更改:{0}",
6025
"xloc": [
6026
- "default.handlebars->47->2337"
6026
+ "default.handlebars->47->2342"
6027
]
6028
},
6029
{
@@ -6049,7 +6049,7 @@
6049
"zh-chs": "帐户已删除",
6050
"zh-cht": "帳戶已刪除",
6051
"xloc": [
6052
- "default.handlebars->47->2326"
6052
+ "default.handlebars->47->2331"
6053
]
6054
},
6055
{
@@ -6102,7 +6102,7 @@
6102
"zh-cht": "指令",
6103
"xloc": [
6104
"default-mobile.handlebars->11->613",
6105
- "default.handlebars->47->1544",
6105
+ "default.handlebars->47->1545",
6106
"default.handlebars->container->column_l->p42->p42tbl->1->0->8"
6107
]
6108
},
@@ -6129,8 +6129,8 @@
6129
"zh-chs": "动作档案",
6130
"zh-cht": "動作檔案",
6131
"xloc": [
6132
- "default.handlebars->47->1223",
6133
- "default.handlebars->47->1225"
6132
+ "default.handlebars->47->1224",
6133
+ "default.handlebars->47->1226"
6134
]
6135
},
6136
{
@@ -6160,7 +6160,7 @@
6160
"default-mobile.handlebars->container->page_content->column_l->p10->p10desktop->deskarea4->1->3",
6161
"default-mobile.handlebars->container->page_content->column_l->p10->p10files->p13toolbar->1->0->1->1",
6162
"default-mobile.handlebars->container->page_content->column_l->p10->p10terminal->termTable->termarea4->1->3",
6163
- "default.handlebars->47->921",
6163
+ "default.handlebars->47->922",
6164
"default.handlebars->container->column_l->p11->deskarea0->deskarea1->1",
6165
"default.handlebars->container->column_l->p12->termTable->1->1->0->1->1",
6166
"default.handlebars->container->column_l->p13->p13toolbar->1->0->1->1"
@@ -6189,7 +6189,7 @@
6189
"zh-chs": "使用FAT格式的USB密钥在管理控制模式(ACM)中激活英特尔®AMT。将setup.bin放在其上,然后使用此键引导一台或多台计算机。",
6190
"zh-cht": "使用FAT格式的USB密鑰在管理控制模式(ACM)中激活英特爾®AMT。將setup.bin放在其上,然後使用此鍵引導一台或多台計算機。",
6191
"xloc": [
6192
- "default.handlebars->47->486"
6192
+ "default.handlebars->47->487"
6193
]
6194
},
6195
{
@@ -6267,7 +6267,7 @@
6267
"zh-chs": "如果ACM失败,则激活到CCM",
6268
"zh-cht": "如果ACM失敗,則激活到CCM",
6269
"xloc": [
6270
- "default.handlebars->47->2034"
6270
+ "default.handlebars->47->2039"
6271
]
6272
},
6273
{
@@ -6296,9 +6296,9 @@
6296
"default-mobile.handlebars->11->292",
6297
"default-mobile.handlebars->11->294",
6298
"default-mobile.handlebars->11->568",
6299
- "default.handlebars->47->1498",
6300
- "default.handlebars->47->830",
6301
- "default.handlebars->47->832"
6299
+ "default.handlebars->47->1499",
6300
+ "default.handlebars->47->831",
6301
+ "default.handlebars->47->833"
6302
]
6303
},
6304
{
@@ -6324,7 +6324,7 @@
6324
"zh-chs": "激活",
6325
"zh-cht": "啟動",
6326
"xloc": [
6327
- "default.handlebars->47->310"
6327
+ "default.handlebars->47->311"
6328
]
6329
},
6330
{
@@ -6350,8 +6350,8 @@
6350
"zh-chs": "主动设备共享",
6351
"zh-cht": "主動設備共享",
6352
"xloc": [
6353
- "default.handlebars->47->1983",
6354
- "default.handlebars->47->997"
6353
+ "default.handlebars->47->1988",
6354
+ "default.handlebars->47->998"
6355
]
6356
},
6357
{
@@ -6377,7 +6377,7 @@
6377
"zh-chs": "活动登录令牌",
6378
"zh-cht": "活動登錄令牌",
6379
"xloc": [
6380
- "default.handlebars->47->1877"
6380
+ "default.handlebars->47->1882"
6381
]
6382
},
6383
{
@@ -6403,7 +6403,7 @@
6403
"zh-chs": "活跃用户",
6404
"zh-cht": "活躍用戶",
6405
"xloc": [
6406
- "default.handlebars->47->874"
6406
+ "default.handlebars->47->875"
6407
]
6408
},
6409
{
@@ -6429,7 +6429,7 @@
6429
"zh-chs": "活跃用户",
6430
"zh-cht": "活躍用戶",
6431
"xloc": [
6432
- "default.handlebars->47->873"
6432
+ "default.handlebars->47->874"
6433
]
6434
},
6435
{
@@ -6479,8 +6479,8 @@
6479
"zh-cht": "添加",
6480
"xloc": [
6481
"default-mobile.handlebars->11->440",
6482
- "default.handlebars->47->1310",
6483
- "default.handlebars->47->1315"
6482
+ "default.handlebars->47->1311",
6483
+ "default.handlebars->47->1316"
6484
]
6485
},
6486
{
@@ -6552,8 +6552,8 @@
6552
"zh-chs": "添加代理",
6553
"zh-cht": "新增代理",
6554
"xloc": [
6555
- "default.handlebars->47->1973",
6556
- "default.handlebars->47->451"
6555
+ "default.handlebars->47->1978",
6556
+ "default.handlebars->47->452"
6557
]
6558
},
6559
{
@@ -6602,10 +6602,10 @@
6602
"zh-chs": "添加设备",
6603
"zh-cht": "新增裝置",
6604
"xloc": [
6605
- "default.handlebars->47->1977",
6606
- "default.handlebars->47->2626",
6607
- "default.handlebars->47->2798",
6608
- "default.handlebars->47->455"
6605
+ "default.handlebars->47->1982",
6606
+ "default.handlebars->47->2631",
6607
+ "default.handlebars->47->2805",
6608
+ "default.handlebars->47->456"
6609
]
6610
},
6611
{
@@ -6631,7 +6631,7 @@
6631
"zh-chs": "添加设备日志",
6632
"zh-cht": "新增裝置日誌",
6633
"xloc": [
6634
- "default.handlebars->47->1073"
6634
+ "default.handlebars->47->1074"
6635
]
6636
},
6637
{
@@ -6657,10 +6657,10 @@
6657
"zh-chs": "添加设备组",
6658
"zh-cht": "新增裝置群",
6659
"xloc": [
6660
- "default.handlebars->47->2119",
6661
- "default.handlebars->47->2620",
6662
- "default.handlebars->47->2786",
6663
- "default.handlebars->47->365"
6660
+ "default.handlebars->47->2124",
6661
+ "default.handlebars->47->2625",
6662
+ "default.handlebars->47->2793",
6663
+ "default.handlebars->47->366"
6664
]
6665
},
6666
{
@@ -6686,7 +6686,7 @@
6686
"zh-chs": "添加设备组权限",
6687
"zh-cht": "新增裝置群權限",
6688
"xloc": [
6689
- "default.handlebars->47->2116"
6689
+ "default.handlebars->47->2121"
6690
]
6691
},
6692
{
@@ -6712,8 +6712,8 @@
6712
"zh-chs": "添加设备权限",
6713
"zh-cht": "新增裝置權限",
6714
"xloc": [
6715
- "default.handlebars->47->2121",
6716
- "default.handlebars->47->2123"
6715
+ "default.handlebars->47->2126",
6716
+ "default.handlebars->47->2128"
6717
]
6718
},
6719
{
@@ -6762,7 +6762,7 @@
6762
"zh-chs": "添加英特尔®AMT设备",
6763
"zh-cht": "新增Intel® AMT裝置",
6764
"xloc": [
6765
- "default.handlebars->47->475"
6765
+ "default.handlebars->47->476"
6766
]
6767
},
6768
{
@@ -6788,7 +6788,7 @@
6788
"zh-chs": "新增密钥",
6789
"zh-cht": "新增密鑰",
6790
"xloc": [
6791
- "default.handlebars->47->229"
6791
+ "default.handlebars->47->230"
6792
]
6793
},
6794
{
@@ -6814,7 +6814,7 @@
6814
"zh-chs": "添加本地",
6815
"zh-cht": "新增本地",
6816
"xloc": [
6817
- "default.handlebars->47->445"
6817
+ "default.handlebars->47->446"
6818
]
6819
},
6820
{
@@ -6863,7 +6863,7 @@
6863
"zh-chs": "添加成员身份",
6864
"zh-cht": "新增成員身份",
6865
"xloc": [
6866
- "default.handlebars->47->2818"
6866
+ "default.handlebars->47->2825"
6867
]
6868
},
6869
{
@@ -6889,7 +6889,7 @@
6889
"zh-chs": "添加 Mesh Agent",
6890
"zh-cht": "新增 Mesh Agent",
6891
"xloc": [
6892
- "default.handlebars->47->614"
6892
+ "default.handlebars->47->615"
6893
]
6894
},
6895
{
@@ -6938,12 +6938,12 @@
6938
"zh-chs": "添加安全密钥",
6939
"zh-cht": "新增安全密鑰",
6940
"xloc": [
6941
- "default.handlebars->47->1592",
6942
- "default.handlebars->47->1593",
6943
- "default.handlebars->47->233",
6944
- "default.handlebars->47->235",
6945
- "default.handlebars->47->238",
6946
- "default.handlebars->47->240"
6941
+ "default.handlebars->47->1597",
6942
+ "default.handlebars->47->1598",
6943
+ "default.handlebars->47->234",
6944
+ "default.handlebars->47->236",
6945
+ "default.handlebars->47->239",
6946
+ "default.handlebars->47->241"
6947
]
6948
},
6949
{
@@ -6970,7 +6970,7 @@
6970
"zh-cht": "新增用戶",
6971
"xloc": [
6972
"default-mobile.handlebars->11->638",
6973
- "default.handlebars->47->989"
6973
+ "default.handlebars->47->990"
6974
]
6975
},
6976
{
@@ -6996,7 +6996,7 @@
6996
"zh-chs": "添加用户设备权限",
6997
"zh-cht": "新增用戶裝置權限",
6998
"xloc": [
6999
- "default.handlebars->47->2126"
6999
+ "default.handlebars->47->2131"
7000
]
7001
},
7002
{
@@ -7022,10 +7022,10 @@
7022
"zh-chs": "添加用户组",
7023
"zh-cht": "新增用戶群",
7024
"xloc": [
7025
- "default.handlebars->47->1967",
7026
- "default.handlebars->47->2118",
7027
- "default.handlebars->47->2792",
7028
- "default.handlebars->47->990"
7025
+ "default.handlebars->47->1972",
7026
+ "default.handlebars->47->2123",
7027
+ "default.handlebars->47->2799",
7028
+ "default.handlebars->47->991"
7029
]
7030
},
7031
{
@@ -7051,7 +7051,7 @@
7051
"zh-chs": "添加用户组设备权限",
7052
"zh-cht": "新增用戶群裝置權限",
7053
"xloc": [
7054
- "default.handlebars->47->2128"
7054
+ "default.handlebars->47->2133"
7055
]
7056
},
7057
{
@@ -7126,8 +7126,8 @@
7126
"zh-chs": "添加用户",
7127
"zh-cht": "新增用戶",
7128
"xloc": [
7129
- "default.handlebars->47->1966",
7130
- "default.handlebars->47->2615"
7129
+ "default.handlebars->47->1971",
7130
+ "default.handlebars->47->2620"
7131
]
7132
},
7133
{
@@ -7153,7 +7153,7 @@
7153
"zh-chs": "将用户添加到设备组",
7154
"zh-cht": "將用戶新增到裝置群",
7155
"xloc": [
7156
- "default.handlebars->47->2115"
7156
+ "default.handlebars->47->2120"
7157
]
7158
},
7159
{
@@ -7179,7 +7179,7 @@
7179
"zh-chs": "将用户添加到用户组",
7180
"zh-cht": "將用戶新增到用戶群",
7181
"xloc": [
7182
- "default.handlebars->47->2650"
7182
+ "default.handlebars->47->2655"
7183
]
7184
},
7185
{
@@ -7205,7 +7205,7 @@
7205
"zh-chs": "添加YubiKey®OTP",
7206
"zh-cht": "新增YubiKey®OTP",
7207
"xloc": [
7208
- "default.handlebars->47->230"
7208
+ "default.handlebars->47->231"
7209
]
7210
},
7211
{
@@ -7231,7 +7231,7 @@
7231
"zh-chs": "将本地设备添加到设备组 \\\"{0}\\\"。",
7232
"zh-cht": "將本地設備添加到設備組 \\\"{0}\\\"。",
7233
"xloc": [
7234
- "default.handlebars->47->456"
7234
+ "default.handlebars->47->457"
7235
]
7236
},
7237
{
@@ -7257,7 +7257,7 @@
7257
"zh-chs": "通过扫描本地网络添加新的英特尔®AMT计算机。",
7258
"zh-cht": "通過掃描本地網絡新增新的Intel® AMT電腦。",
7259
"xloc": [
7260
- "default.handlebars->47->446"
7260
+ "default.handlebars->47->447"
7261
]
7262
},
7263
{
@@ -7306,7 +7306,7 @@
7306
"zh-chs": "添加位于本地网络上的新英特尔®AMT计算机。",
7307
"zh-cht": "新增位於本地網絡上的新Intel® AMT電腦。",
7308
"xloc": [
7309
- "default.handlebars->47->444"
7309
+ "default.handlebars->47->445"
7310
]
7311
},
7312
{
@@ -7332,7 +7332,7 @@
7332
"zh-chs": "将新的英特尔®AMT设备添加到设备组“{0}”。",
7333
"zh-cht": "將新的Intel® AMT裝置新增到裝置群“{0}”。",
7334
"xloc": [
7335
- "default.handlebars->47->465"
7335
+ "default.handlebars->47->466"
7336
]
7337
},
7338
{
@@ -7358,8 +7358,8 @@
7358
"zh-chs": "通过安装Mesh Agent将新计算机添加到该设备组。",
7359
"zh-cht": "通過安裝Mesh Agent將新電腦新增到該裝置群。",
7360
"xloc": [
7361
- "default.handlebars->47->1972",
7362
- "default.handlebars->47->450"
7361
+ "default.handlebars->47->1977",
7362
+ "default.handlebars->47->451"
7363
]
7364
},
7365
{
@@ -7385,8 +7385,8 @@
7385
"zh-chs": "添加位于本地网络上的设备。",
7386
"zh-cht": "添加位於本地網絡上的設備。",
7387
"xloc": [
7388
- "default.handlebars->47->1976",
7389
- "default.handlebars->47->454"
7388
+ "default.handlebars->47->1981",
7389
+ "default.handlebars->47->455"
7390
]
7391
},
7392
{
@@ -7412,7 +7412,7 @@
7412
"zh-chs": "添加本地设备",
7413
"zh-cht": "添加本地設備",
7414
"xloc": [
7415
- "default.handlebars->47->464"
7415
+ "default.handlebars->47->465"
7416
]
7417
},
7418
{
@@ -7438,7 +7438,7 @@
7438
"zh-chs": "添加标签",
7439
"zh-cht": "新增標籤",
7440
"xloc": [
7441
- "default.handlebars->47->688"
7441
+ "default.handlebars->47->689"
7442
]
7443
},
7444
{
@@ -7464,7 +7464,7 @@
7464
"zh-chs": "通过定期在远程设备上以管理员身份运行MeshCmd,添加,激活和配置Intel®AMT以将“{0}”分组。",
7465
"zh-cht": "通過定期在遠程設備上以管理員身份運行MeshCmd,添加,激活和配置Intel®AMT以將“{0}”分組。",
7466
"xloc": [
7467
- "default.handlebars->47->483"
7467
+ "default.handlebars->47->484"
7468
]
7469
},
7470
{
@@ -7490,7 +7490,7 @@
7490
"zh-chs": "添加了身份验证应用程序",
7491
"zh-cht": "添加了身份驗證應用程序",
7492
"xloc": [
7493
- "default.handlebars->47->2353"
7493
+ "default.handlebars->47->2358"
7494
]
7495
},
7496
{
@@ -7516,7 +7516,7 @@
7516
"zh-chs": "已将设备共享{0}从{1}添加到{2}",
7517
"zh-cht": "已將設備共享{0}從{1}添加到{2}",
7518
"xloc": [
7519
- "default.handlebars->47->2364"
7519
+ "default.handlebars->47->2369"
7520
]
7521
},
7522
{
@@ -7542,7 +7542,7 @@
7542
"zh-chs": "添加了每天重复的设备共享 {0}。",
7543
"zh-cht": "添加了每天重複的設備共享 {0}。",
7544
"xloc": [
7545
- "default.handlebars->47->2401"
7545
+ "default.handlebars->47->2406"
7546
]
7547
},
7548
{
@@ -7568,7 +7568,7 @@
7568
"zh-chs": "添加了每周重复的设备共享 {0}。",
7569
"zh-cht": "添加了每週重複的設備共享 {0}。",
7570
"xloc": [
7571
- "default.handlebars->47->2402"
7571
+ "default.handlebars->47->2407"
7572
]
7573
},
7574
{
@@ -7594,7 +7594,7 @@
7594
"zh-chs": "添加了无限时间的设备共享 {0}。",
7595
"zh-cht": "添加了無限時間的設備共享 {0}。",
7596
"xloc": [
7597
- "default.handlebars->47->2394"
7597
+ "default.handlebars->47->2399"
7598
]
7599
},
7600
{
@@ -7620,8 +7620,8 @@
7620
"zh-chs": "已将设备{0}添加到设备组{1}",
7621
"zh-cht": "已將設備{0}添加到設備組{1}",
7622
"xloc": [
7623
- "default.handlebars->47->2320",
7624
- "default.handlebars->47->2347"
7623
+ "default.handlebars->47->2325",
7624
+ "default.handlebars->47->2352"
7625
]
7626
},
7627
{
@@ -7647,7 +7647,7 @@
7647
"zh-chs": "添加登录令牌",
7648
"zh-cht": "添加了登錄令牌",
7649
"xloc": [
7650
- "default.handlebars->47->2378"
7650
+ "default.handlebars->47->2383"
7651
]
7652
},
7653
{
@@ -7673,7 +7673,7 @@
7673
"zh-chs": "新增推送通知认证装置",
7674
"zh-cht": "增加推送通知認證設備",
7675
"xloc": [
7676
- "default.handlebars->47->2376"
7676
+ "default.handlebars->47->2381"
7677
]
7678
},
7679
{
@@ -7699,7 +7699,7 @@
7699
"zh-chs": "添加了安全密钥",
7700
"zh-cht": "添加了安全密鑰",
7701
"xloc": [
7702
- "default.handlebars->47->2358"
7702
+ "default.handlebars->47->2363"
7703
]
7704
},
7705
{
@@ -7725,7 +7725,7 @@
7725
"zh-chs": "已将用户组{0}添加到设备组{1}",
7726
"zh-cht": "已將用戶組{0}添加到設備組{1}",
7727
"xloc": [
7728
- "default.handlebars->47->2331"
7728
+ "default.handlebars->47->2336"
7729
]
7730
},
7731
{
@@ -7751,8 +7751,8 @@
7751
"zh-chs": "已将用户{0}添加到用户组{1}",
7752
"zh-cht": "已將用戶{0}添加到用戶組{1}",
7753
"xloc": [
7754
- "default.handlebars->47->2334",
7755
- "default.handlebars->47->2343"
7754
+ "default.handlebars->47->2339",
7755
+ "default.handlebars->47->2348"
7756
]
7757
},
7758
{
@@ -7778,7 +7778,7 @@
7778
"zh-chs": "地址",
7779
"zh-cht": "地址",
7780
"xloc": [
7781
- "default.handlebars->47->360"
7781
+ "default.handlebars->47->361"
7782
]
7783
},
7784
{
@@ -7831,7 +7831,7 @@
7831
"zh-cht": "管理員控制模式(ACM)",
7832
"xloc": [
7833
"default-mobile.handlebars->11->570",
7834
- "default.handlebars->47->1500"
7834
+ "default.handlebars->47->1501"
7835
]
7836
},
7837
{
@@ -7858,7 +7858,7 @@
7858
"zh-cht": "管理員憑證",
7859
"xloc": [
7860
"default-mobile.handlebars->11->576",
7861
- "default.handlebars->47->1506"
7861
+ "default.handlebars->47->1507"
7862
]
7863
},
7864
{
@@ -7911,7 +7911,7 @@
7911
"zh-chs": "管理领域",
7912
"zh-cht": "管理領域",
7913
"xloc": [
7914
- "default.handlebars->47->2702"
7914
+ "default.handlebars->47->2707"
7915
]
7916
},
7917
{
@@ -7964,7 +7964,7 @@
7964
"zh-chs": "管理领域",
7965
"zh-cht": "管理領域",
7966
"xloc": [
7967
- "default.handlebars->47->2547"
7967
+ "default.handlebars->47->2552"
7968
]
7969
},
7970
{
@@ -7990,7 +7990,7 @@
7990
"zh-chs": "管理员",
7991
"zh-cht": "管理員",
7992
"xloc": [
7993
- "default.handlebars->47->2472"
7993
+ "default.handlebars->47->2477"
7994
]
7995
},
7996
{
@@ -8016,7 +8016,7 @@
8016
"zh-chs": "南非文",
8017
"zh-cht": "南非文",
8018
"xloc": [
8019
- "default.handlebars->47->1595"
8019
+ "default.handlebars->47->1600"
8020
]
8021
},
8022
{
@@ -8046,11 +8046,11 @@
8046
"default-mobile.handlebars->11->256",
8047
"default-mobile.handlebars->11->313",
8048
"default-mobile.handlebars->container->page_content->column_l->p10->p10console->consoleTable->1->4->1->1->1->0->p15outputselecttd->p15outputselect->p15outputselect1",
8049
- "default.handlebars->47->2194",
8050
- "default.handlebars->47->2207",
8051
- "default.handlebars->47->3042",
8052
- "default.handlebars->47->385",
8053
- "default.handlebars->47->646",
8049
+ "default.handlebars->47->2199",
8050
+ "default.handlebars->47->2212",
8051
+ "default.handlebars->47->3049",
8052
+ "default.handlebars->47->386",
8053
+ "default.handlebars->47->647",
8054
"default.handlebars->container->column_l->p15->consoleTable->1->6->1->1->1->0->p15outputselecttd->p15outputselect->p15outputselect1",
8055
"default.handlebars->container->dialog->dialogBody->dialog7->1->td7meshkvm"
8056
]
@@ -8078,8 +8078,8 @@
8078
"zh-chs": "代理+英特尔AMT",
8079
"zh-cht": "代理+Intel® AMT",
8080
"xloc": [
8081
- "default.handlebars->47->2196",
8082
- "default.handlebars->47->2209"
8081
+ "default.handlebars->47->2201",
8082
+ "default.handlebars->47->2214"
8083
]
8084
},
8085
{
@@ -8133,8 +8133,8 @@
8133
"zh-cht": "代理控制台",
8134
"xloc": [
8135
"default-mobile.handlebars->11->684",
8136
- "default.handlebars->47->2136",
8137
- "default.handlebars->47->728"
8136
+ "default.handlebars->47->2141",
8137
+ "default.handlebars->47->729"
8138
]
8139
},
8140
{
@@ -8160,7 +8160,7 @@
8160
"zh-chs": "代理错误计数器",
8161
"zh-cht": "代理錯誤計數器",
8162
"xloc": [
8163
- "default.handlebars->47->3011"
8163
+ "default.handlebars->47->3018"
8164
]
8165
},
8166
{
@@ -8186,7 +8186,7 @@
8186
"zh-chs": "代理IP地址",
8187
"zh-cht": "代理 IP 地址",
8188
"xloc": [
8189
- "default.handlebars->47->335"
8189
+ "default.handlebars->47->336"
8190
]
8191
},
8192
{
@@ -8239,7 +8239,7 @@
8239
"zh-cht": "代理訊息",
8240
"xloc": [
8241
"default-mobile.handlebars->11->229",
8242
- "default.handlebars->47->436"
8242
+ "default.handlebars->47->437"
8243
]
8244
},
8245
{
@@ -8341,8 +8341,8 @@
8341
"zh-chs": "代理自行共享",
8342
"zh-cht": "代理自行共享",
8343
"xloc": [
8344
- "default.handlebars->47->1018",
8345
- "default.handlebars->47->2004"
8344
+ "default.handlebars->47->1019",
8345
+ "default.handlebars->47->2009"
8346
]
8347
},
8348
{
@@ -8368,7 +8368,7 @@
8368
"zh-chs": "代理会话",
8369
"zh-cht": "代理時段",
8370
"xloc": [
8371
- "default.handlebars->47->3027"
8371
+ "default.handlebars->47->3034"
8372
]
8373
},
8374
{
@@ -8418,7 +8418,7 @@
8418
"zh-cht": "代理標籤",
8419
"xloc": [
8420
"default-mobile.handlebars->11->310",
8421
- "default.handlebars->47->853"
8421
+ "default.handlebars->47->854"
8422
]
8423
},
8424
{
@@ -8444,8 +8444,8 @@
8444
"zh-chs": "代理类型",
8445
"zh-cht": "代理類型",
8446
"xloc": [
8447
- "default.handlebars->47->329",
8448
- "default.handlebars->47->355"
8447
+ "default.handlebars->47->330",
8448
+ "default.handlebars->47->356"
8449
]
8450
},
8451
{
@@ -8471,7 +8471,7 @@
8471
"zh-chs": "代理类型",
8472
"zh-cht": "代理類型",
8473
"xloc": [
8474
- "default.handlebars->47->2205",
8474
+ "default.handlebars->47->2210",
8475
"default.handlebars->container->column_l->p21->p21main->1->1->meshOsChartDiv->1"
8476
]
8477
},
@@ -8498,8 +8498,8 @@
8498
"zh-chs": "代理版本",
8499
"zh-cht": "代理版本",
8500
"xloc": [
8501
- "default.handlebars->47->330",
8502
- "default.handlebars->47->356"
8501
+ "default.handlebars->47->331",
8502
+ "default.handlebars->47->357"
8503
]
8504
},
8505
{
@@ -8525,7 +8525,7 @@
8525
"zh-chs": "代理关闭了与服务器压缩的{0}%代理会话。已发送:{1},已压缩:{2}",
8526
"zh-cht": "代理關閉了與{0}%代理到服務器壓縮的會話。已發送:{1},已壓縮:{2}",
8527
"xloc": [
8528
- "default.handlebars->47->2317"
8528
+ "default.handlebars->47->2322"
8529
]
8530
},
8531
{
@@ -8551,9 +8551,9 @@
8551
"zh-chs": "代理已连接",
8552
"zh-cht": "代理已連接",
8553
"xloc": [
8554
- "default.handlebars->47->249",
8555
- "default.handlebars->47->976",
8556
- "default.handlebars->47->977"
8554
+ "default.handlebars->47->250",
8555
+ "default.handlebars->47->977",
8556
+ "default.handlebars->47->978"
8557
]
8558
},
8559
{
@@ -8579,7 +8579,7 @@
8579
"zh-chs": "与有限特权相关的代理",
8580
"zh-cht": "與有限特權相關的代理",
8581
"xloc": [
8582
- "default.handlebars->47->250"
8582
+ "default.handlebars->47->251"
8583
]
8584
},
8585
{
@@ -8605,7 +8605,7 @@
8605
"zh-chs": "代理已断开连接",
8606
"zh-cht": "代理已斷開連接",
8607
"xloc": [
8608
- "default.handlebars->47->254"
8608
+ "default.handlebars->47->255"
8609
]
8610
},
8611
{
@@ -8727,7 +8727,7 @@
8727
"zh-cht": "代理離線",
8728
"xloc": [
8729
"default-mobile.handlebars->11->605",
8730
- "default.handlebars->47->1536"
8730
+ "default.handlebars->47->1537"
8731
]
8732
},
8733
{
@@ -8754,7 +8754,7 @@
8754
"zh-cht": "代理在線",
8755
"xloc": [
8756
"default-mobile.handlebars->11->604",
8757
- "default.handlebars->47->1535"
8757
+ "default.handlebars->47->1536"
8758
]
8759
},
8760
{
@@ -8849,7 +8849,7 @@
8849
"zh-chs": "代理在特权降低的远程设备上运行。",
8850
"zh-cht": "代理在特權降低的遠程設備上運行。",
8851
"xloc": [
8852
- "default.handlebars->47->970"
8852
+ "default.handlebars->47->971"
8853
]
8854
},
8855
{
@@ -8967,9 +8967,9 @@
8967
"zh-chs": "代理",
8968
"zh-cht": "代理",
8969
"xloc": [
8970
- "default.handlebars->47->2166",
8971
- "default.handlebars->47->3055",
8972
- "default.handlebars->47->539"
8970
+ "default.handlebars->47->2171",
8971
+ "default.handlebars->47->3062",
8972
+ "default.handlebars->47->540"
8973
]
8974
},
8975
{
@@ -8995,7 +8995,7 @@
8995
"zh-chs": "阿尔巴尼亚文",
8996
"zh-cht": "阿爾巴尼亞文",
8997
"xloc": [
8998
- "default.handlebars->47->1596"
8998
+ "default.handlebars->47->1601"
8999
]
9000
},
9001
{
@@ -9024,7 +9024,7 @@
9024
"default-mobile.handlebars->11->148",
9025
"default-mobile.handlebars->11->478",
9026
"default-mobile.handlebars->11->480",
9027
- "default.handlebars->47->2875",
9027
+ "default.handlebars->47->2882",
9028
"default.handlebars->container->column_l->p1->devListToolbarSpan->1->0->devListToolbar->DevFilterSelect->1"
9029
]
9030
},
@@ -9051,7 +9051,7 @@
9051
"zh-chs": "全部可用",
9052
"zh-cht": "全部可用",
9053
"xloc": [
9054
- "default.handlebars->47->2434"
9054
+ "default.handlebars->47->2439"
9055
]
9056
},
9057
{
@@ -9077,8 +9077,8 @@
9077
"zh-chs": "所有可用的代理",
9078
"zh-cht": "所有可用的代理",
9079
"xloc": [
9080
- "default.handlebars->47->2167",
9081
- "default.handlebars->47->540"
9080
+ "default.handlebars->47->2172",
9081
+ "default.handlebars->47->541"
9082
]
9083
},
9084
{
@@ -9104,7 +9104,7 @@
9104
"zh-chs": "所有显示",
9105
"zh-cht": "所有顯示",
9106
"xloc": [
9107
- "default.handlebars->47->1348"
9107
+ "default.handlebars->47->1349"
9108
]
9109
},
9110
{
@@ -9130,7 +9130,7 @@
9130
"zh-chs": "所有事件",
9131
"zh-cht": "所有事件",
9132
"xloc": [
9133
- "default.handlebars->47->2432"
9133
+ "default.handlebars->47->2437"
9134
]
9135
},
9136
{
@@ -9156,9 +9156,9 @@
9156
"zh-chs": "全部聚焦",
9157
"zh-cht": "全部聚焦",
9158
"xloc": [
9159
- "default.handlebars->47->1280",
9160
- "default.handlebars->47->1282",
9161
- "default.handlebars->47->1283"
9159
+ "default.handlebars->47->1281",
9160
+ "default.handlebars->47->1283",
9161
+ "default.handlebars->47->1284"
9162
]
9163
},
9164
{
@@ -9210,8 +9210,8 @@
9210
"zh-chs": "允许用户管理此设备组和该组中的设备。",
9211
"zh-cht": "允許用戶管理此裝置群和該群中的裝置。",
9212
"xloc": [
9213
- "default.handlebars->47->2081",
9214
- "default.handlebars->47->2647"
9213
+ "default.handlebars->47->2086",
9214
+ "default.handlebars->47->2652"
9215
]
9216
},
9217
{
@@ -9237,7 +9237,7 @@
9237
"zh-chs": "允许用户管理此设备。",
9238
"zh-cht": "允許用戶管理此裝置。",
9239
"xloc": [
9240
- "default.handlebars->47->2082"
9240
+ "default.handlebars->47->2087"
9241
]
9242
},
9243
{
@@ -9263,7 +9263,7 @@
9263
"zh-chs": "允许",
9264
"zh-cht": "允許",
9265
"xloc": [
9266
- "default.handlebars->47->277"
9266
+ "default.handlebars->47->278"
9267
]
9268
},
9269
{
@@ -9341,8 +9341,8 @@
9341
"xloc": [
9342
"default-mobile.handlebars->11->433",
9343
"default-mobile.handlebars->11->437",
9344
- "default.handlebars->47->1303",
9345
- "default.handlebars->47->1307"
9344
+ "default.handlebars->47->1304",
9345
+ "default.handlebars->47->1308"
9346
]
9347
},
9348
{
@@ -9368,7 +9368,7 @@
9368
"zh-chs": "替代壳",
9369
"zh-cht": "替代殼",
9370
"xloc": [
9371
- "default.handlebars->47->1270"
9371
+ "default.handlebars->47->1271"
9372
]
9373
},
9374
{
@@ -9448,7 +9448,7 @@
9448
"zh-chs": "备用(F10 = ESC + 0)",
9449
"zh-cht": "備用(F10 = ESC + 0)",
9450
"xloc": [
9451
- "default.handlebars->47->1382",
9451
+ "default.handlebars->47->1383",
9452
"sharing.handlebars->11->37"
9453
]
9454
},
@@ -9528,10 +9528,10 @@
9528
"zh-chs": "一直通知",
9529
"zh-cht": "一直通知",
9530
"xloc": [
9531
- "default.handlebars->47->1942",
9532
- "default.handlebars->47->2606",
9533
- "default.handlebars->47->2711",
9534
- "default.handlebars->47->883"
9531
+ "default.handlebars->47->1947",
9532
+ "default.handlebars->47->2611",
9533
+ "default.handlebars->47->2716",
9534
+ "default.handlebars->47->884"
9535
]
9536
},
9537
{
@@ -9557,10 +9557,10 @@
9557
"zh-chs": "一直提示",
9558
"zh-cht": "一直提示",
9559
"xloc": [
9560
- "default.handlebars->47->1943",
9561
- "default.handlebars->47->2607",
9562
- "default.handlebars->47->2712",
9563
- "default.handlebars->47->884"
9560
+ "default.handlebars->47->1948",
9561
+ "default.handlebars->47->2612",
9562
+ "default.handlebars->47->2717",
9563
+ "default.handlebars->47->885"
9564
]
9565
},
9566
{
@@ -9644,7 +9644,7 @@
9644
"nl": "Er is een onbekende fout opgetreden.",
9645
"pl": "Wystąpił nieznany błąd.",
9646
"xloc": [
9647
- "default.handlebars->47->2827"
9647
+ "default.handlebars->47->2834"
9648
]
9649
},
9650
{
@@ -9828,8 +9828,8 @@
9828
"zh-chs": "杀毒软件未激活",
9829
"zh-cht": "殺毒軟件未激活",
9830
"xloc": [
9831
- "default.handlebars->47->2198",
9832
- "default.handlebars->47->2212"
9831
+ "default.handlebars->47->2203",
9832
+ "default.handlebars->47->2217"
9833
]
9834
},
9835
{
@@ -9856,7 +9856,7 @@
9856
"zh-cht": "防毒軟體",
9857
"xloc": [
9858
"default-mobile.handlebars->11->534",
9859
- "default.handlebars->47->872"
9859
+ "default.handlebars->47->873"
9860
]
9861
},
9862
{
@@ -9882,7 +9882,7 @@
9882
"zh-chs": "任何可支持的",
9883
"zh-cht": "任何可支持的",
9884
"xloc": [
9885
- "default.handlebars->47->513"
9885
+ "default.handlebars->47->514"
9886
]
9887
},
9888
{
@@ -9961,7 +9961,7 @@
9961
"zh-chs": "苹果macOS",
9962
"zh-cht": "蘋果macOS",
9963
"xloc": [
9964
- "default.handlebars->47->554"
9964
+ "default.handlebars->47->555"
9965
]
9966
},
9967
{
@@ -9987,7 +9987,7 @@
9987
"zh-chs": "仅限Apple macOS",
9988
"zh-cht": "僅限Apple macOS",
9989
"xloc": [
9990
- "default.handlebars->47->515"
9990
+ "default.handlebars->47->516"
9991
]
9992
},
9993
{
@@ -10131,7 +10131,7 @@
10131
"zh-chs": "应用程序,始终连接",
10132
"zh-cht": "應用程序,始終連接",
10133
"xloc": [
10134
- "default.handlebars->47->567"
10134
+ "default.handlebars->47->568"
10135
]
10136
},
10137
{
@@ -10157,7 +10157,7 @@
10157
"zh-chs": "应用程序,根据用户请求连接",
10158
"zh-cht": "應用程序,根據用戶請求連接",
10159
"xloc": [
10160
- "default.handlebars->47->566"
10160
+ "default.handlebars->47->567"
10161
]
10162
},
10163
{
@@ -10183,7 +10183,7 @@
10183
"zh-chs": "阿拉伯文(阿尔及利亚)",
10184
"zh-cht": "阿拉伯文(阿爾及利亞)",
10185
"xloc": [
10186
- "default.handlebars->47->1598"
10186
+ "default.handlebars->47->1603"
10187
]
10188
},
10189
{
@@ -10209,7 +10209,7 @@
10209
"zh-chs": "阿拉伯文(巴林)",
10210
"zh-cht": "阿拉伯文(巴林)",
10211
"xloc": [
10212
- "default.handlebars->47->1599"
10212
+ "default.handlebars->47->1604"
10213
]
10214
},
10215
{
@@ -10235,7 +10235,7 @@
10235
"zh-chs": "阿拉伯文(埃及)",
10236
"zh-cht": "阿拉伯文(埃及)",
10237
"xloc": [
10238
- "default.handlebars->47->1600"
10238
+ "default.handlebars->47->1605"
10239
]
10240
},
10241
{
@@ -10261,7 +10261,7 @@
10261
"zh-chs": "阿拉伯文(伊拉克)",
10262
"zh-cht": "阿拉伯文(伊拉克)",
10263
"xloc": [
10264
- "default.handlebars->47->1601"
10264
+ "default.handlebars->47->1606"
10265
]
10266
},
10267
{
@@ -10287,7 +10287,7 @@
10287
"zh-chs": "阿拉伯文(约旦)",
10288
"zh-cht": "阿拉伯文(約旦)",
10289
"xloc": [
10290
- "default.handlebars->47->1602"
10290
+ "default.handlebars->47->1607"
10291
]
10292
},
10293
{
@@ -10313,7 +10313,7 @@
10313
"zh-chs": "阿拉伯文(科威特)",
10314
"zh-cht": "阿拉伯文(科威特)",
10315
"xloc": [
10316
- "default.handlebars->47->1603"
10316
+ "default.handlebars->47->1608"
10317
]
10318
},
10319
{
@@ -10339,7 +10339,7 @@
10339
"zh-chs": "阿拉伯文(黎巴嫩)",
10340
"zh-cht": "阿拉伯文(黎巴嫩)",
10341
"xloc": [
10342
- "default.handlebars->47->1604"
10342
+ "default.handlebars->47->1609"
10343
]
10344
},
10345
{
@@ -10365,7 +10365,7 @@
10365
"zh-chs": "阿拉伯文(利比亚)",
10366
"zh-cht": "阿拉伯文(利比亞)",
10367
"xloc": [
10368
- "default.handlebars->47->1605"
10368
+ "default.handlebars->47->1610"
10369
]
10370
},
10371
{
@@ -10391,7 +10391,7 @@
10391
"zh-chs": "阿拉伯文(摩洛哥)",
10392
"zh-cht": "阿拉伯文(摩洛哥)",
10393
"xloc": [
10394
- "default.handlebars->47->1606"
10394
+ "default.handlebars->47->1611"
10395
]
10396
},
10397
{
@@ -10417,7 +10417,7 @@
10417
"zh-chs": "阿拉伯文(阿曼)",
10418
"zh-cht": "阿拉伯文(阿曼)",
10419
"xloc": [
10420
- "default.handlebars->47->1607"
10420
+ "default.handlebars->47->1612"
10421
]
10422
},
10423
{
@@ -10443,7 +10443,7 @@
10443
"zh-chs": "阿拉伯文(卡塔尔)",
10444
"zh-cht": "阿拉伯文(卡塔爾)",
10445
"xloc": [
10446
- "default.handlebars->47->1608"
10446
+ "default.handlebars->47->1613"
10447
]
10448
},
10449
{
@@ -10469,7 +10469,7 @@
10469
"zh-chs": "阿拉伯文(沙特阿拉伯)",
10470
"zh-cht": "阿拉伯文(沙特阿拉伯)",
10471
"xloc": [
10472
- "default.handlebars->47->1609"
10472
+ "default.handlebars->47->1614"
10473
]
10474
},
10475
{
@@ -10495,7 +10495,7 @@
10495
"zh-chs": "阿拉伯文(标准)",
10496
"zh-cht": "阿拉伯文(標準)",
10497
"xloc": [
10498
- "default.handlebars->47->1597"
10498
+ "default.handlebars->47->1602"
10499
]
10500
},
10501
{
@@ -10521,7 +10521,7 @@
10521
"zh-chs": "阿拉伯文(叙利亚)",
10522
"zh-cht": "阿拉伯文(敘利亞)",
10523
"xloc": [
10524
- "default.handlebars->47->1610"
10524
+ "default.handlebars->47->1615"
10525
]
10526
},
10527
{
@@ -10547,7 +10547,7 @@
10547
"zh-chs": "阿拉伯文(突尼斯)",
10548
"zh-cht": "阿拉伯文(突尼斯)",
10549
"xloc": [
10550
- "default.handlebars->47->1611"
10550
+ "default.handlebars->47->1616"
10551
]
10552
},
10553
{
@@ -10573,7 +10573,7 @@
10573
"zh-chs": "阿拉伯文(阿联酋)",
10574
"zh-cht": "阿拉伯文(阿聯酋)",
10575
"xloc": [
10576
- "default.handlebars->47->1612"
10576
+ "default.handlebars->47->1617"
10577
]
10578
},
10579
{
@@ -10599,7 +10599,7 @@
10599
"zh-chs": "阿拉伯文(也门)",
10600
"zh-cht": "阿拉伯文(也門)",
10601
"xloc": [
10602
- "default.handlebars->47->1613"
10602
+ "default.handlebars->47->1618"
10603
]
10604
},
10605
{
@@ -10625,7 +10625,7 @@
10625
"zh-chs": "阿拉贡文",
10626
"zh-cht": "阿拉貢文",
10627
"xloc": [
10628
- "default.handlebars->47->1614"
10628
+ "default.handlebars->47->1619"
10629
]
10630
},
10631
{
@@ -10654,9 +10654,9 @@
10654
"default-mobile.handlebars->11->513",
10655
"default-mobile.handlebars->11->515",
10656
"default-mobile.handlebars->11->517",
10657
- "default.handlebars->47->1450",
10658
- "default.handlebars->47->1452",
10659
- "default.handlebars->47->1454"
10657
+ "default.handlebars->47->1451",
10658
+ "default.handlebars->47->1453",
10659
+ "default.handlebars->47->1455"
10660
]
10661
},
10662
{
@@ -10682,7 +10682,7 @@
10682
"zh-chs": "您确定要连接到{0}设备吗?",
10683
"zh-cht": "你確定要連接到{0}裝置嗎?",
10684
"xloc": [
10685
- "default.handlebars->47->439"
10685
+ "default.handlebars->47->440"
10686
]
10687
},
10688
{
@@ -10709,7 +10709,7 @@
10709
"zh-cht": "你確定要刪除群{0}嗎?刪除裝置群還將刪除該群中有關裝置的所有訊息。",
10710
"xloc": [
10711
"default-mobile.handlebars->11->645",
10712
- "default.handlebars->47->2048"
10712
+ "default.handlebars->47->2053"
10713
]
10714
},
10715
{
@@ -10735,7 +10735,7 @@
10735
"zh-chs": "您确定要删除节点{0}吗?",
10736
"zh-cht": "你確定要刪除節點{0}嗎?",
10737
"xloc": [
10738
- "default.handlebars->47->1199"
10738
+ "default.handlebars->47->1200"
10739
]
10740
},
10741
{
@@ -10761,7 +10761,7 @@
10761
"zh-chs": "您确定要卸载所选代理吗?",
10762
"zh-cht": "你確定要卸載所選代理嗎?",
10763
"xloc": [
10764
- "default.handlebars->47->1188"
10764
+ "default.handlebars->47->1189"
10765
]
10766
},
10767
{
@@ -10787,7 +10787,7 @@
10787
"zh-chs": "您确定要卸载所选的{0}代理吗?",
10788
"zh-cht": "你確定要卸載所選的{0}代理嗎?",
10789
"xloc": [
10790
- "default.handlebars->47->1187"
10790
+ "default.handlebars->47->1188"
10791
]
10792
},
10793
{
@@ -10813,7 +10813,7 @@
10813
"zh-chs": "您确定要{0}插件吗:{1}",
10814
"zh-cht": "你確定要{0}外掛嗎:{1}",
10815
"xloc": [
10816
- "default.handlebars->47->3107"
10816
+ "default.handlebars->47->3114"
10817
]
10818
},
10819
{
@@ -10866,7 +10866,7 @@
10866
"zh-chs": "亚美尼亚文",
10867
"zh-cht": "亞美尼亞文",
10868
"xloc": [
10869
- "default.handlebars->47->1615"
10869
+ "default.handlebars->47->1620"
10870
]
10871
},
10872
{
@@ -11049,7 +11049,7 @@
11049
"zh-chs": "阿萨姆文",
11050
"zh-cht": "阿薩姆文",
11051
"xloc": [
11052
- "default.handlebars->47->1616"
11052
+ "default.handlebars->47->1621"
11053
]
11054
},
11055
{
@@ -11152,8 +11152,8 @@
11152
"zh-chs": "Windows 助手 (.exe)",
11153
"zh-cht": "Windows 助手 (.exe)",
11154
"xloc": [
11155
- "default.handlebars->47->593",
11156
- "default.handlebars->47->597"
11155
+ "default.handlebars->47->594",
11156
+ "default.handlebars->47->598"
11157
]
11158
},
11159
{
@@ -11205,7 +11205,7 @@
11205
"zh-chs": "阿斯图里亚斯文",
11206
"zh-cht": "阿斯圖里亞斯文",
11207
"xloc": [
11208
- "default.handlebars->47->1617"
11208
+ "default.handlebars->47->1622"
11209
]
11210
},
11211
{
@@ -11231,7 +11231,7 @@
11231
"zh-chs": "尝试激活英特尔(R)AMT ACM模式",
11232
"zh-cht": "嘗試激活英特爾(R)AMT ACM模式",
11233
"xloc": [
11234
- "default.handlebars->47->2286"
11234
+ "default.handlebars->47->2291"
11235
]
11236
},
11237
{
@@ -11283,9 +11283,9 @@
11283
"default-mobile.handlebars->11->449",
11284
"default-mobile.handlebars->11->453",
11285
"default-mobile.handlebars->11->465",
11286
- "default.handlebars->47->1357",
11287
- "default.handlebars->47->1361",
11288
- "default.handlebars->47->1373",
11286
+ "default.handlebars->47->1358",
11287
+ "default.handlebars->47->1362",
11288
+ "default.handlebars->47->1374",
11289
"ssh.handlebars->3->21",
11290
"ssh.handlebars->3->22",
11291
"ssh.handlebars->3->5",
@@ -11315,7 +11315,7 @@
11315
"zh-chs": "认证软件",
11316
"zh-cht": "認證軟體",
11317
"xloc": [
11318
- "default.handlebars->47->2715"
11318
+ "default.handlebars->47->2720"
11319
]
11320
},
11321
{
@@ -11341,9 +11341,9 @@
11341
"zh-chs": "认证设备",
11342
"zh-cht": "認證設備",
11343
"xloc": [
11344
- "default.handlebars->47->1578",
11345
- "default.handlebars->47->1580",
11346
- "default.handlebars->47->1584"
11344
+ "default.handlebars->47->1583",
11345
+ "default.handlebars->47->1585",
11346
+ "default.handlebars->47->1589"
11347
]
11348
},
11349
{
@@ -11371,8 +11371,8 @@
11371
"xloc": [
11372
"default-mobile.handlebars->11->466",
11373
"default-mobile.handlebars->11->472",
11374
- "default.handlebars->47->1375",
11375
- "default.handlebars->47->1390"
11374
+ "default.handlebars->47->1376",
11375
+ "default.handlebars->47->1391"
11376
]
11377
},
11378
{
@@ -11402,10 +11402,10 @@
11402
"default-mobile.handlebars->11->104",
11403
"default-mobile.handlebars->11->68",
11404
"default-mobile.handlebars->11->71",
11405
- "default.handlebars->47->1574",
11406
- "default.handlebars->47->1576",
11407
- "default.handlebars->47->208",
11408
- "default.handlebars->47->213"
11405
+ "default.handlebars->47->1579",
11406
+ "default.handlebars->47->1581",
11407
+ "default.handlebars->47->209",
11408
+ "default.handlebars->47->214"
11409
]
11410
},
11411
{
@@ -11431,7 +11431,7 @@
11431
"zh-chs": "认证软件激活成功。",
11432
"zh-cht": "認證軟體啟動成功。",
11433
"xloc": [
11434
- "default.handlebars->47->209"
11434
+ "default.handlebars->47->210"
11435
]
11436
},
11437
{
@@ -11457,7 +11457,7 @@
11457
"zh-chs": "认证软件已删除。",
11458
"zh-cht": "認證軟體已刪除。",
11459
"xloc": [
11460
- "default.handlebars->47->214"
11460
+ "default.handlebars->47->215"
11461
]
11462
},
11463
{
@@ -11535,8 +11535,8 @@
11535
"zh-chs": "自动删除",
11536
"zh-cht": "自動刪除",
11537
"xloc": [
11538
- "default.handlebars->47->1927",
11539
- "default.handlebars->47->2425"
11538
+ "default.handlebars->47->1932",
11539
+ "default.handlebars->47->2430"
11540
]
11541
},
11542
{
@@ -11592,7 +11592,7 @@
11592
"zh-chs": "自动下载代理程序核心转储文件:“{0}”",
11593
"zh-cht": "自動下載代理程序核心轉儲文件:“{0}”",
11594
"xloc": [
11595
- "default.handlebars->47->2367"
11595
+ "default.handlebars->47->2372"
11596
]
11597
},
11598
{
@@ -11694,7 +11694,7 @@
11694
"zh-chs": "自动移除非活动设备",
11695
"zh-cht": "自動移除非活動設備",
11696
"xloc": [
11697
- "default.handlebars->47->2076"
11697
+ "default.handlebars->47->2081"
11698
]
11699
},
11700
{
@@ -11720,7 +11720,7 @@
11720
"zh-chs": "可用內存",
11721
"zh-cht": "可用內存",
11722
"xloc": [
11723
- "default.handlebars->47->3036"
11723
+ "default.handlebars->47->3043"
11724
]
11725
},
11726
{
@@ -11746,7 +11746,7 @@
11746
"zh-chs": "阿塞拜疆文",
11747
"zh-cht": "阿塞拜疆文",
11748
"xloc": [
11749
- "default.handlebars->47->1618"
11749
+ "default.handlebars->47->1623"
11750
]
11751
},
11752
{
@@ -11775,9 +11775,9 @@
11775
"default-mobile.handlebars->11->521",
11776
"default-mobile.handlebars->11->525",
11777
"default-mobile.handlebars->11->529",
11778
- "default.handlebars->47->859",
11779
- "default.handlebars->47->863",
11780
- "default.handlebars->47->867"
11778
+ "default.handlebars->47->860",
11779
+ "default.handlebars->47->864",
11780
+ "default.handlebars->47->868"
11781
]
11782
},
11783
{
@@ -11804,7 +11804,7 @@
11804
"zh-cht": "的BIOS",
11805
"xloc": [
11806
"default-mobile.handlebars->11->583",
11807
- "default.handlebars->47->1513"
11807
+ "default.handlebars->47->1514"
11808
]
11809
},
11810
{
@@ -11919,7 +11919,7 @@
11919
"zh-cht": "退格",
11920
"xloc": [
11921
"default-mobile.handlebars->11->416",
11922
- "default.handlebars->47->1286"
11922
+ "default.handlebars->47->1287"
11923
]
11924
},
11925
{
@@ -11945,7 +11945,7 @@
11945
"zh-chs": "后台运行与交互式运行",
11946
"zh-cht": "背景與互動",
11947
"xloc": [
11948
- "default.handlebars->47->562"
11948
+ "default.handlebars->47->563"
11949
]
11950
},
11951
{
@@ -11971,10 +11971,10 @@
11971
"zh-chs": "后台运行与交互式运行",
11972
"zh-cht": "背景與互動",
11973
"xloc": [
11974
- "default.handlebars->47->2173",
11975
- "default.handlebars->47->2180",
11976
- "default.handlebars->47->526",
11977
- "default.handlebars->47->546"
11974
+ "default.handlebars->47->2178",
11975
+ "default.handlebars->47->2185",
11976
+ "default.handlebars->47->527",
11977
+ "default.handlebars->47->547"
11978
]
11979
},
11980
{
@@ -12000,11 +12000,11 @@
12000
"zh-chs": "仅后台运行",
12001
"zh-cht": "僅背景",
12002
"xloc": [
12003
- "default.handlebars->47->2174",
12004
- "default.handlebars->47->2181",
12005
- "default.handlebars->47->527",
12006
- "default.handlebars->47->547",
12007
- "default.handlebars->47->563"
12003
+ "default.handlebars->47->2179",
12004
+ "default.handlebars->47->2186",
12005
+ "default.handlebars->47->528",
12006
+ "default.handlebars->47->548",
12007
+ "default.handlebars->47->564"
12008
]
12009
},
12010
{
@@ -12057,8 +12057,8 @@
12057
"zh-chs": "备用码",
12058
"zh-cht": "備用碼",
12059
"xloc": [
12060
- "default.handlebars->47->2718",
12061
- "default.handlebars->47->2923"
12060
+ "default.handlebars->47->2723",
12061
+ "default.handlebars->47->2930"
12062
]
12063
},
12064
{
@@ -12085,7 +12085,7 @@
12085
"zh-cht": "備用代碼已鎖定",
12086
"xloc": [
12087
"default-mobile.handlebars->11->61",
12088
- "default.handlebars->47->199"
12088
+ "default.handlebars->47->200"
12089
]
12090
},
12091
{
@@ -12137,7 +12137,7 @@
12137
"zh-chs": "错误的签名",
12138
"zh-cht": "錯誤的簽名",
12139
"xloc": [
12140
- "default.handlebars->47->3018"
12140
+ "default.handlebars->47->3025"
12141
]
12142
},
12143
{
@@ -12163,7 +12163,7 @@
12163
"zh-chs": "错误的网络证书",
12164
"zh-cht": "錯誤的網絡憑證",
12165
"xloc": [
12166
- "default.handlebars->47->3017"
12166
+ "default.handlebars->47->3024"
12167
]
12168
},
12169
{
@@ -12189,7 +12189,7 @@
12189
"zh-chs": "巴斯克",
12190
"zh-cht": "巴斯克",
12191
"xloc": [
12192
- "default.handlebars->47->1619"
12192
+ "default.handlebars->47->1624"
12193
]
12194
},
12195
{
@@ -12215,7 +12215,7 @@
12215
"zh-chs": "批处理文件上传",
12216
"zh-cht": "批處理文件上傳",
12217
"xloc": [
12218
- "default.handlebars->47->704"
12218
+ "default.handlebars->47->705"
12219
]
12220
},
12221
{
@@ -12267,7 +12267,7 @@
12267
"zh-chs": "将{0}个文件批量上传到文件夹{1}",
12268
"zh-cht": "將{0}個文件批量上傳到文件夾{1}",
12269
"xloc": [
12270
- "default.handlebars->47->2366"
12270
+ "default.handlebars->47->2371"
12271
]
12272
},
12273
{
@@ -12293,7 +12293,7 @@
12293
"zh-chs": "白俄罗斯文",
12294
"zh-cht": "白俄羅斯文",
12295
"xloc": [
12296
- "default.handlebars->47->1621"
12296
+ "default.handlebars->47->1626"
12297
]
12298
},
12299
{
@@ -12319,7 +12319,7 @@
12319
"zh-chs": "孟加拉",
12320
"zh-cht": "孟加拉",
12321
"xloc": [
12322
- "default.handlebars->47->1622"
12322
+ "default.handlebars->47->1627"
12323
]
12324
},
12325
{
@@ -12398,7 +12398,7 @@
12398
"zh-cht": "引導加載程序",
12399
"xloc": [
12400
"default-mobile.handlebars->11->547",
12401
- "default.handlebars->47->1467"
12401
+ "default.handlebars->47->1468"
12402
]
12403
},
12404
{
@@ -12424,7 +12424,7 @@
12424
"zh-chs": "波斯尼亚文",
12425
"zh-cht": "波斯尼亞文",
12426
"xloc": [
12427
- "default.handlebars->47->1623"
12427
+ "default.handlebars->47->1628"
12428
]
12429
},
12430
{
@@ -12450,7 +12450,7 @@
12450
"zh-chs": "布列塔尼",
12451
"zh-cht": "布列塔尼",
12452
"xloc": [
12453
- "default.handlebars->47->1624"
12453
+ "default.handlebars->47->1629"
12454
]
12455
},
12456
{
@@ -12476,7 +12476,7 @@
12476
"zh-chs": "广播",
12477
"zh-cht": "廣播",
12478
"xloc": [
12479
- "default.handlebars->47->2613",
12479
+ "default.handlebars->47->2618",
12480
"default.handlebars->container->column_l->p4->3->1->0->3->1"
12481
]
12482
},
@@ -12503,7 +12503,7 @@
12503
"zh-chs": "广播消息",
12504
"zh-cht": "廣播消息",
12505
"xloc": [
12506
- "default.handlebars->47->2529"
12506
+ "default.handlebars->47->2534"
12507
]
12508
},
12509
{
@@ -12529,7 +12529,7 @@
12529
"zh-chs": "向所有连接的用户广播消息。",
12530
"zh-cht": "向所有連接的用戶廣播消息。",
12531
"xloc": [
12532
- "default.handlebars->47->2524"
12532
+ "default.handlebars->47->2529"
12533
]
12534
},
12535
{
@@ -12555,7 +12555,7 @@
12555
"zh-chs": "浏览器",
12556
"zh-cht": "瀏覽器",
12557
"xloc": [
12558
- "default.handlebars->47->2897"
12558
+ "default.handlebars->47->2904"
12559
]
12560
},
12561
{
@@ -12634,7 +12634,7 @@
12634
"zh-chs": "保加利亚文",
12635
"zh-cht": "保加利亞文",
12636
"xloc": [
12637
- "default.handlebars->47->1620"
12637
+ "default.handlebars->47->1625"
12638
]
12639
},
12640
{
@@ -12660,7 +12660,7 @@
12660
"zh-chs": "缅甸文",
12661
"zh-cht": "緬甸文",
12662
"xloc": [
12663
- "default.handlebars->47->1625"
12663
+ "default.handlebars->47->1630"
12664
]
12665
},
12666
{
@@ -12686,7 +12686,7 @@
12686
"zh-chs": "默认情况下,不活动的设备将在 1 天后移除。",
12687
"zh-cht": "默認情況下,非活動設備將在 1 天后移除。",
12688
"xloc": [
12689
- "default.handlebars->47->2078"
12689
+ "default.handlebars->47->2083"
12690
]
12691
},
12692
{
@@ -12712,7 +12712,7 @@
12712
"zh-chs": "默认情况下,非活动设备将在 {0} 天后移除。",
12713
"zh-cht": "默認情況下,不活動的設備將在 {0} 天后被移除。",
12714
"xloc": [
12715
- "default.handlebars->47->2079"
12715
+ "default.handlebars->47->2084"
12716
]
12717
},
12718
{
@@ -12738,7 +12738,7 @@
12738
"zh-chs": "字节输入",
12739
"zh-cht": "字節輸入",
12740
"xloc": [
12741
- "default.handlebars->47->2893"
12741
+ "default.handlebars->47->2900"
12742
]
12743
},
12744
{
@@ -12764,7 +12764,7 @@
12764
"zh-chs": "字节输出",
12765
"zh-cht": "字節輸出",
12766
"xloc": [
12767
- "default.handlebars->47->2894"
12767
+ "default.handlebars->47->2901"
12768
]
12769
},
12770
{
@@ -12828,7 +12828,7 @@
12828
"zh-cht": "CCM",
12829
"xloc": [
12830
"default-mobile.handlebars->11->296",
12831
- "default.handlebars->47->835"
12831
+ "default.handlebars->47->836"
12832
]
12833
},
12834
{
@@ -12854,7 +12854,7 @@
12854
"zh-chs": "CCM模式",
12855
"zh-cht": "CCM模式",
12856
"xloc": [
12857
- "default.handlebars->47->2031"
12857
+ "default.handlebars->47->2036"
12858
]
12859
},
12860
{
@@ -12881,9 +12881,9 @@
12881
"zh-cht": "CIRA",
12882
"xloc": [
12883
"default-mobile.handlebars->11->257",
12884
- "default.handlebars->47->3043",
12885
- "default.handlebars->47->387",
12886
- "default.handlebars->47->648"
12884
+ "default.handlebars->47->3050",
12885
+ "default.handlebars->47->388",
12886
+ "default.handlebars->47->649"
12887
]
12888
},
12889
{
@@ -12909,7 +12909,7 @@
12909
"zh-chs": "CIRA服务器",
12910
"zh-cht": "CIRA伺服器",
12911
"xloc": [
12912
- "default.handlebars->47->3091"
12912
+ "default.handlebars->47->3098"
12913
]
12914
},
12915
{
@@ -12935,7 +12935,7 @@
12935
"zh-chs": "CIRA服务器命令",
12936
"zh-cht": "CIRA伺服器指令",
12937
"xloc": [
12938
- "default.handlebars->47->3092"
12938
+ "default.handlebars->47->3099"
12939
]
12940
},
12941
{
@@ -12987,7 +12987,7 @@
12987
"zh-chs": "CIRA设置",
12988
"zh-cht": "CIRA設置",
12989
"xloc": [
12990
- "default.handlebars->47->2039"
12990
+ "default.handlebars->47->2044"
12991
]
12992
},
12993
{
@@ -13014,8 +13014,8 @@
13014
"zh-cht": "CPU",
13015
"xloc": [
13016
"default-mobile.handlebars->11->589",
13017
- "default.handlebars->47->1519",
13018
- "default.handlebars->47->3067",
13017
+ "default.handlebars->47->1520",
13018
+ "default.handlebars->47->3074",
13019
"default.handlebars->container->column_l->p40->3->1->p40type->5"
13020
]
13021
},
@@ -13042,7 +13042,7 @@
13042
"zh-chs": "CPU负载",
13043
"zh-cht": "CPU負載",
13044
"xloc": [
13045
- "default.handlebars->47->3032"
13045
+ "default.handlebars->47->3039"
13046
]
13047
},
13048
{
@@ -13068,7 +13068,7 @@
13068
"zh-chs": "最近15分钟的CPU负载",
13069
"zh-cht": "最近15分鐘的CPU負載",
13070
"xloc": [
13071
- "default.handlebars->47->3035"
13071
+ "default.handlebars->47->3042"
13072
]
13073
},
13074
{
@@ -13094,7 +13094,7 @@
13094
"zh-chs": "最近5分钟的CPU负载",
13095
"zh-cht": "最近5分鐘的CPU負載",
13096
"xloc": [
13097
- "default.handlebars->47->3034"
13097
+ "default.handlebars->47->3041"
13098
]
13099
},
13100
{
@@ -13120,7 +13120,7 @@
13120
"zh-chs": "最近一分钟的CPU负载",
13121
"zh-cht": "最近一分鐘的CPU負載",
13122
"xloc": [
13123
- "default.handlebars->47->3033"
13123
+ "default.handlebars->47->3040"
13124
]
13125
},
13126
{
@@ -13146,8 +13146,8 @@
13146
"zh-chs": "CR+LF",
13147
"zh-cht": "CR+LF",
13148
"xloc": [
13149
- "default.handlebars->47->1353",
13150
- "default.handlebars->47->1384",
13149
+ "default.handlebars->47->1354",
13150
+ "default.handlebars->47->1385",
13151
"default.handlebars->container->column_l->p12->termTable->1->1->4->1->1->terminalSettingsButtons",
13152
"sharing.handlebars->11->25",
13153
"sharing.handlebars->11->39",
@@ -13177,7 +13177,7 @@
13177
"zh-chs": "CSV",
13178
"zh-cht": "CSV",
13179
"xloc": [
13180
- "default.handlebars->47->2442"
13180
+ "default.handlebars->47->2447"
13181
]
13182
},
13183
{
@@ -13203,9 +13203,9 @@
13203
"zh-chs": "CSV格式",
13204
"zh-cht": "CSV格式",
13205
"xloc": [
13206
- "default.handlebars->47->2446",
13207
- "default.handlebars->47->2516",
13208
- "default.handlebars->47->713"
13206
+ "default.handlebars->47->2451",
13207
+ "default.handlebars->47->2521",
13208
+ "default.handlebars->47->714"
13209
]
13210
},
13211
{
@@ -13254,7 +13254,7 @@
13254
"zh-chs": "呼叫错误",
13255
"zh-cht": "呼叫錯誤",
13256
"xloc": [
13257
- "default.handlebars->47->3108"
13257
+ "default.handlebars->47->3115"
13258
]
13259
},
13260
{
@@ -13309,9 +13309,9 @@
13309
"agent-translations.json",
13310
"default-mobile.handlebars->11->113",
13311
"default-mobile.handlebars->dialog->idx_dlgButtonBar",
13312
- "default.handlebars->47->1897",
13313
- "default.handlebars->47->3097",
13314
- "default.handlebars->47->499",
13312
+ "default.handlebars->47->1902",
13313
+ "default.handlebars->47->3104",
13314
+ "default.handlebars->47->500",
13315
"default.handlebars->container->dialog->idx_dlgButtonBar",
13316
"login-mobile.handlebars->dialog->idx_dlgButtonBar",
13317
"login.handlebars->dialog->idx_dlgButtonBar",
@@ -13420,9 +13420,9 @@
13420
"default-mobile.handlebars->11->594",
13421
"default-mobile.handlebars->11->599",
13422
"default-mobile.handlebars->11->601",
13423
- "default.handlebars->47->1524",
13424
- "default.handlebars->47->1529",
13425
- "default.handlebars->47->1531"
13423
+ "default.handlebars->47->1525",
13424
+ "default.handlebars->47->1530",
13425
+ "default.handlebars->47->1532"
13426
]
13427
},
13428
{
@@ -13449,7 +13449,7 @@
13449
"zh-cht": "容量/速度",
13450
"xloc": [
13451
"default-mobile.handlebars->11->592",
13452
- "default.handlebars->47->1522"
13452
+ "default.handlebars->47->1523"
13453
]
13454
},
13455
{
@@ -13475,7 +13475,7 @@
13475
"zh-chs": "加泰罗尼亚文",
13476
"zh-cht": "加泰羅尼亞文",
13477
"xloc": [
13478
- "default.handlebars->47->1626"
13478
+ "default.handlebars->47->1631"
13479
]
13480
},
13481
{
@@ -13501,7 +13501,7 @@
13501
"zh-chs": "在这里为中心显示地图",
13502
"zh-cht": "在這裡為中心顯示地圖",
13503
"xloc": [
13504
- "default.handlebars->47->788"
13504
+ "default.handlebars->47->789"
13505
]
13506
},
13507
{
@@ -13551,8 +13551,8 @@
13551
"zh-cht": "證書將在 {0} 天后到期",
13552
"xloc": [
13553
"default-mobile.handlebars->11->59",
13554
- "default.handlebars->47->111",
13555
- "default.handlebars->47->112"
13554
+ "default.handlebars->47->112",
13555
+ "default.handlebars->47->113"
13556
]
13557
},
13558
{
@@ -13578,7 +13578,7 @@
13578
"zh-chs": "查莫罗",
13579
"zh-cht": "查莫羅",
13580
"xloc": [
13581
- "default.handlebars->47->1627"
13581
+ "default.handlebars->47->1632"
13582
]
13583
},
13584
{
@@ -13632,7 +13632,7 @@
13632
"zh-chs": "更改{0}的邮箱",
13633
"zh-cht": "更改{0}的電郵",
13634
"xloc": [
13635
- "default.handlebars->47->2773"
13635
+ "default.handlebars->47->2780"
13636
]
13637
},
13638
{
@@ -13658,9 +13658,9 @@
13658
"zh-chs": "更改组",
13659
"zh-cht": "更改群",
13660
"xloc": [
13661
- "default.handlebars->47->1196",
13661
"default.handlebars->47->1197",
13663
- "default.handlebars->47->942"
13662
+ "default.handlebars->47->1198",
13663
+ "default.handlebars->47->943"
13664
]
13665
},
13666
{
@@ -13687,8 +13687,8 @@
13687
"zh-cht": "更改密碼",
13688
"xloc": [
13689
"default-mobile.handlebars->11->121",
13690
- "default.handlebars->47->1843",
13691
- "default.handlebars->47->2739"
13690
+ "default.handlebars->47->1848",
13691
+ "default.handlebars->47->2744"
13692
]
13693
},
13694
{
@@ -13714,7 +13714,7 @@
13714
"zh-chs": "更改{0}的密码",
13715
"zh-cht": "更改{0}的密碼",
13716
"xloc": [
13717
- "default.handlebars->47->2782"
13717
+ "default.handlebars->47->2789"
13718
]
13719
},
13720
{
@@ -13740,7 +13740,7 @@
13740
"zh-chs": "更改{0}的真实名称",
13741
"zh-cht": "更改{0}的真實名稱",
13742
"xloc": [
13743
- "default.handlebars->47->2768"
13743
+ "default.handlebars->47->2775"
13744
]
13745
},
13746
{
@@ -13895,7 +13895,7 @@
13895
"zh-chs": "更改该用户的密码",
13896
"zh-cht": "更改該用戶的密碼",
13897
"xloc": [
13898
- "default.handlebars->47->2738"
13898
+ "default.handlebars->47->2743"
13899
]
13900
},
13901
{
@@ -13947,7 +13947,7 @@
13947
"zh-chs": "更改您的邮件地址。",
13948
"zh-cht": "在此處更改你的帳戶電郵地址。",
13949
"xloc": [
13950
- "default.handlebars->47->1830"
13950
+ "default.handlebars->47->1835"
13951
]
13952
},
13953
{
@@ -13973,7 +13973,7 @@
13973
"zh-chs": "在下面的框中两次输入旧密码和新密码,以更改帐户密码。",
13974
"zh-cht": "在下面的框中兩次輸入舊密碼和新密碼,以更改帳戶密碼。",
13975
"xloc": [
13976
- "default.handlebars->47->1836"
13976
+ "default.handlebars->47->1841"
13977
]
13978
},
13979
{
@@ -13999,7 +13999,7 @@
13999
"zh-chs": "更改帐户凭据",
14000
"zh-cht": "帳戶憑證已更改",
14001
"xloc": [
14002
- "default.handlebars->47->2338"
14002
+ "default.handlebars->47->2343"
14003
]
14004
},
14005
{
@@ -14025,7 +14025,7 @@
14025
"zh-chs": "将帐户显示名称更改为 {0}。",
14026
"zh-cht": "將帳戶顯示名稱更改為 {0}。",
14027
"xloc": [
14028
- "default.handlebars->47->2390"
14028
+ "default.handlebars->47->2395"
14029
]
14030
},
14031
{
@@ -14051,8 +14051,8 @@
14051
"zh-chs": "{1}组中的设备{0}已更改:{2}",
14052
"zh-cht": "{1}組中的設備{0}已更改:{2}",
14053
"xloc": [
14054
- "default.handlebars->47->2322",
14055
- "default.handlebars->47->2403"
14054
+ "default.handlebars->47->2327",
14055
+ "default.handlebars->47->2408"
14056
]
14057
},
14058
{
@@ -14078,7 +14078,7 @@
14078
"zh-chs": "语言从{1}更改为{2}",
14079
"zh-cht": "語言從{1}更改為{2}",
14080
"xloc": [
14081
- "default.handlebars->47->2266"
14081
+ "default.handlebars->47->2271"
14082
]
14083
},
14084
{
@@ -14104,8 +14104,8 @@
14104
"zh-chs": "已更改{0}的用户设备权限",
14105
"zh-cht": "已更改{0}的用戶設備權限",
14106
"xloc": [
14107
- "default.handlebars->47->2324",
14108
- "default.handlebars->47->2345"
14107
+ "default.handlebars->47->2329",
14108
+ "default.handlebars->47->2350"
14109
]
14110
},
14111
{
@@ -14154,7 +14154,7 @@
14154
"zh-chs": "更改语言将需要刷新页面。",
14155
"zh-cht": "更改語言將需要刷新頁面。",
14156
"xloc": [
14157
- "default.handlebars->47->1794"
14157
+ "default.handlebars->47->1799"
14158
]
14159
},
14160
{
@@ -14180,12 +14180,12 @@
14180
"zh-chs": "聊天",
14181
"zh-cht": "聊天",
14182
"xloc": [
14183
- "default.handlebars->47->1046",
14184
- "default.handlebars->47->1068",
14185
- "default.handlebars->47->2463",
14186
- "default.handlebars->47->2734",
14187
- "default.handlebars->47->2735",
14188
- "default.handlebars->47->931"
14183
+ "default.handlebars->47->1047",
14184
+ "default.handlebars->47->1069",
14185
+ "default.handlebars->47->2468",
14186
+ "default.handlebars->47->2739",
14187
+ "default.handlebars->47->2740",
14188
+ "default.handlebars->47->932"
14189
]
14190
},
14191
{
@@ -14213,8 +14213,8 @@
14213
"xloc": [
14214
"default-mobile.handlebars->11->674",
14215
"default-mobile.handlebars->11->694",
14216
- "default.handlebars->47->2110",
14217
- "default.handlebars->47->2147"
14216
+ "default.handlebars->47->2115",
14217
+ "default.handlebars->47->2152"
14218
]
14219
},
14220
{
@@ -14241,7 +14241,7 @@
14241
"zh-cht": "聊天請求,點擊這裡接受。",
14242
"xloc": [
14243
"default-mobile.handlebars->11->726",
14244
- "default.handlebars->47->2982"
14244
+ "default.handlebars->47->2989"
14245
]
14246
},
14247
{
@@ -14293,7 +14293,7 @@
14293
"zh-chs": "车臣",
14294
"zh-cht": "車臣",
14295
"xloc": [
14296
- "default.handlebars->47->1628"
14296
+ "default.handlebars->47->1633"
14297
]
14298
},
14299
{
@@ -14319,7 +14319,7 @@
14319
"zh-chs": "检查并单击确定以清除错误日志。",
14320
"zh-cht": "檢查並單擊確定以清除錯誤日誌。",
14321
"xloc": [
14322
- "default.handlebars->47->196"
14322
+ "default.handlebars->47->197"
14323
]
14324
},
14325
{
@@ -14345,7 +14345,7 @@
14345
"zh-chs": "检查并单击确定以开始服务器自我更新。",
14346
"zh-cht": "檢查並單擊確定以開始伺服器自我更新。",
14347
"xloc": [
14348
- "default.handlebars->47->191"
14348
+ "default.handlebars->47->192"
14349
]
14350
},
14351
{
@@ -14378,7 +14378,7 @@
14378
"en": "Check your messaging application and enter the verification code.",
14379
"nl": "Controleer uw berichten applicatie en voer de verificatiecode in.",
14380
"xloc": [
14381
- "default.handlebars->47->245"
14381
+ "default.handlebars->47->246"
14382
]
14383
},
14384
{
@@ -14404,7 +14404,7 @@
14404
"zh-chs": "检查您的手机并输入验证码。",
14405
"zh-cht": "檢查你的電話並輸入驗證碼。",
14406
"xloc": [
14407
- "default.handlebars->47->242"
14407
+ "default.handlebars->47->243"
14408
]
14409
},
14410
{
@@ -14430,8 +14430,8 @@
14430
"zh-chs": "检查...",
14431
"zh-cht": "檢查...",
14432
"xloc": [
14433
- "default.handlebars->47->1594",
14434
- "default.handlebars->47->3102"
14433
+ "default.handlebars->47->1599",
14434
+ "default.handlebars->47->3109"
14435
]
14436
},
14437
{
@@ -14457,7 +14457,7 @@
14457
"zh-chs": "中文",
14458
"zh-cht": "中文",
14459
"xloc": [
14460
- "default.handlebars->47->1629"
14460
+ "default.handlebars->47->1634"
14461
]
14462
},
14463
{
@@ -14483,7 +14483,7 @@
14483
"zh-chs": "中文(香港)",
14484
"zh-cht": "中文(香港)",
14485
"xloc": [
14486
- "default.handlebars->47->1630"
14486
+ "default.handlebars->47->1635"
14487
]
14488
},
14489
{
@@ -14509,7 +14509,7 @@
14509
"zh-chs": "中文(中国)",
14510
"zh-cht": "中文(中國)",
14511
"xloc": [
14512
- "default.handlebars->47->1631"
14512
+ "default.handlebars->47->1636"
14513
]
14514
},
14515
{
@@ -14535,7 +14535,7 @@
14535
"zh-chs": "简体中文",
14536
"zh-cht": "簡體中文",
14537
"xloc": [
14538
- "default.handlebars->47->1791"
14538
+ "default.handlebars->47->1796"
14539
]
14540
},
14541
{
@@ -14561,7 +14561,7 @@
14561
"zh-chs": "中文(新加坡)",
14562
"zh-cht": "中文(新加坡)",
14563
"xloc": [
14564
- "default.handlebars->47->1632"
14564
+ "default.handlebars->47->1637"
14565
]
14566
},
14567
{
@@ -14587,7 +14587,7 @@
14587
"zh-chs": "中文(台湾)",
14588
"zh-cht": "中文(台灣)",
14589
"xloc": [
14590
- "default.handlebars->47->1633"
14590
+ "default.handlebars->47->1638"
14591
]
14592
},
14593
{
@@ -14613,7 +14613,7 @@
14613
"zh-chs": "繁体中文",
14614
"zh-cht": "繁體中文",
14615
"xloc": [
14616
- "default.handlebars->47->1792"
14616
+ "default.handlebars->47->1797"
14617
]
14618
},
14619
{
@@ -14666,7 +14666,7 @@
14666
"zh-chs": "楚瓦什",
14667
"zh-cht": "楚瓦什",
14668
"xloc": [
14669
- "default.handlebars->47->1634"
14669
+ "default.handlebars->47->1639"
14670
]
14671
},
14672
{
@@ -14722,11 +14722,11 @@
14722
"default-mobile.handlebars->11->503",
14723
"default-mobile.handlebars->11->78",
14724
"default-mobile.handlebars->container->page_content->column_l->p10->p10console->consoleTable->1->4->1->1->1->0->5",
14725
- "default.handlebars->47->1424",
14726
- "default.handlebars->47->1426",
14727
- "default.handlebars->47->1428",
14728
- "default.handlebars->47->1430",
14729
- "default.handlebars->47->2260",
14725
+ "default.handlebars->47->1425",
14726
+ "default.handlebars->47->1427",
14727
+ "default.handlebars->47->1429",
14728
+ "default.handlebars->47->1431",
14729
+ "default.handlebars->47->2265",
14730
"default.handlebars->container->column_l->p15->consoleTable->1->6->1->1->1->0->7",
14731
"default.handlebars->container->column_l->p41->3->1",
14732
"messenger.handlebars->xbottom->1->1->0->5",
@@ -14760,7 +14760,7 @@
14760
"zh-cht": "清除 RDP 憑據?",
14761
"xloc": [
14762
"default-mobile.handlebars->11->401",
14763
- "default.handlebars->47->1240"
14763
+ "default.handlebars->47->1241"
14764
]
14765
},
14766
{
@@ -14787,7 +14787,7 @@
14787
"zh-cht": "清除 SSH 憑據?",
14788
"xloc": [
14789
"default-mobile.handlebars->11->399",
14790
- "default.handlebars->47->1238"
14790
+ "default.handlebars->47->1239"
14791
]
14792
},
14793
{
@@ -14813,7 +14813,7 @@
14813
"zh-chs": "清除保安编码",
14814
"zh-cht": "清除保安編碼",
14815
"xloc": [
14816
- "default.handlebars->47->222"
14816
+ "default.handlebars->47->223"
14817
]
14818
},
14819
{
@@ -14839,8 +14839,8 @@
14839
"zh-chs": "清除代理核心",
14840
"zh-cht": "清除代理核心",
14841
"xloc": [
14842
- "default.handlebars->47->672",
14843
- "default.handlebars->47->708"
14842
+ "default.handlebars->47->673",
14843
+ "default.handlebars->47->709"
14844
]
14845
},
14846
{
@@ -14866,7 +14866,7 @@
14866
"zh-chs": "清除选定设备上的代理核心?",
14867
"zh-cht": "清除所選設備上的代理核心?",
14868
"xloc": [
14869
- "default.handlebars->47->707"
14869
+ "default.handlebars->47->708"
14870
]
14871
},
14872
{
@@ -14893,7 +14893,7 @@
14893
"zh-cht": "全部清除",
14894
"xloc": [
14895
"default-mobile.handlebars->11->709",
14896
- "default.handlebars->47->2965"
14896
+ "default.handlebars->47->2972"
14897
]
14898
},
14899
{
@@ -14920,7 +14920,7 @@
14920
"zh-cht": "清除搜索過濾器",
14921
"xloc": [
14922
"default-mobile.handlebars->11->193",
14923
- "default.handlebars->47->347"
14923
+ "default.handlebars->47->348"
14924
]
14925
},
14926
{
@@ -14947,7 +14947,7 @@
14947
"zh-cht": "清除核心",
14948
"xloc": [
14949
"default-mobile.handlebars->11->615",
14950
- "default.handlebars->47->1546"
14950
+ "default.handlebars->47->1547"
14951
]
14952
},
14953
{
@@ -14973,7 +14973,7 @@
14973
"zh-chs": "从应用程序中清除机密,然后重试。您只有几分钟的时间来输入正确的代码。",
14974
"zh-cht": "從應用程序中清除秘密,然後重試。你只有幾分鐘的時間來輸入正確的代碼。",
14975
"xloc": [
14976
- "default.handlebars->47->212"
14976
+ "default.handlebars->47->213"
14977
]
14978
},
14979
{
@@ -15000,7 +15000,7 @@
15000
"zh-cht": "清除此通知",
15001
"xloc": [
15002
"default-mobile.handlebars->11->708",
15003
- "default.handlebars->47->2964"
15003
+ "default.handlebars->47->2971"
15004
]
15005
},
15006
{
@@ -15104,8 +15104,8 @@
15104
"zh-chs": "单击此处编辑设备组名称",
15105
"zh-cht": "單擊此處編輯裝置群名稱",
15106
"xloc": [
15107
- "default.handlebars->47->1908",
15108
- "default.handlebars->47->2203"
15107
+ "default.handlebars->47->1913",
15108
+ "default.handlebars->47->2208"
15109
]
15110
},
15111
{
@@ -15131,7 +15131,7 @@
15131
"zh-chs": "单击此处编辑服务器端设备名称",
15132
"zh-cht": "單擊此處編輯伺服器端裝置名稱",
15133
"xloc": [
15134
- "default.handlebars->47->804"
15134
+ "default.handlebars->47->805"
15135
]
15136
},
15137
{
@@ -15157,7 +15157,7 @@
15157
"zh-chs": "单击此处编辑用户组名称",
15158
"zh-cht": "單擊此處編輯用戶群名稱",
15159
"xloc": [
15160
- "default.handlebars->47->2586"
15160
+ "default.handlebars->47->2591"
15161
]
15162
},
15163
{
@@ -15287,7 +15287,7 @@
15287
"zh-cht": "單擊確定將驗證電郵發送到:",
15288
"xloc": [
15289
"default-mobile.handlebars->11->106",
15290
- "default.handlebars->47->1827"
15290
+ "default.handlebars->47->1832"
15291
]
15292
},
15293
{
@@ -15390,7 +15390,7 @@
15390
"zh-cht": "客戶端控制模式(CCM)",
15391
"xloc": [
15392
"default-mobile.handlebars->11->569",
15393
- "default.handlebars->47->1499"
15393
+ "default.handlebars->47->1500"
15394
]
15395
},
15396
{
@@ -15416,7 +15416,7 @@
15416
"zh-chs": "客户编号",
15417
"zh-cht": "客戶編號",
15418
"xloc": [
15419
- "default.handlebars->47->1890"
15419
+ "default.handlebars->47->1895"
15420
]
15421
},
15422
{
@@ -15442,7 +15442,7 @@
15442
"zh-chs": "客户端启动的远程访问",
15443
"zh-cht": "客戶端啟動的遠程訪問",
15444
"xloc": [
15445
- "default.handlebars->47->2038"
15445
+ "default.handlebars->47->2043"
15446
]
15447
},
15448
{
@@ -15468,7 +15468,7 @@
15468
"zh-chs": "客户机密",
15469
"zh-cht": "客戶機密",
15470
"xloc": [
15471
- "default.handlebars->47->1891"
15471
+ "default.handlebars->47->1896"
15472
]
15473
},
15474
{
@@ -15523,11 +15523,11 @@
15523
"xloc": [
15524
"agent-translations.json",
15525
"default-mobile.handlebars->11->76",
15526
- "default.handlebars->47->1341",
15527
- "default.handlebars->47->1400",
15528
- "default.handlebars->47->220",
15529
- "default.handlebars->47->228",
15530
- "default.handlebars->47->3096",
15526
+ "default.handlebars->47->1342",
15527
+ "default.handlebars->47->1401",
15528
+ "default.handlebars->47->221",
15529
+ "default.handlebars->47->229",
15530
+ "default.handlebars->47->3103",
15531
"sharing.handlebars->11->52"
15532
]
15533
},
@@ -15554,7 +15554,7 @@
15554
"zh-chs": "已关闭桌面多路复用会话 \\\"{0}\\\",{1} 秒",
15555
"zh-cht": "已關閉桌面多路復用會話 \\\"{0}\\\",{1} 秒",
15556
"xloc": [
15557
- "default.handlebars->47->2410"
15557
+ "default.handlebars->47->2415"
15558
]
15559
},
15560
{
@@ -15580,7 +15580,7 @@
15580
"zh-chs": "封闭式桌面多路复用会话,{0}秒",
15581
"zh-cht": "封閉式桌面多路復用會話,{0}秒",
15582
"xloc": [
15583
- "default.handlebars->47->2271"
15583
+ "default.handlebars->47->2276"
15584
]
15585
},
15586
{
@@ -15606,7 +15606,7 @@
15606
"zh-chs": "码",
15607
"zh-cht": "碼",
15608
"xloc": [
15609
- "default.handlebars->47->311"
15609
+ "default.handlebars->47->312"
15610
]
15611
},
15612
{
@@ -15710,7 +15710,7 @@
15710
"zh-chs": "命令",
15711
"zh-cht": "命令",
15712
"xloc": [
15713
- "default.handlebars->47->612"
15713
+ "default.handlebars->47->613"
15714
]
15715
},
15716
{
@@ -15736,7 +15736,7 @@
15736
"zh-chs": "命令行",
15737
"zh-cht": "命令行",
15738
"xloc": [
15739
- "default.handlebars->47->118"
15739
+ "default.handlebars->47->119"
15740
]
15741
},
15742
{
@@ -15763,9 +15763,9 @@
15763
"zh-cht": "指令",
15764
"xloc": [
15765
"default-mobile.handlebars->11->696",
15766
- "default.handlebars->47->1048",
15767
- "default.handlebars->47->1070",
15768
- "default.handlebars->47->2149"
15766
+ "default.handlebars->47->1049",
15767
+ "default.handlebars->47->1071",
15768
+ "default.handlebars->47->2154"
15769
]
15770
},
15771
{
@@ -15774,7 +15774,7 @@
15774
"nl": "Opdrachten uit bestand",
15775
"pl": "Komendy z pliku",
15776
"xloc": [
15777
- "default.handlebars->47->733"
15777
+ "default.handlebars->47->734"
15778
]
15779
},
15780
{
@@ -15783,7 +15783,7 @@
15783
"nl": "Opdrachten uit een bestand op de server",
15784
"pl": "Komendy z pliku na serwerze",
15785
"xloc": [
15786
- "default.handlebars->47->734"
15786
+ "default.handlebars->47->735"
15787
]
15788
},
15789
{
@@ -15792,7 +15792,7 @@
15792
"nl": "Opdrachten uit tekstvak",
15793
"pl": "Komendy z okienka tekstowego",
15794
"xloc": [
15795
- "default.handlebars->47->732"
15795
+ "default.handlebars->47->733"
15796
]
15797
},
15798
{
@@ -15818,8 +15818,8 @@
15818
"zh-chs": "通用设备组",
15819
"zh-cht": "通用裝置群",
15820
"xloc": [
15821
- "default.handlebars->47->2621",
15822
- "default.handlebars->47->2787"
15821
+ "default.handlebars->47->2626",
15822
+ "default.handlebars->47->2794"
15823
]
15824
},
15825
{
@@ -15845,8 +15845,8 @@
15845
"zh-chs": "通用设备",
15846
"zh-cht": "通用裝置",
15847
"xloc": [
15848
- "default.handlebars->47->2627",
15849
- "default.handlebars->47->2799"
15848
+ "default.handlebars->47->2632",
15849
+ "default.handlebars->47->2806"
15850
]
15851
},
15852
{
@@ -15873,7 +15873,7 @@
15873
"zh-cht": "編譯時間",
15874
"xloc": [
15875
"default-mobile.handlebars->11->543",
15876
- "default.handlebars->47->1463"
15876
+ "default.handlebars->47->1464"
15877
]
15878
},
15879
{
@@ -15922,7 +15922,7 @@
15922
"zh-chs": "压缩档案...",
15923
"zh-cht": "壓縮檔案...",
15924
"xloc": [
15925
- "default.handlebars->47->1395",
15925
+ "default.handlebars->47->1396",
15926
"sharing.handlebars->11->47"
15927
]
15928
},
@@ -15955,7 +15955,7 @@
15955
"nl": "Configuratiebestand vermeldingen",
15956
"pl": "Zapisy pliku konfiguracyjnego",
15957
"xloc": [
15958
- "default.handlebars->47->2941"
15958
+ "default.handlebars->47->2948"
15959
]
15960
},
15961
{
@@ -15983,14 +15983,14 @@
15983
"xloc": [
15984
"default-mobile.handlebars->11->396",
15985
"default-mobile.handlebars->11->646",
15986
- "default.handlebars->47->1191",
15987
- "default.handlebars->47->1200",
15988
- "default.handlebars->47->2049",
15989
- "default.handlebars->47->2493",
15990
- "default.handlebars->47->2576",
15991
- "default.handlebars->47->2643",
15992
- "default.handlebars->47->2785",
15993
- "default.handlebars->47->683"
15986
+ "default.handlebars->47->1192",
15987
+ "default.handlebars->47->1201",
15988
+ "default.handlebars->47->2054",
15989
+ "default.handlebars->47->2498",
15990
+ "default.handlebars->47->2581",
15991
+ "default.handlebars->47->2648",
15992
+ "default.handlebars->47->2792",
15993
+ "default.handlebars->47->684"
15994
]
15995
},
15996
{
@@ -16040,7 +16040,7 @@
16040
"zh-cht": "確認將1個副本複製到此位置?",
16041
"xloc": [
16042
"default-mobile.handlebars->11->492",
16043
- "default.handlebars->47->1419",
16043
+ "default.handlebars->47->1420",
16044
"sharing.handlebars->11->70"
16045
]
16046
},
@@ -16067,7 +16067,7 @@
16067
"zh-chs": "确认{0}个条目的复制到此位置?",
16068
"zh-cht": "確認{0}個條目的複製到此位置?",
16069
"xloc": [
16070
- "default.handlebars->47->1418",
16070
+ "default.handlebars->47->1419",
16071
"sharing.handlebars->11->69"
16072
]
16073
},
@@ -16120,7 +16120,7 @@
16120
"zh-chs": "确认删除选定的帐户?",
16121
"zh-cht": "確認刪除所選帳戶?",
16122
"xloc": [
16123
- "default.handlebars->47->2492"
16123
+ "default.handlebars->47->2497"
16124
]
16125
},
16126
{
@@ -16169,7 +16169,7 @@
16169
"zh-chs": "确认删除选定的用户组?",
16170
"zh-cht": "確認刪除所選用戶群?",
16171
"xloc": [
16172
- "default.handlebars->47->2575"
16172
+ "default.handlebars->47->2580"
16173
]
16174
},
16175
{
@@ -16195,7 +16195,7 @@
16195
"zh-chs": "确认删除用户{0}?",
16196
"zh-cht": "確認刪除用戶{0}?",
16197
"xloc": [
16198
- "default.handlebars->47->2784"
16198
+ "default.handlebars->47->2791"
16199
]
16200
},
16201
{
@@ -16221,7 +16221,7 @@
16221
"zh-chs": "确认删除用户“ {0} ”的成员身份?",
16222
"zh-cht": "確認刪除用戶“ {0} ”的成員身份?",
16223
"xloc": [
16224
- "default.handlebars->47->2646"
16224
+ "default.handlebars->47->2651"
16225
]
16226
},
16227
{
@@ -16247,7 +16247,7 @@
16247
"zh-chs": "确认删除用户组“ {0} ”的成员身份?",
16248
"zh-cht": "確認刪除用戶群“ {0} ”的成員身份?",
16249
"xloc": [
16250
- "default.handlebars->47->2816"
16250
+ "default.handlebars->47->2823"
16251
]
16252
},
16253
{
@@ -16274,7 +16274,7 @@
16274
"zh-cht": "確認將1個條目移動到此位置?",
16275
"xloc": [
16276
"default-mobile.handlebars->11->494",
16277
- "default.handlebars->47->1421",
16277
+ "default.handlebars->47->1422",
16278
"sharing.handlebars->11->72"
16279
]
16280
},
@@ -16301,7 +16301,7 @@
16301
"zh-chs": "确认将{0}个条目移到此位置?",
16302
"zh-cht": "確認將{0}個條目移到該位置?",
16303
"xloc": [
16304
- "default.handlebars->47->1420",
16304
+ "default.handlebars->47->1421",
16305
"sharing.handlebars->11->71"
16306
]
16307
},
@@ -16354,7 +16354,7 @@
16354
"zh-chs": "确认覆盖?",
16355
"zh-cht": "確認覆蓋?",
16356
"xloc": [
16357
- "default.handlebars->47->2252"
16357
+ "default.handlebars->47->2257"
16358
]
16359
},
16360
{
@@ -16380,8 +16380,8 @@
16380
"zh-chs": "确认删除设备“ {0} ”的访问权限?",
16381
"zh-cht": "確認刪除裝置“ {0} ”的訪問權限?",
16382
"xloc": [
16383
- "default.handlebars->47->2636",
16384
- "default.handlebars->47->2807"
16383
+ "default.handlebars->47->2641",
16384
+ "default.handlebars->47->2814"
16385
]
16386
},
16387
{
@@ -16407,8 +16407,8 @@
16407
"zh-chs": "确认删除设备组“ {0} ”的访问权限?",
16408
"zh-cht": "確認刪除裝置群“ {0} ”的訪問權限?",
16409
"xloc": [
16410
- "default.handlebars->47->2638",
16411
- "default.handlebars->47->2820"
16410
+ "default.handlebars->47->2643",
16411
+ "default.handlebars->47->2827"
16412
]
16413
},
16414
{
@@ -16434,7 +16434,7 @@
16434
"zh-chs": "确认删除用户“ {0} ”的访问权限?",
16435
"zh-cht": "確認刪除用戶“ {0} ”的訪問權限?",
16436
"xloc": [
16437
- "default.handlebars->47->2809"
16437
+ "default.handlebars->47->2816"
16438
]
16439
},
16440
{
@@ -16460,7 +16460,7 @@
16460
"zh-chs": "确认删除用户组“ {0} ”的访问权限?",
16461
"zh-cht": "確認刪除用戶群“ {0} ”的訪問權限?",
16462
"xloc": [
16463
- "default.handlebars->47->2812"
16463
+ "default.handlebars->47->2819"
16464
]
16465
},
16466
{
@@ -16486,8 +16486,8 @@
16486
"zh-chs": "确认删除访问权限?",
16487
"zh-cht": "確認刪除訪問權限?",
16488
"xloc": [
16489
- "default.handlebars->47->2810",
16490
- "default.handlebars->47->2813"
16489
+ "default.handlebars->47->2817",
16490
+ "default.handlebars->47->2820"
16491
]
16492
},
16493
{
@@ -16514,7 +16514,7 @@
16514
"zh-cht": "確認刪除身份驗證軟體兩步登入?",
16515
"xloc": [
16516
"default-mobile.handlebars->11->105",
16517
- "default.handlebars->47->1577"
16517
+ "default.handlebars->47->1582"
16518
]
16519
},
16520
{
@@ -16563,7 +16563,7 @@
16563
"zh-chs": "确认删除设备共享“{0}”?",
16564
"zh-cht": "確認刪除設備共享“{0}”?",
16565
"xloc": [
16566
- "default.handlebars->47->2805"
16566
+ "default.handlebars->47->2812"
16567
]
16568
},
16569
{
@@ -16635,7 +16635,7 @@
16635
"zh-chs": "确认移除推送认证设备?",
16636
"zh-cht": "確認移除推送認證設備?",
16637
"xloc": [
16638
- "default.handlebars->47->1579"
16638
+ "default.handlebars->47->1584"
16639
]
16640
},
16641
{
@@ -16661,7 +16661,7 @@
16661
"zh-chs": "确认删除用户“ {0} ”的权限?",
16662
"zh-cht": "確認刪除用戶“ {0} ”的權限?",
16663
"xloc": [
16664
- "default.handlebars->47->2160"
16664
+ "default.handlebars->47->2165"
16665
]
16666
},
16667
{
@@ -16687,7 +16687,7 @@
16687
"zh-chs": "确认删除用户组“ {0} ”的权限?",
16688
"zh-cht": "確認刪除用戶群“ {0} ”的權限?",
16689
"xloc": [
16690
- "default.handlebars->47->2162"
16690
+ "default.handlebars->47->2167"
16691
]
16692
},
16693
{
@@ -16713,7 +16713,7 @@
16713
"zh-chs": "确认移除所选设备?",
16714
"zh-cht": "確認刪除所選設備?",
16715
"xloc": [
16716
- "default.handlebars->47->677"
16716
+ "default.handlebars->47->678"
16717
]
16718
},
16719
{
@@ -16739,7 +16739,7 @@
16739
"zh-chs": "确认删除此登录令牌?",
16740
"zh-cht": "確認刪除此登錄令牌?",
16741
"xloc": [
16742
- "default.handlebars->47->1883"
16742
+ "default.handlebars->47->1888"
16743
]
16744
},
16745
{
@@ -16814,7 +16814,7 @@
16814
"zh-chs": "确认移除 {0} 个选定的设备?",
16815
"zh-cht": "確認刪除 {0} 個選定的設備?",
16816
"xloc": [
16817
- "default.handlebars->47->678"
16817
+ "default.handlebars->47->679"
16818
]
16819
},
16820
{
@@ -16841,7 +16841,7 @@
16841
"zh-cht": "將{1}入口{2}中的{0}限製到此位置?",
16842
"xloc": [
16843
"default-mobile.handlebars->11->158",
16844
- "default.handlebars->47->2255"
16844
+ "default.handlebars->47->2260"
16845
]
16846
},
16847
{
@@ -16871,8 +16871,8 @@
16871
"default-mobile.handlebars->container->page_content->column_l->p10->p10desktop->deskarea1->1->3",
16872
"default-mobile.handlebars->container->page_content->column_l->p10->p10files->p13toolbar->1->0->1->3",
16873
"default-mobile.handlebars->container->page_content->column_l->p10->p10terminal->termTable->termarea1->1->3->connectbutton2span",
16874
- "default.handlebars->47->1946",
16875
- "default.handlebars->47->887",
16874
+ "default.handlebars->47->1951",
16875
+ "default.handlebars->47->888",
16876
"default.handlebars->container->column_l->p11->deskarea0->deskarea1->3->connectbutton1span",
16877
"default.handlebars->container->column_l->p12->termTable->1->1->0->1->3->connectbutton2span",
16878
"default.handlebars->container->column_l->p13->p13toolbar->1->0->1->3",
@@ -16908,7 +16908,7 @@
16908
"zh-chs": "全部连接",
16909
"zh-cht": "全部連接",
16910
"xloc": [
16911
- "default.handlebars->47->438",
16911
+ "default.handlebars->47->439",
16912
"default.handlebars->container->column_l->p1->devListToolbarSpan->1->0->kvmListToolbar"
16913
]
16914
},
@@ -16958,7 +16958,7 @@
16958
"zh-chs": "连接到服务器",
16959
"zh-cht": "連接到伺服器",
16960
"xloc": [
16961
- "default.handlebars->47->2042"
16961
+ "default.handlebars->47->2047"
16962
]
16963
},
16964
{
@@ -17164,7 +17164,7 @@
17164
"xloc": [
17165
"default-mobile.handlebars->11->4",
17166
"default.handlebars->47->11",
17167
- "default.handlebars->47->398",
17167
+ "default.handlebars->47->399",
17168
"sharing.handlebars->11->4",
17169
"ssh.handlebars->3->4",
17170
"xterm.handlebars->9->4"
@@ -17193,7 +17193,7 @@
17193
"zh-chs": "已连接的英特尔®AMT",
17194
"zh-cht": "已連接的Intel® AMT",
17195
"xloc": [
17196
- "default.handlebars->47->3023"
17196
+ "default.handlebars->47->3030"
17197
]
17198
},
17199
{
@@ -17219,7 +17219,7 @@
17219
"zh-chs": "已连接的用户",
17220
"zh-cht": "已连接的用户",
17221
"xloc": [
17222
- "default.handlebars->47->3028"
17222
+ "default.handlebars->47->3035"
17223
]
17224
},
17225
{
@@ -17273,7 +17273,7 @@
17273
"zh-cht": "現在已連接",
17274
"xloc": [
17275
"default-mobile.handlebars->11->538",
17276
- "default.handlebars->47->1458"
17276
+ "default.handlebars->47->1459"
17277
]
17278
},
17279
{
@@ -17400,10 +17400,10 @@
17400
"default-mobile.handlebars->11->2",
17401
"default-mobile.handlebars->11->48",
17402
"default-mobile.handlebars->11->510",
17403
- "default.handlebars->47->1444",
17404
- "default.handlebars->47->371",
17405
- "default.handlebars->47->374",
17406
- "default.handlebars->47->441",
17403
+ "default.handlebars->47->1445",
17404
+ "default.handlebars->47->372",
17405
+ "default.handlebars->47->375",
17406
+ "default.handlebars->47->442",
17407
"default.handlebars->47->9",
17408
"sharing.handlebars->11->2",
17409
"sharing.handlebars->11->93",
@@ -17457,7 +17457,7 @@
17457
"zh-chs": "连接数量",
17458
"zh-cht": "連接數量",
17459
"xloc": [
17460
- "default.handlebars->47->3054"
17460
+ "default.handlebars->47->3061"
17461
]
17462
},
17463
{
@@ -17484,8 +17484,8 @@
17484
"zh-cht": "連接錯誤",
17485
"xloc": [
17486
"default-mobile.handlebars->11->473",
17487
- "default.handlebars->47->1374",
17488
- "default.handlebars->47->1391",
17487
+ "default.handlebars->47->1375",
17488
+ "default.handlebars->47->1392",
17489
"login2.handlebars->7->34"
17490
]
17491
},
@@ -17512,7 +17512,7 @@
17512
"zh-chs": "连接转发器",
17513
"zh-cht": "連接轉發器",
17514
"xloc": [
17515
- "default.handlebars->47->3090"
17515
+ "default.handlebars->47->3097"
17516
]
17517
},
17518
{
@@ -17591,9 +17591,9 @@
17591
"zh-cht": "連接性",
17592
"xloc": [
17593
"default-mobile.handlebars->11->318",
17594
- "default.handlebars->47->2210",
17595
- "default.handlebars->47->361",
17596
- "default.handlebars->47->905",
17594
+ "default.handlebars->47->2215",
17595
+ "default.handlebars->47->362",
17596
+ "default.handlebars->47->906",
17597
"default.handlebars->container->column_l->p21->p21main->1->1->meshConnChartDiv->1"
17598
]
17599
},
@@ -17620,7 +17620,7 @@
17620
"zh-chs": "同意",
17621
"zh-cht": "同意",
17622
"xloc": [
17623
- "default.handlebars->47->2424"
17623
+ "default.handlebars->47->2429"
17624
]
17625
},
17626
{
@@ -17647,8 +17647,8 @@
17647
"zh-cht": "控制台",
17648
"xloc": [
17649
"default-mobile.handlebars->11->358",
17650
- "default.handlebars->47->1041",
17651
- "default.handlebars->47->1063",
17650
+ "default.handlebars->47->1042",
17651
+ "default.handlebars->47->1064",
17652
"default.handlebars->container->topbar->1->1->MainSubMenuSpan->MainSubMenu->1->0->MainDevConsole",
17653
"default.handlebars->container->topbar->1->1->ServerSubMenuSpan->ServerSubMenu->1->0->ServerConsole",
17654
"default.handlebars->contextMenu->cxconsole"
@@ -17677,7 +17677,7 @@
17677
"zh-chs": "控制台 -",
17678
"zh-cht": "控制台 -",
17679
"xloc": [
17680
- "default.handlebars->47->805"
17680
+ "default.handlebars->47->806"
17681
]
17682
},
17683
{
@@ -17703,8 +17703,8 @@
17703
"zh-chs": "控制",
17704
"zh-cht": "控制",
17705
"xloc": [
17706
- "default.handlebars->47->1040",
17707
- "default.handlebars->47->1062",
17706
+ "default.handlebars->47->1041",
17707
+ "default.handlebars->47->1063",
17708
"messenger.handlebars->remoteImage->3->2"
17709
]
17710
},
@@ -17758,7 +17758,7 @@
17758
"zh-chs": "Cookie编码器",
17759
"zh-cht": "Cookie編碼器",
17760
"xloc": [
17761
- "default.handlebars->47->3073"
17761
+ "default.handlebars->47->3080"
17762
]
17763
},
17764
{
@@ -17786,7 +17786,7 @@
17786
"xloc": [
17787
"default-mobile.handlebars->container->page_content->column_l->p10->p10files->p13toolbar->1->2->1->3",
17788
"default-mobile.handlebars->container->page_content->column_l->p5->p5myfiles->p5toolbar->1->0->1->3",
17789
- "default.handlebars->47->585",
17789
+ "default.handlebars->47->586",
17790
"default.handlebars->container->column_l->p13->p13toolbar->1->2->1->3",
17791
"default.handlebars->container->column_l->p5->p5toolbar->1->0->p5filehead->3",
17792
"sharing.handlebars->p13->p13toolbar->fileArea2->3"
@@ -17815,9 +17815,9 @@
17815
"zh-chs": "将MAC地址复制到剪贴板",
17816
"zh-cht": "將MAC地址複製到剪貼板",
17817
"xloc": [
17818
- "default.handlebars->47->156",
17819
- "default.handlebars->47->164",
17820
- "default.handlebars->47->167"
17818
+ "default.handlebars->47->157",
17819
+ "default.handlebars->47->165",
17820
+ "default.handlebars->47->168"
17821
]
17822
},
17823
{
@@ -17843,8 +17843,8 @@
17843
"zh-chs": "将 URL 复制到剪贴板",
17844
"zh-cht": "將 URL 複製到剪貼板",
17845
"xloc": [
17846
- "default.handlebars->47->594",
17847
- "default.handlebars->47->598"
17846
+ "default.handlebars->47->595",
17847
+ "default.handlebars->47->599"
17848
]
17849
},
17850
{
@@ -17870,7 +17870,7 @@
17870
"zh-chs": "将Windows 32位代理URL复制到剪贴板",
17871
"zh-cht": "將Windows 32位代理URL複製到剪貼板",
17872
"xloc": [
17873
- "default.handlebars->47->575"
17873
+ "default.handlebars->47->576"
17874
]
17875
},
17876
{
@@ -17896,7 +17896,7 @@
17896
"zh-chs": "将Windows 64位代理URL复制到剪贴板",
17897
"zh-cht": "將Windows 64位代理URL複製到剪貼板",
17898
"xloc": [
17899
- "default.handlebars->47->579"
17899
+ "default.handlebars->47->580"
17900
]
17901
},
17902
{
@@ -17922,18 +17922,18 @@
17922
"zh-chs": "将地址复制到剪贴板",
17923
"zh-cht": "將地址複製到剪貼板",
17924
"xloc": [
17925
- "default.handlebars->47->145",
17926
- "default.handlebars->47->147",
17927
- "default.handlebars->47->149",
17928
- "default.handlebars->47->158",
17929
- "default.handlebars->47->160",
17930
- "default.handlebars->47->162",
17931
- "default.handlebars->47->170",
17932
- "default.handlebars->47->172",
17933
- "default.handlebars->47->174",
17934
- "default.handlebars->47->176",
17935
- "default.handlebars->47->178",
17936
- "default.handlebars->47->180"
17925
+ "default.handlebars->47->146",
17926
+ "default.handlebars->47->148",
17927
+ "default.handlebars->47->150",
17928
+ "default.handlebars->47->159",
17929
+ "default.handlebars->47->161",
17930
+ "default.handlebars->47->163",
17931
+ "default.handlebars->47->171",
17932
+ "default.handlebars->47->173",
17933
+ "default.handlebars->47->175",
17934
+ "default.handlebars->47->177",
17935
+ "default.handlebars->47->179",
17936
+ "default.handlebars->47->181"
17937
]
17938
},
17939
{
@@ -17959,8 +17959,8 @@
17959
"zh-chs": "将代理URL复制到剪贴板",
17960
"zh-cht": "將代理URL複製到剪貼板",
17961
"xloc": [
17962
- "default.handlebars->47->611",
17963
- "default.handlebars->47->613"
17962
+ "default.handlebars->47->612",
17963
+ "default.handlebars->47->614"
17964
]
17965
},
17966
{
@@ -17986,12 +17986,12 @@
17986
"zh-chs": "复制连结到剪贴板",
17987
"zh-cht": "複製連結到剪貼板",
17988
"xloc": [
17989
- "default.handlebars->47->2221",
17990
- "default.handlebars->47->2240",
17991
- "default.handlebars->47->303",
17992
- "default.handlebars->47->325",
17993
- "default.handlebars->47->327",
17994
- "default.handlebars->47->549"
17989
+ "default.handlebars->47->2226",
17990
+ "default.handlebars->47->2245",
17991
+ "default.handlebars->47->304",
17992
+ "default.handlebars->47->326",
17993
+ "default.handlebars->47->328",
17994
+ "default.handlebars->47->550"
17995
]
17996
},
17997
{
@@ -18017,7 +18017,7 @@
18017
"zh-chs": "将macOS代理URL复制到剪贴板",
18018
"zh-cht": "將macOS代理URL複製到剪貼板",
18019
"xloc": [
18020
- "default.handlebars->47->589"
18020
+ "default.handlebars->47->590"
18021
]
18022
},
18023
{
@@ -18043,7 +18043,7 @@
18043
"zh-chs": "将名称复制到剪贴板",
18044
"zh-cht": "將名稱複製到剪貼板",
18045
"xloc": [
18046
- "default.handlebars->47->154"
18046
+ "default.handlebars->47->155"
18047
]
18048
},
18049
{
@@ -18071,8 +18071,8 @@
18071
"xloc": [
18072
"agentinvite.handlebars->container->column_l->5->linuxtab",
18073
"agentinvite.handlebars->container->column_l->5->linuxtab",
18074
- "default.handlebars->47->584",
18075
- "default.handlebars->47->607"
18074
+ "default.handlebars->47->585",
18075
+ "default.handlebars->47->608"
18076
]
18077
},
18078
{
@@ -18098,7 +18098,7 @@
18098
"zh-chs": "将有效代码复制到剪贴板",
18099
"zh-cht": "將有效代碼複製到剪貼板",
18100
"xloc": [
18101
- "default.handlebars->47->223"
18101
+ "default.handlebars->47->224"
18102
]
18103
},
18104
{
@@ -18124,7 +18124,7 @@
18124
"zh-chs": "复制:“{0}”到“{1}”",
18125
"zh-cht": "複製:“{0}”到“{1}”",
18126
"xloc": [
18127
- "default.handlebars->47->2314"
18127
+ "default.handlebars->47->2319"
18128
]
18129
},
18130
{
@@ -18312,7 +18312,7 @@
18312
"zh-chs": "核心服务器",
18313
"zh-cht": "核心伺服器",
18314
"xloc": [
18315
- "default.handlebars->47->3072"
18315
+ "default.handlebars->47->3079"
18316
]
18317
},
18318
{
@@ -18338,7 +18338,7 @@
18338
"zh-chs": "科西嘉文",
18339
"zh-cht": "科西嘉文",
18340
"xloc": [
18341
- "default.handlebars->47->1635"
18341
+ "default.handlebars->47->1640"
18342
]
18343
},
18344
{
@@ -18387,7 +18387,7 @@
18387
"zh-chs": "创建帐号",
18388
"zh-cht": "創建帳號",
18389
"xloc": [
18390
- "default.handlebars->47->2543",
18390
+ "default.handlebars->47->2548",
18391
"login-mobile.handlebars->container->page_content->column_l->1->1->0->1->createpanel->1->1->9->1->16->1->1",
18392
"login.handlebars->container->column_l->centralTable->1->0->logincell->createpanel->1->9->1->16->1->1",
18393
"login2.handlebars->centralTable->1->0->logincell->createpanel->createpanelform->9->1->16->1->1"
@@ -18465,8 +18465,8 @@
18465
"zh-chs": "创建登录令牌",
18466
"zh-cht": "創建登錄令牌",
18467
"xloc": [
18468
- "default.handlebars->47->1820",
18469
- "default.handlebars->47->328"
18468
+ "default.handlebars->47->1825",
18469
+ "default.handlebars->47->329"
18470
]
18471
},
18472
{
@@ -18492,7 +18492,7 @@
18492
"zh-chs": "创建用户组",
18493
"zh-cht": "創建用戶群",
18494
"xloc": [
18495
- "default.handlebars->47->2583"
18495
+ "default.handlebars->47->2588"
18496
]
18497
},
18498
{
@@ -18518,7 +18518,7 @@
18518
"zh-chs": "创建连结以与访客共享此设备",
18519
"zh-cht": "創建鏈結以與訪客共享此裝置",
18520
"xloc": [
18521
- "default.handlebars->47->934"
18521
+ "default.handlebars->47->935"
18522
]
18523
},
18524
{
@@ -18544,7 +18544,7 @@
18544
"zh-chs": "使用以下选项创建一个新的设备组。",
18545
"zh-cht": "使用以下選項創建一個新的裝置群。",
18546
"xloc": [
18547
- "default.handlebars->47->1850"
18547
+ "default.handlebars->47->1855"
18548
]
18549
},
18550
{
@@ -18570,7 +18570,7 @@
18570
"zh-chs": "创建一个新的设备组。",
18571
"zh-cht": "創建一個新的裝置群。",
18572
"xloc": [
18573
- "default.handlebars->47->364"
18573
+ "default.handlebars->47->365"
18574
]
18575
},
18576
{
@@ -18596,7 +18596,7 @@
18596
"zh-chs": "创建一个临时用户名和密码,可用作您帐户的替代登录名。这对于允许工具或其他服务访问您的帐户非常有用。",
18597
"zh-cht": "創建一個臨時用戶名和密碼,可用作您帳戶的替代登錄名。這對於允許工具或其他服務訪問您的帳戶很有用。",
18598
"xloc": [
18599
- "default.handlebars->47->1800"
18599
+ "default.handlebars->47->1805"
18600
]
18601
},
18602
{
@@ -18622,7 +18622,7 @@
18622
"zh-chs": "创建文件夹(如果不存在)?",
18623
"zh-cht": "創建文件夾(如果不存在)?",
18624
"xloc": [
18625
- "default.handlebars->47->702"
18625
+ "default.handlebars->47->703"
18626
]
18627
},
18628
{
@@ -18648,7 +18648,7 @@
18648
"zh-chs": "创建文件夹:“{0}”",
18649
"zh-cht": "創建文件夾:“{0}”",
18650
"xloc": [
18651
- "default.handlebars->47->2307"
18651
+ "default.handlebars->47->2312"
18652
]
18653
},
18654
{
@@ -18683,7 +18683,7 @@
18683
"nl": "Maak meerdere Intel® AMT apparaten in één keer door een JSON bestand met het volgende formaat te importeren:",
18684
"pl": "Utwórz wiele urządzeń Intel® AMT za jednym razem, poprzez import pliku JSON o takim formacie:",
18685
"xloc": [
18686
- "default.handlebars->47->477"
18686
+ "default.handlebars->47->478"
18687
]
18688
},
18689
{
@@ -18709,7 +18709,7 @@
18709
"zh-chs": "通过导入以下格式的JSON文件一次创建多个帐户:",
18710
"zh-cht": "通過導入以下格式的JSON檔案一次創建多個帳戶:",
18711
"xloc": [
18712
- "default.handlebars->47->2507"
18712
+ "default.handlebars->47->2512"
18713
]
18714
},
18715
{
@@ -18763,7 +18763,7 @@
18763
"zh-chs": "创建的设备组:{0}",
18764
"zh-cht": "創建的設備組:{0}",
18765
"xloc": [
18766
- "default.handlebars->47->2318"
18766
+ "default.handlebars->47->2323"
18767
]
18768
},
18769
{
@@ -18789,7 +18789,7 @@
18789
"zh-chs": "创建一个链接,该链接允许没有帐户的访客在有限的时间内远程控制此设备。",
18790
"zh-cht": "創建一個鏈接,該鏈接允許沒有帳戶的訪客在有限的時間內遠程控制此設備。",
18791
"xloc": [
18792
- "default.handlebars->47->1087"
18792
+ "default.handlebars->47->1088"
18793
]
18794
},
18795
{
@@ -18861,7 +18861,7 @@
18861
"zh-chs": "创建",
18862
"zh-cht": "創建",
18863
"xloc": [
18864
- "default.handlebars->47->2691"
18864
+ "default.handlebars->47->2696"
18865
]
18866
},
18867
{
@@ -18887,7 +18887,7 @@
18887
"zh-chs": "创建时间",
18888
"zh-cht": "創作時間",
18889
"xloc": [
18890
- "default.handlebars->47->1926"
18890
+ "default.handlebars->47->1931"
18891
]
18892
},
18893
{
@@ -18941,8 +18941,8 @@
18941
"zh-chs": "创建者",
18942
"zh-cht": "創作者",
18943
"xloc": [
18944
- "default.handlebars->47->1924",
18945
- "default.handlebars->47->1925"
18944
+ "default.handlebars->47->1929",
18945
+ "default.handlebars->47->1930"
18946
]
18947
},
18948
{
@@ -18969,9 +18969,9 @@
18969
"zh-cht": "證書",
18970
"xloc": [
18971
"default-mobile.handlebars->11->330",
18972
- "default.handlebars->47->1263",
18973
- "default.handlebars->47->1888",
18974
- "default.handlebars->47->917"
18972
+ "default.handlebars->47->1264",
18973
+ "default.handlebars->47->1893",
18974
+ "default.handlebars->47->918"
18975
]
18976
},
18977
{
@@ -18997,7 +18997,7 @@
18997
"zh-chs": "克里语",
18998
"zh-cht": "克里語",
18999
"xloc": [
19000
- "default.handlebars->47->1636"
19000
+ "default.handlebars->47->1641"
19001
]
19002
},
19003
{
@@ -19023,7 +19023,7 @@
19023
"zh-chs": "克罗地亚文",
19024
"zh-cht": "克羅地亞文",
19025
"xloc": [
19026
- "default.handlebars->47->1637"
19026
+ "default.handlebars->47->1642"
19027
]
19028
},
19029
{
@@ -19105,8 +19105,8 @@
19105
"xloc": [
19106
"default-mobile.handlebars->11->434",
19107
"default-mobile.handlebars->11->438",
19108
- "default.handlebars->47->1304",
19109
- "default.handlebars->47->1308",
19108
+ "default.handlebars->47->1305",
19109
+ "default.handlebars->47->1309",
19110
"default.handlebars->47->60",
19111
"sharing.handlebars->11->24"
19112
]
@@ -19263,7 +19263,7 @@
19263
"zh-chs": "当前版本",
19264
"zh-cht": "當前版本",
19265
"xloc": [
19266
- "default.handlebars->47->185"
19266
+ "default.handlebars->47->186"
19267
]
19268
},
19269
{
@@ -19290,7 +19290,7 @@
19290
"zh-cht": "當前密碼不正確。",
19291
"xloc": [
19292
"default-mobile.handlebars->11->736",
19293
- "default.handlebars->47->2992"
19293
+ "default.handlebars->47->2999"
19294
]
19295
},
19296
{
@@ -19399,7 +19399,7 @@
19399
"zh-chs": "捷克文",
19400
"zh-cht": "捷克文",
19401
"xloc": [
19402
- "default.handlebars->47->1638"
19402
+ "default.handlebars->47->1643"
19403
]
19404
},
19405
{
@@ -19425,7 +19425,7 @@
19425
"zh-chs": "DNS suffix",
19426
"zh-cht": "DNS suffix",
19427
"xloc": [
19428
- "default.handlebars->47->153"
19428
+ "default.handlebars->47->154"
19429
]
19430
},
19431
{
@@ -19451,7 +19451,7 @@
19451
"zh-chs": "日常的",
19452
"zh-cht": "日常的",
19453
"xloc": [
19454
- "default.handlebars->47->286"
19454
+ "default.handlebars->47->287"
19455
]
19456
},
19457
{
@@ -19477,7 +19477,7 @@
19477
"zh-chs": "丹麦文",
19478
"zh-cht": "丹麥文",
19479
"xloc": [
19480
- "default.handlebars->47->1639"
19480
+ "default.handlebars->47->1644"
19481
]
19482
},
19483
{
@@ -19530,7 +19530,7 @@
19530
"zh-chs": "数据通道",
19531
"zh-cht": "數據通道",
19532
"xloc": [
19533
- "default.handlebars->47->1261",
19533
+ "default.handlebars->47->1262",
19534
"sharing.handlebars->11->11"
19535
]
19536
},
@@ -19540,7 +19540,7 @@
19540
"nl": "Database vermeldingen",
19541
"pl": "Zapisy Bazy Danych",
19542
"xloc": [
19543
- "default.handlebars->47->2866"
19543
+ "default.handlebars->47->2873"
19544
]
19545
},
19546
{
@@ -19566,7 +19566,7 @@
19566
"zh-chs": "日期和时间",
19567
"zh-cht": "日期和時間",
19568
"xloc": [
19569
- "default.handlebars->47->1797"
19569
+ "default.handlebars->47->1802"
19570
]
19571
},
19572
{
@@ -19593,9 +19593,9 @@
19593
"zh-cht": "天",
19594
"xloc": [
19595
"default-mobile.handlebars->11->386",
19596
- "default.handlebars->47->1175",
19597
- "default.handlebars->47->2870",
19598
- "default.handlebars->47->2873"
19596
+ "default.handlebars->47->1176",
19597
+ "default.handlebars->47->2877",
19598
+ "default.handlebars->47->2880"
19599
]
19600
},
19601
{
@@ -19621,8 +19621,8 @@
19621
"zh-chs": "停用",
19622
"zh-cht": "停用",
19623
"xloc": [
19624
- "default.handlebars->47->1957",
19625
- "default.handlebars->47->2021"
19624
+ "default.handlebars->47->1962",
19625
+ "default.handlebars->47->2026"
19626
]
19627
},
19628
{
@@ -19648,7 +19648,7 @@
19648
"zh-chs": "如果设置停用CCM",
19649
"zh-cht": "如果設置停用CCM",
19650
"xloc": [
19651
- "default.handlebars->47->2033"
19651
+ "default.handlebars->47->2038"
19652
]
19653
},
19654
{
@@ -19698,7 +19698,7 @@
19698
"zh-cht": "沉睡",
19699
"xloc": [
19700
"default-mobile.handlebars->11->241",
19701
- "default.handlebars->47->624"
19701
+ "default.handlebars->47->625"
19702
]
19703
},
19704
{
@@ -19724,10 +19724,10 @@
19724
"zh-chs": "默认",
19725
"zh-cht": "默認",
19726
"xloc": [
19727
- "default.handlebars->47->2530",
19728
- "default.handlebars->47->2579",
19729
- "default.handlebars->47->2590",
19730
- "default.handlebars->47->2664"
19727
+ "default.handlebars->47->2535",
19728
+ "default.handlebars->47->2584",
19729
+ "default.handlebars->47->2595",
19730
+ "default.handlebars->47->2669"
19731
]
19732
},
19733
{
@@ -19754,7 +19754,7 @@
19754
"zh-cht": "德爾",
19755
"xloc": [
19756
"default-mobile.handlebars->11->422",
19757
- "default.handlebars->47->1292"
19757
+ "default.handlebars->47->1293"
19758
]
19759
},
19760
{
@@ -19785,9 +19785,9 @@
19785
"default-mobile.handlebars->container->page_content->column_l->p10->p10files->p13toolbar->1->2->1->1",
19786
"default-mobile.handlebars->container->page_content->column_l->p5->p5myfiles->p5toolbar->1->0->1->1",
19787
"default-mobile.handlebars->dialog->idx_dlgButtonBar->5",
19788
- "default.handlebars->47->1410",
19789
- "default.handlebars->47->2247",
19790
- "default.handlebars->47->775",
19788
+ "default.handlebars->47->1411",
19789
+ "default.handlebars->47->2252",
19790
+ "default.handlebars->47->776",
19791
"default.handlebars->container->column_l->p13->p13toolbar->1->2->1->3",
19792
"default.handlebars->container->column_l->p5->p5toolbar->1->0->p5filehead->3",
19793
"default.handlebars->container->dialog->idx_dlgButtonBar->5",
@@ -19824,7 +19824,7 @@
19824
"zh-cht": "刪除帳戶",
19825
"xloc": [
19826
"default-mobile.handlebars->11->115",
19827
- "default.handlebars->47->1835"
19827
+ "default.handlebars->47->1840"
19828
]
19829
},
19830
{
@@ -19850,7 +19850,7 @@
19850
"zh-chs": "删除帐户",
19851
"zh-cht": "刪除帳戶",
19852
"xloc": [
19853
- "default.handlebars->47->2494"
19853
+ "default.handlebars->47->2499"
19854
]
19855
},
19856
{
@@ -19877,7 +19877,7 @@
19877
"zh-cht": "刪除裝置",
19878
"xloc": [
19879
"default-mobile.handlebars->11->339",
19880
- "default.handlebars->47->944"
19880
+ "default.handlebars->47->945"
19881
]
19882
},
19883
{
@@ -19903,7 +19903,7 @@
19903
"zh-chs": "删除设备",
19904
"zh-cht": "刪除設備",
19905
"xloc": [
19906
- "default.handlebars->47->684"
19906
+ "default.handlebars->47->685"
19907
]
19908
},
19909
{
@@ -19931,8 +19931,8 @@
19931
"xloc": [
19932
"default-mobile.handlebars->11->644",
19933
"default-mobile.handlebars->11->647",
19934
- "default.handlebars->47->2009",
19935
- "default.handlebars->47->2050"
19934
+ "default.handlebars->47->2014",
19935
+ "default.handlebars->47->2055"
19936
]
19937
},
19938
{
@@ -19959,7 +19959,7 @@
19959
"zh-cht": "刪除節點",
19960
"xloc": [
19961
"default-mobile.handlebars->11->394",
19962
- "default.handlebars->47->1201"
19962
+ "default.handlebars->47->1202"
19963
]
19964
},
19965
{
@@ -20008,7 +20008,7 @@
20008
"zh-chs": "删除用户",
20009
"zh-cht": "刪除用戶",
20010
"xloc": [
20011
- "default.handlebars->47->2737"
20011
+ "default.handlebars->47->2742"
20012
]
20013
},
20014
{
@@ -20034,8 +20034,8 @@
20034
"zh-chs": "删除用户群组",
20035
"zh-cht": "刪除用戶群組",
20036
"xloc": [
20037
- "default.handlebars->47->2632",
20038
- "default.handlebars->47->2644"
20037
+ "default.handlebars->47->2637",
20038
+ "default.handlebars->47->2649"
20039
]
20040
},
20041
{
@@ -20061,7 +20061,7 @@
20061
"zh-chs": "删除用户群组",
20062
"zh-cht": "刪除用戶群組",
20063
"xloc": [
20064
- "default.handlebars->47->2577"
20064
+ "default.handlebars->47->2582"
20065
]
20066
},
20067
{
@@ -20087,7 +20087,7 @@
20087
"zh-chs": "删除用户{0}",
20088
"zh-cht": "刪除用戶{0}",
20089
"xloc": [
20090
- "default.handlebars->47->2783"
20090
+ "default.handlebars->47->2790"
20091
]
20092
},
20093
{
@@ -20114,7 +20114,7 @@
20114
"zh-cht": "刪除帳戶",
20115
"xloc": [
20116
"default-mobile.handlebars->container->page_content->column_l->p3->p3info->3->p3AccountActions->p2AccountActions->3->9->0",
20117
- "default.handlebars->47->2490",
20117
+ "default.handlebars->47->2495",
20118
"default.handlebars->container->column_l->p2->p2info->p2AccountActions->3->p2AccountPassActions->7"
20119
]
20120
},
@@ -20141,7 +20141,7 @@
20141
"zh-chs": "删除设备",
20142
"zh-cht": "刪除裝置",
20143
"xloc": [
20144
- "default.handlebars->47->670"
20144
+ "default.handlebars->47->671"
20145
]
20146
},
20147
{
@@ -20167,7 +20167,7 @@
20167
"zh-chs": "删除群组",
20168
"zh-cht": "刪除群組",
20169
"xloc": [
20170
- "default.handlebars->47->2573"
20170
+ "default.handlebars->47->2578"
20171
]
20172
},
20173
{
@@ -20193,7 +20193,7 @@
20193
"zh-chs": "删除项目?",
20194
"zh-cht": "刪除項目?",
20195
"xloc": [
20196
- "default.handlebars->47->776"
20196
+ "default.handlebars->47->777"
20197
]
20198
},
20199
{
@@ -20219,7 +20219,7 @@
20219
"zh-chs": "递归删除:“{0}”,{1}个元素已删除",
20220
"zh-cht": "遞歸刪除:“{0}”,{1}個元素已刪除",
20221
"xloc": [
20222
- "default.handlebars->47->2309"
20222
+ "default.handlebars->47->2314"
20223
]
20224
},
20225
{
@@ -20247,8 +20247,8 @@
20247
"xloc": [
20248
"default-mobile.handlebars->11->155",
20249
"default-mobile.handlebars->11->486",
20250
- "default.handlebars->47->1412",
20251
- "default.handlebars->47->2249",
20250
+ "default.handlebars->47->1413",
20251
+ "default.handlebars->47->2254",
20252
"sharing.handlebars->11->63"
20253
]
20254
},
@@ -20275,7 +20275,7 @@
20275
"zh-chs": "删除用户群组{0}?",
20276
"zh-cht": "刪除用戶群組{0}?",
20277
"xloc": [
20278
- "default.handlebars->47->2642"
20278
+ "default.handlebars->47->2647"
20279
]
20280
},
20281
{
@@ -20303,8 +20303,8 @@
20303
"xloc": [
20304
"default-mobile.handlebars->11->154",
20305
"default-mobile.handlebars->11->485",
20306
- "default.handlebars->47->1411",
20307
- "default.handlebars->47->2248",
20306
+ "default.handlebars->47->1412",
20307
+ "default.handlebars->47->2253",
20308
"sharing.handlebars->11->62"
20309
]
20310
},
@@ -20357,7 +20357,7 @@
20357
"zh-chs": "删除:“{0}”",
20358
"zh-cht": "刪除:“{0}”",
20359
"xloc": [
20360
- "default.handlebars->47->2308"
20360
+ "default.handlebars->47->2313"
20361
]
20362
},
20363
{
@@ -20383,7 +20383,7 @@
20383
"zh-chs": "删除:“{0}”,{1}个元素已删除",
20384
"zh-cht": "刪除:“{0}”,已刪除{1}個元素",
20385
"xloc": [
20386
- "default.handlebars->47->2310"
20386
+ "default.handlebars->47->2315"
20387
]
20388
},
20389
{
@@ -20410,7 +20410,7 @@
20410
"zh-cht": "被拒絕",
20411
"xloc": [
20412
"default-mobile.handlebars->11->409",
20413
- "default.handlebars->47->1248",
20413
+ "default.handlebars->47->1249",
20414
"sharing.handlebars->11->29",
20415
"sharing.handlebars->11->7"
20416
]
@@ -20421,7 +20421,7 @@
20421
"nl": "Geweigerde gebruikerslogin van {0}, {1}, {2}",
20422
"pl": "Odmówiono zalogowania użytkownika z {0}, {1}, {2}",
20423
"xloc": [
20424
- "default.handlebars->47->2418"
20424
+ "default.handlebars->47->2423"
20425
]
20426
},
20427
{
@@ -20570,20 +20570,20 @@
20570
"default-mobile.handlebars->11->551",
20571
"default-mobile.handlebars->11->630",
20572
"default-mobile.handlebars->11->653",
20573
- "default.handlebars->47->1243",
20574
- "default.handlebars->47->1471",
20575
- "default.handlebars->47->1481",
20576
- "default.handlebars->47->152",
20577
- "default.handlebars->47->1860",
20578
- "default.handlebars->47->1917",
20579
- "default.handlebars->47->2056",
20580
- "default.handlebars->47->2422",
20581
- "default.handlebars->47->2582",
20582
- "default.handlebars->47->2593",
20583
- "default.handlebars->47->2594",
20584
- "default.handlebars->47->2640",
20585
- "default.handlebars->47->816",
20573
+ "default.handlebars->47->1244",
20574
+ "default.handlebars->47->1472",
20575
+ "default.handlebars->47->1482",
20576
+ "default.handlebars->47->153",
20577
+ "default.handlebars->47->1865",
20578
+ "default.handlebars->47->1922",
20579
+ "default.handlebars->47->2061",
20580
+ "default.handlebars->47->2427",
20581
+ "default.handlebars->47->2587",
20582
+ "default.handlebars->47->2598",
20583
+ "default.handlebars->47->2599",
20584
+ "default.handlebars->47->2645",
20585
"default.handlebars->47->817",
20586
+ "default.handlebars->47->818",
20587
"default.handlebars->container->column_l->p42->p42tbl->1->0->3"
20588
]
20589
},
@@ -20634,16 +20634,16 @@
20634
"zh-cht": "桌面",
20635
"xloc": [
20636
"default-mobile.handlebars->11->354",
20637
- "default.handlebars->47->1001",
20638
- "default.handlebars->47->1089",
20639
- "default.handlebars->47->1347",
20640
- "default.handlebars->47->1987",
20641
- "default.handlebars->47->2062",
20642
- "default.handlebars->47->2843",
20643
- "default.handlebars->47->2903",
20644
- "default.handlebars->47->2953",
20645
- "default.handlebars->47->3048",
20646
- "default.handlebars->47->781",
20637
+ "default.handlebars->47->1002",
20638
+ "default.handlebars->47->1090",
20639
+ "default.handlebars->47->1348",
20640
+ "default.handlebars->47->1992",
20641
+ "default.handlebars->47->2067",
20642
+ "default.handlebars->47->2850",
20643
+ "default.handlebars->47->2910",
20644
+ "default.handlebars->47->2960",
20645
+ "default.handlebars->47->3055",
20646
+ "default.handlebars->47->782",
20647
"default.handlebars->container->topbar->1->1->MainSubMenuSpan->MainSubMenu->1->0->MainDevDesktop",
20648
"default.handlebars->contextMenu->cxdesktop",
20649
"sharing.handlebars->11->23",
@@ -20673,9 +20673,9 @@
20673
"zh-chs": "桌面 + 文件",
20674
"zh-cht": "桌面 + 文件",
20675
"xloc": [
20676
- "default.handlebars->47->1005",
20677
- "default.handlebars->47->1092",
20678
- "default.handlebars->47->1991"
20676
+ "default.handlebars->47->1006",
20677
+ "default.handlebars->47->1093",
20678
+ "default.handlebars->47->1996"
20679
]
20680
},
20681
{
@@ -20701,8 +20701,8 @@
20701
"zh-chs": "桌面 + 终端",
20702
"zh-cht": "桌面+終端",
20703
"xloc": [
20704
- "default.handlebars->47->1002",
20705
- "default.handlebars->47->1988"
20704
+ "default.handlebars->47->1003",
20705
+ "default.handlebars->47->1993"
20706
]
20707
},
20708
{
@@ -20728,9 +20728,9 @@
20728
"zh-chs": "桌面 + 终端 + 文件",
20729
"zh-cht": "桌面+終端+文件",
20730
"xloc": [
20731
- "default.handlebars->47->1006",
20732
- "default.handlebars->47->1094",
20733
- "default.handlebars->47->1992"
20731
+ "default.handlebars->47->1007",
20732
+ "default.handlebars->47->1095",
20733
+ "default.handlebars->47->1997"
20734
]
20735
},
20736
{
@@ -20782,7 +20782,7 @@
20782
"zh-chs": "桌面复用",
20783
"zh-cht": "桌面多路復用",
20784
"xloc": [
20785
- "default.handlebars->47->3053"
20785
+ "default.handlebars->47->3060"
20786
]
20787
},
20788
{
@@ -20808,10 +20808,10 @@
20808
"zh-chs": "桌面通知",
20809
"zh-cht": "桌面通知",
20810
"xloc": [
20811
- "default.handlebars->47->1937",
20812
- "default.handlebars->47->2601",
20813
- "default.handlebars->47->2706",
20814
- "default.handlebars->47->878"
20811
+ "default.handlebars->47->1942",
20812
+ "default.handlebars->47->2606",
20813
+ "default.handlebars->47->2711",
20814
+ "default.handlebars->47->879"
20815
]
20816
},
20817
{
@@ -20837,10 +20837,10 @@
20837
"zh-chs": "桌面提示",
20838
"zh-cht": "桌面提示",
20839
"xloc": [
20840
- "default.handlebars->47->1936",
20841
- "default.handlebars->47->2600",
20842
- "default.handlebars->47->2705",
20843
- "default.handlebars->47->877"
20840
+ "default.handlebars->47->1941",
20841
+ "default.handlebars->47->2605",
20842
+ "default.handlebars->47->2710",
20843
+ "default.handlebars->47->878"
20844
]
20845
},
20846
{
@@ -20866,10 +20866,10 @@
20866
"zh-chs": "桌面提示+工具栏",
20867
"zh-cht": "桌面提示+工具欄",
20868
"xloc": [
20869
- "default.handlebars->47->1934",
20870
- "default.handlebars->47->2598",
20871
- "default.handlebars->47->2703",
20872
- "default.handlebars->47->875"
20869
+ "default.handlebars->47->1939",
20870
+ "default.handlebars->47->2603",
20871
+ "default.handlebars->47->2708",
20872
+ "default.handlebars->47->876"
20873
]
20874
},
20875
{
@@ -20895,7 +20895,7 @@
20895
"zh-chs": "桌面会话",
20896
"zh-cht": "桌面會話",
20897
"xloc": [
20898
- "default.handlebars->47->2836"
20898
+ "default.handlebars->47->2843"
20899
]
20900
},
20901
{
@@ -20998,10 +20998,10 @@
20998
"zh-chs": "桌面工具栏",
20999
"zh-cht": "桌面工具欄",
21000
"xloc": [
21001
- "default.handlebars->47->1935",
21002
- "default.handlebars->47->2599",
21003
- "default.handlebars->47->2704",
21004
- "default.handlebars->47->876"
21001
+ "default.handlebars->47->1940",
21002
+ "default.handlebars->47->2604",
21003
+ "default.handlebars->47->2709",
21004
+ "default.handlebars->47->877"
21005
]
21006
},
21007
{
@@ -21027,7 +21027,7 @@
21027
"zh-chs": "仅桌面视图",
21028
"zh-cht": "僅桌面視圖",
21029
"xloc": [
21030
- "default.handlebars->47->2679"
21030
+ "default.handlebars->47->2684"
21031
]
21032
},
21033
{
@@ -21053,7 +21053,7 @@
21053
"zh-chs": "桌面,仅查看",
21054
"zh-cht": "桌面,僅查看",
21055
"xloc": [
21056
- "default.handlebars->47->1097"
21056
+ "default.handlebars->47->1098"
21057
]
21058
},
21059
{
@@ -21079,7 +21079,7 @@
21079
"zh-chs": "桌面时段",
21080
"zh-cht": "桌面時段",
21081
"xloc": [
21082
- "default.handlebars->47->1346"
21082
+ "default.handlebars->47->1347"
21083
]
21084
},
21085
{
@@ -21160,7 +21160,7 @@
21160
"zh-cht": "細節",
21161
"xloc": [
21162
"default-mobile.handlebars->11->357",
21163
- "default.handlebars->47->2152",
21163
+ "default.handlebars->47->2157",
21164
"default.handlebars->container->topbar->1->1->MainSubMenuSpan->MainSubMenu->1->0->MainDevInfo",
21165
"default.handlebars->contextMenu->cxdetails"
21166
]
@@ -21215,13 +21215,13 @@
21215
"zh-cht": "裝置",
21216
"xloc": [
21217
"default-mobile.handlebars->11->546",
21218
- "default.handlebars->47->1466",
21219
- "default.handlebars->47->1583",
21220
- "default.handlebars->47->2090",
21221
- "default.handlebars->47->273",
21222
- "default.handlebars->47->2802",
21223
- "default.handlebars->47->2869",
21224
- "default.handlebars->47->2887",
21218
+ "default.handlebars->47->1467",
21219
+ "default.handlebars->47->1588",
21220
+ "default.handlebars->47->2095",
21221
+ "default.handlebars->47->274",
21222
+ "default.handlebars->47->2809",
21223
+ "default.handlebars->47->2876",
21224
+ "default.handlebars->47->2894",
21225
"default.handlebars->container->column_l->p1->devListToolbarSpan->1->0->9->devListToolbarSort->sortselect->5"
21226
]
21227
},
@@ -21268,7 +21268,7 @@
21268
"xloc": [
21269
"default-mobile.handlebars->11->375",
21270
"default-mobile.handlebars->11->384",
21271
- "default.handlebars->47->1154"
21271
+ "default.handlebars->47->1155"
21272
]
21273
},
21274
{
@@ -21321,7 +21321,7 @@
21321
"zh-chs": "设备描述",
21322
"zh-cht": "設備描述",
21323
"xloc": [
21324
- "default.handlebars->47->331"
21324
+ "default.handlebars->47->332"
21325
]
21326
},
21327
{
@@ -21347,7 +21347,7 @@
21347
"zh-chs": "设备详情",
21348
"zh-cht": "設備詳情",
21349
"xloc": [
21350
- "default.handlebars->47->2114"
21350
+ "default.handlebars->47->2119"
21351
]
21352
},
21353
{
@@ -21401,17 +21401,17 @@
21401
"xloc": [
21402
"agent-translations.json",
21403
"default-mobile.handlebars->11->714",
21404
- "default.handlebars->47->2085",
21405
- "default.handlebars->47->2088",
21406
- "default.handlebars->47->2089",
21407
- "default.handlebars->47->2439",
21408
- "default.handlebars->47->2624",
21409
- "default.handlebars->47->2630",
21410
- "default.handlebars->47->2790",
21411
- "default.handlebars->47->2852",
21412
- "default.handlebars->47->2876",
21413
- "default.handlebars->47->2890",
21414
- "default.handlebars->47->2970"
21404
+ "default.handlebars->47->2090",
21405
+ "default.handlebars->47->2093",
21406
+ "default.handlebars->47->2094",
21407
+ "default.handlebars->47->2444",
21408
+ "default.handlebars->47->2629",
21409
+ "default.handlebars->47->2635",
21410
+ "default.handlebars->47->2797",
21411
+ "default.handlebars->47->2859",
21412
+ "default.handlebars->47->2883",
21413
+ "default.handlebars->47->2897",
21414
+ "default.handlebars->47->2977"
21415
]
21416
},
21417
{
@@ -21438,7 +21438,7 @@
21438
"zh-cht": "裝置群用戶",
21439
"xloc": [
21440
"default-mobile.handlebars->11->703",
21441
- "default.handlebars->47->2158"
21441
+ "default.handlebars->47->2163"
21442
]
21443
},
21444
{
@@ -21465,11 +21465,11 @@
21465
"zh-cht": "裝置群",
21466
"xloc": [
21467
"default-mobile.handlebars->container->page_content->column_l->p3->p3info->3->3",
21468
- "default.handlebars->47->2455",
21469
- "default.handlebars->47->2567",
21470
- "default.handlebars->47->2611",
21471
- "default.handlebars->47->2700",
21472
- "default.handlebars->47->3026",
21468
+ "default.handlebars->47->2460",
21469
+ "default.handlebars->47->2572",
21470
+ "default.handlebars->47->2616",
21471
+ "default.handlebars->47->2705",
21472
+ "default.handlebars->47->3033",
21473
"default.handlebars->container->column_l->p2->p2info->9"
21474
]
21475
},
@@ -21496,7 +21496,7 @@
21496
"zh-chs": "设备信息导出",
21497
"zh-cht": "裝置訊息輸出",
21498
"xloc": [
21499
- "default.handlebars->47->720"
21499
+ "default.handlebars->47->721"
21500
]
21501
},
21502
{
@@ -21522,7 +21522,7 @@
21522
"zh-chs": "设备位置",
21523
"zh-cht": "裝置位置",
21524
"xloc": [
21525
- "default.handlebars->47->1202"
21525
+ "default.handlebars->47->1203"
21526
]
21527
},
21528
{
This file is too large to show in full.