diff --git a/dist/image-sequencer-ui.js b/dist/image-sequencer-ui.js index b902cdc6..468e6006 100644 --- a/dist/image-sequencer-ui.js +++ b/dist/image-sequencer-ui.js @@ -25,6 +25,9 @@ window.onload = function() { } // Null option addStepSelect.append(''); + addStepSelect.selectize({ + sortField: 'text' + }); } refreshOptions(); @@ -270,8 +273,8 @@ function DefaultHtmlSequencerUi(_sequencer, options) { function onLoad() { importStepsFromUrlHash(); - if (!$('#selectStep').val()) - $(addStepSel + " #add-step-btn").prop("disabled", true); + if ($('#selectStep').val()==='none') + $(addStepSel + " #add-step-btn").prop("disabled", true); handleSaveSequence(); } @@ -839,7 +842,9 @@ function IntermediateHtmlStepUi(_sequencer, step, options) { '" ); } - + $('#insertStep #add-step-btn').selectize({ + sortField: 'text' + }); $('#insertStep #add-step-btn').prop('disabled', true); insertStepSelect.append(''); diff --git a/dist/image-sequencer-ui.min.js b/dist/image-sequencer-ui.min.js index e8620e52..542a4ccf 100644 --- a/dist/image-sequencer-ui.min.js +++ b/dist/image-sequencer-ui.min.js @@ -1 +1 @@ -!function(){return function n(t,e,r){function i(o,a){if(!e[o]){if(!t[o]){var c="function"==typeof require&&require;if(!a&&c)return c(o,!0);if(u)return u(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=e[o]={exports:{}};t[o][0].call(l.exports,function(n){return i(t[o][1][n]||n)},l,l.exports,n,t,e,r)}return e[o].exports}for(var u="function"==typeof require&&require,o=0;o'+n[e].name+"");t.append('')}sequencer=ImageSequencer(),n(),$(window).on("scroll",function(){var n=$("body").scrollTop()>20||$(":root").scrollTop()>20;$("#move-up").css({display:n?"block":"none"})}),$("#move-up").on("click",function(){$("body").animate({scrollTop:0}),$(":root").animate({scrollTop:0})}),sequencer.setUI(o(sequencer));var t=r(sequencer);a.getUrlHashParameter("src")?sequencer.loadImage(a.getUrlHashParameter("src"),t.onLoad):sequencer.loadImage("images/tulips.png",t.onLoad);$("#addStep select").on("change",t.selectNewStepUi),$("#addStep #add-step-btn").on("click",t.addStepUi),$("#resetButton").on("click",function(){confirm("Do you want to reset the sequence?")&&(window.location="/")}),$(".radio-group .radio").on("click",function(){$(this).parent().find(".radio").removeClass("selected"),$(this).addClass("selected"),newStep=$(this).attr("data-value"),$("#addStep select").val(newStep),t.selectNewStepUi(),t.addStepUi(),$(this).removeClass("selected")}),$("#download-btn").click(function(){return $(".step-thumbnail:last()").trigger("click"),!1}),$("body").on("click","button.remove",t.removeStepUi),$("#save-seq").click(()=>{var t=window.prompt("Please give a name to your sequence... (Saved sequence will only be available in this browser).");t&&(t+=" (local)",sequencer.saveSequence(t,sequencer.toString()),sequencer.loadModules(),$(".savesequencemsg").fadeIn(),setTimeout(function(){$(".savesequencemsg").fadeOut()},1e3),n())});var e=!1;$(".js-view-as-gif").on("click",function(n){if(!e){e=!0;var t=n.target;t.disabled=!0;try{for(var r=document.getElementsByClassName("step-thumbnail"),i=[],u=0;u{console.log(t),"installed"===t.state&&location.reload()}),console.log("Registration successful, scope is:",n.scope)}).catch(function(n){console.log("Service worker registration failed, error:",n)}),"serviceWorker"in navigator&&caches.keys().then(function(n){n.forEach(function(n){$("#clear-cache").append(" "+n)})}),$("#clear-cache").click(function(){"serviceWorker"in navigator&&caches.keys().then(function(n){n.forEach(function(n){caches.delete(n)})}),location.reload()})}},{}],3:[function(n,t,e){var r=n("./urlHash.js");t.exports=function(n,t){var e=(t=t||{}).addStepSel=t.addStepSel||"#addStep",i=t.removeStepSel=t.removeStepSel||"button.remove";function u(){var t=r.getUrlHashParameter("steps");t&&(n.importString(t),n.run({index:0})),r.setUrlHashParameter("steps",sequencer.toString())}function o(){sequencer.steps.length<2?$(" #save-seq").prop("disabled",!0):$(" #save-seq").prop("disabled",!1)}return t.selectStepSel=t.selectStepSel||"#selectStep",{onLoad:function(){u(),$("#selectStep").val()||$(e+" #add-step-btn").prop("disabled",!0),o()},importStepsFromUrlHash:u,selectNewStepUi:function(){var t=$(e+" select").val();$(e+" .info").html(n.modulesInfo(t).description),$(e+" #add-step-btn").prop("disabled",!1)},removeStepUi:function(){var n=$(i).index(this)+1;sequencer.removeSteps(n).run({index:n-1}),r.setUrlHashParameter("steps",sequencer.toString()),o()},addStepUi:function(){if("none"!=$(e+" select").val()){var i=$(e+" select").val(),u=1;sequencer.sequences[i]?u=sequencer.sequences[i].length:sequencer.modules[i][1].length&&(u=sequencer.modules[i][1].length),n.addSteps(i,t).run({index:n.steps.length-u-1}),$(e+" .info").html("Select a new module to add to your sequence."),$(e+" select").val("none"),o(),r.setUrlHashParameter("steps",n.toString())}}}}},{"./urlHash.js":8}],4:[function(n,t,e){var r=n("./intermediateHtmlStepUi.js"),i=n("./urlHash.js"),u=n("lodash"),o=n("./mapHtmltypes");function a(n,t){var e=(t=t||{}).stepsEl||document.querySelector("#steps");t.selectStepSel=t.selectStepSel||"#selectStep";function a(n){var t=$(n.imgElement);t.mousemove(function(n){var e=document.createElement("canvas");e.width=t.width(),e.height=t.height();var r=e.getContext("2d");r.drawImage(this,0,0);var i=$(this).offset(),u=n.pageX-i.left,o=n.pageY-i.top,a=r.getImageData(u,o,1,1);t[0].title="rgb: "+a.data[0]+","+a.data[1]+","+a.data[2]})}function c(n,t){if(0==$("#"+t).length){var e=document.createElement("span");e.innerHTML=' '+n,e.id=t,e.classList.add("notification"),$("body").append(e)}$("#"+t).fadeIn(500).delay(200).fadeOut(500)}return{getPreview:function(){return step.imgElement},onSetup:function(t,f){t.options&&t.options.description&&(t.description=t.options.description),t.ui='

'+t.name+'

"'+(t.description||"")+'

';var l=r(n,t),s=new DOMParser;if(t.ui=s.parseFromString(t.ui,"text/html"),t.ui=t.ui.querySelector("div.container"),t.linkElements=t.ui.querySelectorAll("a"),t.imgElement=t.ui.querySelector("a img"),n.modulesInfo().hasOwnProperty(t.name)){var p=n.modulesInfo(t.name).inputs,h=n.modulesInfo(t.name).outputs,v=Object.assign(p,h);for(var d in v){var g=p.hasOwnProperty(d),_="",y=g?o(p[d]):{};if(g)if("select"==y.type.toLowerCase()){for(var m in _+='"}else{let n=t.options[d]||y.default;_=''+n+"":_+='">'}else _+='';var b=document.createElement("div");b.className="row",b.setAttribute("name",d);var w=p[d].desc||d;b.innerHTML="
"+_+"
",t.ui.querySelector("div.details").appendChild(b)}$(t.ui.querySelector("div.details")).append('

Press apply to see changes

')}"load-image"!=t.name?(t.ui.querySelector("div.details").appendChild(s.parseFromString('
',"text/html").querySelector("div")),$(t.ui.querySelectorAll(".remove")).on("click",function(){c("Step Removed","remove-notification")}),$(t.ui.querySelectorAll(".insert-step")).on("click",function(){l.insertStep(t.ID)}),f.index==n.steps.length?(e.appendChild(t.ui),$("#steps .container:nth-last-child(1) .insert-step").prop("disabled",!0),$("#steps .container:nth-last-child(2)")&&$("#steps .container:nth-last-child(2) .insert-step").prop("disabled",!1)):e.insertBefore(t.ui,$(e).children()[f.index])):$("#load-image").append(t.ui),$(t.ui.querySelector(".toggle")).on("click",()=>{$(t.ui.querySelector(".toggleIcon")).toggleClass("fa-caret-up").toggleClass("fa-caret-down"),$(t.ui.querySelectorAll(".cal")).toggleClass("collapse")}),$(t.imgElement).on("mousemove",u.debounce(()=>a(t),150));var S=0,x=!1;$(t.ui.querySelector(".input-form")).on("submit",function(e){e.preventDefault(),x&&($(t.ui.querySelector("div.details")).find("input,select").each(function(n,e){$(e).data("initValue",$(e).val()).data("hasChangedBefore",!1),t.options[$(e).attr("name")]=$(e).val()}),n.run({index:t.index-1}),i.setUrlHashParameter("steps",n.toString()),$(t.ui.querySelector(".btn-save")).prop("disabled",!0),x=!1,S=0)}),$(t.ui.querySelectorAll(".target")).each(function(n,e){$(e).data("initValue",$(e).val()).data("hasChangedBefore",!1).on("input",function(){var n,e,r,i;$(this).focus().data("hasChangedBefore",(n=$(this).val(),e=$(this).data("initValue"),r=$(this).data("hasChangedBefore"),i=!(isNaN(e)||isNaN(n)?n===e:n-e==0),x=(S+=r?i?0:-1:i?1:0)>0,$(t.ui.querySelector(".btn-save")).prop("disabled",!x),i))})}),$('input[type="range"]').on("input",function(){$(this).next().html($(this).val())})},onComplete:function(t){$(t.ui.querySelector(".load")).hide(),$(t.ui.querySelector("img")).show(),$(t.ui.querySelector(".load-spin")).hide(),t.imgElement.src="load-image"==t.name?t.output.src:t.output;var e=t.ui.querySelector(".img-thumbnail");for(let n=0;n

Select a new module to add to your sequence.

Resize

Brightness

Contrast

Saturation

Rotate

Crop

