HtmlToText
) /gi,tn=/^(?:select|textarea)/i,nn=/\s+/,rn=/([?&])_=[^&]*/,on=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,an=h.fn.load,sn={},ln={},un=["*/"]+["*"];try{$t=_.href}catch(cn){$t=m.createelement("a"),$t.href="",$t=$t.href}rt=on.exec($t.tolowercase())||[],h.fn.extend({load:function(e,n,r){if("string"!=typeof e&&an)return an.apply(this,arguments);if(!this.length)return this;var i=e.indexof(" ");if(i =0){var o=e.slice(i,e.length);e=e.slice(0,i)}var a="get";n&&(h.isfunction(n)?(r=n,n=t):"object"==typeof n&&(n=h.param(n,h.ajaxsettings.traditional),a="post"));var s=this;return h.ajax({url:e,type:a,datatype:"html",data:n,complete:function(e,t,n){n=e.responsetext,e.isresolved()&&(e.done(function(e){n=e}),s.html(o?h(" ").append(n.replace(en,"")).find(o):n)),r&&s.each(r,[n,t,e])}}),this},serialize:function(){return h.param(this.serializearray())},serializearray:function(){return this.map(function(){return this.elements?h.makearray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||tn.test(this.nodename)||jt.test(this.type))}).map(function(e,t){var n=h(this).val();return null==n?null:h.isarray(n)?h.map(n,function(e){return{name:t.name,value:e.replace(vt,"\r\n")}}):{name:t.name,value:n.replace(vt,"\r\n")}}).get()}}),h.each("ajaxstart ajaxstop ajaxcomplete ajaxerror ajaxsuccess ajaxsend".split(" "),function(e,t){h.fn[t]=function(e){return this.on(t,e)}}),h.each(["get","post"],function(e,n){h[n]=function(e,r,i,o){return h.isfunction(r)&&(o=o||i,i=r,r=t),h.ajax({type:n,url:e,data:r,success:i,datatype:o})}}),h.extend({getscript:function(e,n){return h.get(e,t,n,"script")},getjson:function(e,t,n){return h.get(e,t,n,"json")},ajaxsetup:function(e,t){return t?d(e,h.ajaxsettings):(t=e,e=h.ajaxsettings),d(e,t),e},ajaxsettings:{url:$t,islocal:yt.test(rt[1]),global:!0,type:"get",contenttype:"application/x-www-form-urlencoded",processdata:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":un},contents:{xml:/xml/,html:/html/,json:/json/},responsefields:{xml:"responsexml",text:"responsetext"},converters:{"* text":e.string,"text html":!0,"text json":h.parsejson,"text xml":h.parsexml},flatoptions:{context:!0,url:!0}},ajaxprefilter:h(sn),ajaxtransport:h(ln),ajax:function(e,n){function r(e,n,r,a){if(2!==n){n=2,l&&cleartimeout(l),s=t,o=a||"",c.readystate=e 0?4:0;var f,p,h,t,w,e=n,k=r?c(m,c,r):t;if(e =200&&300 e||304===e)if(m.ifmodified&&((t=c.getresponseheader("last-modified"))&&(h.lastmodified[i]=t),(w=c.getresponseheader("etag"))&&(h.etag[i]=w)),304===e)e="notmodified",f=!0;else try{p=u(m,k),e="success",f=!0}catch(s){e="parsererror",h=s}else h=e,(!e||e)&&(e="error",0 e&&(e=0));c.status=e,c.statustext=""+(n||e),f?v.resolvewith(g,[p,e,c]):v.rejectwith(g,[c,e,h]),c.statuscode(x),x=t,d&&y.trigger("ajax"+(f?"success":"error"),[c,m,f?p:h]),b.firewith(g,[c,e]),d&&(y.trigger("ajaxcomplete",[c,m]),--h.active||h.event.trigger("ajaxstop"))}}"object"==typeof e&&(n=e,e=t),n=n||{};var i,o,a,s,l,f,d,h,m=h.ajaxsetup({},n),g=m.context||m,y=g!==m&&(g.nodetype||g instanceof h)?h(g):h.event,v=h.deferred(),b=h.callbacks("once memory"),x=m.statuscode||{},t={},w={},n=0,c={readystate:0,setrequestheader:function(e,t){if(!n){var n=e.tolowercase();e=w[n]=w[n]||e,t[e]=t}return this},getallresponseheaders:function(){return 2===n?o:null},getresponseheader:function(e){var n;if(2===n){if(!a)for(a={};n=gt.exec(o);)a[n[1].tolowercase()]=n[2];n=a[e.tolowercase()]}return n===t?null:n},overridemimetype:function(e){return n||(m.mimetype=e),this},abort:function(e){return e=e||"abort",s&&s.abort(e),r(0,e),this}};if(v.promise(c),c.success=c.done,c.error=c.fail,c.complete=b.add,c.statuscode=function(e){if(e){var t;if(2 n)for(t in e)x[t]=[x[t],e[t]];else t=e[c.status],c.then(t,t)}return this},m.url=((e||m.url)+"").replace(ut,"").replace(kt,rt[1]+"//"),m.datatypes=h.trim(m.datatype||"*").tolowercase().split(nn),null==m.crossdomain&&(f=on.exec(m.url.tolowercase()),m.crossdomain=!(!f||f[1]==rt[1]&&f[2]==rt[2]&&(f[3]||("http:"===f[1]?80:443))==(rt[3]||("http:"===rt[1]?80:443)))),m.data&&m.processdata&&"string"!=typeof m.data&&(m.data=h.param(m.data,m.traditional)),p(sn,m,n,c),2===n)return!1;if(d=m.global,m.type=m.type.touppercase(),m.hascontent=!qt.test(m.type),d&&0===h.active++&&h.event.trigger("ajaxstart"),!m.hascontent&&(m.data&&(m.url+=(zt.test(m.url)?"&":"?")+m.data,delete m.data),i=m.url,m.cache===!1)){var e=h.now(),k=m.url.replace(rn,"$1_="+e);m.url=k+(k===m.url?(zt.test(m.url)?"&":"?")+"_="+e:"")}(m.data&&m.hascontent&&m.contenttype!==!1||n.contenttype)&&c.setrequestheader("content-type",m.contenttype),m.ifmodified&&(i=i||m.url,h.lastmodified[i]&&c.setrequestheader("if-modified-since",h.lastmodified[i]),h.etag[i]&&c.setrequestheader("if-none-match",h.etag[i])),c.setrequestheader("accept",m.datatypes[0]&&m.accepts[m.datatypes[0]]?m.accepts[m.datatypes[0]]+("*"!==m.datatypes[0]?", "+un+"; q=0.01":""):m.accepts["*"]);for(h in m.headers)c.setrequestheader(h,m.headers[h]);if(m.beforesend&&(m.beforesend.call(g,c,m)===!1||2===n))return c.abort(),!1;for(h in{success:1,error:1,complete:1})c[h](m[h]);if(s=p(ln,m,n,c)){c.readystate=1,d&&y.trigger("ajaxsend",[c,m]),m.async&&m.timeout 0&&(l=settimeout(function(){c.abort("timeout")},m.timeout));try{n=1,s.send(t,r)}catch(s){if(!(2 n))throw s;r(-1,s)}}else r(-1,"no transport");return c},param:function(e,n){var r=[],i=function(e,t){t=h.isfunction(t)?t():t,r[r.length]=encodeuricomponent(e)+"="+encodeuricomponent(t)};if(n===t&&(n=h.ajaxsettings.traditional),h.isarray(e)||e.jquery&&!h.isplainobject(e))h.each(e,function(){i(this.name,this.value)});else for(var o in e)f(o,e[o],n,i);return r.join("&").replace(xt,"+")}}),h.extend({active:0,lastmodified:{},etag:{}});var fn=h.now(),dn=/(\=)\?(&|$)|\?\?/i;h.ajaxsetup({jsonp:"callback",jsonpcallback:function(){return h.expando+"_"+fn++}}),h.ajaxprefilter("json jsonp",function(t,n,r){var i="application/x-www-form-urlencoded"===t.contenttype&&"string"==typeof t.data;if("jsonp"===t.datatypes[0]||t.jsonp!==!1&&(dn.test(t.url)||i&&dn.test(t.data))){var o,a=t.jsonpcallback=h.isfunction(t.jsonpcallback)?t.jsonpcallback():t.jsonpcallback,s=e[a],l=t.url,u=t.data,c="$1"+a+"$2";return t.jsonp!==!1&&(l=l.replace(dn,c),t.url===l&&(i&&(u=u.replace(dn,c)),t.data===u&&(l+=(/\?/.test(l)?"&":"?")+t.jsonp+"="+a))),t.url=l,t.data=u,e[a]=function(e){o=[e]},r.always(function(){e[a]=s,o&&h.isfunction(s)&&e[a](o[0])}),t.converters["script json"]=function(){return o||h.error(a+" was not called"),o[0]},t.datatypes[0]="json","script"}}),h.ajaxsetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return h.globaleval(e),e}}}),h.ajaxprefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossdomain&&(e.type="get",e.global=!1)}),h.ajaxtransport("script",function(e){if(e.crossdomain){var n,r=m.head||m.getelementsbytagname("head")[0]||m.documentelement;return{send:function(i,o){n=m.createelement("script"),n.async="async",e.scriptcharset&&(n.charset=e.scriptcharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){(i||!n.readystate||/loaded|complete/.test(n.readystate))&&(n.onload=n.onreadystatechange=null,r&&n.parentnode&&r.removechild(n),n=t,i||o(200,"success"))},r.insertbefore(n,r.firstchild)},abort:function(){n&&n.onload(0,1)}}}});var pn,hn=e.activexobject?function(){for(var e in pn)pn[e](0,1)}:!1,mn=0;h.ajaxsettings.xhr=e.activexobject?function(){return!this.islocal&&l()||s()}:l,function(e){h.extend(h.support,{ajax:!!e,cors:!!e&&"withcredentials"in e})}(h.ajaxsettings.xhr()),h.support.ajax&&h.ajaxtransport(function(n){if(!n.crossdomain||h.support.cors){var r;return{send:function(i,o){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrfields)for(s in n.xhrfields)l[s]=n.xhrfields[s];n.mimetype&&l.overridemimetype&&l.overridemimetype(n.mimet