-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmu-jquery-app.min.js
1 lines (1 loc) · 7.86 KB
/
mu-jquery-app.min.js
1
!function(e){function n(){return c.call(arguments)}var t,r=Object.prototype.toString,u=Array.prototype,c=u.slice,a=u.concat,o=/\s+/,i="constructor";e("mu-jquery-wire/jquery.wire")([],function(){return function(e,r){var u=this,a=u[i],o=c.call(arguments,2),l=a.Deferred(function(e){e.resolveWith(u,[[]])});return 0===u.length?l:a.when.apply(null,a.map(u,function(i,f){var s=a(i);return a.when(a.isFunction(e)?e.apply(u,[s,f].concat(o)):e).then(function(e){return e===t||0===e.length?l:a.when.apply(null,a.makeArray(e).map(function(e,n){return a.when(r.call(u,s,n,e)).then(function(n){return arguments.length>1?c.call(arguments):n||e})})).then(n)})})).then(n)}}),e("mu-jquery-capture/capture")([],function(){return function(e,n){function r(e){var r=e.result,c=n.apply(this,arguments);return!1===c&&(e.preventDefault(),e.stopPropagation(),c=t),c===t?r||[]:(r||u).concat(c)}return r.guid=n.guid=n.guid||e.guid++,r}}),e("mu-jquery-capture/add")(["./capture"],function(e){return function(n){var t=n.event.add;return function(r,u,c,a,o){return t.call(this,r,u,c.handler?n.extend({},c,{handler:e(n,c.handler)}):e(n,c),a,o)}}}),e("mu-jquery-crank/jquery.crank")(["mu-jquery-wire/jquery.wire"],function(e){return function(n,t){var r=c.call(arguments,2);return e.call(this,n,function(e,n,u){var a=e[i];return a.when.apply(null,a.makeArray(e.triggerHandler(t+"."+u,r))).then(function(e){return arguments.length>1?c.call(arguments):e||u})})}}),e("mu-jquery-loom/expr")([],function(){function e(e,n,r,u){var c=e(n).attr(r);return c!==t&&new RegExp("(?:^|\\s)"+(u||"")).test(c)}return function(n,t){return n.expr.createPseudo?n.expr.createPseudo(function(r){return function(u){return e(n,u,t,r)}}):function(r,u,c){return e(n,r,t,c[3])}}}),e("mu-jquery-loom/create")([],function(){return function(e,n){return new(Function.prototype.bind.apply(e,[null].concat(n)))}}),e("mu-jquery-loom/jquery.wire")(["mu-jquery-wire/jquery.wire","./create"],function(e,n){function t(e){return!r.test(e)}var r=/(?:^|@\d+)$/;return function(r,u){var a=c.call(arguments,2),l=n,f=u,s=this[i];return s.isFunction(u)||(l=u.create||l,f=u.callback),e.call(this,function(e){return(e.attr(r)||"").split(o).filter(t)},function(e,n,t){var u=this;return s.when(f.call(u,t,n)).then(function(c){return c=c&&l.call(u,c,[e,t=t+"@"+s.guid++].concat(a)),e.attr(r,function(e,r){return r=r.split(o),r[n]=t,r.join(" ")}),c})})}}),e("mu-jquery-loom/jquery.weave")(["./jquery.wire","mu-jquery-crank/jquery.crank"],function(e,t){function r(e){return e.ns}return function(){var u=this,a=u[i];return e.apply(u,c.call(arguments)).then(function(e){return a.when.apply(null,e.map(function(e,n){var u,c;return e.length&&(c=e[0].$element)?t.call(c,e.map(r),"initialize",(u=a.Callbacks("once")).add).then(u.fire).then(function(){return e}):e})).then(n)})}}),e("mu-jquery-loom/jquery.crank")(["mu-jquery-crank/jquery.crank"],function(e){return function(n){return e.apply(this,[function(e){return(e.attr(n)||"").split(o)}].concat(c.call(arguments,1)))}}),e("mu-jquery-loom/jquery.loom")(["./jquery.crank","./jquery.weave"],function(e,n){return function(t){var r=[t],u=c.call(arguments),a="["+t+"]";return this.extend({crank:function(){return e.apply(this,r.concat(c.call(arguments)))},weave:function(){return n.apply(this.find(a).addBack(a),u.concat(c.call(arguments)))}})}}),e("mu-create/transform")([],function(){function e(e){return{key:e,value:this[e]}}function n(n){return n.map(e,this)}return function(e){var t,u=r.call(e);if("[object Arguments]"===u)return{key:"[object Array]",value:c.call(e)};if("[object Object]"===u){if(e.hasOwnProperty("key"))return e;if((t=n.call(e,Object.keys(e))).length)return t}return{key:u,value:e}}}),e("mu-create/process")([],function(){return function(){var e=this,n=a.apply(u,arguments);return function(r){var u=!1,a=c.call(arguments,1);return n.reduce(function(n,r){var c=u?n:r.apply(e,[n].concat(a));return c!==t&&(!1===c?u=!0:n=c),n},r)}}}),e("mu-create/create")(["./transform","./process"],function(e,n){function t(e){return!!e}function o(e,n){return n[h]=p++,e}function l(e,n){return delete n[h],e}function f(e){var n=this,t=e[h];return!n.hasOwnProperty(t)&&(n[t]=e)}var s=this,p=0,h="blueprint-"+p++;return function p(){function h(){var p,m=this===s?{}:this,d=c.call(arguments);return d=a.apply(u,d).filter(t,m),d=d.reduce(o,d),d=d.filter(f,{}),d=d.reduce(l,d),d=d.map(m.transform||e,m),d=p=a.apply(u,d).filter(t,m),d=d.reduce(n.apply(m,y),function(){var e=this;(this[i].constructors||u).reduce(function(n,t){var u=t.apply(e,n);switch(r.call(u)){case"[object String]":case"[object Object]":case"[object Number]":case"[object Boolean]":u=[u];break;default:u=u&&u.length?u:n}return u},arguments)}),d.concat=function(){var e=a.apply(p,arguments);return e=e.reduce(o,e),e=e.filter(f,{}),e=e.reduce(l,e)},d.extend=function(){return h.apply(this,d.concat.apply(this,arguments))},d}var y=c.call(arguments);return h.concat=function(){var e=a.apply(y,arguments);return e=e.reduce(o,e),e=e.filter(f,{}),e=e.reduce(l,e)},h.extend=function(){return p.apply(this,h.concat.apply(this,arguments))},h}}),e("mu-create/constructor")([],function(){return function(e,n){if("[object Function]"===n.key)return(e.constructors=e.constructors||[]).push(n.value),!1}}),e("mu-create/prototype")([],function(){return function(e,n){var t=n.value;"prototype"===n.key?e.prototype="[object Function]"===r.call(t)?t.call(this,e):t:e.prototype[n.key]=t}}),e("mu-create/regexp")([],function(){return function(e,n){return function(t,r){var u=r.key.match(e);if(u)return n.apply(this,[t,r].concat(u.slice(1)))}}}),e("mu-jquery-widget/expr")([],function(){function e(e,n,t){return t=e.expando+"#"+e.camelCase(t||""),Object.keys(e.data(n)).some(function(e){return e.startsWith(t)})}return function(n){return n.expr.createPseudo?n.expr.createPseudo(function(t){return function(r){return e(n,r,t)}}):function(t,r,u){return e(n,t,u[3])}}}),e("mu-jquery-widget/jquery.get")([],function(){return function(e){var n=this,r=n[i],u={};return e=r.expando+"#"+r.camelCase(e||""),r.map(n,function(n){return r.map(r.data(n),function(n,r){return u.hasOwnProperty(r)?t:u[r]=r.startsWith(e)?n:t})})}}),e("mu-jquery-widget/dom")(["mu-create/regexp"],function(e){function n(e){return Object.keys(e).reduce(function(n,t){return n.hasOwnProperty(t)||(n[t]=e[t]),n},this)}var t=/^one?$/;return e(/^(one?|attr|prop)\/(.+?)(?:\((.*)\))?$/,function(e,u,c,a,o){var i="[object Object]"===r.call(u.value)?u.value:t.test(c)?{handler:u.value}:{value:u.value};return i=n.call(i,t.test(c)?{method:c,events:a,selector:o}:{method:c,name:a}),(e.dom=e.dom||[]).push(i),!1})}),e("mu-jquery-widget/create")(["mu-create/create","mu-create/constructor","mu-create/prototype","./dom"],function(e,n,t,r){return e(n,r,t)}),e("mu-jquery-widget/widget")(["./create"],function(e){function n(){return!1}function r(e){return this.split(o).map(function(n){return n+"."+e}).join(" ")}var u={off:function(e,n,t){var u=this;u.$element.off(r.call(e||"",u.ns),n,t)},"on/_remove":function(){var e=this,n=e.$.Callbacks("once");n.fire(e.triggerHandler("finalize",n.add))},triggerHandler:function(e,n){var t=this;return t.$element.triggerHandler(r.call(e,t.ns),n)}};return["on","one"].forEach(function(e){this[e]=function(n,u,c,a){var o=this;switch(arguments.length){case 3:a=c,c=t;break;case 2:a=u,u=t,c=t;break;case 1:throw new Error("not enough arguments")}o.$element[e](r.call(n,o.ns),u,c,o.$.proxy(a,o))}},u),e(function(e,t){var r=this,u=r.$=e[i],c=u.event.special;c._remove=c._remove||{noBubble:!0,trigger:n,remove:function(e){e.handler(u.Event(e.type,{data:e.data,namespace:e.namespace,target:this}))}},r.ns=t,r.$element=e,r[i].dom.forEach(function(n,t){switch(n.method){case"on":case"one":r[n.method](n.events,n.selector,n.data,n.handler);break;case"attr":case"prop":e[n.method](n.name,u.isFunction(n.value)?u.proxy(n.value,r):n.value)}}),e.data(u.expando+"#"+t,r)},u)})}(function(e){var n=e.replace(/\/.+$/,""),t=this;return function(r,u){"function"==typeof define&&define.amd?define(e,r,u):t[e]=u.apply(t,r.map(function(e){return t[e.replace(/^\./,n)]||e}))}});