';a=(new DOMParser).parseFromString(a,"text/html").querySelector("div"),t.ui.querySelector("div.step").insertAdjacentElement("afterend",a),i.updatePreviews(t.output,"insertStep");var c=$("#insertStep select");for(var f in c.html(""),r)void 0!==r[f]&&c.append('");$("#insertStep #add-step-btn").prop("disabled",!0),c.append(''),$("#insertStep .radio-group .radio").on("click",function(){$(this).parent().find(".radio").removeClass("selected"),$(this).addClass("selected"),newStep=$(this).attr("data-value"),c.val(newStep),u(),o(e),$(this).removeClass("selected")}),$(t.ui.querySelector("#insertStep select")).on("change",u),$(t.ui.querySelector("#insertStep #add-step-btn")).on("click",function(){o(e)})},{insertStep:insertStep}}},{"./insertPreview.js":5,"./urlHash.js":8}],7:[function(n,t,e){t.exports=function(n){var t;switch(n.type.toLowerCase()){case"integer":t=void 0!=n.min?"range":"number";break;case"string":t="text";break;case"select":t="select";break;case"percentage":t="number";break;case"float":t=void 0!=n.min?"range":"text";break;default:t="text"}var e=n;return e.type=t,e}},{}],8:[function(n,t,e){function r(){var n=window.location.hash;n&&(n=n.split("#")[1]);var t={};return n.split("&").forEach(function(n,e){""!=(n=n.split("="))[0]&&(t[n[0]]=n[1])}),t}function i(n){var t=Object.keys(n),e=Object.values(n),r=[];t.forEach(function(n,i){""!=n&&r.push(t[i]+"="+e[i])});var i=r.join("&");window.location.hash=i}t.exports={getUrlHashParameter:function(n){return r()[n]},setUrlHashParameter:function(n,t){var e=r();e[n]=t,i(e)},getUrlHashParameters:r,setUrlHashParameters:i}},{}],9:[function(n,t,e){(function(n){(function(){var r,i=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",a="__lodash_hash_undefined__",c=500,f="__lodash_placeholder__",l=1,s=2,p=4,h=1,v=2,d=1,g=2,_=4,y=8,m=16,b=32,w=64,S=128,x=256,$=512,j=30,q="...",k=800,A=16,E=1,I=2,O=1/0,U=9007199254740991,C=1.7976931348623157e308,R=NaN,z=4294967295,L=z-1,P=z>>>1,T=[["ary",S],["bind",d],["bindKey",g],["curry",y],["curryRight",m],["flip",$],["partial",b],["partialRight",w],["rearg",x]],W="[object Arguments]",H="[object Array]",B="[object AsyncFunction]",D="[object Boolean]",M="[object Date]",N="[object DOMException]",F="[object Error]",V="[object Function]",Z="[object GeneratorFunction]",K="[object Map]",G="[object Number]",Y="[object Null]",J="[object Object]",X="[object Proxy]",Q="[object RegExp]",nn="[object Set]",tn="[object String]",en="[object Symbol]",rn="[object Undefined]",un="[object WeakMap]",on="[object WeakSet]",an="[object ArrayBuffer]",cn="[object DataView]",fn="[object Float32Array]",ln="[object Float64Array]",sn="[object Int8Array]",pn="[object Int16Array]",hn="[object Int32Array]",vn="[object Uint8Array]",dn="[object Uint8ClampedArray]",gn="[object Uint16Array]",_n="[object Uint32Array]",yn=/\b__p \+= '';/g,mn=/\b(__p \+=) '' \+/g,bn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wn=/&(?:amp|lt|gt|quot|#39);/g,Sn=/[&<>"']/g,xn=RegExp(wn.source),$n=RegExp(Sn.source),jn=/<%-([\s\S]+?)%>/g,qn=/<%([\s\S]+?)%>/g,kn=/<%=([\s\S]+?)%>/g,An=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,En=/^\w*$/,In=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,On=/[\\^$.*+?()[\]{}|]/g,Un=RegExp(On.source),Cn=/^\s+|\s+$/g,Rn=/^\s+/,zn=/\s+$/,Ln=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Pn=/\{\n\/\* \[wrapped with (.+)\] \*/,Tn=/,? & /,Wn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Hn=/\\(\\)?/g,Bn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dn=/\w*$/,Mn=/^[-+]0x[0-9a-f]+$/i,Nn=/^0b[01]+$/i,Fn=/^\[object .+?Constructor\]$/,Vn=/^0o[0-7]+$/i,Zn=/^(?:0|[1-9]\d*)$/,Kn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gn=/($^)/,Yn=/['\n\r\u2028\u2029\\]/g,Jn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Xn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Qn="[\\ud800-\\udfff]",nt="["+Xn+"]",tt="["+Jn+"]",et="\\d+",rt="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",ut="[^\\ud800-\\udfff"+Xn+et+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ot="\\ud83c[\\udffb-\\udfff]",at="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",ft="[\\ud800-\\udbff][\\udc00-\\udfff]",lt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",st="(?:"+it+"|"+ut+")",pt="(?:"+lt+"|"+ut+")",ht="(?:"+tt+"|"+ot+")"+"?",vt="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[at,ct,ft].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),dt="(?:"+[rt,ct,ft].join("|")+")"+vt,gt="(?:"+[at+tt+"?",tt,ct,ft,Qn].join("|")+")",_t=RegExp("['’]","g"),yt=RegExp(tt,"g"),mt=RegExp(ot+"(?="+ot+")|"+gt+vt,"g"),bt=RegExp([lt+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[nt,lt,"$"].join("|")+")",pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[nt,lt+st,"$"].join("|")+")",lt+"?"+st+"+(?:['’](?:d|ll|m|re|s|t|ve))?",lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",et,dt].join("|"),"g"),wt=RegExp("[\\u200d\\ud800-\\udfff"+Jn+"\\ufe0e\\ufe0f]"),St=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$t=-1,jt={};jt[fn]=jt[ln]=jt[sn]=jt[pn]=jt[hn]=jt[vn]=jt[dn]=jt[gn]=jt[_n]=!0,jt[W]=jt[H]=jt[an]=jt[D]=jt[cn]=jt[M]=jt[F]=jt[V]=jt[K]=jt[G]=jt[J]=jt[Q]=jt[nn]=jt[tn]=jt[un]=!1;var qt={};qt[W]=qt[H]=qt[an]=qt[cn]=qt[D]=qt[M]=qt[fn]=qt[ln]=qt[sn]=qt[pn]=qt[hn]=qt[K]=qt[G]=qt[J]=qt[Q]=qt[nn]=qt[tn]=qt[en]=qt[vn]=qt[dn]=qt[gn]=qt[_n]=!0,qt[F]=qt[V]=qt[un]=!1;var kt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},At=parseFloat,Et=parseInt,It="object"==typeof n&&n&&n.Object===Object&&n,Ot="object"==typeof self&&self&&self.Object===Object&&self,Ut=It||Ot||Function("return this")(),Ct="object"==typeof e&&e&&!e.nodeType&&e,Rt=Ct&&"object"==typeof t&&t&&!t.nodeType&&t,zt=Rt&&Rt.exports===Ct,Lt=zt&&It.process,Pt=function(){try{var n=Rt&&Rt.require&&Rt.require("util").types;return n||Lt&&Lt.binding&&Lt.binding("util")}catch(n){}}(),Tt=Pt&&Pt.isArrayBuffer,Wt=Pt&&Pt.isDate,Ht=Pt&&Pt.isMap,Bt=Pt&&Pt.isRegExp,Dt=Pt&&Pt.isSet,Mt=Pt&&Pt.isTypedArray;function Nt(n,t,e){switch(e.length){case 0:return n.call(t);case 1:return n.call(t,e[0]);case 2:return n.call(t,e[0],e[1]);case 3:return n.call(t,e[0],e[1],e[2])}return n.apply(t,e)}function Ft(n,t,e,r){for(var i=-1,u=null==n?0:n.length;++i-1}function Jt(n,t,e){for(var r=-1,i=null==n?0:n.length;++r-1;);return e}function me(n,t){for(var e=n.length;e--&&oe(t,n[e],0)>-1;);return e}var be=se({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),we=se({"&":"&","<":"<",">":">",'"':""","'":"'"});function Se(n){return"\\"+kt[n]}function xe(n){return wt.test(n)}function $e(n){var t=-1,e=Array(n.size);return n.forEach(function(n,r){e[++t]=[r,n]}),e}function je(n,t){return function(e){return n(t(e))}}function qe(n,t){for(var e=-1,r=n.length,i=0,u=[];++e",""":'"',"'":"'"});var Ue=function n(t){var e,Jn=(t=null==t?Ut:Ue.defaults(Ut.Object(),t,Ue.pick(Ut,xt))).Array,Xn=t.Date,Qn=t.Error,nt=t.Function,tt=t.Math,et=t.Object,rt=t.RegExp,it=t.String,ut=t.TypeError,ot=Jn.prototype,at=nt.prototype,ct=et.prototype,ft=t["__core-js_shared__"],lt=at.toString,st=ct.hasOwnProperty,pt=0,ht=(e=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",vt=ct.toString,dt=lt.call(et),gt=Ut._,mt=rt("^"+lt.call(st).replace(On,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=zt?t.Buffer:r,kt=t.Symbol,It=t.Uint8Array,Ot=wt?wt.allocUnsafe:r,Ct=je(et.getPrototypeOf,et),Rt=et.create,Lt=ct.propertyIsEnumerable,Pt=ot.splice,re=kt?kt.isConcatSpreadable:r,se=kt?kt.iterator:r,Ce=kt?kt.toStringTag:r,Re=function(){try{var n=Tu(et,"defineProperty");return n({},"",{}),n}catch(n){}}(),ze=t.clearTimeout!==Ut.clearTimeout&&t.clearTimeout,Le=Xn&&Xn.now!==Ut.Date.now&&Xn.now,Pe=t.setTimeout!==Ut.setTimeout&&t.setTimeout,Te=tt.ceil,We=tt.floor,He=et.getOwnPropertySymbols,Be=wt?wt.isBuffer:r,De=t.isFinite,Me=ot.join,Ne=je(et.keys,et),Fe=tt.max,Ve=tt.min,Ze=Xn.now,Ke=t.parseInt,Ge=tt.random,Ye=ot.reverse,Je=Tu(t,"DataView"),Xe=Tu(t,"Map"),Qe=Tu(t,"Promise"),nr=Tu(t,"Set"),tr=Tu(t,"WeakMap"),er=Tu(et,"create"),rr=tr&&new tr,ir={},ur=lo(Je),or=lo(Xe),ar=lo(Qe),cr=lo(nr),fr=lo(tr),lr=kt?kt.prototype:r,sr=lr?lr.valueOf:r,pr=lr?lr.toString:r;function hr(n){if(Aa(n)&&!_a(n)&&!(n instanceof _r)){if(n instanceof gr)return n;if(st.call(n,"__wrapped__"))return so(n)}return new gr(n)}var vr=function(){function n(){}return function(t){if(!ka(t))return{};if(Rt)return Rt(t);n.prototype=t;var e=new n;return n.prototype=r,e}}();function dr(){}function gr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function _r(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function yr(n){var t=-1,e=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function zr(n,t,e,i,u,o){var a,c=t&l,f=t&s,h=t&p;if(e&&(a=u?e(n,i,u,o):e(n)),a!==r)return a;if(!ka(n))return n;var v=_a(n);if(v){if(a=function(n){var t=n.length,e=new n.constructor(t);return t&&"string"==typeof n[0]&&st.call(n,"index")&&(e.index=n.index,e.input=n.input),e}(n),!c)return eu(n,a)}else{var d=Bu(n),g=d==V||d==Z;if(wa(n))return Yi(n,c);if(d==J||d==W||g&&!u){if(a=f||g?{}:Mu(n),!c)return f?function(n,t){return ru(n,Hu(n),t)}(n,function(n,t){return n&&ru(t,uc(t),n)}(a,n)):function(n,t){return ru(n,Wu(n),t)}(n,Or(a,n))}else{if(!qt[d])return u?n:{};a=function(n,t,e){var r,i,u,o=n.constructor;switch(t){case an:return Ji(n);case D:case M:return new o(+n);case cn:return function(n,t){var e=t?Ji(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}(n,e);case fn:case ln:case sn:case pn:case hn:case vn:case dn:case gn:case _n:return Xi(n,e);case K:return new o;case G:case tn:return new o(n);case Q:return(u=new(i=n).constructor(i.source,Dn.exec(i))).lastIndex=i.lastIndex,u;case nn:return new o;case en:return r=n,sr?et(sr.call(r)):{}}}(n,d,c)}}o||(o=new Sr);var _=o.get(n);if(_)return _;if(o.set(n,a),Ca(n))return n.forEach(function(r){a.add(zr(r,t,e,r,n,o))}),a;if(Ea(n))return n.forEach(function(r,i){a.set(i,zr(r,t,e,i,n,o))}),a;var y=v?r:(h?f?Ou:Iu:f?uc:ic)(n);return Vt(y||n,function(r,i){y&&(r=n[i=r]),Ar(a,i,zr(r,t,e,i,n,o))}),a}function Lr(n,t,e){var i=e.length;if(null==n)return!i;for(n=et(n);i--;){var u=e[i],o=t[u],a=n[u];if(a===r&&!(u in n)||!o(a))return!1}return!0}function Pr(n,t,e){if("function"!=typeof n)throw new ut(o);return ro(function(){n.apply(r,e)},t)}function Tr(n,t,e,r){var u=-1,o=Yt,a=!0,c=n.length,f=[],l=t.length;if(!c)return f;e&&(t=Xt(t,de(e))),r?(o=Jt,a=!1):t.length>=i&&(o=_e,a=!1,t=new wr(t));n:for(;++u-1},mr.prototype.set=function(n,t){var e=this.__data__,r=Er(e,n);return r<0?(++this.size,e.push([n,t])):e[r][1]=t,this},br.prototype.clear=function(){this.size=0,this.__data__={hash:new yr,map:new(Xe||mr),string:new yr}},br.prototype.delete=function(n){var t=Lu(this,n).delete(n);return this.size-=t?1:0,t},br.prototype.get=function(n){return Lu(this,n).get(n)},br.prototype.has=function(n){return Lu(this,n).has(n)},br.prototype.set=function(n,t){var e=Lu(this,n),r=e.size;return e.set(n,t),this.size+=e.size==r?0:1,this},wr.prototype.add=wr.prototype.push=function(n){return this.__data__.set(n,a),this},wr.prototype.has=function(n){return this.__data__.has(n)},Sr.prototype.clear=function(){this.__data__=new mr,this.size=0},Sr.prototype.delete=function(n){var t=this.__data__,e=t.delete(n);return this.size=t.size,e},Sr.prototype.get=function(n){return this.__data__.get(n)},Sr.prototype.has=function(n){return this.__data__.has(n)},Sr.prototype.set=function(n,t){var e=this.__data__;if(e instanceof mr){var r=e.__data__;if(!Xe||r.length0&&e(a)?t>1?Nr(a,t-1,e,r,i):Qt(i,a):r||(i[i.length]=a)}return i}var Fr=au(),Vr=au(!0);function Zr(n,t){return n&&Fr(n,t,ic)}function Kr(n,t){return n&&Vr(n,t,ic)}function Gr(n,t){return Gt(t,function(t){return $a(n[t])})}function Yr(n,t){for(var e=0,i=(t=Vi(t,n)).length;null!=n&&et}function ni(n,t){return null!=n&&st.call(n,t)}function ti(n,t){return null!=n&&t in et(n)}function ei(n,t,e){for(var i=e?Jt:Yt,u=n[0].length,o=n.length,a=o,c=Jn(o),f=1/0,l=[];a--;){var s=n[a];a&&t&&(s=Xt(s,de(t))),f=Ve(s.length,f),c[a]=!e&&(t||u>=120&&s.length>=120)?new wr(a&&s):r}s=n[0];var p=-1,h=c[0];n:for(;++p=a)return c;var f=e[r];return c*("desc"==f?-1:1)}}return n.index-t.index}(n,t,e)})}function yi(n,t,e){for(var r=-1,i=t.length,u={};++r-1;)a!==n&&Pt.call(a,c,1),Pt.call(n,c,1);return n}function bi(n,t){for(var e=n?t.length:0,r=e-1;e--;){var i=t[e];if(e==r||i!==u){var u=i;Fu(i)?Pt.call(n,i,1):Ti(n,i)}}return n}function wi(n,t){return n+We(Ge()*(t-n+1))}function Si(n,t){var e="";if(!n||t<1||t>U)return e;do{t%2&&(e+=n),(t=We(t/2))&&(n+=n)}while(t);return e}function xi(n,t){return io(Qu(n,t,Ic),n+"")}function $i(n){return $r(hc(n))}function ji(n,t){var e=hc(n);return ao(e,Rr(t,0,e.length))}function qi(n,t,e,i){if(!ka(n))return n;for(var u=-1,o=(t=Vi(t,n)).length,a=o-1,c=n;null!=c&&++ui?0:i+t),(e=e>i?i:e)<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var u=Jn(i);++r>>1,o=n[u];null!==o&&!za(o)&&(e?o<=t:o=i){var l=t?null:Su(n);if(l)return ke(l);a=!1,u=_e,f=new wr}else f=t?[]:c;n:for(;++r=i?n:Ii(n,t,e)}var Gi=ze||function(n){return Ut.clearTimeout(n)};function Yi(n,t){if(t)return n.slice();var e=n.length,r=Ot?Ot(e):new n.constructor(e);return n.copy(r),r}function Ji(n){var t=new n.constructor(n.byteLength);return new It(t).set(new It(n)),t}function Xi(n,t){var e=t?Ji(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.length)}function Qi(n,t){if(n!==t){var e=n!==r,i=null===n,u=n==n,o=za(n),a=t!==r,c=null===t,f=t==t,l=za(t);if(!c&&!l&&!o&&n>t||o&&a&&f&&!c&&!l||i&&a&&f||!e&&f||!u)return 1;if(!i&&!o&&!l&&n1?e[u-1]:r,a=u>2?e[2]:r;for(o=n.length>3&&"function"==typeof o?(u--,o):r,a&&Vu(e[0],e[1],a)&&(o=u<3?r:o,u=1),t=et(t);++i-1?u[o?t[a]:a]:r}}function pu(n){return Eu(function(t){var e=t.length,i=e,u=gr.prototype.thru;for(n&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new ut(o);if(u&&!c&&"wrapper"==Cu(a))var c=new gr([],!0)}for(i=c?i:e;++i1&&y.reverse(),s&&fc))return!1;var l=o.get(n);if(l&&o.get(t))return l==t;var s=-1,p=!0,d=e&v?new wr:r;for(o.set(n,t),o.set(t,n);++s-1&&n%1==0&&n1?"& ":"")+t[r],t=t.join(e>2?", ":" "),n.replace(Ln,"{\n/* [wrapped with "+t+"] */\n")}(r,function(n,t){return Vt(T,function(e){var r="_."+e[0];t&e[1]&&!Yt(n,r)&&n.push(r)}),n.sort()}(function(n){var t=n.match(Pn);return t?t[1].split(Tn):[]}(r),e)))}function oo(n){var t=0,e=0;return function(){var i=Ze(),u=A-(i-e);if(e=i,u>0){if(++t>=k)return arguments[0]}else t=0;return n.apply(r,arguments)}}function ao(n,t){var e=-1,i=n.length,u=i-1;for(t=t===r?i:t;++e1?n[t-1]:r;return Uo(n,e="function"==typeof e?(n.pop(),e):r)});function Wo(n){var t=hr(n);return t.__chain__=!0,t}function Ho(n,t){return t(n)}var Bo=Eu(function(n){var t=n.length,e=t?n[0]:0,i=this.__wrapped__,u=function(t){return Cr(t,n)};return!(t>1||this.__actions__.length)&&i instanceof _r&&Fu(e)?((i=i.slice(e,+e+(t?1:0))).__actions__.push({func:Ho,args:[u],thisArg:r}),new gr(i,this.__chain__).thru(function(n){return t&&!n.length&&n.push(r),n})):this.thru(u)});var Do=iu(function(n,t,e){st.call(n,e)?++n[e]:Ur(n,e,1)});var Mo=su(go),No=su(_o);function Fo(n,t){return(_a(n)?Vt:Wr)(n,zu(t,3))}function Vo(n,t){return(_a(n)?Zt:Hr)(n,zu(t,3))}var Zo=iu(function(n,t,e){st.call(n,e)?n[e].push(t):Ur(n,e,[t])});var Ko=xi(function(n,t,e){var r=-1,i="function"==typeof t,u=ma(n)?Jn(n.length):[];return Wr(n,function(n){u[++r]=i?Nt(t,n,e):ri(n,t,e)}),u}),Go=iu(function(n,t,e){Ur(n,e,t)});function Yo(n,t){return(_a(n)?Xt:pi)(n,zu(t,3))}var Jo=iu(function(n,t,e){n[e?0:1].push(t)},function(){return[[],[]]});var Xo=xi(function(n,t){if(null==n)return[];var e=t.length;return e>1&&Vu(n,t[0],t[1])?t=[]:e>2&&Vu(t[0],t[1],t[2])&&(t=[t[0]]),_i(n,Nr(t,1),[])}),Qo=Le||function(){return Ut.Date.now()};function na(n,t,e){return t=e?r:t,t=n&&null==t?n.length:t,$u(n,S,r,r,r,r,t)}function ta(n,t){var e;if("function"!=typeof t)throw new ut(o);return n=Ba(n),function(){return--n>0&&(e=t.apply(this,arguments)),n<=1&&(t=r),e}}var ea=xi(function(n,t,e){var r=d;if(e.length){var i=qe(e,Ru(ea));r|=b}return $u(n,r,t,e,i)}),ra=xi(function(n,t,e){var r=d|g;if(e.length){var i=qe(e,Ru(ra));r|=b}return $u(t,r,n,e,i)});function ia(n,t,e){var i,u,a,c,f,l,s=0,p=!1,h=!1,v=!0;if("function"!=typeof n)throw new ut(o);function d(t){var e=i,o=u;return i=u=r,s=t,c=n.apply(o,e)}function g(n){var e=n-l;return l===r||e>=t||e<0||h&&n-s>=a}function _(){var n=Qo();if(g(n))return y(n);f=ro(_,function(n){var e=t-(n-l);return h?Ve(e,a-(n-s)):e}(n))}function y(n){return f=r,v&&i?d(n):(i=u=r,c)}function m(){var n=Qo(),e=g(n);if(i=arguments,u=this,l=n,e){if(f===r)return function(n){return s=n,f=ro(_,t),p?d(n):c}(l);if(h)return f=ro(_,t),d(l)}return f===r&&(f=ro(_,t)),c}return t=Ma(t)||0,ka(e)&&(p=!!e.leading,a=(h="maxWait"in e)?Fe(Ma(e.maxWait)||0,t):a,v="trailing"in e?!!e.trailing:v),m.cancel=function(){f!==r&&Gi(f),s=0,i=l=u=f=r},m.flush=function(){return f===r?c:y(Qo())},m}var ua=xi(function(n,t){return Pr(n,1,t)}),oa=xi(function(n,t,e){return Pr(n,Ma(t)||0,e)});function aa(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new ut(o);var e=function(){var r=arguments,i=t?t.apply(this,r):r[0],u=e.cache;if(u.has(i))return u.get(i);var o=n.apply(this,r);return e.cache=u.set(i,o)||u,o};return e.cache=new(aa.Cache||br),e}function ca(n){if("function"!=typeof n)throw new ut(o);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}aa.Cache=br;var fa=Zi(function(n,t){var e=(t=1==t.length&&_a(t[0])?Xt(t[0],de(zu())):Xt(Nr(t,1),de(zu()))).length;return xi(function(r){for(var i=-1,u=Ve(r.length,e);++i=t}),ga=ii(function(){return arguments}())?ii:function(n){return Aa(n)&&st.call(n,"callee")&&!Lt.call(n,"callee")},_a=Jn.isArray,ya=Tt?de(Tt):function(n){return Aa(n)&&Xr(n)==an};function ma(n){return null!=n&&qa(n.length)&&!$a(n)}function ba(n){return Aa(n)&&ma(n)}var wa=Be||Mc,Sa=Wt?de(Wt):function(n){return Aa(n)&&Xr(n)==M};function xa(n){if(!Aa(n))return!1;var t=Xr(n);return t==F||t==N||"string"==typeof n.message&&"string"==typeof n.name&&!Oa(n)}function $a(n){if(!ka(n))return!1;var t=Xr(n);return t==V||t==Z||t==B||t==X}function ja(n){return"number"==typeof n&&n==Ba(n)}function qa(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=U}function ka(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function Aa(n){return null!=n&&"object"==typeof n}var Ea=Ht?de(Ht):function(n){return Aa(n)&&Bu(n)==K};function Ia(n){return"number"==typeof n||Aa(n)&&Xr(n)==G}function Oa(n){if(!Aa(n)||Xr(n)!=J)return!1;var t=Ct(n);if(null===t)return!0;var e=st.call(t,"constructor")&&t.constructor;return"function"==typeof e&&e instanceof e&<.call(e)==dt}var Ua=Bt?de(Bt):function(n){return Aa(n)&&Xr(n)==Q};var Ca=Dt?de(Dt):function(n){return Aa(n)&&Bu(n)==nn};function Ra(n){return"string"==typeof n||!_a(n)&&Aa(n)&&Xr(n)==tn}function za(n){return"symbol"==typeof n||Aa(n)&&Xr(n)==en}var La=Mt?de(Mt):function(n){return Aa(n)&&qa(n.length)&&!!jt[Xr(n)]};var Pa=mu(si),Ta=mu(function(n,t){return n<=t});function Wa(n){if(!n)return[];if(ma(n))return Ra(n)?Ie(n):eu(n);if(se&&n[se])return function(n){for(var t,e=[];!(t=n.next()).done;)e.push(t.value);return e}(n[se]());var t=Bu(n);return(t==K?$e:t==nn?ke:hc)(n)}function Ha(n){return n?(n=Ma(n))===O||n===-O?(n<0?-1:1)*C:n==n?n:0:0===n?n:0}function Ba(n){var t=Ha(n),e=t%1;return t==t?e?t-e:t:0}function Da(n){return n?Rr(Ba(n),0,z):0}function Ma(n){if("number"==typeof n)return n;if(za(n))return R;if(ka(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=ka(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=n.replace(Cn,"");var e=Nn.test(n);return e||Vn.test(n)?Et(n.slice(2),e?2:8):Mn.test(n)?R:+n}function Na(n){return ru(n,uc(n))}function Fa(n){return null==n?"":Li(n)}var Va=uu(function(n,t){if(Yu(t)||ma(t))ru(t,ic(t),n);else for(var e in t)st.call(t,e)&&Ar(n,e,t[e])}),Za=uu(function(n,t){ru(t,uc(t),n)}),Ka=uu(function(n,t,e,r){ru(t,uc(t),n,r)}),Ga=uu(function(n,t,e,r){ru(t,ic(t),n,r)}),Ya=Eu(Cr);var Ja=xi(function(n,t){n=et(n);var e=-1,i=t.length,u=i>2?t[2]:r;for(u&&Vu(t[0],t[1],u)&&(i=1);++e1),t}),ru(n,Ou(n),e),r&&(e=zr(e,l|s|p,ku));for(var i=t.length;i--;)Ti(e,t[i]);return e});var fc=Eu(function(n,t){return null==n?{}:function(n,t){return yi(n,t,function(t,e){return nc(n,e)})}(n,t)});function lc(n,t){if(null==n)return{};var e=Xt(Ou(n),function(n){return[n]});return t=zu(t),yi(n,e,function(n,e){return t(n,e[0])})}var sc=xu(ic),pc=xu(uc);function hc(n){return null==n?[]:ge(n,ic(n))}var vc=fu(function(n,t,e){return t=t.toLowerCase(),n+(e?dc(t):t)});function dc(n){return xc(Fa(n).toLowerCase())}function gc(n){return(n=Fa(n))&&n.replace(Kn,be).replace(yt,"")}var _c=fu(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),yc=fu(function(n,t,e){return n+(e?" ":"")+t.toLowerCase()}),mc=cu("toLowerCase");var bc=fu(function(n,t,e){return n+(e?"_":"")+t.toLowerCase()});var wc=fu(function(n,t,e){return n+(e?" ":"")+xc(t)});var Sc=fu(function(n,t,e){return n+(e?" ":"")+t.toUpperCase()}),xc=cu("toUpperCase");function $c(n,t,e){return n=Fa(n),(t=e?r:t)===r?function(n){return St.test(n)}(n)?function(n){return n.match(bt)||[]}(n):function(n){return n.match(Wn)||[]}(n):n.match(t)||[]}var jc=xi(function(n,t){try{return Nt(n,r,t)}catch(n){return xa(n)?n:new Qn(n)}}),qc=Eu(function(n,t){return Vt(t,function(t){t=fo(t),Ur(n,t,ea(n[t],n))}),n});function kc(n){return function(){return n}}var Ac=pu(),Ec=pu(!0);function Ic(n){return n}function Oc(n){return ci("function"==typeof n?n:zr(n,l))}var Uc=xi(function(n,t){return function(e){return ri(e,n,t)}}),Cc=xi(function(n,t){return function(e){return ri(n,e,t)}});function Rc(n,t,e){var r=ic(t),i=Gr(t,r);null!=e||ka(t)&&(i.length||!r.length)||(e=t,t=n,n=this,i=Gr(t,ic(t)));var u=!(ka(e)&&"chain"in e&&!e.chain),o=$a(n);return Vt(i,function(e){var r=t[e];n[e]=r,o&&(n.prototype[e]=function(){var t=this.__chain__;if(u||t){var e=n(this.__wrapped__);return(e.__actions__=eu(this.__actions__)).push({func:r,args:arguments,thisArg:n}),e.__chain__=t,e}return r.apply(n,Qt([this.value()],arguments))})}),n}function zc(){}var Lc=gu(Xt),Pc=gu(Kt),Tc=gu(ee);function Wc(n){return Zu(n)?le(fo(n)):function(n){return function(t){return Yr(t,n)}}(n)}var Hc=yu(),Bc=yu(!0);function Dc(){return[]}function Mc(){return!1}var Nc=du(function(n,t){return n+t},0),Fc=wu("ceil"),Vc=du(function(n,t){return n/t},1),Zc=wu("floor");var Kc,Gc=du(function(n,t){return n*t},1),Yc=wu("round"),Jc=du(function(n,t){return n-t},0);return hr.after=function(n,t){if("function"!=typeof t)throw new ut(o);return n=Ba(n),function(){if(--n<1)return t.apply(this,arguments)}},hr.ary=na,hr.assign=Va,hr.assignIn=Za,hr.assignInWith=Ka,hr.assignWith=Ga,hr.at=Ya,hr.before=ta,hr.bind=ea,hr.bindAll=qc,hr.bindKey=ra,hr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return _a(n)?n:[n]},hr.chain=Wo,hr.chunk=function(n,t,e){t=(e?Vu(n,t,e):t===r)?1:Fe(Ba(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var u=0,o=0,a=Jn(Te(i/t));uu?0:u+e),(i=i===r||i>u?u:Ba(i))<0&&(i+=u),i=e>i?0:Da(i);e>>0)?(n=Fa(n))&&("string"==typeof t||null!=t&&!Ua(t))&&!(t=Li(t))&&xe(n)?Ki(Ie(n),0,e):n.split(t,e):[]},hr.spread=function(n,t){if("function"!=typeof n)throw new ut(o);return t=null==t?0:Fe(Ba(t),0),xi(function(e){var r=e[t],i=Ki(e,0,t);return r&&Qt(i,r),Nt(n,this,i)})},hr.tail=function(n){var t=null==n?0:n.length;return t?Ii(n,1,t):[]},hr.take=function(n,t,e){return n&&n.length?Ii(n,0,(t=e||t===r?1:Ba(t))<0?0:t):[]},hr.takeRight=function(n,t,e){var i=null==n?0:n.length;return i?Ii(n,(t=i-(t=e||t===r?1:Ba(t)))<0?0:t,i):[]},hr.takeRightWhile=function(n,t){return n&&n.length?Hi(n,zu(t,3),!1,!0):[]},hr.takeWhile=function(n,t){return n&&n.length?Hi(n,zu(t,3)):[]},hr.tap=function(n,t){return t(n),n},hr.throttle=function(n,t,e){var r=!0,i=!0;if("function"!=typeof n)throw new ut(o);return ka(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),ia(n,t,{leading:r,maxWait:t,trailing:i})},hr.thru=Ho,hr.toArray=Wa,hr.toPairs=sc,hr.toPairsIn=pc,hr.toPath=function(n){return _a(n)?Xt(n,fo):za(n)?[n]:eu(co(Fa(n)))},hr.toPlainObject=Na,hr.transform=function(n,t,e){var r=_a(n),i=r||wa(n)||La(n);if(t=zu(t,4),null==e){var u=n&&n.constructor;e=i?r?new u:[]:ka(n)&&$a(u)?vr(Ct(n)):{}}return(i?Vt:Zr)(n,function(n,r,i){return t(e,n,r,i)}),e},hr.unary=function(n){return na(n,1)},hr.union=Ao,hr.unionBy=Eo,hr.unionWith=Io,hr.uniq=function(n){return n&&n.length?Pi(n):[]},hr.uniqBy=function(n,t){return n&&n.length?Pi(n,zu(t,2)):[]},hr.uniqWith=function(n,t){return t="function"==typeof t?t:r,n&&n.length?Pi(n,r,t):[]},hr.unset=function(n,t){return null==n||Ti(n,t)},hr.unzip=Oo,hr.unzipWith=Uo,hr.update=function(n,t,e){return null==n?n:Wi(n,t,Fi(e))},hr.updateWith=function(n,t,e,i){return i="function"==typeof i?i:r,null==n?n:Wi(n,t,Fi(e),i)},hr.values=hc,hr.valuesIn=function(n){return null==n?[]:ge(n,uc(n))},hr.without=Co,hr.words=$c,hr.wrap=function(n,t){return la(Fi(t),n)},hr.xor=Ro,hr.xorBy=zo,hr.xorWith=Lo,hr.zip=Po,hr.zipObject=function(n,t){return Mi(n||[],t||[],Ar)},hr.zipObjectDeep=function(n,t){return Mi(n||[],t||[],qi)},hr.zipWith=To,hr.entries=sc,hr.entriesIn=pc,hr.extend=Za,hr.extendWith=Ka,Rc(hr,hr),hr.add=Nc,hr.attempt=jc,hr.camelCase=vc,hr.capitalize=dc,hr.ceil=Fc,hr.clamp=function(n,t,e){return e===r&&(e=t,t=r),e!==r&&(e=(e=Ma(e))==e?e:0),t!==r&&(t=(t=Ma(t))==t?t:0),Rr(Ma(n),t,e)},hr.clone=function(n){return zr(n,p)},hr.cloneDeep=function(n){return zr(n,l|p)},hr.cloneDeepWith=function(n,t){return zr(n,l|p,t="function"==typeof t?t:r)},hr.cloneWith=function(n,t){return zr(n,p,t="function"==typeof t?t:r)},hr.conformsTo=function(n,t){return null==t||Lr(n,t,ic(t))},hr.deburr=gc,hr.defaultTo=function(n,t){return null==n||n!=n?t:n},hr.divide=Vc,hr.endsWith=function(n,t,e){n=Fa(n),t=Li(t);var i=n.length,u=e=e===r?i:Rr(Ba(e),0,i);return(e-=t.length)>=0&&n.slice(e,u)==t},hr.eq=ha,hr.escape=function(n){return(n=Fa(n))&&$n.test(n)?n.replace(Sn,we):n},hr.escapeRegExp=function(n){return(n=Fa(n))&&Un.test(n)?n.replace(On,"\\$&"):n},hr.every=function(n,t,e){var i=_a(n)?Kt:Br;return e&&Vu(n,t,e)&&(t=r),i(n,zu(t,3))},hr.find=Mo,hr.findIndex=go,hr.findKey=function(n,t){return ie(n,zu(t,3),Zr)},hr.findLast=No,hr.findLastIndex=_o,hr.findLastKey=function(n,t){return ie(n,zu(t,3),Kr)},hr.floor=Zc,hr.forEach=Fo,hr.forEachRight=Vo,hr.forIn=function(n,t){return null==n?n:Fr(n,zu(t,3),uc)},hr.forInRight=function(n,t){return null==n?n:Vr(n,zu(t,3),uc)},hr.forOwn=function(n,t){return n&&Zr(n,zu(t,3))},hr.forOwnRight=function(n,t){return n&&Kr(n,zu(t,3))},hr.get=Qa,hr.gt=va,hr.gte=da,hr.has=function(n,t){return null!=n&&Du(n,t,ni)},hr.hasIn=nc,hr.head=mo,hr.identity=Ic,hr.includes=function(n,t,e,r){n=ma(n)?n:hc(n),e=e&&!r?Ba(e):0;var i=n.length;return e<0&&(e=Fe(i+e,0)),Ra(n)?e<=i&&n.indexOf(t,e)>-1:!!i&&oe(n,t,e)>-1},hr.indexOf=function(n,t,e){var r=null==n?0:n.length;if(!r)return-1;var i=null==e?0:Ba(e);return i<0&&(i=Fe(r+i,0)),oe(n,t,i)},hr.inRange=function(n,t,e){return t=Ha(t),e===r?(e=t,t=0):e=Ha(e),function(n,t,e){return n>=Ve(t,e)&&n=-U&&n<=U},hr.isSet=Ca,hr.isString=Ra,hr.isSymbol=za,hr.isTypedArray=La,hr.isUndefined=function(n){return n===r},hr.isWeakMap=function(n){return Aa(n)&&Bu(n)==un},hr.isWeakSet=function(n){return Aa(n)&&Xr(n)==on},hr.join=function(n,t){return null==n?"":Me.call(n,t)},hr.kebabCase=_c,hr.last=xo,hr.lastIndexOf=function(n,t,e){var i=null==n?0:n.length;if(!i)return-1;var u=i;return e!==r&&(u=(u=Ba(e))<0?Fe(i+u,0):Ve(u,i-1)),t==t?function(n,t,e){for(var r=e+1;r--;)if(n[r]===t)return r;return r}(n,t,u):ue(n,ce,u,!0)},hr.lowerCase=yc,hr.lowerFirst=mc,hr.lt=Pa,hr.lte=Ta,hr.max=function(n){return n&&n.length?Dr(n,Ic,Qr):r},hr.maxBy=function(n,t){return n&&n.length?Dr(n,zu(t,2),Qr):r},hr.mean=function(n){return fe(n,Ic)},hr.meanBy=function(n,t){return fe(n,zu(t,2))},hr.min=function(n){return n&&n.length?Dr(n,Ic,si):r},hr.minBy=function(n,t){return n&&n.length?Dr(n,zu(t,2),si):r},hr.stubArray=Dc,hr.stubFalse=Mc,hr.stubObject=function(){return{}},hr.stubString=function(){return""},hr.stubTrue=function(){return!0},hr.multiply=Gc,hr.nth=function(n,t){return n&&n.length?gi(n,Ba(t)):r},hr.noConflict=function(){return Ut._===this&&(Ut._=gt),this},hr.noop=zc,hr.now=Qo,hr.pad=function(n,t,e){n=Fa(n);var r=(t=Ba(t))?Ee(n):0;if(!t||r>=t)return n;var i=(t-r)/2;return _u(We(i),e)+n+_u(Te(i),e)},hr.padEnd=function(n,t,e){n=Fa(n);var r=(t=Ba(t))?Ee(n):0;return t&&rt){var i=n;n=t,t=i}if(e||n%1||t%1){var u=Ge();return Ve(n+u*(t-n+At("1e-"+((u+"").length-1))),t)}return wi(n,t)},hr.reduce=function(n,t,e){var r=_a(n)?ne:pe,i=arguments.length<3;return r(n,zu(t,4),e,i,Wr)},hr.reduceRight=function(n,t,e){var r=_a(n)?te:pe,i=arguments.length<3;return r(n,zu(t,4),e,i,Hr)},hr.repeat=function(n,t,e){return t=(e?Vu(n,t,e):t===r)?1:Ba(t),Si(Fa(n),t)},hr.replace=function(){var n=arguments,t=Fa(n[0]);return n.length<3?t:t.replace(n[1],n[2])},hr.result=function(n,t,e){var i=-1,u=(t=Vi(t,n)).length;for(u||(u=1,n=r);++iU)return[];var e=z,r=Ve(n,z);t=zu(t),n-=z;for(var i=ve(r,t);++e=o)return n;var c=e-Ee(i);if(c<1)return i;var f=a?Ki(a,0,c).join(""):n.slice(0,c);if(u===r)return f+i;if(a&&(c+=f.length-c),Ua(u)){if(n.slice(c).search(u)){var l,s=f;for(u.global||(u=rt(u.source,Fa(Dn.exec(u))+"g")),u.lastIndex=0;l=u.exec(s);)var p=l.index;f=f.slice(0,p===r?c:p)}}else if(n.indexOf(Li(u),c)!=c){var h=f.lastIndexOf(u);h>-1&&(f=f.slice(0,h))}return f+i},hr.unescape=function(n){return(n=Fa(n))&&xn.test(n)?n.replace(wn,Oe):n},hr.uniqueId=function(n){var t=++pt;return Fa(n)+t},hr.upperCase=Sc,hr.upperFirst=xc,hr.each=Fo,hr.eachRight=Vo,hr.first=mo,Rc(hr,(Kc={},Zr(hr,function(n,t){st.call(hr.prototype,t)||(Kc[t]=n)}),Kc),{chain:!1}),hr.VERSION="4.17.11",Vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){hr[n].placeholder=hr}),Vt(["drop","take"],function(n,t){_r.prototype[n]=function(e){e=e===r?1:Fe(Ba(e),0);var i=this.__filtered__&&!t?new _r(this):this.clone();return i.__filtered__?i.__takeCount__=Ve(e,i.__takeCount__):i.__views__.push({size:Ve(e,z),type:n+(i.__dir__<0?"Right":"")}),i},_r.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),Vt(["filter","map","takeWhile"],function(n,t){var e=t+1,r=e==E||3==e;_r.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:zu(n,3),type:e}),t.__filtered__=t.__filtered__||r,t}}),Vt(["head","last"],function(n,t){var e="take"+(t?"Right":"");_r.prototype[n]=function(){return this[e](1).value()[0]}}),Vt(["initial","tail"],function(n,t){var e="drop"+(t?"":"Right");_r.prototype[n]=function(){return this.__filtered__?new _r(this):this[e](1)}}),_r.prototype.compact=function(){return this.filter(Ic)},_r.prototype.find=function(n){return this.filter(n).head()},_r.prototype.findLast=function(n){return this.reverse().find(n)},_r.prototype.invokeMap=xi(function(n,t){return"function"==typeof n?new _r(this):this.map(function(e){return ri(e,n,t)})}),_r.prototype.reject=function(n){return this.filter(ca(zu(n)))},_r.prototype.slice=function(n,t){n=Ba(n);var e=this;return e.__filtered__&&(n>0||t<0)?new _r(e):(n<0?e=e.takeRight(-n):n&&(e=e.drop(n)),t!==r&&(e=(t=Ba(t))<0?e.dropRight(-t):e.take(t-n)),e)},_r.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},_r.prototype.toArray=function(){return this.take(z)},Zr(_r.prototype,function(n,t){var e=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),u=hr[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);u&&(hr.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,c=t instanceof _r,f=a[0],l=c||_a(t),s=function(n){var t=u.apply(hr,Qt([n],a));return i&&p?t[0]:t};l&&e&&"function"==typeof f&&1!=f.length&&(c=l=!1);var p=this.__chain__,h=!!this.__actions__.length,v=o&&!p,d=c&&!h;if(!o&&l){t=d?t:new _r(this);var g=n.apply(t,a);return g.__actions__.push({func:Ho,args:[s],thisArg:r}),new gr(g,p)}return v&&d?n.apply(this,a):(g=this.thru(s),v?i?g.value()[0]:g.value():g)})}),Vt(["pop","push","shift","sort","splice","unshift"],function(n){var t=ot[n],e=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);hr.prototype[n]=function(){var n=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(_a(i)?i:[],n)}return this[e](function(e){return t.apply(_a(e)?e:[],n)})}}),Zr(_r.prototype,function(n,t){var e=hr[t];if(e){var r=e.name+"";(ir[r]||(ir[r]=[])).push({name:t,func:e})}}),ir[hu(r,g).name]=[{name:"wrapper",func:r}],_r.prototype.clone=function(){var n=new _r(this.__wrapped__);return n.__actions__=eu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=eu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=eu(this.__views__),n},_r.prototype.reverse=function(){if(this.__filtered__){var n=new _r(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},_r.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,e=_a(n),r=t<0,i=e?n.length:0,u=function(n,t,e){for(var r=-1,i=e.length;++r=this.__values__.length;return{done:n,value:n?r:this.__values__[this.__index__++]}},hr.prototype.plant=function(n){for(var t,e=this;e instanceof dr;){var i=so(e);i.__index__=0,i.__values__=r,t?u.__wrapped__=i:t=i;var u=i;e=e.__wrapped__}return u.__wrapped__=n,t},hr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof _r){var t=n;return this.__actions__.length&&(t=new _r(this)),(t=t.reverse()).__actions__.push({func:Ho,args:[ko],thisArg:r}),new gr(t,this.__chain__)}return this.thru(ko)},hr.prototype.toJSON=hr.prototype.valueOf=hr.prototype.value=function(){return Bi(this.__wrapped__,this.__actions__)},hr.prototype.first=hr.prototype.head,se&&(hr.prototype[se]=function(){return this}),hr}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Ut._=Ue,define(function(){return Ue})):Rt?((Rt.exports=Ue)._=Ue,Ct._=Ue):Ut._=Ue}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]); \ No newline at end of file +!function(){return function n(t,e,r){function i(o,a){if(!e[o]){if(!t[o]){var c="function"==typeof require&&require;if(!a&&c)return c(o,!0);if(u)return u(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=e[o]={exports:{}};t[o][0].call(l.exports,function(n){return i(t[o][1][n]||n)},l,l.exports,n,t,e,r)}return e[o].exports}for(var u="function"==typeof require&&require,o=0;o'+n[e].name+"");t.append(''),t.selectize({sortField:"text"})}sequencer=ImageSequencer(),n(),$(window).on("scroll",function(){var n=$("body").scrollTop()>20||$(":root").scrollTop()>20;$("#move-up").css({display:n?"block":"none"})}),$("#move-up").on("click",function(){$("body").animate({scrollTop:0}),$(":root").animate({scrollTop:0})}),sequencer.setUI(o(sequencer));var t=r(sequencer);a.getUrlHashParameter("src")?sequencer.loadImage(a.getUrlHashParameter("src"),t.onLoad):sequencer.loadImage("images/tulips.png",t.onLoad);$("#addStep select").on("change",t.selectNewStepUi),$("#addStep #add-step-btn").on("click",t.addStepUi),$("#resetButton").on("click",function(){confirm("Do you want to reset the sequence?")&&(window.location="/")}),$(".radio-group .radio").on("click",function(){$(this).parent().find(".radio").removeClass("selected"),$(this).addClass("selected"),newStep=$(this).attr("data-value"),$("#addStep select").val(newStep),t.selectNewStepUi(),t.addStepUi(),$(this).removeClass("selected")}),$("#download-btn").click(function(){return $(".step-thumbnail:last()").trigger("click"),!1}),$("body").on("click","button.remove",t.removeStepUi),$("#save-seq").click(()=>{var t=window.prompt("Please give a name to your sequence... (Saved sequence will only be available in this browser).");t&&(t+=" (local)",sequencer.saveSequence(t,sequencer.toString()),sequencer.loadModules(),$(".savesequencemsg").fadeIn(),setTimeout(function(){$(".savesequencemsg").fadeOut()},1e3),n())});var e=!1;$(".js-view-as-gif").on("click",function(n){if(!e){e=!0;var t=n.target;t.disabled=!0;try{for(var r=document.getElementsByClassName("step-thumbnail"),i=[],u=0;u{console.log(t),"installed"===t.state&&location.reload()}),console.log("Registration successful, scope is:",n.scope)}).catch(function(n){console.log("Service worker registration failed, error:",n)}),"serviceWorker"in navigator&&caches.keys().then(function(n){n.forEach(function(n){$("#clear-cache").append(" "+n)})}),$("#clear-cache").click(function(){"serviceWorker"in navigator&&caches.keys().then(function(n){n.forEach(function(n){caches.delete(n)})}),location.reload()})}},{}],3:[function(n,t,e){var r=n("./urlHash.js");t.exports=function(n,t){var e=(t=t||{}).addStepSel=t.addStepSel||"#addStep",i=t.removeStepSel=t.removeStepSel||"button.remove";function u(){var t=r.getUrlHashParameter("steps");t&&(n.importString(t),n.run({index:0})),r.setUrlHashParameter("steps",sequencer.toString())}function o(){sequencer.steps.length<2?$(" #save-seq").prop("disabled",!0):$(" #save-seq").prop("disabled",!1)}return t.selectStepSel=t.selectStepSel||"#selectStep",{onLoad:function(){u(),"none"===$("#selectStep").val()&&$(e+" #add-step-btn").prop("disabled",!0),o()},importStepsFromUrlHash:u,selectNewStepUi:function(){var t=$(e+" select").val();$(e+" .info").html(n.modulesInfo(t).description),$(e+" #add-step-btn").prop("disabled",!1)},removeStepUi:function(){var n=$(i).index(this)+1;sequencer.removeSteps(n).run({index:n-1}),r.setUrlHashParameter("steps",sequencer.toString()),o()},addStepUi:function(){if("none"!=$(e+" select").val()){var i=$(e+" select").val(),u=1;sequencer.sequences[i]?u=sequencer.sequences[i].length:sequencer.modules[i][1].length&&(u=sequencer.modules[i][1].length),n.addSteps(i,t).run({index:n.steps.length-u-1}),$(e+" .info").html("Select a new module to add to your sequence."),$(e+" select").val("none"),o(),r.setUrlHashParameter("steps",n.toString())}}}}},{"./urlHash.js":8}],4:[function(n,t,e){var r=n("./intermediateHtmlStepUi.js"),i=n("./urlHash.js"),u=n("lodash"),o=n("./mapHtmltypes");function a(n,t){var e=(t=t||{}).stepsEl||document.querySelector("#steps");t.selectStepSel=t.selectStepSel||"#selectStep";function a(n){var t=$(n.imgElement);t.mousemove(function(n){var e=document.createElement("canvas");e.width=t.width(),e.height=t.height();var r=e.getContext("2d");r.drawImage(this,0,0);var i=$(this).offset(),u=n.pageX-i.left,o=n.pageY-i.top,a=r.getImageData(u,o,1,1);t[0].title="rgb: "+a.data[0]+","+a.data[1]+","+a.data[2]})}function c(n,t){if(0==$("#"+t).length){var e=document.createElement("span");e.innerHTML=' '+n,e.id=t,e.classList.add("notification"),$("body").append(e)}$("#"+t).fadeIn(500).delay(200).fadeOut(500)}return{getPreview:function(){return step.imgElement},onSetup:function(t,f){t.options&&t.options.description&&(t.description=t.options.description),t.ui='

