UNPKG

@danielkalen/simplybind

Version:

Magically simple, framework-less one-way/two-way data binding for frontend/backend in ~5kb.

1 lines 18.5 kB
(function(t){if(t=function(e,i,s){return function(n){if(!i[n])throw Error(n+" is not a module");return e[n]?e[n].exports:(e[n]={exports:{}},e[n].exports=i[n].call(s,t,e[n],e[n].exports))}}({},{0:function(t,e,i){var s=0,n="push pop shift unshift splice reverse sort".split(" "),r={},h={},o=["{{","}}"],u=Object.create({silent:!1},{placeholder:{get:function(){return o},set:function(t){O.iA(t)&&2===t.length&&(o=t,C())}}}),c={delay:!1,throttle:!1,simpleSelector:!1,promiseTransforms:!1,dispatchEvents:!1,sendArrayCopies:!1,updateEvenIfSame:!1,updateOnBind:!0},a=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l=null,p=function(){if(!l){var t=l=document.createEvent("Event");t.initEvent("change",!0,!1),t._sb=!0}return l},d=!("className"in Element.prototype&&f(Element.prototype,"className").get),v="innerWidth innerHeight outerWidth outerHeight scrollX scrollY pageXOffset pageYOffset screenX screenY screenLeft screenTop".split(" "),b=function(t,e){return this.uAS(e||this)},g=function(){return""+ ++s},y=function(){return Object.create(null)},_=function(t,e){return function(i,s,n){return H(i,s,n,t,e)}},m=function(t,e){return t.sU||(t.sU=new R(function(){return e?t.sV(t.fDV(),t,!0):t.uAS(t)},"Func",{}))},D=function(t,e){return t&&-1!==t.indexOf(e)},O={iD:function(t){return void 0!==t},iA:function(t){return t instanceof Array},iO:function(t){return"object"==typeof t&&t},iS:function(t){return"string"==typeof t},iN:function(t){return"number"==typeof t},iF:function(t){return"function"==typeof t},iBI:function(t){return t instanceof X},iB:function(t){return t instanceof R},isI:function(t){return O.iO(t)&&O.iN(t.length)},DM:function(t){return t.nodeName&&1===t.nodeType},dI:function(t){return"INPUT"===(t=t.nodeName)||"TEXTAREA"===t||"SELECT"===t},dR:function(t){return"radio"===t.type},dC:function(t){return"checkbox"===t.type},eC:function(t){return t instanceof NodeList||t instanceof HTMLCollection||window.jQuery&&t instanceof jQuery},eAS:function(t){var e=t[0].type;return[].filter.call(t,function(t){return t.type===e}).length===t.length},dN:function(t){return O.DM(t)||t===window||t===document}},M=function(t,e,i){var s;return(s=f(t,e))?(i&&(s.configurable=!0),s):(t=Object.getPrototypeOf(t))?M(t,e,!0):void 0},I=function(t,e,i){var s;if(t.OD||(t.OD=M(e,t.pr)),i)n.forEach(function(i){return a(e,i,{configurable:!0,value:function(){var s=Array.prototype[i].apply(e,arguments);return t.uAS(t),s}})});else if("Proxy"===t.type){var h=t.oR=t.value;if(t.value={result:null,args:null},O.iF(h)){var o=[].slice,u=s=function(){var i=o.call(arguments);return t.value.args=i=t.tfS?t.tfS(i):i,t.value.result=i=h.apply(e,i),t.uAS(t),i};a(e,t.pr,{configurable:t.isL=!0,get:function(){return u},set:function(e){O.iF(e)?e!==h&&(e!==s&&(h=t.oR=e),u!==s&&(u=s)):u=e}})}}else if(!(D(t.type,"DOM")||t.object===window&&D(v,t.pr))){(i=t.OD||r).get&&(t.OG=i.get.bind(e)),i.set&&(t.OS=i.set.bind(e));var c=(c=i.configurable)&&e.constructor!==CSSStyleDeclaration;if(d&&t.DM&&t.pr in e.cloneNode(!1)&&(t.OD=c=!1,t.isL=!0,t.OG=function(){return t.object[t.pr]},t.OS=function(e){return t.object[t.pr]=e}),c){c="Array"===t.type;var f=!t.OS&&!c;a(e,t.pr,{configurable:t.isL=!0,enumerable:i.enumerable,get:t.OG||function(){return t.value},set:function(e){t.sV(e,t,f)}}),c&&I(t,e[t.pr],!0)}}},j=function(t,e,i){if(i){var s=[];for(t=0,i=n.length;t<i;t++){var r=n[t];s.push(delete e[r])}return s}return(i=t.OD).set||i.get||(i.value=t.oR||t.value),a(e,t.pr,i)},S=function(t){var e,i=y();for(e in t)i[e]=t[e];return i},E=function(t,e){var i,s=Object.keys(e),n=0;for(i=s.length;n<i;n++){var r=s[n];t[r]=e[r]}},P={get:function(t,e,i,s){return e?h[t._sb_ID]:s&&t[0]._sb_map&&(e=h[t[0]._sb_map[i]]).gB?e.gB:t._sb_map&&t._sb_map[i]?h[t._sb_map[i]]:void 0},set:function(t,e){if(e)a(t.object,"_sb_ID",{configurable:!0,value:t.ID});else{var i=t.se;t.object._sb_map?t.object._sb_map[i]=t.ID:(e={},e[i]=t.ID,a(t.object,"_sb_map",{configurable:!0,value:e}))}}},V,N=/[.*+?^${}()|[\]\\]/g,A=V=null,C=function(){var t=u.placeholder[0].replace(N,"\\$&"),e=u.placeholder[1].replace(N,"\\$&"),i="[^"+e+"]+";A=new RegExp(t+"("+i+")"+e,"g"),V=new RegExp(""+t+i+e,"g")};C();var x=function(t,e,i){var s,n,r="",h=s=0;for(n=t.length;s<n;h=++s)r+=t[h],i[h]&&(r+=e[i[h]]);return r},k=function(t,e,i){null==t[i]&&(t[i]=[]),t[i].push(e)},B=function(t,e){var i,s,n,r=0;for(s=(t=Array.prototype.slice.call(t.childNodes)).length;r<s;r++){var h=t[r];if(3!==h.nodeType)B(h,e);else if(h.textContent.match(V)){var o=h.textContent.split(A);if(3===o.length&&""===o[0]+o[2])k(e,h,o[1]);else{var u=document.createDocumentFragment(),c=i=0;for(n=o.length;i<n;c=++i){var a=o[c],f=u.appendChild(document.createTextNode(a));c%2&&k(e,f,a)}h.parentNode.replaceChild(u,h)}}}},F=function(t){throw Error("SimplyBind: "+(T[t]||t))},G=function(t,e){u.silent||(e=L(e),t=T[t],console.warn("SimplyBind: "+t+"\n\n"+e))},w=function(t){F("Invalid argument/s ("+t+")",!0)},L=function(t){return(Error().stack||"").split("\n").slice(t+3).join("\n")},T={erIP:"SimplyBind() and .to() only accept a function, an array, a bound object, a string, or a number.",erFN:"Only functions are allowed for .transform/.condition/All()",erEV:"Invalid argument number in .ofEvent()",emptyList:"Empty collection provided",erOD:"You can only pass a single DOM element to a binding",erMX:"'checked' of Mixed list of element cannot be bound"},H=function(t,e,i,s,n){return(t||0===t)&&(O.iS(t)||O.iN(t)||O.iF(t)||t instanceof Array)||O.iBI(t)||F("erIP"),!O.iO(t)||t instanceof Array?(e=new X(e),e.so=i,e.IS=s,e.cC=n,t=O.iF(t)?e.sS(t,!0):e.sP(t)):t=n?n(t):t.sC(),t};H.version="1.15.8",H.settings=u,H.defaultOptions=c,H.unBindAll=function(t,e){var i;if(t&&(O.iO(t)||O.iF(t))){O.isI(t)&&!t._sb_ID&&t[0]&&O.DM(t[0])&&(t=t[0]);var s=t._sb_map;if(t._sb_ID&&h[t._sb_ID].rAS(e),s)for(i in s)t=s[i],h[t].rAS(e)}};var R=function(t,e,i){return E(this,i),this.oD=this.so?this.options:c,this.type=e,this.object=t,this.ID=g(),this.subs=[],this.sM=y(),this.pM=y(),this.atEV=[],"Proxy"===this.type&&(this.sV=b),this.mC&&(this.cH=y(),this.object.forEach(function(t){return function(e){var i=t.cH[e.value]=H("checked").of(e)._;i.aS(t),i.sM[t.ID].tF=function(){return i},i.gB=t}}(this))),"Event"===this.type||"Func"===this.type&&this.IS||("Pholder"===this.type?(e=this.de&&!D(this.de,"multi")?this.de+":"+this.pr:this.pr,(t=this.pB=H(e).of(t)._).sPH(),this.value=t.pVL[this.Ph],t.txN&&(this.txN=t.txN[this.Ph])):(this.value=t=this.fDV(),"ObjectProp"!==this.type||O.iD(t)||f(this.object,this.pr)||(this.object[this.pr]=t),I(this,this.object))),this.aEV(),h[this.ID]=this};R.prototype={aS:function(t,e,i,s){var n;if(t.isMulti){var r=t.bindings;for(t=0,n=r.length;t<n;t++){var h=r[t];this.aS(h,e,i,s)}}else if(this.sM[t.ID])var o=!0;else t.pM[this.ID]=this,this.subs.unshift(t),(n=this.sM[t.ID]=y()).uO=i,n.opts=S(e),(s||"Event"===this.type||"Proxy"===this.type||"Array"===this.type)&&(n.opts.updateEvenIfSame=!0),n.VR="Func"===t.type?"ps":"value";return o},rS:function(t,e){var i;if(t.isMulti){var s=t.bindings;for(t=0,i=s.length;t<i;t++){var n=s[t];this.rS(n,e)}}else this.sM[t.ID]&&(this.subs.splice(this.subs.indexOf(t),1),delete this.sM[t.ID],delete t.pM[this.ID]),e&&(t.rS(this),delete this.pM[t.ID]);0===this.subs.length&&0===Object.keys(this.pM).length&&this.DES()},rAS:function(t){var e,i=this.subs.slice(),s=0;for(e=i.length;s<e;s++){var n=i[s];this.rS(n,t)}},DES:function(){var t;if(delete h[this.ID],this.rPI(),"Event"===this.type){var e=this.atEV,i=0;for(t=e.length;i<t;i++){var s=e[i];this.urEVE(s)}}else"Func"===this.type&&delete this.object._sb_ID;this.isL&&this.OD&&j(this,this.object),"Array"===this.type&&j(this,this.value,!0),this.object._sb_map&&(delete this.object._sb_map[this.se],0===Object.keys(this.object._sb_map).length&&delete this.object._sb_map)},fDV:function(){var t,e=this.type;switch(!1){case"Func"!==e:return this.object();case"DOMAttr"!==e:return this.object.getAttribute(this.pr)||"";case!this.mC:var i=[],s=this.cH;for(t in s)if(s[t].object.checked){if("DOMRadio"===e)return t;i.push(t)}return i;default:return this.object[this.pr]}},sV:function(t,e,i,s){if(e||(e=this),this.tfS&&(t=this.tfS(t)),!i)switch(this.type){case"ObjectProp":if(this.isL)if(this.dI)if(s){if(t!==this.OG()){var n=this.object.selectionStart;this.OS(t),n&&this.object.setSelectionRange(n,n)}}else this.OS(t),u.dispatchEvents&&this.object.dispatchEvent(p());else this.OS&&this.OS(t);else t!==this.value&&(this.object[this.pr]=t);break;case"Pholder":if(s=this.pB,s.pVL[this.Ph]=t,n=x(s.pCT,s.pVL,s.pIM),this.txN&&t!==this.value){var r=this.txN,h=0;for(i=r.length;h<i;h++){var o=r[h];o.textContent=t}}"textContent"!==this.pr&&s.sV(n,e);break;case"Array":t!==this.value&&(O.iA(t)||(t=Array.prototype.concat(t)),j(this,this.value,!0),I(this,t=t.slice(),!0),this.OS&&this.OS(t));break;case"Func":n=this.ps,this.ps=t,t=this.object(t,n);break;case"Event":this.iE=!0,this.eE(t),this.iE=!1;break;case"DOMRadio":if(this.mC)if(s=O.iB(t)?t:this.cH[t])for(h in t=s.object.value,n=this.cH)(i=n[h]).sV(i.ID===s.ID,e);else t=this.value;else{if((t=!!t)===this.value)return;this.object.checked!==t&&(this.object.checked=t),t&&u.dispatchEvents&&this.object.dispatchEvent(p())}break;case"DOMCheckbox":if(this.mC){for(h=!O.iB(t),i=s=0,r=(t=[].concat(t)).length;s<r;i=++s)o=t[i],t[i]=O.iB(o)?o:this.cH[o];r=[],o=this.cH;for(n in o)i=o[n],s=h?D(t,i):i.value,i.sV(s,e),s&&r.push(n);t=r}else{if((t=!!t)===this.value)return;this.object.checked!==t&&(this.object.checked=t,u.dispatchEvents&&this.object.dispatchEvent(p()))}break;case"DOMAttr":this.object.setAttribute(this.pr,t)}this.value=t,this.uAS(e)},uAS:function(t){var e,i;if(i=(e=this.subs).length)for(;i--;)this.uS(e[i],t)},uS:function(t,e,i){var s;if(!(e===t||e!==this&&e.sM[t.ID])){var n=this.sM[t.ID];if(!n.dL||!n.dL[e.ID]){if(n.opts.throttle){var r=(i=+new Date)-n.lU;if(r<n.opts.throttle)return clearTimeout(n.uT),n.uT=setTimeout(function(i){return function(){if(i.sM[t.ID])return i.uS(t,e)}}(this),n.opts.throttle-r);n.lU=i}else if(n.opts.delay&&!i)return setTimeout(function(i){return function(){if(i.sM[t.ID])return i.uS(t,e,!0)}}(this),n.opts.delay);i="Array"===this.type&&n.opts.sendArrayCopies?this.value.slice():this.value,r=t[n.VR],(i=(s=n.tF)?s(i,r,t.object):i)===r&&!n.opts.updateEvenIfSame||n.cN&&!n.cN(i,r,t.object)||(n.opts.promiseTransforms&&i&&O.iF(i.then)?i.then(function(i){t.sV(i,e)}):t.sV(i,e),n.uO&&this.rS(t))}}},aM:function(t,e,i,s){var n,r;if(O.iF(i)){var h=0;for(r=e.length;h<r;h++){var o=e[h],u=o._||o;u.isMulti?this.aM(t,u.bindings,i,s):(o=this.sM[u.ID],o[t]=i,s=s&&!o.uO,this.pM[u.ID]&&((n=u.sM[this.ID])[t]||(n[t]=i)),!s&&"Func"!==this.type||"tF"!==t||this.uS(u,this))}return!0}return G("erFN",2)},ss:function(t,e){this.tfS=t,e&&this.sV(this.value)},aD:function(t,e){var i;(null!=(i=this.sM[t.ID]).dL?i.dL:i.dL=y())[e.ID]=1},sPH:function(){if(!this.pVL){if(this.pVL=y(),this.pIM=y(),this.pCT=[],O.iS(this.value)){this.pCT=this.value.split(V);var t=0;this.value=this.value.replace(A,function(e){return function(i,s){return e.pIM[t++]=s,e.pVL[s]=s}}(this))}this.DM&&"textContent"===this.pr&&B(this.object,this.txN=y())}},aPI:function(t){if("Event"!==this.type)return this.rPI(),this.PI=setInterval(function(t){return function(){var e=t.fDV();return t.sV(e,t,!0)}}(this),t)},rPI:function(){return clearInterval(this.PI),this.PI=null},aUV:function(t,e){this.object.addEventListener(t,function(t){return function(i){i._sb||(i=t.tfS&&t.dI,t.sV(t.object[e],null,!i,!0))}}(this),!1)},aEV:function(){this.evN?this.rEVE(this.evN):this.dI?(this.aUV("input","value"),this.aUV("change","value")):this.mC||"DOMRadio"!==this.type&&"DOMCheckbox"!==this.type||this.aUV("change","checked")},rEVE:function(t){this.atEV.push(t),this.evH||(this.evH=U.bind(this)),this.object[this.eM.listen](t,this.evH)},urEVE:function(t){this.atEV.splice(this.atEV.indexOf(t),1),this.object[this.eM.remove](t,this.evH)},eE:function(t){var e=this.evN;"dispatchEvent"===this.eM.emit&&(this.evO||(this.evO=document.createEvent("Event"),this.evO.initEvent(this.evN,!0,!0)),this.evO.bindingData=t,e=this.evO),this.object[this.eM.emit](e,t)}};var U=function(){this.iE||this.sV(arguments[this.pr],null,!0)},X=function(t,e){var i;if(e)E(this,e),this.sG=1;else for(i in this.sG=0,this.subs=[],this.oP=t||(t={}),this.options={},c)this.options[i]=null!=t[i]?t[i]:c[i];return this};t={sC:function(){return new X(null,this)},dM:function(t){return this._=t,Object.defineProperties(this,{value:{get:function(){return t.value}},original:{get:function(){return t.objects||t.object}},subscribers:{get:function(){return t.subs.slice().map(function(t){return t.object})}}})},createBP:function(t,e,i,s){var n;return this.object=t,(n=P.get(t,s,this.se,this.mC))?this.patchCachedBP(n):(t=new R(t,e,i),P.set(t,s),t)},patchCachedBP:function(t){var e;if("ObjectProp"!==t.type||this.pr in this.object||I(t,this.object),this.so){var i=this.oP;for(n in i){var s=i[n];t.oD[n]=s}}var n=t.oD;for(e in n)s=n[e],this.options[e]=O.iD(this.oP[e])?this.oP[e]:s;return t},sP:function(t){if(O.iN(t)&&(t=t.toString()),this.se=this.pr=t,!this.options.simpleSelector){if(D(t,":")){var e=t.split(":");this.de=e.slice(0,-1).join(":"),this.pr=e[e.length-1]}D(t,".")&&(e=this.pr.split("."),this.pr=e[0],this.Ph=e.slice(1).join(".")),D(this.de,"event")&&(D(t,"#")?(e=this.pr.split("#"),this.evN=e[0],this.pr=e[1]):(this.evN=this.pr,this.pr=0),isNaN(parseInt(this.pr))&&G("erEV",1))}return this},sS:function(t,e){this.sG=1;var i,s=(i=t!==window&&O.isI(t)&&!t.nodeType)?t[0]:t;if(s){if(this.DM=O.DM(s)){if("checked"===this.pr)var n=s&&O.dR(s),r=!n&&s&&O.dC(s);else"value"===this.pr&&(this.dI=O.dI(s));if(i&&!D(this.de,"multi"))if(1===t.length)t=t[0];else{if((n||r)&&!O.eAS(t))return G("erMX",3);n||r?(this.mC=!0,t=[].slice.call(t)):(t=t[0],G("erOD",3))}}}else i&&O.eC(t)&&F("emptyList");switch(!1){case!e:r="Func";break;case!this.Ph:r="Pholder";break;case!(D(this.de,"array")&&O.iA(t[this.pr])):r="Array";break;case!D(this.de,"event"):r="Event",this.eM={listen:this.oP.listenMethod,remove:this.oP.removeMethod,emit:this.oP.emitMethod},t[this.eM.listen]||(this.eM.listen=O.dN(t)?"addEventListener":"on"),t[this.eM.remove]||(this.eM.remove=O.dN(t)?"removeEventListener":"removeListener"),t[this.eM.emit]||(this.eM.emit=O.dN(t)?"dispatchEvent":"emit");break;case!D(this.de,"func"):r="Proxy";break;case!n:r="DOMRadio";break;case!r:r="DOMCheckbox";break;case!D(this.de,"attr"):r="DOMAttr";break;default:r="ObjectProp"}return D(this.de,"multi")?(t.length||F("emptyList"),this.dM(new nt(this,t,r))):this.dM(this.createBP(t,r,this,e)),D(this._.type,"Event")||D(this._.type,"Proxy")?this.options.updateOnBind=!1:D(this._.type,"Func")&&(this.options.updateOnBind=!0),this.cC?this.cC(this):this},aP:function(t){var e;t.sG=2,t.subs.push(this);var i=t._.aS(this._,t.options,t.uO);if(t.uO)delete t.uO;else if(t.options.updateOnBind&&!i)if(this._.isMulti){var s=this._.bindings,n=0;for(e=s.length;n<e;n++)i=s[n],t._.uS(i,t._)}else t._.uS(this._,t._)}},X.prototype=Object.create(t,{of:{get:function(){if(!this.sG)return W}},set:{get:function(){if(this.sG)return $}},chainTo:{get:function(){if(2===this.sG)return Y}},transformSelf:{get:function(){if(1===this.sG)return Q}},transform:{get:function(){if(2===this.sG)return q}},transformAll:{get:function(){if(2===this.sG)return z}},condition:{get:function(){if(2===this.sG)return J}},conditionAll:{get:function(){if(2===this.sG)return K}},bothWays:{get:function(){if(2===this.sG)return Z}},unBind:{get:function(){if(2===this.sG)return tt}},pollEvery:{get:function(){if(this.sG)return et}},stopPolling:{get:function(){if(this.sG)return it}},setOption:{get:function(){if(2===this.sG)return st}},disallowFrom:{get:function(){var t;if(2===this.sG&&(t=this))return _(!1,function(e){return t._.aD(t.subs[t.subs.length-1]._,e._),t})}},updateOn:{get:function(){var t;if(this.sG&&(t=this))return _(!1,function(e){return e._!==t._&&(t._.pM[e._.ID]=e._,e._.aS(m(t._,!0),e.options,!1,!0)),t})}},removeUpdater:{get:function(){var t,e;if(this.sG&&(e=this)&&(t=this._.sU))return _(!1,function(i){i._.sM[t.ID]&&(delete e._.pM[i._.ID],i._.rS(t))})}},to:{get:function(){var t;if(1===this.sG&&(t=this))return _(!0,function(e){return e._!==t._&&e.aP(t),t})}},and:{get:function(){var t=this.sC();if(2===this.sG)return t;if(1===this.sG){if(!t._.isMulti){var e=t._;t._=t._=new nt(t),t._.addBP(e)}return _(!1,function(e){return t._.addBP(e._),t})}}},once:{get:function(){if(1===this.sG){var t=this.sC();return t.uO=!0,t}}},update:{get:function(){return this.set}},twoWay:{get:function(){return this.bothWays}},pipe:{get:function(){return this.chainTo}}});var W=function(t){return O.iO(t)||O.iF(t)||w(t),O.iBI(t)&&(t=t.object),this.sG=1,this.sS(t)},Y=function(t,e,i){return H(this.subs[this.subs.length-1]).to(t,e,i)},$=function(t){return this._.sV(t),this},Q=function(t){return O.iF(t)?this._.ss(t,this.options.updateOnBind):G("erFN",1),this},q=function(t){return this._.aM("tF",this.subs.slice(-1),t,this.options.updateOnBind),this},z=function(t){return this._.aM("tF",this.subs,t,this.options.updateOnBind),this},J=function(t){return this._.aM("cN",this.subs.slice(-1),t),this},K=function(t){return this._.aM("cN",this.subs,t),this},Z=function(t){var e,i=this.subs[this.subs.length-1],s=i._,n=this._.isMulti?this._.bindings:[this._];for(s.aS(this._,i.options),i=0,e=n.length;i<e;i++){var r=n[i],h=r.sM[s.ID].tF;r=r.sM[s.ID].cN,(h||t)&&(h=O.iF(t)?t:h)&&!1!==t&&(s.sM[this._.ID].tF=h),r&&(s.sM[this._.ID].cN=r)}return this},tt=function(t){var e,i=this.subs,s=0;for(e=i.length;s<e;s++){var n=i[s];this._.rS(n._,t)}return this},et=function(t){return this._.aPI(t),this},it=function(){return this._.rPI(),this},st=function(t,e){return this._.sM[this.subs[this.subs.length-1]._.ID].opts[t]=e,this},nt=function(t,e,i){var s,n;if(t.se=t.se.slice(6),E(this,this.In=t),this.isMulti=!0,this.bindings=s=[],e)for(t=0,n=e.length;t<n;t++){var r=e[t];this.addBP(r,i)}return Object.defineProperties(this,{type:{get:function(){return s.map(function(t){return t.type})}},value:{get:function(){return s.map(function(t){return t.value})}}})},rt=nt.prototype=Object.create(t);return Object.keys(R.prototype).forEach(function(t){return rt[t]=function(e,i,s,n){var r,h=this.bindings,o=0;for(r=h.length;o<r;o++){var u=h[o];"uS"===t&&(i=u),u[t](e,i,s,n)}}}),rt.addBP=function(t,e){this.bindings.push(e?this.createBP(t,e,this.In):t)},e.exports=H,e.exports}},this),"function"==typeof define&&define.umd)define(function(){return t(0)});else{if("object"!=typeof module||!module.exports)return this.simplybind=t(0);module.exports=t(0)}}).call(this,null);