From f07f3d643abec1b571b380478c2ec3e27a547fd3 Mon Sep 17 00:00:00 2001 From: barbara-prusiewicz Date: Wed, 3 Jul 2024 13:40:06 -1000 Subject: [PATCH] Package and Tool version changes to resolve bootstrap script grunt step failures --- .tool-versions | 2 +- dist/formrenderer.js | 2 +- dist/formrenderer.standalone.js | 2 +- dist/formrenderer.standalone.uncompressed.js | 5526 +++++++++-------- dist/formrenderer.uncompressed.js | 5524 +++++++++-------- dist/plugins/i18n.js | 28 +- package-lock.json | 5762 +++++++++--------- package.json | 53 +- test/karma.conf.coffee | 8 +- 9 files changed, 8441 insertions(+), 8466 deletions(-) diff --git a/.tool-versions b/.tool-versions index 3311a0e2..4862458d 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ nodejs 10.22.1 -ruby 2.7.7 +ruby 2.6.10 diff --git a/dist/formrenderer.js b/dist/formrenderer.js index 42f01d3c..c618740e 100644 --- a/dist/formrenderer.js +++ b/dist/formrenderer.js @@ -1 +1 @@ -!function(a){!function(b){"function"==typeof define&&define.amd?define(["jquery"],b):b("undefined"!=typeof jQuery?jQuery:a.Zepto)}(function(b){"use strict";function c(a){var c=a.data;a.isDefaultPrevented()||(a.preventDefault(),b(a.target).ajaxSubmit(c))}function d(a){var c=a.target,d=b(c);if(!d.is("[type=submit],[type=image]")){var e=d.closest("[type=submit]");if(0===e.length)return;c=e[0]}var f=this;if(f.clk=c,"image"==c.type)if(void 0!==a.offsetX)f.clk_x=a.offsetX,f.clk_y=a.offsetY;else if("function"==typeof b.fn.offset){var g=d.offset();f.clk_x=a.pageX-g.left,f.clk_y=a.pageY-g.top}else f.clk_x=a.pageX-c.offsetLeft,f.clk_y=a.pageY-c.offsetTop;setTimeout(function(){f.clk=f.clk_x=f.clk_y=null},100)}function e(){if(b.fn.ajaxSubmit.debug){var c="[jquery.form] "+Array.prototype.join.call(arguments,"");a.console&&a.console.log?a.console.log(c):a.opera&&a.opera.postError&&a.opera.postError(c)}}var f={};f.fileapi=void 0!==b("").get(0).files,f.formdata=void 0!==a.FormData;var g=!!b.fn.prop;b.fn.attr2=function(){if(!g)return this.attr.apply(this,arguments);var a=this.prop.apply(this,arguments);return a&&a.jquery||"string"==typeof a?a:this.attr.apply(this,arguments)},b.fn.ajaxSubmit=function(c){function d(a){var d,e,f=b.param(a,c.traditional).split("&"),g=f.length,h=[];for(d=0;d').val(n.extraData[h].value).appendTo(y)[0]):g.push(b('').val(n.extraData[h]).appendTo(y)[0]));n.iframeTarget||r.appendTo("body"),s.attachEvent?s.attachEvent("onload",i):s.addEventListener("load",i,!1),setTimeout(a,15);try{y.submit()}catch(a){var k=document.createElement("form").submit;k.apply(y)}}finally{y.setAttribute("action",d),c?y.setAttribute("target",c):m.removeAttr("target"),b(g).remove()}}function i(c){if(!t.aborted&&!G){if(F=f(s),F||(e("cannot access response document"),c=B),c===A&&t)return t.abort("timeout"),void z.reject(t,"timeout");if(c==B&&t)return t.abort("server abort"),void z.reject(t,"error","server abort");if(F&&F.location.href!=n.iframeSrc||w){s.detachEvent?s.detachEvent("onload",i):s.removeEventListener("load",i,!1);var d,g="success";try{if(w)throw"timeout";var h="xml"==n.dataType||F.XMLDocument||b.isXMLDoc(F);if(e("isXml="+h),!h&&a.opera&&(null===F.body||!F.body.innerHTML)&&--H)return e("requeing onLoad callback, DOM not available"),void setTimeout(i,250);var j=F.body?F.body:F.documentElement;t.responseText=j?j.innerHTML:null,t.responseXML=F.XMLDocument?F.XMLDocument:F,h&&(n.dataType="xml"),t.getResponseHeader=function(a){return{"content-type":n.dataType}[a.toLowerCase()]},j&&(t.status=Number(j.getAttribute("status"))||t.status,t.statusText=j.getAttribute("statusText")||t.statusText);var k=(n.dataType||"").toLowerCase(),l=/(json|script|text)/.test(k);if(l||n.textarea){var m=F.getElementsByTagName("textarea")[0];if(m)t.responseText=m.value,t.status=Number(m.getAttribute("status"))||t.status,t.statusText=m.getAttribute("statusText")||t.statusText;else if(l){var p=F.getElementsByTagName("pre")[0],q=F.getElementsByTagName("body")[0];p?t.responseText=p.textContent?p.textContent:p.innerText:q&&(t.responseText=q.textContent?q.textContent:q.innerText)}}else"xml"==k&&!t.responseXML&&t.responseText&&(t.responseXML=I(t.responseText));try{E=K(t,k,n)}catch(a){g="parsererror",t.error=d=a||g}}catch(a){e("error caught: ",a),g="error",t.error=d=a||g}t.aborted&&(e("upload aborted"),g=null),t.status&&(g=t.status>=200&&t.status<300||304===t.status?"success":"error"),"success"===g?(n.success&&n.success.call(n.context,E,"success",t),z.resolve(t.responseText,"success",t),o&&b.event.trigger("ajaxSuccess",[t,n])):g&&(void 0===d&&(d=t.statusText),n.error&&n.error.call(n.context,t,g,d),z.reject(t,"error",d),o&&b.event.trigger("ajaxError",[t,n,d])),o&&b.event.trigger("ajaxComplete",[t,n]),o&&!--b.active&&b.event.trigger("ajaxStop"),n.complete&&n.complete.call(n.context,t,g),G=!0,n.timeout&&clearTimeout(x),setTimeout(function(){n.iframeTarget?r.attr("src",n.iframeSrc):r.remove(),t.responseXML=null},100)}}}var k,l,n,o,p,r,s,t,u,v,w,x,y=m[0],z=b.Deferred();if(z.abort=function(a){t.abort(a)},d)for(l=0;l'),r.css({position:"absolute",top:"-1000px",left:"-1000px"})),s=r[0],t={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(a){var c="timeout"===a?"timeout":"aborted";e("aborting upload... "+c),this.aborted=1;try{s.contentWindow.document.execCommand&&s.contentWindow.document.execCommand("Stop")}catch(a){}r.attr("src",n.iframeSrc),t.error=c,n.error&&n.error.call(n.context,t,c,a),o&&b.event.trigger("ajaxError",[t,n,c]),n.complete&&n.complete.call(n.context,t,c)}},o=n.global,o&&0==b.active++&&b.event.trigger("ajaxStart"),o&&b.event.trigger("ajaxSend",[t,n]),n.beforeSend&&!1===n.beforeSend.call(n.context,t,n))return n.global&&b.active--,z.reject(),z;if(t.aborted)return z.reject(),z;(u=y.clk)&&(v=u.name)&&!u.disabled&&(n.extraData=n.extraData||{},n.extraData[v]=u.value,"image"==u.type&&(n.extraData[v+".x"]=y.clk_x,n.extraData[v+".y"]=y.clk_y));var A=1,B=2,C=b("meta[name=csrf-token]").attr("content"),D=b("meta[name=csrf-param]").attr("content");D&&C&&(n.extraData=n.extraData||{},n.extraData[D]=C),n.forceSync?h():setTimeout(h,10);var E,F,G,H=50,I=b.parseXML||function(b,c){return a.ActiveXObject?(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)):c=(new DOMParser).parseFromString(b,"text/xml"),c&&c.documentElement&&"parsererror"!=c.documentElement.nodeName?c:null},J=b.parseJSON||function(b){return a.eval("("+b+")")},K=function(a,c,d){var e=a.getResponseHeader("content-type")||"",f="xml"===c||!c&&e.indexOf("xml")>=0,g=f?a.responseXML:a.responseText;return f&&"parsererror"===g.documentElement.nodeName&&b.error&&b.error("parsererror"),d&&d.dataFilter&&(g=d.dataFilter(g,c)),"string"==typeof g&&("json"===c||!c&&e.indexOf("json")>=0?g=J(g):("script"===c||!c&&e.indexOf("javascript")>=0)&&b.globalEval(g)),g};return z}if(!this.length)return e("ajaxSubmit: skipping submit process - no element selected"),this;var j,k,l,m=this;"function"==typeof c?c={success:c}:void 0===c&&(c={}),j=c.type||this.attr2("method"),k=c.url||this.attr2("action"),l="string"==typeof k?b.trim(k):"",l=l||a.location.href||"",l&&(l=(l.match(/^([^#]+)/)||[])[1]),c=b.extend(!0,{url:l,success:b.ajaxSettings.success,type:j||b.ajaxSettings.type,iframeSrc:/^https/i.test(a.location.href||"")?"javascript:false":"about:blank"},c);var n={};if(this.trigger("form-pre-serialize",[this,c,n]),n.veto)return e("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(c.beforeSerialize&&!1===c.beforeSerialize(this,c))return e("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var o=c.traditional;void 0===o&&(o=b.ajaxSettings.traditional);var p,q=[],r=this.formToArray(c.semantic,q);if(c.data&&(c.extraData=c.data,p=b.param(c.data,o)),c.beforeSubmit&&!1===c.beforeSubmit(r,this,c))return e("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[r,this,c,n]),n.veto)return e("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var s=b.param(r,o);p&&(s=s?s+"&"+p:p),"GET"==c.type.toUpperCase()?(c.url+=(c.url.indexOf("?")>=0?"&":"?")+s,c.data=null):c.data=s;var t=[];if(c.resetForm&&t.push(function(){m.resetForm()}),c.clearForm&&t.push(function(){m.clearForm(c.includeHidden)}),!c.dataType&&c.target){var u=c.success||function(){};t.push(function(a){var d=c.replaceTarget?"replaceWith":"html";b(c.target)[d](a).each(u,arguments)})}else c.success&&t.push(c.success);if(c.success=function(a,b,d){for(var e=c.context||this,f=0,g=t.length;f0,z="multipart/form-data",A=m.attr("enctype")==z||m.attr("encoding")==z,B=f.fileapi&&f.formdata;e("fileAPI :"+B);var C,D=(y||A)&&!B;!1!==c.iframe&&(c.iframe||D)?c.closeKeepAlive?b.get(c.closeKeepAlive,function(){C=i(r)}):C=i(r):C=(y||A)&&B?h(r):b.ajax(c),m.removeData("jqxhr").data("jqxhr",C);for(var E=0;E\n \n"),b=this.$input,this.$input=b.clone().val("").insertBefore(b),this._bindInputChange(),b.appendTo(c),b.attr("name",this.options.name),c.insertBefore(this.$input),c},b.prototype._eventToFilename=function(a){return null!=a.target.files?a.target.files[0].name:a.target.value?a.target.value.replace(/^.+\\/,""):void 0},b.prototype._onChange=function(a){var b,c;if(this.$input.val())return c={filename:this._eventToFilename(a)},"function"==typeof(b=this.options).start&&b.start(c),this.$input.trigger("inline_file_upload:start",c),this._ajaxUpload()},b.prototype._bindInputChange=function(){return this.$input.on("change",a.proxy(this._onChange,this))},b}(),a.fn.extend({inlineFileUpload:function(){var c,e;return e=arguments[0],c=2<=arguments.length?b.call(arguments,1):[],this.each(function(){var b;if(b=a(this).data("inline-file-upload"),b||a(this).data("inline-file-upload",b=new d(a(this),e)),"string"==typeof e)return b[e].apply(b,c)})}})}(a.jQuery),function(b){var c=!1;if("function"==typeof define&&define.amd&&(define(b),c=!0),"object"==typeof exports&&(module.exports=b(),c=!0),!c){var d=a.Cookies,e=a.Cookies=b();e.noConflict=function(){return a.Cookies=d,e}}}(function(){function a(){for(var a=0,b={};a1){if(f=a({path:"/"},d.defaults,f),"number"==typeof f.expires){var h=new Date;h.setMilliseconds(h.getMilliseconds()+864e5*f.expires),f.expires=h}try{g=JSON.stringify(e),/^[\{\[]/.test(g)&&(e=g)}catch(a){}return e=c.write?c.write(e,b):encodeURIComponent(String(e)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),b=encodeURIComponent(String(b)),b=b.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),b=b.replace(/[\(\)]/g,escape),document.cookie=[b,"=",e,f.expires?"; expires="+f.expires.toUTCString():"",f.path?"; path="+f.path:"",f.domain?"; domain="+f.domain:"",f.secure?"; secure":""].join("")}b||(g={});for(var i=document.cookie?document.cookie.split("; "):[],j=/(%[0-9A-Z]{2})+/g,k=0;k2;if(null==a&&(a=[]),n&&a.reduce===n)return d&&(b=x.bind(b,d)),e?a.reduce(b,c):a.reduce(b);if(y(a,function(a,f,g){e?c=b.call(d,c,a,f,g):(c=a,e=!0)}),!e)throw new TypeError(z);return c},x.reduceRight=x.foldr=function(a,b,c,d){var e=arguments.length>2;if(null==a&&(a=[]),o&&a.reduceRight===o)return d&&(b=x.bind(b,d)),e?a.reduceRight(b,c):a.reduceRight(b);var f=a.length;if(f!==+f){var g=x.keys(a);f=g.length}if(y(a,function(h,i,j){i=g?g[--f]:--f,e?c=b.call(d,c,a[i],i,j):(c=a[i],e=!0)}),!e)throw new TypeError(z);return c},x.find=x.detect=function(a,b,c){var d;return A(a,function(a,e,f){if(b.call(c,a,e,f))return d=a,!0}),d},x.filter=x.select=function(a,b,c){var d=[];return null==a?d:p&&a.filter===p?a.filter(b,c):(y(a,function(a,e,f){b.call(c,a,e,f)&&d.push(a)}),d)},x.reject=function(a,b,c){return x.filter(a,function(a,d,e){return!b.call(c,a,d,e)},c)},x.every=x.all=function(a,b,d){b||(b=x.identity);var e=!0;return null==a?e:q&&a.every===q?a.every(b,d):(y(a,function(a,f,g){if(!(e=e&&b.call(d,a,f,g)))return c}),!!e)};var A=x.some=x.any=function(a,b,d){b||(b=x.identity);var e=!1;return null==a?e:r&&a.some===r?a.some(b,d):(y(a,function(a,f,g){if(e||(e=b.call(d,a,f,g)))return c}),!!e)};x.contains=x.include=function(a,b){return null!=a&&(s&&a.indexOf===s?-1!=a.indexOf(b):A(a,function(a){return a===b}))},x.invoke=function(a,b){var c=h.call(arguments,2),d=x.isFunction(b);return x.map(a,function(a){return(d?b:a[b]).apply(a,c)})},x.pluck=function(a,b){return x.map(a,x.property(b))},x.where=function(a,b){return x.filter(a,x.matches(b))},x.findWhere=function(a,b){return x.find(a,x.matches(b))},x.max=function(a,b,c){if(!b&&x.isArray(a)&&a[0]===+a[0]&&a.length<65535)return Math.max.apply(Math,a);var d=-1/0,e=-1/0;return y(a,function(a,f,g){var h=b?b.call(c,a,f,g):a;h>e&&(d=a,e=h)}),d},x.min=function(a,b,c){if(!b&&x.isArray(a)&&a[0]===+a[0]&&a.length<65535)return Math.min.apply(Math,a);var d=1/0,e=1/0;return y(a,function(a,f,g){var h=b?b.call(c,a,f,g):a;hd||void 0===c)return 1;if(c>>1;c.call(d,a[h])=0;c--)b=[a[c].apply(this,b)];return b[0]}},x.after=function(a,b){return function(){if(--a<1)return b.apply(this,arguments)}},x.keys=function(a){if(!x.isObject(a))return[];if(v)return v(a);var b=[];for(var c in a)x.has(a,c)&&b.push(c);return b},x.values=function(a){for(var b=x.keys(a),c=b.length,d=new Array(c),e=0;e":">",'"':""","'":"'"}};G.unescape=x.invert(G.escape);var H={escape:new RegExp("["+x.keys(G.escape).join("")+"]","g"),unescape:new RegExp("("+x.keys(G.unescape).join("|")+")","g")};x.each(["escape","unescape"],function(a){x[a]=function(b){return null==b?"":(""+b).replace(H[a],function(b){return G[a][b]})}}),x.result=function(a,b){if(null!=a){var c=a[b];return x.isFunction(c)?c.call(a):c}},x.mixin=function(a){y(x.functions(a),function(b){var c=x[b]=a[b];x.prototype[b]=function(){var a=[this._wrapped];return g.apply(a,arguments),M.call(this,c.apply(x,a))}})};var I=0;x.uniqueId=function(a){var b=++I+"";return a?a+b:b},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var J=/(.)^/,K={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},L=/\\|'|\r|\n|\t|\u2028|\u2029/g;x.template=function(a,b,c){var d;c=x.defaults({},c,x.templateSettings);var e=new RegExp([(c.escape||J).source,(c.interpolate||J).source,(c.evaluate||J).source].join("|")+"|$","g"),f=0,g="__p+='";a.replace(e,function(b,c,d,e,h){return g+=a.slice(f,h).replace(L,function(a){return"\\"+K[a]}),c&&(g+="'+\n((__t=("+c+"))==null?'':_.escape(__t))+\n'"),d&&(g+="'+\n((__t=("+d+"))==null?'':__t)+\n'"),e&&(g+="';\n"+e+"\n__p+='"),f=h+b.length,b}),g+="';\n",c.variable||(g="with(obj||{}){\n"+g+"}\n"),g="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+g+"return __p;\n";try{d=new Function(c.variable||"obj","_",g)}catch(a){throw a.source=g,a}if(b)return d(b,x);var h=function(a){return d.call(this,a,x)};return h.source="function("+(c.variable||"obj")+"){\n"+g+"}",h},x.chain=function(a){return x(a).chain()};var M=function(a){return this._chain?x(a).chain():a};x.mixin(x),y(["pop","push","reverse","shift","sort","splice","unshift"],function(a){var b=d[a];x.prototype[a]=function(){var c=this._wrapped;return b.apply(c,arguments),"shift"!=a&&"splice"!=a||0!==c.length||delete c[0],M.call(this,c)}}),y(["concat","join","slice"],function(a){var b=d[a];x.prototype[a]=function(){return M.call(this,b.apply(this._wrapped,arguments))}}),x.extend(x.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),"function"==typeof define&&define.amd&&define("underscore",[],function(){return x})}.call(this),function(a,b){if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(c,d,e){a.Backbone=b(a,e,c,d)});else if("undefined"!=typeof exports){var c=require("underscore");b(a,exports,c)}else a.Backbone=b(a,{},a._,a.jQuery||a.Zepto||a.ender||a.$)}(this,function(b,c,d,e){var f=b.Backbone,g=[],h=(g.push,g.slice);g.splice;c.VERSION="1.1.2",c.$=e,c.noConflict=function(){return b.Backbone=f,this},c.emulateHTTP=!1,c.emulateJSON=!1;var i=c.Events={on:function(a,b,c){return k(this,"on",a,[b,c])&&b?(this._events||(this._events={}),(this._events[a]||(this._events[a]=[])).push({callback:b,context:c,ctx:c||this}),this):this},once:function(a,b,c){if(!k(this,"once",a,[b,c])||!b)return this;var e=this,f=d.once(function(){e.off(a,f),b.apply(this,arguments)});return f._callback=b,this.on(a,f,c)},off:function(a,b,c){var e,f,g,h,i,j,l,m;if(!this._events||!k(this,"off",a,[b,c]))return this;if(!a&&!b&&!c)return this._events=void 0,this;for(h=a?[a]:d.keys(this._events),i=0,j=h.length;i").attr(a);this.setElement(b,!1)}}}),c.sync=function(a,b,e){var f=y[a];d.defaults(e||(e={}),{emulateHTTP:c.emulateHTTP,emulateJSON:c.emulateJSON});var g={type:f,dataType:"json"};if(e.url||(g.url=d.result(b,"url")||L()),null!=e.data||!b||"create"!==a&&"update"!==a&&"patch"!==a||(g.contentType="application/json",g.data=JSON.stringify(e.attrs||b.toJSON(e))),e.emulateJSON&&(g.contentType="application/x-www-form-urlencoded",g.data=g.data?{model:g.data}:{}),e.emulateHTTP&&("PUT"===f||"DELETE"===f||"PATCH"===f)){g.type="POST",e.emulateJSON&&(g.data._method=f);var h=e.beforeSend;e.beforeSend=function(a){if(a.setRequestHeader("X-HTTP-Method-Override",f),h)return h.apply(this,arguments)}}"GET"===g.type||e.emulateJSON||(g.processData=!1),"PATCH"===g.type&&x&&(g.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var i=e.xhr=c.ajax(d.extend(g,e));return b.trigger("request",b,i,e),i};var x=!(void 0===a||!a.ActiveXObject||a.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),y={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};c.ajax=function(){return c.$.ajax.apply(c.$,arguments)};var z=c.Router=function(a){a||(a={}),a.routes&&(this.routes=a.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},A=/\((.*?)\)/g,B=/(\(\?)?:\w+/g,C=/\*\w+/g,D=/[\-{}\[\]+?.,\\\^$|#\s]/g;d.extend(z.prototype,i,{initialize:function(){},route:function(a,b,e){d.isRegExp(a)||(a=this._routeToRegExp(a)),d.isFunction(b)&&(e=b,b=""),e||(e=this[b]);var f=this;return c.history.route(a,function(d){var g=f._extractParameters(a,d);f.execute(e,g),f.trigger.apply(f,["route:"+b].concat(g)),f.trigger("route",b,g),c.history.trigger("route",f,b,g)}),this},execute:function(a,b){a&&a.apply(this,b)},navigate:function(a,b){return c.history.navigate(a,b),this},_bindRoutes:function(){if(this.routes){this.routes=d.result(this,"routes");for(var a,b=d.keys(this.routes);null!=(a=b.pop());)this.route(a,this.routes[a])}},_routeToRegExp:function(a){return a=a.replace(D,"\\$&").replace(A,"(?:$1)?").replace(B,function(a,b){return b?a:"([^/?]+)"}).replace(C,"([^?]*?)"),new RegExp("^"+a+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(a,b){var c=a.exec(b).slice(1);return d.map(c,function(a,b){return b===c.length-1?a||null:a?decodeURIComponent(a):null})}});var E=c.History=function(){this.handlers=[],d.bindAll(this,"checkUrl"),void 0!==a&&(this.location=a.location,this.history=a.history)},F=/^[#\/]|\s+$/g,G=/^\/+|\/+$/g,H=/msie [\w.]+/,I=/\/$/,J=/#.*$/;E.started=!1,d.extend(E.prototype,i,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(a){var b=(a||this).location.href.match(/#(.*)$/);return b?b[1]:""},getFragment:function(a,b){if(null==a)if(this._hasPushState||!this._wantsHashChange||b){a=decodeURI(this.location.pathname+this.location.search);var c=this.root.replace(I,"");a.indexOf(c)||(a=a.slice(c.length))}else a=this.getHash();return a.replace(F,"")},start:function(b){if(E.started)throw new Error("Backbone.history has already been started");E.started=!0,this.options=d.extend({root:"/"},this.options,b),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var e=this.getFragment(),f=document.documentMode,g=H.exec(navigator.userAgent.toLowerCase())&&(!f||f<=7);if(this.root=("/"+this.root+"/").replace(G,"/"),g&&this._wantsHashChange){var h=c.$('