importtfrom"./react.js";import{Pase}from"./common/index-34f9e9a3.js";varn=function(){};functionr(){return(r=Object.assign?Object.assign.bind():function(t){for(vare=1;e<arguments.length;e++){varn=arguments[e];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}returnt}).apply(this,arguments)}functiono(t){return"/"===t.charAt(0)}functioni(t,e){for(varn=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}functiona(t,e){void0===e&&(e="");varn,r=t&&t.split("/")||[],a=e&&e.split("/")||[],c=t&&o(t),s=e&&o(e),u=c||s;if(t&&o(t)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){varp=a[a.length-1];n="."===p||".."===p||""===p}elsen=!1;for(varl=0,f=a.length;f>=0;f--){varh=a[f];"."===h?i(a,f):".."===h?(i(a,f),l++):l&&(i(a,f),l--)}if(!u)for(;l--;l)a.unshift("..");!u||""===a[0]||a[0]&&o(a[0])||a.unshift("");vary=a.join("/");returnn&&"/"!==y.substr(-1)&&(y+="/"),y}functionc(t){returnt.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}vars="Invariant failed";functionu(t,e){if(!t)thrownewError(s)}functionp(t){return"/"===t.charAt(0)?t:"/"+t}functionl(t){return"/"===t.charAt(0)?t.substr(1):t}functionf(t,e){returnfunction(t,e){return0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}functionh(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}functiony(t){vare=t.pathname,n=t.search,r=t.hash,o=e||"/";returnn&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}functiond(t,e,n,o){vari;"string"==typeoft?(i=function(t){vare=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));vari=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void0===(i=r({},t)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void0!==e&&void0===i.state&&(i.state=e));try{i.pathname=decodeURI(i.pathname)}catch(t){throwtinstanceofURIError?newURIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}returnn&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}functionv(){vart=null;vare=[];return{setPrompt:function(e){returnt=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){vari="function"==typeoft?t(e,n):t;"string"==typeofi?"function"==typeofr?r(i,o):o(!0):o(!1!==i)}elseo(!0)},appendListener:function(t){varn=!0;functionr(){n&&t.apply(void0,arguments)}returne.push(r),function(){n=!1,e=e.filter((function(t){returnt!==r}))}},notifyListeners:function(){for(vart=arguments.length,n=newArray(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){returnt.apply(void0,n)}))}}}varm=!("undefined"==typeofwindow||!window.document||!window.document.createElement);functionb(t,e){e(window.confirm(t))}functiong(){try{returnwindow.history.state||{}}catch(t){return{}}}functionw(t){void0===t&&(t={}),m||u(!1);vare,n=window.history,o=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"inwindow.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),a=t,c=a.forceRefresh,s=void0!==c&&c,l=a.getUserConfirmation,w=void0===l?b:l,O=a.keyLength,x=void0===O?6:O,P=t.basename?h(p(t.basename)):"";functionj(t){vare=t||{},n=e.key,r=e.state,o=window.location,i=o.pathname+o.search+o.hash;returnP&&(i=f(i,P)),d(i,r,n)}functionE(){returnMath.random().toString(36).substr(2,x)}varR=v();functionT(t){r(I,t),I.length=n.length,R.notifyListeners(I.location,I.action)}functionC(t){(function(t){returnvoid0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||S(j(t.state))}functionk(){S(j(g()))}varA=!1;functionS(t){if(A)A=!1,T();else{R.confirmTransitionTo(