//>>built
define("chy/History","dojo/_base/declare,dojo/_base/array,dojo/back,dojox/encoding/base64,dojo/topic,dojo/io-query,dojo/dom,dojo/dom-construct,dojo/_base/config,dojo/_base/lang".split(","),function(b,d,c,e,j,k,f,g,h,i){return b("chy.History",null,{windowIDs:[],lastUrl:null,appState:function(a){this.histUrl=a},constructor:function(a){b.safeMixin(this,a);f.byId("dj_history")||(a=h.dojoIframeHistoryUrl||require.toUrl("dojo/resources/iframe_history.html"),g.place('<iframe style="border:0;width:1px;height:1px;position:absolute;visibility:hidden;bottom:0;right:0;" name="dj_history" id="dj_history" src="'+
a+'"></iframe>',document.body),i.extend(this.appState,{back:function(){null!=this.histUrl?KPWindowLoad(this.histUrl,"kpwindowb2",!1):location.href=location.href},forward:function(){KPWindowLoad(this.histUrl,"kpwindowb2",!1)}}),c.setInitialState(new this.appState(null)))},doHash:function(){},add:function(a,b){if(-1!=d.indexOf(this.windowIDs,b))e.encode(a),null!=this.lastUrl&&this.lastUrl!=a&&c.addToHistory(new this.appState(a),!0),this.lastUrl=a}})});