text: // All material copyright ESRI, All Rights Reserved, unless otherwise specified.
  // See https://js.arcgis.com/4.11/esri/copyright.txt for details.
  //>>built
  define("require exports ../../../core/tsSupport/declareExtendsHelper ../../../core/tsSupport/decorateHelper ../../../core/Accessor ../../../core/Handles ../../../core/watchUtils ../../../core/accessorSupport/decorators ./handlers/DoubleClickZoom ./handlers/DragPan ./handlers/DragRotate ./handlers/GamepadNavigation ./handlers/KeyPan ./handlers/KeyRotate ./handlers/KeyZoom ./handlers/MouseWheelZoom ./handlers/PinchAction ../../input/BrowserEventSource ../../input/InputManager ../../input/ViewEvents ../../input/handlers/PreventContextMenu".split(" "),
  function(D,E,h,e,k,l,f,c,g,m,n,p,q,r,t,u,v,w,x,y,z){var A={left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown"},B={zoomIn:["\x3d","+"],zoomOut:["-","_"]},C={clockwiseOption1:"a",clockwiseOption2:"A",counterClockwiseOption1:"d",counterClockwiseOption2:"D",resetOption1:"n",resetOption2:"N"};return function(d){function a(){var a=null!==d&&d.apply(this,arguments)||this;a._handles=new l;return a}h(a,d);a.prototype.initialize=function(){var a=this;this.viewEvents=new y.ViewEvents(this.view);
  this._handles.add([f.whenNot(this.view,"ready",function(){return a._disconnect()}),f.when(this.view,"ready",function(){return a._connect()})])};a.prototype.destroy=function(){this._handles&&(this._handles.removeAll(),this._handles=null);this._disconnect();this.viewEvents.destroy();this.viewEvents=null};a.prototype._disconnect=function(){this._inputManager&&(this.viewEvents.disconnect(),this._inputManager.destroy(),this._inputManager=null,this._source.destroy(),this._source=null)};a.prototype._connect=
  function(){var a=new w.BrowserEventSource(this.view.surface,this.view.input),b=new x.InputManager(a);b.installHandlers("prevent-context-menu",[new z.PreventContextMenu]);b.installHandlers("navigation",[new v.PinchRotateAndZoom(this.view),new p.GamepadNavigation(this.view),new u.MouseWheelZoom(this.view),new g.DoubleClickZoom(this.view),new m.DragPan(this.view,"primary"),new q.KeyPan(this.view,A),new t.KeyZoom(this.view,B),new r.KeyRotate(this.view,C),new n.DragRotate(this.view,"secondary"),new g.DoubleClickZoom(this.view,
  ["Ctrl"])]);this.viewEvents.connect(b);this._source=a;this._inputManager=b};e([c.property()],a.prototype,"view",void 0);return a=e([c.subclass("esri.views.2d.input.MapViewInputManager")],a)}(c.declared(k))});