forked from wavedrom/wavedrom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wavedrom.min.js
3 lines (2 loc) · 33.5 KB
/
wavedrom.min.js
1
2
3
/*! wavedrom 2017-11-08 */
!function e(t,r,n){function s(a,i){if(!r[a]){if(!t[a]){var l="function"==typeof require&&require;if(!i&&l)return l(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[a]={exports:{}};t[a][0].call(u.exports,function(e){var r=t[a][1][e];return s(r||e)},u,u.exports,e,t,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a<n.length;a++)s(n[a]);return s}({1:[function(e,t,r){"use strict";t.exports=function(e,t){function r(e){var t=parseInt(s.style.left,10),n=parseInt(s.style.top,10);(e.x<t||e.x>t+s.offsetWidth||e.y<n||e.y>n+s.offsetHeight)&&(s.parentNode.removeChild(s),document.body.removeEventListener("mousedown",r,!1))}var n,s;(n=document.getElementById(t+e)).childNodes[0].addEventListener("contextmenu",function(o){var a,i,l;(s=document.createElement("div")).className="wavedromMenu",s.style.top=o.y+"px",s.style.left=o.x+"px",a=document.createElement("ul"),(i=document.createElement("li")).innerHTML="Save as PNG",a.appendChild(i),(l=document.createElement("li")).innerHTML="Save as SVG",a.appendChild(l),s.appendChild(a),document.body.appendChild(s),i.addEventListener("click",function(){var o,a,i,l,c,u,d;o="",0!==e&&(o+=(a=document.getElementById(t+0)).innerHTML.substring(166,a.innerHTML.indexOf('<g id="waves_0">'))),o=[n.innerHTML.slice(0,166),o,n.innerHTML.slice(166)].join(""),i="data:image/svg+xml;base64,"+btoa(o),(l=new Image).src=i,(c=document.createElement("canvas")).width=l.width,c.height=l.height,c.getContext("2d").drawImage(l,0,0),u=c.toDataURL("image/png"),(d=document.createElement("a")).href=u,d.download="wavedrom.png",d.click(),s.parentNode.removeChild(s),document.body.removeEventListener("mousedown",r,!1)},!1),l.addEventListener("click",function(){var o,a,i,l;o="",0!==e&&(o+=(a=document.getElementById(t+0)).innerHTML.substring(166,a.innerHTML.indexOf('<g id="waves_0">'))),o=[n.innerHTML.slice(0,166),o,n.innerHTML.slice(166)].join(""),i="data:image/svg+xml;base64,"+btoa(o),(l=document.createElement("a")).href=i,l.download="wavedrom.svg",l.click(),s.parentNode.removeChild(s),document.body.removeEventListener("mousedown",r,!1)},!1),s.addEventListener("contextmenu",function(e){e.preventDefault()},!1),document.body.addEventListener("mousedown",r,!1),o.preventDefault()},!1)}},{}],2:[function(e,t,r){"use strict";var n=e("./jsonml-parse");t.exports=n},{"./jsonml-parse":15}],3:[function(e,t,r){"use strict";var n=e("./eva"),s=e("./render-wave-form");t.exports=function(){s(0,n("InputJSON_0"),"WaveDrom_Display_")}},{"./eva":4,"./render-wave-form":29}],4:[function(require,module,exports){"use strict";function eva(id){function erra(e){return{signal:[{name:["tspan",["tspan",{class:"error h5"},"Error: "],e.message]}]}}var TheTextBox,source;if((TheTextBox=document.getElementById(id)).type&&"textarea"===TheTextBox.type)try{source=eval("("+TheTextBox.value+")")}catch(e){return erra(e)}else try{source=eval("("+TheTextBox.innerHTML+")")}catch(e){return erra(e)}if("[object Object]"!==Object.prototype.toString.call(source))return erra({message:'[Semantic]: The root has to be an Object: "{signal:[...]}"'});if(source.signal){if("[object Array]"!==Object.prototype.toString.call(source.signal))return erra({message:'[Semantic]: "signal" object has to be an Array "signal:[]"'})}else if(source.assign){if("[object Array]"!==Object.prototype.toString.call(source.assign))return erra({message:'[Semantic]: "assign" object hasto be an Array "assign:[]"'})}else if(!source.reg)return erra({message:'[Semantic]: "signal:[...]" or "assign:[...]" property is missing inside the root Object'});return source}module.exports=eva},{}],5:[function(e,t,r){"use strict";t.exports=function(e){var t=0,r=0,n=[];return e.forEach(function(e){"vvv-2"===e||"vvv-3"===e||"vvv-4"===e||"vvv-5"===e?r+=1:0!==r&&(n.push(t-(r+1)/2),r=0),t+=1}),0!==r&&n.push(t-(r+1)/2),n}},{}],6:[function(e,t,r){"use strict";t.exports=function(e,t,r){var n,s,o=[];if(4===e.length){for(s=0;s<r;s+=1){for(o.push(e[0]),n=0;n<t;n+=1)o.push(e[1]);for(o.push(e[2]),n=0;n<t;n+=1)o.push(e[3])}return o}for(1===e.length&&e.push(e[0]),o.push(e[0]),n=0;n<r*(2*(t+1))-1;n+=1)o.push(e[1]);return o}},{}],7:[function(e,t,r){"use strict";var n=e("./gen-brick");t.exports=function(e,t,r){var s;switch(s=[],e){case"p":s=n(["pclk","111","nclk","000"],t,r);break;case"n":s=n(["nclk","000","pclk","111"],t,r);break;case"P":s=n(["Pclk","111","nclk","000"],t,r);break;case"N":s=n(["Nclk","000","pclk","111"],t,r);break;case"l":case"L":case"0":s=n(["000"],t,r);break;case"h":case"H":case"1":s=n(["111"],t,r);break;case"=":case"2":s=n(["vvv-2"],t,r);break;case"3":s=n(["vvv-3"],t,r);break;case"4":s=n(["vvv-4"],t,r);break;case"5":s=n(["vvv-5"],t,r);break;case"d":s=n(["ddd"],t,r);break;case"u":s=n(["uuu"],t,r);break;case"z":s=n(["zzz"],t,r);break;default:s=n(["xxx"],t,r)}return s}},{"./gen-brick":6}],8:[function(e,t,r){"use strict";var n=e("./gen-brick");t.exports=function(e,t,r){var s,o,a,i,l,c,u,d,f,h,m,p,x,g,v;return s={p:"pclk",n:"nclk",P:"Pclk",N:"Nclk",h:"pclk",l:"nclk",H:"Pclk",L:"Nclk"},o={0:"0",1:"1",x:"x",d:"d",u:"u",z:"z","=":"v",2:"v",3:"v",4:"v",5:"v"},a={0:"",1:"",x:"",d:"",u:"",z:"","=":"-2",2:"-2",3:"-3",4:"-4",5:"-5"},i={p:"0",n:"1",P:"0",N:"1",h:"1",l:"0",H:"1",L:"0",0:"0",1:"1",x:"x",d:"d",u:"u",z:"z","=":"v",2:"v",3:"v",4:"v",5:"v"},l={p:"",n:"",P:"",N:"",h:"",l:"",H:"",L:"",0:"",1:"",x:"",d:"",u:"",z:"","=":"-2",2:"-2",3:"-3",4:"-4",5:"-5"},c={p:"111",n:"000",P:"111",N:"000",h:"111",l:"000",H:"111",L:"000",0:"000",1:"111",x:"xxx",d:"ddd",u:"uuu",z:"zzz","=":"vvv-2",2:"vvv-2",3:"vvv-3",4:"vvv-4",5:"vvv-5"},u={p:"nclk",n:"pclk",P:"nclk",N:"pclk"},d={p:"000",n:"111",P:"000",N:"111"},f={hp:"111",Hp:"111",ln:"000",Ln:"000",nh:"111",Nh:"111",pl:"000",Pl:"000"},h=e.split(""),m=c[h[1]],void 0===(p=s[h[1]])?void 0===(x=o[h[1]])?n(["xxx"],t,r):void 0===(g=i[h[0]])?n(["xxx"],t,r):n([g+"m"+x+l[h[0]]+a[h[1]],m],t,r):(void 0!==(v=f[e])&&(p=v),void 0===(x=u[h[1]])?n([p,m],t,r):n([p,m,x,d[h[1]]],t,r))}},{"./gen-brick":6}],9:[function(e,t,r){"use strict";var n=e("./process-all"),s=e("./eva"),o=e("./render-wave-form"),a=e("./editor-refresh");t.exports={processAll:n,eva:s,renderWaveForm:o,editorRefresh:a}},{"./editor-refresh":3,"./eva":4,"./process-all":21,"./render-wave-form":29}],10:[function(e,t,r){"use strict";var n=e("./create-element"),s=e("./w3");t.exports=function(e,t){for(var r,o;t.childNodes.length;)t.removeChild(t.childNodes[0]);o=["svg",{id:"svgcontent_"+e,xmlns:s.svg,"xmlns:xlink":s.xlink,overflow:"hidden"},["style",".pinname {font-size:12px; font-style:normal; font-variant:normal; font-weight:500; font-stretch:normal; text-align:center; text-anchor:end; font-family:Helvetica} .wirename {font-size:12px; font-style:normal; font-variant:normal; font-weight:500; font-stretch:normal; text-align:center; text-anchor:start; font-family:Helvetica} .wirename:hover {fill:blue} .gate {color:#000; fill:#ffc; fill-opacity: 1;stroke:#000; stroke-width:1; stroke-opacity:1} .gate:hover {fill:red !important; } .wire {fill:none; stroke:#000; stroke-width:1; stroke-opacity:1} .grid {fill:#fff; fill-opacity:1; stroke:none}"]],r=n(o),t.insertBefore(r,null)}},{"./create-element":2,"./w3":31}],11:[function(e,t,r){"use strict";var n=e("./create-element"),s=e("./w3"),o=e("./wave-skin");t.exports=function(e,t,r,a){for(var i,l,c;t.childNodes.length;)t.removeChild(t.childNodes[0]);for(l in o)break;c=o.default||o[l],r&&r.config&&r.config.skin&&o[r.config.skin]&&(c=o[r.config.skin]),0===e?(a.xs=Number(c[3][1][2][1].width),a.ys=Number(c[3][1][2][1].height),a.xlabel=Number(c[3][1][2][1].x),a.ym=Number(c[3][1][2][1].y)):c=["svg",{id:"svg",xmlns:s.svg,"xmlns:xlink":s.xlink,height:"0"},["g",{id:"waves"},["g",{id:"lanes"}],["g",{id:"groups"}]]],c[c.length-1][1].id="waves_"+e,c[c.length-1][2][1].id="lanes_"+e,c[c.length-1][3][1].id="groups_"+e,c[1].id="svgcontent_"+e,c[1].height=0,i=n(c),t.insertBefore(i,null)}},{"./create-element":2,"./w3":31,"./wave-skin":33}],12:[function(e,t,r){"use strict";function n(e,t,r){"string"==typeof r&&(r=new Function("event",r)),"function"==typeof r&&(e[t]=r)}var s={rowspan:"rowSpan",colspan:"colSpan",cellpadding:"cellPadding",cellspacing:"cellSpacing",tabindex:"tabIndex",accesskey:"accessKey",hidefocus:"hideFocus",usemap:"useMap",maxlength:"maxLength",readonly:"readOnly",contenteditable:"contentEditable"},o={enctype:"encoding",onscroll:"DOMMouseScroll"},a=function(e){for(var t,r={};e.length;)r["on"+(t=e.shift()).toLowerCase()]=t;return r}("blur,change,click,dblclick,error,focus,keydown,keypress,keyup,load,mousedown,mouseenter,mouseleave,mousemove,mouseout,mouseover,mouseup,resize,scroll,select,submit,unload".split(","));t.exports=function(e,t){if(t.name&&document.attachEvent)try{var r=document.createElement("<"+e.tagName+" name='"+t.name+"'>");e.tagName===r.tagName&&(e=r)}catch(e){console.log(e)}for(var i in t)if(t.hasOwnProperty(i)){var l=t[i];i&&null!==l&&void 0!==l&&("style"===(i=s[i.toLowerCase()]||i)?void 0!==e.style.cssText?e.style.cssText=l:e.style=l:a[i]?(n(e,i,l),o[i]&&n(e,o[i],l)):"string"==typeof l||"number"==typeof l||"boolean"==typeof l?(e.setAttribute(i,l),o[i]&&e.setAttribute(o[i],l)):(e[i]=l,o[i]&&(e[o[i]]=l)))}return e}},{}],13:[function(e,t,r){"use strict";t.exports=function(e,t){t&&(e.tagName&&"style"===e.tagName.toLowerCase()&&document.createStyleSheet?e.cssText=t:!1!==e.canHaveChildren&&e.appendChild(t))}},{}],14:[function(e,t,r){"use strict";var n=e("./jsonml-trim-whitespace");t.exports=function(e){var t=document.createElement("div");if(t.innerHTML=e,n(t),1===t.childNodes.length)return t.firstChild;for(var r=document.createDocumentFragment?document.createDocumentFragment():document.createElement("");t.firstChild;)r.appendChild(t.firstChild);return r}},{"./jsonml-trim-whitespace":16}],15:[function(e,t,r){"use strict";function n(e){return e instanceof Array&&"string"==typeof e[0]}function s(e,t,r){return document.createTextNode("["+e+"-"+r+"]")}var o,a,i=e("./jsonml-hydrate"),l=e("./w3"),c=e("./jsonml-append-child"),u=e("./jsonml-add-attributes"),d=e("./jsonml-trim-whitespace");o=function(e,t,r){for(var n=1;n<t.length;n++)t[n]instanceof Array||"string"==typeof t[n]?c(e,a(t[n],r)):t[n]&&t[n].value?c(e,i(t[n].value)):"object"==typeof t[n]&&null!==t[n]&&1===e.nodeType&&(e=u(e,t[n]));return e},a=function(e,t){var r;try{if(!e)return null;if("string"==typeof e)return document.createTextNode(e);if(e&&e.value)return i(e.value);if(!n(e))throw new SyntaxError("invalid JsonML");var u=e[0];if(!u){for(var f=document.createDocumentFragment?document.createDocumentFragment():document.createElement(""),h=2;h<e.length;h++)c(f,a(e[h],t));return d(f),1===f.childNodes.length?f.firstChild:f}return"style"===u.toLowerCase()&&document.createStyleSheet?(o(document.createStyleSheet(),e,t),null):(r=o(document.createElementNS(l.svg,u),e,t),d(r),r)}catch(r){try{return s(r,e,t)}catch(e){return document.createTextNode("["+e+"]")}}},t.exports=a},{"./jsonml-add-attributes":12,"./jsonml-append-child":13,"./jsonml-hydrate":14,"./jsonml-trim-whitespace":16,"./w3":31}],16:[function(e,t,r){"use strict";function n(e){return e&&3===e.nodeType&&(!e.nodeValue||!/\S/.exec(e.nodeValue))}t.exports=function(e){if(e){for(;n(e.firstChild);)e.removeChild(e.firstChild);for(;n(e.lastChild);)e.removeChild(e.lastChild)}}},{}],17:[function(e,t,r){"use strict";var n={xs:20,ys:20,xg:120,yh0:0,yh1:0,yf0:0,yf1:0,y0:5,yo:30,tgo:-10,ym:15,xlabel:6,xmax:1,scale:1,head:{},foot:{}};t.exports=n},{}],18:[function(e,t,r){"use strict";t.exports=function(e,t){var r;t.hscale=1,t.hscale0&&(t.hscale=t.hscale0),e&&e.config&&e.config.hscale&&(r=Math.round(function(e){return e>0?Math.round(e):1}(e.config.hscale)))>0&&(r>100&&(r=100),t.hscale=r),t.yh0=0,t.yh1=0,t.head=e.head,t.xmin_cfg=0,t.xmax_cfg=1e12,e&&e.config&&e.config.hbounds&&2==e.config.hbounds.length&&(e.config.hbounds[0]=Math.floor(e.config.hbounds[0]),e.config.hbounds[1]=Math.ceil(e.config.hbounds[1]),e.config.hbounds[0]<e.config.hbounds[1]&&(t.xmin_cfg=2*Math.floor(e.config.hbounds[0]),t.xmax_cfg=2*Math.floor(e.config.hbounds[1]))),e&&e.head&&((e.head.tick||0===e.head.tick||e.head.tock||0===e.head.tock)&&(t.yh0=20),(e.head.tick||0===e.head.tick)&&(e.head.tick=e.head.tick+t.xmin_cfg/2),(e.head.tock||0===e.head.tock)&&(e.head.tock=e.head.tock+t.xmin_cfg/2),e.head.text&&(t.yh1=46,t.head.text=e.head.text)),t.yf0=0,t.yf1=0,t.foot=e.foot,e&&e.foot&&((e.foot.tick||0===e.foot.tick||e.foot.tock||0===e.foot.tock)&&(t.yf0=20),(e.foot.tick||0===e.foot.tick)&&(e.foot.tick=e.foot.tick+t.xmin_cfg/2),(e.foot.tock||0===e.foot.tock)&&(e.foot.tock=e.foot.tock+t.xmin_cfg/2),e.foot.text&&(t.yf1=46,t.foot.text=e.foot.text))}},{}],19:[function(e,t,r){"use strict";var n=e("./gen-first-wave-brick"),s=e("./gen-wave-brick"),o=e("./find-lane-markers");t.exports=function(e,t,r){var a,i,l,c,u,d,f=[],h=[],m=[];for(l=(f=e.split("")).shift(),u=!1,a=1;"."===f[0]||"|"===f[0];)f.shift(),a+=1;for(h=h.concat(n(l,t,a));f.length;){for(i=l,"<"===(l=f.shift())&&(u=!0,l=f.shift()),">"===l&&(u=!1,l=f.shift()),a=1;"."===f[0]||"|"===f[0];)f.shift(),a+=1;h=u?h.concat(s(i+l,0,a-r.period)):h.concat(s(i+l,t,a))}for(c=0;c<r.phase;c+=1)m.push(h.shift());return m.length>0?(d=o(m).length,1==o([m[m.length-1]]).length&&1==o([h[0]]).length&&(d-=1)):d=0,[h,d]}},{"./find-lane-markers":5,"./gen-first-wave-brick":7,"./gen-wave-brick":8}],20:[function(e,t,r){"use strict";function n(e,t){var r;return void 0===(r=e.data)?null:("string"==typeof r&&(r=r.split(" ")),r=r.slice(t))}var s=e("./parse-wave-lane");t.exports=function(e,t){var r,o,a,i,l,c=[],u=[];for(r in e)o=e[r],t.period=o.period?o.period:1,t.phase=(o.phase?2*o.phase:0)+t.xmin_cfg,c.push([]),u[0]=o.name||" ",u[1]=(o.phase||0)+t.xmin_cfg/2,o.wave?(a=(i=s(o.wave,t.period*t.hscale-1,t))[0],l=i[1]):a=null,c[c.length-1][0]=u.slice(0),c[c.length-1][1]=a,c[c.length-1][2]=n(o,l);return c}},{"./parse-wave-lane":19}],21:[function(e,t,r){"use strict";var n=e("./eva"),s=e("./append-save-as-dialog"),o=e("./render-wave-form");t.exports=function(){var e,t,r,a;for(r=0,e=document.querySelectorAll("*"),t=0;t<e.length;t++)e.item(t).type&&"WaveDrom"===e.item(t).type&&(e.item(t).setAttribute("id","InputJSON_"+r),(a=document.createElement("div")).id="WaveDrom_Display_"+r,e.item(t).parentNode.insertBefore(a,e.item(t)),r+=1);for(t=0;t<r;t+=1)o(t,n("InputJSON_"+t),"WaveDrom_Display_"),s(t,"WaveDrom_Display_");document.head.innerHTML+='<style type="text/css">div.wavedromMenu{position:fixed;border:solid 1pt#CCCCCC;background-color:white;box-shadow:0px 10px 20px #808080;cursor:default;margin:0px;padding:0px;}div.wavedromMenu>ul{margin:0px;padding:0px;}div.wavedromMenu>ul>li{padding:2px 10px;list-style:none;}div.wavedromMenu>ul>li:hover{background-color:#b5d5ff;}</style>'}},{"./append-save-as-dialog":1,"./eva":4,"./render-wave-form":29}],22:[function(e,t,r){"use strict";function n(e,t){var r,s,o={},a={x:10};for("string"!=typeof e[0]&&"number"!=typeof e[0]||(s=e[0],a.x=25),t.x+=a.x,r=0;r<e.length;r++)"object"==typeof e[r]&&("[object Array]"===Object.prototype.toString.call(e[r])?(o.y=t.y,(t=n(e[r],t)).groups.push({x:t.xx,y:o.y,height:t.y-o.y,name:t.name})):(t.lanes.push(e[r]),t.width.push(t.x),t.y+=1));return t.xx=t.x,t.x-=a.x,t.name=s,t}t.exports=n},{}],23:[function(e,t,r){"use strict";var n=e("tspan"),s=e("./create-element"),o=e("./w3");t.exports=function(e,t,r,a,i){var l,c,u,d,f,h,m,p,x,g,v,y,b,w,k,N,A=[],_={words:[],from:0,shape:"",to:0,label:""},E={};if(t){for(c in t)if(i.period=t[c].period?t[c].period:1,i.phase=(t[c].phase?2*t[c].phase:0)+i.xmin_cfg,d=t[c].node)for(A=d.split(""),f=0;A.length;)"."!==(h=A.shift())&&(E[h]={x:i.xs*(2*f*i.period*i.hscale-i.phase)+i.xlabel,y:c*i.yo+i.y0+.5*i.ys}),f+=1;if(l=document.createElementNS(o.svg,"g"),l.id="wavearcs_"+r,e.insertBefore(l,null),a.edge)for(c in a.edge)if(_.words=a.edge[c].split(" "),_.label=a.edge[c].substring(_.words[0].length),_.label=_.label.substring(1),_.from=_.words[0].substr(0,1),_.to=_.words[0].substr(-1,1),_.shape=_.words[0].slice(1,-1),x=E[_.from],g=E[_.to],x&&g&&((k=document.createElementNS(o.svg,"path")).id="gmark_"+_.from+"_"+_.to,k.setAttribute("d","M "+x.x+","+x.y+" "+g.x+","+g.y),k.setAttribute("style","fill:none;stroke:#00F;stroke-width:1"),l.insertBefore(k,null)),x&&g){switch(_.label&&((m=n.parse(_.label)).unshift("text",{style:"font-size:10px;","text-anchor":"middle","xml:space":"preserve"}),m=s(m),p=s(["rect",{height:9,style:"fill:#FFF;"}]),l.insertBefore(p,null),l.insertBefore(m,null),N=m.getBBox().width,p.setAttribute("width",N)),v=g.x-x.x,y=g.y-x.y,b=(x.x+g.x)/2,w=(x.y+g.y)/2,_.shape){case"-":break;case"~":k.setAttribute("d","M "+x.x+","+x.y+" c "+.7*v+", 0 "+.3*v+", "+y+" "+v+", "+y);break;case"-~":k.setAttribute("d","M "+x.x+","+x.y+" c "+.7*v+", 0 "+v+", "+y+" "+v+", "+y),_.label&&(b=x.x+.75*(g.x-x.x));break;case"~-":k.setAttribute("d","M "+x.x+","+x.y+" c 0, 0 "+.3*v+", "+y+" "+v+", "+y),_.label&&(b=x.x+.25*(g.x-x.x));break;case"-|":k.setAttribute("d","m "+x.x+","+x.y+" "+v+",0 0,"+y),_.label&&(b=g.x);break;case"|-":k.setAttribute("d","m "+x.x+","+x.y+" 0,"+y+" "+v+",0"),_.label&&(b=x.x);break;case"-|-":k.setAttribute("d","m "+x.x+","+x.y+" "+v/2+",0 0,"+y+" "+v/2+",0");break;case"->":k.setAttribute("style","marker-end:url(#arrowhead);stroke:#0041c4;stroke-width:1;fill:none");break;case"~>":k.setAttribute("style","marker-end:url(#arrowhead);stroke:#0041c4;stroke-width:1;fill:none"),k.setAttribute("d","M "+x.x+","+x.y+" c "+.7*v+", 0 "+.3*v+", "+y+" "+v+", "+y);break;case"-~>":k.setAttribute("style","marker-end:url(#arrowhead);stroke:#0041c4;stroke-width:1;fill:none"),k.setAttribute("d","M "+x.x+","+x.y+" c "+.7*v+", 0 "+v+", "+y+" "+v+", "+y),_.label&&(b=x.x+.75*(g.x-x.x));break;case"~->":k.setAttribute("style","marker-end:url(#arrowhead);stroke:#0041c4;stroke-width:1;fill:none"),k.setAttribute("d","M "+x.x+","+x.y+" c 0, 0 "+.3*v+", "+y+" "+v+", "+y),_.label&&(b=x.x+.25*(g.x-x.x));break;case"-|>":k.setAttribute("style","marker-end:url(#arrowhead);stroke:#0041c4;stroke-width:1;fill:none"),k.setAttribute("d","m "+x.x+","+x.y+" "+v+",0 0,"+y),_.label&&(b=g.x);break;case"|->":k.setAttribute("style","marker-end:url(#arrowhead);stroke:#0041c4;stroke-width:1;fill:none"),k.setAttribute("d","m "+x.x+","+x.y+" 0,"+y+" "+v+",0"),_.label&&(b=x.x);break;case"-|->":k.setAttribute("style","marker-end:url(#arrowhead);stroke:#0041c4;stroke-width:1;fill:none"),k.setAttribute("d","m "+x.x+","+x.y+" "+v/2+",0 0,"+y+" "+v/2+",0");break;case"<->":k.setAttribute("style","marker-end:url(#arrowhead);marker-start:url(#arrowtail);stroke:#0041c4;stroke-width:1;fill:none");break;case"<~>":k.setAttribute("style","marker-end:url(#arrowhead);marker-start:url(#arrowtail);stroke:#0041c4;stroke-width:1;fill:none"),k.setAttribute("d","M "+x.x+","+x.y+" c "+.7*v+", 0 "+.3*v+", "+y+" "+v+", "+y);break;case"<-~>":k.setAttribute("style","marker-end:url(#arrowhead);marker-start:url(#arrowtail);stroke:#0041c4;stroke-width:1;fill:none"),k.setAttribute("d","M "+x.x+","+x.y+" c "+.7*v+", 0 "+v+", "+y+" "+v+", "+y),_.label&&(b=x.x+.75*(g.x-x.x));break;case"<-|>":k.setAttribute("style","marker-end:url(#arrowhead);marker-start:url(#arrowtail);stroke:#0041c4;stroke-width:1;fill:none"),k.setAttribute("d","m "+x.x+","+x.y+" "+v+",0 0,"+y),_.label&&(b=g.x);break;case"<-|->":k.setAttribute("style","marker-end:url(#arrowhead);marker-start:url(#arrowtail);stroke:#0041c4;stroke-width:1;fill:none"),k.setAttribute("d","m "+x.x+","+x.y+" "+v/2+",0 0,"+y+" "+v/2+",0");break;default:k.setAttribute("style","fill:none;stroke:#F00;stroke-width:1")}_.label&&(m.setAttribute("x",b),m.setAttribute("y",w+3),p.setAttribute("x",b-N/2),p.setAttribute("y",w-5))}for(u in E)u===u.toLowerCase()&&E[u].x>0&&(p=s(["rect",{y:E[u].y-4,height:8,style:"fill:#FFF;"}]),m=s(["text",{style:"font-size:8px;",x:E[u].x,y:E[u].y+2,"text-anchor":"middle"},u+""]),l.insertBefore(p,null),l.insertBefore(m,null),N=m.getBBox().width+2,p.setAttribute("x",E[u].x-N/2),p.setAttribute("width",N))}}},{"./create-element":2,"./w3":31,tspan:35}],24:[function(e,t,r){"use strict";function n(e,t){var r,s,o;for(t.xmax=Math.max(t.xmax,t.x),r=t.y,o=e.length,s=1;s<o;s++)"[object Array]"===Object.prototype.toString.call(e[s])?t=n(e[s],{x:t.x+1,y:t.y,xmax:t.xmax}):(e[s]={name:e[s],x:t.x+1,y:t.y},t.y+=2);return e[0]={name:e[0],x:t.x,y:Math.round((r+(t.y-2))/2)},t.x--,t}function s(e,t,r){var n,s,o=" M 4,0 C 4,1.1 3.1,2 2,2 0.9,2 0,1.1 0,0 c 0,-1.1 0.9,-2 2,-2 1.1,0 2,0.9 2,2 z",a={"~":"M -11,-6 -11,6 0,0 z m -5,6 5,0"+o,"=":"M -11,-6 -11,6 0,0 z m -5,6 5,0","&":"m -16,-10 5,0 c 6,0 11,4 11,10 0,6 -5,10 -11,10 l -5,0 z","~&":"m -16,-10 5,0 c 6,0 11,4 11,10 0,6 -5,10 -11,10 l -5,0 z"+o,"|":"m -18,-10 4,0 c 6,0 12,5 14,10 -2,5 -8,10 -14,10 l -4,0 c 2.5,-5 2.5,-15 0,-20 z","~|":"m -18,-10 4,0 c 6,0 12,5 14,10 -2,5 -8,10 -14,10 l -4,0 c 2.5,-5 2.5,-15 0,-20 z"+o,"^":"m -21,-10 c 1,3 2,6 2,10 m 0,0 c 0,4 -1,7 -2,10 m 3,-20 4,0 c 6,0 12,5 14,10 -2,5 -8,10 -14,10 l -4,0 c 1,-3 2,-6 2,-10 0,-4 -1,-7 -2,-10 z","~^":"m -21,-10 c 1,3 2,6 2,10 m 0,0 c 0,4 -1,7 -2,10 m 3,-20 4,0 c 6,0 12,5 14,10 -2,5 -8,10 -14,10 l -4,0 c 1,-3 2,-6 2,-10 0,-4 -1,-7 -2,-10 z"+o,"+":"m -8,5 0,-10 m -5,5 10,0 m 3,0 c 0,4.418278 -3.581722,8 -8,8 -4.418278,0 -8,-3.581722 -8,-8 0,-4.418278 3.581722,-8 8,-8 4.418278,0 8,3.581722 8,8 z","*":"m -4,4 -8,-8 m 0,8 8,-8 m 4,4 c 0,4.418278 -3.581722,8 -8,8 -4.418278,0 -8,-3.581722 -8,-8 0,-4.418278 3.581722,-8 8,-8 4.418278,0 8,3.581722 8,8 z"},i={BUF:1,INV:1,AND:"&",NAND:"&",OR:"≥1",NOR:"≥1",XOR:"=1",XNOR:"=1",box:""},l={INV:1,NAND:1,NOR:1,XNOR:1};return r===t&&(r=4,t=-4),n=a[e],s=i[e],n?["path",{class:"gate",d:n}]:s?["g",["path",{class:"gate",d:"m -16,"+(t-3)+" 16,0 0,"+(r-t+6)+" -16,0 z"+(l[e]?o:"")}],["text",["tspan",{x:"-14",y:"4",class:"wirename"},s+""]]]:["text",["tspan",{x:"-14",y:"4",class:"wirename"},e+""]]}function o(e){var t,r,n,o=["g"],a=[],i=e.length;for(t=2;t<i;t++)a.push(e[t][1]);for(r=Math.min.apply(null,a),n=Math.max.apply(null,a),o.push(["g",{transform:"translate(16,0)"},["path",{d:"M "+e[2][0]+","+r+" "+e[2][0]+","+n,class:"wire"}]]),t=2;t<i;t++)o.push(["g",["path",{d:"m "+e[t][0]+","+e[t][1]+" 16,0",class:"wire"}]]);return o.push(["g",{transform:"translate("+e[1][0]+","+e[1][1]+")"},["title",e[0]],s(e[0],r-e[1][1],n-e[1][1])]),o}function a(e,t){var r,n,s,i,l,c=["g"],u=[];if("[object Array]"===Object.prototype.toString.call(e)){for(n=e.length,u.push(e[0].name),u.push([32*(t-e[0].x),8*e[0].y]),r=1;r<n;r++)"[object Array]"===Object.prototype.toString.call(e[r])?u.push([32*(t-e[r][0].x),8*e[r][0].y]):u.push([32*(t-e[r].x),8*e[r].y]);for(c.push(o(u)),r=1;r<n;r++)c.push(a(e[r],t))}else l=e.name,s=32*(t-e.x),i=8*e.y,c.push(["g",{transform:"translate("+s+","+i+")"},["title",l],["path",{d:"M 2,0 a 2,2 0 1 1 -4,0 2,2 0 1 1 4,0 z"}],["text",["tspan",{x:"-4",y:"4",class:"pinname"},l]]]);return c}var i=e("./create-element");t.exports=function(e,t){var r,s,o,l,c,u,d,f,h,m,p=["g"],x=["g"];for(f=t.assign.length,s={x:0,y:2,xmax:0},r=t.assign,d=0;d<f;d++)(s=n(r[d],s)).x++;for(o=s.xmax+3,d=0;d<f;d++)p.push(a(r[d],o));for(c=32*(o+1)+1,u=8*(s.y+1)-7,f=4*(o+1),m=s.y+1,d=0;d<=f;d++)for(h=0;h<=m;h++)x.push(["rect",{height:1,width:1,x:8*d-.5,y:8*h-.5,class:"grid"}]);(l=document.getElementById("svgcontent_"+e)).setAttribute("viewBox","0 0 "+c+" "+u),l.setAttribute("width",c),l.setAttribute("height",u),l.insertBefore(i(["g",{transform:"translate(0.5, 0.5)"},x,p]),null)}},{"./create-element":2}],25:[function(e,t,r){"use strict";var n=e("./w3");t.exports=function(e,t,r,s){var o,a,i,l,c,u,d,f,h=[];if(t){(a=document.createElementNS(n.svg,"g")).id="wavegaps_"+r,e.insertBefore(a,null),d=!1;for(o in t)if(s.period=t[o].period?t[o].period:1,s.phase=(t[o].phase?2*t[o].phase:0)+s.xmin_cfg,i=document.createElementNS(n.svg,"g"),i.id="wavegap_"+o+"_"+r,i.setAttribute("transform","translate(0,"+(s.y0+o*s.yo)+")"),a.insertBefore(i,null),u=t[o].wave)for(h=u.split(""),c=0;h.length;)"<"===(f=h.shift())&&(d=!0,f=h.shift()),">"===f&&(d=!1,f=h.shift()),c+=d?1:2*s.period,"|"===f&&((l=document.createElementNS(n.svg,"use")).setAttributeNS(n.xlink,"xlink:href","#gap"),l.setAttribute("transform","translate("+s.xs*((c-(d?0:s.period))*s.hscale-s.phase)+")"),i.insertBefore(l,null))}}},{"./w3":31}],26:[function(e,t,r){"use strict";var n=e("tspan");t.exports=function(e,t,r){var s,o,a,i=["g"];return e.forEach(function(e,l){i.push(["path",{id:"group_"+l+"_"+t,d:"m "+(e.x+.5)+","+(e.y*r.yo+3.5+r.yh0+r.yh1)+" c -3,0 -5,2 -5,5 l 0,"+(e.height*r.yo-16)+" c 0,3 2,5 5,5",style:"stroke:#0041c4;stroke-width:1;fill:none"}]),void 0!==e.name&&(s=e.x-10,o=r.yo*(e.y+e.height/2)+r.yh0+r.yh1,(a=n.parse(e.name)).unshift("text",{"text-anchor":"middle",class:"info","xml:space":"preserve"}),i.push(["g",{transform:"translate("+s+","+o+")"},["g",{transform:"rotate(270)"},a]]))}),i}},{tspan:35}],27:[function(e,t,r){"use strict";var n=e("tspan"),s=e("./create-element");t.exports=function(e,t,r,o){function a(e,t,r){var o;e[t]&&e[t].text&&((o=n.parse(e[t].text)).unshift("text",{x:e.xmax*e.xs/2,y:r,"text-anchor":"middle",fill:"#000","xml:space":"preserve"}),o=s(o),c.insertBefore(o,null))}function i(e,t,r,o,a,i,u){var d,f,h,m,p=1,x=0,g=[];if(void 0!==e[t]&&void 0!==e[t][r]){if("string"==typeof(h=e[t][r]))h=h.split(" ");else if("number"==typeof h||"boolean"==typeof h)for(f=Number(h),h=[],l=0;l<u;l+=1)h.push(l+f);if("[object Array]"===Object.prototype.toString.call(h)&&0!==h.length){if(1===h.length)if(f=Number(h[0]),isNaN(f))g=h;else for(l=0;l<u;l+=1)g[l]=l+f;else if(2===h.length)if(f=Number(h[0]),p=Number(h[1]),2===(m=h[1].split(".")).length&&(x=m[1].length),isNaN(f)||isNaN(p))g=h;else for(f*=p,l=0;l<u;l+=1)g[l]=(p*l+f).toFixed(x);else g=h;for(l=0;l<u;l+=1)m=g[l],(d=n.parse(m)).unshift("text",{x:l*a+o,y:i,"text-anchor":"middle",class:"muted","xml:space":"preserve"}),d=s(d),c.insertBefore(d,null)}}}var l,c,u,d,f,h;for(f=(d=2*o.hscale)*o.xs,u=o.xmax/d,h=t.length*o.yo,c=s(["g",{id:"gmarks_"+r}]),e.insertBefore(c,e.firstChild),l=0;l<u+1;l+=1)c.insertBefore(s(["path",{id:"gmark_"+l+"_"+r,d:"m "+l*f+",0 0,"+h,style:"stroke:#888;stroke-width:0.5;stroke-dasharray:1,3"}]),null);a(o,"head",o.yh0?-33:-13),a(o,"foot",h+(o.yf0?45:25)),i(o,"head","tick",0,f,-5,u+1),i(o,"head","tock",f/2,f,-5,u),i(o,"foot","tick",0,f,h+15,u+1),i(o,"foot","tock",f/2,f,h+15,u)}},{"./create-element":2,tspan:35}],28:[function(e,t,r){"use strict";var n=e("./create-element"),s=e("bit-field/lib/render");t.exports=function(e,t,r){for(;r.childNodes.length;)r.removeChild(r.childNodes[0]);var o=s(t.reg),a=n(o);r.insertBefore(a,null)}},{"./create-element":2,"bit-field/lib/render":34}],29:[function(e,t,r){"use strict";var n=e("./rec"),s=e("./lane"),o=e("./create-element"),a=e("./parse-config"),i=e("./parse-wave-lanes"),l=e("./render-marks"),c=e("./render-gaps"),u=e("./render-groups"),d=e("./render-wave-lane"),f=e("./render-assign"),h=e("./render-reg"),m=e("./render-arcs"),p=e("./insert-svg-template"),x=e("./insert-svg-template-assign");t.exports=function(e,t,r){var g,v,y,b,w,k,N,A,_,E=0;if(t.signal){p(e,document.getElementById(r+e),t,s),a(t,s),g=n(t.signal,{x:0,y:0,xmax:0,width:[],lanes:[],groups:[]}),v=document.getElementById("lanes_"+e),y=document.getElementById("groups_"+e),w=i(g.lanes,s),A=d(v,w,e,s);for(_ in A)E=Math.max(E,A[_]+g.width[_]);l(v,w,e,s),m(v,g.lanes,e,t,s),c(v,g.lanes,e,s),y.insertBefore(o(u(g.groups,e,s)),null),s.xg=Math.ceil((E-s.tgo)/s.xs)*s.xs,k=s.xg+s.xs*(s.xmax+1),N=w.length*s.yo+s.yh0+s.yh1+s.yf0+s.yf1,(b=document.getElementById("svgcontent_"+e)).setAttribute("viewBox","0 0 "+k+" "+N),b.setAttribute("width",k),b.setAttribute("height",N),b.setAttribute("overflow","hidden"),v.setAttribute("transform","translate("+(s.xg+.5)+", "+(s.yh0+s.yh1+.5)+")")}else t.assign?(x(e,document.getElementById(r+e),t),f(e,t)):t.reg&&h(e,t,document.getElementById(r+e))}},{"./create-element":2,"./insert-svg-template":11,"./insert-svg-template-assign":10,"./lane":17,"./parse-config":18,"./parse-wave-lanes":20,"./rec":22,"./render-arcs":23,"./render-assign":24,"./render-gaps":25,"./render-groups":26,"./render-marks":27,"./render-reg":28,"./render-wave-lane":30}],30:[function(e,t,r){"use strict";var n=e("tspan"),s=e("./create-element"),o=e("./w3"),a=e("./find-lane-markers");t.exports=function(e,t,r,i){var l,c,u,d,f,h,m,p,x,g=[1],v=0,y=[];for(c=0;c<t.length;c+=1)if((p=t[c][0][0])&&(d=s(["g",{id:"wavelane_"+c+"_"+r,transform:"translate(0,"+(i.y0+c*i.yo)+")"}]),e.insertBefore(d,null),(h=n.parse(p)).unshift("text",{x:i.tgo,y:i.ym,class:"info","text-anchor":"end","xml:space":"preserve"}),h=s(h),d.insertBefore(h,null),y.push(h.getBBox().width),x=t[c][0][1],x=x>0?Math.ceil(2*x)-2*x:-2*x,f=s(["g",{id:"wavelane_draw_"+c+"_"+r,transform:"translate("+x*i.xs+", 0)"}]),d.insertBefore(f,null),t[c][1])){for(l=0;l<t[c][1].length;l+=1)(m=document.createElementNS(o.svg,"use")).setAttributeNS(o.xlink,"xlink:href","#"+t[c][1][l]),m.setAttribute("transform","translate("+l*i.xs+")"),f.insertBefore(m,null);if(t[c][2]&&t[c][2].length&&0!==(g=a(t[c][1])).length)for(u in g)t[c][2]&&void 0!==t[c][2][u]&&((h=n.parse(t[c][2][u])).unshift("text",{x:g[u]*i.xs+i.xlabel,y:i.ym,"text-anchor":"middle","xml:space":"preserve"}),h=s(h),f.insertBefore(h,null));t[c][1].length>v&&(v=t[c][1].length)}return i.xmax=Math.min(v,i.xmax_cfg-i.xmin_cfg),i.xg=20,y}},{"./create-element":2,"./find-lane-markers":5,"./w3":31,tspan:35}],31:[function(e,t,r){"use strict";t.exports={svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/XML/1998/namespace"}},{}],32:[function(e,t,r){"use strict";window.WaveDrom=window.WaveDrom||{};var n=e("./");window.WaveDrom.ProcessAll=n.processAll,window.WaveDrom.RenderWaveForm=n.renderWaveForm,window.WaveDrom.EditorRefresh=n.editorRefresh,window.WaveDrom.eva=n.eva},{"./":9}],33:[function(e,t,r){"use strict";t.exports=window.WaveSkin},{}],34:[function(e,t,r){"use strict";function n(e,t){return"translate("+e+","+t+")"}function s(e,t,r){var n=["line"],s={};return t?(s.x1=t,s.x2=t+e):s.x2=e,r&&(s.y1=r,s.y2=r),n.push(s),n}function o(e,t,r){var n=["line"],s={};return t&&(s.x1=t,s.x2=t),r?(s.y1=r,s.y2=r+e):s.y2=e,n.push(s),n}function a(e,t){var r=t.hspace/t.mod,s=["g",{transform:n(r/2,t.vspace/5)}],o=["g",{transform:n(r/2,t.vspace/2+4)}],a=["g",{transform:n(r/2,t.vspace)}],i=["g",{transform:n(0,t.vspace/4)}],l=t.fontsize,c=t.fontfamily,d=t.fontweight;return e.forEach(function(e){var n,f,h,m,p,x;if(h=0,m=t.mod-1,p=t.index*t.mod,x=(t.index+1)*t.mod-1,e.lsb/t.mod>>0===t.index)h=e.lsbm,p=e.lsb,e.msb/t.mod>>0===t.index&&(x=e.msb,m=e.msbm);else{if(e.msb/t.mod>>0!==t.index)return;x=e.msb,m=e.msbm}s.push(["text",{x:r*(t.mod-h-1),"font-size":l,"font-family":c,"font-weight":d},p.toString()]),h!==m&&s.push(["text",{x:r*(t.mod-m-1),"font-size":l,"font-family":c,"font-weight":d},x.toString()]),e.name?((n=u.parse(e.name)).unshift({x:r*(t.mod-(m+h)/2-1),"font-size":l,"font-family":c,"font-weight":d}),n.unshift("text"),o.push(n)):i.push(["rect",{style:"fill-opacity:0.1",x:r*(t.mod-m-1),y:0,width:r*(m-h+1),height:t.vspace/2}]),e.attr&&((f=u.parse(e.attr)).unshift({x:r*(t.mod-(m+h)/2-1),"font-size":l,"font-family":c,"font-weight":d}),f.unshift("text"),a.push(f))}),["g",i,s,o,a]}function i(e,t){return["g",{"text-anchor":"middle"},a(e,t)]}function l(e,t){var r=t.hspace,a=t.vspace,i=t.mod,l=["g",{stroke:"black","stroke-width":1,"stroke-linecap":"round",transform:n(0,a/4)}];l.push(s(r)),l.push(o(a/2)),l.push(s(r,0,a/2));var c=t.index*t.mod,u=t.mod;do{u===t.mod||e.some(function(e){return e.lsb===c})?l.push(o(a/2,u*(r/i))):(l.push(o(a/16,u*(r/i))),l.push(o(a/16,u*(r/i),7*a/16))),c++,u--}while(u);return l}function c(e,t){var r=["g",{transform:n(4.5,(t.lanes-t.index-1)*t.vspace+.5)}];return r.push(l(e,t)),r.push(i(e,t)),r}var u=e("tspan");t.exports=function(e,t){(t=t||{}).vspace=t.vspace||80,t.hspace=t.hspace||640,t.lanes=t.lanes||2,t.bits=t.bits||32,t.bigendian=t.bigendian||!1,t.fontfamily=t.fontfamily||"sans-serif",t.fontweight=t.fontweight||"normal",t.fontsize=t.fontsize||14;var r=["svg",{xmlns:"http://www.w3.org/2000/svg",width:t.hspace+9,height:t.vspace*t.lanes+5,viewBox:[0,0,t.hspace+9,t.vspace*t.lanes+5].join(" ")}],n=0,s=t.bits/t.lanes;t.mod=s,e.forEach(function(e){e.lsb=n,e.lsbm=n%s,n+=e.bits,e.msb=n-1,e.msbm=e.msb%s});var o;for(o=0;o<t.lanes;o++)t.index=o,r.push(c(e,t));return r}},{tspan:35}],35:[function(e,t,r){"use strict";var n=e("./parse"),s=e("./reparse");t.exports={parse:n,reparse:s}},{"./parse":36,"./reparse":37}],36:[function(e,t,r){"use strict";function n(e,t){t.add&&t.add.split(";").forEach(function(t){var r=t.split(" ");e[r[0]][r[1]]=!0}),t.del&&t.del.split(";").forEach(function(t){var r=t.split(" ");delete e[r[0]][r[1]]})}function s(e){return Object.keys(e).reduce(function(t,r){var n=Object.keys(e[r]);return n.length>0&&(t[r]=n.join(" ")),t},{})}var o=/<o>|<ins>|<s>|<sub>|<sup>|<b>|<i>|<tt>|<\/o>|<\/ins>|<\/s>|<\/sub>|<\/sup>|<\/b>|<\/i>|<\/tt>/,a={"<o>":{add:"text-decoration overline"},"</o>":{del:"text-decoration overline"},"<ins>":{add:"text-decoration underline"},"</ins>":{del:"text-decoration underline"},"<s>":{add:"text-decoration line-through"},"</s>":{del:"text-decoration line-through"},"<b>":{add:"font-weight bold"},"</b>":{del:"font-weight bold"},"<i>":{add:"font-style italic"},"</i>":{del:"font-style italic"},"<sub>":{add:"baseline-shift sub;font-size .7em"},"</sub>":{del:"baseline-shift sub;font-size .7em"},"<sup>":{add:"baseline-shift super;font-size .7em"},"</sup>":{del:"baseline-shift super;font-size .7em"},"<tt>":{add:"font-family monospace"},"</tt>":{del:"font-family monospace"}};t.exports=function(e){var t,r,i,l,c;if(void 0===e)return[];if("number"==typeof e)return[e+""];if("string"!=typeof e)return[e];for(r=[],t={"text-decoration":{},"font-weight":{},"font-style":{},"baseline-shift":{},"font-size":{},"font-family":{}};;){if(-1===(i=e.search(o)))return r.push(["tspan",s(t),e]),r;if(i>0&&(c=e.slice(0,i),r.push(["tspan",s(t),c])),l=e.match(o)[0],n(t,a[l]),0===(e=e.slice(i+l.length)).length)return r}}},{}],37:[function(e,t,r){"use strict";function n(e){var t=e.match(/(\w+)-(\w)(\w+)/);return null===t?e:t[1]+t[2].toUpperCase()+t[3]}var s=e("./parse");t.exports=function(e){function t(e,t){var s=e[0],o=e[1],a=Object.keys(o).reduce(function(e,t){return e[n(t)]=o[t],e},{}),i=e[2];return o.key=t,r(s,a,i)}var r=e.createElement;return function(e){return s(e).map(t)}}},{"./parse":36}]},{},[32]);