mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-17 14:55:05 -05:00
13 lines
395 KiB
JavaScript
13 lines
395 KiB
JavaScript
|
!function(t,e){function n(t){var e=t.length,n=oe.type(t);return oe.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||"function"!==n&&(0===e||"number"==typeof e&&e>0&&e-1 in t)}function r(t){var e=de[t]={};return oe.each(t.match(ae)||[],function(t,n){e[n]=!0}),e}function i(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=oe.expando+Math.random()}function o(t,n,r){var i;if(r===e&&1===t.nodeType)if(i="data-"+n.replace(ye,"-$1").toLowerCase(),r=t.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:ve.test(r)?JSON.parse(r):r}catch(o){}ge.set(t,n,r)}else r=e;return r}function s(){return!0}function a(){return!1}function u(){try{return W.activeElement}catch(t){}}function c(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function l(t,e,n){if(oe.isFunction(e))return oe.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return oe.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(Ae.test(e))return oe.filter(e,t,n);e=oe.filter(e,t)}return oe.grep(t,function(t){return ee.call(e,t)>=0!==n})}function f(t,e){return oe.nodeName(t,"table")&&oe.nodeName(1===e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function h(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function p(t){var e=Fe.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function d(t,e){for(var n=t.length,r=0;n>r;r++)me.set(t[r],"globalEval",!e||me.get(e[r],"globalEval"))}function g(t,e){var n,r,i,o,s,a,u,c;if(1===e.nodeType){if(me.hasData(t)&&(o=me.access(t),s=oe.extend({},o),c=o.events,me.set(e,s),c)){delete s.handle,s.events={};for(i in c)for(n=0,r=c[i].length;r>n;n++)oe.event.add(e,i,c[i][n])}ge.hasData(t)&&(a=ge.access(t),u=oe.extend({},a),ge.set(e,u))}}function m(t,n){var r=t.getElementsByTagName?t.getElementsByTagName(n||"*"):t.querySelectorAll?t.querySelectorAll(n||"*"):[];return n===e||n&&oe.nodeName(t,n)?oe.merge([t],r):r}function v(t,e){var n=e.nodeName.toLowerCase();"input"===n&&qe.test(t.type)?e.checked=t.checked:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}function y(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),r=e,i=Qe.length;i--;)if(e=Qe[i]+n,e in t)return e;return r}function b(t,e){return t=e||t,"none"===oe.css(t,"display")||!oe.contains(t.ownerDocument,t)}function x(e){return t.getComputedStyle(e,null)}function w(t,e){for(var n,r,i,o=[],s=0,a=t.length;a>s;s++)r=t[s],r.style&&(o[s]=me.get(r,"olddisplay"),n=r.style.display,e?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&b(r)&&(o[s]=me.access(r,"olddisplay",N(r.nodeName)))):o[s]||(i=b(r),(n&&"none"!==n||!i)&&me.set(r,"olddisplay",i?n:oe.css(r,"display"))));for(s=0;a>s;s++)r=t[s],r.style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[s]||"":"none"));return t}function S(t,e,n){var r=We.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function _(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,s=0;4>o;o+=2)"margin"===n&&(s+=oe.css(t,n+Ke[o],!0,i)),r?("content"===n&&(s-=oe.css(t,"padding"+Ke[o],!0,i)),"margin"!==n&&(s-=oe.css(t,"border"+Ke[o]+"Width",!0,i))):(s+=oe.css(t,"padding"+Ke[o],!0,i),"padding"!==n&&(s+=oe.css(t,"border"+Ke[o]+"Width",!0,i)));return s}function E(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=x(t),s=oe.support.boxSizing&&"border-box"===oe.css(t,"boxSizing",!1,o);if(0>=i||null==i){if(i=Pe(t,e,o),(0>i||null==i)&&(i=t.style[e]),$e.test(i))return i;r=s&&(oe.support.boxSizingReliable||i===t.style[e]),i=parseFloat(i)||0}return i+_(t,e,n||(s?"border":"content"),r,o)+"px"}function N(t){var e=W,n=Xe[t];return n||(n=k(t,e),"none"!==n&&n||(Ue=(Ue||oe("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(e.documentElement),e=(Ue[0].contentWindow||Ue[0].contentDocument).document,e.write("<!doctype html><html><body>"),e.close(),n=k(t,e),Ue.detach()),Xe[t]=n),n}function k(t,e){var n=oe(e.createElement(t)).appendTo(e.body),r=oe.css(n[0],
|
||
|
}),lt:h(function(t,e,n){for(var r=0>n?n+e:n;--r>=0;)t.push(r);return t}),gt:h(function(t,e,n){for(var r=0>n?n+e:n;++r<e;)t.push(r);return t})}};for(E in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})k.pseudos[E]=l(E);for(E in{submit:!0,reset:!0})k.pseudos[E]=f(E);O=s.compile=function(t,e){var n,r=[],i=[],o=G[t+" "];if(!o){for(e||(e=p(t)),n=e.length;n--;)o=b(e[n]),o[z]?r.push(o):i.push(o);o=G(t,x(i,r))}return o},k.pseudos.nth=k.pseudos.eq,_.prototype=k.filters=k.pseudos,k.setFilters=new _,U.sortStable=z.split("").sort(V).join("")===z,I(),[0,0].sort(V),U.detectDuplicates=X,o(function(t){if(t.innerHTML="<a href='#'></a>","#"!==t.firstChild.getAttribute("href"))for(var e="type|href|height|width".split("|"),n=e.length;n--;)k.attrHandle[e[n]]=c}),o(function(t){if(null!=t.getAttribute("disabled"))for(var e=ie.split("|"),n=e.length;n--;)k.attrHandle[e[n]]=u}),oe.find=s,oe.expr=s.selectors,oe.expr[":"]=oe.expr.pseudos,oe.unique=s.uniqueSort,oe.text=s.getText,oe.isXMLDoc=s.isXML,oe.contains=s.contains}(t);var de={};oe.Callbacks=function(t){t="string"==typeof t?de[t]||r(t):oe.extend({},t);var n,i,o,s,a,u,c=[],l=!t.once&&[],f=function(e){for(n=t.memory&&e,i=!0,u=s||0,s=0,a=c.length,o=!0;c&&a>u;u++)if(c[u].apply(e[0],e[1])===!1&&t.stopOnFalse){n=!1;break}o=!1,c&&(l?l.length&&f(l.shift()):n?c=[]:h.disable())},h={add:function(){if(c){var e=c.length;!function r(e){oe.each(e,function(e,n){var i=oe.type(n);"function"===i?t.unique&&h.has(n)||c.push(n):n&&n.length&&"string"!==i&&r(n)})}(arguments),o?a=c.length:n&&(s=e,f(n))}return this},remove:function(){return c&&oe.each(arguments,function(t,e){for(var n;(n=oe.inArray(e,c,n))>-1;)c.splice(n,1),o&&(a>=n&&a--,u>=n&&u--)}),this},has:function(t){return t?oe.inArray(t,c)>-1:!(!c||!c.length)},empty:function(){return c=[],a=0,this},disable:function(){return c=l=n=e,this},disabled:function(){return!c},lock:function(){return l=e,n||h.disable(),this},locked:function(){return!l},fireWith:function(t,e){return e=e||[],e=[t,e.slice?e.slice():e],!c||i&&!l||(o?l.push(e):f(e)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!i}};return h},oe.extend({Deferred:function(t){var e=[["resolve","done",oe.Callbacks("once memory"),"resolved"],["reject","fail",oe.Callbacks("once memory"),"rejected"],["notify","progress",oe.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return oe.Deferred(function(n){oe.each(e,function(e,o){var s=o[0],a=oe.isFunction(t[e])&&t[e];i[o[1]](function(){var t=a&&a.apply(this,arguments);t&&oe.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===r?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?oe.extend(t,r):r}},i={};return r.pipe=r.then,oe.each(e,function(t,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=te.call(arguments),s=o.length,a=1!==s||t&&oe.isFunction(t.promise)?s:0,u=1===a?t:oe.Deferred(),c=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?te.call(arguments):i,r===e?u.notifyWith(n,r):--a||u.resolveWith(n,r)}};if(s>1)for(e=new Array(s),n=new Array(s),r=new Array(s);s>i;i++)o[i]&&oe.isFunction(o[i].promise)?o[i].promise().done(c(i,r,o)).fail(u.reject).progress(c(i,n,e)):--a;return a||u.resolveWith(r,o),u.promise()}}),oe.support=function(e){var n=W.createElement("input"),r=W.createDocumentFragment(),i=W.createElement("div"),o=W.createElement("select"),s=o.appendChild(W.createElement("option"));return n.type?(n.type="checkbox",e.checkOn=""!==n.value,e.optSelected=s.selected,e.reliableMarginRight=!0,e.boxSizingReliable=!0,e.pixelPosition=!1,n.checked=!0,e.noCloneChecked=n.cloneNode(!0).checked,o.disabled=!0,e.optDisabled=!s.disabled,n=W.createElement("input"),n.value="t",n.type="radio",e.radioValue="t"===n.value,
|
||
|
})}}),oe.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Pe(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,n,r,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,s,a,u=oe.camelCase(n),c=t.style;return n=oe.cssProps[u]||(oe.cssProps[u]=y(c,u)),a=oe.cssHooks[n]||oe.cssHooks[u],r===e?a&&"get"in a&&(o=a.get(t,!1,i))!==e?o:c[n]:(s=typeof r,"string"===s&&(o=Ge.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(oe.css(t,n)),s="number"),null==r||"number"===s&&isNaN(r)||("number"!==s||oe.cssNumber[u]||(r+="px"),oe.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(c[n]="inherit"),a&&"set"in a&&(r=a.set(t,r,i))===e||(c[n]=r)),void 0)}},css:function(t,n,r,i){var o,s,a,u=oe.camelCase(n);return n=oe.cssProps[u]||(oe.cssProps[u]=y(t.style,u)),a=oe.cssHooks[n]||oe.cssHooks[u],a&&"get"in a&&(o=a.get(t,!0,r)),o===e&&(o=Pe(t,n,i)),"normal"===o&&n in Ye&&(o=Ye[n]),""===r||r?(s=parseFloat(o),r===!0||oe.isNumeric(s)?s||0:o):o}}),Pe=function(t,n,r){var i,o,s,a=r||x(t),u=a?a.getPropertyValue(n)||a[n]:e,c=t.style;return a&&(""!==u||oe.contains(t.ownerDocument,t)||(u=oe.style(t,n)),$e.test(u)&&He.test(n)&&(i=c.width,o=c.minWidth,s=c.maxWidth,c.minWidth=c.maxWidth=c.width=u,u=a.width,c.width=i,c.minWidth=o,c.maxWidth=s)),u},oe.each(["height","width"],function(t,e){oe.cssHooks[e]={get:function(t,n,r){return n?0===t.offsetWidth&&Je.test(oe.css(t,"display"))?oe.swap(t,Ve,function(){return E(t,e,r)}):E(t,e,r):void 0},set:function(t,n,r){var i=r&&x(t);return S(t,n,r?_(t,e,r,oe.support.boxSizing&&"border-box"===oe.css(t,"boxSizing",!1,i),i):0)}}}),oe(function(){oe.support.reliableMarginRight||(oe.cssHooks.marginRight={get:function(t,e){return e?oe.swap(t,{display:"inline-block"},Pe,[t,"marginRight"]):void 0}}),!oe.support.pixelPosition&&oe.fn.position&&oe.each(["top","left"],function(t,e){oe.cssHooks[e]={get:function(t,n){return n?(n=Pe(t,e),$e.test(n)?oe(t).position()[e]+"px":n):void 0}}})}),oe.expr&&oe.expr.filters&&(oe.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},oe.expr.filters.visible=function(t){return!oe.expr.filters.hidden(t)}),oe.each({margin:"",padding:"",border:"Width"},function(t,e){oe.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[t+Ke[r]+e]=o[r]||o[r-2]||o[0];return i}},He.test(t)||(oe.cssHooks[t+e].set=S)});var Ze=/%20/g,tn=/\[\]$/,en=/\r?\n/g,nn=/^(?:submit|button|image|reset|file)$/i,rn=/^(?:input|select|textarea|keygen)/i;oe.fn.extend({serialize:function(){return oe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=oe.prop(this,"elements");return t?oe.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!oe(this).is(":disabled")&&rn.test(this.nodeName)&&!nn.test(t)&&(this.checked||!qe.test(t))}).map(function(t,e){var n=oe(this).val();return null==n?null:oe.isArray(n)?oe.map(n,function(t){return{name:e.name,value:t.replace(en,"\r\n")}}):{name:e.name,value:n.replace(en,"\r\n")}}).get()}}),oe.param=function(t,n){var r,i=[],o=function(t,e){e=oe.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(n===e&&(n=oe.ajaxSettings&&oe.ajaxSettings.traditional),oe.isArray(t)||t.jquery&&!oe.isPlainObject(t))oe.each(t,function(){o(this.name,this.value)});else for(r in t)j(r,t[r],n,o);return i.join("&").replace(Ze,"+")},oe.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){oe.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),oe.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===argument
|
||
|
},t.getDiscoItems=function(t,e,n){this.sendIq({to:t,type:"get",discoItems:{node:e}},n)},t.updateCaps=function(){this.disco.caps={node:this.config.capsNode||"https://stanza.io",hash:"sha-1",ver:n({identities:this.disco.identities[""],features:this.disco.features[""],extensions:this.disco.extensions[""]},"sha-1")}},t.on("iq:get:discoInfo",function(e){var n=e.discoInfo.node,r=e.discoInfo.node;n===t.disco.caps.node+"#"+t.disco.caps.ver&&(r=n,n=""),t.sendIq(e.resultReply({discoInfo:{node:r,identities:t.disco.identities[n]||[],features:t.disco.features[n]||[],extensions:t.disco.extensions[n]||[]}}))}),t.on("iq:get:discoItems",function(e){var n=e.discoInfo.node;t.sendIq(e.resultReply({discoItems:{node:n,items:t.disco.items[n]||[]}}))})}},{"../../vendor/lodash":90,"../stanza/caps":24,"../stanza/disco":29,crypto:60}],10:[function(t,e){t("../stanza/forwarded"),e.exports=function(t){t.disco.addFeature("urn:xmpp:forward:0")}},{"../stanza/forwarded":31}],11:[function(t,e){t("../stanza/idle"),e.exports=function(t){t.disco.addFeature("urn:xmpp:idle:0")}},{"../stanza/idle":32}],12:[function(t,e){t("../stanza/visibility"),e.exports=function(t){t.goInvisible=function(){this.sendIq({type:"set",invisible:!0})},t.goVisible=function(){this.sendIq({type:"set",visible:!0})}}},{"../stanza/visibility":51}],13:[function(t,e){t("../stanza/mam"),e.exports=function(t){t.disco.addFeature("urn:xmpp:mam:tmp"),t.getHistory=function(t,e){var n=this,r=this.nextId();t=t||{},t.queryid=r;var i=[];this.on("mam:"+r,"session",function(t){i.push(t)}),e=e||function(){},this.sendIq({type:"get",id:r,mamQuery:t},function(t,o){t?e(t):(n.off("mam:"+r),o.mamQuery.results=i,e(null,o))})},t.getHistoryPreferences=function(e){t.sendIq({type:"get",mamPrefs:{}},e)},t.setHistoryPreferences=function(e,n){t.sendIq({type:"set",mamPrefs:e},n)},t.on("message",function(e){e._extensions.mam&&t.emit("mam:"+e.mam.queryid,e)})}},{"../stanza/mam":34}],14:[function(t,e){t("../stanza/muc"),e.exports=function(t){t.joinRoom=function(t,e,n){n=n||{},n.to=t+"/"+e,n.caps=this.disco.caps,n.joinMuc=n.joinMuc||{},this.sendPresence(n)},t.leaveRoom=function(t,e,n){n=n||{},n.to=t+"/"+e,n.type="unavailable",this.sendPresence(n)}}},{"../stanza/muc":36}],15:[function(t,e){t("../stanza/pubsub"),e.exports=function(t){t.on("message",function(e){e._extensions.event&&t.emit("pubsubEvent",e)}),t.subscribeToNode=function(e,n,r){t.sendIq({type:"set",to:e,pubsub:{subscribe:{node:n.node,jid:n.jid||t.jid}}},r)},t.unsubscribeFromNode=function(e,n,r){t.sendIq({type:"set",to:e,pubsub:{unsubscribe:{node:n.node,jid:n.jid||t.jid.split("/")[0]}}},r)},t.publish=function(e,n,r,i){t.sendIq({type:"set",to:e,pubsub:{publish:{node:n,item:r}}},i)},t.getItem=function(e,n,r,i){t.sendIq({type:"get",to:e,pubsub:{retrieve:{node:n,item:r}}},i)},t.getItems=function(e,n,r,i){r=r||{},r.node=n,t.sendIq({type:"get",to:e,pubsub:{retrieve:{node:n,max:r.max},rsm:r.rsm}},i)},t.retract=function(e,n,r,i,o){t.sendIq({type:"set",to:e,pubsub:{retract:{node:n,notify:i,id:r}}},o)},t.purgeNode=function(e,n,r){t.sendIq({type:"set",to:e,pubsubOwner:{purge:n}},r)},t.deleteNode=function(e,n,r){t.sendIq({type:"set",to:e,pubsubOwner:{del:n}},r)},t.createNode=function(e,n,r,i){var o={type:"set",to:e,pubsubOwner:{create:n}};r&&(o.pubsubOwner.config={form:r}),t.sendIq(o,i)}}},{"../stanza/pubsub":38}],16:[function(t,e){t("../stanza/receipts"),e.exports=function(t){t.disco.addFeature("urn:xmpp:receipts"),t.on("message",function(e){var n={normal:!0,chat:!0,headline:!0};n[e.type]&&e.requestReceipt&&!e._extensions.receipt&&t.sendMessage({to:e.from,receipt:{id:e.id},id:e.id}),e._extensions.receipt&&t.emit("receipt:"+e.receipt.id)})}},{"../stanza/receipts":39}],17:[function(t,e){t("../stanza/time"),e.exports=function(t){t.disco.addFeature("urn:xmpp:time"),t.getTime=function(t,e){this.sendIq({to:t,type:"get",time:!0},e)},t.on("iq:get:time",function(e){var n=new Date;t.sendIq(e.resultReply({time:{utc:n,tzo:n.getTimezoneOffset()}}))})}},{"../stanza/time":49}],18:[function(t,e){t("../stanza/version"),e.exports=function(t){t.disco.addFeature("jabber:iq:version"),t.on("iq
|
||
|
var r=document.createElementNS(this.NS,"history");this.xml.appendChild(r),t.maxchars&&r.setAttribute(""+t.maxchars),t.maxstanzas&&r.setAttribute(""+t.maxstanzas),t.seconds&&r.setAttribute(""+t.seconds),t.since&&r.setAttribute(t.since.toISOString())}},i.extend(o,r),n.MUCJoin=r},{"./iq":33,"./message":35,"./presence":37,jxt:74}],37:[function(t,e){function n(t,e){return r.init(this,e,t)}t("../../vendor/lodash");var r=t("jxt");n.prototype={constructor:{value:n},_name:"presence",NS:"jabber:client",EL:"presence",toString:r.toString,toJSON:r.toJSON,get lang(){return this.xml.getAttributeNS(r.XML_NS,"lang")||""},set lang(t){this.xml.setAttributeNS(r.XML_NS,"lang",t)},get id(){return r.getAttribute(this.xml,"id")},set id(t){r.setAttribute(this.xml,"id",t)},get to(){return r.getAttribute(this.xml,"to")},set to(t){r.setAttribute(this.xml,"to",t)},get from(){return r.getAttribute(this.xml,"from")},set from(t){r.setAttribute(this.xml,"from",t)},get type(){return r.getAttribute(this.xml,"type","available")},set type(t){"available"===t&&(t=!1),r.setAttribute(this.xml,"type",t)},get status(){var t=this.$status;return t[this.lang]||""},get $status(){return r.getSubLangText(this.xml,this.NS,"status",this.lang)},set status(t){r.setSubLangText(this.xml,this.NS,"status",t,this.lang)},get priority(){return r.getSubText(this.xml,this.NS,"priority")},set priority(t){r.setSubText(this.xml,this.NS,"priority",t)},get show(){return r.getSubText(this.xml,this.NS,"show")},set show(t){r.setSubText(this.xml,this.NS,"show",t)}},r.topLevel(n),e.exports=n},{"../../vendor/lodash":90,jxt:74}],38:[function(t,e,n){function r(t,e){return v.init(this,e,t)}function i(t,e){return v.init(this,e,t)}function o(t,e){return v.init(this,e,t)}function s(t,e){return v.init(this,e,t)}function a(t,e){return v.init(this,e,t)}function u(t,e){return v.init(this,e,t)}function c(t,e){return v.init(this,e,t)}function l(t,e){return v.init(this,e,t)}function f(t,e){return v.init(this,e,t)}function h(t,e){return v.init(this,e,t)}function p(t,e){return v.init(this,e,t)}function d(t,e){return v.init(this,e,t)}function g(t,e){return v.init(this,e,t)}var m=t("../../vendor/lodash"),v=t("jxt"),y=t("./iq"),b=t("./message"),x=t("./dataforms").DataForm,w=t("./rsm");r.prototype={constructor:{value:r},_name:"pubsub",NS:"http://jabber.org/protocol/pubsub",EL:"pubsub",toString:v.toString,toJSON:v.toJSON,get publishOptions(){var t=v.find(this.xml,this.NS,"publish-options");return t.length&&t[0].childNodes.length?new x({},t[0].childNodes[0]):void 0},set publishOptions(t){var e=v.findOrCreate(this.xml,this.NS,"publish-options");if(t){var n=new x(t);e.appendChild(n.xml)}}},i.prototype={constructor:{value:i},_name:"pubsubOwner",NS:"http://jabber.org/protocol/pubsub#owner",EL:"pubsub",toString:v.toString,toJSON:v.toJSON,get create(){return v.getSubAttribute(this.xml,this.NS,"create","node")},set create(t){v.setSubAttribute(this.xml,this.NS,"create","node",t)},get purge(){return v.getSubAttribute(this.xml,this.NS,"purge","node")},set purge(t){v.setSubAttribute(this.xml,this.NS,"purge","node",t)},get del(){return v.getSubAttribute(this.xml,this.NS,"delete","node")},set del(t){v.setSubAttribute(this.xml,this.NS,"delete","node",t)},get redirect(){var t=v.find(this.xml,this.NS,"delete");return t.length?v.getSubAttribute(t,this.NS,"redirect","uri"):""},set redirect(t){var e=v.findOrCreate(this.xml,this.NS,"delete");v.setSubAttribute(e,this.NS,"redirect","uri",t)}},o.prototype={constructor:{value:o},_name:"config",NS:"http://jabber.org/protocol/pubsub#owner",EL:"configure",toString:v.toString,toJSON:v.toJSON,get node(){return v.getAttribute(this.xml,"node")},set node(t){v.setAttribute(this.xml,"node",t)}},s.prototype={constructor:{value:s},_name:"event",NS:"http://jabber.org/protocol/pubsub#event",EL:"event",toString:v.toString,toJSON:v.toJSON},a.prototype={constructor:{value:a},_name:"subscribe",NS:"http://jabber.org/protocol/pubsub",EL:"subscribe",toString:v.toString,toJSON:v.toJSON,get node(){return v.getAttribute(this.xml,"node")},set node(t){v.setAttribute(this.xml,"node",t)},get jid(){return v.getAtt
|
||
|
},s.parallelLimit=function(t,e,n){x({map:m(e),each:f(e)},t,n)},s.series=function(t,e){if(e=e||function(){},t.constructor===Array)s.mapSeries(t,function(t,e){t&&t(function(t){var n=Array.prototype.slice.call(arguments,1);n.length<=1&&(n=n[0]),e.call(null,t,n)})},e);else{var n={};s.eachSeries(l(t),function(e,r){t[e](function(t){var i=Array.prototype.slice.call(arguments,1);i.length<=1&&(i=i[0]),n[e]=i,r(t)})},function(t){e(t,n)})}},s.iterator=function(t){var e=function(n){var r=function(){return t.length&&t[n].apply(null,arguments),r.next()};return r.next=function(){return n<t.length-1?e(n+1):null},r};return e(0)},s.apply=function(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e.concat(Array.prototype.slice.call(arguments)))}};var w=function(t,e,n,r){var i=[];t(e,function(t,e){n(t,function(t,n){i=i.concat(n||[]),e(t)})},function(t){r(t,i)})};s.concat=h(w),s.concatSeries=d(w),s.whilst=function(t,e,n){t()?e(function(r){return r?n(r):(s.whilst(t,e,n),void 0)}):n()},s.doWhilst=function(t,e,n){t(function(r){return r?n(r):(e()?s.doWhilst(t,e,n):n(),void 0)})},s.until=function(t,e,n){t()?n():e(function(r){return r?n(r):(s.until(t,e,n),void 0)})},s.doUntil=function(t,e,n){t(function(r){return r?n(r):(e()?n():s.doUntil(t,e,n),void 0)})},s.queue=function(t,n){function r(t,e,r,i){e.constructor!==Array&&(e=[e]),a(e,function(e){var o={data:e,callback:"function"==typeof i?i:null};r?t.tasks.unshift(o):t.tasks.push(o),t.saturated&&t.tasks.length===n&&t.saturated(),s.setImmediate(t.process)})}void 0===n&&(n=1);var i=0,o={tasks:[],concurrency:n,saturated:null,empty:null,drain:null,push:function(t,e){r(o,t,!1,e)},unshift:function(t,e){r(o,t,!0,e)},process:function(){if(i<o.concurrency&&o.tasks.length){var n=o.tasks.shift();o.empty&&0===o.tasks.length&&o.empty(),i+=1;var r=function(){i-=1,n.callback&&n.callback.apply(n,arguments),o.drain&&0===o.tasks.length+i&&o.drain(),o.process()},s=e(r);t(n.data,s)}},length:function(){return o.tasks.length},running:function(){return i}};return o},s.cargo=function(t,e){var n=!1,r=[],i={tasks:r,payload:e,saturated:null,empty:null,drain:null,push:function(t,n){t.constructor!==Array&&(t=[t]),a(t,function(t){r.push({data:t,callback:"function"==typeof n?n:null}),i.saturated&&r.length===e&&i.saturated()}),s.setImmediate(i.process)},process:function o(){if(!n){if(0===r.length)return i.drain&&i.drain(),void 0;var s="number"==typeof e?r.splice(0,e):r.splice(0),c=u(s,function(t){return t.data});i.empty&&i.empty(),n=!0,t(c,function(){n=!1;var t=arguments;a(s,function(e){e.callback&&e.callback.apply(null,t)}),o()})}},length:function(){return r.length},running:function(){return n}};return i};var S=function(t){return function(e){var n=Array.prototype.slice.call(arguments,1);e.apply(null,n.concat([function(e){var n=Array.prototype.slice.call(arguments,1);"undefined"!=typeof console&&(e?console.error&&console.error(e):console[t]&&a(n,function(e){console[t](e)}))}]))}};s.log=S("log"),s.dir=S("dir"),s.memoize=function(t,e){var n={},r={};e=e||function(t){return t};var i=function(){var i=Array.prototype.slice.call(arguments),o=i.pop(),s=e.apply(null,i);s in n?o.apply(null,n[s]):s in r?r[s].push(o):(r[s]=[o],t.apply(null,i.concat([function(){n[s]=arguments;var t=r[s];delete r[s];for(var e=0,i=t.length;i>e;e++)t[e].apply(null,arguments)}])))};return i.memo=n,i.unmemoized=t,i},s.unmemoize=function(t){return function(){return(t.unmemoized||t).apply(null,arguments)}},s.times=function(t,e,n){for(var r=[],i=0;t>i;i++)r.push(i);return s.map(r,e,n)},s.timesSeries=function(t,e,n){for(var r=[],i=0;t>i;i++)r.push(i);return s.mapSeries(r,e,n)},s.compose=function(){var t=Array.prototype.reverse.call(arguments);return function(){var e=this,n=Array.prototype.slice.call(arguments),r=n.pop();s.reduce(t,n,function(t,n,r){n.apply(e,t.concat([function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1);r(t,e)}]))},function(t,n){r.apply(e,[t].concat(n))})}};var _=function(t,e){var n=function(){var n=this,r=Array.prototype.slice.call(arguments),i=r.pop();return t(e,function(t,e){t.apply(n,r.concat(
|
||
|
}return Array(n,r,i,o)}function l(t,e,n,r,i,o){return m(v(m(m(e,t),m(r,o)),i),n)}function f(t,e,n,r,i,o,s){return l(e&n|~e&r,t,e,i,o,s)}function h(t,e,n,r,i,o,s){return l(e&r|n&~r,t,e,i,o,s)}function p(t,e,n,r,i,o,s){return l(e^n^r,t,e,i,o,s)}function d(t,e,n,r,i,o,s){return l(n^(e|~r),t,e,i,o,s)}function g(t,e){var n=y(t);n.length>16&&(n=c(n,t.length*E));for(var r=Array(16),i=Array(16),o=0;16>o;o++)r[o]=909522486^n[o],i[o]=1549556828^n[o];var s=c(r.concat(y(e)),512+e.length*E);return c(i.concat(s),640)}function m(t,e){var n=(65535&t)+(65535&e),r=(t>>16)+(e>>16)+(n>>16);return r<<16|65535&n}function v(t,e){return t<<e|t>>>32-e}function y(t){for(var e=Array(),n=(1<<E)-1,r=0;r<t.length*E;r+=E)e[r>>5]|=(t.charCodeAt(r/E)&n)<<r%32;return e}function b(t){for(var e="",n=(1<<E)-1,r=0;r<32*t.length;r+=E)e+=String.fromCharCode(t[r>>5]>>>r%32&n);return e}function x(t){for(var e=S?"0123456789ABCDEF":"0123456789abcdef",n="",r=0;r<4*t.length;r++)n+=e.charAt(15&t[r>>2]>>8*(r%4)+4)+e.charAt(15&t[r>>2]>>8*(r%4));return n}function w(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="",r=0;r<4*t.length;r+=3)for(var i=(255&t[r>>2]>>8*(r%4))<<16|(255&t[r+1>>2]>>8*((r+1)%4))<<8|255&t[r+2>>2]>>8*((r+2)%4),o=0;4>o;o++)n+=8*r+6*o>32*t.length?_:e.charAt(63&i>>6*(3-o));return n}var S=0,_="=",E=8;n.hex_md5=r,n.b64_md5=i,n.bin_md5=o,n.hex_hmac_md5=s,n.b64_hmac_md5=a,n.bin_hmac_md5=u},{}],62:[function(t,e){!function(){var t,n,r=this;if(t=function(t){for(var e,e,n=new Array(t),r=0;t>r;r++)0==(3&r)&&(e=4294967296*Math.random()),n[r]=255&e>>>((3&r)<<3);return n},r.crypto&&crypto.getRandomValues){var i=new Uint32Array(4);n=function(t){var e=new Array(t);crypto.getRandomValues(i);for(var n=0;t>n;n++)e[n]=255&i[n>>2]>>>8*(3&n);return e}}e.exports=n||t}()},{}],63:[function(t,e,n){function r(t){return v(c(g(t),t.length*w))}function i(t){return y(c(g(t),t.length*w))}function o(t){return m(c(g(t),t.length*w))}function s(t,e){return v(h(t,e))}function a(t,e){return y(h(t,e))}function u(t,e){return m(h(t,e))}function c(t,e){t[e>>5]|=128<<24-e%32,t[(e+64>>9<<4)+15]=e;for(var n=Array(80),r=1732584193,i=-271733879,o=-1732584194,s=271733878,a=-1009589776,u=0;u<t.length;u+=16){for(var c=r,h=i,g=o,m=s,v=a,y=0;80>y;y++){n[y]=16>y?t[u+y]:d(n[y-3]^n[y-8]^n[y-14]^n[y-16],1);var b=p(p(d(r,5),l(y,i,o,s)),p(p(a,n[y]),f(y)));a=s,s=o,o=d(i,30),i=r,r=b}r=p(r,c),i=p(i,h),o=p(o,g),s=p(s,m),a=p(a,v)}return Array(r,i,o,s,a)}function l(t,e,n,r){return 20>t?e&n|~e&r:40>t?e^n^r:60>t?e&n|e&r|n&r:e^n^r}function f(t){return 20>t?1518500249:40>t?1859775393:60>t?-1894007588:-899497514}function h(t,e){var n=g(t);n.length>16&&(n=c(n,t.length*w));for(var r=Array(16),i=Array(16),o=0;16>o;o++)r[o]=909522486^n[o],i[o]=1549556828^n[o];var s=c(r.concat(g(e)),512+e.length*w);return c(i.concat(s),672)}function p(t,e){var n=(65535&t)+(65535&e),r=(t>>16)+(e>>16)+(n>>16);return r<<16|65535&n}function d(t,e){return t<<e|t>>>32-e}function g(t){for(var e=Array(),n=(1<<w)-1,r=0;r<t.length*w;r+=w)e[r>>5]|=(t.charCodeAt(r/w)&n)<<32-w-r%32;return e}function m(t){for(var e="",n=(1<<w)-1,r=0;r<32*t.length;r+=w)e+=String.fromCharCode(t[r>>5]>>>32-w-r%32&n);return e}function v(t){for(var e=b?"0123456789ABCDEF":"0123456789abcdef",n="",r=0;r<4*t.length;r++)n+=e.charAt(15&t[r>>2]>>8*(3-r%4)+4)+e.charAt(15&t[r>>2]>>8*(3-r%4));return n}function y(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="",r=0;r<4*t.length;r+=3)for(var i=(255&t[r>>2]>>8*(3-r%4))<<16|(255&t[r+1>>2]>>8*(3-(r+1)%4))<<8|255&t[r+2>>2]>>8*(3-(r+2)%4),o=0;4>o;o++)n+=8*r+6*o>32*t.length?x:e.charAt(63&i>>6*(3-o));return n}n.hex_sha1=r,n.b64_sha1=i,n.str_sha1=o,n.hex_hmac_sha1=s,n.b64_hmac_sha1=a,n.str_hmac_sha1=u;var b=0,x="=",w=8},{}],64:[function(t,e,n){function r(t){return _(w(S(t),t.length*f))}function i(t){return E(w(S(t),t.length*f))}function o(t){return c(w(S(t),t.length*f))}function s(t,e){return _(N(t,e))}function a(t,e){return E(N(t,e))}function u(t,e){return c(N(t,e))}function c(t){for(var e="",n=(1<<f)-1,r=0;r<32*t.length;r+=f)e+=String.fromCharCode(t[r>>5]>>>32-f-r%32&n);re
|
||
|
},f.prototype.readInt16LE=function(t,e){return m(this,t,!1,e)},f.prototype.readInt16BE=function(t,e){return m(this,t,!0,e)},f.prototype.readInt32LE=function(t,e){return v(this,t,!1,e)},f.prototype.readInt32BE=function(t,e){return v(this,t,!0,e)},f.prototype.readFloatLE=function(t,e){return y(this,t,!1,e)},f.prototype.readFloatBE=function(t,e){return y(this,t,!0,e)},f.prototype.readDoubleLE=function(t,e){return b(this,t,!1,e)},f.prototype.readDoubleBE=function(t,e){return b(this,t,!0,e)},f.prototype.writeUInt8=function(t,e,n){var r=this;n||(O.ok(void 0!==t&&null!==t,"missing value"),O.ok(void 0!==e&&null!==e,"missing offset"),O.ok(e<r.length,"trying to write beyond buffer length"),x(t,255)),e<r.length&&(r.parent[r.offset+e]=t)},f.prototype.writeUInt16LE=function(t,e,n){w(this,t,e,!1,n)},f.prototype.writeUInt16BE=function(t,e,n){w(this,t,e,!0,n)},f.prototype.writeUInt32LE=function(t,e,n){S(this,t,e,!1,n)},f.prototype.writeUInt32BE=function(t,e,n){S(this,t,e,!0,n)},f.prototype.writeInt8=function(t,e,n){var r=this;n||(O.ok(void 0!==t&&null!==t,"missing value"),O.ok(void 0!==e&&null!==e,"missing offset"),O.ok(e<r.length,"Trying to write beyond buffer length"),_(t,127,-128)),t>=0?r.writeUInt8(t,e,n):r.writeUInt8(255+t+1,e,n)},f.prototype.writeInt16LE=function(t,e,n){N(this,t,e,!1,n)},f.prototype.writeInt16BE=function(t,e,n){N(this,t,e,!0,n)},f.prototype.writeInt32LE=function(t,e,n){k(this,t,e,!1,n)},f.prototype.writeInt32BE=function(t,e,n){k(this,t,e,!0,n)},f.prototype.writeFloatLE=function(t,e,n){j(this,t,e,!1,n)},f.prototype.writeFloatBE=function(t,e,n){j(this,t,e,!0,n)},f.prototype.writeDoubleLE=function(t,e,n){A(this,t,e,!1,n)},f.prototype.writeDoubleBE=function(t,e,n){A(this,t,e,!0,n)},r.prototype.readUInt8=f.prototype.readUInt8,r.prototype.readUInt16LE=f.prototype.readUInt16LE,r.prototype.readUInt16BE=f.prototype.readUInt16BE,r.prototype.readUInt32LE=f.prototype.readUInt32LE,r.prototype.readUInt32BE=f.prototype.readUInt32BE,r.prototype.readInt8=f.prototype.readInt8,r.prototype.readInt16LE=f.prototype.readInt16LE,r.prototype.readInt16BE=f.prototype.readInt16BE,r.prototype.readInt32LE=f.prototype.readInt32LE,r.prototype.readInt32BE=f.prototype.readInt32BE,r.prototype.readFloatLE=f.prototype.readFloatLE,r.prototype.readFloatBE=f.prototype.readFloatBE,r.prototype.readDoubleLE=f.prototype.readDoubleLE,r.prototype.readDoubleBE=f.prototype.readDoubleBE,r.prototype.writeUInt8=f.prototype.writeUInt8,r.prototype.writeUInt16LE=f.prototype.writeUInt16LE,r.prototype.writeUInt16BE=f.prototype.writeUInt16BE,r.prototype.writeUInt32LE=f.prototype.writeUInt32LE,r.prototype.writeUInt32BE=f.prototype.writeUInt32BE,r.prototype.writeInt8=f.prototype.writeInt8,r.prototype.writeInt16LE=f.prototype.writeInt16LE,r.prototype.writeInt16BE=f.prototype.writeInt16BE,r.prototype.writeInt32LE=f.prototype.writeInt32LE,r.prototype.writeInt32BE=f.prototype.writeInt32BE,r.prototype.writeFloatLE=f.prototype.writeFloatLE,r.prototype.writeFloatBE=f.prototype.writeFloatBE,r.prototype.writeDoubleLE=f.prototype.writeDoubleLE,r.prototype.writeDoubleBE=f.prototype.writeDoubleBE},{assert:1,"./buffer_ieee754":5,"base64-js":7}],7:[function(t,e){!function(){"use strict";function t(t){var e,n,i,o,s,a;if(t.length%4>0)throw"Invalid string. Length must be a multiple of 4";for(s=t.indexOf("="),s=s>0?t.length-s:0,a=[],i=s>0?t.length-4:t.length,e=0,n=0;i>e;e+=4,n+=3)o=r.indexOf(t[e])<<18|r.indexOf(t[e+1])<<12|r.indexOf(t[e+2])<<6|r.indexOf(t[e+3]),a.push((16711680&o)>>16),a.push((65280&o)>>8),a.push(255&o);return 2===s?(o=r.indexOf(t[e])<<2|r.indexOf(t[e+1])>>4,a.push(255&o)):1===s&&(o=r.indexOf(t[e])<<10|r.indexOf(t[e+1])<<4|r.indexOf(t[e+2])>>2,a.push(255&o>>8),a.push(255&o)),a}function n(t){function e(t){return r[63&t>>18]+r[63&t>>12]+r[63&t>>6]+r[63&t]}var n,i,o,s=t.length%3,a="";for(n=0,o=t.length-s;o>n;n+=3)i=(t[n]<<16)+(t[n+1]<<8)+t[n+2],a+=e(i);switch(s){case 1:i=t[t.length-1],a+=r[i>>2],a+=r[63&i<<4],a+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],a+=r[i>>10],a+=r[63&i>>4],a+=r[63&i<<2],a+="="}return a}var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw
|
||
|
var v=0,p=!0;if(i.push(t),a.push(e),d){if(g=t.length,v=e.length,p=v==t.length,!p&&!c)return p;for(;v--;)if(d=g,m=e[v],c)for(;d--&&!(p=f(t[d],m,n,r,i,a)););else if(!(p=f(t[v],m,n,r,i,a)))break;return p}return re(e,function(e,o,s){return U.call(s,o)?(v++,p=U.call(t,o)&&f(t[o],e,n,r,i,a)):void 0}),p&&!c&&re(t,function(t,e,n){return U.call(n,e)?p=-1<--v:void 0}),m&&(s(i),s(a)),p}function h(t){return"function"==typeof t}function p(t){return!(!t||!M[typeof t])}function d(t){return"string"==typeof t||H.call(t)==L}function g(t,e,n){var r=[];if(e=u.createCallback(e,n),Z(t)){n=-1;for(var i=t.length;++n<i;){var o=t[n];e(o,n,t)&&r.push(o)}}else ne(t,function(t,n,i){e(t,n,i)&&r.push(t)});return r}function m(t,e,n){if(e&&"undefined"==typeof n&&Z(t)){n=-1;for(var r=t.length;++n<r&&!1!==e(t[n],n,t););}else ne(t,e,n);return t}function v(t){return t}var y=[],b=[],x={},w=40,S=(S=/\bthis\b/)&&S.test(function(){return this})&&S,_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),E="[object Arguments]",N="[object Array]",j="[object Boolean]",A="[object Date]",O="[object Error]",C="[object Number]",T="[object Object]",I="[object RegExp]",L="[object String]",M={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},q=M[typeof r]&&r,R=M[typeof n]&&n&&n.exports==q&&n,D=M[typeof i]&&i;!D||D.global!==D&&D.window!==D||(e=D);var F=Error.prototype,B=Object.prototype,z=String.prototype,D=RegExp("^"+(B.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),P=Function.prototype.toString,U=B.hasOwnProperty,J=B.propertyIsEnumerable,H=B.toString,W=D.test(W=H.bind)&&W,$=D.test($=Object.create)&&$,G=D.test(G=Array.isArray)&&G,X=D.test(X=Object.keys)&&X,$=D.test(e.attachEvent),V=W&&!/\n|true/.test(W+$),Y={};Y[N]=Y[A]=Y[C]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},Y[j]=Y[L]={constructor:!0,toString:!0,valueOf:!0},Y[O]=Y["[object Function]"]=Y[I]={constructor:!0,toString:!0},Y[T]={constructor:!0},function(){for(var t=_.length;t--;){var e,n=_[t];for(e in Y)U.call(Y,e)&&!U.call(Y[e],n)&&(Y[e][n]=!1)}}();var K=u.support={};!function(){var t=function(){this.x=1},e=[];t.prototype={valueOf:1,y:1};for(var n in new t)e.push(n);for(n in arguments);K.argsObject=arguments.constructor==Object&&!(arguments instanceof Array),K.argsClass=l(arguments),K.enumErrorProps=J.call(F,"message")||J.call(F,"name"),K.enumPrototypes=J.call(t,"prototype"),K.fastBind=W&&!V,K.nonEnumArgs=0!=n,K.nonEnumShadows=!/valueOf/.test(e),K.unindexedChars="xx"!="x"[0]+Object("x")[0];try{K.nodeClass=!(H.call(document)==T&&!({toString:0}+""))}catch(r){K.nodeClass=!0}}(1);var Q={a:"x,F,k",h:"var a=arguments,b=0,c=typeof k=='number'?2:a.length;while(++b<c){r=a[b];if(r&&z[typeof r]){",f:"if(typeof C[m]=='undefined')C[m]=r[m]",c:"}}"},$={a:"f,d,I",h:"d=d&&typeof I=='undefined'?d:u.createCallback(d,I)",b:"typeof s=='number'",f:"if(d(r[m],m,f)===false)return C"},D={h:"if(!z[typeof r])return C;"+$.h,b:!1};K.argsClass||(l=function(t){return t?U.call(t,"callee"):!1});var Z=G||function(t){return t?"object"==typeof t&&H.call(t)==N:!1},te=c({a:"x",e:"[]",h:"if(!(z[typeof x]))return C",f:"C.push(m)"}),ee=X?function(t){return p(t)?K.enumPrototypes&&"function"==typeof t||K.nonEnumArgs&&t.length&&l(t)?te(t):X(t):[]}:te,ne=c($),G=c(Q,{h:Q.h.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=u.createCallback(a[--c-1],a[c--],2)}else if(c>2&&typeof a[c-1]=='function'){d=a[--c]}"),f:"C[m]=d?d(C[m],r[m]):r[m]"}),re=c($,D,{i:!1});h(/x/)&&(h=function(t){return"function"==typeof t&&"[object Function]"==H.call(t)}),u.assign=G,u.createCallback=function(t,e,n){if(null==t)return v;var r=typeof t;if("function"!=r){if("object"!=r)return function(e){return e[t]};var i=ee(t);return function(e){for(var n=i.length,r=!1;n--&&(r=f(e[i[n]],t[i[n]],x)););return r}}return"undefined"==typeof e||S&&!S.test(P.call(t))?t:1===n?function(n){return t.call(e,n)}:2===n?function(n,r){return t.call(e,n,r)}:4===n?function(n,r,i,o){return t.call(e,n,r,i,o)}:function(n,r,i){return t.call(e,n,r,i)}},u.filter=g,u.forEach=m,u.forIn
|
||
|
var on=[],sn={},an=0,un=sn,cn=30,ln=e._,fn=/&(?:amp|lt|gt|quot|#39);/g,hn=/\b__p \+= '';/g,pn=/\b(__p \+=) '' \+/g,dn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,gn=/\w*$/,mn=RegExp("^"+(sn.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),vn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yn=/<%=([\s\S]+?)%>/g,bn=/($^)/,xn=/[&<>"']/g,wn=/['\n\r\t\u2028\u2029\\]/g,Sn=0,_n=Math.ceil,En=on.concat,Nn=Math.floor,kn=mn.test(kn=Object.getPrototypeOf)&&kn,jn=sn.hasOwnProperty,An=on.push,On=sn.toString,Cn=mn.test(Cn=m.bind)&&Cn,Tn=mn.test(Tn=Array.isArray)&&Tn,In=e.isFinite,Ln=e.isNaN,Mn=mn.test(Mn=Object.keys)&&Mn,qn=Math.max,Rn=Math.min,Dn=Math.random,Fn="[object Arguments]",Bn="[object Array]",zn="[object Boolean]",Pn="[object Date]",Un="[object Function]",Jn="[object Number]",Hn="[object Object]",Wn="[object RegExp]",$n="[object String]",Gn=!!e.attachEvent,Xn=Cn&&!/\n|true/.test(Cn+Gn),Vn=Cn&&!Xn,Yn=Mn&&(Gn||Xn),Kn={};Kn[Un]=!1,Kn[Fn]=Kn[Bn]=Kn[zn]=Kn[Pn]=Kn[Jn]=Kn[Hn]=Kn[Wn]=Kn[$n]=!0;var Qn={};Qn[Bn]=Array,Qn[zn]=Boolean,Qn[Pn]=Date,Qn[Hn]=Object,Qn[Jn]=Number,Qn[Wn]=RegExp,Qn[$n]=String;var Zn={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},tr={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"};s.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:yn,variable:"",imports:{_:s}};var er=function(t){var e="var index, iterable = "+t.firstArg+", result = iterable;\nif (!iterable) return result;\n"+t.top+";\n";return t.arrays&&(e+="var length = iterable.length; index = -1;\nif ("+t.arrays+") {\n while (++index < length) {\n "+t.loop+"\n }\n}\nelse { "),t.isKeysFast&&t.useHas?e+="\n var ownIndex = -1,\n ownProps = objectTypes[typeof iterable] ? nativeKeys(iterable) : [],\n length = ownProps.length;\n\n while (++ownIndex < length) {\n index = ownProps[ownIndex];\n "+t.loop+"\n } ":(e+="\n for (index in iterable) {",t.useHas&&(e+="\n if (",t.useHas&&(e+="hasOwnProperty.call(iterable, index)"),e+=") { "),e+=t.loop+"; ",t.useHas&&(e+="\n }"),e+="\n } "),t.arrays&&(e+="\n}"),e+=t.bottom+";\nreturn result"},nr={args:"object, source, guard",top:"var args = arguments,\n argsIndex = 0,\n argsLength = typeof guard == 'number' ? 2 : args.length;\nwhile (++argsIndex < argsLength) {\n iterable = args[argsIndex];\n if (iterable && objectTypes[typeof iterable]) {",loop:"if (typeof result[index] == 'undefined') result[index] = iterable[index]",bottom:" }\n}"},rr={args:"collection, callback, thisArg",top:"callback = callback && typeof thisArg == 'undefined' ? callback : createCallback(callback, thisArg)",arrays:"typeof length == 'number'",loop:"if (callback(iterable[index], index, collection) === false) return result"},ir={top:"if (!objectTypes[typeof iterable]) return result;\n"+rr.top,arrays:!1},or=h(rr),sr=h(rr,ir,{useHas:!1}),ar=h(rr,ir),ur=Tn||function(t){return t instanceof Array||On.call(t)==Bn},cr=Mn?function(t){return L(t)?Mn(t):[]}:x,lr={"&":"&","<":"<",">":">",'"':""","'":"'"},fr=N(lr),hr=h(nr,{top:nr.top.replace(";",";\nif (argsLength > 3 && typeof args[argsLength - 2] == 'function') {\n var callback = createCallback(args[--argsLength - 1], args[argsLength--], 2);\n} else if (argsLength > 2 && typeof args[argsLength - 1] == 'function') {\n callback = args[--argsLength];\n}"),loop:"result[index] = callback ? callback(result[index], iterable[index]) : iterable[index]"}),pr=h(nr);I(/x/)&&(I=function(t){return t instanceof Function||On.call(t)==Un});var dr=function(t){if(!t||"object"!=typeof t)return!1;var e=t.valueOf,n="function"==typeof e&&(n=kn(e))&&kn(n);return n?t==n||kn(t)==n&&!y(t):b(t)},gr=te,mr=V;Xn&&nn&&"function"==typeof setImmediate&&(qe=Oe(setImmediate,e)),s.after=Ae,s.assign=hr,s.at=W,s.bind=Oe,s.bindAll=Ce,s.bindKey=Te,s.compact=fe,s.compose=Ie,s.countBy=G,s.debounce=Le,s.defaults=pr,s.defer=qe,s.delay=Me,s.difference=he,s.filter=V,s.flatten=de,s.forEach=K,s.forIn=sr,s.forOwn=ar,s.functions=_,s.groupBy=Q,s.initial=me,s.intersection=ve,s.invert=N,s.invoke=Z
|
||
|
}),i?h?l.advance(o):o.utc?l.setUTC(o,D):l.set(o,D):l=t?new U(t):new U,o&&o.edge&&(u=n.f[o.edge],f(G.slice(4),function(t){return c(o[t.a])?(s=t.a,F):void 0}),"year"===s?o.d="month":("month"===s||"week"===s)&&(o.d="day"),l[(u.value<0?"endOf":"beginningOf")+s.capitalize()](),-2===u.value&&l.resetTime())),{e:l,set:o}}function T(t,e,n,r){var i,o=S(r,D),s=P(/^[A-Z]/);if(!t.isValid())return"Invalid Date";if(Date[e]?e=Date[e]:B.isFunction(e)&&(i=q(t),e=e.apply(t,i.concat(o))),e||n){if(!e&&n)return i=i||q(t),0===i[1]&&(i[1]=1,i[0]=1),o.q(i[0],i[1],i[2])}else e=o.outputFormat;return f(ne,function(n){e=e.replace(P("\\{("+n.b+")(\\d)?\\}",n.i?"i":""),function(e,r,i){e=n.format(t,o,i||1,r),i=r.length;var a=r.match(/^(.)\1+$/);return n.i?(3===i&&(e=e.slice(0,3)),(a||r.match(s))&&(e=e.capitalize())):a&&!n.text&&(e=(B.isNumber(e)?e.pad(i):e.toString()).last(i)),e})}),e}function I(t,e,n){var r,i=C(e),o=0,s=e=0;if(n>0&&(e=s=n,r=D),!i.e.isValid())return F;i.set&&i.set.d&&(f(re,function(e){e.a===i.set.d&&(o=e.c(i.e,t-i.e)-1)}),(i.set.edge||i.set.shift)&&i.e["beginningOf"+i.set.d.capitalize()](),!r&&i.set.sign&&"millisecond"!=i.set.d&&(e=50,s=-50)),n=t.getTime(),r=i.e.getTime();var a=r+o;return i.set&&"week"==i.set.d&&0!=new Date(a+1).getHours()&&(a-=U.DSTOffset),n>=r-e&&a+s>=n}function L(t,e,n,r,i){if(B.isNumber(e)&&i)e={milliseconds:e};else if(B.isNumber(e))return t.setTime(e),t;return e.date&&(e.day=e.date),!i&&u(e.day)&&c(e.weekday)&&(t["set"+(r?"UTC":"")+"Weekday"](e.weekday),e.day=t["get"+(r?"UTC":"")+"Date"](void 0),delete e.weekday),f(G,function(i){return c(e[i.a])||c(e[i.a+"s"])?(e.d=i.a,F):(n&&"week"!==i.a&&"year"!==i.a&&t["set"+(r?"UTC":"")+i.method]("day"===i.a?1:0),void 0)}),f(re,function(n){var o=n.a;n=n.method;var s=c(e[o])?e[o]:e[o+"s"];u(s)||(i&&("week"===o&&(s=(e.day||0)+7*s,n="Date"),s=s*i+t["get"+n](void 0)),t["set"+(r?"UTC":"")+n](s),"month"===o&&(o=s,0>o&&(o+=12),o%12!=t.getMonth()&&t.setDate(0)))}),t}function M(t){return t.addDays(4-(t.getDay()||7)).resetTime(),1+(0|t.daysSince(t.clone().beginningOfYear())/7)}function q(t){var e;t=t.millisecondsFromNow();var n=Math.abs(t),r=n,i=0;return f(G.slice(1),function(t,o){e=0|v(n/t.c(),1),e>=1&&(r=e,i=o+1)}),[r,i,t]}function R(t){var e;return e=B.isNumber(t[1])?j(t)[0]:t[0],C(e,t[1]).e}var D=!0,F=!1,B=Object,z=Array,P=RegExp,U=Date,J=String,H=Number,W=B.defineProperty&&B.defineProperties;e(B,F,F,{isObject:function(t){return null===t||u(t)?F:"[object Object]"===B.prototype.toString.call(t)&&t.constructor===B},each:function(t,e){return e&&i(t,function(n,r){e.call(t,n,r,t)}),t},merge:function(t,e,n){return l(t,e,D,n)}}),e(z,D,function(){var t=arguments;return 0===t.length||B.isFunction(t[0])},{every:function(t,e){var n=this.length,r=0;for(m(arguments);n>r;){if(r in this&&!o(this[r],t,e,[r,this]))return F;r++}return D},some:function(t,e){var n=this.length,r=0;for(m(arguments);n>r;){if(r in this&&o(this[r],t,e,[r,this]))return D;r++}return F},map:function(t,e){var n,r=this.length,i=0,o=Array(r);for(m(arguments);r>i;)i in this&&(n=this[i],o[i]=s(n,t,e,[n,i,this])),i++;return o},filter:function(t,e){var n=this.length,r=0,i=[];for(m(arguments);n>r;)r in this&&o(this[r],t,e,[r,this])&&i.push(this[r]),r++;return i}}),e(z,D,F,{indexOf:function(t,e){return B.isString(this)?this.indexOf(t,e):d(this,t,e,1)},lastIndexOf:function(t,e){return B.isString(this)?this.lastIndexOf(t,e):d(this,t,e,-1)},forEach:function(t,e){var n=this.length,r=0;for(g(t);n>r;)r in this&&t.call(e,this[r],r,this),r++},reduce:function(t,e){return arrayReduce(this,t,e)},reduceRight:function(t,e){return arrayReduce(this,t,e,D)},groupBy:function(t,e){var n,r=this,i={};return f(r,function(e,o){n=s(e,t,r,[e,o,r]),i[n]||(i[n]=[]),i[n].push(e)}),B.each(i,e)},compact:function(t){var e=[];return f(this,function(n){B.isArray(n)?e.push(n.compact()):t&&n?e.push(n):t||!c(n)||null===n||B.isNumber(n)&&isNaN(n)||e.push(n)}),e}}),e(H,D,F,{toNumber:function(){return parseFloat(this,10)},ordinalize:function(){var t;if(this>=11&&13>=this)t="th";else switch(this%10){case 1:t="st";break;case 2:t="nd";break;case 3:t="rd";break;default:t="th"
|
||
|
}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_configure:function(t){this.options&&(t=c.extend({},c.result(this,"options"),t)),c.extend(this,c.pick(t,N)),this.options=t},_ensureElement:function(){if(this.el)this.setElement(c.result(this,"el"),!1);else{var t=c.extend({},c.result(this,"attributes"));this.id&&(t.id=c.result(this,"id")),this.className&&(t["class"]=c.result(this,"className"));var e=n.$("<"+c.result(this,"tagName")+">").attr(t);this.setElement(e,!1)}}}),n.sync=function(t,e,r){var i=k[t];c.defaults(r||(r={}),{emulateHTTP:n.emulateHTTP,emulateJSON:n.emulateJSON});var o={type:i,dataType:"json"};if(r.url||(o.url=c.result(e,"url")||F()),null!=r.data||!e||"create"!==t&&"update"!==t&&"patch"!==t||(o.contentType="application/json",o.data=JSON.stringify(r.attrs||e.toJSON(r))),r.emulateJSON&&(o.contentType="application/x-www-form-urlencoded",o.data=o.data?{model:o.data}:{}),r.emulateHTTP&&("PUT"===i||"DELETE"===i||"PATCH"===i)){o.type="POST",r.emulateJSON&&(o.data._method=i);var s=r.beforeSend;r.beforeSend=function(t){return t.setRequestHeader("X-HTTP-Method-Override",i),s?s.apply(this,arguments):void 0}}"GET"===o.type||r.emulateJSON||(o.processData=!1),"PATCH"!==o.type||!window.ActiveXObject||window.external&&window.external.msActiveXFilteringEnabled||(o.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var a=r.xhr=n.ajax(c.extend(o,r));return e.trigger("request",e,a,r),a};var k={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};n.ajax=function(){return n.$.ajax.apply(n.$,arguments)};var j=n.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},A=/\((.*?)\)/g,O=/(\(\?)?:\w+/g,C=/\*\w+/g,T=/[\-{}\[\]+?.,\\\^$|#\s]/g;c.extend(j.prototype,l,{initialize:function(){},route:function(t,e,r){c.isRegExp(t)||(t=this._routeToRegExp(t)),c.isFunction(e)&&(r=e,e=""),r||(r=this[e]);var i=this;return n.history.route(t,function(o){var s=i._extractParameters(t,o);r&&r.apply(i,s),i.trigger.apply(i,["route:"+e].concat(s)),i.trigger("route",e,s),n.history.trigger("route",i,e,s)}),this},navigate:function(t,e){return n.history.navigate(t,e),this},_bindRoutes:function(){if(this.routes){this.routes=c.result(this,"routes");for(var t,e=c.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(T,"\\$&").replace(A,"(?:$1)?").replace(O,function(t,e){return e?t:"([^/]+)"}).replace(C,"(.*?)"),new RegExp("^"+t+"$")},_extractParameters:function(t,e){var n=t.exec(e).slice(1);return c.map(n,function(t){return t?decodeURIComponent(t):null})}});var I=n.History=function(){this.handlers=[],c.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},L=/^[#\/]|\s+$/g,M=/^\/+|\/+$/g,q=/msie [\w.]+/,R=/\/$/;I.started=!1,c.extend(I.prototype,l,{interval:50,getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=this.location.pathname;var n=this.root.replace(R,"");t.indexOf(n)||(t=t.substr(n.length))}else t=this.getHash();return t.replace(L,"")},start:function(t){if(I.started)throw new Error("Backbone.history has already been started");I.started=!0,this.options=c.extend({},{root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var e=this.getFragment(),r=document.documentMode,i=q.exec(navigator.userAgent.toLowerCase())&&(!r||7>=r);this.root=("/"+this.root+"/").replace(M,"/"),i&&this._wantsHashChange&&(this.iframe=n.$('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow,this.navigate(e)),this._hasPushState?n.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!i?n.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlIn
|
||
|
t instanceof N&&(t=t._wrapped),e instanceof N&&(e=e._wrapped);var i=f.call(t);if(i!=f.call(e))return!1;switch(i){case"[object String]":return t==String(e);case"[object Number]":return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object RegExp]":return t.source==e.source&&t.global==e.global&&t.multiline==e.multiline&&t.ignoreCase==e.ignoreCase}if("object"!=typeof t||"object"!=typeof e)return!1;for(var o=n.length;o--;)if(n[o]==t)return r[o]==e;n.push(t),r.push(e);var s=0,a=!0;if("[object Array]"==i){if(s=t.length,a=s==e.length)for(;s--&&(a=I(t[s],e[s],n,r)););}else{var u=t.constructor,c=e.constructor;if(u!==c&&!(N.isFunction(u)&&u instanceof u&&N.isFunction(c)&&c instanceof c))return!1;for(var l in t)if(N.has(t,l)&&(s++,!(a=N.has(e,l)&&I(t[l],e[l],n,r))))break;if(a){for(l in e)if(N.has(e,l)&&!s--)break;a=!s}}return n.pop(),r.pop(),a};N.isEqual=function(t,e){return I(t,e,[],[])},N.isEmpty=function(t){if(null==t)return!0;if(N.isArray(t)||N.isString(t))return 0===t.length;for(var e in t)if(N.has(t,e))return!1;return!0},N.isElement=function(t){return!(!t||1!==t.nodeType)},N.isArray=S||function(t){return"[object Array]"==f.call(t)},N.isObject=function(t){return t===Object(t)},k(["Arguments","Function","String","Number","Date","RegExp"],function(t){N["is"+t]=function(e){return f.call(e)=="[object "+t+"]"}}),N.isArguments(arguments)||(N.isArguments=function(t){return!(!t||!N.has(t,"callee"))}),"function"!=typeof/./&&(N.isFunction=function(t){return"function"==typeof t}),N.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},N.isNaN=function(t){return N.isNumber(t)&&t!=+t},N.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"==f.call(t)},N.isNull=function(t){return null===t},N.isUndefined=function(t){return void 0===t},N.has=function(t,e){return h.call(t,e)},N.noConflict=function(){return e._=r,this},N.identity=function(t){return t},N.times=function(t,e,n){for(var r=Array(t),i=0;t>i;i++)r[i]=e.call(n,i);return r},N.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))};var L={escape:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"}};L.unescape=N.invert(L.escape);var M={escape:new RegExp("["+N.keys(L.escape).join("")+"]","g"),unescape:new RegExp("("+N.keys(L.unescape).join("|")+")","g")};N.each(["escape","unescape"],function(t){N[t]=function(e){return null==e?"":(""+e).replace(M[t],function(e){return L[t][e]})}}),N.result=function(t,e){if(null==t)return null;var n=t[e];return N.isFunction(n)?n.call(t):n},N.mixin=function(t){k(N.functions(t),function(e){var n=N[e]=t[e];N.prototype[e]=function(){var t=[this._wrapped];return u.apply(t,arguments),B.call(this,n.apply(N,t))}})};var q=0;N.uniqueId=function(t){var e=++q+"";return t?t+e:e},N.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var R=/(.)^/,D={"'":"'","\\":"\\","\r":"r","\n":"n"," ":"t","\u2028":"u2028","\u2029":"u2029"},F=/\\|'|\r|\n|\t|\u2028|\u2029/g;N.template=function(t,e,n){var r;n=N.defaults({},n,N.templateSettings);var i=new RegExp([(n.escape||R).source,(n.interpolate||R).source,(n.evaluate||R).source].join("|")+"|$","g"),o=0,s="__p+='";t.replace(i,function(e,n,r,i,a){return s+=t.slice(o,a).replace(F,function(t){return"\\"+D[t]}),n&&(s+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'"),r&&(s+="'+\n((__t=("+r+"))==null?'':__t)+\n'"),i&&(s+="';\n"+i+"\n__p+='"),o=a+e.length,e}),s+="';\n",n.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{r=new Function(n.variable||"obj","_",s)}catch(a){throw a.source=s,a}if(e)return r(e,N);var u=function(t){return r.call(this,t,N)};return u.source="function("+(n.variable||"obj")+"){\n"+s+"}",u},N.chain=function(t){return N(t).chain()};var B=function(t){return this._chain?N(t).chain():t};N.mixin(N),k(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=o[t];N.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"sh
|