'+t.name+'

"'+(t.description||"")+'

';var l=r(n,t),s=new DOMParser;if(t.ui=s.parseFromString(t.ui,"text/html"),t.ui=t.ui.querySelector("div.container"),t.linkElements=t.ui.querySelectorAll("a"),t.imgElement=t.ui.querySelector("a img"),n.modulesInfo().hasOwnProperty(t.name)){var p=n.modulesInfo(t.name).inputs,h=n.modulesInfo(t.name).outputs,v=Object.assign(p,h);for(var d in v){var g=p.hasOwnProperty(d),_="",y=g?o(p[d]):{};if(g)if("select"==y.type.toLowerCase()){for(var m in _+='"}else{let n=t.options[d]||y.default;_=''+n+"":_+='">'}else _+='';var b=document.createElement("div");b.className="row",b.setAttribute("name",d);var w=p[d].desc||d;b.innerHTML="
"+_+"
",t.ui.querySelector("div.details").appendChild(b)}$(t.ui.querySelector("div.details")).append('

Press apply to see changes

')}"load-image"!=t.name?(t.ui.querySelector("div.details").appendChild(s.parseFromString('
',"text/html").querySelector("div")),$(t.ui.querySelectorAll(".remove")).on("click",function(){c("Step Removed","remove-notification")}),$(t.ui.querySelectorAll(".insert-step")).on("click",function(){l.insertStep(t.ID)}),f.index==n.steps.length?(e.appendChild(t.ui),$("#steps .container:nth-last-child(1) .insert-step").prop("disabled",!0),$("#steps .container:nth-last-child(2)")&&$("#steps .container:nth-last-child(2) .insert-step").prop("disabled",!1)):e.insertBefore(t.ui,$(e).children()[f.index])):$("#load-image").append(t.ui),$(t.ui.querySelector(".toggle")).on("click",()=>{$(t.ui.querySelector(".toggleIcon")).toggleClass("fa-caret-up").toggleClass("fa-caret-down"),$(t.ui.querySelectorAll(".cal")).toggleClass("collapse")}),$(t.imgElement).on("mousemove",u.debounce(()=>a(t),150));var S=0,x=!1;$(t.ui.querySelector(".input-form")).on("submit",function(e){e.preventDefault(),x&&($(t.ui.querySelector("div.details")).find("input,select").each(function(n,e){$(e).data("initValue",$(e).val()).data("hasChangedBefore",!1),t.options[$(e).attr("name")]=$(e).val()}),n.run({index:t.index-1}),i.setUrlHashParameter("steps",n.toString()),$(t.ui.querySelector(".btn-save")).prop("disabled",!0),x=!1,S=0)}),$(t.ui.querySelectorAll(".target")).each(function(n,e){$(e).data("initValue",$(e).val()).data("hasChangedBefore",!1).on("input",function(){var n,e,r,i;$(this).focus().data("hasChangedBefore",(n=$(this).val(),e=$(this).data("initValue"),r=$(this).data("hasChangedBefore"),i=!(isNaN(e)||isNaN(n)?n===e:n-e==0),x=(S+=r?i?0:-1:i?1:0)>0,$(t.ui.querySelector(".btn-save")).prop("disabled",!x),i))})}),$('input[type="range"]').on("input",function(){$(this).next().html($(this).val())})},onComplete:function(t){$(t.ui.querySelector(".load")).hide(),$(t.ui.querySelector("img")).show(),$(t.ui.querySelector(".load-spin")).hide(),t.imgElement.src="load-image"==t.name?t.output.src:t.output;var e=t.ui.querySelector(".img-thumbnail");for(let n=0;n

Select a new module to add to your sequence.

Resize

Brightness

Contrast

Saturation

Rotate

Crop

';a=(new DOMParser).parseFromString(a,"text/html").querySelector("div"),t.ui.querySelector("div.step").insertAdjacentElement("afterend",a),i.updatePreviews(t.output,"insertStep");var c=$("#insertStep select");for(var f in c.html(""),r)void 0!==r[f]&&c.append('");$("#insertStep #add-step-btn").selectize({sortField:"text"}),$("#insertStep #add-step-btn").prop("disabled",!0),c.append(''),$("#insertStep .radio-group .radio").on("click",function(){$(this).parent().find(".radio").removeClass("selected"),$(this).addClass("selected"),newStep=$(this).attr("data-value"),c.val(newStep),u(),o(e),$(this).removeClass("selected")}),$(t.ui.querySelector("#insertStep select")).on("change",u),$(t.ui.querySelector("#insertStep #add-step-btn")).on("click",function(){o(e)})},{insertStep:insertStep}}},{"./insertPreview.js":5,"./urlHash.js":8}],7:[function(n,t,e){t.exports=function(n){var t;switch(n.type.toLowerCase()){case"integer":t=void 0!=n.min?"range":"number";break;case"string":t="text";break;case"select":t="select";break;case"percentage":t="number";break;case"float":t=void 0!=n.min?"range":"text";break;default:t="text"}var e=n;return e.type=t,e}},{}],8:[function(n,t,e){function r(){var n=window.location.hash;n&&(n=n.split("#")[1]);var t={};return n.split("&").forEach(function(n,e){""!=(n=n.split("="))[0]&&(t[n[0]]=n[1])}),t}function i(n){var t=Object.keys(n),e=Object.values(n),r=[];t.forEach(function(n,i){""!=n&&r.push(t[i]+"="+e[i])});var i=r.join("&");window.location.hash=i}t.exports={getUrlHashParameter:function(n){return r()[n]},setUrlHashParameter:function(n,t){var e=r();e[n]=t,i(e)},getUrlHashParameters:r,setUrlHashParameters:i}},{}],9:[function(n,t,e){(function(n){(function(){var r,i=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",a="__lodash_hash_undefined__",c=500,f="__lodash_placeholder__",l=1,s=2,p=4,h=1,v=2,d=1,g=2,_=4,y=8,m=16,b=32,w=64,S=128,x=256,$=512,j=30,q="...",k=800,A=16,E=1,I=2,O=1/0,U=9007199254740991,C=1.7976931348623157e308,R=NaN,z=4294967295,L=z-1,P=z>>>1,T=[["ary",S],["bind",d],["bindKey",g],["curry",y],["curryRight",m],["flip",$],["partial",b],["partialRight",w],["rearg",x]],W="[object Arguments]",H="[object Array]",B="[object AsyncFunction]",D="[object Boolean]",M="[object Date]",N="[object DOMException]",F="[object Error]",V="[object Function]",Z="[object GeneratorFunction]",K="[object Map]",G="[object Number]",Y="[object Null]",J="[object Object]",X="[object Proxy]",Q="[object RegExp]",nn="[object Set]",tn="[object String]",en="[object Symbol]",rn="[object Undefined]",un="[object WeakMap]",on="[object WeakSet]",an="[object ArrayBuffer]",cn="[object DataView]",fn="[object Float32Array]",ln="[object Float64Array]",sn="[object Int8Array]",pn="[object Int16Array]",hn="[object Int32Array]",vn="[object Uint8Array]",dn="[object Uint8ClampedArray]",gn="[object Uint16Array]",_n="[object Uint32Array]",yn=/\b__p \+= '';/g,mn=/\b(__p \+=) '' \+/g,bn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wn=/&(?:amp|lt|gt|quot|#39);/g,Sn=/[&<>"']/g,xn=RegExp(wn.source),$n=RegExp(Sn.source),jn=/<%-([\s\S]+?)%>/g,qn=/<%([\s\S]+?)%>/g,kn=/<%=([\s\S]+?)%>/g,An=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,En=/^\w*$/,In=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,On=/[\\^$.*+?()[\]{}|]/g,Un=RegExp(On.source),Cn=/^\s+|\s+$/g,Rn=/^\s+/,zn=/\s+$/,Ln=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Pn=/\{\n\/\* \[wrapped with (.+)\] \*/,Tn=/,? & /,Wn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Hn=/\\(\\)?/g,Bn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dn=/\w*$/,Mn=/^[-+]0x[0-9a-f]+$/i,Nn=/^0b[01]+$/i,Fn=/^\[object .+?Constructor\]$/,Vn=/^0o[0-7]+$/i,Zn=/^(?:0|[1-9]\d*)$/,Kn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gn=/($^)/,Yn=/['\n\r\u2028\u2029\\]/g,Jn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Xn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Qn="[\\ud800-\\udfff]",nt="["+Xn+"]",tt="["+Jn+"]",et="\\d+",rt="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",ut="[^\\ud800-\\udfff"+Xn+et+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ot="\\ud83c[\\udffb-\\udfff]",at="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",ft="[\\ud800-\\udbff][\\udc00-\\udfff]",lt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",st="(?:"+it+"|"+ut+")",pt="(?:"+lt+"|"+ut+")",ht="(?:"+tt+"|"+ot+")"+"?",vt="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[at,ct,ft].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),dt="(?:"+[rt,ct,ft].join("|")+")"+vt,gt="(?:"+[at+tt+"?",tt,ct,ft,Qn].join("|")+")",_t=RegExp("['’]","g"),yt=RegExp(tt,"g"),mt=RegExp(ot+"(?="+ot+")|"+gt+vt,"g"),bt=RegExp([lt+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[nt,lt,"$"].join("|")+")",pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[nt,lt+st,"$"].join("|")+")",lt+"?"+st+"+(?:['’](?:d|ll|m|re|s|t|ve))?",lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",et,dt].join("|"),"g"),wt=RegExp("[\\u200d\\ud800-\\udfff"+Jn+"\\ufe0e\\ufe0f]"),St=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$t=-1,jt={};jt[fn]=jt[ln]=jt[sn]=jt[pn]=jt[hn]=jt[vn]=jt[dn]=jt[gn]=jt[_n]=!0,jt[W]=jt[H]=jt[an]=jt[D]=jt[cn]=jt[M]=jt[F]=jt[V]=jt[K]=jt[G]=jt[J]=jt[Q]=jt[nn]=jt[tn]=jt[un]=!1;var qt={};qt[W]=qt[H]=qt[an]=qt[cn]=qt[D]=qt[M]=qt[fn]=qt[ln]=qt[sn]=qt[pn]=qt[hn]=qt[K]=qt[G]=qt[J]=qt[Q]=qt[nn]=qt[tn]=qt[en]=qt[vn]=qt[dn]=qt[gn]=qt[_n]=!0,qt[F]=qt[V]=qt[un]=!1;var kt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},At=parseFloat,Et=parseInt,It="object"==typeof n&&n&&n.Object===Object&&n,Ot="object"==typeof self&&self&&self.Object===Object&&self,Ut=It||Ot||Function("return this")(),Ct="object"==typeof e&&e&&!e.nodeType&&e,Rt=Ct&&"object"==typeof t&&t&&!t.nodeType&&t,zt=Rt&&Rt.exports===Ct,Lt=zt&&It.process,Pt=function(){try{var n=Rt&&Rt.require&&Rt.require("util").types;return n||Lt&&Lt.binding&&Lt.binding("util")}catch(n){}}(),Tt=Pt&&Pt.isArrayBuffer,Wt=Pt&&Pt.isDate,Ht=Pt&&Pt.isMap,Bt=Pt&&Pt.isRegExp,Dt=Pt&&Pt.isSet,Mt=Pt&&Pt.isTypedArray;function Nt(n,t,e){switch(e.length){case 0:return n.call(t);case 1:return n.call(t,e[0]);case 2:return n.call(t,e[0],e[1]);case 3:return n.call(t,e[0],e[1],e[2])}return n.apply(t,e)}function Ft(n,t,e,r){for(var i=-1,u=null==n?0:n.length;++i-1}function Jt(n,t,e){for(var r=-1,i=null==n?0:n.length;++r-1;);return e}function me(n,t){for(var e=n.length;e--&&oe(t,n[e],0)>-1;);return e}var be=se({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),we=se({"&":"&","<":"<",">":">",'"':""","'":"'"});function Se(n){return"\\"+kt[n]}function xe(n){return wt.test(n)}function $e(n){var t=-1,e=Array(n.size);return n.forEach(function(n,r){e[++t]=[r,n]}),e}function je(n,t){return function(e){return n(t(e))}}function qe(n,t){for(var e=-1,r=n.length,i=0,u=[];++e",""":'"',"'":"'"});var Ue=function n(t){var e,Jn=(t=null==t?Ut:Ue.defaults(Ut.Object(),t,Ue.pick(Ut,xt))).Array,Xn=t.Date,Qn=t.Error,nt=t.Function,tt=t.Math,et=t.Object,rt=t.RegExp,it=t.String,ut=t.TypeError,ot=Jn.prototype,at=nt.prototype,ct=et.prototype,ft=t["__core-js_shared__"],lt=at.toString,st=ct.hasOwnProperty,pt=0,ht=(e=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",vt=ct.toString,dt=lt.call(et),gt=Ut._,mt=rt("^"+lt.call(st).replace(On,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=zt?t.Buffer:r,kt=t.Symbol,It=t.Uint8Array,Ot=wt?wt.allocUnsafe:r,Ct=je(et.getPrototypeOf,et),Rt=et.create,Lt=ct.propertyIsEnumerable,Pt=ot.splice,re=kt?kt.isConcatSpreadable:r,se=kt?kt.iterator:r,Ce=kt?kt.toStringTag:r,Re=function(){try{var n=Tu(et,"defineProperty");return n({},"",{}),n}catch(n){}}(),ze=t.clearTimeout!==Ut.clearTimeout&&t.clearTimeout,Le=Xn&&Xn.now!==Ut.Date.now&&Xn.now,Pe=t.setTimeout!==Ut.setTimeout&&t.setTimeout,Te=tt.ceil,We=tt.floor,He=et.getOwnPropertySymbols,Be=wt?wt.isBuffer:r,De=t.isFinite,Me=ot.join,Ne=je(et.keys,et),Fe=tt.max,Ve=tt.min,Ze=Xn.now,Ke=t.parseInt,Ge=tt.random,Ye=ot.reverse,Je=Tu(t,"DataView"),Xe=Tu(t,"Map"),Qe=Tu(t,"Promise"),nr=Tu(t,"Set"),tr=Tu(t,"WeakMap"),er=Tu(et,"create"),rr=tr&&new tr,ir={},ur=lo(Je),or=lo(Xe),ar=lo(Qe),cr=lo(nr),fr=lo(tr),lr=kt?kt.prototype:r,sr=lr?lr.valueOf:r,pr=lr?lr.toString:r;function hr(n){if(Aa(n)&&!_a(n)&&!(n instanceof _r)){if(n instanceof gr)return n;if(st.call(n,"__wrapped__"))return so(n)}return new gr(n)}var vr=function(){function n(){}return function(t){if(!ka(t))return{};if(Rt)return Rt(t);n.prototype=t;var e=new n;return n.prototype=r,e}}();function dr(){}function gr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function _r(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function yr(n){var t=-1,e=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function zr(n,t,e,i,u,o){var a,c=t&l,f=t&s,h=t&p;if(e&&(a=u?e(n,i,u,o):e(n)),a!==r)return a;if(!ka(n))return n;var v=_a(n);if(v){if(a=function(n){var t=n.length,e=new n.constructor(t);return t&&"string"==typeof n[0]&&st.call(n,"index")&&(e.index=n.index,e.input=n.input),e}(n),!c)return eu(n,a)}else{var d=Bu(n),g=d==V||d==Z;if(wa(n))return Yi(n,c);if(d==J||d==W||g&&!u){if(a=f||g?{}:Mu(n),!c)return f?function(n,t){return ru(n,Hu(n),t)}(n,function(n,t){return n&&ru(t,uc(t),n)}(a,n)):function(n,t){return ru(n,Wu(n),t)}(n,Or(a,n))}else{if(!qt[d])return u?n:{};a=function(n,t,e){var r,i,u,o=n.constructor;switch(t){case an:return Ji(n);case D:case M:return new o(+n);case cn:return function(n,t){var e=t?Ji(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}(n,e);case fn:case ln:case sn:case pn:case hn:case vn:case dn:case gn:case _n:return Xi(n,e);case K:return new o;case G:case tn:return new o(n);case Q:return(u=new(i=n).constructor(i.source,Dn.exec(i))).lastIndex=i.lastIndex,u;case nn:return new o;case en:return r=n,sr?et(sr.call(r)):{}}}(n,d,c)}}o||(o=new Sr);var _=o.get(n);if(_)return _;if(o.set(n,a),Ca(n))return n.forEach(function(r){a.add(zr(r,t,e,r,n,o))}),a;if(Ea(n))return n.forEach(function(r,i){a.set(i,zr(r,t,e,i,n,o))}),a;var y=v?r:(h?f?Ou:Iu:f?uc:ic)(n);return Vt(y||n,function(r,i){y&&(r=n[i=r]),Ar(a,i,zr(r,t,e,i,n,o))}),a}function Lr(n,t,e){var i=e.length;if(null==n)return!i;for(n=et(n);i--;){var u=e[i],o=t[u],a=n[u];if(a===r&&!(u in n)||!o(a))return!1}return!0}function Pr(n,t,e){if("function"!=typeof n)throw new ut(o);return ro(function(){n.apply(r,e)},t)}function Tr(n,t,e,r){var u=-1,o=Yt,a=!0,c=n.length,f=[],l=t.length;if(!c)return f;e&&(t=Xt(t,de(e))),r?(o=Jt,a=!1):t.length>=i&&(o=_e,a=!1,t=new wr(t));n:for(;++u-1},mr.prototype.set=function(n,t){var e=this.__data__,r=Er(e,n);return r<0?(++this.size,e.push([n,t])):e[r][1]=t,this},br.prototype.clear=function(){this.size=0,this.__data__={hash:new yr,map:new(Xe||mr),string:new yr}},br.prototype.delete=function(n){var t=Lu(this,n).delete(n);return this.size-=t?1:0,t},br.prototype.get=function(n){return Lu(this,n).get(n)},br.prototype.has=function(n){return Lu(this,n).has(n)},br.prototype.set=function(n,t){var e=Lu(this,n),r=e.size;return e.set(n,t),this.size+=e.size==r?0:1,this},wr.prototype.add=wr.prototype.push=function(n){return this.__data__.set(n,a),this},wr.prototype.has=function(n){return this.__data__.has(n)},Sr.prototype.clear=function(){this.__data__=new mr,this.size=0},Sr.prototype.delete=function(n){var t=this.__data__,e=t.delete(n);return this.size=t.size,e},Sr.prototype.get=function(n){return this.__data__.get(n)},Sr.prototype.has=function(n){return this.__data__.has(n)},Sr.prototype.set=function(n,t){var e=this.__data__;if(e instanceof mr){var r=e.__data__;if(!Xe||r.length0&&e(a)?t>1?Nr(a,t-1,e,r,i):Qt(i,a):r||(i[i.length]=a)}return i}var Fr=au(),Vr=au(!0);function Zr(n,t){return n&&Fr(n,t,ic)}function Kr(n,t){return n&&Vr(n,t,ic)}function Gr(n,t){return Gt(t,function(t){return $a(n[t])})}function Yr(n,t){for(var e=0,i=(t=Vi(t,n)).length;null!=n&&et}function ni(n,t){return null!=n&&st.call(n,t)}function ti(n,t){return null!=n&&t in et(n)}function ei(n,t,e){for(var i=e?Jt:Yt,u=n[0].length,o=n.length,a=o,c=Jn(o),f=1/0,l=[];a--;){var s=n[a];a&&t&&(s=Xt(s,de(t))),f=Ve(s.length,f),c[a]=!e&&(t||u>=120&&s.length>=120)?new wr(a&&s):r}s=n[0];var p=-1,h=c[0];n:for(;++p=a)return c;var f=e[r];return c*("desc"==f?-1:1)}}return n.index-t.index}(n,t,e)})}function yi(n,t,e){for(var r=-1,i=t.length,u={};++r-1;)a!==n&&Pt.call(a,c,1),Pt.call(n,c,1);return n}function bi(n,t){for(var e=n?t.length:0,r=e-1;e--;){var i=t[e];if(e==r||i!==u){var u=i;Fu(i)?Pt.call(n,i,1):Ti(n,i)}}return n}function wi(n,t){return n+We(Ge()*(t-n+1))}function Si(n,t){var e="";if(!n||t<1||t>U)return e;do{t%2&&(e+=n),(t=We(t/2))&&(n+=n)}while(t);return e}function xi(n,t){return io(Qu(n,t,Ic),n+"")}function $i(n){return $r(hc(n))}function ji(n,t){var e=hc(n);return ao(e,Rr(t,0,e.length))}function qi(n,t,e,i){if(!ka(n))return n;for(var u=-1,o=(t=Vi(t,n)).length,a=o-1,c=n;null!=c&&++ui?0:i+t),(e=e>i?i:e)<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var u=Jn(i);++r>>1,o=n[u];null!==o&&!za(o)&&(e?o<=t:o=i){var l=t?null:Su(n);if(l)return ke(l);a=!1,u=_e,f=new wr}else f=t?[]:c;n:for(;++r=i?n:Ii(n,t,e)}var Gi=ze||function(n){return Ut.clearTimeout(n)};function Yi(n,t){if(t)return n.slice();var e=n.length,r=Ot?Ot(e):new n.constructor(e);return n.copy(r),r}function Ji(n){var t=new n.constructor(n.byteLength);return new It(t).set(new It(n)),t}function Xi(n,t){var e=t?Ji(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.length)}function Qi(n,t){if(n!==t){var e=n!==r,i=null===n,u=n==n,o=za(n),a=t!==r,c=null===t,f=t==t,l=za(t);if(!c&&!l&&!o&&n>t||o&&a&&f&&!c&&!l||i&&a&&f||!e&&f||!u)return 1;if(!i&&!o&&!l&&n1?e[u-1]:r,a=u>2?e[2]:r;for(o=n.length>3&&"function"==typeof o?(u--,o):r,a&&Vu(e[0],e[1],a)&&(o=u<3?r:o,u=1),t=et(t);++i-1?u[o?t[a]:a]:r}}function pu(n){return Eu(function(t){var e=t.length,i=e,u=gr.prototype.thru;for(n&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new ut(o);if(u&&!c&&"wrapper"==Cu(a))var c=new gr([],!0)}for(i=c?i:e;++i1&&y.reverse(),s&&fc))return!1;var l=o.get(n);if(l&&o.get(t))return l==t;var s=-1,p=!0,d=e&v?new wr:r;for(o.set(n,t),o.set(t,n);++s-1&&n%1==0&&n1?"& ":"")+t[r],t=t.join(e>2?", ":" "),n.replace(Ln,"{\n/* [wrapped with "+t+"] */\n")}(r,function(n,t){return Vt(T,function(e){var r="_."+e[0];t&e[1]&&!Yt(n,r)&&n.push(r)}),n.sort()}(function(n){var t=n.match(Pn);return t?t[1].split(Tn):[]}(r),e)))}function oo(n){var t=0,e=0;return function(){var i=Ze(),u=A-(i-e);if(e=i,u>0){if(++t>=k)return arguments[0]}else t=0;return n.apply(r,arguments)}}function ao(n,t){var e=-1,i=n.length,u=i-1;for(t=t===r?i:t;++e1?n[t-1]:r;return Uo(n,e="function"==typeof e?(n.pop(),e):r)});function Wo(n){var t=hr(n);return t.__chain__=!0,t}function Ho(n,t){return t(n)}var Bo=Eu(function(n){var t=n.length,e=t?n[0]:0,i=this.__wrapped__,u=function(t){return Cr(t,n)};return!(t>1||this.__actions__.length)&&i instanceof _r&&Fu(e)?((i=i.slice(e,+e+(t?1:0))).__actions__.push({func:Ho,args:[u],thisArg:r}),new gr(i,this.__chain__).thru(function(n){return t&&!n.length&&n.push(r),n})):this.thru(u)});var Do=iu(function(n,t,e){st.call(n,e)?++n[e]:Ur(n,e,1)});var Mo=su(go),No=su(_o);function Fo(n,t){return(_a(n)?Vt:Wr)(n,zu(t,3))}function Vo(n,t){return(_a(n)?Zt:Hr)(n,zu(t,3))}var Zo=iu(function(n,t,e){st.call(n,e)?n[e].push(t):Ur(n,e,[t])});var Ko=xi(function(n,t,e){var r=-1,i="function"==typeof t,u=ma(n)?Jn(n.length):[];return Wr(n,function(n){u[++r]=i?Nt(t,n,e):ri(n,t,e)}),u}),Go=iu(function(n,t,e){Ur(n,e,t)});function Yo(n,t){return(_a(n)?Xt:pi)(n,zu(t,3))}var Jo=iu(function(n,t,e){n[e?0:1].push(t)},function(){return[[],[]]});var Xo=xi(function(n,t){if(null==n)return[];var e=t.length;return e>1&&Vu(n,t[0],t[1])?t=[]:e>2&&Vu(t[0],t[1],t[2])&&(t=[t[0]]),_i(n,Nr(t,1),[])}),Qo=Le||function(){return Ut.Date.now()};function na(n,t,e){return t=e?r:t,t=n&&null==t?n.length:t,$u(n,S,r,r,r,r,t)}function ta(n,t){var e;if("function"!=typeof t)throw new ut(o);return n=Ba(n),function(){return--n>0&&(e=t.apply(this,arguments)),n<=1&&(t=r),e}}var ea=xi(function(n,t,e){var r=d;if(e.length){var i=qe(e,Ru(ea));r|=b}return $u(n,r,t,e,i)}),ra=xi(function(n,t,e){var r=d|g;if(e.length){var i=qe(e,Ru(ra));r|=b}return $u(t,r,n,e,i)});function ia(n,t,e){var i,u,a,c,f,l,s=0,p=!1,h=!1,v=!0;if("function"!=typeof n)throw new ut(o);function d(t){var e=i,o=u;return i=u=r,s=t,c=n.apply(o,e)}function g(n){var e=n-l;return l===r||e>=t||e<0||h&&n-s>=a}function _(){var n=Qo();if(g(n))return y(n);f=ro(_,function(n){var e=t-(n-l);return h?Ve(e,a-(n-s)):e}(n))}function y(n){return f=r,v&&i?d(n):(i=u=r,c)}function m(){var n=Qo(),e=g(n);if(i=arguments,u=this,l=n,e){if(f===r)return function(n){return s=n,f=ro(_,t),p?d(n):c}(l);if(h)return f=ro(_,t),d(l)}return f===r&&(f=ro(_,t)),c}return t=Ma(t)||0,ka(e)&&(p=!!e.leading,a=(h="maxWait"in e)?Fe(Ma(e.maxWait)||0,t):a,v="trailing"in e?!!e.trailing:v),m.cancel=function(){f!==r&&Gi(f),s=0,i=l=u=f=r},m.flush=function(){return f===r?c:y(Qo())},m}var ua=xi(function(n,t){return Pr(n,1,t)}),oa=xi(function(n,t,e){return Pr(n,Ma(t)||0,e)});function aa(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new ut(o);var e=function(){var r=arguments,i=t?t.apply(this,r):r[0],u=e.cache;if(u.has(i))return u.get(i);var o=n.apply(this,r);return e.cache=u.set(i,o)||u,o};return e.cache=new(aa.Cache||br),e}function ca(n){if("function"!=typeof n)throw new ut(o);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}aa.Cache=br;var fa=Zi(function(n,t){var e=(t=1==t.length&&_a(t[0])?Xt(t[0],de(zu())):Xt(Nr(t,1),de(zu()))).length;return xi(function(r){for(var i=-1,u=Ve(r.length,e);++i=t}),ga=ii(function(){return arguments}())?ii:function(n){return Aa(n)&&st.call(n,"callee")&&!Lt.call(n,"callee")},_a=Jn.isArray,ya=Tt?de(Tt):function(n){return Aa(n)&&Xr(n)==an};function ma(n){return null!=n&&qa(n.length)&&!$a(n)}function ba(n){return Aa(n)&&ma(n)}var wa=Be||Mc,Sa=Wt?de(Wt):function(n){return Aa(n)&&Xr(n)==M};function xa(n){if(!Aa(n))return!1;var t=Xr(n);return t==F||t==N||"string"==typeof n.message&&"string"==typeof n.name&&!Oa(n)}function $a(n){if(!ka(n))return!1;var t=Xr(n);return t==V||t==Z||t==B||t==X}function ja(n){return"number"==typeof n&&n==Ba(n)}function qa(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=U}function ka(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function Aa(n){return null!=n&&"object"==typeof n}var Ea=Ht?de(Ht):function(n){return Aa(n)&&Bu(n)==K};function Ia(n){return"number"==typeof n||Aa(n)&&Xr(n)==G}function Oa(n){if(!Aa(n)||Xr(n)!=J)return!1;var t=Ct(n);if(null===t)return!0;var e=st.call(t,"constructor")&&t.constructor;return"function"==typeof e&&e instanceof e&<.call(e)==dt}var Ua=Bt?de(Bt):function(n){return Aa(n)&&Xr(n)==Q};var Ca=Dt?de(Dt):function(n){return Aa(n)&&Bu(n)==nn};function Ra(n){return"string"==typeof n||!_a(n)&&Aa(n)&&Xr(n)==tn}function za(n){return"symbol"==typeof n||Aa(n)&&Xr(n)==en}var La=Mt?de(Mt):function(n){return Aa(n)&&qa(n.length)&&!!jt[Xr(n)]};var Pa=mu(si),Ta=mu(function(n,t){return n<=t});function Wa(n){if(!n)return[];if(ma(n))return Ra(n)?Ie(n):eu(n);if(se&&n[se])return function(n){for(var t,e=[];!(t=n.next()).done;)e.push(t.value);return e}(n[se]());var t=Bu(n);return(t==K?$e:t==nn?ke:hc)(n)}function Ha(n){return n?(n=Ma(n))===O||n===-O?(n<0?-1:1)*C:n==n?n:0:0===n?n:0}function Ba(n){var t=Ha(n),e=t%1;return t==t?e?t-e:t:0}function Da(n){return n?Rr(Ba(n),0,z):0}function Ma(n){if("number"==typeof n)return n;if(za(n))return R;if(ka(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=ka(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=n.replace(Cn,"");var e=Nn.test(n);return e||Vn.test(n)?Et(n.slice(2),e?2:8):Mn.test(n)?R:+n}function Na(n){return ru(n,uc(n))}function Fa(n){return null==n?"":Li(n)}var Va=uu(function(n,t){if(Yu(t)||ma(t))ru(t,ic(t),n);else for(var e in t)st.call(t,e)&&Ar(n,e,t[e])}),Za=uu(function(n,t){ru(t,uc(t),n)}),Ka=uu(function(n,t,e,r){ru(t,uc(t),n,r)}),Ga=uu(function(n,t,e,r){ru(t,ic(t),n,r)}),Ya=Eu(Cr);var Ja=xi(function(n,t){n=et(n);var e=-1,i=t.length,u=i>2?t[2]:r;for(u&&Vu(t[0],t[1],u)&&(i=1);++e1),t}),ru(n,Ou(n),e),r&&(e=zr(e,l|s|p,ku));for(var i=t.length;i--;)Ti(e,t[i]);return e});var fc=Eu(function(n,t){return null==n?{}:function(n,t){return yi(n,t,function(t,e){return nc(n,e)})}(n,t)});function lc(n,t){if(null==n)return{};var e=Xt(Ou(n),function(n){return[n]});return t=zu(t),yi(n,e,function(n,e){return t(n,e[0])})}var sc=xu(ic),pc=xu(uc);function hc(n){return null==n?[]:ge(n,ic(n))}var vc=fu(function(n,t,e){return t=t.toLowerCase(),n+(e?dc(t):t)});function dc(n){return xc(Fa(n).toLowerCase())}function gc(n){return(n=Fa(n))&&n.replace(Kn,be).replace(yt,"")}var _c=fu(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),yc=fu(function(n,t,e){return n+(e?" ":"")+t.toLowerCase()}),mc=cu("toLowerCase");var bc=fu(function(n,t,e){return n+(e?"_":"")+t.toLowerCase()});var wc=fu(function(n,t,e){return n+(e?" ":"")+xc(t)});var Sc=fu(function(n,t,e){return n+(e?" ":"")+t.toUpperCase()}),xc=cu("toUpperCase");function $c(n,t,e){return n=Fa(n),(t=e?r:t)===r?function(n){return St.test(n)}(n)?function(n){return n.match(bt)||[]}(n):function(n){return n.match(Wn)||[]}(n):n.match(t)||[]}var jc=xi(function(n,t){try{return Nt(n,r,t)}catch(n){return xa(n)?n:new Qn(n)}}),qc=Eu(function(n,t){return Vt(t,function(t){t=fo(t),Ur(n,t,ea(n[t],n))}),n});function kc(n){return function(){return n}}var Ac=pu(),Ec=pu(!0);function Ic(n){return n}function Oc(n){return ci("function"==typeof n?n:zr(n,l))}var Uc=xi(function(n,t){return function(e){return ri(e,n,t)}}),Cc=xi(function(n,t){return function(e){return ri(n,e,t)}});function Rc(n,t,e){var r=ic(t),i=Gr(t,r);null!=e||ka(t)&&(i.length||!r.length)||(e=t,t=n,n=this,i=Gr(t,ic(t)));var u=!(ka(e)&&"chain"in e&&!e.chain),o=$a(n);return Vt(i,function(e){var r=t[e];n[e]=r,o&&(n.prototype[e]=function(){var t=this.__chain__;if(u||t){var e=n(this.__wrapped__);return(e.__actions__=eu(this.__actions__)).push({func:r,args:arguments,thisArg:n}),e.__chain__=t,e}return r.apply(n,Qt([this.value()],arguments))})}),n}function zc(){}var Lc=gu(Xt),Pc=gu(Kt),Tc=gu(ee);function Wc(n){return Zu(n)?le(fo(n)):function(n){return function(t){return Yr(t,n)}}(n)}var Hc=yu(),Bc=yu(!0);function Dc(){return[]}function Mc(){return!1}var Nc=du(function(n,t){return n+t},0),Fc=wu("ceil"),Vc=du(function(n,t){return n/t},1),Zc=wu("floor");var Kc,Gc=du(function(n,t){return n*t},1),Yc=wu("round"),Jc=du(function(n,t){return n-t},0);return hr.after=function(n,t){if("function"!=typeof t)throw new ut(o);return n=Ba(n),function(){if(--n<1)return t.apply(this,arguments)}},hr.ary=na,hr.assign=Va,hr.assignIn=Za,hr.assignInWith=Ka,hr.assignWith=Ga,hr.at=Ya,hr.before=ta,hr.bind=ea,hr.bindAll=qc,hr.bindKey=ra,hr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return _a(n)?n:[n]},hr.chain=Wo,hr.chunk=function(n,t,e){t=(e?Vu(n,t,e):t===r)?1:Fe(Ba(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var u=0,o=0,a=Jn(Te(i/t));uu?0:u+e),(i=i===r||i>u?u:Ba(i))<0&&(i+=u),i=e>i?0:Da(i);e>>0)?(n=Fa(n))&&("string"==typeof t||null!=t&&!Ua(t))&&!(t=Li(t))&&xe(n)?Ki(Ie(n),0,e):n.split(t,e):[]},hr.spread=function(n,t){if("function"!=typeof n)throw new ut(o);return t=null==t?0:Fe(Ba(t),0),xi(function(e){var r=e[t],i=Ki(e,0,t);return r&&Qt(i,r),Nt(n,this,i)})},hr.tail=function(n){var t=null==n?0:n.length;return t?Ii(n,1,t):[]},hr.take=function(n,t,e){return n&&n.length?Ii(n,0,(t=e||t===r?1:Ba(t))<0?0:t):[]},hr.takeRight=function(n,t,e){var i=null==n?0:n.length;return i?Ii(n,(t=i-(t=e||t===r?1:Ba(t)))<0?0:t,i):[]},hr.takeRightWhile=function(n,t){return n&&n.length?Hi(n,zu(t,3),!1,!0):[]},hr.takeWhile=function(n,t){return n&&n.length?Hi(n,zu(t,3)):[]},hr.tap=function(n,t){return t(n),n},hr.throttle=function(n,t,e){var r=!0,i=!0;if("function"!=typeof n)throw new ut(o);return ka(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),ia(n,t,{leading:r,maxWait:t,trailing:i})},hr.thru=Ho,hr.toArray=Wa,hr.toPairs=sc,hr.toPairsIn=pc,hr.toPath=function(n){return _a(n)?Xt(n,fo):za(n)?[n]:eu(co(Fa(n)))},hr.toPlainObject=Na,hr.transform=function(n,t,e){var r=_a(n),i=r||wa(n)||La(n);if(t=zu(t,4),null==e){var u=n&&n.constructor;e=i?r?new u:[]:ka(n)&&$a(u)?vr(Ct(n)):{}}return(i?Vt:Zr)(n,function(n,r,i){return t(e,n,r,i)}),e},hr.unary=function(n){return na(n,1)},hr.union=Ao,hr.unionBy=Eo,hr.unionWith=Io,hr.uniq=function(n){return n&&n.length?Pi(n):[]},hr.uniqBy=function(n,t){return n&&n.length?Pi(n,zu(t,2)):[]},hr.uniqWith=function(n,t){return t="function"==typeof t?t:r,n&&n.length?Pi(n,r,t):[]},hr.unset=function(n,t){return null==n||Ti(n,t)},hr.unzip=Oo,hr.unzipWith=Uo,hr.update=function(n,t,e){return null==n?n:Wi(n,t,Fi(e))},hr.updateWith=function(n,t,e,i){return i="function"==typeof i?i:r,null==n?n:Wi(n,t,Fi(e),i)},hr.values=hc,hr.valuesIn=function(n){return null==n?[]:ge(n,uc(n))},hr.without=Co,hr.words=$c,hr.wrap=function(n,t){return la(Fi(t),n)},hr.xor=Ro,hr.xorBy=zo,hr.xorWith=Lo,hr.zip=Po,hr.zipObject=function(n,t){return Mi(n||[],t||[],Ar)},hr.zipObjectDeep=function(n,t){return Mi(n||[],t||[],qi)},hr.zipWith=To,hr.entries=sc,hr.entriesIn=pc,hr.extend=Za,hr.extendWith=Ka,Rc(hr,hr),hr.add=Nc,hr.attempt=jc,hr.camelCase=vc,hr.capitalize=dc,hr.ceil=Fc,hr.clamp=function(n,t,e){return e===r&&(e=t,t=r),e!==r&&(e=(e=Ma(e))==e?e:0),t!==r&&(t=(t=Ma(t))==t?t:0),Rr(Ma(n),t,e)},hr.clone=function(n){return zr(n,p)},hr.cloneDeep=function(n){return zr(n,l|p)},hr.cloneDeepWith=function(n,t){return zr(n,l|p,t="function"==typeof t?t:r)},hr.cloneWith=function(n,t){return zr(n,p,t="function"==typeof t?t:r)},hr.conformsTo=function(n,t){return null==t||Lr(n,t,ic(t))},hr.deburr=gc,hr.defaultTo=function(n,t){return null==n||n!=n?t:n},hr.divide=Vc,hr.endsWith=function(n,t,e){n=Fa(n),t=Li(t);var i=n.length,u=e=e===r?i:Rr(Ba(e),0,i);return(e-=t.length)>=0&&n.slice(e,u)==t},hr.eq=ha,hr.escape=function(n){return(n=Fa(n))&&$n.test(n)?n.replace(Sn,we):n},hr.escapeRegExp=function(n){return(n=Fa(n))&&Un.test(n)?n.replace(On,"\\$&"):n},hr.every=function(n,t,e){var i=_a(n)?Kt:Br;return e&&Vu(n,t,e)&&(t=r),i(n,zu(t,3))},hr.find=Mo,hr.findIndex=go,hr.findKey=function(n,t){return ie(n,zu(t,3),Zr)},hr.findLast=No,hr.findLastIndex=_o,hr.findLastKey=function(n,t){return ie(n,zu(t,3),Kr)},hr.floor=Zc,hr.forEach=Fo,hr.forEachRight=Vo,hr.forIn=function(n,t){return null==n?n:Fr(n,zu(t,3),uc)},hr.forInRight=function(n,t){return null==n?n:Vr(n,zu(t,3),uc)},hr.forOwn=function(n,t){return n&&Zr(n,zu(t,3))},hr.forOwnRight=function(n,t){return n&&Kr(n,zu(t,3))},hr.get=Qa,hr.gt=va,hr.gte=da,hr.has=function(n,t){return null!=n&&Du(n,t,ni)},hr.hasIn=nc,hr.head=mo,hr.identity=Ic,hr.includes=function(n,t,e,r){n=ma(n)?n:hc(n),e=e&&!r?Ba(e):0;var i=n.length;return e<0&&(e=Fe(i+e,0)),Ra(n)?e<=i&&n.indexOf(t,e)>-1:!!i&&oe(n,t,e)>-1},hr.indexOf=function(n,t,e){var r=null==n?0:n.length;if(!r)return-1;var i=null==e?0:Ba(e);return i<0&&(i=Fe(r+i,0)),oe(n,t,i)},hr.inRange=function(n,t,e){return t=Ha(t),e===r?(e=t,t=0):e=Ha(e),function(n,t,e){return n>=Ve(t,e)&&n=-U&&n<=U},hr.isSet=Ca,hr.isString=Ra,hr.isSymbol=za,hr.isTypedArray=La,hr.isUndefined=function(n){return n===r},hr.isWeakMap=function(n){return Aa(n)&&Bu(n)==un},hr.isWeakSet=function(n){return Aa(n)&&Xr(n)==on},hr.join=function(n,t){return null==n?"":Me.call(n,t)},hr.kebabCase=_c,hr.last=xo,hr.lastIndexOf=function(n,t,e){var i=null==n?0:n.length;if(!i)return-1;var u=i;return e!==r&&(u=(u=Ba(e))<0?Fe(i+u,0):Ve(u,i-1)),t==t?function(n,t,e){for(var r=e+1;r--;)if(n[r]===t)return r;return r}(n,t,u):ue(n,ce,u,!0)},hr.lowerCase=yc,hr.lowerFirst=mc,hr.lt=Pa,hr.lte=Ta,hr.max=function(n){return n&&n.length?Dr(n,Ic,Qr):r},hr.maxBy=function(n,t){return n&&n.length?Dr(n,zu(t,2),Qr):r},hr.mean=function(n){return fe(n,Ic)},hr.meanBy=function(n,t){return fe(n,zu(t,2))},hr.min=function(n){return n&&n.length?Dr(n,Ic,si):r},hr.minBy=function(n,t){return n&&n.length?Dr(n,zu(t,2),si):r},hr.stubArray=Dc,hr.stubFalse=Mc,hr.stubObject=function(){return{}},hr.stubString=function(){return""},hr.stubTrue=function(){return!0},hr.multiply=Gc,hr.nth=function(n,t){return n&&n.length?gi(n,Ba(t)):r},hr.noConflict=function(){return Ut._===this&&(Ut._=gt),this},hr.noop=zc,hr.now=Qo,hr.pad=function(n,t,e){n=Fa(n);var r=(t=Ba(t))?Ee(n):0;if(!t||r>=t)return n;var i=(t-r)/2;return _u(We(i),e)+n+_u(Te(i),e)},hr.padEnd=function(n,t,e){n=Fa(n);var r=(t=Ba(t))?Ee(n):0;return t&&rt){var i=n;n=t,t=i}if(e||n%1||t%1){var u=Ge();return Ve(n+u*(t-n+At("1e-"+((u+"").length-1))),t)}return wi(n,t)},hr.reduce=function(n,t,e){var r=_a(n)?ne:pe,i=arguments.length<3;return r(n,zu(t,4),e,i,Wr)},hr.reduceRight=function(n,t,e){var r=_a(n)?te:pe,i=arguments.length<3;return r(n,zu(t,4),e,i,Hr)},hr.repeat=function(n,t,e){return t=(e?Vu(n,t,e):t===r)?1:Ba(t),Si(Fa(n),t)},hr.replace=function(){var n=arguments,t=Fa(n[0]);return n.length<3?t:t.replace(n[1],n[2])},hr.result=function(n,t,e){var i=-1,u=(t=Vi(t,n)).length;for(u||(u=1,n=r);++iU)return[];var e=z,r=Ve(n,z);t=zu(t),n-=z;for(var i=ve(r,t);++e=o)return n;var c=e-Ee(i);if(c<1)return i;var f=a?Ki(a,0,c).join(""):n.slice(0,c);if(u===r)return f+i;if(a&&(c+=f.length-c),Ua(u)){if(n.slice(c).search(u)){var l,s=f;for(u.global||(u=rt(u.source,Fa(Dn.exec(u))+"g")),u.lastIndex=0;l=u.exec(s);)var p=l.index;f=f.slice(0,p===r?c:p)}}else if(n.indexOf(Li(u),c)!=c){var h=f.lastIndexOf(u);h>-1&&(f=f.slice(0,h))}return f+i},hr.unescape=function(n){return(n=Fa(n))&&xn.test(n)?n.replace(wn,Oe):n},hr.uniqueId=function(n){var t=++pt;return Fa(n)+t},hr.upperCase=Sc,hr.upperFirst=xc,hr.each=Fo,hr.eachRight=Vo,hr.first=mo,Rc(hr,(Kc={},Zr(hr,function(n,t){st.call(hr.prototype,t)||(Kc[t]=n)}),Kc),{chain:!1}),hr.VERSION="4.17.11",Vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){hr[n].placeholder=hr}),Vt(["drop","take"],function(n,t){_r.prototype[n]=function(e){e=e===r?1:Fe(Ba(e),0);var i=this.__filtered__&&!t?new _r(this):this.clone();return i.__filtered__?i.__takeCount__=Ve(e,i.__takeCount__):i.__views__.push({size:Ve(e,z),type:n+(i.__dir__<0?"Right":"")}),i},_r.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),Vt(["filter","map","takeWhile"],function(n,t){var e=t+1,r=e==E||3==e;_r.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:zu(n,3),type:e}),t.__filtered__=t.__filtered__||r,t}}),Vt(["head","last"],function(n,t){var e="take"+(t?"Right":"");_r.prototype[n]=function(){return this[e](1).value()[0]}}),Vt(["initial","tail"],function(n,t){var e="drop"+(t?"":"Right");_r.prototype[n]=function(){return this.__filtered__?new _r(this):this[e](1)}}),_r.prototype.compact=function(){return this.filter(Ic)},_r.prototype.find=function(n){return this.filter(n).head()},_r.prototype.findLast=function(n){return this.reverse().find(n)},_r.prototype.invokeMap=xi(function(n,t){return"function"==typeof n?new _r(this):this.map(function(e){return ri(e,n,t)})}),_r.prototype.reject=function(n){return this.filter(ca(zu(n)))},_r.prototype.slice=function(n,t){n=Ba(n);var e=this;return e.__filtered__&&(n>0||t<0)?new _r(e):(n<0?e=e.takeRight(-n):n&&(e=e.drop(n)),t!==r&&(e=(t=Ba(t))<0?e.dropRight(-t):e.take(t-n)),e)},_r.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},_r.prototype.toArray=function(){return this.take(z)},Zr(_r.prototype,function(n,t){var e=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),u=hr[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);u&&(hr.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,c=t instanceof _r,f=a[0],l=c||_a(t),s=function(n){var t=u.apply(hr,Qt([n],a));return i&&p?t[0]:t};l&&e&&"function"==typeof f&&1!=f.length&&(c=l=!1);var p=this.__chain__,h=!!this.__actions__.length,v=o&&!p,d=c&&!h;if(!o&&l){t=d?t:new _r(this);var g=n.apply(t,a);return g.__actions__.push({func:Ho,args:[s],thisArg:r}),new gr(g,p)}return v&&d?n.apply(this,a):(g=this.thru(s),v?i?g.value()[0]:g.value():g)})}),Vt(["pop","push","shift","sort","splice","unshift"],function(n){var t=ot[n],e=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);hr.prototype[n]=function(){var n=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(_a(i)?i:[],n)}return this[e](function(e){return t.apply(_a(e)?e:[],n)})}}),Zr(_r.prototype,function(n,t){var e=hr[t];if(e){var r=e.name+"";(ir[r]||(ir[r]=[])).push({name:t,func:e})}}),ir[hu(r,g).name]=[{name:"wrapper",func:r}],_r.prototype.clone=function(){var n=new _r(this.__wrapped__);return n.__actions__=eu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=eu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=eu(this.__views__),n},_r.prototype.reverse=function(){if(this.__filtered__){var n=new _r(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},_r.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,e=_a(n),r=t<0,i=e?n.length:0,u=function(n,t,e){for(var r=-1,i=e.length;++r=this.__values__.length;return{done:n,value:n?r:this.__values__[this.__index__++]}},hr.prototype.plant=function(n){for(var t,e=this;e instanceof dr;){var i=so(e);i.__index__=0,i.__values__=r,t?u.__wrapped__=i:t=i;var u=i;e=e.__wrapped__}return u.__wrapped__=n,t},hr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof _r){var t=n;return this.__actions__.length&&(t=new _r(this)),(t=t.reverse()).__actions__.push({func:Ho,args:[ko],thisArg:r}),new gr(t,this.__chain__)}return this.thru(ko)},hr.prototype.toJSON=hr.prototype.valueOf=hr.prototype.value=function(){return Bi(this.__wrapped__,this.__actions__)},hr.prototype.first=hr.prototype.head,se&&(hr.prototype[se]=function(){return this}),hr}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Ut._=Ue,define(function(){return Ue})):Rt?((Rt.exports=Ue)._=Ue,Ct._=Ue):Ut._=Ue}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]); \ No newline at end of file diff --git a/examples/demo.js b/examples/demo.js index d3c81c08..dddae6a0 100644 --- a/examples/demo.js +++ b/examples/demo.js @@ -24,6 +24,9 @@ window.onload = function() { } // Null option addStepSelect.append(''); + addStepSelect.selectize({ + sortField: 'text' + }); } refreshOptions(); diff --git a/examples/index.html b/examples/index.html index 4193b39f..287189df 100644 --- a/examples/index.html +++ b/examples/index.html @@ -26,17 +26,18 @@ - + + - + - +
@@ -124,7 +125,7 @@
- diff --git a/examples/lib/defaultHtmlSequencerUi.js b/examples/lib/defaultHtmlSequencerUi.js index 88049f33..f55aed19 100644 --- a/examples/lib/defaultHtmlSequencerUi.js +++ b/examples/lib/defaultHtmlSequencerUi.js @@ -8,8 +8,8 @@ function DefaultHtmlSequencerUi(_sequencer, options) { function onLoad() { importStepsFromUrlHash(); - if (!$('#selectStep').val()) - $(addStepSel + " #add-step-btn").prop("disabled", true); + if ($('#selectStep').val()==='none') + $(addStepSel + " #add-step-btn").prop("disabled", true); handleSaveSequence(); } diff --git a/examples/lib/intermediateHtmlStepUi.js b/examples/lib/intermediateHtmlStepUi.js index 1431b381..782d13ab 100644 --- a/examples/lib/intermediateHtmlStepUi.js +++ b/examples/lib/intermediateHtmlStepUi.js @@ -86,7 +86,9 @@ function IntermediateHtmlStepUi(_sequencer, step, options) { '" ); } - + $('#insertStep #add-step-btn').selectize({ + sortField: 'text' + }); $('#insertStep #add-step-btn').prop('disabled', true); insertStepSelect.append(''); diff --git a/examples/selectize.default.css b/examples/selectize.default.css new file mode 100644 index 00000000..001eab45 --- /dev/null +++ b/examples/selectize.default.css @@ -0,0 +1,403 @@ +/** + * selectize.default.css (v0.12.6) - Default Theme + * Copyright (c) 2013–2015 Brian Reavis & contributors + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at: + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF + * ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + * + * @author Brian Reavis + */ +.selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder { + visibility: visible !important; + background: #f2f2f2 !important; + background: rgba(0, 0, 0, 0.06) !important; + border: 0 none !important; + -webkit-box-shadow: inset 0 0 12px 4px #fff; + box-shadow: inset 0 0 12px 4px #fff; +} +.selectize-control.plugin-drag_drop .ui-sortable-placeholder::after { + content: '!'; + visibility: hidden; +} +.selectize-control.plugin-drag_drop .ui-sortable-helper { + -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); +} +.selectize-dropdown-header { + position: relative; + padding: 5px 8px; + border-bottom: 1px solid #d0d0d0; + background: #f8f8f8; + -webkit-border-radius: 3px 3px 0 0; + -moz-border-radius: 3px 3px 0 0; + border-radius: 3px 3px 0 0; +} +.selectize-dropdown-header-close { + position: absolute; + right: 8px; + top: 50%; + color: #303030; + opacity: 0.4; + margin-top: -12px; + line-height: 20px; + font-size: 20px !important; +} +.selectize-dropdown-header-close:hover { + color: #000000; +} +.selectize-dropdown.plugin-optgroup_columns .optgroup { + border-right: 1px solid #f2f2f2; + border-top: 0 none; + float: left; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.selectize-dropdown.plugin-optgroup_columns .optgroup:last-child { + border-right: 0 none; +} +.selectize-dropdown.plugin-optgroup_columns .optgroup:before { + display: none; +} +.selectize-dropdown.plugin-optgroup_columns .optgroup-header { + border-top: 0 none; +} +.selectize-control.plugin-remove_button [data-value] { + position: relative; + padding-right: 24px !important; +} +.selectize-control.plugin-remove_button [data-value] .remove { + z-index: 1; + /* fixes ie bug (see #392) */ + position: absolute; + top: 0; + right: 0; + bottom: 0; + width: 17px; + text-align: center; + font-weight: bold; + font-size: 12px; + color: inherit; + text-decoration: none; + vertical-align: middle; + display: inline-block; + padding: 2px 0 0 0; + border-left: 1px solid #0073bb; + -webkit-border-radius: 0 2px 2px 0; + -moz-border-radius: 0 2px 2px 0; + border-radius: 0 2px 2px 0; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.selectize-control.plugin-remove_button [data-value] .remove:hover { + background: rgba(0, 0, 0, 0.05); +} +.selectize-control.plugin-remove_button [data-value].active .remove { + border-left-color: #00578d; +} +.selectize-control.plugin-remove_button .disabled [data-value] .remove:hover { + background: none; +} +.selectize-control.plugin-remove_button .disabled [data-value] .remove { + border-left-color: #aaaaaa; +} +.selectize-control.plugin-remove_button .remove-single { + position: absolute; + right: 0; + top: 0; + font-size: 23px; +} +.selectize-control { + position: relative; +} +.selectize-dropdown, +.selectize-input, +.selectize-input input { + color: #303030; + font-family: inherit; + font-size: 18px; + line-height: 18px; + -webkit-font-smoothing: inherit; +} +.selectize-input, +.selectize-control.single .selectize-input.input-active { + background: #fff; + cursor: text; + display: inline-block; +} +.selectize-input { + border: 1px solid #d0d0d0; + padding: 10px 0px; + display: inline-block; + width: 24vw; + overflow: hidden; + position: relative; + z-index: 1; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1); + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; +} +.selectize-control.multi .selectize-input.has-items { + padding: 5px 8px 2px; +} +.selectize-input.full { + background-color: #fff; +} +.selectize-input.disabled, +.selectize-input.disabled * { + cursor: default !important; +} +.selectize-input.focus { + -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15); + box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15); +} +.selectize-input.dropdown-active { + -webkit-border-radius: 3px 3px 0 0; + -moz-border-radius: 3px 3px 0 0; + border-radius: 3px 3px 0 0; +} +.selectize-input > * { + vertical-align: baseline; + display: -moz-inline-stack; + display: inline-block; + zoom: 1; + *display: inline; +} +.selectize-control.multi .selectize-input > div { + cursor: pointer; + margin: 0 3px 3px 0; + padding: 2px 6px; + background: #1da7ee; + color: #fff; + border: 1px solid #0073bb; +} +.selectize-control.multi .selectize-input > div.active { + background: #92c836; + color: #fff; + border: 1px solid #00578d; +} +.selectize-control.multi .selectize-input.disabled > div, +.selectize-control.multi .selectize-input.disabled > div.active { + color: #ffffff; + background: #d2d2d2; + border: 1px solid #aaaaaa; +} +.selectize-input > input { + display: inline-block !important; + padding: 0 !important; + min-height: 0 !important; + max-height: none !important; + max-width: 100% !important; + margin: 0 1px !important; + text-indent: 0 !important; + border: 0 none !important; + background: none !important; + line-height: inherit !important; + -webkit-user-select: auto !important; + -webkit-box-shadow: none !important; + box-shadow: none !important; +} +.selectize-input > input::-ms-clear { + display: none; +} +.selectize-input > input:focus { + outline: none !important; +} +.selectize-input::after { + content: ' '; + display: block; + clear: left; +} +.selectize-input.dropdown-active::before { + content: ' '; + display: block; + position: absolute; + background: #f0f0f0; + height: 1px; + bottom: 0; + left: 0; + right: 0; +} +.selectize-dropdown { + position: absolute; + z-index: 10; + border: 1px solid #d0d0d0; + background: #fff; + margin: -1px 0 0 0; + border-top: 0 none; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); + -webkit-border-radius: 0 0 3px 3px; + -moz-border-radius: 0 0 3px 3px; + border-radius: 0 0 3px 3px; +} +.selectize-dropdown [data-selectable] { + cursor: pointer; + overflow: hidden; +} +.selectize-dropdown [data-selectable] .highlight { + background: rgba(125, 168, 208, 0.2); + -webkit-border-radius: 1px; + -moz-border-radius: 1px; + border-radius: 1px; +} +.selectize-dropdown .option, +.selectize-dropdown .optgroup-header { + padding: 5px 8px; +} +.selectize-dropdown .option, +.selectize-dropdown [data-disabled], +.selectize-dropdown [data-disabled] [data-selectable].option { + cursor: inherit; + opacity: 0.5; +} +.selectize-dropdown [data-selectable].option { + opacity: 1; +} +.selectize-dropdown .optgroup:first-child .optgroup-header { + border-top: 0 none; +} +.selectize-dropdown .optgroup-header { + color: #303030; + background: #fff; + cursor: default; +} +.selectize-dropdown .active { + background-color: #f5fafd; + color: #495c68; +} +.selectize-dropdown .active.create { + color: #495c68; +} +.selectize-dropdown .create { + color: rgba(48, 48, 48, 0.5); +} +.selectize-dropdown-content { + overflow-y: auto; + overflow-x: hidden; + max-height: 200px; + -webkit-overflow-scrolling: touch; +} +.selectize-control.single .selectize-input, +.selectize-control.single .selectize-input input { + cursor: pointer; +} +.selectize-control.single .selectize-input.input-active, +.selectize-control.single .selectize-input.input-active input { + cursor: text; +} +.selectize-control.single .selectize-input:after { + content: ' '; + display: block; + position: absolute; + top: 50%; + right: 15px; + margin-top: -3px; + width: 0; + height: 0; + border-style: solid; + border-width: 5px 5px 0 5px; + border-color: #808080 transparent transparent transparent; +} +.selectize-control.single .selectize-input.dropdown-active:after { + margin-top: -4px; + border-width: 0 5px 5px 5px; + border-color: transparent transparent #808080 transparent; +} +.selectize-control.rtl.single .selectize-input:after { + left: 15px; + right: auto; +} +.selectize-control.rtl .selectize-input > input { + margin: 0 4px 0 -2px !important; +} +.selectize-control .selectize-input.disabled { + opacity: 0.5; + background-color: #fafafa; +} +.selectize-control.multi .selectize-input.has-items { + padding-left: 5px; + padding-right: 5px; +} +.selectize-control.multi .selectize-input.disabled [data-value] { + color: #999; + text-shadow: none; + background: none; + -webkit-box-shadow: none; + box-shadow: none; +} +.selectize-control.multi .selectize-input.disabled [data-value], +.selectize-control.multi .selectize-input.disabled [data-value] .remove { + border-color: #e6e6e6; +} +.selectize-control.multi .selectize-input.disabled [data-value] .remove { + background: none; +} +.selectize-control.multi .selectize-input [data-value] { + text-shadow: 0 1px 0 rgba(0, 51, 83, 0.3); + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + background-color: #1b9dec; + background-image: -moz-linear-gradient(top, #1da7ee, #178ee9); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#1da7ee), to(#178ee9)); + background-image: -webkit-linear-gradient(top, #1da7ee, #178ee9); + background-image: -o-linear-gradient(top, #1da7ee, #178ee9); + background-image: linear-gradient(to bottom, #1da7ee, #178ee9); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff1da7ee', endColorstr='#ff178ee9', GradientType=0); + -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.2),inset 0 1px rgba(255,255,255,0.03); + box-shadow: 0 1px 0 rgba(0,0,0,0.2),inset 0 1px rgba(255,255,255,0.03); +} +.selectize-control.multi .selectize-input [data-value].active { + background-color: #0085d4; + background-image: -moz-linear-gradient(top, #008fd8, #0075cf); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#008fd8), to(#0075cf)); + background-image: -webkit-linear-gradient(top, #008fd8, #0075cf); + background-image: -o-linear-gradient(top, #008fd8, #0075cf); + background-image: linear-gradient(to bottom, #008fd8, #0075cf); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff008fd8', endColorstr='#ff0075cf', GradientType=0); +} +.selectize-control.single .selectize-input { + -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.8); + box-shadow: 0 1px 0 rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.8); + background-color: #f9f9f9; + background-image: -moz-linear-gradient(top, #fefefe, #f2f2f2); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fefefe), to(#f2f2f2)); + background-image: -webkit-linear-gradient(top, #fefefe, #f2f2f2); + background-image: -o-linear-gradient(top, #fefefe, #f2f2f2); + background-image: linear-gradient(to bottom, #fefefe, #f2f2f2); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffefefe', endColorstr='#fff2f2f2', GradientType=0); +} +/* .selectize-control.single .selectize-input, +.selectize-dropdown.single { + border-color: #b8b8b8; +} */ +.selectize-dropdown .optgroup-header { + padding-top: 7px; + font-weight: bold; + font-size: 0.85em; +} +.selectize-dropdown .optgroup { + border-top: 1px solid #f0f0f0; +} +.selectize-dropdown .optgroup:first-child { + border-top: 0 none; +} diff --git a/package-lock.json b/package-lock.json index bdfe79db..8a8da56f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -150,6 +150,11 @@ "color-convert": "^1.9.0" } }, + "ansicolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.2.1.tgz", + "integrity": "sha1-vgiVmQl7dKXJxKhKDNvNtivYeu8=" + }, "anymatch": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", @@ -334,7 +339,7 @@ }, "async": { "version": "1.5.2", - "resolved": "http://registry.npmjs.org/async/-/async-1.5.2.tgz", + "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", "dev": true }, @@ -632,18 +637,18 @@ "dependencies": { "headless": { "version": "0.1.3", - "bundled": true, + "resolved": false, "dev": true }, "minimist": { "version": "0.0.5", - "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.5.tgz", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.5.tgz", "integrity": "sha1-16oye87PUY+RBqxrjwA/o7zqhWY=", "dev": true }, "mkdirp": { "version": "0.3.5", - "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz", "integrity": "sha1-3j5fiWHIjHh+4TaN+EmsRBPsqNc=", "dev": true } @@ -1110,6 +1115,15 @@ "window-or-global": "^1.0.1" } }, + "cardinal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/cardinal/-/cardinal-1.0.0.tgz", + "integrity": "sha1-UOIcGwqjdyn5N33vGWtanOyTLuk=", + "requires": { + "ansicolors": "~0.2.1", + "redeyed": "~1.0.0" + } + }, "caseless": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", @@ -1287,7 +1301,7 @@ "dependencies": { "convert-source-map": { "version": "1.1.3", - "resolved": "http://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", "integrity": "sha1-SCnId+n+SbMWHzvzZziI4gRpmGA=", "dev": true } @@ -1395,7 +1409,7 @@ "dependencies": { "readable-stream": { "version": "1.0.34", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "requires": { "core-util-is": "~1.0.0", @@ -1533,6 +1547,11 @@ "cssom": "0.3.x" } }, + "csv-parse": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/csv-parse/-/csv-parse-2.5.0.tgz", + "integrity": "sha512-4OcjOJQByI0YDU5COYw9HAqjo8/MOLLmT9EKyMCXUzgvh30vS1SlMK+Ho84IH5exN44cSnrYecw/7Zpu2m4lkA==" + }, "currently-unhandled": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", @@ -2743,7 +2762,7 @@ "dependencies": { "combined-stream": { "version": "1.0.6", - "resolved": "http://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", "requires": { "delayed-stream": "~1.0.0" @@ -2813,24 +2832,28 @@ "dependencies": { "abbrev": { "version": "1.1.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", "dev": true, "optional": true }, "ansi-regex": { "version": "2.1.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", "dev": true }, "aproba": { "version": "1.2.0", - "bundled": true, + "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", "dev": true, "optional": true }, "are-we-there-yet": { "version": "1.1.4", - "bundled": true, + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz", + "integrity": "sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0=", "dev": true, "optional": true, "requires": { @@ -2840,15 +2863,15 @@ }, "balanced-match": { "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true }, "brace-expansion": { "version": "1.1.11", - "bundled": true, + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, - "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -2856,37 +2879,40 @@ }, "chownr": { "version": "1.0.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.0.1.tgz", + "integrity": "sha1-4qdQQqlVGQi+vSW4Uj1fl2nXkYE=", "dev": true, "optional": true }, "code-point-at": { "version": "1.1.0", - "bundled": true, - "dev": true, - "optional": true + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "dev": true }, "concat-map": { "version": "0.0.1", - "bundled": true, - "dev": true, - "optional": true + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true }, "console-control-strings": { "version": "1.1.0", - "bundled": true, - "dev": true, - "optional": true + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", + "dev": true }, "core-util-is": { "version": "1.0.2", - "bundled": true, + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true, "optional": true }, "debug": { "version": "2.6.9", - "bundled": true, + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, "optional": true, "requires": { @@ -2895,25 +2921,29 @@ }, "deep-extend": { "version": "0.5.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.5.1.tgz", + "integrity": "sha512-N8vBdOa+DF7zkRrDCsaOXoCs/E2fJfx9B9MrKnnSiHNh4ws7eSys6YQE4KvT1cecKmOASYQBhbKjeuDD9lT81w==", "dev": true, "optional": true }, "delegates": { "version": "1.0.0", - "bundled": true, + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", "dev": true, "optional": true }, "detect-libc": { "version": "1.0.3", - "bundled": true, + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", "dev": true, "optional": true }, "fs-minipass": { "version": "1.2.5", - "bundled": true, + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.5.tgz", + "integrity": "sha512-JhBl0skXjUPCFH7x6x61gQxrKyXsxB5gcgePLZCwfyCGGsTISMoIeObbrvVeP6Xmyaudw4TT43qV2Gz+iyd2oQ==", "dev": true, "optional": true, "requires": { @@ -2922,13 +2952,15 @@ }, "fs.realpath": { "version": "1.0.0", - "bundled": true, + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true, "optional": true }, "gauge": { "version": "2.7.4", - "bundled": true, + "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", + "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", "dev": true, "optional": true, "requires": { @@ -2944,7 +2976,8 @@ }, "glob": { "version": "7.1.2", - "bundled": true, + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", "dev": true, "optional": true, "requires": { @@ -2958,13 +2991,15 @@ }, "has-unicode": { "version": "2.0.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", "dev": true, "optional": true }, "iconv-lite": { "version": "0.4.21", - "bundled": true, + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.21.tgz", + "integrity": "sha512-En5V9za5mBt2oUA03WGD3TwDv0MKAruqsuxstbMUZaj9W9k/m1CV/9py3l0L5kw9Bln8fdHQmzHSYtvpvTLpKw==", "dev": true, "optional": true, "requires": { @@ -2973,7 +3008,8 @@ }, "ignore-walk": { "version": "3.0.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.1.tgz", + "integrity": "sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ==", "dev": true, "optional": true, "requires": { @@ -2982,7 +3018,8 @@ }, "inflight": { "version": "1.0.6", - "bundled": true, + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "optional": true, "requires": { @@ -2992,48 +3029,52 @@ }, "inherits": { "version": "2.0.3", - "bundled": true, - "dev": true, - "optional": true + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true }, "ini": { "version": "1.3.5", - "bundled": true, + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", "dev": true, "optional": true }, "is-fullwidth-code-point": { "version": "1.0.0", - "bundled": true, + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, - "optional": true, "requires": { "number-is-nan": "^1.0.0" } }, "isarray": { "version": "1.0.0", - "bundled": true, + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true, "optional": true }, "minimatch": { "version": "3.0.4", - "bundled": true, + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, - "optional": true, "requires": { "brace-expansion": "^1.1.7" } }, "minimist": { "version": "0.0.8", - "bundled": true, + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", "dev": true }, "minipass": { "version": "2.2.4", - "bundled": true, + "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.2.4.tgz", + "integrity": "sha512-hzXIWWet/BzWhYs2b+u7dRHlruXhwdgvlTMDKC6Cb1U7ps6Ac6yQlR39xsbjWJE377YTCtKwIXIpJ5oP+j5y8g==", "dev": true, "requires": { "safe-buffer": "^5.1.1", @@ -3042,7 +3083,8 @@ }, "minizlib": { "version": "1.1.0", - "bundled": true, + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.1.0.tgz", + "integrity": "sha512-4T6Ur/GctZ27nHfpt9THOdRZNgyJ9FZchYO1ceg5S8Q3DNLCKYy44nCZzgCJgcvx2UM8czmqak5BCxJMrq37lA==", "dev": true, "optional": true, "requires": { @@ -3051,7 +3093,8 @@ }, "mkdirp": { "version": "0.5.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "dev": true, "requires": { "minimist": "0.0.8" @@ -3059,13 +3102,15 @@ }, "ms": { "version": "2.0.0", - "bundled": true, + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true, "optional": true }, "needle": { "version": "2.2.0", - "bundled": true, + "resolved": "https://registry.npmjs.org/needle/-/needle-2.2.0.tgz", + "integrity": "sha512-eFagy6c+TYayorXw/qtAdSvaUpEbBsDwDyxYFgLZ0lTojfH7K+OdBqAF7TAFwDokJaGpubpSGG0wO3iC0XPi8w==", "dev": true, "optional": true, "requires": { @@ -3076,7 +3121,8 @@ }, "node-pre-gyp": { "version": "0.10.0", - "bundled": true, + "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.10.0.tgz", + "integrity": "sha512-G7kEonQLRbcA/mOoFoxvlMrw6Q6dPf92+t/l0DFSMuSlDoWaI9JWIyPwK0jyE1bph//CUEL65/Fz1m2vJbmjQQ==", "dev": true, "optional": true, "requires": { @@ -3094,7 +3140,8 @@ }, "nopt": { "version": "4.0.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz", + "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", "dev": true, "optional": true, "requires": { @@ -3104,13 +3151,15 @@ }, "npm-bundled": { "version": "1.0.3", - "bundled": true, + "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.3.tgz", + "integrity": "sha512-ByQ3oJ/5ETLyglU2+8dBObvhfWXX8dtPZDMePCahptliFX2iIuhyEszyFk401PZUNQH20vvdW5MLjJxkwU80Ow==", "dev": true, "optional": true }, "npm-packlist": { "version": "1.1.10", - "bundled": true, + "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.1.10.tgz", + "integrity": "sha512-AQC0Dyhzn4EiYEfIUjCdMl0JJ61I2ER9ukf/sLxJUcZHfo+VyEfz2rMJgLZSS1v30OxPQe1cN0LZA1xbcaVfWA==", "dev": true, "optional": true, "requires": { @@ -3120,7 +3169,8 @@ }, "npmlog": { "version": "4.1.2", - "bundled": true, + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", + "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", "dev": true, "optional": true, "requires": { @@ -3132,40 +3182,44 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true }, "object-assign": { "version": "4.1.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "dev": true, "optional": true }, "once": { "version": "1.4.0", - "bundled": true, + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, - "optional": true, "requires": { "wrappy": "1" } }, "os-homedir": { "version": "1.0.2", - "bundled": true, + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", "dev": true, "optional": true }, "os-tmpdir": { "version": "1.0.2", - "bundled": true, + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", "dev": true, "optional": true }, "osenv": { "version": "0.1.5", - "bundled": true, + "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", + "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", "dev": true, "optional": true, "requires": { @@ -3175,19 +3229,22 @@ }, "path-is-absolute": { "version": "1.0.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true, "optional": true }, "process-nextick-args": { "version": "2.0.0", - "bundled": true, + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", "dev": true, "optional": true }, "rc": { "version": "1.2.7", - "bundled": true, + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.7.tgz", + "integrity": "sha512-LdLD8xD4zzLsAT5xyushXDNscEjB7+2ulnl8+r1pnESlYtlJtVSoCMBGr30eDRJ3+2Gq89jK9P9e4tCEH1+ywA==", "dev": true, "optional": true, "requires": { @@ -3199,7 +3256,8 @@ "dependencies": { "minimist": { "version": "1.2.0", - "bundled": true, + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true, "optional": true } @@ -3207,7 +3265,8 @@ }, "readable-stream": { "version": "2.3.6", - "bundled": true, + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "optional": true, "requires": { @@ -3222,7 +3281,8 @@ }, "rimraf": { "version": "2.6.2", - "bundled": true, + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", + "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", "dev": true, "optional": true, "requires": { @@ -3231,44 +3291,50 @@ }, "safe-buffer": { "version": "5.1.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", + "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", "dev": true }, "safer-buffer": { "version": "2.1.2", - "bundled": true, + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true, "optional": true }, "sax": { "version": "1.2.4", - "bundled": true, + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", "dev": true, "optional": true }, "semver": { "version": "5.5.0", - "bundled": true, + "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", + "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", "dev": true, "optional": true }, "set-blocking": { "version": "2.0.0", - "bundled": true, + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true, "optional": true }, "signal-exit": { "version": "3.0.2", - "bundled": true, + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "dev": true, "optional": true }, "string-width": { "version": "1.0.2", - "bundled": true, + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, - "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -3277,7 +3343,8 @@ }, "string_decoder": { "version": "1.1.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "optional": true, "requires": { @@ -3286,7 +3353,8 @@ }, "strip-ansi": { "version": "3.0.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, "requires": { "ansi-regex": "^2.0.0" @@ -3294,13 +3362,15 @@ }, "strip-json-comments": { "version": "2.0.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", "dev": true, "optional": true }, "tar": { "version": "4.4.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.1.tgz", + "integrity": "sha512-O+v1r9yN4tOsvl90p5HAP4AEqbYhx4036AGMm075fH9F8Qwi3oJ+v4u50FkT/KkvywNGtwkk0zRI+8eYm1X/xg==", "dev": true, "optional": true, "requires": { @@ -3315,13 +3385,15 @@ }, "util-deprecate": { "version": "1.0.2", - "bundled": true, + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true, "optional": true }, "wide-align": { "version": "1.1.2", - "bundled": true, + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz", + "integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==", "dev": true, "optional": true, "requires": { @@ -3330,12 +3402,14 @@ }, "wrappy": { "version": "1.0.2", - "bundled": true, + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, "yallist": { "version": "3.0.2", - "bundled": true, + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.2.tgz", + "integrity": "sha1-hFK0u36Dx8GI2AQcGoN8dz1ti7k=", "dev": true } } @@ -3425,7 +3499,7 @@ }, "gif-encoder": { "version": "0.4.3", - "resolved": "http://registry.npmjs.org/gif-encoder/-/gif-encoder-0.4.3.tgz", + "resolved": "https://registry.npmjs.org/gif-encoder/-/gif-encoder-0.4.3.tgz", "integrity": "sha1-iitP6MqJWkjjoLbLs0CgpqNXGJk=", "requires": { "readable-stream": "~1.1.9" @@ -3433,7 +3507,7 @@ "dependencies": { "readable-stream": { "version": "1.1.14", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", "requires": { "core-util-is": "~1.0.0", @@ -3929,7 +4003,7 @@ }, "chalk": { "version": "1.1.3", - "resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { @@ -4229,13 +4303,13 @@ }, "minimist": { "version": "0.0.10", - "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=", "dev": true }, "readable-stream": { "version": "1.1.14", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", "dev": true, "requires": { @@ -4294,7 +4368,7 @@ "dependencies": { "minimist": { "version": "0.0.10", - "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=", "dev": true }, @@ -4306,7 +4380,7 @@ }, "readable-stream": { "version": "1.0.34", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { @@ -4395,6 +4469,11 @@ "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", "dev": true }, + "humanize": { + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/humanize/-/humanize-0.0.9.tgz", + "integrity": "sha1-GZT/rs3+nEQe0r2sdFK3u0yeQaQ=" + }, "iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -5077,7 +5156,7 @@ }, "yargs": { "version": "6.6.0", - "resolved": "http://registry.npmjs.org/yargs/-/yargs-6.6.0.tgz", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-6.6.0.tgz", "integrity": "sha1-eC7CHvQDNF+DCoCMo9UTr1YGUgg=", "dev": true, "requires": { @@ -5181,7 +5260,7 @@ }, "magic-string": { "version": "0.22.5", - "resolved": "http://registry.npmjs.org/magic-string/-/magic-string-0.22.5.tgz", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.22.5.tgz", "integrity": "sha512-oreip9rJZkzvA8Qzk9HFs8fZGF/u7H/gtrE8EN6RjKJ9kh2HlC+yQ2QezifqTZfGyiuAV0dRv5a+y/8gBb1m9w==", "requires": { "vlq": "^0.2.2" @@ -5304,7 +5383,7 @@ }, "chalk": { "version": "1.1.3", - "resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { @@ -5459,6 +5538,11 @@ } } }, + "microplugin": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/microplugin/-/microplugin-0.0.3.tgz", + "integrity": "sha1-H8Lhu3yeGegr2Eu6kTe75xJQ2M0=" + }, "miller-rabin": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", @@ -5515,7 +5599,7 @@ }, "minimist": { "version": "1.2.0", - "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" }, "mitt": { @@ -5556,7 +5640,7 @@ "dependencies": { "minimist": { "version": "0.0.8", - "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", "dev": true } @@ -5929,7 +6013,6 @@ "version": "0.6.1", "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", - "dev": true, "requires": { "minimist": "~0.0.1", "wordwrap": "~0.0.2" @@ -5937,9 +6020,8 @@ "dependencies": { "minimist": { "version": "0.0.10", - "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", - "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=", - "dev": true + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", + "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=" } } }, @@ -6436,7 +6518,7 @@ }, "readable-stream": { "version": "1.1.14", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", "dev": true, "requires": { @@ -6653,7 +6735,7 @@ "dependencies": { "minimist": { "version": "0.0.8", - "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "object-keys": { @@ -6663,7 +6745,7 @@ }, "readable-stream": { "version": "1.0.34", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "requires": { "core-util-is": "~1.0.0", @@ -6814,7 +6896,7 @@ }, "readable-stream": { "version": "2.3.6", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "requires": { "core-util-is": "~1.0.0", @@ -6857,7 +6939,7 @@ "dependencies": { "readable-stream": { "version": "1.1.14", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", "dev": true, "requires": { @@ -6924,6 +7006,21 @@ "strip-indent": "^1.0.1" } }, + "redeyed": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/redeyed/-/redeyed-1.0.1.tgz", + "integrity": "sha1-6WwZO0DAgWsArshCaY5hGF5VSYo=", + "requires": { + "esprima": "~3.0.0" + }, + "dependencies": { + "esprima": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.0.0.tgz", + "integrity": "sha1-U88kes2ncxPlUcOqLnM0LT+099k=" + } + } + }, "regex-cache": { "version": "0.4.4", "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", @@ -7205,7 +7302,7 @@ }, "sax": { "version": "0.1.5", - "resolved": "http://registry.npmjs.org/sax/-/sax-0.1.5.tgz", + "resolved": "https://registry.npmjs.org/sax/-/sax-0.1.5.tgz", "integrity": "sha1-0YKaYSD6AWZetNv/bEPyn9bWFHE=", "dev": true }, @@ -7230,6 +7327,15 @@ "get-assigned-identifiers": "^1.1.0" } }, + "selectize": { + "version": "0.12.6", + "resolved": "https://registry.npmjs.org/selectize/-/selectize-0.12.6.tgz", + "integrity": "sha512-bWO5A7G+I8+QXyjLfQUgh31VI4WKYagUZQxAXlDyUmDDNrFxrASV0W9hxCOl0XJ/XQ1dZEu3G9HjXV4Wj0yb6w==", + "requires": { + "microplugin": "0.0.3", + "sifter": "^0.5.1" + } + }, "semver": { "version": "5.6.0", "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", @@ -7407,6 +7513,28 @@ "jsonify": "~0.0.0" } }, + "sifter": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/sifter/-/sifter-0.5.3.tgz", + "integrity": "sha1-XmUH/owRSyso2Qtr9OW2NuYR5Is=", + "requires": { + "async": "^2.6.0", + "cardinal": "^1.0.0", + "csv-parse": "^2.0.0", + "humanize": "^0.0.9", + "optimist": "^0.6.1" + }, + "dependencies": { + "async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.2.tgz", + "integrity": "sha512-H1qVYh1MYhEEFLsP97cVKqCGo7KfCyTt6uEWqsTBr9SO84oK9Uwbyd/yCW+6rKJLHksBNUVWZDAjfS+Ccx0Bbg==", + "requires": { + "lodash": "^4.17.11" + } + } + } + }, "signal-exit": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", @@ -7795,7 +7923,7 @@ "dependencies": { "readable-stream": { "version": "1.1.14", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", "requires": { "core-util-is": "~1.0.0", @@ -7844,7 +7972,7 @@ }, "readable-stream": { "version": "1.0.34", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "requires": { "core-util-is": "~1.0.0", @@ -7988,7 +8116,7 @@ }, "strip-ansi": { "version": "3.0.1", - "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "requires": { "ansi-regex": "^2.0.0" @@ -8175,7 +8303,7 @@ }, "chalk": { "version": "1.1.3", - "resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { @@ -8472,7 +8600,7 @@ }, "readable-stream": { "version": "1.1.14", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", "dev": true, "requires": { @@ -8824,9 +8952,9 @@ "optional": true }, "static-eval": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/static-eval/-/static-eval-2.0.0.tgz", - "integrity": "sha512-6flshd3F1Gwm+Ksxq463LtFd1liC77N/PX1FVVc3OzL3hAmo2fwHFbuArkcfi7s9rTNsLEhcRmXGFZhlgy40uw==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/static-eval/-/static-eval-2.0.2.tgz", + "integrity": "sha512-N/D219Hcr2bPjLxPiV+TQE++Tsmrady7TqAJugLy7Xk1EumfDWS/f5dtBbkRCGE7wKKXuYockQoj8Rm2/pVKyg==", "requires": { "escodegen": "^1.8.1" } @@ -8993,30 +9121,15 @@ "requires": { "micromatch": "^2.1.5", "normalize-path": "^2.0.0" - } - }, - "assert": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/assert/-/assert-1.4.1.tgz", - "integrity": "sha1-mZEtWRg2tab1s0XA8H7vwI/GXZE=", - "dev": true, - "requires": { - "util": "0.10.3" }, "dependencies": { - "inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", - "dev": true - }, - "util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", - "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", "dev": true, "requires": { - "inherits": "2.0.1" + "remove-trailing-separator": "^1.0.1" } } } @@ -9211,6 +9324,11 @@ "xtend": "^4.0.0" } }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" + }, "os-browserify": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", @@ -9231,12 +9349,6 @@ "requires": { "safe-buffer": "~5.1.0" } - }, - "vm-browserify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.0.tgz", - "integrity": "sha512-iq+S7vZJE60yejDYM0ek6zg308+UZsdtPExWP9VZoCFCz1zkJoXFnAX7aZfd/ZwrkidzdUZL0C/ryW+JwAiIGw==", - "dev": true } } }, @@ -9320,8 +9432,7 @@ "wordwrap": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", - "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", - "dev": true + "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=" }, "wrap-ansi": { "version": "2.1.0", @@ -9394,7 +9505,7 @@ }, "yargs": { "version": "6.4.0", - "resolved": "http://registry.npmjs.org/yargs/-/yargs-6.4.0.tgz", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-6.4.0.tgz", "integrity": "sha1-gW4ahm1VmMzzTlWW3c4i2S2kkNQ=", "dev": true, "requires": { diff --git a/package.json b/package.json index 315abd10..b422232d 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "qrcode": "^1.3.3", "readline-sync": "^1.4.7", "save-pixels": "~2.3.4", + "selectize": "^0.12.6", "urify": "^2.1.1" }, "devDependencies": {